From e4b553a2011abdcaa89de1710c921a8c6279d399 Mon Sep 17 00:00:00 2001 From: noisysocks Date: Tue, 30 Nov 2021 00:24:27 +0000 Subject: [PATCH] Update @wordpress packages Update packages to include these bug fixes from Gutenberg: - Update Pattern block category and add documentation - Fix non existent menu handling in nav block - Make Reusable blocks available in the Site Editor - Add caching to WP_Theme_JSON_Resolver_Gutenberg::get_user_data_from_custom_post_type() - theme.json: add appearanceTools flag to opt-in into appearance UI controls - Update the block theme folders to templates and parts - Remove reference to gutenberg_, swap with wp_ - Use table layout in templates list screen - Update featured image placeholder graphic. - [Inserter]: Adjust order of theme blocks and reorder inserter items - Implement suitable fallback for Nav block on front end of site when no menu selected - Toggle Group Control: add tooltip - Use first non-empty Nav post as primary fallback for Nav block - Change .nvmrc and documentation for Node.js version (LTS to 14.18.1) - Update: Migrate global styles user database data on the rest endpoint - Update global styles public API - Update: Rename user preset origin to custom - Try always generating navigation post title - Show all templates and template parts on the site editor list screens - Highlight "Site" in the navigation panel - Fix template part slug generation when creating through the block placeholder - [Block Library - Post Title]: Fix render error when setting Page to homepage - Add 'Clear customizations' button to template list page - Gallery v1: Allow clicks within replace media placeholder state - Site Editor: Set the on the list page to be same as the CPT name - Gallery: Fix stuck image size options loader - Cover: Fix undo trap - Add success and error snackbars to the templates list page - Fix: theme colors cannot override defaults - Fix: Color palette is not being stored - Add elements support to the typography panel in global styles - Make links plural in global styles - Add: Gradient palette editor - Update some small style regressions in the template list - Add: Transparency support on global styles colors - Fix: apply by slug on all origins - Render empty Nav block if no fallback block can be utilised - Allow filtering of Nav block fallback - Fix Nav block fallback DB query to match on full block grammar start tag - Remove unstable max pages attribute from Nav block - DateTimePicker: set PM hours correctly - Update delete template button - Site Editor: Template list add rename action - Fix Nav block editing wrong entity on creation of new Menu - [REST] Restore the missing double slash in the ID received by /templates - Add icons to navigation sidebar items - Update function names for the public global styles API functions - Templates Controller: Add missing 'is_custom' prop - Rename gutenberg_ to wp_ for some functions that land in WordPress 5.9 - [Block Library - Template Part]:Remove support for conversion to Reusable block - Global Styles: Call "palettes" and not "color palettes" on panel label - Add button text when no colors found - Update: Global Styes: Count all color palette origins on the palette counter - Rename navigationMenuId to ref - Offset the parent iframe when computing Popover position - Fix: Failing PHPUnit test - Show theme, plugin or author in Added By column with appropriate icon or avatar - Add origin and author to template rest api See #54487. Props talldanwp, mamaduka, oandregal. Built from https://develop.svn.wordpress.org/trunk@52275 git-svn-id: http://core.svn.wordpress.org/trunk@51867 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/site-editor.php | 8 +- wp-includes/assets/script-loader-packages.php | 2 +- wp-includes/block-editor.php | 12 +- wp-includes/block-template-utils.php | 4 + wp-includes/blocks/calendar.php | 4 +- wp-includes/blocks/gallery/editor-rtl.css | 1 + wp-includes/blocks/gallery/editor-rtl.min.css | 2 +- wp-includes/blocks/gallery/editor.css | 1 + wp-includes/blocks/gallery/editor.min.css | 2 +- wp-includes/blocks/navigation.php | 142 +- wp-includes/blocks/navigation/block.json | 2 +- wp-includes/blocks/navigation/view.asset.php | 2 +- wp-includes/blocks/navigation/view.js | 442 +-- .../blocks/navigation/view.min.asset.php | 2 +- wp-includes/blocks/navigation/view.min.js | 2 +- wp-includes/blocks/page-list.php | 5 + wp-includes/blocks/pattern/block.json | 2 +- .../blocks/post-featured-image/editor-rtl.css | 4 +- .../post-featured-image/editor-rtl.min.css | 2 +- .../blocks/post-featured-image/editor.css | 4 +- .../blocks/post-featured-image/editor.min.css | 2 +- wp-includes/blocks/post-terms/block.json | 2 +- wp-includes/blocks/query-title/block.json | 2 +- wp-includes/blocks/site-logo/block.json | 2 +- wp-includes/blocks/site-logo/editor-rtl.css | 4 +- .../blocks/site-logo/editor-rtl.min.css | 2 +- wp-includes/blocks/site-logo/editor.css | 4 +- wp-includes/blocks/site-logo/editor.min.css | 2 +- wp-includes/blocks/site-tagline/block.json | 2 +- wp-includes/blocks/site-title/block.json | 2 +- wp-includes/blocks/template-part.php | 3 +- wp-includes/blocks/template-part/block.json | 3 +- wp-includes/class-wp-block-template.php | 20 + wp-includes/class-wp-theme-json-resolver.php | 90 +- wp-includes/class-wp-theme-json.php | 253 +- .../css/dist/block-library/editor-rtl.css | 9 +- .../css/dist/block-library/editor-rtl.min.css | 2 +- wp-includes/css/dist/block-library/editor.css | 9 +- .../css/dist/block-library/editor.min.css | 2 +- wp-includes/css/dist/components/style-rtl.css | 13 +- .../css/dist/components/style-rtl.min.css | 2 +- wp-includes/css/dist/components/style.css | 13 +- wp-includes/css/dist/components/style.min.css | 2 +- wp-includes/css/dist/edit-site/style-rtl.css | 153 +- .../css/dist/edit-site/style-rtl.min.css | 2 +- wp-includes/css/dist/edit-site/style.css | 153 +- wp-includes/css/dist/edit-site/style.min.css | 2 +- wp-includes/global-styles-and-settings.php | 60 +- wp-includes/js/dist/block-editor.js | 185 +- wp-includes/js/dist/block-editor.min.js | 4 +- wp-includes/js/dist/block-library.js | 699 ++-- wp-includes/js/dist/block-library.min.js | 2 +- wp-includes/js/dist/components.js | 3231 +++++++++-------- wp-includes/js/dist/components.min.js | 10 +- wp-includes/js/dist/core-data.js | 9 + wp-includes/js/dist/core-data.min.js | 2 +- wp-includes/js/dist/edit-site.js | 1177 ++++-- wp-includes/js/dist/edit-site.min.js | 4 +- wp-includes/js/dist/plugins.js | 46 +- wp-includes/js/dist/plugins.min.js | 2 +- wp-includes/post.php | 2 + ...class-wp-rest-global-styles-controller.php | 12 +- .../class-wp-rest-templates-controller.php | 100 +- .../class-wp-rest-themes-controller.php | 18 +- wp-includes/theme.json | 25 +- wp-includes/version.php | 2 +- 66 files changed, 4136 insertions(+), 2854 deletions(-) diff --git a/wp-admin/site-editor.php b/wp-admin/site-editor.php index 14eec7c6c1..91c559a2c2 100644 --- a/wp-admin/site-editor.php +++ b/wp-admin/site-editor.php @@ -23,8 +23,6 @@ if ( ! wp_is_block_template_theme() ) { wp_die( __( 'The theme you are currently using is not compatible with Full Site Editing.' ) ); } -// Used in the HTML title tag. -$title = __( 'Editor (beta)' ); $parent_file = 'themes.php'; // Flag that we're loading the block editor. @@ -59,6 +57,9 @@ if ( isset( $_GET['postType'] ) && ! isset( $_GET['postId'] ) ) { wp_die( __( 'Invalid post type.' ) ); } + // Used in the HTML title tag. + $title = $post_type->labels->name; + $preload_paths = array( '/', '/wp/v2/types/' . $post_type->name . '?context=edit', @@ -81,6 +82,9 @@ if ( isset( $_GET['postType'] ) && ! isset( $_GET['postId'] ) ) { } else { + // Used in the HTML title tag. + $title = __( 'Editor (beta)' ); + $active_global_styles_id = WP_Theme_JSON_Resolver::get_user_custom_post_type_id(); $active_theme = wp_get_theme()->get_stylesheet(); $preload_paths = array( diff --git a/wp-includes/assets/script-loader-packages.php b/wp-includes/assets/script-loader-packages.php index 1927275952..0b47383f15 100644 --- a/wp-includes/assets/script-loader-packages.php +++ b/wp-includes/assets/script-loader-packages.php @@ -1 +1 @@ -<?php return array('a11y.js' => array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => '68e470cf840f69530e9db3be229ad4b6'), 'annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '8ef116cbb8beed8bc1da7eeb6c6e4602'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '10344e1c9c8c8e297682c94866012479'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'e5e1c1378bcb34e073986566ac756500'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4eca38a62df5f0145a5f1a78858581e7'), 'block-directory.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => 'f08888b9d56dd67f5deb7e46c986701f'), '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-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-shortcode', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => '60a18f44287130789374a244affc751d'), 'block-library.js' => array('dependencies' => array('lodash', 'moment', 'wp-a11y', '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-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => '0f117155e63612df38f5711defee3cf7'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '2fc6dec19af6d4c5e5fec8f6fdc1a10b'), 'blocks.js' => array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-shortcode'), 'version' => '5d44e7b44cb47906f44a5b85e2b74861'), 'components.js' => array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-warning'), 'version' => 'a82a16be386aacbf38a72d5db1a84b5f'), 'compose.js' => array('dependencies' => array('lodash', 'react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => '79f0086c957c9b1383183795eeeb6a7b'), 'core-data.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => 'c0c5edcb08814f59f47d0c4865d2093e'), 'customize-widgets.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-viewport', 'wp-widgets'), 'version' => '3b4ec3641b71816a31c25b02e8795a8f'), 'data.js' => array('dependencies' => array('lodash', 'react', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-redux-routine'), 'version' => '1c3a2bcea9173ebd79cecab846d26795'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => '8f1ca4c9b8ce97569364f3595781e718'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => 'a9a5af167fc60fa1bfda62582a7beb3c'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '8778985ac0dfb16f24f8ef86d0718f43'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'ba466ff86449b948bf89b1d25c2ad20e'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'ecda74de0221e1c2ce5c57cbb5af09d5'), 'edit-post.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport', 'wp-warning'), 'version' => '49e50dc125015cc055d542d06a29026a'), 'edit-site.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport'), 'version' => 'ea9241e669383a061b28f1ae02132852'), 'edit-widgets.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => '07b40575f39918ec45109410576f9628'), 'editor.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => 'f7a220115ae94d5e824fd7b5f66972d0'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => 'fb9def72b4f6427aa79ce1c534a205cc'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'ce66e0f9acf6802317399656243ffbc4'), 'format-library.js' => array('dependencies' => array('lodash', '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' => '814fc4c1d4033ac5c4b55fc50d1caeb4'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => '1e58c8c5a32b2e97491080c5b10dc71c'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => '544a76db37139ce991197ce1c0e8a601'), 'i18n.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '30fcecb428a0e8383d3776bcdd3a7834'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => '77450ab7b4e5185ab453093061332216'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-element', 'wp-keycodes', 'wp-polyfill'), 'version' => '77c30626bb8cf4f5306643107664a1ae'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => '9fd5d44710365c520fb15d397154271b'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '04c9acecf082afe58e9fb78644e32450'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '18fe8dfbb471a4ef452f5032317b2627'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => '5a82ca49493728103b070722b35c3c21'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '7199da3d9d448977e45145c9a47dbfbb'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-primitives'), 'version' => 'cb124ade5f2d037f19743e26ec5e0ac7'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => '31ccba505ebf4a66b299970fad62423c'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => '8800e995455b762f0853c3b3abee6781'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '6c3ab278bc9641b6f62731e018a4449e'), 'reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'ba2c4a41a506aae6bfe1a68809c09da3'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-compose', 'wp-data', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill'), 'version' => '5645b3e63ff849e7118e22d42753d95f'), 'server-side-render.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '79fdde82b1243cb4bae76f329b0c4d2c'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '7e026aec9ee5f844fe239b66b54b8865'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'ea7b368befe497077dbfdf1bb6bf609d'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '52ebb5d46ceac12c583cc27606583f7a'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '7060d4046f708252be09f3acac7a626d'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => '1f17121f9d6d7d4961e1345d847b2122'), 'widgets.js' => array('dependencies' => array('lodash', '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' => '58164046b6c66bf3a55cf3971f10627f'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '6a22341ec4203372b399ccf210f7cc7a')); \ No newline at end of file +<?php return array('a11y.js' => array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => '68e470cf840f69530e9db3be229ad4b6'), 'annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '8ef116cbb8beed8bc1da7eeb6c6e4602'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '10344e1c9c8c8e297682c94866012479'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'e5e1c1378bcb34e073986566ac756500'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4eca38a62df5f0145a5f1a78858581e7'), 'block-directory.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '53cdf997aefc66aa4279c1842e0f995b'), '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-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-shortcode', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => '0533f7018ac2054905bdc219b82006c8'), 'block-library.js' => array('dependencies' => array('lodash', 'moment', 'wp-a11y', '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-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => '73dd7bbcd0e5e7599e5e4ced49e0c2d5'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '2fc6dec19af6d4c5e5fec8f6fdc1a10b'), 'blocks.js' => array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-shortcode'), 'version' => '5d44e7b44cb47906f44a5b85e2b74861'), 'components.js' => array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-warning'), 'version' => '9a980b3220164d07b5a081c53897f802'), 'compose.js' => array('dependencies' => array('lodash', 'react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => '79f0086c957c9b1383183795eeeb6a7b'), 'core-data.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => '678af6a7e095e07e143cf098efabfd93'), 'customize-widgets.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-viewport', 'wp-widgets'), 'version' => '5a912fb65adedfb0ae1607ea09621aad'), 'data.js' => array('dependencies' => array('lodash', 'react', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-redux-routine'), 'version' => '1c3a2bcea9173ebd79cecab846d26795'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => '8f1ca4c9b8ce97569364f3595781e718'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => 'a9a5af167fc60fa1bfda62582a7beb3c'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '8778985ac0dfb16f24f8ef86d0718f43'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'ba466ff86449b948bf89b1d25c2ad20e'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'ecda74de0221e1c2ce5c57cbb5af09d5'), 'edit-post.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport', 'wp-warning'), 'version' => '86d6c7e099f3579006ced13f0d804045'), 'edit-site.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-url', 'wp-viewport'), 'version' => 'be6b319f7212ccd8ddb0ec32497e6754'), 'edit-widgets.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => '1af88b39a07d5672c1fb92561d045070'), 'editor.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => 'e67bc7814bdc8b44463ca5c51cda99f2'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => 'fb9def72b4f6427aa79ce1c534a205cc'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'ce66e0f9acf6802317399656243ffbc4'), 'format-library.js' => array('dependencies' => array('lodash', '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' => 'a3256da492c252ffa130d355d1daf0b7'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => '1e58c8c5a32b2e97491080c5b10dc71c'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => '544a76db37139ce991197ce1c0e8a601'), 'i18n.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '30fcecb428a0e8383d3776bcdd3a7834'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => '77450ab7b4e5185ab453093061332216'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-element', 'wp-keycodes', 'wp-polyfill'), 'version' => '77c30626bb8cf4f5306643107664a1ae'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => '9fd5d44710365c520fb15d397154271b'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '13eced27b9346a954d53b53b68560861'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '18fe8dfbb471a4ef452f5032317b2627'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => '5a82ca49493728103b070722b35c3c21'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '8deb649e60db77a068450c10f4ba0314'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-primitives'), 'version' => 'ac5d1e380974c1754a2afe0fed1f7b4e'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => '31ccba505ebf4a66b299970fad62423c'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => '8800e995455b762f0853c3b3abee6781'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '6c3ab278bc9641b6f62731e018a4449e'), 'reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '23db4c7fc4aceb31c85372d63616bc64'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-compose', 'wp-data', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill'), 'version' => '5645b3e63ff849e7118e22d42753d95f'), 'server-side-render.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '1c53e5d6b55f8a3802d572c19db6d4a9'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '7e026aec9ee5f844fe239b66b54b8865'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'ea7b368befe497077dbfdf1bb6bf609d'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '52ebb5d46ceac12c583cc27606583f7a'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '7060d4046f708252be09f3acac7a626d'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => '1f17121f9d6d7d4961e1345d847b2122'), 'widgets.js' => array('dependencies' => array('lodash', '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' => '68222718d2ecb175ae142db3259c7b8a'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '6a22341ec4203372b399ccf210f7cc7a')); \ No newline at end of file diff --git a/wp-includes/block-editor.php b/wp-includes/block-editor.php index 641a1970cc..aaa249cb7b 100644 --- a/wp-includes/block-editor.php +++ b/wp-includes/block-editor.php @@ -338,8 +338,8 @@ function get_block_editor_settings( array $custom_settings, $block_editor_contex // These settings may need to be updated based on data coming from theme.json sources. if ( isset( $editor_settings['__experimentalFeatures']['color']['palette'] ) ) { $colors_by_origin = $editor_settings['__experimentalFeatures']['color']['palette']; - $editor_settings['colors'] = isset( $colors_by_origin['user'] ) ? - $colors_by_origin['user'] : ( + $editor_settings['colors'] = isset( $colors_by_origin['custom'] ) ? + $colors_by_origin['custom'] : ( isset( $colors_by_origin['theme'] ) ? $colors_by_origin['theme'] : $colors_by_origin['default'] @@ -347,8 +347,8 @@ function get_block_editor_settings( array $custom_settings, $block_editor_contex } if ( isset( $editor_settings['__experimentalFeatures']['color']['gradients'] ) ) { $gradients_by_origin = $editor_settings['__experimentalFeatures']['color']['gradients']; - $editor_settings['gradients'] = isset( $gradients_by_origin['user'] ) ? - $gradients_by_origin['user'] : ( + $editor_settings['gradients'] = isset( $gradients_by_origin['custom'] ) ? + $gradients_by_origin['custom'] : ( isset( $gradients_by_origin['theme'] ) ? $gradients_by_origin['theme'] : $gradients_by_origin['default'] @@ -356,8 +356,8 @@ function get_block_editor_settings( array $custom_settings, $block_editor_contex } if ( isset( $editor_settings['__experimentalFeatures']['typography']['fontSizes'] ) ) { $font_sizes_by_origin = $editor_settings['__experimentalFeatures']['typography']['fontSizes']; - $editor_settings['fontSizes'] = isset( $font_sizes_by_origin['user'] ) ? - $font_sizes_by_origin['user'] : ( + $editor_settings['fontSizes'] = isset( $font_sizes_by_origin['custom'] ) ? + $font_sizes_by_origin['custom'] : ( isset( $font_sizes_by_origin['theme'] ) ? $font_sizes_by_origin['theme'] : $font_sizes_by_origin['default'] diff --git a/wp-includes/block-template-utils.php b/wp-includes/block-template-utils.php index 6475ac36f2..2c2fd66d7c 100644 --- a/wp-includes/block-template-utils.php +++ b/wp-includes/block-template-utils.php @@ -525,6 +525,8 @@ function _build_block_template_result_from_post( $post ) { $has_theme_file = wp_get_theme()->get_stylesheet() === $theme && null !== _get_block_template_file( $post->post_type, $post->post_name ); + $origin = get_post_meta( $post->ID, 'origin', true ); + $template = new WP_Block_Template(); $template->wp_id = $post->ID; $template->id = $theme . '//' . $post->post_name; @@ -532,12 +534,14 @@ function _build_block_template_result_from_post( $post ) { $template->content = $post->post_content; $template->slug = $post->post_name; $template->source = 'custom'; + $template->origin = ! empty( $origin ) ? $origin : null; $template->type = $post->post_type; $template->description = $post->post_excerpt; $template->title = $post->post_title; $template->status = $post->post_status; $template->has_theme_file = $has_theme_file; $template->is_custom = true; + $template->author = $post->post_author; if ( 'wp_template' === $post->post_type && isset( $default_template_types[ $template->slug ] ) ) { $template->is_custom = false; diff --git a/wp-includes/blocks/calendar.php b/wp-includes/blocks/calendar.php index c6ba095a92..3e0e48c65b 100644 --- a/wp-includes/blocks/calendar.php +++ b/wp-includes/blocks/calendar.php @@ -85,7 +85,7 @@ function block_core_calendar_has_published_posts() { } // On single sites we try our own cached option first. - $has_published_posts = get_option( 'gutenberg_calendar_block_has_published_posts', null ); + $has_published_posts = get_option( 'wp_calendar_block_has_published_posts', null ); if ( null !== $has_published_posts ) { return (bool) $has_published_posts; } @@ -103,7 +103,7 @@ function block_core_calendar_has_published_posts() { function block_core_calendar_update_has_published_posts() { global $wpdb; $has_published_posts = (bool) $wpdb->get_var( "SELECT 1 as test FROM {$wpdb->posts} WHERE post_type = 'post' AND post_status = 'publish' LIMIT 1" ); - update_option( 'gutenberg_calendar_block_has_published_posts', $has_published_posts ); + update_option( 'wp_calendar_block_has_published_posts', $has_published_posts ); return $has_published_posts; } diff --git a/wp-includes/blocks/gallery/editor-rtl.css b/wp-includes/blocks/gallery/editor-rtl.css index dde63e86b6..972fd85a7d 100644 --- a/wp-includes/blocks/gallery/editor-rtl.css +++ b/wp-includes/blocks/gallery/editor-rtl.css @@ -173,6 +173,7 @@ figure.wp-block-gallery .components-spinner { bottom: 0; right: 0; z-index: 1; + pointer-events: none; } .blocks-gallery-item figure.is-transient img { opacity: 0.3; diff --git a/wp-includes/blocks/gallery/editor-rtl.min.css b/wp-includes/blocks/gallery/editor-rtl.min.css index 81adde1039..db13ceda66 100644 --- a/wp-includes/blocks/gallery/editor-rtl.min.css +++ b/wp-includes/blocks/gallery/editor-rtl.min.css @@ -1 +1 @@ -figure.wp-block-gallery{display:block;margin:0}figure.wp-block-gallery.has-nested-images .components-drop-zone{display:none;pointer-events:none}figure.wp-block-gallery>.blocks-gallery-caption{flex:0 0 100%}figure.wp-block-gallery>.blocks-gallery-media-placeholder-wrapper{flex-basis:100%}figure.wp-block-gallery .wp-block-image .components-notice.is-error{display:block}figure.wp-block-gallery .wp-block-image .components-notice__content{margin:4px 0}figure.wp-block-gallery .wp-block-image .components-notice__dismiss{position:absolute;top:0;left:5px}figure.wp-block-gallery .block-editor-media-placeholder.is-appender .components-placeholder__label{display:none}figure.wp-block-gallery .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{margin-bottom:0}figure.wp-block-gallery .block-editor-media-placeholder{margin:0}figure.wp-block-gallery .block-editor-media-placeholder:before{box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";outline:2px solid transparent;position:absolute;top:0;left:0;bottom:0;right:0;z-index:1;pointer-events:none}figure.wp-block-gallery .block-editor-media-placeholder .components-placeholder__label{display:flex}figure.wp-block-gallery .block-editor-media-placeholder figcaption{z-index:2}figure.wp-block-gallery .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.gallery-settings-buttons .components-button:first-child{margin-left:8px}.gallery-image-sizes .components-base-control__label{display:block;margin-bottom:4px}.gallery-image-sizes .gallery-image-sizes__loading{display:flex;align-items:center;color:#757575;font-size:12px}.gallery-image-sizes .components-spinner{margin:0 4px 0 8px}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected:before{box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";outline:2px solid transparent;position:absolute;top:0;left:0;bottom:0;right:0;z-index:1}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu{display:inline-flex}.blocks-gallery-item .block-editor-media-placeholder{margin:0;height:100%}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.block-library-gallery-item__inline-menu{display:none;position:absolute;top:-2px;margin:8px;z-index:20;transition:box-shadow .2s ease-out;border-radius:2px;background:#fff;border:1px solid #1e1e1e}@media (prefers-reduced-motion:reduce){.block-library-gallery-item__inline-menu{transition-duration:0s;transition-delay:0s}}.block-library-gallery-item__inline-menu:hover{box-shadow:0 2px 6px rgba(0,0,0,.05)}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__inline-menu{padding:2px}}.block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus){border:none;box-shadow:none}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon,.columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon{padding:0;width:inherit;height:inherit}}.block-library-gallery-item__inline-menu.is-left{right:-2px}.block-library-gallery-item__inline-menu.is-right{left:-2px}.wp-block-gallery ul.blocks-gallery-grid{padding:0;margin:0}.wp-block-update-gallery-modal{max-width:400px}.wp-block-update-gallery-modal .wp-block-update-gallery-modal-buttons{display:flex;justify-content:flex-end}.wp-block-update-gallery-modal .wp-block-update-gallery-modal-buttons .components-button{margin-right:12px} \ No newline at end of file +figure.wp-block-gallery{display:block;margin:0}figure.wp-block-gallery.has-nested-images .components-drop-zone{display:none;pointer-events:none}figure.wp-block-gallery>.blocks-gallery-caption{flex:0 0 100%}figure.wp-block-gallery>.blocks-gallery-media-placeholder-wrapper{flex-basis:100%}figure.wp-block-gallery .wp-block-image .components-notice.is-error{display:block}figure.wp-block-gallery .wp-block-image .components-notice__content{margin:4px 0}figure.wp-block-gallery .wp-block-image .components-notice__dismiss{position:absolute;top:0;left:5px}figure.wp-block-gallery .block-editor-media-placeholder.is-appender .components-placeholder__label{display:none}figure.wp-block-gallery .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{margin-bottom:0}figure.wp-block-gallery .block-editor-media-placeholder{margin:0}figure.wp-block-gallery .block-editor-media-placeholder:before{box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";outline:2px solid transparent;position:absolute;top:0;left:0;bottom:0;right:0;z-index:1;pointer-events:none}figure.wp-block-gallery .block-editor-media-placeholder .components-placeholder__label{display:flex}figure.wp-block-gallery .block-editor-media-placeholder figcaption{z-index:2}figure.wp-block-gallery .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.gallery-settings-buttons .components-button:first-child{margin-left:8px}.gallery-image-sizes .components-base-control__label{display:block;margin-bottom:4px}.gallery-image-sizes .gallery-image-sizes__loading{display:flex;align-items:center;color:#757575;font-size:12px}.gallery-image-sizes .components-spinner{margin:0 4px 0 8px}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected:before{box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";outline:2px solid transparent;position:absolute;top:0;left:0;bottom:0;right:0;z-index:1;pointer-events:none}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu{display:inline-flex}.blocks-gallery-item .block-editor-media-placeholder{margin:0;height:100%}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.block-library-gallery-item__inline-menu{display:none;position:absolute;top:-2px;margin:8px;z-index:20;transition:box-shadow .2s ease-out;border-radius:2px;background:#fff;border:1px solid #1e1e1e}@media (prefers-reduced-motion:reduce){.block-library-gallery-item__inline-menu{transition-duration:0s;transition-delay:0s}}.block-library-gallery-item__inline-menu:hover{box-shadow:0 2px 6px rgba(0,0,0,.05)}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__inline-menu{padding:2px}}.block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus){border:none;box-shadow:none}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon,.columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon{padding:0;width:inherit;height:inherit}}.block-library-gallery-item__inline-menu.is-left{right:-2px}.block-library-gallery-item__inline-menu.is-right{left:-2px}.wp-block-gallery ul.blocks-gallery-grid{padding:0;margin:0}.wp-block-update-gallery-modal{max-width:400px}.wp-block-update-gallery-modal .wp-block-update-gallery-modal-buttons{display:flex;justify-content:flex-end}.wp-block-update-gallery-modal .wp-block-update-gallery-modal-buttons .components-button{margin-right:12px} \ No newline at end of file diff --git a/wp-includes/blocks/gallery/editor.css b/wp-includes/blocks/gallery/editor.css index a5916d4ff5..05598054cb 100644 --- a/wp-includes/blocks/gallery/editor.css +++ b/wp-includes/blocks/gallery/editor.css @@ -173,6 +173,7 @@ figure.wp-block-gallery .components-spinner { bottom: 0; left: 0; z-index: 1; + pointer-events: none; } .blocks-gallery-item figure.is-transient img { opacity: 0.3; diff --git a/wp-includes/blocks/gallery/editor.min.css b/wp-includes/blocks/gallery/editor.min.css index 9274f9cfae..7058d9f8d0 100644 --- a/wp-includes/blocks/gallery/editor.min.css +++ b/wp-includes/blocks/gallery/editor.min.css @@ -1 +1 @@ -figure.wp-block-gallery{display:block;margin:0}figure.wp-block-gallery.has-nested-images .components-drop-zone{display:none;pointer-events:none}figure.wp-block-gallery>.blocks-gallery-caption{flex:0 0 100%}figure.wp-block-gallery>.blocks-gallery-media-placeholder-wrapper{flex-basis:100%}figure.wp-block-gallery .wp-block-image .components-notice.is-error{display:block}figure.wp-block-gallery .wp-block-image .components-notice__content{margin:4px 0}figure.wp-block-gallery .wp-block-image .components-notice__dismiss{position:absolute;top:0;right:5px}figure.wp-block-gallery .block-editor-media-placeholder.is-appender .components-placeholder__label{display:none}figure.wp-block-gallery .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{margin-bottom:0}figure.wp-block-gallery .block-editor-media-placeholder{margin:0}figure.wp-block-gallery .block-editor-media-placeholder:before{box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";outline:2px solid transparent;position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:none}figure.wp-block-gallery .block-editor-media-placeholder .components-placeholder__label{display:flex}figure.wp-block-gallery .block-editor-media-placeholder figcaption{z-index:2}figure.wp-block-gallery .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.gallery-settings-buttons .components-button:first-child{margin-right:8px}.gallery-image-sizes .components-base-control__label{display:block;margin-bottom:4px}.gallery-image-sizes .gallery-image-sizes__loading{display:flex;align-items:center;color:#757575;font-size:12px}.gallery-image-sizes .components-spinner{margin:0 8px 0 4px}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected:before{box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";outline:2px solid transparent;position:absolute;top:0;right:0;bottom:0;left:0;z-index:1}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu{display:inline-flex}.blocks-gallery-item .block-editor-media-placeholder{margin:0;height:100%}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.block-library-gallery-item__inline-menu{display:none;position:absolute;top:-2px;margin:8px;z-index:20;transition:box-shadow .2s ease-out;border-radius:2px;background:#fff;border:1px solid #1e1e1e}@media (prefers-reduced-motion:reduce){.block-library-gallery-item__inline-menu{transition-duration:0s;transition-delay:0s}}.block-library-gallery-item__inline-menu:hover{box-shadow:0 2px 6px rgba(0,0,0,.05)}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__inline-menu{padding:2px}}.block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus){border:none;box-shadow:none}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon,.columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon{padding:0;width:inherit;height:inherit}}.block-library-gallery-item__inline-menu.is-left{left:-2px}.block-library-gallery-item__inline-menu.is-right{right:-2px}.wp-block-gallery ul.blocks-gallery-grid{padding:0;margin:0}.wp-block-update-gallery-modal{max-width:400px}.wp-block-update-gallery-modal .wp-block-update-gallery-modal-buttons{display:flex;justify-content:flex-end}.wp-block-update-gallery-modal .wp-block-update-gallery-modal-buttons .components-button{margin-left:12px} \ No newline at end of file +figure.wp-block-gallery{display:block;margin:0}figure.wp-block-gallery.has-nested-images .components-drop-zone{display:none;pointer-events:none}figure.wp-block-gallery>.blocks-gallery-caption{flex:0 0 100%}figure.wp-block-gallery>.blocks-gallery-media-placeholder-wrapper{flex-basis:100%}figure.wp-block-gallery .wp-block-image .components-notice.is-error{display:block}figure.wp-block-gallery .wp-block-image .components-notice__content{margin:4px 0}figure.wp-block-gallery .wp-block-image .components-notice__dismiss{position:absolute;top:0;right:5px}figure.wp-block-gallery .block-editor-media-placeholder.is-appender .components-placeholder__label{display:none}figure.wp-block-gallery .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{margin-bottom:0}figure.wp-block-gallery .block-editor-media-placeholder{margin:0}figure.wp-block-gallery .block-editor-media-placeholder:before{box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";outline:2px solid transparent;position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:none}figure.wp-block-gallery .block-editor-media-placeholder .components-placeholder__label{display:flex}figure.wp-block-gallery .block-editor-media-placeholder figcaption{z-index:2}figure.wp-block-gallery .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.gallery-settings-buttons .components-button:first-child{margin-right:8px}.gallery-image-sizes .components-base-control__label{display:block;margin-bottom:4px}.gallery-image-sizes .gallery-image-sizes__loading{display:flex;align-items:center;color:#757575;font-size:12px}.gallery-image-sizes .components-spinner{margin:0 8px 0 4px}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected:before{box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";outline:2px solid transparent;position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:none}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu{display:inline-flex}.blocks-gallery-item .block-editor-media-placeholder{margin:0;height:100%}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.block-library-gallery-item__inline-menu{display:none;position:absolute;top:-2px;margin:8px;z-index:20;transition:box-shadow .2s ease-out;border-radius:2px;background:#fff;border:1px solid #1e1e1e}@media (prefers-reduced-motion:reduce){.block-library-gallery-item__inline-menu{transition-duration:0s;transition-delay:0s}}.block-library-gallery-item__inline-menu:hover{box-shadow:0 2px 6px rgba(0,0,0,.05)}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__inline-menu{padding:2px}}.block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus){border:none;box-shadow:none}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon,.columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon{padding:0;width:inherit;height:inherit}}.block-library-gallery-item__inline-menu.is-left{left:-2px}.block-library-gallery-item__inline-menu.is-right{right:-2px}.wp-block-gallery ul.blocks-gallery-grid{padding:0;margin:0}.wp-block-update-gallery-modal{max-width:400px}.wp-block-update-gallery-modal .wp-block-update-gallery-modal-buttons{display:flex;justify-content:flex-end}.wp-block-update-gallery-modal .wp-block-update-gallery-modal-buttons .components-button{margin-left:12px} \ No newline at end of file diff --git a/wp-includes/blocks/navigation.php b/wp-includes/blocks/navigation.php index e3848190c6..bfd63c3f2c 100644 --- a/wp-includes/blocks/navigation.php +++ b/wp-includes/blocks/navigation.php @@ -9,7 +9,8 @@ * Build an array with CSS classes and inline styles defining the colors * which will be applied to the navigation markup in the front-end. * - * @param array $attributes Navigation block attributes. + * @param array $attributes Navigation block attributes. + * * @return array Colors CSS classes and inline styles. */ function block_core_navigation_build_css_colors( $attributes ) { @@ -99,7 +100,8 @@ function block_core_navigation_build_css_colors( $attributes ) { * Build an array with CSS classes and inline styles defining the font sizes * which will be applied to the navigation markup in the front-end. * - * @param array $attributes Navigation block attributes. + * @param array $attributes Navigation block attributes. + * * @return array Font size CSS classes and inline styles. */ function block_core_navigation_build_css_font_sizes( $attributes ) { @@ -132,6 +134,100 @@ function block_core_navigation_render_submenu_icon() { return '<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none" role="img" aria-hidden="true" focusable="false"><path d="M1.50002 4L6.00002 8L10.5 4" stroke-width="1.5"></path></svg>'; } + +/** + * Finds the first non-empty `wp_navigation` Post. + * + * @return WP_Post|null the first non-empty Navigation or null. + */ +function block_core_navigation_get_first_non_empty_navigation() { + // Order and orderby args set to mirror those in `wp_get_nav_menus` + // see: + // - https://github.com/WordPress/wordpress-develop/blob/ba943e113d3b31b121f77a2d30aebe14b047c69d/src/wp-includes/nav-menu.php#L613-L619. + // - https://developer.wordpress.org/reference/classes/wp_query/#order-orderby-parameters. + $navigation_posts = get_posts( + array( + 'post_type' => 'wp_navigation', + 'order' => 'ASC', + 'orderby' => 'name', + 'posts_per_page' => 1, // only the first post. + 's' => '<!-- wp:', // look for block indicators to ensure we only include non-empty Navigations. + ) + ); + return count( $navigation_posts ) ? $navigation_posts[0] : null; + +} + +/** + * Filter out empty "null" blocks from the block list. + * 'parse_blocks' includes a null block with '\n\n' as the content when + * it encounters whitespace. This is not a bug but rather how the parser + * is designed. + * + * @param array $parsed_blocks the parsed blocks to be normalized. + * @return array the normalized parsed blocks. + */ +function block_core_navigation_filter_out_empty_blocks( $parsed_blocks ) { + $filtered = array_filter( + $parsed_blocks, + function( $block ) { + return isset( $block['blockName'] ); + } + ); + + // Reset keys. + return array_values( $filtered ); +} + +/** + * Retrieves the appropriate fallback to be used on the front of the + * site when there is no menu assigned to the Nav block. + * + * This aims to mirror how the fallback mechanic for wp_nav_menu works. + * See https://developer.wordpress.org/reference/functions/wp_nav_menu/#more-information. + * + * @return array the array of blocks to be used as a fallback. + */ +function block_core_navigation_get_fallback_blocks() { + $page_list_fallback = array( + array( + 'blockName' => 'core/page-list', + 'attrs' => array( + '__unstableMaxPages' => 4, + ), + ), + ); + + $registry = WP_Block_Type_Registry::get_instance(); + + // If `core/page-list` is not registered then return empty blocks. + $fallback_blocks = $registry->is_registered( 'core/page-list' ) ? $page_list_fallback : array(); + + // Default to a list of Pages. + + $navigation_post = block_core_navigation_get_first_non_empty_navigation(); + + // Prefer using the first non-empty Navigation as fallback if available. + if ( $navigation_post ) { + $maybe_fallback = block_core_navigation_filter_out_empty_blocks( parse_blocks( $navigation_post->post_content ) ); + + // Normalizing blocks may result in an empty array of blocks if they were all `null` blocks. + // In this case default to the (Page List) fallback. + $fallback_blocks = ! empty( $maybe_fallback ) ? $maybe_fallback : $fallback_blocks; + } + + /** + * Filters the fallback experience for the Navigation block. + * + * Returning a falsey value will opt out of the fallback and cause the block not to render. + * To customise the blocks provided return an array of blocks - these should be valid + * children of the `core/navigation` block. + * + * @param array[] default fallback blocks provided by the default block mechanic. + */ + return apply_filters( 'block_core_navigation_render_fallback', $fallback_blocks ); +} + /** * Renders the `core/navigation` block on server. * @@ -142,6 +238,11 @@ function block_core_navigation_render_submenu_icon() { * @return string Returns the post content with the legacy widget added. */ function render_block_core_navigation( $attributes, $content, $block ) { + + // Flag used to indicate whether the rendered output is considered to be + // a fallback (i.e. the block has no menu associated with it). + $is_fallback = false; + /** * Deprecated: * The rgbTextColor and rgbBackgroundColor attributes @@ -187,13 +288,17 @@ function render_block_core_navigation( $attributes, $content, $block ) { $area = $block->context['navigationArea']; $mapping = get_option( 'wp_navigation_areas', array() ); if ( ! empty( $mapping[ $area ] ) ) { - $attributes['navigationMenuId'] = $mapping[ $area ]; + $attributes['ref'] = $mapping[ $area ]; } } - // Load inner blocks from the navigation post. + // Ensure that blocks saved with the legacy ref attribute name (navigationMenuId) continue to render. if ( array_key_exists( 'navigationMenuId', $attributes ) ) { - $navigation_post = get_post( $attributes['navigationMenuId'] ); + $attributes['ref'] = $attributes['navigationMenuId']; + } + // Load inner blocks from the navigation post. + if ( array_key_exists( 'ref', $attributes ) ) { + $navigation_post = get_post( $attributes['ref'] ); if ( ! isset( $navigation_post ) ) { return ''; } @@ -202,20 +307,26 @@ function render_block_core_navigation( $attributes, $content, $block ) { // 'parse_blocks' includes a null block with '\n\n' as the content when // it encounters whitespace. This code strips it. - $compacted_blocks = array_filter( - $parsed_blocks, - function( $block ) { - return isset( $block['blockName'] ); - } - ); + $compacted_blocks = block_core_navigation_filter_out_empty_blocks( $parsed_blocks ); // TODO - this uses the full navigation block attributes for the // context which could be refined. $inner_blocks = new WP_Block_List( $compacted_blocks, $attributes ); } + // If there are no inner blocks then fallback to rendering an appropriate fallback. if ( empty( $inner_blocks ) ) { - return ''; + $is_fallback = true; // indicate we are rendering the fallback. + + $fallback_blocks = block_core_navigation_get_fallback_blocks(); + + // Fallback my have been filtered so do basic test for validity. + if ( empty( $fallback_blocks ) || ! is_array( $fallback_blocks ) ) { + return ''; + } + + $inner_blocks = new WP_Block_List( $fallback_blocks, $attributes ); + } // Restore legacy classnames for submenu positioning. @@ -234,7 +345,8 @@ function render_block_core_navigation( $attributes, $content, $block ) { $colors['css_classes'], $font_sizes['css_classes'], $is_responsive_menu ? array( 'is-responsive' ) : array(), - $layout_class ? array( $layout_class ) : array() + $layout_class ? array( $layout_class ) : array(), + $is_fallback ? array( 'is-fallback' ) : array() ); $inner_blocks_html = ''; @@ -323,8 +435,8 @@ function render_block_core_navigation( $attributes, $content, $block ) { /** * Register the navigation block. * - * @uses render_block_core_navigation() * @throws WP_Error An WP_Error exception parsing the block definition. + * @uses render_block_core_navigation() */ function register_block_core_navigation() { register_block_type_from_metadata( @@ -341,6 +453,7 @@ add_action( 'init', 'register_block_core_navigation' ); * Filter that changes the parsed attribute values of navigation blocks contain typographic presets to contain the values directly. * * @param array $parsed_block The block being rendered. + * * @return array The block being rendered without typographic presets. */ function block_core_navigation_typographic_presets_backcompatibility( $parsed_block ) { @@ -364,6 +477,7 @@ function block_core_navigation_typographic_presets_backcompatibility( $parsed_bl } } } + return $parsed_block; } diff --git a/wp-includes/blocks/navigation/block.json b/wp-includes/blocks/navigation/block.json index f4a574b2f9..6b7dd32a05 100644 --- a/wp-includes/blocks/navigation/block.json +++ b/wp-includes/blocks/navigation/block.json @@ -11,7 +11,7 @@ ], "textdomain": "default", "attributes": { - "navigationMenuId": { + "ref": { "type": "number" }, "textColor": { diff --git a/wp-includes/blocks/navigation/view.asset.php b/wp-includes/blocks/navigation/view.asset.php index 5e51d5cd22..c7a5887e37 100644 --- a/wp-includes/blocks/navigation/view.asset.php +++ b/wp-includes/blocks/navigation/view.asset.php @@ -1 +1 @@ -<?php return array('dependencies' => array(), 'version' => '554dac353fae87a844b8e51706ae55ba'); \ No newline at end of file +<?php return array('dependencies' => array(), 'version' => '37dc06be3966f1583d5594ebf12956ed'); \ No newline at end of file diff --git a/wp-includes/blocks/navigation/view.js b/wp-includes/blocks/navigation/view.js index 99ccb9c435..eaed9c85b9 100644 --- a/wp-includes/blocks/navigation/view.js +++ b/wp-includes/blocks/navigation/view.js @@ -94,447 +94,7 @@ __webpack_require__.r(__webpack_exports__); // CONCATENATED MODULE: ./node_modules/micromodal/dist/micromodal.es.js -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} - -function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } -} - -function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - return Constructor; -} - -function _toConsumableArray(arr) { - return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); -} - -function _arrayWithoutHoles(arr) { - if (Array.isArray(arr)) return _arrayLikeToArray(arr); -} - -function _iterableToArray(iter) { - if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); -} - -function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return _arrayLikeToArray(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(n); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); -} - -function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - - for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; - - return arr2; -} - -function _nonIterableSpread() { - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} - -var MicroModal = function () { - - var FOCUSABLE_ELEMENTS = ['a[href]', 'area[href]', 'input:not([disabled]):not([type="hidden"]):not([aria-hidden])', 'select:not([disabled]):not([aria-hidden])', 'textarea:not([disabled]):not([aria-hidden])', 'button:not([disabled]):not([aria-hidden])', 'iframe', 'object', 'embed', '[contenteditable]', '[tabindex]:not([tabindex^="-"])']; - - var Modal = /*#__PURE__*/function () { - function Modal(_ref) { - var targetModal = _ref.targetModal, - _ref$triggers = _ref.triggers, - triggers = _ref$triggers === void 0 ? [] : _ref$triggers, - _ref$onShow = _ref.onShow, - onShow = _ref$onShow === void 0 ? function () {} : _ref$onShow, - _ref$onClose = _ref.onClose, - onClose = _ref$onClose === void 0 ? function () {} : _ref$onClose, - _ref$openTrigger = _ref.openTrigger, - openTrigger = _ref$openTrigger === void 0 ? 'data-micromodal-trigger' : _ref$openTrigger, - _ref$closeTrigger = _ref.closeTrigger, - closeTrigger = _ref$closeTrigger === void 0 ? 'data-micromodal-close' : _ref$closeTrigger, - _ref$openClass = _ref.openClass, - openClass = _ref$openClass === void 0 ? 'is-open' : _ref$openClass, - _ref$disableScroll = _ref.disableScroll, - disableScroll = _ref$disableScroll === void 0 ? false : _ref$disableScroll, - _ref$disableFocus = _ref.disableFocus, - disableFocus = _ref$disableFocus === void 0 ? false : _ref$disableFocus, - _ref$awaitCloseAnimat = _ref.awaitCloseAnimation, - awaitCloseAnimation = _ref$awaitCloseAnimat === void 0 ? false : _ref$awaitCloseAnimat, - _ref$awaitOpenAnimati = _ref.awaitOpenAnimation, - awaitOpenAnimation = _ref$awaitOpenAnimati === void 0 ? false : _ref$awaitOpenAnimati, - _ref$debugMode = _ref.debugMode, - debugMode = _ref$debugMode === void 0 ? false : _ref$debugMode; - - _classCallCheck(this, Modal); - - // Save a reference of the modal - this.modal = document.getElementById(targetModal); // Save a reference to the passed config - - this.config = { - debugMode: debugMode, - disableScroll: disableScroll, - openTrigger: openTrigger, - closeTrigger: closeTrigger, - openClass: openClass, - onShow: onShow, - onClose: onClose, - awaitCloseAnimation: awaitCloseAnimation, - awaitOpenAnimation: awaitOpenAnimation, - disableFocus: disableFocus - }; // Register click events only if pre binding eventListeners - - if (triggers.length > 0) this.registerTriggers.apply(this, _toConsumableArray(triggers)); // pre bind functions for event listeners - - this.onClick = this.onClick.bind(this); - this.onKeydown = this.onKeydown.bind(this); - } - /** - * Loops through all openTriggers and binds click event - * @param {array} triggers [Array of node elements] - * @return {void} - */ - - - _createClass(Modal, [{ - key: "registerTriggers", - value: function registerTriggers() { - var _this = this; - - for (var _len = arguments.length, triggers = new Array(_len), _key = 0; _key < _len; _key++) { - triggers[_key] = arguments[_key]; - } - - triggers.filter(Boolean).forEach(function (trigger) { - trigger.addEventListener('click', function (event) { - return _this.showModal(event); - }); - }); - } - }, { - key: "showModal", - value: function showModal() { - var _this2 = this; - - var event = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - this.activeElement = document.activeElement; - this.modal.setAttribute('aria-hidden', 'false'); - this.modal.classList.add(this.config.openClass); - this.scrollBehaviour('disable'); - this.addEventListeners(); - - if (this.config.awaitOpenAnimation) { - var handler = function handler() { - _this2.modal.removeEventListener('animationend', handler, false); - - _this2.setFocusToFirstNode(); - }; - - this.modal.addEventListener('animationend', handler, false); - } else { - this.setFocusToFirstNode(); - } - - this.config.onShow(this.modal, this.activeElement, event); - } - }, { - key: "closeModal", - value: function closeModal() { - var event = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - var modal = this.modal; - this.modal.setAttribute('aria-hidden', 'true'); - this.removeEventListeners(); - this.scrollBehaviour('enable'); - - if (this.activeElement && this.activeElement.focus) { - this.activeElement.focus(); - } - - this.config.onClose(this.modal, this.activeElement, event); - - if (this.config.awaitCloseAnimation) { - var openClass = this.config.openClass; // <- old school ftw - - this.modal.addEventListener('animationend', function handler() { - modal.classList.remove(openClass); - modal.removeEventListener('animationend', handler, false); - }, false); - } else { - modal.classList.remove(this.config.openClass); - } - } - }, { - key: "closeModalById", - value: function closeModalById(targetModal) { - this.modal = document.getElementById(targetModal); - if (this.modal) this.closeModal(); - } - }, { - key: "scrollBehaviour", - value: function scrollBehaviour(toggle) { - if (!this.config.disableScroll) return; - var body = document.querySelector('body'); - - switch (toggle) { - case 'enable': - Object.assign(body.style, { - overflow: '' - }); - break; - - case 'disable': - Object.assign(body.style, { - overflow: 'hidden' - }); - break; - } - } - }, { - key: "addEventListeners", - value: function addEventListeners() { - this.modal.addEventListener('touchstart', this.onClick); - this.modal.addEventListener('click', this.onClick); - document.addEventListener('keydown', this.onKeydown); - } - }, { - key: "removeEventListeners", - value: function removeEventListeners() { - this.modal.removeEventListener('touchstart', this.onClick); - this.modal.removeEventListener('click', this.onClick); - document.removeEventListener('keydown', this.onKeydown); - } - }, { - key: "onClick", - value: function onClick(event) { - if (event.target.hasAttribute(this.config.closeTrigger)) { - this.closeModal(event); - } - } - }, { - key: "onKeydown", - value: function onKeydown(event) { - if (event.keyCode === 27) this.closeModal(event); // esc - - if (event.keyCode === 9) this.retainFocus(event); // tab - } - }, { - key: "getFocusableNodes", - value: function getFocusableNodes() { - var nodes = this.modal.querySelectorAll(FOCUSABLE_ELEMENTS); - return Array.apply(void 0, _toConsumableArray(nodes)); - } - /** - * Tries to set focus on a node which is not a close trigger - * if no other nodes exist then focuses on first close trigger - */ - - }, { - key: "setFocusToFirstNode", - value: function setFocusToFirstNode() { - var _this3 = this; - - if (this.config.disableFocus) return; - var focusableNodes = this.getFocusableNodes(); // no focusable nodes - - if (focusableNodes.length === 0) return; // remove nodes on whose click, the modal closes - // could not think of a better name :( - - var nodesWhichAreNotCloseTargets = focusableNodes.filter(function (node) { - return !node.hasAttribute(_this3.config.closeTrigger); - }); - if (nodesWhichAreNotCloseTargets.length > 0) nodesWhichAreNotCloseTargets[0].focus(); - if (nodesWhichAreNotCloseTargets.length === 0) focusableNodes[0].focus(); - } - }, { - key: "retainFocus", - value: function retainFocus(event) { - var focusableNodes = this.getFocusableNodes(); // no focusable nodes - - if (focusableNodes.length === 0) return; - /** - * Filters nodes which are hidden to prevent - * focus leak outside modal - */ - - focusableNodes = focusableNodes.filter(function (node) { - return node.offsetParent !== null; - }); // if disableFocus is true - - if (!this.modal.contains(document.activeElement)) { - focusableNodes[0].focus(); - } else { - var focusedItemIndex = focusableNodes.indexOf(document.activeElement); - - if (event.shiftKey && focusedItemIndex === 0) { - focusableNodes[focusableNodes.length - 1].focus(); - event.preventDefault(); - } - - if (!event.shiftKey && focusableNodes.length > 0 && focusedItemIndex === focusableNodes.length - 1) { - focusableNodes[0].focus(); - event.preventDefault(); - } - } - } - }]); - - return Modal; - }(); - /** - * Modal prototype ends. - * Here on code is responsible for detecting and - * auto binding event handlers on modal triggers - */ - // Keep a reference to the opened modal - - - var activeModal = null; - /** - * Generates an associative array of modals and it's - * respective triggers - * @param {array} triggers An array of all triggers - * @param {string} triggerAttr The data-attribute which triggers the module - * @return {array} - */ - - var generateTriggerMap = function generateTriggerMap(triggers, triggerAttr) { - var triggerMap = []; - triggers.forEach(function (trigger) { - var targetModal = trigger.attributes[triggerAttr].value; - if (triggerMap[targetModal] === undefined) triggerMap[targetModal] = []; - triggerMap[targetModal].push(trigger); - }); - return triggerMap; - }; - /** - * Validates whether a modal of the given id exists - * in the DOM - * @param {number} id The id of the modal - * @return {boolean} - */ - - - var validateModalPresence = function validateModalPresence(id) { - if (!document.getElementById(id)) { - console.warn("MicroModal: \u2757Seems like you have missed %c'".concat(id, "'"), 'background-color: #f8f9fa;color: #50596c;font-weight: bold;', 'ID somewhere in your code. Refer example below to resolve it.'); - console.warn("%cExample:", 'background-color: #f8f9fa;color: #50596c;font-weight: bold;', "<div class=\"modal\" id=\"".concat(id, "\"></div>")); - return false; - } - }; - /** - * Validates if there are modal triggers present - * in the DOM - * @param {array} triggers An array of data-triggers - * @return {boolean} - */ - - - var validateTriggerPresence = function validateTriggerPresence(triggers) { - if (triggers.length <= 0) { - console.warn("MicroModal: \u2757Please specify at least one %c'micromodal-trigger'", 'background-color: #f8f9fa;color: #50596c;font-weight: bold;', 'data attribute.'); - console.warn("%cExample:", 'background-color: #f8f9fa;color: #50596c;font-weight: bold;', "<a href=\"#\" data-micromodal-trigger=\"my-modal\"></a>"); - return false; - } - }; - /** - * Checks if triggers and their corresponding modals - * are present in the DOM - * @param {array} triggers Array of DOM nodes which have data-triggers - * @param {array} triggerMap Associative array of modals and their triggers - * @return {boolean} - */ - - - var validateArgs = function validateArgs(triggers, triggerMap) { - validateTriggerPresence(triggers); - if (!triggerMap) return true; - - for (var id in triggerMap) { - validateModalPresence(id); - } - - return true; - }; - /** - * Binds click handlers to all modal triggers - * @param {object} config [description] - * @return void - */ - - - var init = function init(config) { - // Create an config object with default openTrigger - var options = Object.assign({}, { - openTrigger: 'data-micromodal-trigger' - }, config); // Collects all the nodes with the trigger - - var triggers = _toConsumableArray(document.querySelectorAll("[".concat(options.openTrigger, "]"))); // Makes a mappings of modals with their trigger nodes - - - var triggerMap = generateTriggerMap(triggers, options.openTrigger); // Checks if modals and triggers exist in dom - - if (options.debugMode === true && validateArgs(triggers, triggerMap) === false) return; // For every target modal creates a new instance - - for (var key in triggerMap) { - var value = triggerMap[key]; - options.targetModal = key; - options.triggers = _toConsumableArray(value); - activeModal = new Modal(options); // eslint-disable-line no-new - } - }; - /** - * Shows a particular modal - * @param {string} targetModal [The id of the modal to display] - * @param {object} config [The configuration object to pass] - * @return {void} - */ - - - var show = function show(targetModal, config) { - var options = config || {}; - options.targetModal = targetModal; // Checks if modals and triggers exist in dom - - if (options.debugMode === true && validateModalPresence(targetModal) === false) return; // clear events in case previous modal wasn't close - - if (activeModal) activeModal.removeEventListeners(); // stores reference to active modal - - activeModal = new Modal(options); // eslint-disable-line no-new - - activeModal.showModal(); - }; - /** - * Closes the active modal - * @param {string} targetModal [The id of the modal to close] - * @return {void} - */ - - - var close = function close(targetModal) { - targetModal ? activeModal.closeModalById(targetModal) : activeModal.closeModal(); - }; - - return { - init: init, - show: show, - close: close - }; -}(); -window.MicroModal = MicroModal; - -/* harmony default export */ var micromodal_es = (MicroModal); +function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function t(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}var n,i,a,r,s,l=(n=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex^="-"])'],i=function(){function o(e){var n=e.targetModal,i=e.triggers,a=void 0===i?[]:i,r=e.onShow,s=void 0===r?function(){}:r,l=e.onClose,c=void 0===l?function(){}:l,d=e.openTrigger,u=void 0===d?"data-micromodal-trigger":d,f=e.closeTrigger,h=void 0===f?"data-micromodal-close":f,v=e.openClass,g=void 0===v?"is-open":v,m=e.disableScroll,b=void 0!==m&&m,y=e.disableFocus,p=void 0!==y&&y,w=e.awaitCloseAnimation,E=void 0!==w&&w,k=e.awaitOpenAnimation,M=void 0!==k&&k,A=e.debugMode,C=void 0!==A&&A;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this.modal=document.getElementById(n),this.config={debugMode:C,disableScroll:b,openTrigger:u,closeTrigger:h,openClass:g,onShow:s,onClose:c,awaitCloseAnimation:E,awaitOpenAnimation:M,disableFocus:p},a.length>0&&this.registerTriggers.apply(this,t(a)),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this)}var i,a,r;return i=o,(a=[{key:"registerTriggers",value:function(){for(var e=this,t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];o.filter(Boolean).forEach((function(t){t.addEventListener("click",(function(t){return e.showModal(t)}))}))}},{key:"showModal",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.activeElement=document.activeElement,this.modal.setAttribute("aria-hidden","false"),this.modal.classList.add(this.config.openClass),this.scrollBehaviour("disable"),this.addEventListeners(),this.config.awaitOpenAnimation){var o=function t(){e.modal.removeEventListener("animationend",t,!1),e.setFocusToFirstNode()};this.modal.addEventListener("animationend",o,!1)}else this.setFocusToFirstNode();this.config.onShow(this.modal,this.activeElement,t)}},{key:"closeModal",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.modal;if(this.modal.setAttribute("aria-hidden","true"),this.removeEventListeners(),this.scrollBehaviour("enable"),this.activeElement&&this.activeElement.focus&&this.activeElement.focus(),this.config.onClose(this.modal,this.activeElement,e),this.config.awaitCloseAnimation){var o=this.config.openClass;this.modal.addEventListener("animationend",(function e(){t.classList.remove(o),t.removeEventListener("animationend",e,!1)}),!1)}else t.classList.remove(this.config.openClass)}},{key:"closeModalById",value:function(e){this.modal=document.getElementById(e),this.modal&&this.closeModal()}},{key:"scrollBehaviour",value:function(e){if(this.config.disableScroll){var t=document.querySelector("body");switch(e){case"enable":Object.assign(t.style,{overflow:""});break;case"disable":Object.assign(t.style,{overflow:"hidden"})}}}},{key:"addEventListeners",value:function(){this.modal.addEventListener("touchstart",this.onClick),this.modal.addEventListener("click",this.onClick),document.addEventListener("keydown",this.onKeydown)}},{key:"removeEventListeners",value:function(){this.modal.removeEventListener("touchstart",this.onClick),this.modal.removeEventListener("click",this.onClick),document.removeEventListener("keydown",this.onKeydown)}},{key:"onClick",value:function(e){(e.target.hasAttribute(this.config.closeTrigger)||e.target.parentNode.hasAttribute(this.config.closeTrigger))&&(e.preventDefault(),e.stopPropagation(),this.closeModal(e))}},{key:"onKeydown",value:function(e){27===e.keyCode&&this.closeModal(e),9===e.keyCode&&this.retainFocus(e)}},{key:"getFocusableNodes",value:function(){var e=this.modal.querySelectorAll(n);return Array.apply(void 0,t(e))}},{key:"setFocusToFirstNode",value:function(){var e=this;if(!this.config.disableFocus){var t=this.getFocusableNodes();if(0!==t.length){var o=t.filter((function(t){return!t.hasAttribute(e.config.closeTrigger)}));o.length>0&&o[0].focus(),0===o.length&&t[0].focus()}}}},{key:"retainFocus",value:function(e){var t=this.getFocusableNodes();if(0!==t.length)if(t=t.filter((function(e){return null!==e.offsetParent})),this.modal.contains(document.activeElement)){var o=t.indexOf(document.activeElement);e.shiftKey&&0===o&&(t[t.length-1].focus(),e.preventDefault()),!e.shiftKey&&t.length>0&&o===t.length-1&&(t[0].focus(),e.preventDefault())}else t[0].focus()}}])&&e(i.prototype,a),r&&e(i,r),o}(),a=null,r=function(e){if(!document.getElementById(e))return console.warn("MicroModal: ❗Seems like you have missed %c'".concat(e,"'"),"background-color: #f8f9fa;color: #50596c;font-weight: bold;","ID somewhere in your code. Refer example below to resolve it."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'<div class="modal" id="'.concat(e,'"></div>')),!1},s=function(e,t){if(function(e){e.length<=0&&(console.warn("MicroModal: ❗Please specify at least one %c'micromodal-trigger'","background-color: #f8f9fa;color: #50596c;font-weight: bold;","data attribute."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'<a href="#" data-micromodal-trigger="my-modal"></a>'))}(e),!t)return!0;for(var o in t)r(o);return!0},{init:function(e){var o=Object.assign({},{openTrigger:"data-micromodal-trigger"},e),n=t(document.querySelectorAll("[".concat(o.openTrigger,"]"))),r=function(e,t){var o=[];return e.forEach((function(e){var n=e.attributes[t].value;void 0===o[n]&&(o[n]=[]),o[n].push(e)})),o}(n,o.openTrigger);if(!0!==o.debugMode||!1!==s(n,r))for(var l in r){var c=r[l];o.targetModal=l,o.triggers=t(c),a=new i(o)}},show:function(e,t){var o=t||{};o.targetModal=e,!0===o.debugMode&&!1===r(e)||(a&&a.removeEventListeners(),(a=new i(o)).showModal())},close:function(e){e?a.closeModalById(e):a.closeModal()}});"undefined"!=typeof window&&(window.MicroModal=l);/* harmony default export */ var micromodal_es = (l); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/view.js /** diff --git a/wp-includes/blocks/navigation/view.min.asset.php b/wp-includes/blocks/navigation/view.min.asset.php index c34bdccb16..ff2c40bc12 100644 --- a/wp-includes/blocks/navigation/view.min.asset.php +++ b/wp-includes/blocks/navigation/view.min.asset.php @@ -1 +1 @@ -<?php return array('dependencies' => array(), 'version' => '4942262e50480536aae4cd504a13f19c'); \ No newline at end of file +<?php return array('dependencies' => array(), 'version' => 'f3cbbfbf9b9c434c39d6f77037d5267c'); \ No newline at end of file diff --git a/wp-includes/blocks/navigation/view.min.js b/wp-includes/blocks/navigation/view.min.js index 477332af8e..83d13cf50e 100644 --- a/wp-includes/blocks/navigation/view.min.js +++ b/wp-includes/blocks/navigation/view.min.js @@ -1 +1 @@ -!function(e){var t={};function o(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)o.d(n,i,function(t){return e[t]}.bind(null,i));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s="kVj6")}({kVj6:function(e,t,o){"use strict";function n(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);"Object"===o&&e.constructor&&(o=e.constructor.name);if("Map"===o||"Set"===o)return Array.from(o);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return r(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}o.r(t);var a,l,s,c,d,u=(a=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex^="-"])'],l=function(){function e(t){var o=t.targetModal,n=t.triggers,r=void 0===n?[]:n,a=t.onShow,l=void 0===a?function(){}:a,s=t.onClose,c=void 0===s?function(){}:s,d=t.openTrigger,u=void 0===d?"data-micromodal-trigger":d,f=t.closeTrigger,h=void 0===f?"data-micromodal-close":f,v=t.openClass,m=void 0===v?"is-open":v,g=t.disableScroll,b=void 0!==g&&g,y=t.disableFocus,p=void 0!==y&&y,w=t.awaitCloseAnimation,k=void 0!==w&&w,E=t.awaitOpenAnimation,A=void 0!==E&&E,M=t.debugMode,S=void 0!==M&&M;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modal=document.getElementById(o),this.config={debugMode:S,disableScroll:b,openTrigger:u,closeTrigger:h,openClass:m,onShow:l,onClose:c,awaitCloseAnimation:k,awaitOpenAnimation:A,disableFocus:p},r.length>0&&this.registerTriggers.apply(this,i(r)),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this)}var t,o,r;return t=e,(o=[{key:"registerTriggers",value:function(){for(var e=this,t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];o.filter(Boolean).forEach((function(t){t.addEventListener("click",(function(t){return e.showModal(t)}))}))}},{key:"showModal",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.activeElement=document.activeElement,this.modal.setAttribute("aria-hidden","false"),this.modal.classList.add(this.config.openClass),this.scrollBehaviour("disable"),this.addEventListeners(),this.config.awaitOpenAnimation){var o=function t(){e.modal.removeEventListener("animationend",t,!1),e.setFocusToFirstNode()};this.modal.addEventListener("animationend",o,!1)}else this.setFocusToFirstNode();this.config.onShow(this.modal,this.activeElement,t)}},{key:"closeModal",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.modal;if(this.modal.setAttribute("aria-hidden","true"),this.removeEventListeners(),this.scrollBehaviour("enable"),this.activeElement&&this.activeElement.focus&&this.activeElement.focus(),this.config.onClose(this.modal,this.activeElement,e),this.config.awaitCloseAnimation){var o=this.config.openClass;this.modal.addEventListener("animationend",(function e(){t.classList.remove(o),t.removeEventListener("animationend",e,!1)}),!1)}else t.classList.remove(this.config.openClass)}},{key:"closeModalById",value:function(e){this.modal=document.getElementById(e),this.modal&&this.closeModal()}},{key:"scrollBehaviour",value:function(e){if(this.config.disableScroll){var t=document.querySelector("body");switch(e){case"enable":Object.assign(t.style,{overflow:""});break;case"disable":Object.assign(t.style,{overflow:"hidden"})}}}},{key:"addEventListeners",value:function(){this.modal.addEventListener("touchstart",this.onClick),this.modal.addEventListener("click",this.onClick),document.addEventListener("keydown",this.onKeydown)}},{key:"removeEventListeners",value:function(){this.modal.removeEventListener("touchstart",this.onClick),this.modal.removeEventListener("click",this.onClick),document.removeEventListener("keydown",this.onKeydown)}},{key:"onClick",value:function(e){e.target.hasAttribute(this.config.closeTrigger)&&this.closeModal(e)}},{key:"onKeydown",value:function(e){27===e.keyCode&&this.closeModal(e),9===e.keyCode&&this.retainFocus(e)}},{key:"getFocusableNodes",value:function(){var e=this.modal.querySelectorAll(a);return Array.apply(void 0,i(e))}},{key:"setFocusToFirstNode",value:function(){var e=this;if(!this.config.disableFocus){var t=this.getFocusableNodes();if(0!==t.length){var o=t.filter((function(t){return!t.hasAttribute(e.config.closeTrigger)}));o.length>0&&o[0].focus(),0===o.length&&t[0].focus()}}}},{key:"retainFocus",value:function(e){var t=this.getFocusableNodes();if(0!==t.length)if(t=t.filter((function(e){return null!==e.offsetParent})),this.modal.contains(document.activeElement)){var o=t.indexOf(document.activeElement);e.shiftKey&&0===o&&(t[t.length-1].focus(),e.preventDefault()),!e.shiftKey&&t.length>0&&o===t.length-1&&(t[0].focus(),e.preventDefault())}else t[0].focus()}}])&&n(t.prototype,o),r&&n(t,r),e}(),s=null,c=function(e){if(!document.getElementById(e))return console.warn("MicroModal: ❗Seems like you have missed %c'".concat(e,"'"),"background-color: #f8f9fa;color: #50596c;font-weight: bold;","ID somewhere in your code. Refer example below to resolve it."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'<div class="modal" id="'.concat(e,'"></div>')),!1},d=function(e,t){if(function(e){e.length<=0&&(console.warn("MicroModal: ❗Please specify at least one %c'micromodal-trigger'","background-color: #f8f9fa;color: #50596c;font-weight: bold;","data attribute."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'<a href="#" data-micromodal-trigger="my-modal"></a>'))}(e),!t)return!0;for(var o in t)c(o);return!0},{init:function(e){var t=Object.assign({},{openTrigger:"data-micromodal-trigger"},e),o=i(document.querySelectorAll("[".concat(t.openTrigger,"]"))),n=function(e,t){var o=[];return e.forEach((function(e){var n=e.attributes[t].value;void 0===o[n]&&(o[n]=[]),o[n].push(e)})),o}(o,t.openTrigger);if(!0!==t.debugMode||!1!==d(o,n))for(var r in n){var a=n[r];t.targetModal=r,t.triggers=i(a),s=new l(t)}},show:function(e,t){var o=t||{};o.targetModal=e,!0===o.debugMode&&!1===c(e)||(s&&s.removeEventListeners(),(s=new l(o)).showModal())},close:function(e){e?s.closeModalById(e):s.closeModal()}});window.MicroModal=u;var f=u;function h(e){const t=document.querySelector(`button[data-micromodal-trigger="${e.id}"]`),o=e.querySelector("button[data-micromodal-close]"),n="true"===e.getAttribute("aria-hidden");t.setAttribute("aria-expanded",!n),o.setAttribute("aria-expanded",!n),e.classList.toggle("has-modal-open",!n);document.documentElement.classList.toggle("has-modal-open")}function v(e){e.querySelectorAll('[aria-expanded="true"]').forEach((function(e){e.setAttribute("aria-expanded","false")}))}function m(e){const t=e.target.closest("[aria-expanded]");if("true"===t.getAttribute("aria-expanded"))v(t.closest(".wp-block-navigation-item"));else{const e=t.closest(".wp-block-navigation-item");t.closest(".wp-block-navigation__submenu-container, .wp-block-navigation__container, .wp-block-page-list").querySelectorAll(".wp-block-navigation-item").forEach((function(t){t!==e&&v(t)})),t.setAttribute("aria-expanded","true")}}window.onload=()=>{f.init({onShow:h,onClose:h,openClass:"is-menu-open"});document.querySelectorAll(".wp-block-navigation-submenu__toggle").forEach((function(e){e.addEventListener("click",m)})),document.addEventListener("click",(function(e){document.querySelectorAll(".wp-block-navigation").forEach((function(t){t.contains(e.target)||v(t)}))})),document.addEventListener("keyup",(function(e){document.querySelectorAll(".wp-block-navigation-item.has-child").forEach((function(t){t.contains(e.target)||v(t)}))}))}}}); \ No newline at end of file +!function(e){var t={};function o(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)o.d(n,i,function(t){return e[t]}.bind(null,i));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s="kVj6")}({kVj6:function(e,t,o){"use strict";function n(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}o.r(t);var a,l,s,c,d,u=(a=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex^="-"])'],l=function(){function e(t){var o=t.targetModal,n=t.triggers,r=void 0===n?[]:n,a=t.onShow,l=void 0===a?function(){}:a,s=t.onClose,c=void 0===s?function(){}:s,d=t.openTrigger,u=void 0===d?"data-micromodal-trigger":d,f=t.closeTrigger,h=void 0===f?"data-micromodal-close":f,g=t.openClass,v=void 0===g?"is-open":g,m=t.disableScroll,b=void 0!==m&&m,p=t.disableFocus,y=void 0!==p&&p,w=t.awaitCloseAnimation,k=void 0!==w&&w,E=t.awaitOpenAnimation,A=void 0!==E&&E,M=t.debugMode,S=void 0!==M&&M;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modal=document.getElementById(o),this.config={debugMode:S,disableScroll:b,openTrigger:u,closeTrigger:h,openClass:v,onShow:l,onClose:c,awaitCloseAnimation:k,awaitOpenAnimation:A,disableFocus:y},r.length>0&&this.registerTriggers.apply(this,i(r)),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this)}var t,o;return t=e,(o=[{key:"registerTriggers",value:function(){for(var e=this,t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];o.filter(Boolean).forEach((function(t){t.addEventListener("click",(function(t){return e.showModal(t)}))}))}},{key:"showModal",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.activeElement=document.activeElement,this.modal.setAttribute("aria-hidden","false"),this.modal.classList.add(this.config.openClass),this.scrollBehaviour("disable"),this.addEventListeners(),this.config.awaitOpenAnimation){var o=function t(){e.modal.removeEventListener("animationend",t,!1),e.setFocusToFirstNode()};this.modal.addEventListener("animationend",o,!1)}else this.setFocusToFirstNode();this.config.onShow(this.modal,this.activeElement,t)}},{key:"closeModal",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.modal;if(this.modal.setAttribute("aria-hidden","true"),this.removeEventListeners(),this.scrollBehaviour("enable"),this.activeElement&&this.activeElement.focus&&this.activeElement.focus(),this.config.onClose(this.modal,this.activeElement,e),this.config.awaitCloseAnimation){var o=this.config.openClass;this.modal.addEventListener("animationend",(function e(){t.classList.remove(o),t.removeEventListener("animationend",e,!1)}),!1)}else t.classList.remove(this.config.openClass)}},{key:"closeModalById",value:function(e){this.modal=document.getElementById(e),this.modal&&this.closeModal()}},{key:"scrollBehaviour",value:function(e){if(this.config.disableScroll){var t=document.querySelector("body");switch(e){case"enable":Object.assign(t.style,{overflow:""});break;case"disable":Object.assign(t.style,{overflow:"hidden"})}}}},{key:"addEventListeners",value:function(){this.modal.addEventListener("touchstart",this.onClick),this.modal.addEventListener("click",this.onClick),document.addEventListener("keydown",this.onKeydown)}},{key:"removeEventListeners",value:function(){this.modal.removeEventListener("touchstart",this.onClick),this.modal.removeEventListener("click",this.onClick),document.removeEventListener("keydown",this.onKeydown)}},{key:"onClick",value:function(e){(e.target.hasAttribute(this.config.closeTrigger)||e.target.parentNode.hasAttribute(this.config.closeTrigger))&&(e.preventDefault(),e.stopPropagation(),this.closeModal(e))}},{key:"onKeydown",value:function(e){27===e.keyCode&&this.closeModal(e),9===e.keyCode&&this.retainFocus(e)}},{key:"getFocusableNodes",value:function(){var e=this.modal.querySelectorAll(a);return Array.apply(void 0,i(e))}},{key:"setFocusToFirstNode",value:function(){var e=this;if(!this.config.disableFocus){var t=this.getFocusableNodes();if(0!==t.length){var o=t.filter((function(t){return!t.hasAttribute(e.config.closeTrigger)}));o.length>0&&o[0].focus(),0===o.length&&t[0].focus()}}}},{key:"retainFocus",value:function(e){var t=this.getFocusableNodes();if(0!==t.length)if(t=t.filter((function(e){return null!==e.offsetParent})),this.modal.contains(document.activeElement)){var o=t.indexOf(document.activeElement);e.shiftKey&&0===o&&(t[t.length-1].focus(),e.preventDefault()),!e.shiftKey&&t.length>0&&o===t.length-1&&(t[0].focus(),e.preventDefault())}else t[0].focus()}}])&&n(t.prototype,o),e}(),s=null,c=function(e){if(!document.getElementById(e))return console.warn("MicroModal: ❗Seems like you have missed %c'".concat(e,"'"),"background-color: #f8f9fa;color: #50596c;font-weight: bold;","ID somewhere in your code. Refer example below to resolve it."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'<div class="modal" id="'.concat(e,'"></div>')),!1},d=function(e,t){if(function(e){e.length<=0&&(console.warn("MicroModal: ❗Please specify at least one %c'micromodal-trigger'","background-color: #f8f9fa;color: #50596c;font-weight: bold;","data attribute."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'<a href="#" data-micromodal-trigger="my-modal"></a>'))}(e),!t)return!0;for(var o in t)c(o);return!0},{init:function(e){var t=Object.assign({},{openTrigger:"data-micromodal-trigger"},e),o=i(document.querySelectorAll("[".concat(t.openTrigger,"]"))),n=function(e,t){var o=[];return e.forEach((function(e){var n=e.attributes[t].value;void 0===o[n]&&(o[n]=[]),o[n].push(e)})),o}(o,t.openTrigger);if(!0!==t.debugMode||!1!==d(o,n))for(var r in n){var a=n[r];t.targetModal=r,t.triggers=i(a),s=new l(t)}},show:function(e,t){var o=t||{};o.targetModal=e,!0===o.debugMode&&!1===c(e)||(s&&s.removeEventListeners(),(s=new l(o)).showModal())},close:function(e){e?s.closeModalById(e):s.closeModal()}});"undefined"!=typeof window&&(window.MicroModal=u);var f=u;function h(e){const t=document.querySelector(`button[data-micromodal-trigger="${e.id}"]`),o=e.querySelector("button[data-micromodal-close]"),n="true"===e.getAttribute("aria-hidden");t.setAttribute("aria-expanded",!n),o.setAttribute("aria-expanded",!n),e.classList.toggle("has-modal-open",!n);document.documentElement.classList.toggle("has-modal-open")}function g(e){e.querySelectorAll('[aria-expanded="true"]').forEach((function(e){e.setAttribute("aria-expanded","false")}))}function v(e){const t=e.target.closest("[aria-expanded]");if("true"===t.getAttribute("aria-expanded"))g(t.closest(".wp-block-navigation-item"));else{const e=t.closest(".wp-block-navigation-item");t.closest(".wp-block-navigation__submenu-container, .wp-block-navigation__container, .wp-block-page-list").querySelectorAll(".wp-block-navigation-item").forEach((function(t){t!==e&&g(t)})),t.setAttribute("aria-expanded","true")}}window.onload=()=>{f.init({onShow:h,onClose:h,openClass:"is-menu-open"});document.querySelectorAll(".wp-block-navigation-submenu__toggle").forEach((function(e){e.addEventListener("click",v)})),document.addEventListener("click",(function(e){document.querySelectorAll(".wp-block-navigation").forEach((function(t){t.contains(e.target)||g(t)}))})),document.addEventListener("keyup",(function(e){document.querySelectorAll(".wp-block-navigation-item.has-child").forEach((function(t){t.contains(e.target)||g(t)}))}))}}}); \ No newline at end of file diff --git a/wp-includes/blocks/page-list.php b/wp-includes/blocks/page-list.php index 53dec1f195..8336135e1a 100644 --- a/wp-includes/blocks/page-list.php +++ b/wp-includes/blocks/page-list.php @@ -293,6 +293,11 @@ function render_block_core_page_list( $attributes, $content, $block ) { $nested_pages = block_core_page_list_nest_pages( $top_level_pages, $pages_with_children ); + // Limit the number of items to be visually displayed. + if ( ! empty( $attributes['__unstableMaxPages'] ) ) { + $nested_pages = array_slice( $nested_pages, 0, $attributes['__unstableMaxPages'] ); + } + $is_navigation_child = array_key_exists( 'showSubmenuIcon', $block->context ); $open_submenus_on_click = array_key_exists( 'openSubmenusOnClick', $block->context ) ? $block->context['openSubmenusOnClick'] : false; diff --git a/wp-includes/blocks/pattern/block.json b/wp-includes/blocks/pattern/block.json index 78423e8d49..c0c27cd821 100644 --- a/wp-includes/blocks/pattern/block.json +++ b/wp-includes/blocks/pattern/block.json @@ -2,7 +2,7 @@ "apiVersion": 2, "name": "core/pattern", "title": "Pattern", - "category": "design", + "category": "theme", "description": "Show a block pattern.", "supports": { "html": false, diff --git a/wp-includes/blocks/post-featured-image/editor-rtl.css b/wp-includes/blocks/post-featured-image/editor-rtl.css index 10a37e28a0..1b0c4ed9bb 100644 --- a/wp-includes/blocks/post-featured-image/editor-rtl.css +++ b/wp-includes/blocks/post-featured-image/editor-rtl.css @@ -114,7 +114,7 @@ bottom: 0; right: 0; border: 1px dashed currentColor; - opacity: 0.3; + opacity: 0.4; pointer-events: none; border-radius: inherit; } @@ -159,7 +159,7 @@ height: 100%; stroke: currentColor; stroke-dasharray: 3; - opacity: 0.3; + opacity: 0.4; } .wp-block-post-featured-image.wp-block-post-featured-image[style*=height] .components-placeholder { min-height: 48px; diff --git a/wp-includes/blocks/post-featured-image/editor-rtl.min.css b/wp-includes/blocks/post-featured-image/editor-rtl.min.css index 0e565aede8..7a36d797a0 100644 --- a/wp-includes/blocks/post-featured-image/editor-rtl.min.css +++ b/wp-includes/blocks/post-featured-image/editor-rtl.min.css @@ -1 +1 @@ -.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image.wp-block-post-featured-image .components-resizable-box__container{border-radius:inherit}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder{justify-content:center;align-items:center;box-shadow:none;padding:0;color:currentColor;background:transparent;min-height:200px}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-form-file-upload,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-form-file-upload{display:none}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__preview,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__preview{position:absolute;top:4px;left:4px;bottom:4px;right:4px;background:hsla(0,0%,100%,.8);display:flex;align-items:center;justify-content:center}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder:before,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:before{content:"";display:block;position:absolute;top:0;left:0;bottom:0;right:0;border:1px dashed;opacity:.3;pointer-events:none;border-radius:inherit}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__fieldset,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__fieldset{width:auto}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button{color:inherit;padding:0;display:flex;justify-content:center;align-items:center;width:48px;height:48px;border-radius:50%;position:relative;visibility:hidden;background:transparent;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button{transition-duration:0s;transition-delay:0s}}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button>svg,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button>svg{color:#fff}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__illustration,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__illustration{position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;stroke:currentColor;stroke-dasharray:3;opacity:.3}.wp-block-post-featured-image.wp-block-post-featured-image[style*=height] .components-placeholder{min-height:48px;min-width:48px;height:100%;width:100%}.wp-block-post-featured-image.wp-block-post-featured-image.is-selected .components-button.components-button{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-style:solid;color:#fff;opacity:1;visibility:visible}div[data-type="core/post-featured-image"] img{max-width:100%;height:auto;display:block}.block-library-post-featured-image-dimension-controls{margin-bottom:8px}.block-library-post-featured-image-dimension-controls.scale-control-is-visible{margin-bottom:16px} \ No newline at end of file +.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image.wp-block-post-featured-image .components-resizable-box__container{border-radius:inherit}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder{justify-content:center;align-items:center;box-shadow:none;padding:0;color:currentColor;background:transparent;min-height:200px}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-form-file-upload,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-form-file-upload{display:none}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__preview,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__preview{position:absolute;top:4px;left:4px;bottom:4px;right:4px;background:hsla(0,0%,100%,.8);display:flex;align-items:center;justify-content:center}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder:before,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:before{content:"";display:block;position:absolute;top:0;left:0;bottom:0;right:0;border:1px dashed;opacity:.4;pointer-events:none;border-radius:inherit}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__fieldset,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__fieldset{width:auto}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button{color:inherit;padding:0;display:flex;justify-content:center;align-items:center;width:48px;height:48px;border-radius:50%;position:relative;visibility:hidden;background:transparent;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button{transition-duration:0s;transition-delay:0s}}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button>svg,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button>svg{color:#fff}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__illustration,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__illustration{position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;stroke:currentColor;stroke-dasharray:3;opacity:.4}.wp-block-post-featured-image.wp-block-post-featured-image[style*=height] .components-placeholder{min-height:48px;min-width:48px;height:100%;width:100%}.wp-block-post-featured-image.wp-block-post-featured-image.is-selected .components-button.components-button{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-style:solid;color:#fff;opacity:1;visibility:visible}div[data-type="core/post-featured-image"] img{max-width:100%;height:auto;display:block}.block-library-post-featured-image-dimension-controls{margin-bottom:8px}.block-library-post-featured-image-dimension-controls.scale-control-is-visible{margin-bottom:16px} \ No newline at end of file diff --git a/wp-includes/blocks/post-featured-image/editor.css b/wp-includes/blocks/post-featured-image/editor.css index e4c1a9d882..1e98de9894 100644 --- a/wp-includes/blocks/post-featured-image/editor.css +++ b/wp-includes/blocks/post-featured-image/editor.css @@ -114,7 +114,7 @@ bottom: 0; left: 0; border: 1px dashed currentColor; - opacity: 0.3; + opacity: 0.4; pointer-events: none; border-radius: inherit; } @@ -159,7 +159,7 @@ height: 100%; stroke: currentColor; stroke-dasharray: 3; - opacity: 0.3; + opacity: 0.4; } .wp-block-post-featured-image.wp-block-post-featured-image[style*=height] .components-placeholder { min-height: 48px; diff --git a/wp-includes/blocks/post-featured-image/editor.min.css b/wp-includes/blocks/post-featured-image/editor.min.css index 9b4392eca0..2dfc6fdaf6 100644 --- a/wp-includes/blocks/post-featured-image/editor.min.css +++ b/wp-includes/blocks/post-featured-image/editor.min.css @@ -1 +1 @@ -.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image.wp-block-post-featured-image .components-resizable-box__container{border-radius:inherit}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder{justify-content:center;align-items:center;box-shadow:none;padding:0;color:currentColor;background:transparent;min-height:200px}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-form-file-upload,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-form-file-upload{display:none}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__preview,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__preview{position:absolute;top:4px;right:4px;bottom:4px;left:4px;background:hsla(0,0%,100%,.8);display:flex;align-items:center;justify-content:center}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder:before,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:before{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;border:1px dashed;opacity:.3;pointer-events:none;border-radius:inherit}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__fieldset,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__fieldset{width:auto}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button{color:inherit;padding:0;display:flex;justify-content:center;align-items:center;width:48px;height:48px;border-radius:50%;position:relative;visibility:hidden;background:transparent;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button{transition-duration:0s;transition-delay:0s}}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button>svg,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button>svg{color:#fff}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__illustration,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__illustration{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;stroke:currentColor;stroke-dasharray:3;opacity:.3}.wp-block-post-featured-image.wp-block-post-featured-image[style*=height] .components-placeholder{min-height:48px;min-width:48px;height:100%;width:100%}.wp-block-post-featured-image.wp-block-post-featured-image.is-selected .components-button.components-button{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-style:solid;color:#fff;opacity:1;visibility:visible}div[data-type="core/post-featured-image"] img{max-width:100%;height:auto;display:block}.block-library-post-featured-image-dimension-controls{margin-bottom:8px}.block-library-post-featured-image-dimension-controls.scale-control-is-visible{margin-bottom:16px} \ No newline at end of file +.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image.wp-block-post-featured-image .components-resizable-box__container{border-radius:inherit}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder{justify-content:center;align-items:center;box-shadow:none;padding:0;color:currentColor;background:transparent;min-height:200px}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-form-file-upload,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-form-file-upload{display:none}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__preview,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__preview{position:absolute;top:4px;right:4px;bottom:4px;left:4px;background:hsla(0,0%,100%,.8);display:flex;align-items:center;justify-content:center}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder:before,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:before{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;border:1px dashed;opacity:.4;pointer-events:none;border-radius:inherit}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__fieldset,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__fieldset{width:auto}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button{color:inherit;padding:0;display:flex;justify-content:center;align-items:center;width:48px;height:48px;border-radius:50%;position:relative;visibility:hidden;background:transparent;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button{transition-duration:0s;transition-delay:0s}}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button>svg,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button>svg{color:#fff}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__illustration,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__illustration{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;stroke:currentColor;stroke-dasharray:3;opacity:.4}.wp-block-post-featured-image.wp-block-post-featured-image[style*=height] .components-placeholder{min-height:48px;min-width:48px;height:100%;width:100%}.wp-block-post-featured-image.wp-block-post-featured-image.is-selected .components-button.components-button{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-style:solid;color:#fff;opacity:1;visibility:visible}div[data-type="core/post-featured-image"] img{max-width:100%;height:auto;display:block}.block-library-post-featured-image-dimension-controls{margin-bottom:8px}.block-library-post-featured-image-dimension-controls.scale-control-is-visible{margin-bottom:16px} \ No newline at end of file diff --git a/wp-includes/blocks/post-terms/block.json b/wp-includes/blocks/post-terms/block.json index 08820d0c55..04a46942f4 100644 --- a/wp-includes/blocks/post-terms/block.json +++ b/wp-includes/blocks/post-terms/block.json @@ -2,7 +2,7 @@ "apiVersion": 2, "name": "core/post-terms", "title": "Post Terms", - "category": "design", + "category": "theme", "description": "Post terms.", "textdomain": "default", "attributes": { diff --git a/wp-includes/blocks/query-title/block.json b/wp-includes/blocks/query-title/block.json index 04190056c7..5f737d5749 100644 --- a/wp-includes/blocks/query-title/block.json +++ b/wp-includes/blocks/query-title/block.json @@ -2,7 +2,7 @@ "apiVersion": 2, "name": "core/query-title", "title": "Query Title", - "category": "design", + "category": "theme", "description": "Display the query title.", "textdomain": "default", "attributes": { diff --git a/wp-includes/blocks/site-logo/block.json b/wp-includes/blocks/site-logo/block.json index 2bbe4dd29c..e603c6149a 100644 --- a/wp-includes/blocks/site-logo/block.json +++ b/wp-includes/blocks/site-logo/block.json @@ -2,7 +2,7 @@ "apiVersion": 2, "name": "core/site-logo", "title": "Site Logo", - "category": "layout", + "category": "theme", "description": "Display a graphic to represent this site. Update the block, and the changes apply everywhere it’s used. This is different than the site icon, which is the smaller image visible in your dashboard, browser tabs, etc used to help others recognize this site.", "textdomain": "default", "attributes": { diff --git a/wp-includes/blocks/site-logo/editor-rtl.css b/wp-includes/blocks/site-logo/editor-rtl.css index d1961a328b..28c93091ba 100644 --- a/wp-includes/blocks/site-logo/editor-rtl.css +++ b/wp-includes/blocks/site-logo/editor-rtl.css @@ -154,7 +154,7 @@ bottom: 0; right: 0; border: 1px dashed currentColor; - opacity: 0.3; + opacity: 0.4; pointer-events: none; border-radius: inherit; } @@ -194,7 +194,7 @@ height: 100%; stroke: currentColor; stroke-dasharray: 3; - opacity: 0.3; + opacity: 0.4; } .wp-block-site-logo.wp-block-site-logo.is-selected .components-button.components-button { background: var(--wp-admin-theme-color); diff --git a/wp-includes/blocks/site-logo/editor-rtl.min.css b/wp-includes/blocks/site-logo/editor-rtl.min.css index 2e18b2b6d4..533e9320cc 100644 --- a/wp-includes/blocks/site-logo/editor-rtl.min.css +++ b/wp-includes/blocks/site-logo/editor-rtl.min.css @@ -1 +1 @@ -.wp-block[data-align=center]>.wp-block-site-logo{margin-right:auto;margin-left:auto;text-align:center}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo:not(.is-default-size){display:table}.wp-block-site-logo.is-default-size{width:120px}.wp-block-site-logo.is-default-size img{height:auto;width:100%}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;height:auto;max-width:100%}.wp-block-site-logo.wp-block-site-logo .components-placeholder,.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container{border-radius:inherit}.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{height:120px;width:120px}.wp-block-site-logo.wp-block-site-logo .components-placeholder{justify-content:center;align-items:center;box-shadow:none;padding:0;min-height:48px;min-width:48px;height:100%;width:100%;color:currentColor;background:transparent}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__preview{position:absolute;top:4px;left:4px;bottom:4px;right:4px;background:hsla(0,0%,100%,.8);display:flex;align-items:center;justify-content:center}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-drop-zone__content-text{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder:before{content:"";display:block;position:absolute;top:0;left:0;bottom:0;right:0;border:1px dashed;opacity:.3;pointer-events:none;border-radius:inherit}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__fieldset{width:auto}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{color:inherit;padding:0;display:flex;justify-content:center;align-items:center;width:48px;height:48px;border-radius:50%;position:relative;visibility:hidden;background:transparent;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{transition-duration:0s;transition-delay:0s}}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button>svg{color:#fff}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__illustration{position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;stroke:currentColor;stroke-dasharray:3;opacity:.3}.wp-block-site-logo.wp-block-site-logo.is-selected .components-button.components-button{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-style:solid;color:#fff;opacity:1;visibility:visible} \ No newline at end of file +.wp-block[data-align=center]>.wp-block-site-logo{margin-right:auto;margin-left:auto;text-align:center}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo:not(.is-default-size){display:table}.wp-block-site-logo.is-default-size{width:120px}.wp-block-site-logo.is-default-size img{height:auto;width:100%}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;height:auto;max-width:100%}.wp-block-site-logo.wp-block-site-logo .components-placeholder,.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container{border-radius:inherit}.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{height:120px;width:120px}.wp-block-site-logo.wp-block-site-logo .components-placeholder{justify-content:center;align-items:center;box-shadow:none;padding:0;min-height:48px;min-width:48px;height:100%;width:100%;color:currentColor;background:transparent}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__preview{position:absolute;top:4px;left:4px;bottom:4px;right:4px;background:hsla(0,0%,100%,.8);display:flex;align-items:center;justify-content:center}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-drop-zone__content-text{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder:before{content:"";display:block;position:absolute;top:0;left:0;bottom:0;right:0;border:1px dashed;opacity:.4;pointer-events:none;border-radius:inherit}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__fieldset{width:auto}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{color:inherit;padding:0;display:flex;justify-content:center;align-items:center;width:48px;height:48px;border-radius:50%;position:relative;visibility:hidden;background:transparent;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{transition-duration:0s;transition-delay:0s}}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button>svg{color:#fff}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__illustration{position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;stroke:currentColor;stroke-dasharray:3;opacity:.4}.wp-block-site-logo.wp-block-site-logo.is-selected .components-button.components-button{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-style:solid;color:#fff;opacity:1;visibility:visible} \ No newline at end of file diff --git a/wp-includes/blocks/site-logo/editor.css b/wp-includes/blocks/site-logo/editor.css index cc26076aa3..95aae48ae3 100644 --- a/wp-includes/blocks/site-logo/editor.css +++ b/wp-includes/blocks/site-logo/editor.css @@ -154,7 +154,7 @@ bottom: 0; left: 0; border: 1px dashed currentColor; - opacity: 0.3; + opacity: 0.4; pointer-events: none; border-radius: inherit; } @@ -194,7 +194,7 @@ height: 100%; stroke: currentColor; stroke-dasharray: 3; - opacity: 0.3; + opacity: 0.4; } .wp-block-site-logo.wp-block-site-logo.is-selected .components-button.components-button { background: var(--wp-admin-theme-color); diff --git a/wp-includes/blocks/site-logo/editor.min.css b/wp-includes/blocks/site-logo/editor.min.css index 80a820e5ef..faf1d1f84f 100644 --- a/wp-includes/blocks/site-logo/editor.min.css +++ b/wp-includes/blocks/site-logo/editor.min.css @@ -1 +1 @@ -.wp-block[data-align=center]>.wp-block-site-logo{margin-left:auto;margin-right:auto;text-align:center}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo:not(.is-default-size){display:table}.wp-block-site-logo.is-default-size{width:120px}.wp-block-site-logo.is-default-size img{height:auto;width:100%}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;height:auto;max-width:100%}.wp-block-site-logo.wp-block-site-logo .components-placeholder,.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container{border-radius:inherit}.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{height:120px;width:120px}.wp-block-site-logo.wp-block-site-logo .components-placeholder{justify-content:center;align-items:center;box-shadow:none;padding:0;min-height:48px;min-width:48px;height:100%;width:100%;color:currentColor;background:transparent}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__preview{position:absolute;top:4px;right:4px;bottom:4px;left:4px;background:hsla(0,0%,100%,.8);display:flex;align-items:center;justify-content:center}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-drop-zone__content-text{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder:before{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;border:1px dashed;opacity:.3;pointer-events:none;border-radius:inherit}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__fieldset{width:auto}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{color:inherit;padding:0;display:flex;justify-content:center;align-items:center;width:48px;height:48px;border-radius:50%;position:relative;visibility:hidden;background:transparent;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{transition-duration:0s;transition-delay:0s}}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button>svg{color:#fff}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__illustration{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;stroke:currentColor;stroke-dasharray:3;opacity:.3}.wp-block-site-logo.wp-block-site-logo.is-selected .components-button.components-button{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-style:solid;color:#fff;opacity:1;visibility:visible} \ No newline at end of file +.wp-block[data-align=center]>.wp-block-site-logo{margin-left:auto;margin-right:auto;text-align:center}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo:not(.is-default-size){display:table}.wp-block-site-logo.is-default-size{width:120px}.wp-block-site-logo.is-default-size img{height:auto;width:100%}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;height:auto;max-width:100%}.wp-block-site-logo.wp-block-site-logo .components-placeholder,.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container{border-radius:inherit}.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{height:120px;width:120px}.wp-block-site-logo.wp-block-site-logo .components-placeholder{justify-content:center;align-items:center;box-shadow:none;padding:0;min-height:48px;min-width:48px;height:100%;width:100%;color:currentColor;background:transparent}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__preview{position:absolute;top:4px;right:4px;bottom:4px;left:4px;background:hsla(0,0%,100%,.8);display:flex;align-items:center;justify-content:center}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-drop-zone__content-text{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder:before{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;border:1px dashed;opacity:.4;pointer-events:none;border-radius:inherit}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__fieldset{width:auto}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{color:inherit;padding:0;display:flex;justify-content:center;align-items:center;width:48px;height:48px;border-radius:50%;position:relative;visibility:hidden;background:transparent;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{transition-duration:0s;transition-delay:0s}}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button>svg{color:#fff}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__illustration{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;stroke:currentColor;stroke-dasharray:3;opacity:.4}.wp-block-site-logo.wp-block-site-logo.is-selected .components-button.components-button{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-style:solid;color:#fff;opacity:1;visibility:visible} \ No newline at end of file diff --git a/wp-includes/blocks/site-tagline/block.json b/wp-includes/blocks/site-tagline/block.json index b048b873ef..61428975ed 100644 --- a/wp-includes/blocks/site-tagline/block.json +++ b/wp-includes/blocks/site-tagline/block.json @@ -2,7 +2,7 @@ "apiVersion": 2, "name": "core/site-tagline", "title": "Site Tagline", - "category": "design", + "category": "theme", "description": "Describe in a few words what the website is about. The tagline can be used in search results or when sharing on social networks even if it's not displayed in the theme design.", "keywords": [ "description" ], "textdomain": "default", diff --git a/wp-includes/blocks/site-title/block.json b/wp-includes/blocks/site-title/block.json index a16d1c9f3b..7030ed68cf 100644 --- a/wp-includes/blocks/site-title/block.json +++ b/wp-includes/blocks/site-title/block.json @@ -2,7 +2,7 @@ "apiVersion": 2, "name": "core/site-title", "title": "Site Title", - "category": "design", + "category": "theme", "description": "Displays the name of this site. Update the block, and the changes apply everywhere it’s used. This will also appear in the browser title bar and in search results.", "textdomain": "default", "attributes": { diff --git a/wp-includes/blocks/template-part.php b/wp-includes/blocks/template-part.php index 9f28002b32..fe16679a1f 100644 --- a/wp-includes/blocks/template-part.php +++ b/wp-includes/blocks/template-part.php @@ -53,7 +53,8 @@ function render_block_core_template_part( $attributes ) { } else { // Else, if the template part was provided by the active theme, // render the corresponding file content. - $template_part_file_path = get_theme_file_path( '/block-template-parts/' . $attributes['slug'] . '.html' ); + $theme_folders = get_block_theme_folders(); + $template_part_file_path = get_theme_file_path( '/' . $theme_folders['wp_template_part'] . '/' . $attributes['slug'] . '.html' ); if ( 0 === validate_file( $attributes['slug'] ) && file_exists( $template_part_file_path ) ) { $content = file_get_contents( $template_part_file_path ); $content = is_string( $content ) && '' !== $content diff --git a/wp-includes/blocks/template-part/block.json b/wp-includes/blocks/template-part/block.json index 7e85b0f6aa..647dcdd6f1 100644 --- a/wp-includes/blocks/template-part/block.json +++ b/wp-includes/blocks/template-part/block.json @@ -29,7 +29,8 @@ "spacing": { "padding": true }, - "__experimentalLayout": true + "__experimentalLayout": true, + "reusable": false }, "editorStyle": "wp-block-template-part-editor" } diff --git a/wp-includes/class-wp-block-template.php b/wp-includes/class-wp-block-template.php index 3ea090830f..1d73d281fe 100644 --- a/wp-includes/class-wp-block-template.php +++ b/wp-includes/class-wp-block-template.php @@ -77,6 +77,16 @@ class WP_Block_Template { */ public $source = 'theme'; + /** + * Origin of the content when the content has been customized. + * When customized, origin takes on the value of source and source becomes + * 'custom'. + * + * @since 5.9.0 + * @var string + */ + public $origin; + /** * Post Id. * @@ -109,4 +119,14 @@ class WP_Block_Template { * @var bool */ public $is_custom = true; + + /** + * Author. + * + * A value of 0 means no author. + * + * @since 5.9.0 + * @var int + */ + public $author; } diff --git a/wp-includes/class-wp-theme-json-resolver.php b/wp-includes/class-wp-theme-json-resolver.php index 2319aef901..cfa1c6cd52 100644 --- a/wp-includes/class-wp-theme-json-resolver.php +++ b/wp-includes/class-wp-theme-json-resolver.php @@ -222,35 +222,52 @@ class WP_Theme_JSON_Resolver { * * @since 5.9.0 * - * @param bool $should_create_cpt Optional. Whether a new custom post type should be created if none are found. - * False by default. - * @param array $post_status_filter Filter Optional. custom post type by post status. - * ['publish'] by default, so it only fetches published posts. - * + * @param WP_Theme $theme The theme object. If empty, it + * defaults to the current theme. + * @param bool $should_create_cpt Optional. Whether a new custom post + * type should be created if none are + * found. False by default. + * @param array $post_status_filter Filter Optional. custom post type by + * post status. ['publish'] by default, + * so it only fetches published posts. * @return array Custom Post Type for the user's origin config. */ - private static function get_user_data_from_custom_post_type( $should_create_cpt = false, $post_status_filter = array( 'publish' ) ) { + public static function get_user_data_from_custom_post_type( $theme, $should_create_cpt = false, $post_status_filter = array( 'publish' ) ) { + if ( ! $theme instanceof WP_Theme ) { + $theme = wp_get_theme(); + } $user_cpt = array(); $post_type_filter = 'wp_global_styles'; - $query = new WP_Query( - array( - 'posts_per_page' => 1, - 'orderby' => 'date', - 'order' => 'desc', - 'post_type' => $post_type_filter, - 'post_status' => $post_status_filter, - 'tax_query' => array( - array( - 'taxonomy' => 'wp_theme', - 'field' => 'name', - 'terms' => wp_get_theme()->get_stylesheet(), - ), + $args = array( + 'numberposts' => 1, + 'orderby' => 'date', + 'order' => 'desc', + 'post_type' => $post_type_filter, + 'post_status' => $post_status_filter, + 'tax_query' => array( + array( + 'taxonomy' => 'wp_theme', + 'field' => 'name', + 'terms' => $theme->get_stylesheet(), ), - ) + ), ); - if ( is_array( $query->posts ) && ( 1 === $query->post_count ) ) { - $user_cpt = $query->posts[0]->to_array(); + $cache_key = sprintf( 'wp_global_styles_%s', md5( serialize( $args ) ) ); + $post_id = wp_cache_get( $cache_key ); + + if ( (int) $post_id > 0 ) { + return get_post( $post_id, ARRAY_A ); + } + + // Special case: '-1' is a results not found. + if ( -1 === $post_id && ! $should_create_cpt ) { + return $user_cpt; + } + + $recent_posts = wp_get_recent_posts( $args ); + if ( is_array( $recent_posts ) && ( count( $recent_posts ) === 1 ) ) { + $user_cpt = $recent_posts[0]; } elseif ( $should_create_cpt ) { $cpt_post_id = wp_insert_post( array( @@ -265,13 +282,10 @@ class WP_Theme_JSON_Resolver { ), true ); - - if ( is_wp_error( $cpt_post_id ) ) { - $user_cpt = array(); - } else { - $user_cpt = get_post( $cpt_post_id, ARRAY_A ); - } + $user_cpt = get_post( $cpt_post_id, ARRAY_A ); } + $cache_expiration = $user_cpt ? DAY_IN_SECONDS : HOUR_IN_SECONDS; + wp_cache_set( $cache_key, $user_cpt ? $user_cpt['ID'] : -1, '', $cache_expiration ); return $user_cpt; } @@ -289,7 +303,7 @@ class WP_Theme_JSON_Resolver { } $config = array(); - $user_cpt = self::get_user_data_from_custom_post_type(); + $user_cpt = self::get_user_data_from_custom_post_type( wp_get_theme() ); if ( array_key_exists( 'post_content', $user_cpt ) ) { $decoded_data = json_decode( $user_cpt['post_content'], true ); @@ -297,7 +311,7 @@ class WP_Theme_JSON_Resolver { $json_decoding_error = json_last_error(); if ( JSON_ERROR_NONE !== $json_decoding_error ) { trigger_error( 'Error when decoding a theme.json schema for user data. ' . json_last_error_msg() ); - return new WP_Theme_JSON( $config, 'user' ); + return new WP_Theme_JSON( $config, 'custom' ); } // Very important to verify if the flag isGlobalStylesUserThemeJSON is true. @@ -311,15 +325,15 @@ class WP_Theme_JSON_Resolver { $config = $decoded_data; } } - self::$user = new WP_Theme_JSON( $config, 'user' ); + self::$user = new WP_Theme_JSON( $config, 'custom' ); return self::$user; } /** * There are three sources of data (origins) for a site: - * default, theme, and user. The user's has higher priority - * than the theme's, and the theme's higher than core's. + * default, theme, and custom. The custom's has higher priority + * than the theme's, and the theme's higher than default's. * * Unlike the getters {@link get_core_data}, * {@link get_theme_data}, and {@link get_user_data}, @@ -336,11 +350,11 @@ class WP_Theme_JSON_Resolver { * @since 5.9.0 Add user data and change the arguments. * * @param string $origin Optional. To what level should we merge data. - * Valid values are 'theme' or 'user'. - * Default is 'user'. + * Valid values are 'theme' or 'custom'. + * Default is 'custom'. * @return WP_Theme_JSON */ - public static function get_merged_data( $origin = 'user' ) { + public static function get_merged_data( $origin = 'custom' ) { if ( is_array( $origin ) ) { _deprecated_argument( __FUNCTION__, '5.9' ); } @@ -349,7 +363,7 @@ class WP_Theme_JSON_Resolver { $result->merge( self::get_core_data() ); $result->merge( self::get_theme_data() ); - if ( 'user' === $origin ) { + if ( 'custom' === $origin ) { $result->merge( self::get_user_data() ); } @@ -369,7 +383,7 @@ class WP_Theme_JSON_Resolver { return self::$user_custom_post_type_id; } - $user_cpt = self::get_user_data_from_custom_post_type( true ); + $user_cpt = self::get_user_data_from_custom_post_type( wp_get_theme(), true ); if ( array_key_exists( 'ID', $user_cpt ) ) { self::$user_custom_post_type_id = $user_cpt['ID']; diff --git a/wp-includes/class-wp-theme-json.php b/wp-includes/class-wp-theme-json.php index 455eca675c..635f670cff 100644 --- a/wp-includes/class-wp-theme-json.php +++ b/wp-includes/class-wp-theme-json.php @@ -53,7 +53,7 @@ class WP_Theme_JSON { const VALID_ORIGINS = array( 'default', 'theme', - 'user', + 'custom', ); /** @@ -75,15 +75,28 @@ class WP_Theme_JSON { * This contains the necessary metadata to process them: * * - path => where to find the preset within the settings section + * - override => whether a theme preset with the same slug as a default preset + * can override it * - value_key => the key that represents the value - * - value_func => the callback to render the value (either value_key or value_func should be present) + * - value_func => optionally, instead of value_key, a function to generate + * the value that takes a preset as an argument + * (either value_key or value_func should be present) * - css_vars => template string to use in generating the CSS Custom Property. * Example output: "--wp--preset--duotone--blue: <value>" will generate as many CSS Custom Properties as presets defined * substituting the $slug for the slug's value for each preset value. - * - classes => array containing a structure with the classes to generate for the presets. - * Each key is a template string to resolve similarly to the css_vars and each value is the CSS property to use for that class. - * Example output: ".has-blue-color { color: <value> }" - * - properties => a list of CSS properties to be used by kses to check the preset value is safe. + * - classes => array containing a structure with the classes to + * generate for the presets, where for each array item + * the key is the class name and the value the property name. + * The "$slug" substring will be replaced by the slug of each preset. + * For example: + * 'classes' => array( + * '.has-$slug-color' => 'color', + * '.has-$slug-background-color' => 'background-color', + * '.has-$slug-border-color' => 'border-color', + * ) + * - properties => array of CSS properties to be used by kses to + * validate the content of each preset + * by means of the remove_insecure_properties method. * * @since 5.8.0 * @since 5.9.0 Added new presets and simplified the metadata structure. @@ -92,6 +105,7 @@ class WP_Theme_JSON { const PRESETS_METADATA = array( array( 'path' => array( 'color', 'palette' ), + 'override' => false, 'value_key' => 'color', 'css_vars' => '--wp--preset--color--$slug', 'classes' => array( @@ -103,6 +117,7 @@ class WP_Theme_JSON { ), array( 'path' => array( 'color', 'gradients' ), + 'override' => false, 'value_key' => 'gradient', 'css_vars' => '--wp--preset--gradient--$slug', 'classes' => array( '.has-$slug-gradient-background' => 'background' ), @@ -110,6 +125,7 @@ class WP_Theme_JSON { ), array( 'path' => array( 'color', 'duotone' ), + 'override' => true, 'value_func' => 'wp_render_duotone_filter_preset', 'css_vars' => '--wp--preset--duotone--$slug', 'classes' => array(), @@ -117,6 +133,7 @@ class WP_Theme_JSON { ), array( 'path' => array( 'typography', 'fontSizes' ), + 'override' => true, 'value_key' => 'size', 'css_vars' => '--wp--preset--font-size--$slug', 'classes' => array( '.has-$slug-font-size' => 'font-size' ), @@ -124,6 +141,7 @@ class WP_Theme_JSON { ), array( 'path' => array( 'typography', 'fontFamilies' ), + 'override' => true, 'value_key' => 'fontFamily', 'css_vars' => '--wp--preset--font-family--$slug', 'classes' => array( '.has-$slug-font-family' => 'font-family' ), @@ -213,13 +231,14 @@ class WP_Theme_JSON { * @var array */ const VALID_SETTINGS = array( - 'border' => array( + 'appearanceTools' => null, + 'border' => array( 'color' => null, 'radius' => null, 'style' => null, 'width' => null, ), - 'color' => array( + 'color' => array( 'background' => null, 'custom' => null, 'customDuotone' => null, @@ -232,18 +251,18 @@ class WP_Theme_JSON { 'palette' => null, 'text' => null, ), - 'custom' => null, - 'layout' => array( + 'custom' => null, + 'layout' => array( 'contentSize' => null, 'wideSize' => null, ), - 'spacing' => array( + 'spacing' => array( 'blockGap' => null, 'margin' => null, 'padding' => null, 'units' => null, ), - 'typography' => array( + 'typography' => array( 'customFontSize' => null, 'dropCap' => null, 'fontFamilies' => null, @@ -297,6 +316,8 @@ class WP_Theme_JSON { ); /** + * The valid elements that can be found under styles. + * * @since 5.8.0 * @var string[] */ @@ -326,7 +347,7 @@ class WP_Theme_JSON { * * @param array $theme_json A structure that follows the theme.json schema. * @param string $origin Optional. What source of data this object represents. - * One of 'default', 'theme', or 'user'. Default 'theme'. + * One of 'default', 'theme', or 'custom'. Default 'theme'. */ public function __construct( $theme_json = array(), $origin = 'theme' ) { if ( ! in_array( $origin, self::VALID_ORIGINS, true ) ) { @@ -336,7 +357,8 @@ class WP_Theme_JSON { $this->theme_json = WP_Theme_JSON_Schema::migrate( $theme_json ); $valid_block_names = array_keys( self::get_blocks_metadata() ); $valid_element_names = array_keys( self::ELEMENTS ); - $this->theme_json = self::sanitize( $this->theme_json, $valid_block_names, $valid_element_names ); + $theme_json = self::sanitize( $this->theme_json, $valid_block_names, $valid_element_names ); + $this->theme_json = self::maybe_opt_in_into_settings( $theme_json ); // Internally, presets are keyed by origin. $nodes = self::get_setting_nodes( $this->theme_json ); @@ -345,7 +367,8 @@ class WP_Theme_JSON { $path = array_merge( $node['path'], $preset_metadata['path'] ); $preset = _wp_array_get( $this->theme_json, $path, null ); if ( null !== $preset ) { - if ( 'user' !== $origin || isset( $preset[0] ) ) { + // If the preset is not already keyed by origin. + if ( isset( $preset[0] ) || empty( $preset ) ) { _wp_array_set( $this->theme_json, $path, array( $origin => $preset ) ); } } @@ -353,6 +376,61 @@ class WP_Theme_JSON { } } + /** + * Enables some opt-in settings if theme declared support. + * + * @since 5.9.0 + * + * @param array $theme_json A theme.json structure to modify. + * @return array The modified theme.json structure. + */ + private static function maybe_opt_in_into_settings( $theme_json ) { + $new_theme_json = $theme_json; + + if ( isset( $new_theme_json['settings']['appearanceTools'] ) ) { + self::do_opt_in_into_settings( $new_theme_json['settings'] ); + } + + if ( isset( $new_theme_json['settings']['blocks'] ) && is_array( $new_theme_json['settings']['blocks'] ) ) { + foreach ( $new_theme_json['settings']['blocks'] as &$block ) { + if ( isset( $block['appearanceTools'] ) ) { + self::do_opt_in_into_settings( $block ); + } + } + } + + return $new_theme_json; + } + + /** + * Enables some settings. + * + * @since 5.9.0 + * + * @param array $context The context to which the settings belong. + */ + private static function do_opt_in_into_settings( &$context ) { + $to_opt_in = array( + array( 'border', 'color' ), + array( 'border', 'radius' ), + array( 'border', 'style' ), + array( 'border', 'width' ), + array( 'color', 'link' ), + array( 'spacing', 'blockGap' ), + array( 'spacing', 'margin' ), + array( 'spacing', 'padding' ), + array( 'typography', 'lineHeight' ), + ); + + foreach ( $to_opt_in as $path ) { + if ( null === _wp_array_get( $context, $path, null ) ) { + _wp_array_set( $context, $path, true ); + } + } + + unset( $context['appearanceTools'] ); + } + /** * Sanitizes the input according to the schemas. * @@ -414,6 +492,7 @@ class WP_Theme_JSON { return $output; } + /** * Returns the metadata for each block. * @@ -1378,31 +1457,137 @@ class WP_Theme_JSON { $this->theme_json = array_replace_recursive( $this->theme_json, $incoming_data ); /* - * The array_replace_recursive algorithm merges at the leaf level. - * For leaf values that are arrays it will use the numeric indexes for replacement. - * In those cases, we want to replace the existing with the incoming value, if it exists. + * The array_replace_recursive algorithm merges at the leaf level, + * but we don't want leaf arrays to be merged, so we overwrite it. + * + * For leaf values that are sequential arrays it will use the numeric indexes for replacement. + * We rather replace the existing with the incoming value, if it exists. + * This is the case of spacing.units. + * + * For leaf values that are associative arrays it will merge them as expected. + * This is also not the behavior we want for the current associative arrays (presets). + * We rather replace the existing with the incoming value, if it exists. + * This happens, for example, when we merge data from theme.json upon existing + * theme supports or when we merge anything coming from the same source twice. + * This is the case of color.palette, color.gradients, color.duotone, + * typography.fontSizes, or typography.fontFamilies. + * + * Additionally, for some preset types, we also want to make sure the + * values they introduce don't conflict with default values. We do so + * by checking the incoming slugs for theme presets and compare them + * with the equivalent dfefault presets: if a slug is present as a default + * we remove it from the theme presets. */ - $to_replace = array(); - $to_replace[] = array( 'spacing', 'units' ); - foreach ( self::VALID_ORIGINS as $origin ) { - $to_replace[] = array( 'color', 'duotone', $origin ); - $to_replace[] = array( 'color', 'palette', $origin ); - $to_replace[] = array( 'color', 'gradients', $origin ); - $to_replace[] = array( 'typography', 'fontSizes', $origin ); - $to_replace[] = array( 'typography', 'fontFamilies', $origin ); - } + $nodes = self::get_setting_nodes( $incoming_data ); + $slugs_global = self::get_slugs_not_to_override( $this->theme_json ); + foreach ( $nodes as $node ) { + $slugs_node = self::get_slugs_not_to_override( $this->theme_json, $node['path'] ); + $slugs = array_merge_recursive( $slugs_global, $slugs_node ); - $nodes = self::get_setting_nodes( $this->theme_json ); - foreach ( $nodes as $metadata ) { - foreach ( $to_replace as $property_path ) { - $path = array_merge( $metadata['path'], $property_path ); - $node = _wp_array_get( $incoming_data, $path, null ); - if ( isset( $node ) ) { - _wp_array_set( $this->theme_json, $path, $node ); + // Replace the spacing.units. + $path = array_merge( $node['path'], array( 'spacing', 'units' ) ); + $content = _wp_array_get( $incoming_data, $path, null ); + if ( isset( $content ) ) { + _wp_array_set( $this->theme_json, $path, $content ); + } + + // Replace the presets. + foreach ( self::PRESETS_METADATA as $preset ) { + foreach ( self::VALID_ORIGINS as $origin ) { + $path = array_merge( $node['path'], $preset['path'], array( $origin ) ); + $content = _wp_array_get( $incoming_data, $path, null ); + if ( ! isset( $content ) ) { + continue; + } + + if ( + ( 'theme' !== $origin ) || + ( 'theme' === $origin && $preset['override'] ) + ) { + _wp_array_set( $this->theme_json, $path, $content ); + } + + if ( 'theme' === $origin && ! $preset['override'] ) { + $content = self::filter_slugs( $content, $preset['path'], $slugs ); + _wp_array_set( $this->theme_json, $path, $content ); + } } } } + } + /** + * Returns the slugs for all the presets that cannot be overriden + * in the given path. It returns an associative array + * whose keys are the preset paths and the leafs is the list of slugs. + * + * For example: + * + * array( + * 'color' => array( + * 'palette' => array( 'slug-1', 'slug-2' ), + * 'gradients' => array( 'slug-3', 'slug-4' ), + * ), + * ) + * + * @since 5.9.0 + * + * @param array $data A theme.json like structure to inspect. + * @param array $node_path The path to inspect. It's 'settings' by default. + * + * @return array An associative array containing the slugs for the given path. + */ + private static function get_slugs_not_to_override( $data, $node_path = array( 'settings' ) ) { + $slugs = array(); + foreach ( self::PRESETS_METADATA as $metadata ) { + if ( $metadata['override'] ) { + continue; + } + + $slugs_for_preset = array(); + $path = array_merge( $node_path, $metadata['path'], array( 'default' ) ); + $preset = _wp_array_get( $data, $path, null ); + if ( ! isset( $preset ) ) { + continue; + } + + $slugs_for_preset = array_map( + function( $value ) { + return isset( $value['slug'] ) ? $value['slug'] : null; + }, + $preset + ); + _wp_array_set( $slugs, $metadata['path'], $slugs_for_preset ); + } + + return $slugs; + } + + /** + * Removes the preset values whose slug is equal to any of given slugs. + * + * @since 5.9.0 + * + * @param array $node The node with the presets to validate. + * @param array $path The path to the preset type to inspect. + * @param array $slugs The slugs that should not be overriden. + * + * @return array The new node + */ + private static function filter_slugs( $node, $path, $slugs ) { + $slugs_for_preset = _wp_array_get( $slugs, $path, array() ); + if ( empty( $slugs_for_preset ) ) { + return $node; + } + + $new_node = array(); + foreach ( $node as $value ) { + if ( isset( $value['slug'] ) && ! in_array( $value['slug'], $slugs_for_preset, true ) ) { + $new_node[] = $value; + } + } + + return $new_node; } /** diff --git a/wp-includes/css/dist/block-library/editor-rtl.css b/wp-includes/css/dist/block-library/editor-rtl.css index fa50a5ef57..e0a939bc65 100644 --- a/wp-includes/css/dist/block-library/editor-rtl.css +++ b/wp-includes/css/dist/block-library/editor-rtl.css @@ -820,6 +820,7 @@ figure.wp-block-gallery .components-spinner { bottom: 0; right: 0; z-index: 1; + pointer-events: none; } .blocks-gallery-item figure.is-transient img { opacity: 0.3; @@ -1975,7 +1976,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op bottom: 0; right: 0; border: 1px dashed currentColor; - opacity: 0.3; + opacity: 0.4; pointer-events: none; border-radius: inherit; } @@ -2015,7 +2016,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op height: 100%; stroke: currentColor; stroke-dasharray: 3; - opacity: 0.3; + opacity: 0.4; } .wp-block-site-logo.wp-block-site-logo.is-selected .components-button.components-button { background: var(--wp-admin-theme-color); @@ -2502,7 +2503,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op bottom: 0; right: 0; border: 1px dashed currentColor; - opacity: 0.3; + opacity: 0.4; pointer-events: none; border-radius: inherit; } @@ -2547,7 +2548,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op height: 100%; stroke: currentColor; stroke-dasharray: 3; - opacity: 0.3; + opacity: 0.4; } .wp-block-post-featured-image.wp-block-post-featured-image[style*=height] .components-placeholder { min-height: 48px; diff --git a/wp-includes/css/dist/block-library/editor-rtl.min.css b/wp-includes/css/dist/block-library/editor-rtl.min.css index 08678e4db2..8acb31dcbe 100644 --- a/wp-includes/css/dist/block-library/editor-rtl.min.css +++ b/wp-includes/css/dist/block-library/editor-rtl.min.css @@ -1 +1 @@ -ul.wp-block-archives{padding-right:2.5em}.wp-block-audio{margin-right:0;margin-left:0}.edit-post-visual-editor .block-library-block__reusable-block-container .is-root-container{padding-right:0;padding-left:0}.edit-post-visual-editor .block-library-block__reusable-block-container .block-editor-writing-flow{display:block}.edit-post-visual-editor .block-library-block__reusable-block-container .components-disabled .block-list-appender{display:none}.wp-block[data-align=center]>.wp-block-button{text-align:center;margin-right:auto;margin-left:auto}.wp-block[data-align=right]>.wp-block-button{text-align:right}.wp-block-button{position:relative;cursor:text}.wp-block-button:not(.has-text-color):not(.is-style-outline) [data-rich-text-placeholder]:after{color:#fff}.wp-block-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.wp-block-button[data-rich-text-placeholder]:after{opacity:.8}.wp-block-button__inline-link{color:#757575;height:0;overflow:hidden;max-width:290px}.wp-block-button__inline-link-input__suggestions{max-width:290px}@media (min-width:782px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:260px}}@media (min-width:960px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:290px}}.is-selected .wp-block-button__inline-link{height:auto;overflow:visible}.wp-button-label__width .components-button-group{display:block}.wp-button-label__width .components-base-control__field{margin-bottom:12px}div[data-type="core/button"]{display:table}.wp-block-buttons>.wp-block,.wp-block-buttons>.wp-block-button.wp-block-button.wp-block-button.wp-block-button.wp-block-button{margin:0}.wp-block-buttons>.block-list-appender{display:inline-flex;align-items:center}.wp-block-buttons.is-vertical>.block-list-appender .block-list-appender__toggle{justify-content:flex-start}.wp-block-buttons>.wp-block-button:focus{box-shadow:none}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center]{margin-right:auto;margin-left:auto;margin-top:0;width:100%}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center] .wp-block-button{margin-bottom:0}.wp-block[data-align=center]>.wp-block-buttons{align-items:center;justify-content:center}.wp-block[data-align=right]>.wp-block-buttons{justify-content:flex-end}.wp-block-categories ul{padding-right:2.5em}.wp-block-categories ul ul{margin-top:6px}.wp-block-columns :where(.wp-block){max-width:none;margin-right:0;margin-left:0}@media (min-width:600px){.editor-styles-wrapper .block-editor-block-list__block.wp-block-column:nth-child(2n){margin-right:var(--wp--style--block-gap,2em)}}@media (min-width:782px){.editor-styles-wrapper .block-editor-block-list__block.wp-block-column:not(:first-child){margin-right:var(--wp--style--block-gap,2em)}}.block-editor-block-list__block.wp-block-column.wp-block-column{margin-top:0;margin-bottom:0}.editor-styles-wrapper .wp-block-cover{box-sizing:border-box}.wp-block-cover.is-placeholder{min-height:auto!important;padding:0!important}.wp-block-cover.is-placeholder .block-library-cover__resize-container{display:none}.wp-block-cover.is-placeholder .components-placeholder.is-large{min-height:240px;justify-content:flex-start;z-index:1}.wp-block-cover.is-placeholder .components-placeholder.is-large+.block-library-cover__resize-container{min-height:240px;display:block}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover.is-transient:before{background-color:#fff;opacity:.3}.wp-block-cover .components-spinner{position:absolute;z-index:1;top:50%;right:50%;transform:translate(50%,-50%);margin:0}.wp-block-cover .block-editor-block-list__layout{width:100%}.wp-block-cover .wp-block-cover__inner-container{text-align:right;margin-right:0;margin-left:0}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:420px;width:100%}.block-library-cover__reset-button{margin-right:auto}.block-library-cover__resize-container{position:absolute!important;top:0;right:0;left:0;bottom:0;min-height:50px}.block-library-cover__resize-container:not(.is-resizing){height:auto!important}.wp-block-cover>.components-drop-zone .components-drop-zone__content{opacity:.8!important}.block-editor-block-patterns-list__list-item .has-parallax.wp-block-cover{background-attachment:scroll}.wp-block-embed{margin-right:0;margin-left:0;clear:both}.wp-block-embed.is-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1em;min-height:200px;text-align:center;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e}.wp-block-embed.is-loading p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-embed .components-placeholder__error{word-break:break-word}.wp-block-embed .components-placeholder__learn-more{margin-top:1em}.block-library-embed__interactive-overlay{position:absolute;top:0;right:0;left:0;bottom:0;opacity:0}.wp-block[data-align=left]>.wp-block-embed,.wp-block[data-align=right]>.wp-block-embed{max-width:360px;width:100%}.wp-block[data-align=left]>.wp-block-embed .wp-block-embed__wrapper,.wp-block[data-align=right]>.wp-block-embed .wp-block-embed__wrapper{min-width:280px}.wp-block-file{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;margin-bottom:0}.wp-block[data-align=left]>.wp-block-file,.wp-block[data-align=right]>.wp-block-file{height:auto}.wp-block-file .components-resizable-box__container{margin-bottom:1em}.wp-block-file .wp-block-file__preview{margin-bottom:1em;width:100%;height:100%}.wp-block-file .wp-block-file__preview-overlay{position:absolute;top:0;left:0;bottom:0;right:0}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file a{min-width:1em}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-right:.75em}.wp-block-freeform.block-library-rich-text__tinymce{height:auto}.wp-block-freeform.block-library-rich-text__tinymce li,.wp-block-freeform.block-library-rich-text__tinymce p{line-height:1.8}.wp-block-freeform.block-library-rich-text__tinymce ol,.wp-block-freeform.block-library-rich-text__tinymce ul{padding-right:2.5em;margin-right:0}.wp-block-freeform.block-library-rich-text__tinymce blockquote{margin:0;box-shadow:inset 0 0 0 0 #ddd;border-right:4px solid #000;padding-right:1em}.wp-block-freeform.block-library-rich-text__tinymce pre{white-space:pre-wrap;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;color:#1e1e1e}.wp-block-freeform.block-library-rich-text__tinymce>:first-child{margin-top:0}.wp-block-freeform.block-library-rich-text__tinymce>:last-child{margin-bottom:0}.wp-block-freeform.block-library-rich-text__tinymce.mce-edit-focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce a{color:var(--wp-admin-theme-color)}.wp-block-freeform.block-library-rich-text__tinymce:focus a[data-mce-selected]{padding:0 2px;margin:0 -2px;border-radius:2px;box-shadow:0 0 0 1px #e5f5fa;background:#e5f5fa}.wp-block-freeform.block-library-rich-text__tinymce code{padding:2px;border-radius:2px;color:#1e1e1e;background:#f0f0f0;font-family:Menlo,Consolas,monaco,monospace;font-size:14px}.wp-block-freeform.block-library-rich-text__tinymce:focus code[data-mce-selected]{background:#ddd}.wp-block-freeform.block-library-rich-text__tinymce .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-freeform.block-library-rich-text__tinymce .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-freeform.block-library-rich-text__tinymce .aligncenter{display:block;margin-right:auto;margin-left:auto}.wp-block-freeform.block-library-rich-text__tinymce .wp-more-tag{width:96%;height:20px;display:block;margin:15px auto;outline:0;cursor:default;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAADtgAAAAoBAMAAAA86gLBAAAAJFBMVEVMaXG7u7vBwcHDw8POzs68vLzGxsbMzMy+vr7AwMDQ0NDGxsYKLGzpAAAADHRSTlMA///zWf+/f///TMxNVGuqAAABwklEQVR4Ae3dMXLaQBTH4bfj8UCpx8hq0vgKvgFNemhT6Qo6gg6R+0ZahM2QLmyBJ99XWP9V5+o3jIUcLQEAAAAAAAAAAAAAAAAAAAAAAABQ8j0WL9lfTtlt18uNXAUA8O/KVtfa1tdcrOdSh9gCQAMlh1hMNbZZ1bsrsQWABsrhLRbz7z5in/32UbfUMUbkMQCAh5RfGYv82UdMdZ6HS2wjT2ILAI8r3XmM2B3WvM59vfO2xXYW2yYAENuPU8S+X/N67mKxzy225yaxBQCxLV392UdcvwV0jPVUj98ntkBWT7C7+9u2/V/vGtvXIWJ6/4rtbottWa6Ri0NUT/u72LYttrb97LHdvUXMxxrb8TO2W2TF1rYbbLG1bbGNjMi4+2Sbi1FsbbvNFlvbFtt5fDnE3d9sP1/XeIyV2Nr2U2/guZUuptNrH/dPI9eLB6SaAEBs6wPJf3/PNk9tYgsAYrv/8TFuzx/fvkFqGtrEFgDEdpcZUb7ejXy6ntrEFgDENvL6gsas4vbdyKt4DACI7TxElJv/Z7udpqFNbAFAbKduy2uU2trttM/x28UWAAAAAAAAAAAAAAAAAAAAAAAAAADgDyPwGmGTCZp7AAAAAElFTkSuQmCC);background-size:1900px 20px;background-repeat:no-repeat;background-position:50%}.wp-block-freeform.block-library-rich-text__tinymce img::selection{background-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce div.mceTemp{-ms-user-select:element}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption{margin:0;max-width:100%}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption a,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption img{display:block}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption *{-webkit-user-drag:none}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption .wp-caption-dd{padding-top:.5em;margin:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview{width:99.99%;position:relative;clear:both;margin-bottom:16px;border:1px solid transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview iframe{display:block;max-width:100%;background:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .mce-shim{position:absolute;top:0;left:0;bottom:0;right:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected="2"] .mce-shim{display:none}.wp-block-freeform.block-library-rich-text__tinymce .wpview .loading-placeholder{border:1px dashed #ddd;padding:10px}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error{border:1px solid #ddd;padding:1em 0;margin:0;word-wrap:break-word}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error p{margin:0;text-align:center}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .loading-placeholder,.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .wpview-error{border-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .dashicons{display:block;margin:0 auto;width:32px;height:32px;font-size:32px}.wp-block-freeform.block-library-rich-text__tinymce .wpview.wpview-type-gallery:after{content:"";display:table;clear:both}.wp-block-freeform.block-library-rich-text__tinymce .gallery img[data-mce-selected]:focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce .gallery a{cursor:default}.wp-block-freeform.block-library-rich-text__tinymce .gallery{margin:auto -6px;padding:6px 0;line-height:1;overflow-x:hidden}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-item{float:right;margin:0;text-align:center;padding:6px;box-sizing:border-box}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption,.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-icon{margin:0}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption{font-size:13px;margin:4px 0}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-1 .gallery-item{width:100%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-2 .gallery-item{width:50%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-3 .gallery-item{width:33.3333333333%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-4 .gallery-item{width:25%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-5 .gallery-item{width:20%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-6 .gallery-item{width:16.6666666667%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-7 .gallery-item{width:14.2857142857%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-8 .gallery-item{width:12.5%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-9 .gallery-item{width:11.1111111111%}.wp-block-freeform.block-library-rich-text__tinymce .gallery img{max-width:100%;height:auto;border:none;padding:0}div[data-type="core/freeform"]:before{transition:border-color .1s linear,box-shadow .1s linear;border:1px solid #ddd;outline:1px solid transparent}@media (prefers-reduced-motion:reduce){div[data-type="core/freeform"]:before{transition-duration:0s;transition-delay:0s}}div[data-type="core/freeform"].is-selected:before{border-color:#1e1e1e}div[data-type="core/freeform"] .block-editor-block-contextual-toolbar+div{margin-top:0;padding-top:0}div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce:after{content:"";display:table;clear:both}.mce-toolbar-grp .mce-btn.mce-active:hover button,.mce-toolbar-grp .mce-btn.mce-active:hover i,.mce-toolbar-grp .mce-btn.mce-active button,.mce-toolbar-grp .mce-btn.mce-active i{color:#1e1e1e}.mce-toolbar-grp .mce-rtl .mce-flow-layout-item.mce-last{margin-left:0;margin-right:8px}.mce-toolbar-grp .mce-btn i{font-style:normal}.block-library-classic__toolbar{display:none;width:auto;position:sticky;z-index:31;top:0;border:1px solid #ddd;border-bottom:none;border-radius:2px;margin:0 0 8px;padding:0}div[data-type="core/freeform"].is-selected .block-library-classic__toolbar{display:block;border-color:#1e1e1e}.block-library-classic__toolbar .mce-tinymce{box-shadow:none}@media (min-width:600px){.block-library-classic__toolbar{padding:0}}.block-library-classic__toolbar:empty{display:block;background:#f5f5f5;border-bottom:1px solid #e2e4e7}.block-library-classic__toolbar:empty:before{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;content:attr(data-placeholder);color:#555d66;line-height:37px;padding:14px}.block-library-classic__toolbar div.mce-toolbar-grp{border-bottom:1px solid #1e1e1e}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar .mce-menubar>div,.block-library-classic__toolbar .mce-tinymce-inline,.block-library-classic__toolbar .mce-tinymce-inline>div,.block-library-classic__toolbar div.mce-toolbar-grp,.block-library-classic__toolbar div.mce-toolbar-grp>div{height:auto!important;width:100%!important}.block-library-classic__toolbar .mce-container-body.mce-abs-layout{overflow:visible}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar div.mce-toolbar-grp{position:static}.block-library-classic__toolbar .mce-toolbar-grp>div{padding:1px 3px}.block-library-classic__toolbar .mce-toolbar-grp .mce-toolbar:not(:first-child){display:none}.block-library-classic__toolbar.has-advanced-toolbar .mce-toolbar-grp .mce-toolbar{display:block}figure.wp-block-gallery{display:block;margin:0}figure.wp-block-gallery.has-nested-images .components-drop-zone{display:none;pointer-events:none}figure.wp-block-gallery>.blocks-gallery-caption{flex:0 0 100%}figure.wp-block-gallery>.blocks-gallery-media-placeholder-wrapper{flex-basis:100%}figure.wp-block-gallery .wp-block-image .components-notice.is-error{display:block}figure.wp-block-gallery .wp-block-image .components-notice__content{margin:4px 0}figure.wp-block-gallery .wp-block-image .components-notice__dismiss{position:absolute;top:0;left:5px}figure.wp-block-gallery .block-editor-media-placeholder.is-appender .components-placeholder__label{display:none}figure.wp-block-gallery .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{margin-bottom:0}figure.wp-block-gallery .block-editor-media-placeholder{margin:0}figure.wp-block-gallery .block-editor-media-placeholder:before{box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";outline:2px solid transparent;position:absolute;top:0;left:0;bottom:0;right:0;z-index:1;pointer-events:none}figure.wp-block-gallery .block-editor-media-placeholder .components-placeholder__label{display:flex}figure.wp-block-gallery .block-editor-media-placeholder figcaption{z-index:2}figure.wp-block-gallery .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.gallery-settings-buttons .components-button:first-child{margin-left:8px}.gallery-image-sizes .components-base-control__label{display:block;margin-bottom:4px}.gallery-image-sizes .gallery-image-sizes__loading{display:flex;align-items:center;color:#757575;font-size:12px}.gallery-image-sizes .components-spinner{margin:0 4px 0 8px}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected:before{box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";outline:2px solid transparent;position:absolute;top:0;left:0;bottom:0;right:0;z-index:1}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu{display:inline-flex}.blocks-gallery-item .block-editor-media-placeholder{margin:0;height:100%}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.block-library-gallery-item__inline-menu{display:none;position:absolute;top:-2px;margin:8px;z-index:20;transition:box-shadow .2s ease-out;border-radius:2px;background:#fff;border:1px solid #1e1e1e}@media (prefers-reduced-motion:reduce){.block-library-gallery-item__inline-menu{transition-duration:0s;transition-delay:0s}}.block-library-gallery-item__inline-menu:hover{box-shadow:0 2px 6px rgba(0,0,0,.05)}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__inline-menu{padding:2px}}.block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus){border:none;box-shadow:none}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon,.columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon{padding:0;width:inherit;height:inherit}}.block-library-gallery-item__inline-menu.is-left{right:-2px}.block-library-gallery-item__inline-menu.is-right{left:-2px}.wp-block-gallery ul.blocks-gallery-grid{padding:0;margin:0}.wp-block-update-gallery-modal{max-width:400px}.wp-block-update-gallery-modal .wp-block-update-gallery-modal-buttons{display:flex;justify-content:flex-end}.wp-block-update-gallery-modal .wp-block-update-gallery-modal-buttons .components-button{margin-right:12px}.wp-block-group .block-editor-block-list__insertion-point{right:0;left:0}[data-type="core/group"].is-selected .block-list-appender{margin-right:0;margin-left:0}[data-type="core/group"].is-selected .has-background .block-list-appender{margin-top:18px;margin-bottom:18px}.block-library-html__edit .block-library-html__preview-overlay{position:absolute;width:100%;height:100%;top:0;right:0}.block-library-html__edit .block-editor-plain-text{font-family:Menlo,Consolas,monaco,monospace!important;color:#1e1e1e!important;background:#fff!important;padding:12px!important;border:1px solid #1e1e1e!important;box-shadow:none!important;border-radius:2px!important;max-height:250px;font-size:16px!important}@media (min-width:600px){.block-library-html__edit .block-editor-plain-text{font-size:13px!important}}.block-library-html__edit .block-editor-plain-text:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid transparent!important}figure.wp-block-image:not(.wp-block){margin:0}.wp-block-image{position:relative}.wp-block-image .is-applying img,.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.wp-block-image:not(.is-style-rounded)>div:not(.components-placeholder){border-radius:inherit}.wp-block-image .components-resizable-box__container{display:inline-block}.wp-block-image .components-resizable-box__container img{display:block;width:inherit;height:inherit}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{position:absolute;right:0;left:0;margin:-1px 0}@media (min-width:600px){.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{margin:-1px}}[data-align=full]>.wp-block-image img,[data-align=wide]>.wp-block-image img{height:auto;width:100%}.wp-block[data-align=center]>.wp-block-image,.wp-block[data-align=left]>.wp-block-image,.wp-block[data-align=right]>.wp-block-image{display:table}.wp-block[data-align=center]>.wp-block-image>figcaption,.wp-block[data-align=left]>.wp-block-image>figcaption,.wp-block[data-align=right]>.wp-block-image>figcaption{display:table-caption;caption-side:bottom}.wp-block[data-align=left]>.wp-block-image{margin:.5em 0 .5em 1em}.wp-block[data-align=right]>.wp-block-image{margin:.5em 1em .5em 0}.wp-block[data-align=center]>.wp-block-image{margin-right:auto;margin-left:auto;text-align:center}.wp-block-image__crop-area{position:relative;max-width:100%;width:100%}.wp-block-image__crop-icon{padding:0 8px;min-width:48px;display:flex;justify-content:center;align-items:center}.wp-block-image__crop-icon svg{fill:currentColor}.wp-block-image__zoom .components-popover__content{overflow:visible;min-width:260px}.wp-block-image__zoom .components-range-control{flex:1}.wp-block-image__zoom .components-base-control__field{display:flex;margin-bottom:0;flex-direction:column;align-items:flex-start}.wp-block-image__aspect-ratio{height:46px;margin-bottom:-8px;display:flex;align-items:center}.wp-block-image__aspect-ratio .components-button{width:36px;padding-right:0;padding-left:0}.wp-block-latest-posts{padding-right:2.5em}.wp-block-latest-posts.is-grid{padding-right:0}.wp-block-latest-posts li a>div{display:inline}.edit-post-visual-editor .wp-block-latest-posts.is-grid li{margin-bottom:20px}.wp-block-media-text__media{position:relative}.wp-block-media-text__media.is-transient img{opacity:.3}.wp-block-media-text__media .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.wp-block-media-text .__resizable_base__{grid-column:1/span 2;grid-row:2}.wp-block-media-text .editor-media-container__resizer{width:100%!important}.wp-block-media-text.is-image-fill .editor-media-container__resizer{height:100%!important}.wp-block-media-text>.block-editor-block-list__layout>.block-editor-block-list__block{max-width:unset}.block-editor-block-list__block[data-type="core/more"]{max-width:100%;text-align:center;margin-top:28px;margin-bottom:28px}.wp-block-more{display:block;text-align:center;white-space:nowrap}.wp-block-more input[type=text]{position:relative;font-size:13px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#757575;border:none;box-shadow:none;white-space:nowrap;text-align:center;margin:0;border-radius:4px;background:#fff;padding:6px 8px;height:24px;max-width:100%}.wp-block-more input[type=text]:focus{box-shadow:none}.wp-block-more:before{content:"";position:absolute;top:50%;right:0;left:0;border-top:3px dashed #ccc}.editor-styles-wrapper .wp-block-navigation ul{margin-top:0;margin-bottom:0;margin-right:0;padding-right:0}.editor-styles-wrapper .wp-block-navigation .wp-block-navigation-item.wp-block{margin-right:revert;margin-left:revert}.wp-block-navigation-item__label{display:inline}.wp-block-navigation__container.is-parent-of-selected-block{visibility:visible;opacity:1;overflow:visible}.wp-block-navigation-item,.wp-block-navigation__container{background-color:inherit}.wp-block-navigation:not(.is-selected):not(.has-child-selected) .has-child:hover>.wp-block-navigation__submenu-container{opacity:0;visibility:hidden}.has-child.has-child-selected>.wp-block-navigation__submenu-container,.has-child.is-selected>.wp-block-navigation__submenu-container{display:flex;opacity:1;visibility:visible}.is-dragging-components-draggable .has-child.is-dragging-within>.wp-block-navigation__submenu-container{opacity:1;visibility:visible}.is-editing>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container{opacity:1;visibility:hidden}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container .block-editor-block-draggable-chip-wrapper{visibility:visible}.block-library-colors-selector{width:auto}.block-library-colors-selector .block-library-colors-selector__toggle{display:block;margin:0 auto;padding:3px;width:auto}.block-library-colors-selector .block-library-colors-selector__icon-container{height:30px;position:relative;margin:0 auto;padding:3px;display:flex;align-items:center;border-radius:4px}.block-library-colors-selector .block-library-colors-selector__state-selection{margin-right:auto;margin-left:auto;border-radius:11px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);width:22px;min-width:22px;height:22px;min-height:22px;line-height:20px;padding:2px}.block-library-colors-selector .block-library-colors-selector__state-selection>svg{min-width:auto!important}.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg,.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg path{color:inherit}.block-library-colors-selector__popover .color-palette-controller-container{padding:16px}.block-library-colors-selector__popover .components-base-control__label{height:20px;line-height:20px}.block-library-colors-selector__popover .component-color-indicator{float:left;margin-top:2px}.block-library-colors-selector__popover .components-panel__body-title{display:none}.wp-block-navigation .block-editor-button-block-appender{justify-content:flex-start}.components-placeholder.wp-block-navigation-placeholder{outline:none;padding:0;box-shadow:none;background:none;min-height:0;color:inherit}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset{font-size:inherit}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset .components-button{margin-bottom:0}.is-selected .components-placeholder.wp-block-navigation-placeholder{color:#1e1e1e}.wp-block-navigation-placeholder .components-spinner{margin-top:-4px;margin-right:4px;vertical-align:middle;margin-left:7px}@keyframes loadingpulse{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.wp-block-navigation-placeholder__preview{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;width:100%;overflow:hidden}.wp-block-navigation-placeholder__preview.is-loading{animation:loadingpulse 1s linear infinite;animation-delay:.5s}.wp-block-navigation-placeholder__preview .wp-block-navigation-item.wp-block-navigation-item{position:relative;min-width:72px}.wp-block-navigation-placeholder__preview .wp-block-navigation-item.wp-block-navigation-item:before{display:block;content:"";border-radius:2px;background:currentColor;height:16px;width:100%}.wp-block-navigation-placeholder__preview .wp-block-navigation-placeholder__preview-search-icon{height:24px}.wp-block-navigation-placeholder__preview .wp-block-navigation-placeholder__preview-search-icon svg{fill:currentColor}.wp-block-navigation-placeholder__preview .wp-block-navigation-item.wp-block-navigation-item,.wp-block-navigation-placeholder__preview .wp-block-navigation-placeholder__preview-search-icon{opacity:.3}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__preview:not(.is-loading){display:flex;opacity:0;width:0;overflow:hidden;flex-wrap:nowrap;flex:0}.wp-block-navigation.is-selected .is-medium .wp-block-navigation-placeholder__preview:not(.is-loading),.wp-block-navigation.is-selected .is-small .wp-block-navigation-placeholder__preview:not(.is-loading){display:none}.wp-block-navigation-placeholder__controls{padding:8px;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;flex-direction:row;align-items:center;display:none;position:relative;z-index:1;float:right;width:100%}.is-large .wp-block-navigation-placeholder__controls{padding:4px 8px}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__controls{display:flex}.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions{flex-direction:column}.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr{display:none}.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__icon{margin-left:12px;height:36px}.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator{display:flex;padding:0 0 0 6px;align-items:center;justify-content:flex-start;line-height:0;min-height:36px;margin-right:4px}.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator svg{margin-left:4px}.wp-block-navigation-placeholder__actions{display:flex;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;gap:6px;height:100%}.wp-block-navigation-placeholder__actions .components-dropdown,.wp-block-navigation-placeholder__actions>.components-button{margin-left:0}.wp-block-navigation-placeholder__actions.wp-block-navigation-placeholder__actions hr{border:0;min-height:1px;min-width:1px;background-color:#1e1e1e;margin:auto 0;height:100%;max-height:16px}@media (min-width:600px){.wp-block-navigation__responsive-container:not(.is-menu-open) .components-button.wp-block-navigation__responsive-container-close{display:none}}.wp-block-navigation__responsive-container.is-menu-open{position:fixed;top:155px}@media (min-width:782px){.wp-block-navigation__responsive-container.is-menu-open{top:93px;right:36px}}@media (min-width:960px){.wp-block-navigation__responsive-container.is-menu-open{right:160px}}@media (min-width:782px){.has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open{top:141px}}.is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:141px}.is-sidebar-opened .wp-block-navigation__responsive-container.is-menu-open{left:280px}.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{right:0;top:155px}@media (min-width:782px){.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{top:61px}}@media (min-width:782px){.is-fullscreen-mode .has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open{top:109px}}.is-fullscreen-mode .is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-fullscreen-mode .is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:109px}body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-open{top:0;left:0;bottom:0;right:0}@media (min-width:600px){.wp-block-navigation__responsive-close{pointer-events:none}.wp-block-navigation__responsive-close .block-editor-block-list__layout *,.wp-block-navigation__responsive-close .wp-block-navigation__responsive-container-close{pointer-events:all}}.wp-block-navigation__responsive-close .wp-block-pages-list__item__link{pointer-events:none}.components-button.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close,.components-button.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open{padding:0;height:auto;color:inherit}.is-menu-open .wp-block-navigation__responsive-container-content * .block-list-appender{margin-top:16px}@keyframes fadein{0%{opacity:0}to{opacity:1}}.wp-block-navigation__unsaved-changes{position:relative}.wp-block-navigation__unsaved-changes .components-spinner{position:absolute;top:calc(50% - 9px);right:calc(50% - 9px);opacity:0;animation:fadein .5s linear 2s normal forwards}@keyframes fadeouthalf{0%{opacity:1}to{opacity:.5}}.wp-block-navigation__unsaved-changes-overlay.is-saving{opacity:1;animation:fadeouthalf .5s linear 2s normal forwards}.wp-block-navigation-delete-menu-button{width:100%;justify-content:center;margin-bottom:16px}.wp-block-navigation .has-child{cursor:pointer}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{z-index:28}.wp-block-navigation .has-child:hover .wp-block-navigation__submenu-container{z-index:29}.wp-block-navigation .has-child.has-child-selected>.wp-block-navigation__submenu-container,.wp-block-navigation .has-child.is-selected>.wp-block-navigation__submenu-container{visibility:visible!important;opacity:1!important;min-width:200px!important;height:auto!important;width:auto!important;overflow:visible!important}.wp-block-navigation-item .wp-block-navigation-item__content{cursor:text}.wp-block-navigation-item.is-editing,.wp-block-navigation-item.is-selected{min-width:20px}.wp-block-navigation-item .block-list-appender{margin:16px 16px 16px auto}.wp-block-navigation-link__placeholder{position:relative;text-decoration:none!important;box-shadow:none!important;background-image:none!important}.wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span{--wp-underline-color:var(--wp-admin-theme-color);background-image:linear-gradient(-45deg,transparent 20%,var(--wp-underline-color) 30%,var(--wp-underline-color) 36%,transparent 46%),linear-gradient(-135deg,transparent 54%,var(--wp-underline-color) 64%,var(--wp-underline-color) 70%,transparent 80%);background-position:100% 100%;background-size:6px 3px;background-repeat:repeat-x;padding-bottom:.1em}.is-dark-theme .wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span{--wp-underline-color:#fff}.wp-block-navigation-link__placeholder.wp-block-navigation-item__content{cursor:pointer}.link-control-transform{border-top:1px solid #ccc;padding:0 16px 8px}.link-control-transform__subheading{font-size:11px;text-transform:uppercase;font-weight:500;color:#1e1e1e;margin-bottom:1.5em}.link-control-transform__items{display:flex;justify-content:space-between}.link-control-transform__item{flex-basis:33%;flex-direction:column;gap:8px;height:auto}.wp-block-navigation-submenu{display:block}.wp-block-navigation-submenu .wp-block-navigation__submenu-container{z-index:28}.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container{visibility:visible!important;opacity:1!important;min-width:200px!important;height:auto!important;width:auto!important;position:absolute;right:-1px;top:100%}@media (min-width:782px){.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{right:100%;top:-1px}.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before{content:"";position:absolute;left:100%;height:100%;display:block;width:.5em;background:transparent}}.block-editor-block-list__block[data-type="core/nextpage"]{max-width:100%;text-align:center;margin-top:28px;margin-bottom:28px}.wp-block-nextpage{display:block;text-align:center;white-space:nowrap}.wp-block-nextpage>span{font-size:13px;position:relative;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#757575;border-radius:4px;background:#fff;padding:6px 8px;height:24px}.wp-block-nextpage:before{content:"";position:absolute;top:50%;right:0;left:0;border-top:3px dashed #ccc}.wp-block-navigation .wp-block-page-list,.wp-block-navigation .wp-block-page-list>div{background-color:inherit}.wp-block-navigation.items-justified-space-between .wp-block-page-list,.wp-block-navigation.items-justified-space-between .wp-block-page-list>div{display:contents;flex:1}.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list>div,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list>div{flex:inherit}.wp-block-pages-list__item__link{pointer-events:none}.wp-block-page-list .components-placeholder{min-height:0;padding:0;background-color:inherit}.wp-block-page-list .components-placeholder .components-spinner{margin:.5em}.wp-block-page-list-modal{max-width:400px}.wp-block-page-list-modal-buttons{display:flex;justify-content:flex-end}.wp-block-page-list-modal-buttons .components-button{margin-right:12px}.wp-block-page-list .open-on-click:focus-within>.wp-block-navigation__submenu-container{visibility:visible;opacity:1;width:auto;height:auto;min-width:200px}.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus{min-height:auto!important}.block-editor-block-list__block[data-empty=true] [data-rich-text-placeholder]{opacity:1}.block-editor-block-list__block[data-empty=true]+.block-editor-block-list__block[data-empty=true] [data-rich-text-placeholder]{opacity:0}.wp-block-post-excerpt .wp-block-post-excerpt__excerpt.is-inline{display:inline-block}.wp-block-pullquote.has-text-align-left p,.wp-block-pullquote.has-text-align-right p,.wp-block[data-align=left]>.wp-block-pullquote p,.wp-block[data-align=right]>.wp-block-pullquote p{font-size:20px}.wp-block-pullquote blockquote p{font-size:28px;line-height:1.6}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{text-transform:none;font-style:normal}.wp-block-pullquote .wp-block-pullquote__citation{color:inherit}.wp-block-rss li a>div{display:inline}.wp-block-rss__placeholder-form{display:flex;align-items:stretch}.wp-block-rss__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.wp-block-rss__placeholder-form>*{margin-bottom:0}}.wp-block-rss__placeholder-input{display:flex;align-items:stretch;flex-grow:1}.wp-block-rss__placeholder-input .components-base-control__field{display:flex;align-items:stretch;flex-grow:1;margin:0 0 0 8px}.wp-block[data-align=center] .wp-block-search .wp-block-search__inside-wrapper{margin:auto}.wp-block-search .wp-block-search__button{height:auto;border-radius:initial;display:flex;align-items:center}.wp-block-search__components-button-group{margin-top:10px}.block-editor-block-list__block[data-type="core/separator"]{padding-top:.1px;padding-bottom:.1px}[data-type="core/shortcode"] .block-editor-plain-text{max-height:250px}[data-type="core/shortcode"].components-placeholder{min-height:0}.blocks-shortcode__textarea{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal}@media (prefers-reduced-motion:reduce){.blocks-shortcode__textarea{transition-duration:0s;transition-delay:0s}}@media (min-width:600px){.blocks-shortcode__textarea{font-size:13px;line-height:normal}}.blocks-shortcode__textarea:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.blocks-shortcode__textarea::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.blocks-shortcode__textarea::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.blocks-shortcode__textarea:-ms-input-placeholder{color:rgba(30,30,30,.62)}.wp-block[data-align=center]>.wp-block-site-logo{margin-right:auto;margin-left:auto;text-align:center}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo:not(.is-default-size){display:table}.wp-block-site-logo.is-default-size{width:120px}.wp-block-site-logo.is-default-size img{height:auto;width:100%}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;height:auto;max-width:100%}.wp-block-site-logo.wp-block-site-logo .components-placeholder,.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container{border-radius:inherit}.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{height:120px;width:120px}.wp-block-site-logo.wp-block-site-logo .components-placeholder{justify-content:center;align-items:center;box-shadow:none;padding:0;min-height:48px;min-width:48px;height:100%;width:100%;color:currentColor;background:transparent}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__preview{position:absolute;top:4px;left:4px;bottom:4px;right:4px;background:hsla(0,0%,100%,.8);display:flex;align-items:center;justify-content:center}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-drop-zone__content-text{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder:before{content:"";display:block;position:absolute;top:0;left:0;bottom:0;right:0;border:1px dashed;opacity:.3;pointer-events:none;border-radius:inherit}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__fieldset{width:auto}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{color:inherit;padding:0;display:flex;justify-content:center;align-items:center;width:48px;height:48px;border-radius:50%;position:relative;visibility:hidden;background:transparent;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{transition-duration:0s;transition-delay:0s}}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button>svg{color:#fff}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__illustration{position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;stroke:currentColor;stroke-dasharray:3;opacity:.3}.wp-block-site-logo.wp-block-site-logo.is-selected .components-button.components-button{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-style:solid;color:#fff;opacity:1;visibility:visible}.wp-block-site-tagline__placeholder,.wp-block-site-title__placeholder{padding:1em 0;border:1px dashed}.wp-block-social-links .wp-social-link{line-height:0}.wp-block-social-links .wp-social-link button{font-size:inherit;color:currentColor;height:auto;line-height:0;padding:.25em}.wp-block-social-links.is-style-pill-shape .wp-social-link button{padding-right:.66667em;padding-left:.66667em}.wp-block-social-links.is-style-logos-only .wp-social-link button{padding:0}.wp-block-social-links div.block-editor-url-input{display:inline-block;margin-right:8px}.wp-social-link:hover{transform:none}.editor-styles-wrapper .wp-block-social-links{padding:0}.wp-block-social-links__social-placeholder{display:flex;opacity:.8;list-style:none}.wp-block-social-links__social-placeholder>.wp-social-link{padding-right:0!important;margin-right:0!important;padding-left:0!important;margin-left:0!important;width:0!important;visibility:hidden}.wp-block-social-links__social-placeholder>.wp-block-social-links__social-placeholder-icons{display:flex}.wp-block-social-links__social-placeholder .wp-social-link{padding:.25em}.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link{padding-right:.66667em;padding-left:.66667em}.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link{padding:0}.wp-block-social-links__social-placeholder .wp-social-link:before{content:"";display:block;width:1em;height:1em;border-radius:50%}.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link:before{background:currentColor}.wp-block-social-links .wp-block-social-links__social-prompt{min-height:24px;list-style:none;order:2;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:24px;margin-top:auto;margin-bottom:auto;cursor:default;padding-left:8px}.wp-block[data-align=center]>.wp-block-social-links{justify-content:center}.block-editor-block-preview__content .components-button:disabled{opacity:1}.wp-social-link.wp-social-link__is-incomplete{opacity:.5}@media (prefers-reduced-motion:reduce){.wp-social-link.wp-social-link__is-incomplete{transition-duration:0s;transition-delay:0s}}.wp-block-social-links .is-selected .wp-social-link__is-incomplete,.wp-social-link.wp-social-link__is-incomplete:focus,.wp-social-link.wp-social-link__is-incomplete:hover{opacity:1}.block-editor-block-list__block[data-type="core/spacer"]:before{content:"";display:block;position:absolute;z-index:1;width:100%;min-height:8px;min-width:8px;height:100%}.block-library-spacer__resize-container.has-show-handle,.wp-block-spacer.is-hovered .block-library-spacer__resize-container{background:rgba(0,0,0,.1)}.is-dark-theme .block-library-spacer__resize-container.has-show-handle,.is-dark-theme .wp-block-spacer.is-hovered .block-library-spacer__resize-container{background:hsla(0,0%,100%,.15)}.block-library-spacer__resize-container{clear:both}.block-library-spacer__resize-container .components-resizable-box__handle:before{content:none}.block-library-spacer__resize-container.resize-horizontal{margin-bottom:0}.wp-block-table{margin:0}.wp-block[data-align=center]>.wp-block-table,.wp-block[data-align=left]>.wp-block-table,.wp-block[data-align=right]>.wp-block-table{height:auto}.wp-block[data-align=center]>.wp-block-table table,.wp-block[data-align=left]>.wp-block-table table,.wp-block[data-align=right]>.wp-block-table table{width:auto}.wp-block[data-align=center]>.wp-block-table td,.wp-block[data-align=center]>.wp-block-table th,.wp-block[data-align=left]>.wp-block-table td,.wp-block[data-align=left]>.wp-block-table th,.wp-block[data-align=right]>.wp-block-table td,.wp-block[data-align=right]>.wp-block-table th{word-break:break-word}.wp-block[data-align=center]>.wp-block-table{text-align:initial}.wp-block[data-align=center]>.wp-block-table table{margin:0 auto}.wp-block-table td,.wp-block-table th{border:1px solid}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);border-style:double}.wp-block-table figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table figcaption{color:hsla(0,0%,100%,.65)}.blocks-table__placeholder-form.blocks-table__placeholder-form{display:flex;flex-direction:column;align-items:flex-start}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.blocks-table__placeholder-form.blocks-table__placeholder-form{flex-direction:row;align-items:flex-end}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:0}}.blocks-table__placeholder-input{width:112px;margin-left:8px;margin-bottom:0}.blocks-table__placeholder-input input{height:36px}.blocks-table__placeholder-input .components-base-control__field{margin-bottom:0}.wp-block-template-part__placeholder-preview-dropdown-content .components-popover__content,.wp-block-template-part__preview-dropdown-content .components-popover__content{min-width:320px;padding:0}.wp-block-template-part__selection-preview-search-form{border-bottom:1px solid #ddd}.wp-block-template-part__selection-preview-container{background:#fff;padding-bottom:16px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item{border-radius:2px;cursor:pointer;margin-top:16px;transition:all .05s ease-in-out;border:1px solid #ddd;width:100%;background-color:#fff}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:hover{border:1px solid var(--wp-admin-theme-color)}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item.is-placeholder{min-height:100px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item .block-editor-block-preview__container{border-bottom:1px solid #ddd}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item-title{padding:4px;font-size:12px;text-align:right}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-header{padding:16px 16px 0}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-content{padding:0 16px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-title{color:var(--wp-admin-theme-color);text-transform:uppercase;font-size:11px;font-weight:500}.wp-block-template-part__placeholder-create-new__title-form .wp-block-template-part__placeholder-create-new__title-form-actions{padding-top:12px;display:flex;justify-content:flex-end}.wp-block-template-part__placeholder-create-new__title-form .wp-block-template-part__placeholder-create-new__title-form-actions .components-flex-item{margin-right:12px}.wp-block-text-columns .block-editor-rich-text__editable:focus{outline:1px solid #ddd}.wp-block[data-align=center]>.wp-block-video{text-align:center}.wp-block-video{position:relative}.wp-block-video.is-transient video{opacity:.3}.wp-block-video .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.editor-video-poster-control .components-base-control__label{display:block}.editor-video-poster-control .components-button{margin-left:8px}.block-library-video-tracks-editor{z-index:159990}.block-library-video-tracks-editor>.components-popover__content{width:360px}.block-library-video-tracks-editor__track-list-track{display:flex;place-content:space-between;align-items:baseline;padding-right:12px}.block-library-video-tracks-editor__single-track-editor-label-language{display:flex;margin-top:12px}.block-library-video-tracks-editor__single-track-editor-label-language>.components-base-control{width:50%}.block-library-video-tracks-editor__single-track-editor-label-language>.components-base-control:first-child{margin-left:16px}.block-library-video-tracks-editor__single-track-editor-kind-select{max-width:240px}.block-library-video-tracks-editor__single-track-editor-buttons-container{display:flex;place-content:space-between;margin-top:32px}.block-library-video-tracks-editor__single-track-editor-edit-track-label{margin-top:4px;margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500;display:block}.block-library-video-tracks-editor>.components-popover__content>div,.block-library-video-tracks-editor__add-tracks-container .components-menu-group__label,.block-library-video-tracks-editor__track-list .components-menu-group__label{padding:0}.block-library-video-tracks-editor__add-tracks-container,.block-library-video-tracks-editor__single-track-editor,.block-library-video-tracks-editor__track-list{padding:12px}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-base-control__label{margin-bottom:4px}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-base-control__field{margin-bottom:12px}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-text-control__input{margin-right:0}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-input-control__label{margin-bottom:4px}.editor-styles-wrapper ul.wp-block-post-template{padding-right:0;margin-right:0;list-style:none}.block-library-query-toolbar__popover .components-popover__content{min-width:230px}.wp-block-query__create-new-link{padding:0 56px 16px 16px}.wp-block[data-align=center]>.wp-block-query-pagination{justify-content:center}.editor-styles-wrapper .wp-block-query-pagination{max-width:100%}.editor-styles-wrapper .wp-block-query-pagination.block-editor-block-list__layout{margin:0}.block-library-query-pagination-toolbar__popover .components-popover__content{min-width:230px}.wp-block-query-pagination>.wp-block-query-pagination-next,.wp-block-query-pagination>.wp-block-query-pagination-numbers,.wp-block-query-pagination>.wp-block-query-pagination-previous{margin-top:.5em;margin-right:.5em;margin-bottom:.5em}.wp-block-query-pagination>.wp-block-query-pagination-next:last-child,.wp-block-query-pagination>.wp-block-query-pagination-numbers:last-child,.wp-block-query-pagination>.wp-block-query-pagination-previous:last-child{margin-right:0}.wp-block-query-pagination-numbers a{text-decoration:underline}.wp-block-query-pagination-numbers .page-numbers{margin-left:2px}.wp-block-query-pagination-numbers .page-numbers:last-child{margin-right:0}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image.wp-block-post-featured-image .components-resizable-box__container{border-radius:inherit}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder{justify-content:center;align-items:center;box-shadow:none;padding:0;color:currentColor;background:transparent;min-height:200px}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-form-file-upload,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-form-file-upload{display:none}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__preview,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__preview{position:absolute;top:4px;left:4px;bottom:4px;right:4px;background:hsla(0,0%,100%,.8);display:flex;align-items:center;justify-content:center}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder:before,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:before{content:"";display:block;position:absolute;top:0;left:0;bottom:0;right:0;border:1px dashed;opacity:.3;pointer-events:none;border-radius:inherit}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__fieldset,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__fieldset{width:auto}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button{color:inherit;padding:0;display:flex;justify-content:center;align-items:center;width:48px;height:48px;border-radius:50%;position:relative;visibility:hidden;background:transparent;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button{transition-duration:0s;transition-delay:0s}}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button>svg,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button>svg{color:#fff}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__illustration,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__illustration{position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;stroke:currentColor;stroke-dasharray:3;opacity:.3}.wp-block-post-featured-image.wp-block-post-featured-image[style*=height] .components-placeholder{min-height:48px;min-width:48px;height:100%;width:100%}.wp-block-post-featured-image.wp-block-post-featured-image.is-selected .components-button.components-button{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-style:solid;color:#fff;opacity:1;visibility:visible}div[data-type="core/post-featured-image"] img{max-width:100%;height:auto;display:block}.block-library-post-featured-image-dimension-controls{margin-bottom:8px}.block-library-post-featured-image-dimension-controls.scale-control-is-visible{margin-bottom:16px}:root .editor-styles-wrapper .has-very-light-gray-background-color{background-color:#eee}:root .editor-styles-wrapper .has-very-dark-gray-background-color{background-color:#313131}:root .editor-styles-wrapper .has-very-light-gray-color{color:#eee}:root .editor-styles-wrapper .has-very-dark-gray-color{color:#313131}:root .editor-styles-wrapper .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(-135deg,#00d084,#0693e3)}:root .editor-styles-wrapper .has-purple-crush-gradient-background{background:linear-gradient(-135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .editor-styles-wrapper .has-hazy-dawn-gradient-background{background:linear-gradient(-135deg,#faaca8,#dad0ec)}:root .editor-styles-wrapper .has-subdued-olive-gradient-background{background:linear-gradient(-135deg,#fafae1,#67a671)}:root .editor-styles-wrapper .has-atomic-cream-gradient-background{background:linear-gradient(-135deg,#fdd79a,#004a59)}:root .editor-styles-wrapper .has-nightshade-gradient-background{background:linear-gradient(-135deg,#330968,#31cdcf)}:root .editor-styles-wrapper .has-midnight-gradient-background{background:linear-gradient(-135deg,#020381,#2874fc)}.editor-styles-wrapper .has-regular-font-size{font-size:16px}.editor-styles-wrapper .has-larger-font-size{font-size:42px} \ No newline at end of file +ul.wp-block-archives{padding-right:2.5em}.wp-block-audio{margin-right:0;margin-left:0}.edit-post-visual-editor .block-library-block__reusable-block-container .is-root-container{padding-right:0;padding-left:0}.edit-post-visual-editor .block-library-block__reusable-block-container .block-editor-writing-flow{display:block}.edit-post-visual-editor .block-library-block__reusable-block-container .components-disabled .block-list-appender{display:none}.wp-block[data-align=center]>.wp-block-button{text-align:center;margin-right:auto;margin-left:auto}.wp-block[data-align=right]>.wp-block-button{text-align:right}.wp-block-button{position:relative;cursor:text}.wp-block-button:not(.has-text-color):not(.is-style-outline) [data-rich-text-placeholder]:after{color:#fff}.wp-block-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.wp-block-button[data-rich-text-placeholder]:after{opacity:.8}.wp-block-button__inline-link{color:#757575;height:0;overflow:hidden;max-width:290px}.wp-block-button__inline-link-input__suggestions{max-width:290px}@media (min-width:782px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:260px}}@media (min-width:960px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:290px}}.is-selected .wp-block-button__inline-link{height:auto;overflow:visible}.wp-button-label__width .components-button-group{display:block}.wp-button-label__width .components-base-control__field{margin-bottom:12px}div[data-type="core/button"]{display:table}.wp-block-buttons>.wp-block,.wp-block-buttons>.wp-block-button.wp-block-button.wp-block-button.wp-block-button.wp-block-button{margin:0}.wp-block-buttons>.block-list-appender{display:inline-flex;align-items:center}.wp-block-buttons.is-vertical>.block-list-appender .block-list-appender__toggle{justify-content:flex-start}.wp-block-buttons>.wp-block-button:focus{box-shadow:none}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center]{margin-right:auto;margin-left:auto;margin-top:0;width:100%}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center] .wp-block-button{margin-bottom:0}.wp-block[data-align=center]>.wp-block-buttons{align-items:center;justify-content:center}.wp-block[data-align=right]>.wp-block-buttons{justify-content:flex-end}.wp-block-categories ul{padding-right:2.5em}.wp-block-categories ul ul{margin-top:6px}.wp-block-columns :where(.wp-block){max-width:none;margin-right:0;margin-left:0}@media (min-width:600px){.editor-styles-wrapper .block-editor-block-list__block.wp-block-column:nth-child(2n){margin-right:var(--wp--style--block-gap,2em)}}@media (min-width:782px){.editor-styles-wrapper .block-editor-block-list__block.wp-block-column:not(:first-child){margin-right:var(--wp--style--block-gap,2em)}}.block-editor-block-list__block.wp-block-column.wp-block-column{margin-top:0;margin-bottom:0}.editor-styles-wrapper .wp-block-cover{box-sizing:border-box}.wp-block-cover.is-placeholder{min-height:auto!important;padding:0!important}.wp-block-cover.is-placeholder .block-library-cover__resize-container{display:none}.wp-block-cover.is-placeholder .components-placeholder.is-large{min-height:240px;justify-content:flex-start;z-index:1}.wp-block-cover.is-placeholder .components-placeholder.is-large+.block-library-cover__resize-container{min-height:240px;display:block}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover.is-transient:before{background-color:#fff;opacity:.3}.wp-block-cover .components-spinner{position:absolute;z-index:1;top:50%;right:50%;transform:translate(50%,-50%);margin:0}.wp-block-cover .block-editor-block-list__layout{width:100%}.wp-block-cover .wp-block-cover__inner-container{text-align:right;margin-right:0;margin-left:0}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:420px;width:100%}.block-library-cover__reset-button{margin-right:auto}.block-library-cover__resize-container{position:absolute!important;top:0;right:0;left:0;bottom:0;min-height:50px}.block-library-cover__resize-container:not(.is-resizing){height:auto!important}.wp-block-cover>.components-drop-zone .components-drop-zone__content{opacity:.8!important}.block-editor-block-patterns-list__list-item .has-parallax.wp-block-cover{background-attachment:scroll}.wp-block-embed{margin-right:0;margin-left:0;clear:both}.wp-block-embed.is-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1em;min-height:200px;text-align:center;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e}.wp-block-embed.is-loading p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-embed .components-placeholder__error{word-break:break-word}.wp-block-embed .components-placeholder__learn-more{margin-top:1em}.block-library-embed__interactive-overlay{position:absolute;top:0;right:0;left:0;bottom:0;opacity:0}.wp-block[data-align=left]>.wp-block-embed,.wp-block[data-align=right]>.wp-block-embed{max-width:360px;width:100%}.wp-block[data-align=left]>.wp-block-embed .wp-block-embed__wrapper,.wp-block[data-align=right]>.wp-block-embed .wp-block-embed__wrapper{min-width:280px}.wp-block-file{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;margin-bottom:0}.wp-block[data-align=left]>.wp-block-file,.wp-block[data-align=right]>.wp-block-file{height:auto}.wp-block-file .components-resizable-box__container{margin-bottom:1em}.wp-block-file .wp-block-file__preview{margin-bottom:1em;width:100%;height:100%}.wp-block-file .wp-block-file__preview-overlay{position:absolute;top:0;left:0;bottom:0;right:0}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file a{min-width:1em}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-right:.75em}.wp-block-freeform.block-library-rich-text__tinymce{height:auto}.wp-block-freeform.block-library-rich-text__tinymce li,.wp-block-freeform.block-library-rich-text__tinymce p{line-height:1.8}.wp-block-freeform.block-library-rich-text__tinymce ol,.wp-block-freeform.block-library-rich-text__tinymce ul{padding-right:2.5em;margin-right:0}.wp-block-freeform.block-library-rich-text__tinymce blockquote{margin:0;box-shadow:inset 0 0 0 0 #ddd;border-right:4px solid #000;padding-right:1em}.wp-block-freeform.block-library-rich-text__tinymce pre{white-space:pre-wrap;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;color:#1e1e1e}.wp-block-freeform.block-library-rich-text__tinymce>:first-child{margin-top:0}.wp-block-freeform.block-library-rich-text__tinymce>:last-child{margin-bottom:0}.wp-block-freeform.block-library-rich-text__tinymce.mce-edit-focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce a{color:var(--wp-admin-theme-color)}.wp-block-freeform.block-library-rich-text__tinymce:focus a[data-mce-selected]{padding:0 2px;margin:0 -2px;border-radius:2px;box-shadow:0 0 0 1px #e5f5fa;background:#e5f5fa}.wp-block-freeform.block-library-rich-text__tinymce code{padding:2px;border-radius:2px;color:#1e1e1e;background:#f0f0f0;font-family:Menlo,Consolas,monaco,monospace;font-size:14px}.wp-block-freeform.block-library-rich-text__tinymce:focus code[data-mce-selected]{background:#ddd}.wp-block-freeform.block-library-rich-text__tinymce .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-freeform.block-library-rich-text__tinymce .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-freeform.block-library-rich-text__tinymce .aligncenter{display:block;margin-right:auto;margin-left:auto}.wp-block-freeform.block-library-rich-text__tinymce .wp-more-tag{width:96%;height:20px;display:block;margin:15px auto;outline:0;cursor:default;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAADtgAAAAoBAMAAAA86gLBAAAAJFBMVEVMaXG7u7vBwcHDw8POzs68vLzGxsbMzMy+vr7AwMDQ0NDGxsYKLGzpAAAADHRSTlMA///zWf+/f///TMxNVGuqAAABwklEQVR4Ae3dMXLaQBTH4bfj8UCpx8hq0vgKvgFNemhT6Qo6gg6R+0ZahM2QLmyBJ99XWP9V5+o3jIUcLQEAAAAAAAAAAAAAAAAAAAAAAABQ8j0WL9lfTtlt18uNXAUA8O/KVtfa1tdcrOdSh9gCQAMlh1hMNbZZ1bsrsQWABsrhLRbz7z5in/32UbfUMUbkMQCAh5RfGYv82UdMdZ6HS2wjT2ILAI8r3XmM2B3WvM59vfO2xXYW2yYAENuPU8S+X/N67mKxzy225yaxBQCxLV392UdcvwV0jPVUj98ntkBWT7C7+9u2/V/vGtvXIWJ6/4rtbottWa6Ri0NUT/u72LYttrb97LHdvUXMxxrb8TO2W2TF1rYbbLG1bbGNjMi4+2Sbi1FsbbvNFlvbFtt5fDnE3d9sP1/XeIyV2Nr2U2/guZUuptNrH/dPI9eLB6SaAEBs6wPJf3/PNk9tYgsAYrv/8TFuzx/fvkFqGtrEFgDEdpcZUb7ejXy6ntrEFgDENvL6gsas4vbdyKt4DACI7TxElJv/Z7udpqFNbAFAbKduy2uU2trttM/x28UWAAAAAAAAAAAAAAAAAAAAAAAAAADgDyPwGmGTCZp7AAAAAElFTkSuQmCC);background-size:1900px 20px;background-repeat:no-repeat;background-position:50%}.wp-block-freeform.block-library-rich-text__tinymce img::selection{background-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce div.mceTemp{-ms-user-select:element}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption{margin:0;max-width:100%}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption a,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption img{display:block}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption *{-webkit-user-drag:none}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption .wp-caption-dd{padding-top:.5em;margin:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview{width:99.99%;position:relative;clear:both;margin-bottom:16px;border:1px solid transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview iframe{display:block;max-width:100%;background:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .mce-shim{position:absolute;top:0;left:0;bottom:0;right:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected="2"] .mce-shim{display:none}.wp-block-freeform.block-library-rich-text__tinymce .wpview .loading-placeholder{border:1px dashed #ddd;padding:10px}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error{border:1px solid #ddd;padding:1em 0;margin:0;word-wrap:break-word}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error p{margin:0;text-align:center}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .loading-placeholder,.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .wpview-error{border-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .dashicons{display:block;margin:0 auto;width:32px;height:32px;font-size:32px}.wp-block-freeform.block-library-rich-text__tinymce .wpview.wpview-type-gallery:after{content:"";display:table;clear:both}.wp-block-freeform.block-library-rich-text__tinymce .gallery img[data-mce-selected]:focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce .gallery a{cursor:default}.wp-block-freeform.block-library-rich-text__tinymce .gallery{margin:auto -6px;padding:6px 0;line-height:1;overflow-x:hidden}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-item{float:right;margin:0;text-align:center;padding:6px;box-sizing:border-box}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption,.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-icon{margin:0}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption{font-size:13px;margin:4px 0}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-1 .gallery-item{width:100%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-2 .gallery-item{width:50%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-3 .gallery-item{width:33.3333333333%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-4 .gallery-item{width:25%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-5 .gallery-item{width:20%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-6 .gallery-item{width:16.6666666667%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-7 .gallery-item{width:14.2857142857%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-8 .gallery-item{width:12.5%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-9 .gallery-item{width:11.1111111111%}.wp-block-freeform.block-library-rich-text__tinymce .gallery img{max-width:100%;height:auto;border:none;padding:0}div[data-type="core/freeform"]:before{transition:border-color .1s linear,box-shadow .1s linear;border:1px solid #ddd;outline:1px solid transparent}@media (prefers-reduced-motion:reduce){div[data-type="core/freeform"]:before{transition-duration:0s;transition-delay:0s}}div[data-type="core/freeform"].is-selected:before{border-color:#1e1e1e}div[data-type="core/freeform"] .block-editor-block-contextual-toolbar+div{margin-top:0;padding-top:0}div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce:after{content:"";display:table;clear:both}.mce-toolbar-grp .mce-btn.mce-active:hover button,.mce-toolbar-grp .mce-btn.mce-active:hover i,.mce-toolbar-grp .mce-btn.mce-active button,.mce-toolbar-grp .mce-btn.mce-active i{color:#1e1e1e}.mce-toolbar-grp .mce-rtl .mce-flow-layout-item.mce-last{margin-left:0;margin-right:8px}.mce-toolbar-grp .mce-btn i{font-style:normal}.block-library-classic__toolbar{display:none;width:auto;position:sticky;z-index:31;top:0;border:1px solid #ddd;border-bottom:none;border-radius:2px;margin:0 0 8px;padding:0}div[data-type="core/freeform"].is-selected .block-library-classic__toolbar{display:block;border-color:#1e1e1e}.block-library-classic__toolbar .mce-tinymce{box-shadow:none}@media (min-width:600px){.block-library-classic__toolbar{padding:0}}.block-library-classic__toolbar:empty{display:block;background:#f5f5f5;border-bottom:1px solid #e2e4e7}.block-library-classic__toolbar:empty:before{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;content:attr(data-placeholder);color:#555d66;line-height:37px;padding:14px}.block-library-classic__toolbar div.mce-toolbar-grp{border-bottom:1px solid #1e1e1e}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar .mce-menubar>div,.block-library-classic__toolbar .mce-tinymce-inline,.block-library-classic__toolbar .mce-tinymce-inline>div,.block-library-classic__toolbar div.mce-toolbar-grp,.block-library-classic__toolbar div.mce-toolbar-grp>div{height:auto!important;width:100%!important}.block-library-classic__toolbar .mce-container-body.mce-abs-layout{overflow:visible}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar div.mce-toolbar-grp{position:static}.block-library-classic__toolbar .mce-toolbar-grp>div{padding:1px 3px}.block-library-classic__toolbar .mce-toolbar-grp .mce-toolbar:not(:first-child){display:none}.block-library-classic__toolbar.has-advanced-toolbar .mce-toolbar-grp .mce-toolbar{display:block}figure.wp-block-gallery{display:block;margin:0}figure.wp-block-gallery.has-nested-images .components-drop-zone{display:none;pointer-events:none}figure.wp-block-gallery>.blocks-gallery-caption{flex:0 0 100%}figure.wp-block-gallery>.blocks-gallery-media-placeholder-wrapper{flex-basis:100%}figure.wp-block-gallery .wp-block-image .components-notice.is-error{display:block}figure.wp-block-gallery .wp-block-image .components-notice__content{margin:4px 0}figure.wp-block-gallery .wp-block-image .components-notice__dismiss{position:absolute;top:0;left:5px}figure.wp-block-gallery .block-editor-media-placeholder.is-appender .components-placeholder__label{display:none}figure.wp-block-gallery .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{margin-bottom:0}figure.wp-block-gallery .block-editor-media-placeholder{margin:0}figure.wp-block-gallery .block-editor-media-placeholder:before{box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";outline:2px solid transparent;position:absolute;top:0;left:0;bottom:0;right:0;z-index:1;pointer-events:none}figure.wp-block-gallery .block-editor-media-placeholder .components-placeholder__label{display:flex}figure.wp-block-gallery .block-editor-media-placeholder figcaption{z-index:2}figure.wp-block-gallery .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.gallery-settings-buttons .components-button:first-child{margin-left:8px}.gallery-image-sizes .components-base-control__label{display:block;margin-bottom:4px}.gallery-image-sizes .gallery-image-sizes__loading{display:flex;align-items:center;color:#757575;font-size:12px}.gallery-image-sizes .components-spinner{margin:0 4px 0 8px}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected:before{box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";outline:2px solid transparent;position:absolute;top:0;left:0;bottom:0;right:0;z-index:1;pointer-events:none}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu{display:inline-flex}.blocks-gallery-item .block-editor-media-placeholder{margin:0;height:100%}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.block-library-gallery-item__inline-menu{display:none;position:absolute;top:-2px;margin:8px;z-index:20;transition:box-shadow .2s ease-out;border-radius:2px;background:#fff;border:1px solid #1e1e1e}@media (prefers-reduced-motion:reduce){.block-library-gallery-item__inline-menu{transition-duration:0s;transition-delay:0s}}.block-library-gallery-item__inline-menu:hover{box-shadow:0 2px 6px rgba(0,0,0,.05)}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__inline-menu{padding:2px}}.block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus){border:none;box-shadow:none}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon,.columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon{padding:0;width:inherit;height:inherit}}.block-library-gallery-item__inline-menu.is-left{right:-2px}.block-library-gallery-item__inline-menu.is-right{left:-2px}.wp-block-gallery ul.blocks-gallery-grid{padding:0;margin:0}.wp-block-update-gallery-modal{max-width:400px}.wp-block-update-gallery-modal .wp-block-update-gallery-modal-buttons{display:flex;justify-content:flex-end}.wp-block-update-gallery-modal .wp-block-update-gallery-modal-buttons .components-button{margin-right:12px}.wp-block-group .block-editor-block-list__insertion-point{right:0;left:0}[data-type="core/group"].is-selected .block-list-appender{margin-right:0;margin-left:0}[data-type="core/group"].is-selected .has-background .block-list-appender{margin-top:18px;margin-bottom:18px}.block-library-html__edit .block-library-html__preview-overlay{position:absolute;width:100%;height:100%;top:0;right:0}.block-library-html__edit .block-editor-plain-text{font-family:Menlo,Consolas,monaco,monospace!important;color:#1e1e1e!important;background:#fff!important;padding:12px!important;border:1px solid #1e1e1e!important;box-shadow:none!important;border-radius:2px!important;max-height:250px;font-size:16px!important}@media (min-width:600px){.block-library-html__edit .block-editor-plain-text{font-size:13px!important}}.block-library-html__edit .block-editor-plain-text:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid transparent!important}figure.wp-block-image:not(.wp-block){margin:0}.wp-block-image{position:relative}.wp-block-image .is-applying img,.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.wp-block-image:not(.is-style-rounded)>div:not(.components-placeholder){border-radius:inherit}.wp-block-image .components-resizable-box__container{display:inline-block}.wp-block-image .components-resizable-box__container img{display:block;width:inherit;height:inherit}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{position:absolute;right:0;left:0;margin:-1px 0}@media (min-width:600px){.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{margin:-1px}}[data-align=full]>.wp-block-image img,[data-align=wide]>.wp-block-image img{height:auto;width:100%}.wp-block[data-align=center]>.wp-block-image,.wp-block[data-align=left]>.wp-block-image,.wp-block[data-align=right]>.wp-block-image{display:table}.wp-block[data-align=center]>.wp-block-image>figcaption,.wp-block[data-align=left]>.wp-block-image>figcaption,.wp-block[data-align=right]>.wp-block-image>figcaption{display:table-caption;caption-side:bottom}.wp-block[data-align=left]>.wp-block-image{margin:.5em 0 .5em 1em}.wp-block[data-align=right]>.wp-block-image{margin:.5em 1em .5em 0}.wp-block[data-align=center]>.wp-block-image{margin-right:auto;margin-left:auto;text-align:center}.wp-block-image__crop-area{position:relative;max-width:100%;width:100%}.wp-block-image__crop-icon{padding:0 8px;min-width:48px;display:flex;justify-content:center;align-items:center}.wp-block-image__crop-icon svg{fill:currentColor}.wp-block-image__zoom .components-popover__content{overflow:visible;min-width:260px}.wp-block-image__zoom .components-range-control{flex:1}.wp-block-image__zoom .components-base-control__field{display:flex;margin-bottom:0;flex-direction:column;align-items:flex-start}.wp-block-image__aspect-ratio{height:46px;margin-bottom:-8px;display:flex;align-items:center}.wp-block-image__aspect-ratio .components-button{width:36px;padding-right:0;padding-left:0}.wp-block-latest-posts{padding-right:2.5em}.wp-block-latest-posts.is-grid{padding-right:0}.wp-block-latest-posts li a>div{display:inline}.edit-post-visual-editor .wp-block-latest-posts.is-grid li{margin-bottom:20px}.wp-block-media-text__media{position:relative}.wp-block-media-text__media.is-transient img{opacity:.3}.wp-block-media-text__media .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.wp-block-media-text .__resizable_base__{grid-column:1/span 2;grid-row:2}.wp-block-media-text .editor-media-container__resizer{width:100%!important}.wp-block-media-text.is-image-fill .editor-media-container__resizer{height:100%!important}.wp-block-media-text>.block-editor-block-list__layout>.block-editor-block-list__block{max-width:unset}.block-editor-block-list__block[data-type="core/more"]{max-width:100%;text-align:center;margin-top:28px;margin-bottom:28px}.wp-block-more{display:block;text-align:center;white-space:nowrap}.wp-block-more input[type=text]{position:relative;font-size:13px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#757575;border:none;box-shadow:none;white-space:nowrap;text-align:center;margin:0;border-radius:4px;background:#fff;padding:6px 8px;height:24px;max-width:100%}.wp-block-more input[type=text]:focus{box-shadow:none}.wp-block-more:before{content:"";position:absolute;top:50%;right:0;left:0;border-top:3px dashed #ccc}.editor-styles-wrapper .wp-block-navigation ul{margin-top:0;margin-bottom:0;margin-right:0;padding-right:0}.editor-styles-wrapper .wp-block-navigation .wp-block-navigation-item.wp-block{margin-right:revert;margin-left:revert}.wp-block-navigation-item__label{display:inline}.wp-block-navigation__container.is-parent-of-selected-block{visibility:visible;opacity:1;overflow:visible}.wp-block-navigation-item,.wp-block-navigation__container{background-color:inherit}.wp-block-navigation:not(.is-selected):not(.has-child-selected) .has-child:hover>.wp-block-navigation__submenu-container{opacity:0;visibility:hidden}.has-child.has-child-selected>.wp-block-navigation__submenu-container,.has-child.is-selected>.wp-block-navigation__submenu-container{display:flex;opacity:1;visibility:visible}.is-dragging-components-draggable .has-child.is-dragging-within>.wp-block-navigation__submenu-container{opacity:1;visibility:visible}.is-editing>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container{opacity:1;visibility:hidden}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container .block-editor-block-draggable-chip-wrapper{visibility:visible}.block-library-colors-selector{width:auto}.block-library-colors-selector .block-library-colors-selector__toggle{display:block;margin:0 auto;padding:3px;width:auto}.block-library-colors-selector .block-library-colors-selector__icon-container{height:30px;position:relative;margin:0 auto;padding:3px;display:flex;align-items:center;border-radius:4px}.block-library-colors-selector .block-library-colors-selector__state-selection{margin-right:auto;margin-left:auto;border-radius:11px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);width:22px;min-width:22px;height:22px;min-height:22px;line-height:20px;padding:2px}.block-library-colors-selector .block-library-colors-selector__state-selection>svg{min-width:auto!important}.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg,.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg path{color:inherit}.block-library-colors-selector__popover .color-palette-controller-container{padding:16px}.block-library-colors-selector__popover .components-base-control__label{height:20px;line-height:20px}.block-library-colors-selector__popover .component-color-indicator{float:left;margin-top:2px}.block-library-colors-selector__popover .components-panel__body-title{display:none}.wp-block-navigation .block-editor-button-block-appender{justify-content:flex-start}.components-placeholder.wp-block-navigation-placeholder{outline:none;padding:0;box-shadow:none;background:none;min-height:0;color:inherit}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset{font-size:inherit}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset .components-button{margin-bottom:0}.is-selected .components-placeholder.wp-block-navigation-placeholder{color:#1e1e1e}.wp-block-navigation-placeholder .components-spinner{margin-top:-4px;margin-right:4px;vertical-align:middle;margin-left:7px}@keyframes loadingpulse{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.wp-block-navigation-placeholder__preview{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;width:100%;overflow:hidden}.wp-block-navigation-placeholder__preview.is-loading{animation:loadingpulse 1s linear infinite;animation-delay:.5s}.wp-block-navigation-placeholder__preview .wp-block-navigation-item.wp-block-navigation-item{position:relative;min-width:72px}.wp-block-navigation-placeholder__preview .wp-block-navigation-item.wp-block-navigation-item:before{display:block;content:"";border-radius:2px;background:currentColor;height:16px;width:100%}.wp-block-navigation-placeholder__preview .wp-block-navigation-placeholder__preview-search-icon{height:24px}.wp-block-navigation-placeholder__preview .wp-block-navigation-placeholder__preview-search-icon svg{fill:currentColor}.wp-block-navigation-placeholder__preview .wp-block-navigation-item.wp-block-navigation-item,.wp-block-navigation-placeholder__preview .wp-block-navigation-placeholder__preview-search-icon{opacity:.3}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__preview:not(.is-loading){display:flex;opacity:0;width:0;overflow:hidden;flex-wrap:nowrap;flex:0}.wp-block-navigation.is-selected .is-medium .wp-block-navigation-placeholder__preview:not(.is-loading),.wp-block-navigation.is-selected .is-small .wp-block-navigation-placeholder__preview:not(.is-loading){display:none}.wp-block-navigation-placeholder__controls{padding:8px;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;flex-direction:row;align-items:center;display:none;position:relative;z-index:1;float:right;width:100%}.is-large .wp-block-navigation-placeholder__controls{padding:4px 8px}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__controls{display:flex}.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions{flex-direction:column}.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr{display:none}.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__icon{margin-left:12px;height:36px}.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator{display:flex;padding:0 0 0 6px;align-items:center;justify-content:flex-start;line-height:0;min-height:36px;margin-right:4px}.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator svg{margin-left:4px}.wp-block-navigation-placeholder__actions{display:flex;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;gap:6px;height:100%}.wp-block-navigation-placeholder__actions .components-dropdown,.wp-block-navigation-placeholder__actions>.components-button{margin-left:0}.wp-block-navigation-placeholder__actions.wp-block-navigation-placeholder__actions hr{border:0;min-height:1px;min-width:1px;background-color:#1e1e1e;margin:auto 0;height:100%;max-height:16px}@media (min-width:600px){.wp-block-navigation__responsive-container:not(.is-menu-open) .components-button.wp-block-navigation__responsive-container-close{display:none}}.wp-block-navigation__responsive-container.is-menu-open{position:fixed;top:155px}@media (min-width:782px){.wp-block-navigation__responsive-container.is-menu-open{top:93px;right:36px}}@media (min-width:960px){.wp-block-navigation__responsive-container.is-menu-open{right:160px}}@media (min-width:782px){.has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open{top:141px}}.is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:141px}.is-sidebar-opened .wp-block-navigation__responsive-container.is-menu-open{left:280px}.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{right:0;top:155px}@media (min-width:782px){.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{top:61px}}@media (min-width:782px){.is-fullscreen-mode .has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open{top:109px}}.is-fullscreen-mode .is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-fullscreen-mode .is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:109px}body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-open{top:0;left:0;bottom:0;right:0}@media (min-width:600px){.wp-block-navigation__responsive-close{pointer-events:none}.wp-block-navigation__responsive-close .block-editor-block-list__layout *,.wp-block-navigation__responsive-close .wp-block-navigation__responsive-container-close{pointer-events:all}}.wp-block-navigation__responsive-close .wp-block-pages-list__item__link{pointer-events:none}.components-button.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close,.components-button.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open{padding:0;height:auto;color:inherit}.is-menu-open .wp-block-navigation__responsive-container-content * .block-list-appender{margin-top:16px}@keyframes fadein{0%{opacity:0}to{opacity:1}}.wp-block-navigation__unsaved-changes{position:relative}.wp-block-navigation__unsaved-changes .components-spinner{position:absolute;top:calc(50% - 9px);right:calc(50% - 9px);opacity:0;animation:fadein .5s linear 2s normal forwards}@keyframes fadeouthalf{0%{opacity:1}to{opacity:.5}}.wp-block-navigation__unsaved-changes-overlay.is-saving{opacity:1;animation:fadeouthalf .5s linear 2s normal forwards}.wp-block-navigation-delete-menu-button{width:100%;justify-content:center;margin-bottom:16px}.wp-block-navigation .has-child{cursor:pointer}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{z-index:28}.wp-block-navigation .has-child:hover .wp-block-navigation__submenu-container{z-index:29}.wp-block-navigation .has-child.has-child-selected>.wp-block-navigation__submenu-container,.wp-block-navigation .has-child.is-selected>.wp-block-navigation__submenu-container{visibility:visible!important;opacity:1!important;min-width:200px!important;height:auto!important;width:auto!important;overflow:visible!important}.wp-block-navigation-item .wp-block-navigation-item__content{cursor:text}.wp-block-navigation-item.is-editing,.wp-block-navigation-item.is-selected{min-width:20px}.wp-block-navigation-item .block-list-appender{margin:16px 16px 16px auto}.wp-block-navigation-link__placeholder{position:relative;text-decoration:none!important;box-shadow:none!important;background-image:none!important}.wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span{--wp-underline-color:var(--wp-admin-theme-color);background-image:linear-gradient(-45deg,transparent 20%,var(--wp-underline-color) 30%,var(--wp-underline-color) 36%,transparent 46%),linear-gradient(-135deg,transparent 54%,var(--wp-underline-color) 64%,var(--wp-underline-color) 70%,transparent 80%);background-position:100% 100%;background-size:6px 3px;background-repeat:repeat-x;padding-bottom:.1em}.is-dark-theme .wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span{--wp-underline-color:#fff}.wp-block-navigation-link__placeholder.wp-block-navigation-item__content{cursor:pointer}.link-control-transform{border-top:1px solid #ccc;padding:0 16px 8px}.link-control-transform__subheading{font-size:11px;text-transform:uppercase;font-weight:500;color:#1e1e1e;margin-bottom:1.5em}.link-control-transform__items{display:flex;justify-content:space-between}.link-control-transform__item{flex-basis:33%;flex-direction:column;gap:8px;height:auto}.wp-block-navigation-submenu{display:block}.wp-block-navigation-submenu .wp-block-navigation__submenu-container{z-index:28}.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container{visibility:visible!important;opacity:1!important;min-width:200px!important;height:auto!important;width:auto!important;position:absolute;right:-1px;top:100%}@media (min-width:782px){.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{right:100%;top:-1px}.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before{content:"";position:absolute;left:100%;height:100%;display:block;width:.5em;background:transparent}}.block-editor-block-list__block[data-type="core/nextpage"]{max-width:100%;text-align:center;margin-top:28px;margin-bottom:28px}.wp-block-nextpage{display:block;text-align:center;white-space:nowrap}.wp-block-nextpage>span{font-size:13px;position:relative;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#757575;border-radius:4px;background:#fff;padding:6px 8px;height:24px}.wp-block-nextpage:before{content:"";position:absolute;top:50%;right:0;left:0;border-top:3px dashed #ccc}.wp-block-navigation .wp-block-page-list,.wp-block-navigation .wp-block-page-list>div{background-color:inherit}.wp-block-navigation.items-justified-space-between .wp-block-page-list,.wp-block-navigation.items-justified-space-between .wp-block-page-list>div{display:contents;flex:1}.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list>div,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list>div{flex:inherit}.wp-block-pages-list__item__link{pointer-events:none}.wp-block-page-list .components-placeholder{min-height:0;padding:0;background-color:inherit}.wp-block-page-list .components-placeholder .components-spinner{margin:.5em}.wp-block-page-list-modal{max-width:400px}.wp-block-page-list-modal-buttons{display:flex;justify-content:flex-end}.wp-block-page-list-modal-buttons .components-button{margin-right:12px}.wp-block-page-list .open-on-click:focus-within>.wp-block-navigation__submenu-container{visibility:visible;opacity:1;width:auto;height:auto;min-width:200px}.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus{min-height:auto!important}.block-editor-block-list__block[data-empty=true] [data-rich-text-placeholder]{opacity:1}.block-editor-block-list__block[data-empty=true]+.block-editor-block-list__block[data-empty=true] [data-rich-text-placeholder]{opacity:0}.wp-block-post-excerpt .wp-block-post-excerpt__excerpt.is-inline{display:inline-block}.wp-block-pullquote.has-text-align-left p,.wp-block-pullquote.has-text-align-right p,.wp-block[data-align=left]>.wp-block-pullquote p,.wp-block[data-align=right]>.wp-block-pullquote p{font-size:20px}.wp-block-pullquote blockquote p{font-size:28px;line-height:1.6}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{text-transform:none;font-style:normal}.wp-block-pullquote .wp-block-pullquote__citation{color:inherit}.wp-block-rss li a>div{display:inline}.wp-block-rss__placeholder-form{display:flex;align-items:stretch}.wp-block-rss__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.wp-block-rss__placeholder-form>*{margin-bottom:0}}.wp-block-rss__placeholder-input{display:flex;align-items:stretch;flex-grow:1}.wp-block-rss__placeholder-input .components-base-control__field{display:flex;align-items:stretch;flex-grow:1;margin:0 0 0 8px}.wp-block[data-align=center] .wp-block-search .wp-block-search__inside-wrapper{margin:auto}.wp-block-search .wp-block-search__button{height:auto;border-radius:initial;display:flex;align-items:center}.wp-block-search__components-button-group{margin-top:10px}.block-editor-block-list__block[data-type="core/separator"]{padding-top:.1px;padding-bottom:.1px}[data-type="core/shortcode"] .block-editor-plain-text{max-height:250px}[data-type="core/shortcode"].components-placeholder{min-height:0}.blocks-shortcode__textarea{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal}@media (prefers-reduced-motion:reduce){.blocks-shortcode__textarea{transition-duration:0s;transition-delay:0s}}@media (min-width:600px){.blocks-shortcode__textarea{font-size:13px;line-height:normal}}.blocks-shortcode__textarea:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.blocks-shortcode__textarea::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.blocks-shortcode__textarea::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.blocks-shortcode__textarea:-ms-input-placeholder{color:rgba(30,30,30,.62)}.wp-block[data-align=center]>.wp-block-site-logo{margin-right:auto;margin-left:auto;text-align:center}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo:not(.is-default-size){display:table}.wp-block-site-logo.is-default-size{width:120px}.wp-block-site-logo.is-default-size img{height:auto;width:100%}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;height:auto;max-width:100%}.wp-block-site-logo.wp-block-site-logo .components-placeholder,.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container{border-radius:inherit}.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{height:120px;width:120px}.wp-block-site-logo.wp-block-site-logo .components-placeholder{justify-content:center;align-items:center;box-shadow:none;padding:0;min-height:48px;min-width:48px;height:100%;width:100%;color:currentColor;background:transparent}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__preview{position:absolute;top:4px;left:4px;bottom:4px;right:4px;background:hsla(0,0%,100%,.8);display:flex;align-items:center;justify-content:center}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-drop-zone__content-text{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder:before{content:"";display:block;position:absolute;top:0;left:0;bottom:0;right:0;border:1px dashed;opacity:.4;pointer-events:none;border-radius:inherit}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__fieldset{width:auto}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{color:inherit;padding:0;display:flex;justify-content:center;align-items:center;width:48px;height:48px;border-radius:50%;position:relative;visibility:hidden;background:transparent;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{transition-duration:0s;transition-delay:0s}}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button>svg{color:#fff}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__illustration{position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;stroke:currentColor;stroke-dasharray:3;opacity:.4}.wp-block-site-logo.wp-block-site-logo.is-selected .components-button.components-button{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-style:solid;color:#fff;opacity:1;visibility:visible}.wp-block-site-tagline__placeholder,.wp-block-site-title__placeholder{padding:1em 0;border:1px dashed}.wp-block-social-links .wp-social-link{line-height:0}.wp-block-social-links .wp-social-link button{font-size:inherit;color:currentColor;height:auto;line-height:0;padding:.25em}.wp-block-social-links.is-style-pill-shape .wp-social-link button{padding-right:.66667em;padding-left:.66667em}.wp-block-social-links.is-style-logos-only .wp-social-link button{padding:0}.wp-block-social-links div.block-editor-url-input{display:inline-block;margin-right:8px}.wp-social-link:hover{transform:none}.editor-styles-wrapper .wp-block-social-links{padding:0}.wp-block-social-links__social-placeholder{display:flex;opacity:.8;list-style:none}.wp-block-social-links__social-placeholder>.wp-social-link{padding-right:0!important;margin-right:0!important;padding-left:0!important;margin-left:0!important;width:0!important;visibility:hidden}.wp-block-social-links__social-placeholder>.wp-block-social-links__social-placeholder-icons{display:flex}.wp-block-social-links__social-placeholder .wp-social-link{padding:.25em}.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link{padding-right:.66667em;padding-left:.66667em}.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link{padding:0}.wp-block-social-links__social-placeholder .wp-social-link:before{content:"";display:block;width:1em;height:1em;border-radius:50%}.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link:before{background:currentColor}.wp-block-social-links .wp-block-social-links__social-prompt{min-height:24px;list-style:none;order:2;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:24px;margin-top:auto;margin-bottom:auto;cursor:default;padding-left:8px}.wp-block[data-align=center]>.wp-block-social-links{justify-content:center}.block-editor-block-preview__content .components-button:disabled{opacity:1}.wp-social-link.wp-social-link__is-incomplete{opacity:.5}@media (prefers-reduced-motion:reduce){.wp-social-link.wp-social-link__is-incomplete{transition-duration:0s;transition-delay:0s}}.wp-block-social-links .is-selected .wp-social-link__is-incomplete,.wp-social-link.wp-social-link__is-incomplete:focus,.wp-social-link.wp-social-link__is-incomplete:hover{opacity:1}.block-editor-block-list__block[data-type="core/spacer"]:before{content:"";display:block;position:absolute;z-index:1;width:100%;min-height:8px;min-width:8px;height:100%}.block-library-spacer__resize-container.has-show-handle,.wp-block-spacer.is-hovered .block-library-spacer__resize-container{background:rgba(0,0,0,.1)}.is-dark-theme .block-library-spacer__resize-container.has-show-handle,.is-dark-theme .wp-block-spacer.is-hovered .block-library-spacer__resize-container{background:hsla(0,0%,100%,.15)}.block-library-spacer__resize-container{clear:both}.block-library-spacer__resize-container .components-resizable-box__handle:before{content:none}.block-library-spacer__resize-container.resize-horizontal{margin-bottom:0}.wp-block-table{margin:0}.wp-block[data-align=center]>.wp-block-table,.wp-block[data-align=left]>.wp-block-table,.wp-block[data-align=right]>.wp-block-table{height:auto}.wp-block[data-align=center]>.wp-block-table table,.wp-block[data-align=left]>.wp-block-table table,.wp-block[data-align=right]>.wp-block-table table{width:auto}.wp-block[data-align=center]>.wp-block-table td,.wp-block[data-align=center]>.wp-block-table th,.wp-block[data-align=left]>.wp-block-table td,.wp-block[data-align=left]>.wp-block-table th,.wp-block[data-align=right]>.wp-block-table td,.wp-block[data-align=right]>.wp-block-table th{word-break:break-word}.wp-block[data-align=center]>.wp-block-table{text-align:initial}.wp-block[data-align=center]>.wp-block-table table{margin:0 auto}.wp-block-table td,.wp-block-table th{border:1px solid}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);border-style:double}.wp-block-table figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table figcaption{color:hsla(0,0%,100%,.65)}.blocks-table__placeholder-form.blocks-table__placeholder-form{display:flex;flex-direction:column;align-items:flex-start}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.blocks-table__placeholder-form.blocks-table__placeholder-form{flex-direction:row;align-items:flex-end}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:0}}.blocks-table__placeholder-input{width:112px;margin-left:8px;margin-bottom:0}.blocks-table__placeholder-input input{height:36px}.blocks-table__placeholder-input .components-base-control__field{margin-bottom:0}.wp-block-template-part__placeholder-preview-dropdown-content .components-popover__content,.wp-block-template-part__preview-dropdown-content .components-popover__content{min-width:320px;padding:0}.wp-block-template-part__selection-preview-search-form{border-bottom:1px solid #ddd}.wp-block-template-part__selection-preview-container{background:#fff;padding-bottom:16px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item{border-radius:2px;cursor:pointer;margin-top:16px;transition:all .05s ease-in-out;border:1px solid #ddd;width:100%;background-color:#fff}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:hover{border:1px solid var(--wp-admin-theme-color)}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item.is-placeholder{min-height:100px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item .block-editor-block-preview__container{border-bottom:1px solid #ddd}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item-title{padding:4px;font-size:12px;text-align:right}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-header{padding:16px 16px 0}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-content{padding:0 16px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-title{color:var(--wp-admin-theme-color);text-transform:uppercase;font-size:11px;font-weight:500}.wp-block-template-part__placeholder-create-new__title-form .wp-block-template-part__placeholder-create-new__title-form-actions{padding-top:12px;display:flex;justify-content:flex-end}.wp-block-template-part__placeholder-create-new__title-form .wp-block-template-part__placeholder-create-new__title-form-actions .components-flex-item{margin-right:12px}.wp-block-text-columns .block-editor-rich-text__editable:focus{outline:1px solid #ddd}.wp-block[data-align=center]>.wp-block-video{text-align:center}.wp-block-video{position:relative}.wp-block-video.is-transient video{opacity:.3}.wp-block-video .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.editor-video-poster-control .components-base-control__label{display:block}.editor-video-poster-control .components-button{margin-left:8px}.block-library-video-tracks-editor{z-index:159990}.block-library-video-tracks-editor>.components-popover__content{width:360px}.block-library-video-tracks-editor__track-list-track{display:flex;place-content:space-between;align-items:baseline;padding-right:12px}.block-library-video-tracks-editor__single-track-editor-label-language{display:flex;margin-top:12px}.block-library-video-tracks-editor__single-track-editor-label-language>.components-base-control{width:50%}.block-library-video-tracks-editor__single-track-editor-label-language>.components-base-control:first-child{margin-left:16px}.block-library-video-tracks-editor__single-track-editor-kind-select{max-width:240px}.block-library-video-tracks-editor__single-track-editor-buttons-container{display:flex;place-content:space-between;margin-top:32px}.block-library-video-tracks-editor__single-track-editor-edit-track-label{margin-top:4px;margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500;display:block}.block-library-video-tracks-editor>.components-popover__content>div,.block-library-video-tracks-editor__add-tracks-container .components-menu-group__label,.block-library-video-tracks-editor__track-list .components-menu-group__label{padding:0}.block-library-video-tracks-editor__add-tracks-container,.block-library-video-tracks-editor__single-track-editor,.block-library-video-tracks-editor__track-list{padding:12px}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-base-control__label{margin-bottom:4px}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-base-control__field{margin-bottom:12px}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-text-control__input{margin-right:0}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-input-control__label{margin-bottom:4px}.editor-styles-wrapper ul.wp-block-post-template{padding-right:0;margin-right:0;list-style:none}.block-library-query-toolbar__popover .components-popover__content{min-width:230px}.wp-block-query__create-new-link{padding:0 56px 16px 16px}.wp-block[data-align=center]>.wp-block-query-pagination{justify-content:center}.editor-styles-wrapper .wp-block-query-pagination{max-width:100%}.editor-styles-wrapper .wp-block-query-pagination.block-editor-block-list__layout{margin:0}.block-library-query-pagination-toolbar__popover .components-popover__content{min-width:230px}.wp-block-query-pagination>.wp-block-query-pagination-next,.wp-block-query-pagination>.wp-block-query-pagination-numbers,.wp-block-query-pagination>.wp-block-query-pagination-previous{margin-top:.5em;margin-right:.5em;margin-bottom:.5em}.wp-block-query-pagination>.wp-block-query-pagination-next:last-child,.wp-block-query-pagination>.wp-block-query-pagination-numbers:last-child,.wp-block-query-pagination>.wp-block-query-pagination-previous:last-child{margin-right:0}.wp-block-query-pagination-numbers a{text-decoration:underline}.wp-block-query-pagination-numbers .page-numbers{margin-left:2px}.wp-block-query-pagination-numbers .page-numbers:last-child{margin-right:0}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image.wp-block-post-featured-image .components-resizable-box__container{border-radius:inherit}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder{justify-content:center;align-items:center;box-shadow:none;padding:0;color:currentColor;background:transparent;min-height:200px}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-form-file-upload,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-form-file-upload{display:none}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__preview,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__preview{position:absolute;top:4px;left:4px;bottom:4px;right:4px;background:hsla(0,0%,100%,.8);display:flex;align-items:center;justify-content:center}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder:before,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:before{content:"";display:block;position:absolute;top:0;left:0;bottom:0;right:0;border:1px dashed;opacity:.4;pointer-events:none;border-radius:inherit}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__fieldset,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__fieldset{width:auto}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button{color:inherit;padding:0;display:flex;justify-content:center;align-items:center;width:48px;height:48px;border-radius:50%;position:relative;visibility:hidden;background:transparent;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button{transition-duration:0s;transition-delay:0s}}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button>svg,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button>svg{color:#fff}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__illustration,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__illustration{position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;stroke:currentColor;stroke-dasharray:3;opacity:.4}.wp-block-post-featured-image.wp-block-post-featured-image[style*=height] .components-placeholder{min-height:48px;min-width:48px;height:100%;width:100%}.wp-block-post-featured-image.wp-block-post-featured-image.is-selected .components-button.components-button{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-style:solid;color:#fff;opacity:1;visibility:visible}div[data-type="core/post-featured-image"] img{max-width:100%;height:auto;display:block}.block-library-post-featured-image-dimension-controls{margin-bottom:8px}.block-library-post-featured-image-dimension-controls.scale-control-is-visible{margin-bottom:16px}:root .editor-styles-wrapper .has-very-light-gray-background-color{background-color:#eee}:root .editor-styles-wrapper .has-very-dark-gray-background-color{background-color:#313131}:root .editor-styles-wrapper .has-very-light-gray-color{color:#eee}:root .editor-styles-wrapper .has-very-dark-gray-color{color:#313131}:root .editor-styles-wrapper .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(-135deg,#00d084,#0693e3)}:root .editor-styles-wrapper .has-purple-crush-gradient-background{background:linear-gradient(-135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .editor-styles-wrapper .has-hazy-dawn-gradient-background{background:linear-gradient(-135deg,#faaca8,#dad0ec)}:root .editor-styles-wrapper .has-subdued-olive-gradient-background{background:linear-gradient(-135deg,#fafae1,#67a671)}:root .editor-styles-wrapper .has-atomic-cream-gradient-background{background:linear-gradient(-135deg,#fdd79a,#004a59)}:root .editor-styles-wrapper .has-nightshade-gradient-background{background:linear-gradient(-135deg,#330968,#31cdcf)}:root .editor-styles-wrapper .has-midnight-gradient-background{background:linear-gradient(-135deg,#020381,#2874fc)}.editor-styles-wrapper .has-regular-font-size{font-size:16px}.editor-styles-wrapper .has-larger-font-size{font-size:42px} \ No newline at end of file diff --git a/wp-includes/css/dist/block-library/editor.css b/wp-includes/css/dist/block-library/editor.css index 96a6f151d7..b7eb441054 100644 --- a/wp-includes/css/dist/block-library/editor.css +++ b/wp-includes/css/dist/block-library/editor.css @@ -825,6 +825,7 @@ figure.wp-block-gallery .components-spinner { bottom: 0; left: 0; z-index: 1; + pointer-events: none; } .blocks-gallery-item figure.is-transient img { opacity: 0.3; @@ -1980,7 +1981,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op bottom: 0; left: 0; border: 1px dashed currentColor; - opacity: 0.3; + opacity: 0.4; pointer-events: none; border-radius: inherit; } @@ -2020,7 +2021,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op height: 100%; stroke: currentColor; stroke-dasharray: 3; - opacity: 0.3; + opacity: 0.4; } .wp-block-site-logo.wp-block-site-logo.is-selected .components-button.components-button { background: var(--wp-admin-theme-color); @@ -2510,7 +2511,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op bottom: 0; left: 0; border: 1px dashed currentColor; - opacity: 0.3; + opacity: 0.4; pointer-events: none; border-radius: inherit; } @@ -2555,7 +2556,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op height: 100%; stroke: currentColor; stroke-dasharray: 3; - opacity: 0.3; + opacity: 0.4; } .wp-block-post-featured-image.wp-block-post-featured-image[style*=height] .components-placeholder { min-height: 48px; diff --git a/wp-includes/css/dist/block-library/editor.min.css b/wp-includes/css/dist/block-library/editor.min.css index 31cbe8b21e..3e5d42ee35 100644 --- a/wp-includes/css/dist/block-library/editor.min.css +++ b/wp-includes/css/dist/block-library/editor.min.css @@ -1,2 +1,2 @@ ul.wp-block-archives{padding-left:2.5em}.wp-block-audio{margin-left:0;margin-right:0}.edit-post-visual-editor .block-library-block__reusable-block-container .is-root-container{padding-left:0;padding-right:0}.edit-post-visual-editor .block-library-block__reusable-block-container .block-editor-writing-flow{display:block}.edit-post-visual-editor .block-library-block__reusable-block-container .components-disabled .block-list-appender{display:none}.wp-block[data-align=center]>.wp-block-button{text-align:center;margin-left:auto;margin-right:auto}.wp-block[data-align=right]>.wp-block-button{ - /*!rtl:ignore*/text-align:right}.wp-block-button{position:relative;cursor:text}.wp-block-button:not(.has-text-color):not(.is-style-outline) [data-rich-text-placeholder]:after{color:#fff}.wp-block-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.wp-block-button[data-rich-text-placeholder]:after{opacity:.8}.wp-block-button__inline-link{color:#757575;height:0;overflow:hidden;max-width:290px}.wp-block-button__inline-link-input__suggestions{max-width:290px}@media (min-width:782px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:260px}}@media (min-width:960px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:290px}}.is-selected .wp-block-button__inline-link{height:auto;overflow:visible}.wp-button-label__width .components-button-group{display:block}.wp-button-label__width .components-base-control__field{margin-bottom:12px}div[data-type="core/button"]{display:table}.wp-block-buttons>.wp-block,.wp-block-buttons>.wp-block-button.wp-block-button.wp-block-button.wp-block-button.wp-block-button{margin:0}.wp-block-buttons>.block-list-appender{display:inline-flex;align-items:center}.wp-block-buttons.is-vertical>.block-list-appender .block-list-appender__toggle{justify-content:flex-start}.wp-block-buttons>.wp-block-button:focus{box-shadow:none}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center]{margin-left:auto;margin-right:auto;margin-top:0;width:100%}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center] .wp-block-button{margin-bottom:0}.wp-block[data-align=center]>.wp-block-buttons{align-items:center;justify-content:center}.wp-block[data-align=right]>.wp-block-buttons{justify-content:flex-end}.wp-block-categories ul{padding-left:2.5em}.wp-block-categories ul ul{margin-top:6px}.wp-block-columns :where(.wp-block){max-width:none;margin-left:0;margin-right:0}@media (min-width:600px){.editor-styles-wrapper .block-editor-block-list__block.wp-block-column:nth-child(2n){margin-left:var(--wp--style--block-gap,2em)}}@media (min-width:782px){.editor-styles-wrapper .block-editor-block-list__block.wp-block-column:not(:first-child){margin-left:var(--wp--style--block-gap,2em)}}.block-editor-block-list__block.wp-block-column.wp-block-column{margin-top:0;margin-bottom:0}.editor-styles-wrapper .wp-block-cover{box-sizing:border-box}.wp-block-cover.is-placeholder{min-height:auto!important;padding:0!important}.wp-block-cover.is-placeholder .block-library-cover__resize-container{display:none}.wp-block-cover.is-placeholder .components-placeholder.is-large{min-height:240px;justify-content:flex-start;z-index:1}.wp-block-cover.is-placeholder .components-placeholder.is-large+.block-library-cover__resize-container{min-height:240px;display:block}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover.is-transient:before{background-color:#fff;opacity:.3}.wp-block-cover .components-spinner{position:absolute;z-index:1;top:50%;left:50%;transform:translate(-50%,-50%);margin:0}.wp-block-cover .block-editor-block-list__layout{width:100%}.wp-block-cover .wp-block-cover__inner-container{text-align:left;margin-left:0;margin-right:0}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:420px;width:100%}.block-library-cover__reset-button{margin-left:auto}.block-library-cover__resize-container{position:absolute!important;top:0;left:0;right:0;bottom:0;min-height:50px}.block-library-cover__resize-container:not(.is-resizing){height:auto!important}.wp-block-cover>.components-drop-zone .components-drop-zone__content{opacity:.8!important}.block-editor-block-patterns-list__list-item .has-parallax.wp-block-cover{background-attachment:scroll}.wp-block-embed{margin-left:0;margin-right:0;clear:both}.wp-block-embed.is-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1em;min-height:200px;text-align:center;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e}.wp-block-embed.is-loading p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-embed .components-placeholder__error{word-break:break-word}.wp-block-embed .components-placeholder__learn-more{margin-top:1em}.block-library-embed__interactive-overlay{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}.wp-block[data-align=left]>.wp-block-embed,.wp-block[data-align=right]>.wp-block-embed{max-width:360px;width:100%}.wp-block[data-align=left]>.wp-block-embed .wp-block-embed__wrapper,.wp-block[data-align=right]>.wp-block-embed .wp-block-embed__wrapper{min-width:280px}.wp-block-file{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;margin-bottom:0}.wp-block[data-align=left]>.wp-block-file,.wp-block[data-align=right]>.wp-block-file{height:auto}.wp-block-file .components-resizable-box__container{margin-bottom:1em}.wp-block-file .wp-block-file__preview{margin-bottom:1em;width:100%;height:100%}.wp-block-file .wp-block-file__preview-overlay{position:absolute;top:0;right:0;bottom:0;left:0}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file a{min-width:1em}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-left:.75em}.wp-block-freeform.block-library-rich-text__tinymce{height:auto}.wp-block-freeform.block-library-rich-text__tinymce li,.wp-block-freeform.block-library-rich-text__tinymce p{line-height:1.8}.wp-block-freeform.block-library-rich-text__tinymce ol,.wp-block-freeform.block-library-rich-text__tinymce ul{padding-left:2.5em;margin-left:0}.wp-block-freeform.block-library-rich-text__tinymce blockquote{margin:0;box-shadow:inset 0 0 0 0 #ddd;border-left:4px solid #000;padding-left:1em}.wp-block-freeform.block-library-rich-text__tinymce pre{white-space:pre-wrap;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;color:#1e1e1e}.wp-block-freeform.block-library-rich-text__tinymce>:first-child{margin-top:0}.wp-block-freeform.block-library-rich-text__tinymce>:last-child{margin-bottom:0}.wp-block-freeform.block-library-rich-text__tinymce.mce-edit-focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce a{color:var(--wp-admin-theme-color)}.wp-block-freeform.block-library-rich-text__tinymce:focus a[data-mce-selected]{padding:0 2px;margin:0 -2px;border-radius:2px;box-shadow:0 0 0 1px #e5f5fa;background:#e5f5fa}.wp-block-freeform.block-library-rich-text__tinymce code{padding:2px;border-radius:2px;color:#1e1e1e;background:#f0f0f0;font-family:Menlo,Consolas,monaco,monospace;font-size:14px}.wp-block-freeform.block-library-rich-text__tinymce:focus code[data-mce-selected]{background:#ddd}.wp-block-freeform.block-library-rich-text__tinymce .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-freeform.block-library-rich-text__tinymce .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-freeform.block-library-rich-text__tinymce .aligncenter{display:block;margin-left:auto;margin-right:auto}.wp-block-freeform.block-library-rich-text__tinymce .wp-more-tag{width:96%;height:20px;display:block;margin:15px auto;outline:0;cursor:default;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAADtgAAAAoBAMAAAA86gLBAAAAJFBMVEVMaXG7u7vBwcHDw8POzs68vLzGxsbMzMy+vr7AwMDQ0NDGxsYKLGzpAAAADHRSTlMA///zWf+/f///TMxNVGuqAAABwklEQVR4Ae3dMXLaQBTH4bfj8UCpx8hq0vgKvgFNemhT6Qo6gg6R+0ZahM2QLmyBJ99XWP9V5+o3jIUcLQEAAAAAAAAAAAAAAAAAAAAAAABQ8j0WL9lfTtlt18uNXAUA8O/KVtfa1tdcrOdSh9gCQAMlh1hMNbZZ1bsrsQWABsrhLRbz7z5in/32UbfUMUbkMQCAh5RfGYv82UdMdZ6HS2wjT2ILAI8r3XmM2B3WvM59vfO2xXYW2yYAENuPU8S+X/N67mKxzy225yaxBQCxLV392UdcvwV0jPVUj98ntkBWT7C7+9u2/V/vGtvXIWJ6/4rtbottWa6Ri0NUT/u72LYttrb97LHdvUXMxxrb8TO2W2TF1rYbbLG1bbGNjMi4+2Sbi1FsbbvNFlvbFtt5fDnE3d9sP1/XeIyV2Nr2U2/guZUuptNrH/dPI9eLB6SaAEBs6wPJf3/PNk9tYgsAYrv/8TFuzx/fvkFqGtrEFgDEdpcZUb7ejXy6ntrEFgDENvL6gsas4vbdyKt4DACI7TxElJv/Z7udpqFNbAFAbKduy2uU2trttM/x28UWAAAAAAAAAAAAAAAAAAAAAAAAAADgDyPwGmGTCZp7AAAAAElFTkSuQmCC);background-size:1900px 20px;background-repeat:no-repeat;background-position:50%}.wp-block-freeform.block-library-rich-text__tinymce img::selection{background-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce div.mceTemp{-ms-user-select:element}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption{margin:0;max-width:100%}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption a,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption img{display:block}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption *{-webkit-user-drag:none}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption .wp-caption-dd{padding-top:.5em;margin:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview{width:99.99%;position:relative;clear:both;margin-bottom:16px;border:1px solid transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview iframe{display:block;max-width:100%;background:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .mce-shim{position:absolute;top:0;right:0;bottom:0;left:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected="2"] .mce-shim{display:none}.wp-block-freeform.block-library-rich-text__tinymce .wpview .loading-placeholder{border:1px dashed #ddd;padding:10px}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error{border:1px solid #ddd;padding:1em 0;margin:0;word-wrap:break-word}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error p{margin:0;text-align:center}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .loading-placeholder,.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .wpview-error{border-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .dashicons{display:block;margin:0 auto;width:32px;height:32px;font-size:32px}.wp-block-freeform.block-library-rich-text__tinymce .wpview.wpview-type-gallery:after{content:"";display:table;clear:both}.wp-block-freeform.block-library-rich-text__tinymce .gallery img[data-mce-selected]:focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce .gallery a{cursor:default}.wp-block-freeform.block-library-rich-text__tinymce .gallery{margin:auto -6px;padding:6px 0;line-height:1;overflow-x:hidden}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-item{float:left;margin:0;text-align:center;padding:6px;box-sizing:border-box}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption,.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-icon{margin:0}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption{font-size:13px;margin:4px 0}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-1 .gallery-item{width:100%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-2 .gallery-item{width:50%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-3 .gallery-item{width:33.3333333333%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-4 .gallery-item{width:25%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-5 .gallery-item{width:20%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-6 .gallery-item{width:16.6666666667%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-7 .gallery-item{width:14.2857142857%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-8 .gallery-item{width:12.5%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-9 .gallery-item{width:11.1111111111%}.wp-block-freeform.block-library-rich-text__tinymce .gallery img{max-width:100%;height:auto;border:none;padding:0}div[data-type="core/freeform"]:before{transition:border-color .1s linear,box-shadow .1s linear;border:1px solid #ddd;outline:1px solid transparent}@media (prefers-reduced-motion:reduce){div[data-type="core/freeform"]:before{transition-duration:0s;transition-delay:0s}}div[data-type="core/freeform"].is-selected:before{border-color:#1e1e1e}div[data-type="core/freeform"] .block-editor-block-contextual-toolbar+div{margin-top:0;padding-top:0}div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce:after{content:"";display:table;clear:both}.mce-toolbar-grp .mce-btn.mce-active:hover button,.mce-toolbar-grp .mce-btn.mce-active:hover i,.mce-toolbar-grp .mce-btn.mce-active button,.mce-toolbar-grp .mce-btn.mce-active i{color:#1e1e1e}.mce-toolbar-grp .mce-rtl .mce-flow-layout-item.mce-last{margin-right:0;margin-left:8px}.mce-toolbar-grp .mce-btn i{font-style:normal}.block-library-classic__toolbar{display:none;width:auto;position:sticky;z-index:31;top:0;border:1px solid #ddd;border-bottom:none;border-radius:2px;margin:0 0 8px;padding:0}div[data-type="core/freeform"].is-selected .block-library-classic__toolbar{display:block;border-color:#1e1e1e}.block-library-classic__toolbar .mce-tinymce{box-shadow:none}@media (min-width:600px){.block-library-classic__toolbar{padding:0}}.block-library-classic__toolbar:empty{display:block;background:#f5f5f5;border-bottom:1px solid #e2e4e7}.block-library-classic__toolbar:empty:before{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;content:attr(data-placeholder);color:#555d66;line-height:37px;padding:14px}.block-library-classic__toolbar div.mce-toolbar-grp{border-bottom:1px solid #1e1e1e}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar .mce-menubar>div,.block-library-classic__toolbar .mce-tinymce-inline,.block-library-classic__toolbar .mce-tinymce-inline>div,.block-library-classic__toolbar div.mce-toolbar-grp,.block-library-classic__toolbar div.mce-toolbar-grp>div{height:auto!important;width:100%!important}.block-library-classic__toolbar .mce-container-body.mce-abs-layout{overflow:visible}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar div.mce-toolbar-grp{position:static}.block-library-classic__toolbar .mce-toolbar-grp>div{padding:1px 3px}.block-library-classic__toolbar .mce-toolbar-grp .mce-toolbar:not(:first-child){display:none}.block-library-classic__toolbar.has-advanced-toolbar .mce-toolbar-grp .mce-toolbar{display:block}figure.wp-block-gallery{display:block;margin:0}figure.wp-block-gallery.has-nested-images .components-drop-zone{display:none;pointer-events:none}figure.wp-block-gallery>.blocks-gallery-caption{flex:0 0 100%}figure.wp-block-gallery>.blocks-gallery-media-placeholder-wrapper{flex-basis:100%}figure.wp-block-gallery .wp-block-image .components-notice.is-error{display:block}figure.wp-block-gallery .wp-block-image .components-notice__content{margin:4px 0}figure.wp-block-gallery .wp-block-image .components-notice__dismiss{position:absolute;top:0;right:5px}figure.wp-block-gallery .block-editor-media-placeholder.is-appender .components-placeholder__label{display:none}figure.wp-block-gallery .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{margin-bottom:0}figure.wp-block-gallery .block-editor-media-placeholder{margin:0}figure.wp-block-gallery .block-editor-media-placeholder:before{box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";outline:2px solid transparent;position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:none}figure.wp-block-gallery .block-editor-media-placeholder .components-placeholder__label{display:flex}figure.wp-block-gallery .block-editor-media-placeholder figcaption{z-index:2}figure.wp-block-gallery .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.gallery-settings-buttons .components-button:first-child{margin-right:8px}.gallery-image-sizes .components-base-control__label{display:block;margin-bottom:4px}.gallery-image-sizes .gallery-image-sizes__loading{display:flex;align-items:center;color:#757575;font-size:12px}.gallery-image-sizes .components-spinner{margin:0 8px 0 4px}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected:before{box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";outline:2px solid transparent;position:absolute;top:0;right:0;bottom:0;left:0;z-index:1}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu{display:inline-flex}.blocks-gallery-item .block-editor-media-placeholder{margin:0;height:100%}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.block-library-gallery-item__inline-menu{display:none;position:absolute;top:-2px;margin:8px;z-index:20;transition:box-shadow .2s ease-out;border-radius:2px;background:#fff;border:1px solid #1e1e1e}@media (prefers-reduced-motion:reduce){.block-library-gallery-item__inline-menu{transition-duration:0s;transition-delay:0s}}.block-library-gallery-item__inline-menu:hover{box-shadow:0 2px 6px rgba(0,0,0,.05)}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__inline-menu{padding:2px}}.block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus){border:none;box-shadow:none}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon,.columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon{padding:0;width:inherit;height:inherit}}.block-library-gallery-item__inline-menu.is-left{left:-2px}.block-library-gallery-item__inline-menu.is-right{right:-2px}.wp-block-gallery ul.blocks-gallery-grid{padding:0;margin:0}.wp-block-update-gallery-modal{max-width:400px}.wp-block-update-gallery-modal .wp-block-update-gallery-modal-buttons{display:flex;justify-content:flex-end}.wp-block-update-gallery-modal .wp-block-update-gallery-modal-buttons .components-button{margin-left:12px}.wp-block-group .block-editor-block-list__insertion-point{left:0;right:0}[data-type="core/group"].is-selected .block-list-appender{margin-left:0;margin-right:0}[data-type="core/group"].is-selected .has-background .block-list-appender{margin-top:18px;margin-bottom:18px}.block-library-html__edit .block-library-html__preview-overlay{position:absolute;width:100%;height:100%;top:0;left:0}.block-library-html__edit .block-editor-plain-text{font-family:Menlo,Consolas,monaco,monospace!important;color:#1e1e1e!important;background:#fff!important;padding:12px!important;border:1px solid #1e1e1e!important;box-shadow:none!important;border-radius:2px!important;max-height:250px;font-size:16px!important}@media (min-width:600px){.block-library-html__edit .block-editor-plain-text{font-size:13px!important}}.block-library-html__edit .block-editor-plain-text:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid transparent!important}figure.wp-block-image:not(.wp-block){margin:0}.wp-block-image{position:relative}.wp-block-image .is-applying img,.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.wp-block-image:not(.is-style-rounded)>div:not(.components-placeholder){border-radius:inherit}.wp-block-image .components-resizable-box__container{display:inline-block}.wp-block-image .components-resizable-box__container img{display:block;width:inherit;height:inherit}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{position:absolute;left:0;right:0;margin:-1px 0}@media (min-width:600px){.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{margin:-1px}}[data-align=full]>.wp-block-image img,[data-align=wide]>.wp-block-image img{height:auto;width:100%}.wp-block[data-align=center]>.wp-block-image,.wp-block[data-align=left]>.wp-block-image,.wp-block[data-align=right]>.wp-block-image{display:table}.wp-block[data-align=center]>.wp-block-image>figcaption,.wp-block[data-align=left]>.wp-block-image>figcaption,.wp-block[data-align=right]>.wp-block-image>figcaption{display:table-caption;caption-side:bottom}.wp-block[data-align=left]>.wp-block-image{margin:.5em 1em .5em 0}.wp-block[data-align=right]>.wp-block-image{margin:.5em 0 .5em 1em}.wp-block[data-align=center]>.wp-block-image{margin-left:auto;margin-right:auto;text-align:center}.wp-block-image__crop-area{position:relative;max-width:100%;width:100%}.wp-block-image__crop-icon{padding:0 8px;min-width:48px;display:flex;justify-content:center;align-items:center}.wp-block-image__crop-icon svg{fill:currentColor}.wp-block-image__zoom .components-popover__content{overflow:visible;min-width:260px}.wp-block-image__zoom .components-range-control{flex:1}.wp-block-image__zoom .components-base-control__field{display:flex;margin-bottom:0;flex-direction:column;align-items:flex-start}.wp-block-image__aspect-ratio{height:46px;margin-bottom:-8px;display:flex;align-items:center}.wp-block-image__aspect-ratio .components-button{width:36px;padding-left:0;padding-right:0}.wp-block-latest-posts{padding-left:2.5em}.wp-block-latest-posts.is-grid{padding-left:0}.wp-block-latest-posts li a>div{display:inline}.edit-post-visual-editor .wp-block-latest-posts.is-grid li{margin-bottom:20px}.wp-block-media-text__media{position:relative}.wp-block-media-text__media.is-transient img{opacity:.3}.wp-block-media-text__media .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.wp-block-media-text .__resizable_base__{grid-column:1/span 2;grid-row:2}.wp-block-media-text .editor-media-container__resizer{width:100%!important}.wp-block-media-text.is-image-fill .editor-media-container__resizer{height:100%!important}.wp-block-media-text>.block-editor-block-list__layout>.block-editor-block-list__block{max-width:unset}.block-editor-block-list__block[data-type="core/more"]{max-width:100%;text-align:center;margin-top:28px;margin-bottom:28px}.wp-block-more{display:block;text-align:center;white-space:nowrap}.wp-block-more input[type=text]{position:relative;font-size:13px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#757575;border:none;box-shadow:none;white-space:nowrap;text-align:center;margin:0;border-radius:4px;background:#fff;padding:6px 8px;height:24px;max-width:100%}.wp-block-more input[type=text]:focus{box-shadow:none}.wp-block-more:before{content:"";position:absolute;top:50%;left:0;right:0;border-top:3px dashed #ccc}.editor-styles-wrapper .wp-block-navigation ul{margin-top:0;margin-bottom:0;margin-left:0;padding-left:0}.editor-styles-wrapper .wp-block-navigation .wp-block-navigation-item.wp-block{margin-left:revert;margin-right:revert}.wp-block-navigation-item__label{display:inline}.wp-block-navigation__container.is-parent-of-selected-block{visibility:visible;opacity:1;overflow:visible}.wp-block-navigation-item,.wp-block-navigation__container{background-color:inherit}.wp-block-navigation:not(.is-selected):not(.has-child-selected) .has-child:hover>.wp-block-navigation__submenu-container{opacity:0;visibility:hidden}.has-child.has-child-selected>.wp-block-navigation__submenu-container,.has-child.is-selected>.wp-block-navigation__submenu-container{display:flex;opacity:1;visibility:visible}.is-dragging-components-draggable .has-child.is-dragging-within>.wp-block-navigation__submenu-container{opacity:1;visibility:visible}.is-editing>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container{opacity:1;visibility:hidden}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container .block-editor-block-draggable-chip-wrapper{visibility:visible}.block-library-colors-selector{width:auto}.block-library-colors-selector .block-library-colors-selector__toggle{display:block;margin:0 auto;padding:3px;width:auto}.block-library-colors-selector .block-library-colors-selector__icon-container{height:30px;position:relative;margin:0 auto;padding:3px;display:flex;align-items:center;border-radius:4px}.block-library-colors-selector .block-library-colors-selector__state-selection{margin-left:auto;margin-right:auto;border-radius:11px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);width:22px;min-width:22px;height:22px;min-height:22px;line-height:20px;padding:2px}.block-library-colors-selector .block-library-colors-selector__state-selection>svg{min-width:auto!important}.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg,.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg path{color:inherit}.block-library-colors-selector__popover .color-palette-controller-container{padding:16px}.block-library-colors-selector__popover .components-base-control__label{height:20px;line-height:20px}.block-library-colors-selector__popover .component-color-indicator{float:right;margin-top:2px}.block-library-colors-selector__popover .components-panel__body-title{display:none}.wp-block-navigation .block-editor-button-block-appender{justify-content:flex-start}.components-placeholder.wp-block-navigation-placeholder{outline:none;padding:0;box-shadow:none;background:none;min-height:0;color:inherit}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset{font-size:inherit}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset .components-button{margin-bottom:0}.is-selected .components-placeholder.wp-block-navigation-placeholder{color:#1e1e1e}.wp-block-navigation-placeholder .components-spinner{margin-top:-4px;margin-left:4px;vertical-align:middle;margin-right:7px}@keyframes loadingpulse{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.wp-block-navigation-placeholder__preview{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;width:100%;overflow:hidden}.wp-block-navigation-placeholder__preview.is-loading{animation:loadingpulse 1s linear infinite;animation-delay:.5s}.wp-block-navigation-placeholder__preview .wp-block-navigation-item.wp-block-navigation-item{position:relative;min-width:72px}.wp-block-navigation-placeholder__preview .wp-block-navigation-item.wp-block-navigation-item:before{display:block;content:"";border-radius:2px;background:currentColor;height:16px;width:100%}.wp-block-navigation-placeholder__preview .wp-block-navigation-placeholder__preview-search-icon{height:24px}.wp-block-navigation-placeholder__preview .wp-block-navigation-placeholder__preview-search-icon svg{fill:currentColor}.wp-block-navigation-placeholder__preview .wp-block-navigation-item.wp-block-navigation-item,.wp-block-navigation-placeholder__preview .wp-block-navigation-placeholder__preview-search-icon{opacity:.3}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__preview:not(.is-loading){display:flex;opacity:0;width:0;overflow:hidden;flex-wrap:nowrap;flex:0}.wp-block-navigation.is-selected .is-medium .wp-block-navigation-placeholder__preview:not(.is-loading),.wp-block-navigation.is-selected .is-small .wp-block-navigation-placeholder__preview:not(.is-loading){display:none}.wp-block-navigation-placeholder__controls{padding:8px;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;flex-direction:row;align-items:center;display:none;position:relative;z-index:1;float:left;width:100%}.is-large .wp-block-navigation-placeholder__controls{padding:4px 8px}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__controls{display:flex}.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions{flex-direction:column}.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr{display:none}.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__icon{margin-right:12px;height:36px}.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator{display:flex;padding:0 6px 0 0;align-items:center;justify-content:flex-start;line-height:0;min-height:36px;margin-left:4px}.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator svg{margin-right:4px}.wp-block-navigation-placeholder__actions{display:flex;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;gap:6px;height:100%}.wp-block-navigation-placeholder__actions .components-dropdown,.wp-block-navigation-placeholder__actions>.components-button{margin-right:0}.wp-block-navigation-placeholder__actions.wp-block-navigation-placeholder__actions hr{border:0;min-height:1px;min-width:1px;background-color:#1e1e1e;margin:auto 0;height:100%;max-height:16px}@media (min-width:600px){.wp-block-navigation__responsive-container:not(.is-menu-open) .components-button.wp-block-navigation__responsive-container-close{display:none}}.wp-block-navigation__responsive-container.is-menu-open{position:fixed;top:155px}@media (min-width:782px){.wp-block-navigation__responsive-container.is-menu-open{top:93px;left:36px}}@media (min-width:960px){.wp-block-navigation__responsive-container.is-menu-open{left:160px}}@media (min-width:782px){.has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open{top:141px}}.is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:141px}.is-sidebar-opened .wp-block-navigation__responsive-container.is-menu-open{right:280px}.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{left:0;top:155px}@media (min-width:782px){.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{top:61px}}@media (min-width:782px){.is-fullscreen-mode .has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open{top:109px}}.is-fullscreen-mode .is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-fullscreen-mode .is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:109px}body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-open{top:0;right:0;bottom:0;left:0}@media (min-width:600px){.wp-block-navigation__responsive-close{pointer-events:none}.wp-block-navigation__responsive-close .block-editor-block-list__layout *,.wp-block-navigation__responsive-close .wp-block-navigation__responsive-container-close{pointer-events:all}}.wp-block-navigation__responsive-close .wp-block-pages-list__item__link{pointer-events:none}.components-button.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close,.components-button.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open{padding:0;height:auto;color:inherit}.is-menu-open .wp-block-navigation__responsive-container-content * .block-list-appender{margin-top:16px}@keyframes fadein{0%{opacity:0}to{opacity:1}}.wp-block-navigation__unsaved-changes{position:relative}.wp-block-navigation__unsaved-changes .components-spinner{position:absolute;top:calc(50% - 9px);left:calc(50% - 9px);opacity:0;animation:fadein .5s linear 2s normal forwards}@keyframes fadeouthalf{0%{opacity:1}to{opacity:.5}}.wp-block-navigation__unsaved-changes-overlay.is-saving{opacity:1;animation:fadeouthalf .5s linear 2s normal forwards}.wp-block-navigation-delete-menu-button{width:100%;justify-content:center;margin-bottom:16px}.wp-block-navigation .has-child{cursor:pointer}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{z-index:28}.wp-block-navigation .has-child:hover .wp-block-navigation__submenu-container{z-index:29}.wp-block-navigation .has-child.has-child-selected>.wp-block-navigation__submenu-container,.wp-block-navigation .has-child.is-selected>.wp-block-navigation__submenu-container{visibility:visible!important;opacity:1!important;min-width:200px!important;height:auto!important;width:auto!important;overflow:visible!important}.wp-block-navigation-item .wp-block-navigation-item__content{cursor:text}.wp-block-navigation-item.is-editing,.wp-block-navigation-item.is-selected{min-width:20px}.wp-block-navigation-item .block-list-appender{margin:16px auto 16px 16px}.wp-block-navigation-link__placeholder{position:relative;text-decoration:none!important;box-shadow:none!important;background-image:none!important}.wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span{--wp-underline-color:var(--wp-admin-theme-color);background-image:linear-gradient(45deg,transparent 20%,var(--wp-underline-color) 30%,var(--wp-underline-color) 36%,transparent 46%),linear-gradient(135deg,transparent 54%,var(--wp-underline-color) 64%,var(--wp-underline-color) 70%,transparent 80%);background-position:0 100%;background-size:6px 3px;background-repeat:repeat-x;padding-bottom:.1em}.is-dark-theme .wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span{--wp-underline-color:#fff}.wp-block-navigation-link__placeholder.wp-block-navigation-item__content{cursor:pointer}.link-control-transform{border-top:1px solid #ccc;padding:0 16px 8px}.link-control-transform__subheading{font-size:11px;text-transform:uppercase;font-weight:500;color:#1e1e1e;margin-bottom:1.5em}.link-control-transform__items{display:flex;justify-content:space-between}.link-control-transform__item{flex-basis:33%;flex-direction:column;gap:8px;height:auto}.wp-block-navigation-submenu{display:block}.wp-block-navigation-submenu .wp-block-navigation__submenu-container{z-index:28}.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container{visibility:visible!important;opacity:1!important;min-width:200px!important;height:auto!important;width:auto!important;position:absolute;left:-1px;top:100%}@media (min-width:782px){.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:100%;top:-1px}.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before{content:"";position:absolute;right:100%;height:100%;display:block;width:.5em;background:transparent}}.block-editor-block-list__block[data-type="core/nextpage"]{max-width:100%;text-align:center;margin-top:28px;margin-bottom:28px}.wp-block-nextpage{display:block;text-align:center;white-space:nowrap}.wp-block-nextpage>span{font-size:13px;position:relative;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#757575;border-radius:4px;background:#fff;padding:6px 8px;height:24px}.wp-block-nextpage:before{content:"";position:absolute;top:50%;left:0;right:0;border-top:3px dashed #ccc}.wp-block-navigation .wp-block-page-list,.wp-block-navigation .wp-block-page-list>div{background-color:inherit}.wp-block-navigation.items-justified-space-between .wp-block-page-list,.wp-block-navigation.items-justified-space-between .wp-block-page-list>div{display:contents;flex:1}.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list>div,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list>div{flex:inherit}.wp-block-pages-list__item__link{pointer-events:none}.wp-block-page-list .components-placeholder{min-height:0;padding:0;background-color:inherit}.wp-block-page-list .components-placeholder .components-spinner{margin:.5em}.wp-block-page-list-modal{max-width:400px}.wp-block-page-list-modal-buttons{display:flex;justify-content:flex-end}.wp-block-page-list-modal-buttons .components-button{margin-left:12px}.wp-block-page-list .open-on-click:focus-within>.wp-block-navigation__submenu-container{visibility:visible;opacity:1;width:auto;height:auto;min-width:200px}.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus{min-height:auto!important}.block-editor-block-list__block[data-empty=true] [data-rich-text-placeholder]{opacity:1}.block-editor-block-list__block[data-empty=true]+.block-editor-block-list__block[data-empty=true] [data-rich-text-placeholder]{opacity:0}.wp-block-post-excerpt .wp-block-post-excerpt__excerpt.is-inline{display:inline-block}.wp-block-pullquote.has-text-align-left p,.wp-block-pullquote.has-text-align-right p,.wp-block[data-align=left]>.wp-block-pullquote p,.wp-block[data-align=right]>.wp-block-pullquote p{font-size:20px}.wp-block-pullquote blockquote p{font-size:28px;line-height:1.6}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{text-transform:none;font-style:normal}.wp-block-pullquote .wp-block-pullquote__citation{color:inherit}.wp-block-rss li a>div{display:inline}.wp-block-rss__placeholder-form{display:flex;align-items:stretch}.wp-block-rss__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.wp-block-rss__placeholder-form>*{margin-bottom:0}}.wp-block-rss__placeholder-input{display:flex;align-items:stretch;flex-grow:1}.wp-block-rss__placeholder-input .components-base-control__field{display:flex;align-items:stretch;flex-grow:1;margin:0 8px 0 0}.wp-block[data-align=center] .wp-block-search .wp-block-search__inside-wrapper{margin:auto}.wp-block-search .wp-block-search__button{height:auto;border-radius:initial;display:flex;align-items:center}.wp-block-search__components-button-group{margin-top:10px}.block-editor-block-list__block[data-type="core/separator"]{padding-top:.1px;padding-bottom:.1px}[data-type="core/shortcode"] .block-editor-plain-text{max-height:250px}[data-type="core/shortcode"].components-placeholder{min-height:0}.blocks-shortcode__textarea{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal}@media (prefers-reduced-motion:reduce){.blocks-shortcode__textarea{transition-duration:0s;transition-delay:0s}}@media (min-width:600px){.blocks-shortcode__textarea{font-size:13px;line-height:normal}}.blocks-shortcode__textarea:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.blocks-shortcode__textarea::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.blocks-shortcode__textarea::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.blocks-shortcode__textarea:-ms-input-placeholder{color:rgba(30,30,30,.62)}.wp-block[data-align=center]>.wp-block-site-logo{margin-left:auto;margin-right:auto;text-align:center}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo:not(.is-default-size){display:table}.wp-block-site-logo.is-default-size{width:120px}.wp-block-site-logo.is-default-size img{height:auto;width:100%}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;height:auto;max-width:100%}.wp-block-site-logo.wp-block-site-logo .components-placeholder,.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container{border-radius:inherit}.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{height:120px;width:120px}.wp-block-site-logo.wp-block-site-logo .components-placeholder{justify-content:center;align-items:center;box-shadow:none;padding:0;min-height:48px;min-width:48px;height:100%;width:100%;color:currentColor;background:transparent}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__preview{position:absolute;top:4px;right:4px;bottom:4px;left:4px;background:hsla(0,0%,100%,.8);display:flex;align-items:center;justify-content:center}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-drop-zone__content-text{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder:before{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;border:1px dashed;opacity:.3;pointer-events:none;border-radius:inherit}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__fieldset{width:auto}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{color:inherit;padding:0;display:flex;justify-content:center;align-items:center;width:48px;height:48px;border-radius:50%;position:relative;visibility:hidden;background:transparent;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{transition-duration:0s;transition-delay:0s}}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button>svg{color:#fff}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__illustration{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;stroke:currentColor;stroke-dasharray:3;opacity:.3}.wp-block-site-logo.wp-block-site-logo.is-selected .components-button.components-button{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-style:solid;color:#fff;opacity:1;visibility:visible}.wp-block-site-tagline__placeholder,.wp-block-site-title__placeholder{padding:1em 0;border:1px dashed}.wp-block-social-links .wp-social-link{line-height:0}.wp-block-social-links .wp-social-link button{font-size:inherit;color:currentColor;height:auto;line-height:0;padding:.25em}.wp-block-social-links.is-style-pill-shape .wp-social-link button{padding-left:.66667em;padding-right:.66667em}.wp-block-social-links.is-style-logos-only .wp-social-link button{padding:0}.wp-block-social-links div.block-editor-url-input{display:inline-block;margin-left:8px}.wp-social-link:hover{transform:none}.editor-styles-wrapper .wp-block-social-links{padding:0}.wp-block-social-links__social-placeholder{display:flex;opacity:.8;list-style:none}.wp-block-social-links__social-placeholder>.wp-social-link{padding-left:0!important;margin-left:0!important;padding-right:0!important;margin-right:0!important;width:0!important;visibility:hidden}.wp-block-social-links__social-placeholder>.wp-block-social-links__social-placeholder-icons{display:flex}.wp-block-social-links__social-placeholder .wp-social-link{padding:.25em}.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link{padding-left:.66667em;padding-right:.66667em}.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link{padding:0}.wp-block-social-links__social-placeholder .wp-social-link:before{content:"";display:block;width:1em;height:1em;border-radius:50%}.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link:before{background:currentColor}.wp-block-social-links .wp-block-social-links__social-prompt{min-height:24px;list-style:none;order:2;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:24px;margin-top:auto;margin-bottom:auto;cursor:default;padding-right:8px}.wp-block[data-align=center]>.wp-block-social-links{justify-content:center}.block-editor-block-preview__content .components-button:disabled{opacity:1}.wp-social-link.wp-social-link__is-incomplete{opacity:.5}@media (prefers-reduced-motion:reduce){.wp-social-link.wp-social-link__is-incomplete{transition-duration:0s;transition-delay:0s}}.wp-block-social-links .is-selected .wp-social-link__is-incomplete,.wp-social-link.wp-social-link__is-incomplete:focus,.wp-social-link.wp-social-link__is-incomplete:hover{opacity:1}.block-editor-block-list__block[data-type="core/spacer"]:before{content:"";display:block;position:absolute;z-index:1;width:100%;min-height:8px;min-width:8px;height:100%}.block-library-spacer__resize-container.has-show-handle,.wp-block-spacer.is-hovered .block-library-spacer__resize-container{background:rgba(0,0,0,.1)}.is-dark-theme .block-library-spacer__resize-container.has-show-handle,.is-dark-theme .wp-block-spacer.is-hovered .block-library-spacer__resize-container{background:hsla(0,0%,100%,.15)}.block-library-spacer__resize-container{clear:both}.block-library-spacer__resize-container .components-resizable-box__handle:before{content:none}.block-library-spacer__resize-container.resize-horizontal{margin-bottom:0}.wp-block-table{margin:0}.wp-block[data-align=center]>.wp-block-table,.wp-block[data-align=left]>.wp-block-table,.wp-block[data-align=right]>.wp-block-table{height:auto}.wp-block[data-align=center]>.wp-block-table table,.wp-block[data-align=left]>.wp-block-table table,.wp-block[data-align=right]>.wp-block-table table{width:auto}.wp-block[data-align=center]>.wp-block-table td,.wp-block[data-align=center]>.wp-block-table th,.wp-block[data-align=left]>.wp-block-table td,.wp-block[data-align=left]>.wp-block-table th,.wp-block[data-align=right]>.wp-block-table td,.wp-block[data-align=right]>.wp-block-table th{word-break:break-word}.wp-block[data-align=center]>.wp-block-table{text-align:initial}.wp-block[data-align=center]>.wp-block-table table{margin:0 auto}.wp-block-table td,.wp-block-table th{border:1px solid}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);border-style:double}.wp-block-table figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table figcaption{color:hsla(0,0%,100%,.65)}.blocks-table__placeholder-form.blocks-table__placeholder-form{display:flex;flex-direction:column;align-items:flex-start}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.blocks-table__placeholder-form.blocks-table__placeholder-form{flex-direction:row;align-items:flex-end}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:0}}.blocks-table__placeholder-input{width:112px;margin-right:8px;margin-bottom:0}.blocks-table__placeholder-input input{height:36px}.blocks-table__placeholder-input .components-base-control__field{margin-bottom:0}.wp-block-template-part__placeholder-preview-dropdown-content .components-popover__content,.wp-block-template-part__preview-dropdown-content .components-popover__content{min-width:320px;padding:0}.wp-block-template-part__selection-preview-search-form{border-bottom:1px solid #ddd}.wp-block-template-part__selection-preview-container{background:#fff;padding-bottom:16px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item{border-radius:2px;cursor:pointer;margin-top:16px;transition:all .05s ease-in-out;border:1px solid #ddd;width:100%;background-color:#fff}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:hover{border:1px solid var(--wp-admin-theme-color)}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item.is-placeholder{min-height:100px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item .block-editor-block-preview__container{border-bottom:1px solid #ddd}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item-title{padding:4px;font-size:12px;text-align:left}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-header{padding:16px 16px 0}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-content{padding:0 16px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-title{color:var(--wp-admin-theme-color);text-transform:uppercase;font-size:11px;font-weight:500}.wp-block-template-part__placeholder-create-new__title-form .wp-block-template-part__placeholder-create-new__title-form-actions{padding-top:12px;display:flex;justify-content:flex-end}.wp-block-template-part__placeholder-create-new__title-form .wp-block-template-part__placeholder-create-new__title-form-actions .components-flex-item{margin-left:12px}.wp-block-text-columns .block-editor-rich-text__editable:focus{outline:1px solid #ddd}.wp-block[data-align=center]>.wp-block-video{text-align:center}.wp-block-video{position:relative}.wp-block-video.is-transient video{opacity:.3}.wp-block-video .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.editor-video-poster-control .components-base-control__label{display:block}.editor-video-poster-control .components-button{margin-right:8px}.block-library-video-tracks-editor{z-index:159990}.block-library-video-tracks-editor>.components-popover__content{width:360px}.block-library-video-tracks-editor__track-list-track{display:flex;place-content:space-between;align-items:baseline;padding-left:12px}.block-library-video-tracks-editor__single-track-editor-label-language{display:flex;margin-top:12px}.block-library-video-tracks-editor__single-track-editor-label-language>.components-base-control{width:50%}.block-library-video-tracks-editor__single-track-editor-label-language>.components-base-control:first-child{margin-right:16px}.block-library-video-tracks-editor__single-track-editor-kind-select{max-width:240px}.block-library-video-tracks-editor__single-track-editor-buttons-container{display:flex;place-content:space-between;margin-top:32px}.block-library-video-tracks-editor__single-track-editor-edit-track-label{margin-top:4px;margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500;display:block}.block-library-video-tracks-editor>.components-popover__content>div,.block-library-video-tracks-editor__add-tracks-container .components-menu-group__label,.block-library-video-tracks-editor__track-list .components-menu-group__label{padding:0}.block-library-video-tracks-editor__add-tracks-container,.block-library-video-tracks-editor__single-track-editor,.block-library-video-tracks-editor__track-list{padding:12px}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-base-control__label{margin-bottom:4px}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-base-control__field{margin-bottom:12px}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-text-control__input{margin-left:0}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-input-control__label{margin-bottom:4px}.editor-styles-wrapper ul.wp-block-post-template{padding-left:0;margin-left:0;list-style:none}.block-library-query-toolbar__popover .components-popover__content{min-width:230px}.wp-block-query__create-new-link{padding:0 16px 16px 56px}.wp-block[data-align=center]>.wp-block-query-pagination{justify-content:center}.editor-styles-wrapper .wp-block-query-pagination{max-width:100%}.editor-styles-wrapper .wp-block-query-pagination.block-editor-block-list__layout{margin:0}.block-library-query-pagination-toolbar__popover .components-popover__content{min-width:230px}.wp-block-query-pagination>.wp-block-query-pagination-next,.wp-block-query-pagination>.wp-block-query-pagination-numbers,.wp-block-query-pagination>.wp-block-query-pagination-previous{margin:.5em .5em .5em 0}.wp-block-query-pagination>.wp-block-query-pagination-next:last-child,.wp-block-query-pagination>.wp-block-query-pagination-numbers:last-child,.wp-block-query-pagination>.wp-block-query-pagination-previous:last-child{margin-right:0}.wp-block-query-pagination-numbers a{text-decoration:underline}.wp-block-query-pagination-numbers .page-numbers{margin-right:2px}.wp-block-query-pagination-numbers .page-numbers:last-child{margin-right:0}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image.wp-block-post-featured-image .components-resizable-box__container{border-radius:inherit}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder{justify-content:center;align-items:center;box-shadow:none;padding:0;color:currentColor;background:transparent;min-height:200px}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-form-file-upload,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-form-file-upload{display:none}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__preview,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__preview{position:absolute;top:4px;right:4px;bottom:4px;left:4px;background:hsla(0,0%,100%,.8);display:flex;align-items:center;justify-content:center}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder:before,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:before{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;border:1px dashed;opacity:.3;pointer-events:none;border-radius:inherit}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__fieldset,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__fieldset{width:auto}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button{color:inherit;padding:0;display:flex;justify-content:center;align-items:center;width:48px;height:48px;border-radius:50%;position:relative;visibility:hidden;background:transparent;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button{transition-duration:0s;transition-delay:0s}}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button>svg,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button>svg{color:#fff}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__illustration,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__illustration{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;stroke:currentColor;stroke-dasharray:3;opacity:.3}.wp-block-post-featured-image.wp-block-post-featured-image[style*=height] .components-placeholder{min-height:48px;min-width:48px;height:100%;width:100%}.wp-block-post-featured-image.wp-block-post-featured-image.is-selected .components-button.components-button{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-style:solid;color:#fff;opacity:1;visibility:visible}div[data-type="core/post-featured-image"] img{max-width:100%;height:auto;display:block}.block-library-post-featured-image-dimension-controls{margin-bottom:8px}.block-library-post-featured-image-dimension-controls.scale-control-is-visible{margin-bottom:16px}:root .editor-styles-wrapper .has-very-light-gray-background-color{background-color:#eee}:root .editor-styles-wrapper .has-very-dark-gray-background-color{background-color:#313131}:root .editor-styles-wrapper .has-very-light-gray-color{color:#eee}:root .editor-styles-wrapper .has-very-dark-gray-color{color:#313131}:root .editor-styles-wrapper .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .editor-styles-wrapper .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .editor-styles-wrapper .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .editor-styles-wrapper .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .editor-styles-wrapper .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .editor-styles-wrapper .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .editor-styles-wrapper .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}.editor-styles-wrapper .has-regular-font-size{font-size:16px}.editor-styles-wrapper .has-larger-font-size{font-size:42px} \ No newline at end of file + /*!rtl:ignore*/text-align:right}.wp-block-button{position:relative;cursor:text}.wp-block-button:not(.has-text-color):not(.is-style-outline) [data-rich-text-placeholder]:after{color:#fff}.wp-block-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.wp-block-button[data-rich-text-placeholder]:after{opacity:.8}.wp-block-button__inline-link{color:#757575;height:0;overflow:hidden;max-width:290px}.wp-block-button__inline-link-input__suggestions{max-width:290px}@media (min-width:782px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:260px}}@media (min-width:960px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:290px}}.is-selected .wp-block-button__inline-link{height:auto;overflow:visible}.wp-button-label__width .components-button-group{display:block}.wp-button-label__width .components-base-control__field{margin-bottom:12px}div[data-type="core/button"]{display:table}.wp-block-buttons>.wp-block,.wp-block-buttons>.wp-block-button.wp-block-button.wp-block-button.wp-block-button.wp-block-button{margin:0}.wp-block-buttons>.block-list-appender{display:inline-flex;align-items:center}.wp-block-buttons.is-vertical>.block-list-appender .block-list-appender__toggle{justify-content:flex-start}.wp-block-buttons>.wp-block-button:focus{box-shadow:none}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center]{margin-left:auto;margin-right:auto;margin-top:0;width:100%}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center] .wp-block-button{margin-bottom:0}.wp-block[data-align=center]>.wp-block-buttons{align-items:center;justify-content:center}.wp-block[data-align=right]>.wp-block-buttons{justify-content:flex-end}.wp-block-categories ul{padding-left:2.5em}.wp-block-categories ul ul{margin-top:6px}.wp-block-columns :where(.wp-block){max-width:none;margin-left:0;margin-right:0}@media (min-width:600px){.editor-styles-wrapper .block-editor-block-list__block.wp-block-column:nth-child(2n){margin-left:var(--wp--style--block-gap,2em)}}@media (min-width:782px){.editor-styles-wrapper .block-editor-block-list__block.wp-block-column:not(:first-child){margin-left:var(--wp--style--block-gap,2em)}}.block-editor-block-list__block.wp-block-column.wp-block-column{margin-top:0;margin-bottom:0}.editor-styles-wrapper .wp-block-cover{box-sizing:border-box}.wp-block-cover.is-placeholder{min-height:auto!important;padding:0!important}.wp-block-cover.is-placeholder .block-library-cover__resize-container{display:none}.wp-block-cover.is-placeholder .components-placeholder.is-large{min-height:240px;justify-content:flex-start;z-index:1}.wp-block-cover.is-placeholder .components-placeholder.is-large+.block-library-cover__resize-container{min-height:240px;display:block}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover.is-transient:before{background-color:#fff;opacity:.3}.wp-block-cover .components-spinner{position:absolute;z-index:1;top:50%;left:50%;transform:translate(-50%,-50%);margin:0}.wp-block-cover .block-editor-block-list__layout{width:100%}.wp-block-cover .wp-block-cover__inner-container{text-align:left;margin-left:0;margin-right:0}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:420px;width:100%}.block-library-cover__reset-button{margin-left:auto}.block-library-cover__resize-container{position:absolute!important;top:0;left:0;right:0;bottom:0;min-height:50px}.block-library-cover__resize-container:not(.is-resizing){height:auto!important}.wp-block-cover>.components-drop-zone .components-drop-zone__content{opacity:.8!important}.block-editor-block-patterns-list__list-item .has-parallax.wp-block-cover{background-attachment:scroll}.wp-block-embed{margin-left:0;margin-right:0;clear:both}.wp-block-embed.is-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1em;min-height:200px;text-align:center;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e}.wp-block-embed.is-loading p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-embed .components-placeholder__error{word-break:break-word}.wp-block-embed .components-placeholder__learn-more{margin-top:1em}.block-library-embed__interactive-overlay{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}.wp-block[data-align=left]>.wp-block-embed,.wp-block[data-align=right]>.wp-block-embed{max-width:360px;width:100%}.wp-block[data-align=left]>.wp-block-embed .wp-block-embed__wrapper,.wp-block[data-align=right]>.wp-block-embed .wp-block-embed__wrapper{min-width:280px}.wp-block-file{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;margin-bottom:0}.wp-block[data-align=left]>.wp-block-file,.wp-block[data-align=right]>.wp-block-file{height:auto}.wp-block-file .components-resizable-box__container{margin-bottom:1em}.wp-block-file .wp-block-file__preview{margin-bottom:1em;width:100%;height:100%}.wp-block-file .wp-block-file__preview-overlay{position:absolute;top:0;right:0;bottom:0;left:0}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file a{min-width:1em}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-left:.75em}.wp-block-freeform.block-library-rich-text__tinymce{height:auto}.wp-block-freeform.block-library-rich-text__tinymce li,.wp-block-freeform.block-library-rich-text__tinymce p{line-height:1.8}.wp-block-freeform.block-library-rich-text__tinymce ol,.wp-block-freeform.block-library-rich-text__tinymce ul{padding-left:2.5em;margin-left:0}.wp-block-freeform.block-library-rich-text__tinymce blockquote{margin:0;box-shadow:inset 0 0 0 0 #ddd;border-left:4px solid #000;padding-left:1em}.wp-block-freeform.block-library-rich-text__tinymce pre{white-space:pre-wrap;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;color:#1e1e1e}.wp-block-freeform.block-library-rich-text__tinymce>:first-child{margin-top:0}.wp-block-freeform.block-library-rich-text__tinymce>:last-child{margin-bottom:0}.wp-block-freeform.block-library-rich-text__tinymce.mce-edit-focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce a{color:var(--wp-admin-theme-color)}.wp-block-freeform.block-library-rich-text__tinymce:focus a[data-mce-selected]{padding:0 2px;margin:0 -2px;border-radius:2px;box-shadow:0 0 0 1px #e5f5fa;background:#e5f5fa}.wp-block-freeform.block-library-rich-text__tinymce code{padding:2px;border-radius:2px;color:#1e1e1e;background:#f0f0f0;font-family:Menlo,Consolas,monaco,monospace;font-size:14px}.wp-block-freeform.block-library-rich-text__tinymce:focus code[data-mce-selected]{background:#ddd}.wp-block-freeform.block-library-rich-text__tinymce .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-freeform.block-library-rich-text__tinymce .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-freeform.block-library-rich-text__tinymce .aligncenter{display:block;margin-left:auto;margin-right:auto}.wp-block-freeform.block-library-rich-text__tinymce .wp-more-tag{width:96%;height:20px;display:block;margin:15px auto;outline:0;cursor:default;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAADtgAAAAoBAMAAAA86gLBAAAAJFBMVEVMaXG7u7vBwcHDw8POzs68vLzGxsbMzMy+vr7AwMDQ0NDGxsYKLGzpAAAADHRSTlMA///zWf+/f///TMxNVGuqAAABwklEQVR4Ae3dMXLaQBTH4bfj8UCpx8hq0vgKvgFNemhT6Qo6gg6R+0ZahM2QLmyBJ99XWP9V5+o3jIUcLQEAAAAAAAAAAAAAAAAAAAAAAABQ8j0WL9lfTtlt18uNXAUA8O/KVtfa1tdcrOdSh9gCQAMlh1hMNbZZ1bsrsQWABsrhLRbz7z5in/32UbfUMUbkMQCAh5RfGYv82UdMdZ6HS2wjT2ILAI8r3XmM2B3WvM59vfO2xXYW2yYAENuPU8S+X/N67mKxzy225yaxBQCxLV392UdcvwV0jPVUj98ntkBWT7C7+9u2/V/vGtvXIWJ6/4rtbottWa6Ri0NUT/u72LYttrb97LHdvUXMxxrb8TO2W2TF1rYbbLG1bbGNjMi4+2Sbi1FsbbvNFlvbFtt5fDnE3d9sP1/XeIyV2Nr2U2/guZUuptNrH/dPI9eLB6SaAEBs6wPJf3/PNk9tYgsAYrv/8TFuzx/fvkFqGtrEFgDEdpcZUb7ejXy6ntrEFgDENvL6gsas4vbdyKt4DACI7TxElJv/Z7udpqFNbAFAbKduy2uU2trttM/x28UWAAAAAAAAAAAAAAAAAAAAAAAAAADgDyPwGmGTCZp7AAAAAElFTkSuQmCC);background-size:1900px 20px;background-repeat:no-repeat;background-position:50%}.wp-block-freeform.block-library-rich-text__tinymce img::selection{background-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce div.mceTemp{-ms-user-select:element}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption{margin:0;max-width:100%}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption a,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption img{display:block}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption *{-webkit-user-drag:none}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption .wp-caption-dd{padding-top:.5em;margin:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview{width:99.99%;position:relative;clear:both;margin-bottom:16px;border:1px solid transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview iframe{display:block;max-width:100%;background:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .mce-shim{position:absolute;top:0;right:0;bottom:0;left:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected="2"] .mce-shim{display:none}.wp-block-freeform.block-library-rich-text__tinymce .wpview .loading-placeholder{border:1px dashed #ddd;padding:10px}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error{border:1px solid #ddd;padding:1em 0;margin:0;word-wrap:break-word}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error p{margin:0;text-align:center}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .loading-placeholder,.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .wpview-error{border-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .dashicons{display:block;margin:0 auto;width:32px;height:32px;font-size:32px}.wp-block-freeform.block-library-rich-text__tinymce .wpview.wpview-type-gallery:after{content:"";display:table;clear:both}.wp-block-freeform.block-library-rich-text__tinymce .gallery img[data-mce-selected]:focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce .gallery a{cursor:default}.wp-block-freeform.block-library-rich-text__tinymce .gallery{margin:auto -6px;padding:6px 0;line-height:1;overflow-x:hidden}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-item{float:left;margin:0;text-align:center;padding:6px;box-sizing:border-box}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption,.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-icon{margin:0}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption{font-size:13px;margin:4px 0}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-1 .gallery-item{width:100%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-2 .gallery-item{width:50%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-3 .gallery-item{width:33.3333333333%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-4 .gallery-item{width:25%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-5 .gallery-item{width:20%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-6 .gallery-item{width:16.6666666667%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-7 .gallery-item{width:14.2857142857%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-8 .gallery-item{width:12.5%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-9 .gallery-item{width:11.1111111111%}.wp-block-freeform.block-library-rich-text__tinymce .gallery img{max-width:100%;height:auto;border:none;padding:0}div[data-type="core/freeform"]:before{transition:border-color .1s linear,box-shadow .1s linear;border:1px solid #ddd;outline:1px solid transparent}@media (prefers-reduced-motion:reduce){div[data-type="core/freeform"]:before{transition-duration:0s;transition-delay:0s}}div[data-type="core/freeform"].is-selected:before{border-color:#1e1e1e}div[data-type="core/freeform"] .block-editor-block-contextual-toolbar+div{margin-top:0;padding-top:0}div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce:after{content:"";display:table;clear:both}.mce-toolbar-grp .mce-btn.mce-active:hover button,.mce-toolbar-grp .mce-btn.mce-active:hover i,.mce-toolbar-grp .mce-btn.mce-active button,.mce-toolbar-grp .mce-btn.mce-active i{color:#1e1e1e}.mce-toolbar-grp .mce-rtl .mce-flow-layout-item.mce-last{margin-right:0;margin-left:8px}.mce-toolbar-grp .mce-btn i{font-style:normal}.block-library-classic__toolbar{display:none;width:auto;position:sticky;z-index:31;top:0;border:1px solid #ddd;border-bottom:none;border-radius:2px;margin:0 0 8px;padding:0}div[data-type="core/freeform"].is-selected .block-library-classic__toolbar{display:block;border-color:#1e1e1e}.block-library-classic__toolbar .mce-tinymce{box-shadow:none}@media (min-width:600px){.block-library-classic__toolbar{padding:0}}.block-library-classic__toolbar:empty{display:block;background:#f5f5f5;border-bottom:1px solid #e2e4e7}.block-library-classic__toolbar:empty:before{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;content:attr(data-placeholder);color:#555d66;line-height:37px;padding:14px}.block-library-classic__toolbar div.mce-toolbar-grp{border-bottom:1px solid #1e1e1e}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar .mce-menubar>div,.block-library-classic__toolbar .mce-tinymce-inline,.block-library-classic__toolbar .mce-tinymce-inline>div,.block-library-classic__toolbar div.mce-toolbar-grp,.block-library-classic__toolbar div.mce-toolbar-grp>div{height:auto!important;width:100%!important}.block-library-classic__toolbar .mce-container-body.mce-abs-layout{overflow:visible}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar div.mce-toolbar-grp{position:static}.block-library-classic__toolbar .mce-toolbar-grp>div{padding:1px 3px}.block-library-classic__toolbar .mce-toolbar-grp .mce-toolbar:not(:first-child){display:none}.block-library-classic__toolbar.has-advanced-toolbar .mce-toolbar-grp .mce-toolbar{display:block}figure.wp-block-gallery{display:block;margin:0}figure.wp-block-gallery.has-nested-images .components-drop-zone{display:none;pointer-events:none}figure.wp-block-gallery>.blocks-gallery-caption{flex:0 0 100%}figure.wp-block-gallery>.blocks-gallery-media-placeholder-wrapper{flex-basis:100%}figure.wp-block-gallery .wp-block-image .components-notice.is-error{display:block}figure.wp-block-gallery .wp-block-image .components-notice__content{margin:4px 0}figure.wp-block-gallery .wp-block-image .components-notice__dismiss{position:absolute;top:0;right:5px}figure.wp-block-gallery .block-editor-media-placeholder.is-appender .components-placeholder__label{display:none}figure.wp-block-gallery .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{margin-bottom:0}figure.wp-block-gallery .block-editor-media-placeholder{margin:0}figure.wp-block-gallery .block-editor-media-placeholder:before{box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";outline:2px solid transparent;position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:none}figure.wp-block-gallery .block-editor-media-placeholder .components-placeholder__label{display:flex}figure.wp-block-gallery .block-editor-media-placeholder figcaption{z-index:2}figure.wp-block-gallery .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.gallery-settings-buttons .components-button:first-child{margin-right:8px}.gallery-image-sizes .components-base-control__label{display:block;margin-bottom:4px}.gallery-image-sizes .gallery-image-sizes__loading{display:flex;align-items:center;color:#757575;font-size:12px}.gallery-image-sizes .components-spinner{margin:0 8px 0 4px}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected:before{box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";outline:2px solid transparent;position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:none}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu{display:inline-flex}.blocks-gallery-item .block-editor-media-placeholder{margin:0;height:100%}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.block-library-gallery-item__inline-menu{display:none;position:absolute;top:-2px;margin:8px;z-index:20;transition:box-shadow .2s ease-out;border-radius:2px;background:#fff;border:1px solid #1e1e1e}@media (prefers-reduced-motion:reduce){.block-library-gallery-item__inline-menu{transition-duration:0s;transition-delay:0s}}.block-library-gallery-item__inline-menu:hover{box-shadow:0 2px 6px rgba(0,0,0,.05)}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__inline-menu{padding:2px}}.block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus){border:none;box-shadow:none}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon,.columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon{padding:0;width:inherit;height:inherit}}.block-library-gallery-item__inline-menu.is-left{left:-2px}.block-library-gallery-item__inline-menu.is-right{right:-2px}.wp-block-gallery ul.blocks-gallery-grid{padding:0;margin:0}.wp-block-update-gallery-modal{max-width:400px}.wp-block-update-gallery-modal .wp-block-update-gallery-modal-buttons{display:flex;justify-content:flex-end}.wp-block-update-gallery-modal .wp-block-update-gallery-modal-buttons .components-button{margin-left:12px}.wp-block-group .block-editor-block-list__insertion-point{left:0;right:0}[data-type="core/group"].is-selected .block-list-appender{margin-left:0;margin-right:0}[data-type="core/group"].is-selected .has-background .block-list-appender{margin-top:18px;margin-bottom:18px}.block-library-html__edit .block-library-html__preview-overlay{position:absolute;width:100%;height:100%;top:0;left:0}.block-library-html__edit .block-editor-plain-text{font-family:Menlo,Consolas,monaco,monospace!important;color:#1e1e1e!important;background:#fff!important;padding:12px!important;border:1px solid #1e1e1e!important;box-shadow:none!important;border-radius:2px!important;max-height:250px;font-size:16px!important}@media (min-width:600px){.block-library-html__edit .block-editor-plain-text{font-size:13px!important}}.block-library-html__edit .block-editor-plain-text:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid transparent!important}figure.wp-block-image:not(.wp-block){margin:0}.wp-block-image{position:relative}.wp-block-image .is-applying img,.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.wp-block-image:not(.is-style-rounded)>div:not(.components-placeholder){border-radius:inherit}.wp-block-image .components-resizable-box__container{display:inline-block}.wp-block-image .components-resizable-box__container img{display:block;width:inherit;height:inherit}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{position:absolute;left:0;right:0;margin:-1px 0}@media (min-width:600px){.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{margin:-1px}}[data-align=full]>.wp-block-image img,[data-align=wide]>.wp-block-image img{height:auto;width:100%}.wp-block[data-align=center]>.wp-block-image,.wp-block[data-align=left]>.wp-block-image,.wp-block[data-align=right]>.wp-block-image{display:table}.wp-block[data-align=center]>.wp-block-image>figcaption,.wp-block[data-align=left]>.wp-block-image>figcaption,.wp-block[data-align=right]>.wp-block-image>figcaption{display:table-caption;caption-side:bottom}.wp-block[data-align=left]>.wp-block-image{margin:.5em 1em .5em 0}.wp-block[data-align=right]>.wp-block-image{margin:.5em 0 .5em 1em}.wp-block[data-align=center]>.wp-block-image{margin-left:auto;margin-right:auto;text-align:center}.wp-block-image__crop-area{position:relative;max-width:100%;width:100%}.wp-block-image__crop-icon{padding:0 8px;min-width:48px;display:flex;justify-content:center;align-items:center}.wp-block-image__crop-icon svg{fill:currentColor}.wp-block-image__zoom .components-popover__content{overflow:visible;min-width:260px}.wp-block-image__zoom .components-range-control{flex:1}.wp-block-image__zoom .components-base-control__field{display:flex;margin-bottom:0;flex-direction:column;align-items:flex-start}.wp-block-image__aspect-ratio{height:46px;margin-bottom:-8px;display:flex;align-items:center}.wp-block-image__aspect-ratio .components-button{width:36px;padding-left:0;padding-right:0}.wp-block-latest-posts{padding-left:2.5em}.wp-block-latest-posts.is-grid{padding-left:0}.wp-block-latest-posts li a>div{display:inline}.edit-post-visual-editor .wp-block-latest-posts.is-grid li{margin-bottom:20px}.wp-block-media-text__media{position:relative}.wp-block-media-text__media.is-transient img{opacity:.3}.wp-block-media-text__media .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.wp-block-media-text .__resizable_base__{grid-column:1/span 2;grid-row:2}.wp-block-media-text .editor-media-container__resizer{width:100%!important}.wp-block-media-text.is-image-fill .editor-media-container__resizer{height:100%!important}.wp-block-media-text>.block-editor-block-list__layout>.block-editor-block-list__block{max-width:unset}.block-editor-block-list__block[data-type="core/more"]{max-width:100%;text-align:center;margin-top:28px;margin-bottom:28px}.wp-block-more{display:block;text-align:center;white-space:nowrap}.wp-block-more input[type=text]{position:relative;font-size:13px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#757575;border:none;box-shadow:none;white-space:nowrap;text-align:center;margin:0;border-radius:4px;background:#fff;padding:6px 8px;height:24px;max-width:100%}.wp-block-more input[type=text]:focus{box-shadow:none}.wp-block-more:before{content:"";position:absolute;top:50%;left:0;right:0;border-top:3px dashed #ccc}.editor-styles-wrapper .wp-block-navigation ul{margin-top:0;margin-bottom:0;margin-left:0;padding-left:0}.editor-styles-wrapper .wp-block-navigation .wp-block-navigation-item.wp-block{margin-left:revert;margin-right:revert}.wp-block-navigation-item__label{display:inline}.wp-block-navigation__container.is-parent-of-selected-block{visibility:visible;opacity:1;overflow:visible}.wp-block-navigation-item,.wp-block-navigation__container{background-color:inherit}.wp-block-navigation:not(.is-selected):not(.has-child-selected) .has-child:hover>.wp-block-navigation__submenu-container{opacity:0;visibility:hidden}.has-child.has-child-selected>.wp-block-navigation__submenu-container,.has-child.is-selected>.wp-block-navigation__submenu-container{display:flex;opacity:1;visibility:visible}.is-dragging-components-draggable .has-child.is-dragging-within>.wp-block-navigation__submenu-container{opacity:1;visibility:visible}.is-editing>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container{opacity:1;visibility:hidden}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container .block-editor-block-draggable-chip-wrapper{visibility:visible}.block-library-colors-selector{width:auto}.block-library-colors-selector .block-library-colors-selector__toggle{display:block;margin:0 auto;padding:3px;width:auto}.block-library-colors-selector .block-library-colors-selector__icon-container{height:30px;position:relative;margin:0 auto;padding:3px;display:flex;align-items:center;border-radius:4px}.block-library-colors-selector .block-library-colors-selector__state-selection{margin-left:auto;margin-right:auto;border-radius:11px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);width:22px;min-width:22px;height:22px;min-height:22px;line-height:20px;padding:2px}.block-library-colors-selector .block-library-colors-selector__state-selection>svg{min-width:auto!important}.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg,.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg path{color:inherit}.block-library-colors-selector__popover .color-palette-controller-container{padding:16px}.block-library-colors-selector__popover .components-base-control__label{height:20px;line-height:20px}.block-library-colors-selector__popover .component-color-indicator{float:right;margin-top:2px}.block-library-colors-selector__popover .components-panel__body-title{display:none}.wp-block-navigation .block-editor-button-block-appender{justify-content:flex-start}.components-placeholder.wp-block-navigation-placeholder{outline:none;padding:0;box-shadow:none;background:none;min-height:0;color:inherit}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset{font-size:inherit}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset .components-button{margin-bottom:0}.is-selected .components-placeholder.wp-block-navigation-placeholder{color:#1e1e1e}.wp-block-navigation-placeholder .components-spinner{margin-top:-4px;margin-left:4px;vertical-align:middle;margin-right:7px}@keyframes loadingpulse{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.wp-block-navigation-placeholder__preview{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;width:100%;overflow:hidden}.wp-block-navigation-placeholder__preview.is-loading{animation:loadingpulse 1s linear infinite;animation-delay:.5s}.wp-block-navigation-placeholder__preview .wp-block-navigation-item.wp-block-navigation-item{position:relative;min-width:72px}.wp-block-navigation-placeholder__preview .wp-block-navigation-item.wp-block-navigation-item:before{display:block;content:"";border-radius:2px;background:currentColor;height:16px;width:100%}.wp-block-navigation-placeholder__preview .wp-block-navigation-placeholder__preview-search-icon{height:24px}.wp-block-navigation-placeholder__preview .wp-block-navigation-placeholder__preview-search-icon svg{fill:currentColor}.wp-block-navigation-placeholder__preview .wp-block-navigation-item.wp-block-navigation-item,.wp-block-navigation-placeholder__preview .wp-block-navigation-placeholder__preview-search-icon{opacity:.3}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__preview:not(.is-loading){display:flex;opacity:0;width:0;overflow:hidden;flex-wrap:nowrap;flex:0}.wp-block-navigation.is-selected .is-medium .wp-block-navigation-placeholder__preview:not(.is-loading),.wp-block-navigation.is-selected .is-small .wp-block-navigation-placeholder__preview:not(.is-loading){display:none}.wp-block-navigation-placeholder__controls{padding:8px;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;flex-direction:row;align-items:center;display:none;position:relative;z-index:1;float:left;width:100%}.is-large .wp-block-navigation-placeholder__controls{padding:4px 8px}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__controls{display:flex}.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions{flex-direction:column}.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr{display:none}.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__icon{margin-right:12px;height:36px}.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator{display:flex;padding:0 6px 0 0;align-items:center;justify-content:flex-start;line-height:0;min-height:36px;margin-left:4px}.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator svg{margin-right:4px}.wp-block-navigation-placeholder__actions{display:flex;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;gap:6px;height:100%}.wp-block-navigation-placeholder__actions .components-dropdown,.wp-block-navigation-placeholder__actions>.components-button{margin-right:0}.wp-block-navigation-placeholder__actions.wp-block-navigation-placeholder__actions hr{border:0;min-height:1px;min-width:1px;background-color:#1e1e1e;margin:auto 0;height:100%;max-height:16px}@media (min-width:600px){.wp-block-navigation__responsive-container:not(.is-menu-open) .components-button.wp-block-navigation__responsive-container-close{display:none}}.wp-block-navigation__responsive-container.is-menu-open{position:fixed;top:155px}@media (min-width:782px){.wp-block-navigation__responsive-container.is-menu-open{top:93px;left:36px}}@media (min-width:960px){.wp-block-navigation__responsive-container.is-menu-open{left:160px}}@media (min-width:782px){.has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open{top:141px}}.is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:141px}.is-sidebar-opened .wp-block-navigation__responsive-container.is-menu-open{right:280px}.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{left:0;top:155px}@media (min-width:782px){.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{top:61px}}@media (min-width:782px){.is-fullscreen-mode .has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open{top:109px}}.is-fullscreen-mode .is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-fullscreen-mode .is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:109px}body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-open{top:0;right:0;bottom:0;left:0}@media (min-width:600px){.wp-block-navigation__responsive-close{pointer-events:none}.wp-block-navigation__responsive-close .block-editor-block-list__layout *,.wp-block-navigation__responsive-close .wp-block-navigation__responsive-container-close{pointer-events:all}}.wp-block-navigation__responsive-close .wp-block-pages-list__item__link{pointer-events:none}.components-button.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close,.components-button.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open{padding:0;height:auto;color:inherit}.is-menu-open .wp-block-navigation__responsive-container-content * .block-list-appender{margin-top:16px}@keyframes fadein{0%{opacity:0}to{opacity:1}}.wp-block-navigation__unsaved-changes{position:relative}.wp-block-navigation__unsaved-changes .components-spinner{position:absolute;top:calc(50% - 9px);left:calc(50% - 9px);opacity:0;animation:fadein .5s linear 2s normal forwards}@keyframes fadeouthalf{0%{opacity:1}to{opacity:.5}}.wp-block-navigation__unsaved-changes-overlay.is-saving{opacity:1;animation:fadeouthalf .5s linear 2s normal forwards}.wp-block-navigation-delete-menu-button{width:100%;justify-content:center;margin-bottom:16px}.wp-block-navigation .has-child{cursor:pointer}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{z-index:28}.wp-block-navigation .has-child:hover .wp-block-navigation__submenu-container{z-index:29}.wp-block-navigation .has-child.has-child-selected>.wp-block-navigation__submenu-container,.wp-block-navigation .has-child.is-selected>.wp-block-navigation__submenu-container{visibility:visible!important;opacity:1!important;min-width:200px!important;height:auto!important;width:auto!important;overflow:visible!important}.wp-block-navigation-item .wp-block-navigation-item__content{cursor:text}.wp-block-navigation-item.is-editing,.wp-block-navigation-item.is-selected{min-width:20px}.wp-block-navigation-item .block-list-appender{margin:16px auto 16px 16px}.wp-block-navigation-link__placeholder{position:relative;text-decoration:none!important;box-shadow:none!important;background-image:none!important}.wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span{--wp-underline-color:var(--wp-admin-theme-color);background-image:linear-gradient(45deg,transparent 20%,var(--wp-underline-color) 30%,var(--wp-underline-color) 36%,transparent 46%),linear-gradient(135deg,transparent 54%,var(--wp-underline-color) 64%,var(--wp-underline-color) 70%,transparent 80%);background-position:0 100%;background-size:6px 3px;background-repeat:repeat-x;padding-bottom:.1em}.is-dark-theme .wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span{--wp-underline-color:#fff}.wp-block-navigation-link__placeholder.wp-block-navigation-item__content{cursor:pointer}.link-control-transform{border-top:1px solid #ccc;padding:0 16px 8px}.link-control-transform__subheading{font-size:11px;text-transform:uppercase;font-weight:500;color:#1e1e1e;margin-bottom:1.5em}.link-control-transform__items{display:flex;justify-content:space-between}.link-control-transform__item{flex-basis:33%;flex-direction:column;gap:8px;height:auto}.wp-block-navigation-submenu{display:block}.wp-block-navigation-submenu .wp-block-navigation__submenu-container{z-index:28}.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container{visibility:visible!important;opacity:1!important;min-width:200px!important;height:auto!important;width:auto!important;position:absolute;left:-1px;top:100%}@media (min-width:782px){.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:100%;top:-1px}.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before{content:"";position:absolute;right:100%;height:100%;display:block;width:.5em;background:transparent}}.block-editor-block-list__block[data-type="core/nextpage"]{max-width:100%;text-align:center;margin-top:28px;margin-bottom:28px}.wp-block-nextpage{display:block;text-align:center;white-space:nowrap}.wp-block-nextpage>span{font-size:13px;position:relative;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#757575;border-radius:4px;background:#fff;padding:6px 8px;height:24px}.wp-block-nextpage:before{content:"";position:absolute;top:50%;left:0;right:0;border-top:3px dashed #ccc}.wp-block-navigation .wp-block-page-list,.wp-block-navigation .wp-block-page-list>div{background-color:inherit}.wp-block-navigation.items-justified-space-between .wp-block-page-list,.wp-block-navigation.items-justified-space-between .wp-block-page-list>div{display:contents;flex:1}.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list>div,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list>div{flex:inherit}.wp-block-pages-list__item__link{pointer-events:none}.wp-block-page-list .components-placeholder{min-height:0;padding:0;background-color:inherit}.wp-block-page-list .components-placeholder .components-spinner{margin:.5em}.wp-block-page-list-modal{max-width:400px}.wp-block-page-list-modal-buttons{display:flex;justify-content:flex-end}.wp-block-page-list-modal-buttons .components-button{margin-left:12px}.wp-block-page-list .open-on-click:focus-within>.wp-block-navigation__submenu-container{visibility:visible;opacity:1;width:auto;height:auto;min-width:200px}.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus{min-height:auto!important}.block-editor-block-list__block[data-empty=true] [data-rich-text-placeholder]{opacity:1}.block-editor-block-list__block[data-empty=true]+.block-editor-block-list__block[data-empty=true] [data-rich-text-placeholder]{opacity:0}.wp-block-post-excerpt .wp-block-post-excerpt__excerpt.is-inline{display:inline-block}.wp-block-pullquote.has-text-align-left p,.wp-block-pullquote.has-text-align-right p,.wp-block[data-align=left]>.wp-block-pullquote p,.wp-block[data-align=right]>.wp-block-pullquote p{font-size:20px}.wp-block-pullquote blockquote p{font-size:28px;line-height:1.6}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{text-transform:none;font-style:normal}.wp-block-pullquote .wp-block-pullquote__citation{color:inherit}.wp-block-rss li a>div{display:inline}.wp-block-rss__placeholder-form{display:flex;align-items:stretch}.wp-block-rss__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.wp-block-rss__placeholder-form>*{margin-bottom:0}}.wp-block-rss__placeholder-input{display:flex;align-items:stretch;flex-grow:1}.wp-block-rss__placeholder-input .components-base-control__field{display:flex;align-items:stretch;flex-grow:1;margin:0 8px 0 0}.wp-block[data-align=center] .wp-block-search .wp-block-search__inside-wrapper{margin:auto}.wp-block-search .wp-block-search__button{height:auto;border-radius:initial;display:flex;align-items:center}.wp-block-search__components-button-group{margin-top:10px}.block-editor-block-list__block[data-type="core/separator"]{padding-top:.1px;padding-bottom:.1px}[data-type="core/shortcode"] .block-editor-plain-text{max-height:250px}[data-type="core/shortcode"].components-placeholder{min-height:0}.blocks-shortcode__textarea{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal}@media (prefers-reduced-motion:reduce){.blocks-shortcode__textarea{transition-duration:0s;transition-delay:0s}}@media (min-width:600px){.blocks-shortcode__textarea{font-size:13px;line-height:normal}}.blocks-shortcode__textarea:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.blocks-shortcode__textarea::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.blocks-shortcode__textarea::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.blocks-shortcode__textarea:-ms-input-placeholder{color:rgba(30,30,30,.62)}.wp-block[data-align=center]>.wp-block-site-logo{margin-left:auto;margin-right:auto;text-align:center}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo:not(.is-default-size){display:table}.wp-block-site-logo.is-default-size{width:120px}.wp-block-site-logo.is-default-size img{height:auto;width:100%}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;height:auto;max-width:100%}.wp-block-site-logo.wp-block-site-logo .components-placeholder,.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container{border-radius:inherit}.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{height:120px;width:120px}.wp-block-site-logo.wp-block-site-logo .components-placeholder{justify-content:center;align-items:center;box-shadow:none;padding:0;min-height:48px;min-width:48px;height:100%;width:100%;color:currentColor;background:transparent}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__preview{position:absolute;top:4px;right:4px;bottom:4px;left:4px;background:hsla(0,0%,100%,.8);display:flex;align-items:center;justify-content:center}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-drop-zone__content-text{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder:before{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;border:1px dashed;opacity:.4;pointer-events:none;border-radius:inherit}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__fieldset{width:auto}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{color:inherit;padding:0;display:flex;justify-content:center;align-items:center;width:48px;height:48px;border-radius:50%;position:relative;visibility:hidden;background:transparent;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{transition-duration:0s;transition-delay:0s}}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button>svg{color:#fff}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__illustration{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;stroke:currentColor;stroke-dasharray:3;opacity:.4}.wp-block-site-logo.wp-block-site-logo.is-selected .components-button.components-button{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-style:solid;color:#fff;opacity:1;visibility:visible}.wp-block-site-tagline__placeholder,.wp-block-site-title__placeholder{padding:1em 0;border:1px dashed}.wp-block-social-links .wp-social-link{line-height:0}.wp-block-social-links .wp-social-link button{font-size:inherit;color:currentColor;height:auto;line-height:0;padding:.25em}.wp-block-social-links.is-style-pill-shape .wp-social-link button{padding-left:.66667em;padding-right:.66667em}.wp-block-social-links.is-style-logos-only .wp-social-link button{padding:0}.wp-block-social-links div.block-editor-url-input{display:inline-block;margin-left:8px}.wp-social-link:hover{transform:none}.editor-styles-wrapper .wp-block-social-links{padding:0}.wp-block-social-links__social-placeholder{display:flex;opacity:.8;list-style:none}.wp-block-social-links__social-placeholder>.wp-social-link{padding-left:0!important;margin-left:0!important;padding-right:0!important;margin-right:0!important;width:0!important;visibility:hidden}.wp-block-social-links__social-placeholder>.wp-block-social-links__social-placeholder-icons{display:flex}.wp-block-social-links__social-placeholder .wp-social-link{padding:.25em}.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link{padding-left:.66667em;padding-right:.66667em}.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link{padding:0}.wp-block-social-links__social-placeholder .wp-social-link:before{content:"";display:block;width:1em;height:1em;border-radius:50%}.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link:before{background:currentColor}.wp-block-social-links .wp-block-social-links__social-prompt{min-height:24px;list-style:none;order:2;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:24px;margin-top:auto;margin-bottom:auto;cursor:default;padding-right:8px}.wp-block[data-align=center]>.wp-block-social-links{justify-content:center}.block-editor-block-preview__content .components-button:disabled{opacity:1}.wp-social-link.wp-social-link__is-incomplete{opacity:.5}@media (prefers-reduced-motion:reduce){.wp-social-link.wp-social-link__is-incomplete{transition-duration:0s;transition-delay:0s}}.wp-block-social-links .is-selected .wp-social-link__is-incomplete,.wp-social-link.wp-social-link__is-incomplete:focus,.wp-social-link.wp-social-link__is-incomplete:hover{opacity:1}.block-editor-block-list__block[data-type="core/spacer"]:before{content:"";display:block;position:absolute;z-index:1;width:100%;min-height:8px;min-width:8px;height:100%}.block-library-spacer__resize-container.has-show-handle,.wp-block-spacer.is-hovered .block-library-spacer__resize-container{background:rgba(0,0,0,.1)}.is-dark-theme .block-library-spacer__resize-container.has-show-handle,.is-dark-theme .wp-block-spacer.is-hovered .block-library-spacer__resize-container{background:hsla(0,0%,100%,.15)}.block-library-spacer__resize-container{clear:both}.block-library-spacer__resize-container .components-resizable-box__handle:before{content:none}.block-library-spacer__resize-container.resize-horizontal{margin-bottom:0}.wp-block-table{margin:0}.wp-block[data-align=center]>.wp-block-table,.wp-block[data-align=left]>.wp-block-table,.wp-block[data-align=right]>.wp-block-table{height:auto}.wp-block[data-align=center]>.wp-block-table table,.wp-block[data-align=left]>.wp-block-table table,.wp-block[data-align=right]>.wp-block-table table{width:auto}.wp-block[data-align=center]>.wp-block-table td,.wp-block[data-align=center]>.wp-block-table th,.wp-block[data-align=left]>.wp-block-table td,.wp-block[data-align=left]>.wp-block-table th,.wp-block[data-align=right]>.wp-block-table td,.wp-block[data-align=right]>.wp-block-table th{word-break:break-word}.wp-block[data-align=center]>.wp-block-table{text-align:initial}.wp-block[data-align=center]>.wp-block-table table{margin:0 auto}.wp-block-table td,.wp-block-table th{border:1px solid}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);border-style:double}.wp-block-table figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table figcaption{color:hsla(0,0%,100%,.65)}.blocks-table__placeholder-form.blocks-table__placeholder-form{display:flex;flex-direction:column;align-items:flex-start}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.blocks-table__placeholder-form.blocks-table__placeholder-form{flex-direction:row;align-items:flex-end}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:0}}.blocks-table__placeholder-input{width:112px;margin-right:8px;margin-bottom:0}.blocks-table__placeholder-input input{height:36px}.blocks-table__placeholder-input .components-base-control__field{margin-bottom:0}.wp-block-template-part__placeholder-preview-dropdown-content .components-popover__content,.wp-block-template-part__preview-dropdown-content .components-popover__content{min-width:320px;padding:0}.wp-block-template-part__selection-preview-search-form{border-bottom:1px solid #ddd}.wp-block-template-part__selection-preview-container{background:#fff;padding-bottom:16px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item{border-radius:2px;cursor:pointer;margin-top:16px;transition:all .05s ease-in-out;border:1px solid #ddd;width:100%;background-color:#fff}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:hover{border:1px solid var(--wp-admin-theme-color)}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item.is-placeholder{min-height:100px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item .block-editor-block-preview__container{border-bottom:1px solid #ddd}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item-title{padding:4px;font-size:12px;text-align:left}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-header{padding:16px 16px 0}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-content{padding:0 16px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-title{color:var(--wp-admin-theme-color);text-transform:uppercase;font-size:11px;font-weight:500}.wp-block-template-part__placeholder-create-new__title-form .wp-block-template-part__placeholder-create-new__title-form-actions{padding-top:12px;display:flex;justify-content:flex-end}.wp-block-template-part__placeholder-create-new__title-form .wp-block-template-part__placeholder-create-new__title-form-actions .components-flex-item{margin-left:12px}.wp-block-text-columns .block-editor-rich-text__editable:focus{outline:1px solid #ddd}.wp-block[data-align=center]>.wp-block-video{text-align:center}.wp-block-video{position:relative}.wp-block-video.is-transient video{opacity:.3}.wp-block-video .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.editor-video-poster-control .components-base-control__label{display:block}.editor-video-poster-control .components-button{margin-right:8px}.block-library-video-tracks-editor{z-index:159990}.block-library-video-tracks-editor>.components-popover__content{width:360px}.block-library-video-tracks-editor__track-list-track{display:flex;place-content:space-between;align-items:baseline;padding-left:12px}.block-library-video-tracks-editor__single-track-editor-label-language{display:flex;margin-top:12px}.block-library-video-tracks-editor__single-track-editor-label-language>.components-base-control{width:50%}.block-library-video-tracks-editor__single-track-editor-label-language>.components-base-control:first-child{margin-right:16px}.block-library-video-tracks-editor__single-track-editor-kind-select{max-width:240px}.block-library-video-tracks-editor__single-track-editor-buttons-container{display:flex;place-content:space-between;margin-top:32px}.block-library-video-tracks-editor__single-track-editor-edit-track-label{margin-top:4px;margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500;display:block}.block-library-video-tracks-editor>.components-popover__content>div,.block-library-video-tracks-editor__add-tracks-container .components-menu-group__label,.block-library-video-tracks-editor__track-list .components-menu-group__label{padding:0}.block-library-video-tracks-editor__add-tracks-container,.block-library-video-tracks-editor__single-track-editor,.block-library-video-tracks-editor__track-list{padding:12px}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-base-control__label{margin-bottom:4px}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-base-control__field{margin-bottom:12px}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-text-control__input{margin-left:0}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-input-control__label{margin-bottom:4px}.editor-styles-wrapper ul.wp-block-post-template{padding-left:0;margin-left:0;list-style:none}.block-library-query-toolbar__popover .components-popover__content{min-width:230px}.wp-block-query__create-new-link{padding:0 16px 16px 56px}.wp-block[data-align=center]>.wp-block-query-pagination{justify-content:center}.editor-styles-wrapper .wp-block-query-pagination{max-width:100%}.editor-styles-wrapper .wp-block-query-pagination.block-editor-block-list__layout{margin:0}.block-library-query-pagination-toolbar__popover .components-popover__content{min-width:230px}.wp-block-query-pagination>.wp-block-query-pagination-next,.wp-block-query-pagination>.wp-block-query-pagination-numbers,.wp-block-query-pagination>.wp-block-query-pagination-previous{margin:.5em .5em .5em 0}.wp-block-query-pagination>.wp-block-query-pagination-next:last-child,.wp-block-query-pagination>.wp-block-query-pagination-numbers:last-child,.wp-block-query-pagination>.wp-block-query-pagination-previous:last-child{margin-right:0}.wp-block-query-pagination-numbers a{text-decoration:underline}.wp-block-query-pagination-numbers .page-numbers{margin-right:2px}.wp-block-query-pagination-numbers .page-numbers:last-child{margin-right:0}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image.wp-block-post-featured-image .components-resizable-box__container{border-radius:inherit}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder{justify-content:center;align-items:center;box-shadow:none;padding:0;color:currentColor;background:transparent;min-height:200px}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-form-file-upload,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-form-file-upload{display:none}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__preview,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__preview{position:absolute;top:4px;right:4px;bottom:4px;left:4px;background:hsla(0,0%,100%,.8);display:flex;align-items:center;justify-content:center}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder:before,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:before{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;border:1px dashed;opacity:.4;pointer-events:none;border-radius:inherit}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__fieldset,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__fieldset{width:auto}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button{color:inherit;padding:0;display:flex;justify-content:center;align-items:center;width:48px;height:48px;border-radius:50%;position:relative;visibility:hidden;background:transparent;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button{transition-duration:0s;transition-delay:0s}}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button>svg,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button>svg{color:#fff}.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__illustration,.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__illustration{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;stroke:currentColor;stroke-dasharray:3;opacity:.4}.wp-block-post-featured-image.wp-block-post-featured-image[style*=height] .components-placeholder{min-height:48px;min-width:48px;height:100%;width:100%}.wp-block-post-featured-image.wp-block-post-featured-image.is-selected .components-button.components-button{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-style:solid;color:#fff;opacity:1;visibility:visible}div[data-type="core/post-featured-image"] img{max-width:100%;height:auto;display:block}.block-library-post-featured-image-dimension-controls{margin-bottom:8px}.block-library-post-featured-image-dimension-controls.scale-control-is-visible{margin-bottom:16px}:root .editor-styles-wrapper .has-very-light-gray-background-color{background-color:#eee}:root .editor-styles-wrapper .has-very-dark-gray-background-color{background-color:#313131}:root .editor-styles-wrapper .has-very-light-gray-color{color:#eee}:root .editor-styles-wrapper .has-very-dark-gray-color{color:#313131}:root .editor-styles-wrapper .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .editor-styles-wrapper .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .editor-styles-wrapper .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .editor-styles-wrapper .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .editor-styles-wrapper .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .editor-styles-wrapper .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .editor-styles-wrapper .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}.editor-styles-wrapper .has-regular-font-size{font-size:16px}.editor-styles-wrapper .has-larger-font-size{font-size:42px} \ No newline at end of file diff --git a/wp-includes/css/dist/components/style-rtl.css b/wp-includes/css/dist/components/style-rtl.css index d7b9520a63..677cdaf9ed 100644 --- a/wp-includes/css/dist/components/style-rtl.css +++ b/wp-includes/css/dist/components/style-rtl.css @@ -754,11 +754,22 @@ svg.components-checkbox-control__checked { } @media (min-width: 782px) { - .components-color-edit__color-popover.components-popover .components-popover__content.components-popover__content.components-popover__content { + .components-palette-edit__popover.components-popover .components-popover__content.components-popover__content.components-popover__content { margin-left: 156px; margin-top: -49px; } } +.components-palette-edit__popover .components-custom-gradient-picker__gradient-bar { + margin-top: 0; +} +.components-palette-edit__popover .components-custom-gradient-picker__ui-line { + margin-bottom: 0; +} +.components-palette-edit__popover .components-custom-gradient-picker { + width: 280px; + padding: 8px; +} + .component-color-indicator { width: 25px; height: 16px; diff --git a/wp-includes/css/dist/components/style-rtl.min.css b/wp-includes/css/dist/components/style-rtl.min.css index 3d20a632f6..05844765e4 100644 --- a/wp-includes/css/dist/components/style-rtl.min.css +++ b/wp-includes/css/dist/components/style-rtl.min.css @@ -1 +1 @@ -@charset "UTF-8";:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__appear{animation-duration:1ms;animation-delay:0s}}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top right}.components-animate__appear.is-from-top.is-from-right{transform-origin:top left}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom right}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom left}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__slide-in{animation-duration:1ms;animation-delay:0s}}.components-animate__slide-in.is-from-left{transform:translateX(-100%)}.components-animate__slide-in.is-from-right{transform:translateX(100%)}@keyframes components-animate__slide-in-animation{to{transform:translateX(0)}}.components-animate__loading{animation:components-animate__loading 1.6s ease-in-out infinite}@keyframes components-animate__loading{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.components-autocomplete__popover .components-popover__content>div{padding:16px;min-width:220px}.components-autocomplete__result.components-button{display:flex;height:auto;min-height:36px;text-align:right;width:100%}.components-autocomplete__result.components-button.is-selected{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-button-group{display:inline-block}.components-button-group .components-button{border-radius:0;display:inline-flex;color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}.components-button-group .components-button+.components-button{margin-right:-1px}.components-button-group .components-button:first-child{border-radius:0 2px 2px 0}.components-button-group .components-button:last-child{border-radius:2px 0 0 2px}.components-button-group .components-button.is-primary,.components-button-group .components-button:focus{position:relative;z-index:1}.components-button-group .components-button.is-primary{box-shadow:inset 0 0 0 1px #1e1e1e}.components-button{display:inline-flex;text-decoration:none;font-weight:400;font-size:13px;margin:0;border:0;cursor:pointer;-webkit-appearance:none;background:none;transition:box-shadow .1s linear;height:36px;align-items:center;box-sizing:border-box;padding:6px 12px;border-radius:2px;color:#1e1e1e}@media (prefers-reduced-motion:reduce){.components-button{transition-duration:0s;transition-delay:0s}}.components-button:hover,.components-button[aria-expanded=true]{color:var(--wp-admin-theme-color)}.components-button[aria-disabled=true]:hover{color:initial}.components-button:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid transparent}.components-button.is-primary{white-space:nowrap;background:var(--wp-admin-theme-color);color:#fff;text-decoration:none;text-shadow:none;outline:1px solid transparent}.components-button.is-primary:hover:not(:disabled){background:var(--wp-admin-theme-color-darker-10);color:#fff}.components-button.is-primary:active:not(:disabled){background:var(--wp-admin-theme-color-darker-20);border-color:var(--wp-admin-theme-color-darker-20);color:#fff}.components-button.is-primary:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-button.is-primary:disabled,.components-button.is-primary:disabled:active:enabled,.components-button.is-primary[aria-disabled=true],.components-button.is-primary[aria-disabled=true]:active:enabled,.components-button.is-primary[aria-disabled=true]:enabled{color:hsla(0,0%,100%,.4);background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);opacity:1;outline:none}.components-button.is-primary:disabled:active:enabled:focus:enabled,.components-button.is-primary:disabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color)}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{color:#fff;background-size:100px 100%;background-image:linear-gradient(45deg,var(--wp-admin-theme-color) 33%,var(--wp-admin-theme-color-darker-20) 0,var(--wp-admin-theme-color-darker-20) 70%,var(--wp-admin-theme-color) 0);border-color:var(--wp-admin-theme-color)}.components-button.is-secondary,.components-button.is-tertiary{outline:1px solid transparent}.components-button.is-secondary:active:not(:disabled),.components-button.is-tertiary:active:not(:disabled){background:#ddd;color:var(--wp-admin-theme-color-darker-10);box-shadow:none}.components-button.is-secondary:hover:not(:disabled),.components-button.is-tertiary:hover:not(:disabled){color:var(--wp-admin-theme-color-darker-10);box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color-darker-10)}.components-button.is-secondary:disabled,.components-button.is-secondary[aria-disabled=true],.components-button.is-secondary[aria-disabled=true]:hover,.components-button.is-tertiary:disabled,.components-button.is-tertiary[aria-disabled=true],.components-button.is-tertiary[aria-disabled=true]:hover{color:#828282;background:#eaeaea;transform:none;opacity:1;box-shadow:none;outline:none}.components-button.is-secondary{box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);outline:1px solid transparent}.components-button.is-secondary,.components-button.is-tertiary{white-space:nowrap;color:var(--wp-admin-theme-color);background:transparent}.components-button.is-tertiary{padding:6px}.components-button.is-tertiary .dashicon{display:inline-block;flex:0 0 auto}p+.components-button.is-tertiary{margin-right:-6px}.components-button.is-destructive{color:#cc1818;box-shadow:inset 0 0 0 1px #cc1818}.components-button.is-destructive:hover:not(:disabled){color:#710d0d;box-shadow:inset 0 0 0 1px #710d0d}.components-button.is-destructive:focus:not(:disabled){color:var(--wp-admin-theme-color)}.components-button.is-destructive:active:not(:disabled){background:#ccc}.components-button.is-destructive.is-primary{color:#fff;background:#cc1818;box-shadow:inset 0 0 0 1px #cc1818}.components-button.is-destructive.is-primary:hover:not(:disabled){color:#fff;background:#710d0d;box-shadow:inset 0 0 0 1px #710d0d}.components-button.is-link{margin:0;padding:0;box-shadow:none;border:0;border-radius:0;background:none;outline:none;text-align:right;color:var(--wp-admin-theme-color);text-decoration:underline;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out;height:auto}@media (prefers-reduced-motion:reduce){.components-button.is-link{transition-duration:0s;transition-delay:0s}}.components-button.is-link:focus{border-radius:2px}.components-button.is-link.is-destructive{color:#cc1818}.components-button.is-link.is-destructive:active:not(:disabled),.components-button.is-link.is-destructive:hover:not(:disabled){color:#710d0d;background:none}.components-button.is-link.is-destructive:focus:not(:disabled){color:var(--wp-admin-theme-color)}.components-button:not([aria-disabled=true]):active{color:inherit}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;opacity:.3}.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{animation:components-button__busy-animation 2.5s linear infinite;opacity:1;background-size:100px 100%;background-image:linear-gradient(45deg,#fafafa 33%,#e0e0e0 0,#e0e0e0 70%,#fafafa 0)}.components-button.is-small{height:24px;line-height:22px;padding:0 8px;font-size:11px}.components-button.is-small.has-icon:not(.has-text){padding:0 8px;width:24px}.components-button.has-icon{padding:6px;min-width:36px;justify-content:center}.components-button.has-icon .dashicon{display:inline-block;flex:0 0 auto;margin-right:2px;margin-left:2px}.components-button.has-icon.has-text{justify-content:left}.components-button.has-icon.has-text svg{margin-left:8px}.components-button.has-icon.has-text .dashicon{margin-left:10px}.components-button.is-pressed{color:#fff;background:#1e1e1e}.components-button.is-pressed:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.components-button.is-pressed:hover:not(:disabled){color:#fff;background:#1e1e1e}.components-button svg{fill:currentColor;outline:none}@media (forced-colors:active){.components-button svg{fill:CanvasText}}.components-button .components-visually-hidden{height:auto}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control__input[type=checkbox]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;font-size:16px;line-height:normal;border:1px solid #1e1e1e;transition:none;border-radius:2px;background:#fff;color:#1e1e1e;clear:none;cursor:pointer;display:inline-block;line-height:0;margin:0 0 0 4px;outline:0;padding:0!important;text-align:center;vertical-align:top;width:24px;height:24px;-webkit-appearance:none;appearance:none;transition:border-color .1s ease-in-out}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{font-size:13px;line-height:normal}}.components-checkbox-control__input[type=checkbox]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-3px -5px;color:#fff}@media (min-width:782px){.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-4px -5px 0 0}}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{content:"";float:right;display:inline-block;vertical-align:middle;width:16px;font:normal 30px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:782px){.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{float:none;font-size:21px}}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{height:20px;width:20px}}@media (prefers-reduced-motion:reduce){.components-checkbox-control__input[type=checkbox]{transition-duration:0s;transition-delay:0s}}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.components-checkbox-control__input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input-container{position:relative;display:inline-block;margin-left:12px;vertical-align:middle;width:24px;height:24px}@media (min-width:600px){.components-checkbox-control__input-container{width:20px;height:20px}}svg.components-checkbox-control__checked{fill:#fff;cursor:pointer;position:absolute;right:0;top:0;width:24px;height:24px;-webkit-user-select:none;user-select:none;pointer-events:none}@media (min-width:600px){svg.components-checkbox-control__checked{right:-2px;top:-2px}}.components-circular-option-picker{display:inline-block;width:100%;min-width:188px}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end}.components-circular-option-picker .components-circular-option-picker__swatches{display:flex;flex-wrap:wrap;gap:12px}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;width:28px;vertical-align:top;transform:scale(1);transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option-wrapper{transition-duration:0s;transition-delay:0s}}.components-circular-option-picker__option-wrapper:hover{transform:scale(1.2)}.components-circular-option-picker__option-wrapper>div{height:100%;width:100%}.components-circular-option-picker__option-wrapper:before{content:"";position:absolute;top:1px;right:1px;bottom:1px;left:1px;border-radius:50%;z-index:-1;background:url("data:image/svg+xml;charset=utf-8,%3Csvg width='28' height='28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8V6H4v2h2zm2 0V6h2v2H8zm2 8H8v-2h2v2zm2 0v-2h2v2h-2zm0 2v-2h-2v2H8v2h2v-2h2zm2 0v2h-2v-2h2zm2 0h-2v-2h2v2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2v2zm-2-4v-2h2v2h-2z' fill='%23555D65'/%3E%3Cpath d='M18 18v2h-2v-2h2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 10V8H6v2H4v2h2v2H4v2h2v2H4v2h2v2H4v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2v2h-2V4h-2v2h-2V4h-2v2h-2V4h-2v2h2v2h-2v2H8zm0 2v-2H6v2h2zm2 0v-2h2v2h-2zm0 2v-2H8v2H6v2h2v2H6v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h-2v2h-2V6h-2v2h-2v2h2v2h-2v2h-2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4 0H2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2H8V0H6v2H4V0zm0 4V2H2v2h2zm2 0V2h2v2H6zm0 2V4H4v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2H8v2H6z' fill='%23555D65'/%3E%3C/svg%3E")}.components-circular-option-picker__option{display:inline-block;vertical-align:top;height:100%;width:100%;border:none;border-radius:50%;background:transparent;box-shadow:inset 0 0 0 14px;transition:box-shadow .1s ease;cursor:pointer}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option{transition-duration:0s;transition-delay:0s}}.components-circular-option-picker__option:hover{box-shadow:inset 0 0 0 14px!important}.components-circular-option-picker__option.is-pressed{box-shadow:inset 0 0 0 4px;position:relative;z-index:1;overflow:visible}.components-circular-option-picker__option.is-pressed+svg{position:absolute;right:2px;top:2px;border-radius:50%;z-index:2;pointer-events:none}.components-circular-option-picker__option:after{content:"";position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);border:1px solid transparent}.components-circular-option-picker__option:focus:after{content:"";border:2px solid #757575;width:32px;height:32px;position:absolute;top:-2px;right:-2px;border-radius:50%;box-shadow:inset 0 0 0 2px #fff}.components-circular-option-picker__option.components-button:focus{background-color:transparent;box-shadow:inset 0 0 0 14px;outline:none}.components-circular-option-picker__button-action .components-circular-option-picker__option{color:#fff;background:#fff}.components-circular-option-picker__dropdown-link-action{margin-left:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}@media (min-width:782px){.components-color-edit__color-popover.components-popover .components-popover__content.components-popover__content.components-popover__content{margin-left:156px;margin-top:-49px}}.component-color-indicator{width:25px;height:16px;margin-right:.8rem;border:1px solid #dadada;display:inline-block}.component-color-indicator+.component-color-indicator{margin-right:.5rem}.components-combobox-control{width:100%}input.components-combobox-control__input[type=text]{width:100%;border:none;box-shadow:none;font-size:16px;padding:2px;margin:0;line-height:inherit;min-height:auto}@media (min-width:600px){input.components-combobox-control__input[type=text]{font-size:13px}}input.components-combobox-control__input[type=text]:focus{outline:none;box-shadow:none}.components-combobox-control__suggestions-container{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;margin:0 0 8px;padding:4px}@media (prefers-reduced-motion:reduce){.components-combobox-control__suggestions-container{transition-duration:0s;transition-delay:0s}}@media (min-width:600px){.components-combobox-control__suggestions-container{font-size:13px;line-height:normal}}.components-combobox-control__suggestions-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-combobox-control__suggestions-container::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container:focus-within{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-combobox-control__reset.components-button{display:flex;height:24px;min-width:24px;padding:0}.components-color-list-picker,.components-color-list-picker__swatch-button{width:100%}.components-color-list-picker__color-picker{margin:8px 0}.components-color-palette__custom-color{border:none;background:none;outline:0;display:block;border-radius:2px;height:48px;text-align:left;width:100%;background-image:repeating-linear-gradient(-45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(-45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:100% 0,25px 25px;background-size:50px 50px;box-sizing:border-box;color:#fff;cursor:pointer}.components-custom-gradient-picker__gradient-bar:not(.has-gradient){opacity:.4}.components-custom-gradient-picker__gradient-bar{border-radius:2px;margin-top:12px;width:100%;height:48px;margin-bottom:20px;padding-right:16px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{position:relative;width:calc(100% - 32px);margin-right:auto;margin-left:auto}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point{border-radius:50%;background:#fff;padding:2px;top:16px;min-width:16px;width:16px;height:16px;position:relative;color:#1e1e1e}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border-radius:50%;height:16px;width:16px;padding:0;position:absolute;top:16px;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 2px 0 rgba(0,0,0,.25);outline:2px solid transparent}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active,.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus{box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2) #fff,0 0 2px 0 rgba(0,0,0,.25);outline:4px solid transparent}.components-custom-gradient-picker__color-picker-popover .components-custom-gradient-picker__remove-control-point{margin-right:auto;margin-left:auto;display:block;margin-bottom:8px}.components-custom-gradient-picker__inserter{direction:ltr;width:100%}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;width:20px;height:20px}.components-custom-gradient-picker .components-custom-gradient-picker__ui-line{margin-bottom:16px}.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-angle-picker,.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-custom-gradient-picker__type-picker{margin-bottom:0}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar{border:none}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar>div+div{margin-right:1px}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar button.is-pressed>svg{background:#fff;border:1px solid #949494;border-radius:2px}.components-custom-gradient-picker .components-input-control__input,.components-custom-gradient-picker .components-select-control__input{height:40px!important}.components-custom-gradient-picker .components-input-control__label{line-height:1;padding-bottom:8px!important}.components-custom-gradient-picker label{text-transform:uppercase;font-size:11px;font-weight:500}.components-custom-select-control{position:relative}.components-custom-select-control__label{display:block;margin-bottom:8px}.components-custom-select-control__button{border:1px solid #757575;border-radius:2px;min-height:30px;min-width:130px;position:relative;text-align:right}.components-custom-select-control__button.components-custom-select-control__button{padding-left:24px}.components-custom-select-control__button:focus:not(:disabled){border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.components-custom-select-control__button .components-custom-select-control__button-icon{height:100%;padding:0;position:absolute;left:0;top:0}.components-custom-select-control__menu{border:1px solid #1e1e1e;background-color:#fff;border-radius:2px;outline:none;transition:none;max-height:400px;min-width:100%;overflow:auto;padding:0;position:absolute;z-index:1000000}.components-custom-select-control__menu[aria-hidden=true]{display:none}.components-custom-select-control__item{align-items:center;display:grid;grid-template-columns:auto auto;list-style-type:none;padding:8px;cursor:default;line-height:28px}.components-custom-select-control__item.has-hint{grid-template-columns:auto auto 30px}.components-custom-select-control__item.is-highlighted{background:#ddd}.components-custom-select-control__item .components-custom-select-control__item-hint{color:#757575;text-align:left;padding-left:4px}.components-custom-select-control__item .components-custom-select-control__item-icon{margin-right:auto}.components-custom-select-control__item:last-child{margin-bottom:0}.PresetDateRangePicker_panel{padding:0 22px 11px}.PresetDateRangePicker_button{position:relative;height:100%;text-align:center;background:0 0;border:2px solid #00a699;color:#00a699;padding:4px 12px;margin-right:8px;font:inherit;font-weight:700;line-height:normal;overflow:visible;box-sizing:border-box;cursor:pointer}.PresetDateRangePicker_button:active{outline:0}.PresetDateRangePicker_button__selected{color:#fff;background:#00a699}.SingleDatePickerInput{display:inline-block;background-color:#fff}.SingleDatePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.SingleDatePickerInput__rtl{direction:rtl}.SingleDatePickerInput__disabled{background-color:#f2f2f2}.SingleDatePickerInput__block{display:block}.SingleDatePickerInput__showClearDate{padding-right:30px}.SingleDatePickerInput_clearDate{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.SingleDatePickerInput_clearDate__default:focus,.SingleDatePickerInput_clearDate__default:hover{background:#dbdbdb;border-radius:50%}.SingleDatePickerInput_clearDate__small{padding:6px}.SingleDatePickerInput_clearDate__hide{visibility:hidden}.SingleDatePickerInput_clearDate_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.SingleDatePickerInput_clearDate_svg__small{height:9px}.SingleDatePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.SingleDatePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.SingleDatePicker{position:relative;display:inline-block}.SingleDatePicker__block{display:block}.SingleDatePicker_picker{z-index:1;background-color:#fff;position:absolute}.SingleDatePicker_picker__rtl{direction:rtl}.SingleDatePicker_picker__directionLeft{left:0}.SingleDatePicker_picker__directionRight{right:0}.SingleDatePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.SingleDatePicker_picker__fullScreenPortal{background-color:#fff}.SingleDatePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.SingleDatePicker_closeButton:focus,.SingleDatePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.SingleDatePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_buttonReset{background:0 0;border:0;border-radius:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;cursor:pointer;font-size:14px}.DayPickerKeyboardShortcuts_buttonReset:active{outline:0}.DayPickerKeyboardShortcuts_show{width:22px;position:absolute;z-index:2}.DayPickerKeyboardShortcuts_show__bottomRight{border-top:26px solid transparent;border-right:33px solid #00a699;bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topRight{border-bottom:26px solid transparent;border-right:33px solid #00a699;top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topLeft{border-bottom:26px solid transparent;border-left:33px solid #00a699;top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:hover{border-left:33px solid #008489}.DayPickerKeyboardShortcuts_showSpan{color:#fff;position:absolute}.DayPickerKeyboardShortcuts_showSpan__bottomRight{bottom:0;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topRight{top:1px;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topLeft{top:1px;left:-28px}.DayPickerKeyboardShortcuts_panel{overflow:auto;background:#fff;border:1px solid #dbdbdb;border-radius:2px;position:absolute;top:0;bottom:0;right:0;left:0;z-index:2;padding:22px;margin:33px}.DayPickerKeyboardShortcuts_title{font-size:16px;font-weight:700;margin:0}.DayPickerKeyboardShortcuts_list{list-style:none;padding:0;font-size:14px}.DayPickerKeyboardShortcuts_close{position:absolute;right:22px;top:22px;z-index:2}.DayPickerKeyboardShortcuts_close:active{outline:0}.DayPickerKeyboardShortcuts_closeSvg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_closeSvg:focus,.DayPickerKeyboardShortcuts_closeSvg:hover{fill:#82888a}.CalendarDay{box-sizing:border-box;cursor:pointer;font-size:14px;text-align:center}.CalendarDay:active{outline:0}.CalendarDay__defaultCursor{cursor:default}.CalendarDay__default{border:1px solid #e4e7e7;color:#484848;background:#fff}.CalendarDay__default:hover{background:#e4e7e7;border:1px double #e4e7e7;color:inherit}.CalendarDay__hovered_offset{background:#f4f5f5;border:1px double #e4e7e7;color:inherit}.CalendarDay__outside{border:0;background:#fff;color:#484848}.CalendarDay__outside:hover{border:0}.CalendarDay__blocked_minimum_nights{background:#fff;border:1px solid #eceeee;color:#cacccd}.CalendarDay__blocked_minimum_nights:active,.CalendarDay__blocked_minimum_nights:hover{background:#fff;color:#cacccd}.CalendarDay__highlighted_calendar{background:#ffe8bc;color:#484848}.CalendarDay__highlighted_calendar:active,.CalendarDay__highlighted_calendar:hover{background:#ffce71;color:#484848}.CalendarDay__selected_span{background:#66e2da;border:1px solid #33dacd;color:#fff}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:#33dacd;border:1px solid #33dacd;color:#fff}.CalendarDay__last_in_range{border-right:#00a699}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:#00a699;border:1px solid #00a699;color:#fff}.CalendarDay__hovered_span,.CalendarDay__hovered_span:hover{background:#b2f1ec;border:1px solid #80e8e0;color:#007a87}.CalendarDay__hovered_span:active{background:#80e8e0;border:1px solid #80e8e0;color:#007a87}.CalendarDay__blocked_calendar,.CalendarDay__blocked_calendar:active,.CalendarDay__blocked_calendar:hover{background:#cacccd;border:1px solid #cacccd;color:#82888a}.CalendarDay__blocked_out_of_range,.CalendarDay__blocked_out_of_range:active,.CalendarDay__blocked_out_of_range:hover{background:#fff;border:1px solid #e4e7e7;color:#cacccd}.CalendarMonth{background:#fff;text-align:center;vertical-align:top;-webkit-user-select:none;user-select:none}.CalendarMonth_table{border-collapse:collapse;border-spacing:0}.CalendarMonth_verticalSpacing{border-collapse:separate}.CalendarMonth_caption{color:#484848;font-size:18px;text-align:center;padding-top:22px;padding-bottom:37px;caption-side:top}.CalendarMonth_caption__verticalScrollable{padding-top:12px;padding-bottom:7px}.CalendarMonthGrid{background:#fff;text-align:left;z-index:0}.CalendarMonthGrid__animating{z-index:1}.CalendarMonthGrid__horizontal{position:absolute;left:0}.CalendarMonthGrid__vertical{margin:0 auto}.CalendarMonthGrid__vertical_scrollable{margin:0 auto;overflow-y:scroll}.CalendarMonthGrid_month__horizontal{display:inline-block;vertical-align:top;min-height:100%}.CalendarMonthGrid_month__hideForAnimation{position:absolute;z-index:-1;opacity:0;pointer-events:none}.CalendarMonthGrid_month__hidden{visibility:hidden}.DayPickerNavigation{position:relative;z-index:2}.DayPickerNavigation__horizontal{height:0}.DayPickerNavigation__verticalDefault{position:absolute;width:100%;height:52px;bottom:0;left:0}.DayPickerNavigation__verticalScrollableDefault{position:relative}.DayPickerNavigation_button{cursor:pointer;-webkit-user-select:none;user-select:none;border:0;padding:0;margin:0}.DayPickerNavigation_button__default{border:1px solid #e4e7e7;background-color:#fff;color:#757575}.DayPickerNavigation_button__default:focus,.DayPickerNavigation_button__default:hover{border:1px solid #c4c4c4}.DayPickerNavigation_button__default:active{background:#f2f2f2}.DayPickerNavigation_button__horizontalDefault{position:absolute;top:18px;line-height:.78;border-radius:3px;padding:6px 9px}.DayPickerNavigation_leftButton__horizontalDefault{left:22px}.DayPickerNavigation_rightButton__horizontalDefault{right:22px}.DayPickerNavigation_button__verticalDefault{padding:5px;background:#fff;box-shadow:0 0 5px 2px rgba(0,0,0,.1);position:relative;display:inline-block;height:100%;width:50%}.DayPickerNavigation_nextButton__verticalDefault{border-left:0}.DayPickerNavigation_nextButton__verticalScrollableDefault{width:100%}.DayPickerNavigation_svg__horizontal{height:19px;width:19px;fill:#82888a;display:block}.DayPickerNavigation_svg__vertical{height:42px;width:42px;fill:#484848;display:block}.DayPicker{position:relative;text-align:left}.DayPicker,.DayPicker__horizontal{background:#fff}.DayPicker__verticalScrollable{height:100%}.DayPicker__hidden{visibility:hidden}.DayPicker__withBorder{box-shadow:0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);border-radius:3px}.DayPicker_portal__horizontal{box-shadow:none;position:absolute;left:50%;top:50%}.DayPicker_portal__vertical{position:static}.DayPicker_focusRegion{outline:0}.DayPicker_calendarInfo__horizontal,.DayPicker_wrapper__horizontal{display:inline-block;vertical-align:top}.DayPicker_weekHeaders{position:relative}.DayPicker_weekHeaders__horizontal{margin-left:13px}.DayPicker_weekHeader{color:#757575;position:absolute;top:62px;z-index:2;text-align:left;padding:0!important}.DayPicker_weekHeader__vertical{left:50%}.DayPicker_weekHeader__verticalScrollable{top:0;display:table-row;border-bottom:1px solid #dbdbdb;background:#fff;margin-left:0;left:0;width:100%;text-align:center}.DayPicker_weekHeader_ul{list-style:none;margin:1px 0;padding-left:0;padding-right:0;font-size:14px}.DayPicker_weekHeader_li{display:inline-block;text-align:center;margin:0 1px}.DayPicker_transitionContainer{position:relative;overflow:hidden;border-radius:3px}.DayPicker_transitionContainer__horizontal{transition:height .2s ease-in-out}.DayPicker_transitionContainer__vertical{width:100%}.DayPicker_transitionContainer__verticalScrollable{padding-top:20px;height:100%;position:absolute;top:0;bottom:0;right:0;left:0;overflow-y:scroll}.DateInput{margin:0;padding:0;background:#fff;position:relative;display:inline-block;width:130px;vertical-align:middle}.DateInput__small{width:97px}.DateInput__block{width:100%}.DateInput__disabled{background:#f2f2f2;color:#dbdbdb}.DateInput_input{font-weight:200;font-size:19px;line-height:24px;color:#484848;background-color:#fff;width:100%;padding:11px 11px 9px;border:0;border-bottom:2px solid transparent;border-radius:0}.DateInput_input__small{font-size:15px;line-height:18px;letter-spacing:.2px;padding:7px 7px 5px}.DateInput_input__regular{font-weight:auto}.DateInput_input__readOnly{-webkit-user-select:none;user-select:none}.DateInput_input__focused{outline:0;background:#fff;border:0;border-bottom:2px solid #008489}.DateInput_input__disabled{background:#f2f2f2;font-style:italic}.DateInput_screenReaderMessage{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DateInput_fang{position:absolute;width:20px;height:10px;left:22px;z-index:2}.DateInput_fangShape{fill:#fff}.DateInput_fangStroke{stroke:#dbdbdb;fill:transparent}.DateRangePickerInput{background-color:#fff;display:inline-block}.DateRangePickerInput__disabled{background:#f2f2f2}.DateRangePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.DateRangePickerInput__rtl{direction:rtl}.DateRangePickerInput__block{display:block}.DateRangePickerInput__showClearDates{padding-right:30px}.DateRangePickerInput_arrow{display:inline-block;vertical-align:middle;color:#484848}.DateRangePickerInput_arrow_svg{vertical-align:middle;fill:#484848;height:24px;width:24px}.DateRangePickerInput_clearDates{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.DateRangePickerInput_clearDates__small{padding:6px}.DateRangePickerInput_clearDates_default:focus,.DateRangePickerInput_clearDates_default:hover{background:#dbdbdb;border-radius:50%}.DateRangePickerInput_clearDates__hide{visibility:hidden}.DateRangePickerInput_clearDates_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.DateRangePickerInput_clearDates_svg__small{height:9px}.DateRangePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.DateRangePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.DateRangePicker{position:relative;display:inline-block}.DateRangePicker__block{display:block}.DateRangePicker_picker{z-index:1;background-color:#fff;position:absolute}.DateRangePicker_picker__rtl{direction:rtl}.DateRangePicker_picker__directionLeft{left:0}.DateRangePicker_picker__directionRight{right:0}.DateRangePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.DateRangePicker_picker__fullScreenPortal{background-color:#fff}.DateRangePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.DateRangePicker_closeButton:focus,.DateRangePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.DateRangePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.components-datetime{padding:16px}.components-panel__body .components-datetime{padding:0}.components-datetime .components-datetime__calendar-help{padding:16px;min-width:260px}.components-datetime .components-datetime__calendar-help h4{margin:0}.components-datetime .components-datetime__buttons{display:flex;justify-content:space-between}.components-datetime .components-datetime__date-help-toggle{display:block;margin-right:auto}.components-datetime fieldset{border:0;padding:0;margin:0}.components-datetime input,.components-datetime select{box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575}@media (prefers-reduced-motion:reduce){.components-datetime input,.components-datetime select{transition-duration:0s;transition-delay:0s}}.components-datetime .components-button,.components-datetime input[type=number],.components-datetime select{height:30px;margin-top:0;margin-bottom:0}.components-datetime .components-button:focus{z-index:1}.components-datetime__date{min-height:236px;border-top:1px solid #ddd}.components-datetime__date .DayPickerNavigation_leftButton__horizontalDefault{left:13px}.components-datetime__date .CalendarMonth_caption{font-size:13px}.components-datetime__date .CalendarMonth_table{border-collapse:separate;border-spacing:2px}.components-datetime__date .CalendarDay{font-size:13px;border:none;border-radius:50%;text-align:center}.components-datetime__date .CalendarDay:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 3px #fff;outline:2px solid transparent}.components-datetime__date .CalendarDay__selected{background:var(--wp-admin-theme-color);border:2px solid transparent}.components-datetime__date .CalendarDay__selected:hover{background:var(--wp-admin-theme-color-darker-20)}.components-datetime__date .CalendarDay__selected:focus{box-shadow:inset 0 0 0 1px #fff}.components-datetime__date .DayPickerNavigation_button__horizontalDefault{padding:2px 8px;top:20px}.components-datetime__date .DayPickerNavigation_button__horizontalDefault:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-datetime__date .DayPicker_weekHeader{top:50px}.components-datetime__date .DayPicker_weekHeader .DayPicker_weekHeader_ul{margin:1px;padding-right:0;padding-left:0}.components-datetime__date.is-description-visible .DayPicker{visibility:hidden}.components-datetime__date .CalendarDay .components-datetime__date__day{height:100%;display:flex;justify-content:center;align-content:center;flex-direction:column;position:relative}.components-datetime__date .CalendarDay .components-datetime__date__day.has-events:before{content:" ";width:4px;height:4px;border-radius:2px;position:absolute;right:50%;margin-right:-2px;bottom:0;background-color:#fff}.components-datetime__date .CalendarDay:not(.CalendarDay__selected) .components-datetime__date__day.has-events:before{background:var(--wp-admin-theme-color)}.components-datetime__time{padding-bottom:16px}.components-datetime__time fieldset{position:relative;margin-bottom:.5em}.components-datetime__time fieldset+fieldset{margin-bottom:0}.components-datetime__time .components-datetime__time-field-am-pm fieldset{margin-top:0}.components-datetime__time .components-datetime__time-wrapper{display:flex}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-separator{display:inline-block;padding:0 0 0 3px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field-time{direction:ltr}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select{margin-left:4px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]{padding:2px;margin-left:4px;text-align:center;-moz-appearance:textfield}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.components-datetime__time.is-12-hour .components-datetime__time-field-day input{margin:-4px 0 0!important;border-radius:0 2px 2px 0!important}.components-datetime__time.is-12-hour .components-datetime__time-field-year input{border-radius:2px 0 0 2px!important}.components-datetime__timezone{line-height:30px;margin-right:4px;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.components-datetime__time-legend{font-weight:600;margin-top:.5em}.components-datetime__time-legend.invisible{position:absolute;top:-999em;right:-999em}.components-datetime__time-field-day-input,.components-datetime__time-field-hours-input,.components-datetime__time-field-minutes-input{width:35px}.components-datetime__time-field-year-input{width:55px}.components-datetime__time-field-month-select{max-width:145px}.components-popover .components-datetime__date{padding-right:4px}.block-editor-dimension-control .components-base-control__field{display:flex;align-items:center}.block-editor-dimension-control .components-base-control__label{display:flex;align-items:center;margin-left:1em;margin-bottom:0}.block-editor-dimension-control .components-base-control__label .dashicon{margin-left:.5em}.block-editor-dimension-control.is-manual .components-base-control__label{width:10em}body.is-dragging-components-draggable{cursor:move;cursor:grabbing!important}.components-draggable__invisible-drag-image{position:fixed;right:-1000px;height:50px;width:50px}.components-draggable__clone{position:fixed;padding:0;background:transparent;pointer-events:none;z-index:1000000000}.components-drop-zone{position:absolute;top:0;left:0;bottom:0;right:0;z-index:40;visibility:hidden;opacity:0;border-radius:2px}.components-drop-zone.is-active{opacity:1;visibility:visible}.components-drop-zone__content{position:absolute;top:0;bottom:0;right:0;left:0;height:100%;width:100%;display:flex;background-color:var(--wp-admin-theme-color);align-items:center;justify-content:center;z-index:50;text-align:center;color:#fff}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{margin:0 auto;line-height:0;fill:currentColor;pointer-events:none}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-dropdown{display:inline-block}.components-dropdown__content .components-popover__content>div{padding:8px}.components-dropdown__content [role=menuitem]{white-space:nowrap}.components-dropdown-menu__menu{width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}.components-dropdown-menu__menu .components-dropdown-menu__menu-item,.components-dropdown-menu__menu .components-menu-item{width:100%;padding:6px;outline:none;cursor:pointer;white-space:nowrap}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator,.components-dropdown-menu__menu .components-menu-item.has-separator{margin-top:6px;position:relative;overflow:visible}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before,.components-dropdown-menu__menu .components-menu-item.has-separator:before{display:block;content:"";box-sizing:content-box;background-color:#ddd;position:absolute;top:-3px;right:0;left:0;height:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg,.components-dropdown-menu__menu .components-menu-item.is-active svg{color:#fff;background:#1e1e1e;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item>svg,.components-dropdown-menu__menu .components-menu-item>svg{border-radius:2px;width:24px;height:24px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-icon-only,.components-dropdown-menu__menu .components-menu-item.is-icon-only{width:auto}.components-dropdown-menu__menu .components-menu-item__button,.components-dropdown-menu__menu .components-menu-item__button.components-button{min-height:36px;height:auto;text-align:right;padding-right:8px;padding-left:8px}.components-dropdown-menu__menu .components-menu-group{padding:8px;margin:0 -8px}.components-dropdown-menu__menu .components-menu-group:first-child{margin-top:-8px}.components-dropdown-menu__menu .components-menu-group:last-child{margin-bottom:-8px}.components-dropdown-menu__menu .components-menu-group+.components-menu-group{margin-top:0;border-top:1px solid #ccc;padding:8px}.is-alternate .components-dropdown-menu__menu .components-menu-group+.components-menu-group{border-color:#1e1e1e}.components-font-size-picker__header__hint{margin-right:4px;color:#757575}.components-font-size-picker__header .components-button.is-small.has-icon:not(.has-text){min-width:24px;padding:0}.components-font-size-picker__controls{max-width:248px;align-items:center;margin-top:8px;margin-bottom:24px}.components-font-size-picker__controls .components-unit-control-wrapper .components-input-control__label{font-weight:300;padding-bottom:0!important;margin-bottom:8px!important}.components-font-size-picker__controls .components-custom-select-control__button{width:100%}.components-font-size-picker__controls .components-font-size-picker__number{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;display:inline-block;font-weight:500;height:30px;margin:8px 0 0 8px;width:54px}@media (prefers-reduced-motion:reduce){.components-font-size-picker__controls .components-font-size-picker__number{transition-duration:0s;transition-delay:0s}}@media (min-width:600px){.components-font-size-picker__controls .components-font-size-picker__number{font-size:13px;line-height:normal}}.components-font-size-picker__controls .components-font-size-picker__number:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-font-size-picker__controls .components-font-size-picker__number::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-font-size-picker__controls .components-font-size-picker__number::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-font-size-picker__controls .components-font-size-picker__number:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-font-size-picker__controls .components-font-size-picker__number[value=""]+.components-button{cursor:default;opacity:.3;pointer-events:none}.components-font-size-picker__controls .components-font-size-picker__number-container{display:flex;flex-direction:column}.components-font-size-picker__controls .components-color-palette__clear{height:30px}.components-font-size-picker__custom-input .components-range-control__slider+.dashicon{width:30px;height:30px}.components-font-size-picker{border:0;padding:0;margin:0}.components-form-toggle{position:relative;display:inline-block}.components-form-toggle .components-form-toggle__track{content:"";display:inline-block;box-sizing:border-box;vertical-align:top;background-color:#fff;border:1px solid #1e1e1e;width:36px;height:18px;border-radius:9px;transition:background .2s ease}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__track{transition-duration:0s;transition-delay:0s}}.components-form-toggle .components-form-toggle__thumb{display:block;position:absolute;box-sizing:border-box;top:3px;right:3px;width:12px;height:12px;border-radius:50%;transition:transform .1s ease;background-color:#1e1e1e;border:5px solid #1e1e1e}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__thumb{transition-duration:0s;transition-delay:0s}}.components-form-toggle.is-checked .components-form-toggle__track{background-color:var(--wp-admin-theme-color);border:9px solid transparent}.components-form-toggle .components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(-18px)}.components-disabled .components-form-toggle,.components-form-toggle.is-disabled{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{position:absolute;top:0;right:0;width:100%;height:100%;opacity:0;margin:0;padding:0;z-index:1;border:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:before{content:""}.components-form-token-field__input-container{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;display:flex;flex-wrap:wrap;align-items:center;width:100%;margin:0 0 8px;padding:2px 4px;cursor:text}@media (prefers-reduced-motion:reduce){.components-form-token-field__input-container{transition-duration:0s;transition-delay:0s}}@media (min-width:600px){.components-form-token-field__input-container{font-size:13px;line-height:normal}}.components-form-token-field__input-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-form-token-field__input-container::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-form-token-field__input-container:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container.is-disabled{background:#ddd;border-color:#ddd}.components-form-token-field__input-container.is-active{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-form-token-field__input-container input[type=text].components-form-token-field__input{display:inline-block;flex:1;font-size:16px;width:100%;max-width:100%;margin-right:4px;padding:0;min-height:24px;min-width:50px;background:inherit;border:0;color:#1e1e1e;box-shadow:none}@media (min-width:600px){.components-form-token-field__input-container input[type=text].components-form-token-field__input{font-size:13px}}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{outline:none;box-shadow:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__label{display:inline-block;margin-bottom:4px}.components-form-token-field__help{font-size:12px;font-style:normal;color:#757575}.components-form-token-field__token{font-size:13px;display:flex;margin:2px 0 2px 4px;color:#1e1e1e;max-width:100%}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#cc1818}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#757575}.components-form-token-field__token.is-borderless{position:relative;padding:0 0 0 16px}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:transparent;color:var(--wp-admin-theme-color)}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:transparent;color:#757575;position:absolute;top:1px;left:0}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{color:#cc1818;border-radius:0 4px 4px 0;padding:0 6px 0 4px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#1e1e1e}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token{cursor:default}.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{display:inline-block;line-height:24px;height:auto;background:#ddd;min-width:unset;transition:all .2s cubic-bezier(.4,1,.4,1)}@media (prefers-reduced-motion:reduce){.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{transition-duration:0s;transition-delay:0s;animation-duration:1ms;animation-delay:0s}}.components-form-token-field__token-text{border-radius:0 2px 2px 0;padding:0 8px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.components-form-token-field__remove-token.components-button{cursor:pointer;border-radius:2px 0 0 2px;padding:0 2px;color:#1e1e1e;line-height:10px;overflow:initial}.components-form-token-field__remove-token.components-button:hover{color:#1e1e1e}.components-form-token-field__suggestions-list{flex:1 0 100%;min-width:100%;max-height:9em;overflow-y:auto;transition:all .15s ease-in-out;list-style:none;border-top:1px solid #757575;margin:4px -4px -4px;padding:0}@media (prefers-reduced-motion:reduce){.components-form-token-field__suggestions-list{transition-duration:0s;transition-delay:0s}}.components-form-token-field__suggestion{color:#757575;display:block;font-size:13px;padding:4px 8px;margin:0;cursor:pointer}.components-form-token-field__suggestion.is-selected{background:var(--wp-admin-theme-color);color:#fff}.components-form-token-field__suggestion-match{text-decoration:underline}@media (min-width:600px){.components-guide{width:600px}}.components-guide .components-modal__content{padding:0;margin-top:0;border-radius:2px}.components-guide .components-modal__content:before{content:none}.components-guide .components-modal__header{border-bottom:none;padding:0;position:sticky}.components-guide .components-modal__header .components-button{align-self:flex-start;margin:8px 0 0 8px;position:static}.components-guide .components-modal__header .components-button:hover svg{fill:#fff}.components-guide__container{display:flex;flex-direction:column;justify-content:space-between;margin-top:-60px;min-height:100%}.components-guide__page{display:flex;flex-direction:column;justify-content:center;position:relative}@media (min-width:600px){.components-guide__page{min-height:300px}}.components-guide__footer{align-content:center;display:flex;height:30px;justify-content:center;margin:0 0 24px;padding:0 32px;position:relative;width:100%}.components-guide__page-control{margin:0;text-align:center}.components-guide__page-control li{display:inline-block;margin:0}.components-guide__page-control .components-button{height:30px;min-width:20px;margin:-6px 0}.components-modal__frame.components-guide{border:none;min-width:312px;height:80vh;max-height:575px}@media (max-width:600px){.components-modal__frame.components-guide{margin:auto;max-width:calc(100vw - 32px)}}.components-button.components-guide__back-button,.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{height:30px;position:absolute}.components-button.components-guide__back-button,.components-button.components-guide__forward-button{font-size:13px;padding:4px 2px}.components-button.components-guide__back-button.has-text svg,.components-button.components-guide__forward-button.has-text svg{margin:0}.components-button.components-guide__back-button:hover,.components-button.components-guide__forward-button:hover{text-decoration:underline}.components-button.components-guide__back-button{right:32px}.components-button.components-guide__forward-button{left:32px;color:#1386bf;font-weight:700}.components-button.components-guide__finish-button{left:32px}.components-button.components-guide__inline-finish-button{display:none}[role=region]{position:relative}.is-focusing-regions [role=region]:focus:after{content:"";position:absolute;top:0;bottom:0;right:0;left:0;pointer-events:none;outline:4px solid transparent;box-shadow:inset 0 0 0 4px var(--wp-admin-theme-color)}@supports (outline-offset:1px){.is-focusing-regions [role=region]:focus:after{content:none}.is-focusing-regions [role=region]:focus{outline-style:solid;outline-color:var(--wp-admin-theme-color);outline-width:4px;outline-offset:-4px}}.components-menu-group+.components-menu-group{margin-top:8px;padding-top:8px;border-top:1px solid #1e1e1e}.components-menu-group+.components-menu-group.has-hidden-separator{border-top:none;margin-top:0;padding-top:0}.components-menu-group__label{padding:0 8px;margin-top:4px;margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500;white-space:nowrap}.components-menu-item__button,.components-menu-item__button.components-button{width:100%}.components-menu-item__button.components-button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button.components-button[role=menuitemradio] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemradio] .components-menu-item__item:only-child{padding-left:48px}.components-menu-item__button.components-button .components-menu-items__item-icon,.components-menu-item__button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__button.components-button .components-menu-items__item-icon.has-icon-right,.components-menu-item__button .components-menu-items__item-icon.has-icon-right{margin-left:-2px;margin-right:24px}.components-menu-item__button.components-button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right,.components-menu-item__button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right{margin-right:8px}.components-menu-item__button .block-editor-block-icon,.components-menu-item__button.components-button .block-editor-block-icon{margin-right:-2px;margin-left:8px}.components-menu-item__button.components-button.is-primary,.components-menu-item__button.is-primary{justify-content:center}.components-menu-item__button.components-button.is-primary .components-menu-item__item,.components-menu-item__button.is-primary .components-menu-item__item{margin-left:0}.components-menu-item__info-wrapper{display:flex;flex-direction:column;margin-left:auto}.components-menu-item__info{margin-top:4px;font-size:12px;color:#757575;white-space:normal}.components-menu-item__item{white-space:nowrap;min-width:160px;margin-left:auto;display:inline-flex;align-items:center}.components-menu-item__shortcut{align-self:center;margin-left:0;margin-right:auto;padding-right:24px;color:currentColor;display:none}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-menu-items-choice.components-button svg,.components-menu-items-choice svg{margin-left:12px}.components-menu-items-choice.components-button.has-icon,.components-menu-items-choice.has-icon{padding-right:12px}.components-modal__screen-overlay{position:fixed;top:0;left:0;bottom:0;right:0;background-color:rgba(0,0,0,.35);z-index:100000;display:flex;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-modal__screen-overlay{animation-duration:1ms;animation-delay:0s}}.components-modal__frame{margin:0;width:100%;background:#fff;box-shadow:0 10px 10px rgba(0,0,0,.25);border-radius:2px;overflow:hidden;display:flex}@media (min-width:600px){.components-modal__frame{margin:auto;width:auto;min-width:360px;max-width:calc(100% - 32px);max-height:calc(100% - 120px);animation:components-modal__appear-animation .1s ease-out;animation-fill-mode:forwards}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.components-modal__frame{animation-duration:1ms;animation-delay:0s}}@media (min-width:600px){.components-modal__frame.is-full-screen{width:90vw;min-height:90vh}}@media (min-width:960px){.components-modal__frame{max-height:70%}}@keyframes components-modal__appear-animation{0%{transform:translateY(32px)}to{transform:translateY(0)}}.components-modal__header{box-sizing:border-box;border-bottom:1px solid #ddd;padding:0 32px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;height:60px;width:100%;z-index:10;position:absolute;top:0;right:0}.components-modal__header .components-modal__header-heading{font-size:1rem;font-weight:600}.components-modal__header h1{line-height:1;margin:0}.components-modal__header .components-button{position:relative;right:8px}.components-modal__header-heading-container{align-items:center;flex-grow:1;display:flex;flex-direction:row;justify-content:left}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-width:36px;max-height:36px;padding:8px}.components-modal__content{flex:1;margin-top:60px;padding:0 32px 24px;overflow:auto}.components-modal__content:before{content:"";display:block;margin-bottom:24px}.components-notice{display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#fff;border-right:4px solid var(--wp-admin-theme-color);margin:5px 15px 2px;padding:8px 12px;align-items:center}.components-notice.is-dismissible{padding-left:36px;position:relative}.components-notice.is-success{border-right-color:#4ab866;background-color:#eff9f1}.components-notice.is-warning{border-right-color:#f0b849;background-color:#fef8ee}.components-notice.is-error{border-right-color:#cc1818;background-color:#f4a2a2}.components-notice__content{flex-grow:1;margin:4px 0 4px 25px}.components-notice__actions{display:flex;flex-wrap:wrap}.components-notice__action.components-button{margin-left:8px}.components-notice__action.components-button,.components-notice__action.components-button.is-link{margin-right:12px}.components-notice__action.components-button.is-secondary{vertical-align:initial}.components-notice__dismiss{color:#757575;align-self:flex-start;flex-shrink:0}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#1e1e1e;background-color:transparent}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.components-notice-list{max-width:100vw;box-sizing:border-box}.components-notice-list .components-notice__content{margin-top:12px;margin-bottom:12px;line-height:2}.components-notice-list .components-notice__action.components-button{display:block;margin-right:0;margin-top:8px}.components-panel{background:#fff;border:1px solid #e0e0e0}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-top:1px solid #e0e0e0;border-bottom:1px solid #e0e0e0}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__header{display:flex;justify-content:space-between;align-items:center;padding:0 16px;height:48px;border-bottom:1px solid #ddd}.components-panel__header h2{margin:0;font-size:inherit;color:inherit}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;padding:0;font-size:inherit;margin-top:0;margin-bottom:0;transition:background .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body>.components-panel__body-title{transition-duration:0s;transition-delay:0s}}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 5px}.components-panel__body>.components-panel__body-title:hover{background:#f0f0f0;border:none}.components-panel__body-toggle.components-button{position:relative;padding:16px 16px 16px 48px;outline:none;width:100%;font-weight:500;text-align:right;color:#1e1e1e;border:none;box-shadow:none;transition:background .1s ease-in-out;height:auto}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button{transition-duration:0s;transition-delay:0s}}.components-panel__body-toggle.components-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);border-radius:0}.components-panel__body-toggle.components-button .components-panel__arrow{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:#1e1e1e;fill:currentColor;transition:color .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button .components-panel__arrow{transition-duration:0s;transition-delay:0s}}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{transform:scaleX(-1);-ms-filter:fliph;filter:FlipH;margin-top:-10px}.components-panel__icon{color:#757575;margin:-2px 6px -2px 0}.components-panel__body-toggle-icon{margin-left:-5px}.components-panel__color-title{float:right;height:19px}.components-panel__row{display:flex;justify-content:space-between;align-items:center;margin-top:8px;min-height:36px}.components-panel__row select{min-width:0}.components-panel__row label{margin-left:12px;flex-shrink:0;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder.components-placeholder{box-sizing:border-box;position:relative;padding:1em;min-height:200px;width:100%;text-align:right;margin:0;color:#1e1e1e;-moz-font-smoothing:subpixel-antialiased;-webkit-font-smoothing:subpixel-antialiased;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;outline:1px solid transparent}@supports (position:sticky){.components-placeholder.components-placeholder{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}}.components-placeholder.components-placeholder .components-base-control__label{font-size:13px}.components-placeholder__error,.components-placeholder__fieldset,.components-placeholder__instructions,.components-placeholder__label{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__label{display:flex;font-weight:600;margin-bottom:16px;align-items:center}.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{margin-left:1ch;fill:currentColor}@media (forced-colors:active){.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:CanvasText}}.components-placeholder__label:empty{display:none}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;width:100%;flex-wrap:wrap}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__fieldset.is-column-layout,.components-placeholder__fieldset.is-column-layout form{flex-direction:column}.components-placeholder__input[type=url]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;margin:0 0 0 8px;flex:1 1 auto}@media (prefers-reduced-motion:reduce){.components-placeholder__input[type=url]{transition-duration:0s;transition-delay:0s}}@media (min-width:600px){.components-placeholder__input[type=url]{font-size:13px;line-height:normal}}.components-placeholder__input[type=url]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-placeholder__input[type=url]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-placeholder__instructions{margin-bottom:1em}.components-placeholder__error{margin-top:1em;width:100%}.components-placeholder__preview img{margin:3%;width:50%}.components-placeholder__fieldset .components-button{margin-left:12px;margin-bottom:12px}.components-placeholder__fieldset .components-button:last-child{margin-bottom:0;margin-left:0}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link{margin-right:10px;margin-left:10px}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link:last-child{margin-left:0}.components-placeholder.is-large .components-placeholder__label{font-size:18pt;font-weight:400}.components-placeholder.is-medium .components-placeholder__instructions,.components-placeholder.is-small .components-placeholder__instructions{display:none}.components-placeholder.is-medium .components-placeholder__fieldset,.components-placeholder.is-medium .components-placeholder__fieldset form,.components-placeholder.is-small .components-placeholder__fieldset,.components-placeholder.is-small .components-placeholder__fieldset form{flex-direction:column}.components-placeholder.is-medium .components-placeholder__fieldset .components-button,.components-placeholder.is-small .components-placeholder__fieldset .components-button{margin-left:auto}.components-placeholder.is-small .components-button{padding:0 8px 2px}.components-popover{position:fixed;z-index:1000000;top:0;left:0;opacity:0}.components-popover.is-expanded,.components-popover[data-x-axis][data-y-axis]{opacity:1}.components-popover.is-expanded{top:0;left:0;right:0;bottom:0;z-index:1000000!important}.components-popover:not(.is-without-arrow){margin-left:2px}.components-popover:not(.is-without-arrow):before{border:8px solid #ccc}.components-popover:not(.is-without-arrow).is-alternate:before{border-color:#1e1e1e}.components-popover:not(.is-without-arrow):after{border:8px solid #fff}.components-popover:not(.is-without-arrow):after,.components-popover:not(.is-without-arrow):before{content:"";position:absolute;height:0;width:0;line-height:0}.components-popover:not(.is-without-arrow)[data-y-axis=top]{margin-top:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:before{bottom:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:after{bottom:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:after,.components-popover:not(.is-without-arrow)[data-y-axis=top]:before{border-bottom:none;border-left-color:transparent;border-right-color:transparent;border-top-style:solid;margin-left:-10px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]{margin-top:8px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:before{top:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:after{top:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:after,.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:before{border-bottom-style:solid;border-left-color:transparent;border-right-color:transparent;border-top:none;margin-left:-10px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]{margin-left:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:before{right:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:after{right:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:after,.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:before{border-bottom-color:transparent;border-left-style:solid;border-right:none;border-top-color:transparent}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]{margin-left:8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:before{left:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:after{left:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:after,.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:before{border-bottom-color:transparent;border-left:none;border-right-style:solid;border-top-color:transparent}.components-popover[data-y-axis=top]{bottom:100%}.components-popover[data-y-axis=bottom]{top:100%}.components-popover[data-y-axis=middle]{align-items:center;display:flex}.components-popover.is-from-top{margin-top:12px}.components-popover.is-from-bottom{margin-top:-12px}.components-popover.is-from-left:not(.is-from-top):not(.is-from-bottom){margin-left:12px}.components-popover.is-from-right:not(.is-from-top):not(.is-from-bottom){margin-right:12px}.components-popover__content{height:100%;background:#fff;border:1px solid #ccc;box-shadow:0 2px 6px rgba(0,0,0,.05);border-radius:2px}.is-alternate .components-popover__content{border:1px solid #1e1e1e;box-shadow:none}.components-popover .components-popover__content{position:absolute;height:auto;overflow-y:auto}.components-popover.is-expanded .components-popover__content{position:static;height:calc(100% - 48px);overflow-y:visible;min-width:auto;border:none;border-top:1px solid #1e1e1e}.components-popover[data-y-axis=top] .components-popover__content{bottom:100%}.components-popover[data-x-axis=center] .components-popover__content{left:50%;transform:translateX(-50%)}.components-popover[data-x-axis=right] .components-popover__content{position:absolute;left:100%}.components-popover:not([data-y-axis=middle])[data-x-axis=right] .components-popover__content{margin-left:-25px}.components-popover[data-x-axis=left] .components-popover__content{position:absolute;right:100%}.components-popover:not([data-y-axis=middle])[data-x-axis=left] .components-popover__content{margin-right:-25px}.components-popover__header{align-items:center;background:#fff;display:flex;height:48px;justify-content:space-between;padding:0 8px 0 16px}.components-popover__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.components-popover__close.components-button{z-index:5}.components-radio-control{display:flex;flex-direction:column}.components-radio-control .components-base-control__help{margin-top:0}.components-radio-control .components-base-control__field{margin-bottom:0}.components-radio-control__option:not(:last-child){margin-bottom:4px}.components-radio-control__input[type=radio]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;font-size:16px;line-height:normal;border:1px solid #1e1e1e;transition:none;border-radius:50%;width:24px;height:24px;margin-top:0;margin-left:6px}@media (prefers-reduced-motion:reduce){.components-radio-control__input[type=radio]{transition-duration:0s;transition-delay:0s}}@media (min-width:600px){.components-radio-control__input[type=radio]{font-size:13px;line-height:normal}}.components-radio-control__input[type=radio]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.components-radio-control__input[type=radio]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-radio-control__input[type=radio]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-radio-control__input[type=radio]:-ms-input-placeholder{color:rgba(30,30,30,.62)}@media (min-width:600px){.components-radio-control__input[type=radio]{height:20px;width:20px}}.components-radio-control__input[type=radio]:checked:before{box-sizing:inherit;width:8px;height:8px;transform:translate(-7px,7px);margin:0;background-color:#fff;border:4px solid #fff}@media (min-width:600px){.components-radio-control__input[type=radio]:checked:before{transform:translate(-5px,5px)}}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.components-radio-control__input[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-resizable-box__handle{display:none;width:23px;height:23px;z-index:2}.components-resizable-box__container.has-show-handle .components-resizable-box__handle{display:block}.components-resizable-box__container>img{width:inherit}.components-resizable-box__handle:after{display:block;content:"";width:15px;height:15px;border-radius:50%;background:#fff;cursor:inherit;position:absolute;top:calc(50% - 8px);left:calc(50% - 8px);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.components-resizable-box__side-handle:before{display:block;border-radius:2px;content:"";width:3px;height:3px;background:var(--wp-admin-theme-color);cursor:inherit;position:absolute;top:calc(50% - 1px);left:calc(50% - 1px);transition:transform .1s ease-in;opacity:0}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle:before{transition-duration:0s;transition-delay:0s}}.components-resizable-box__corner-handle,.components-resizable-box__side-handle{z-index:2}.components-resizable-box__side-handle.components-resizable-box__handle-bottom,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:before,.components-resizable-box__side-handle.components-resizable-box__handle-top,.components-resizable-box__side-handle.components-resizable-box__handle-top:before{width:100%;right:0;border-right:0;border-left:0}.components-resizable-box__side-handle.components-resizable-box__handle-left,.components-resizable-box__side-handle.components-resizable-box__handle-left:before,.components-resizable-box__side-handle.components-resizable-box__handle-right,.components-resizable-box__side-handle.components-resizable-box__handle-right:before{height:100%;top:0;border-top:0;border-bottom:0}.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:components-resizable-box__top-bottom-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation-duration:1ms;animation-delay:0s}}.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation:components-resizable-box__left-right-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation-duration:1ms;animation-delay:0s}}@media not all and (-webkit-min-device-pixel-ratio:0),not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:none}}}@keyframes components-resizable-box__top-bottom-animation{0%{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:1}}@keyframes components-resizable-box__left-right-animation{0%{transform:scaleY(0);opacity:0}to{transform:scaleY(1);opacity:1}}.components-resizable-box__handle-right{right:-11.5px}.components-resizable-box__handle-left{left:-11.5px}.components-resizable-box__handle-top{top:-11.5px}.components-resizable-box__handle-bottom{bottom:-11.5px}.components-responsive-wrapper{position:relative;max-width:100%}.components-responsive-wrapper,.components-responsive-wrapper>span{display:block}.components-responsive-wrapper__content{position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;margin:auto}.components-sandbox{overflow:hidden}iframe.components-sandbox{width:100%}body.lockscroll,html.lockscroll{overflow:hidden}.components-search-control{position:relative}.components-search-control input[type=search].components-search-control__input{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;line-height:normal;display:block;padding:16px 16px 16px 48px;background:#f0f0f0;border:none;width:100%;height:48px;font-size:16px}@media (prefers-reduced-motion:reduce){.components-search-control input[type=search].components-search-control__input{transition-duration:0s;transition-delay:0s}}@media (min-width:600px){.components-search-control input[type=search].components-search-control__input{font-size:13px;line-height:normal}}.components-search-control input[type=search].components-search-control__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-search-control input[type=search].components-search-control__input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-search-control input[type=search].components-search-control__input::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-search-control input[type=search].components-search-control__input:-ms-input-placeholder{color:rgba(30,30,30,.62)}@media (min-width:600px){.components-search-control input[type=search].components-search-control__input{font-size:13px}}.components-search-control input[type=search].components-search-control__input:focus{background:#fff;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-search-control input[type=search].components-search-control__input::placeholder{color:#757575}.components-search-control input[type=search].components-search-control__input::-webkit-search-cancel-button,.components-search-control input[type=search].components-search-control__input::-webkit-search-decoration,.components-search-control input[type=search].components-search-control__input::-webkit-search-results-button,.components-search-control input[type=search].components-search-control__input::-webkit-search-results-decoration{-webkit-appearance:none}.components-search-control__icon{position:absolute;top:0;left:12px;bottom:0;display:flex;align-items:center}.components-search-control__icon>svg{margin:8px 0}.components-search-control__input-wrapper{position:relative}.components-select-control__input{background:#fff;height:36px;line-height:36px;margin:1px;outline:0;width:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}@media (min-width:782px){.components-select-control__input{height:28px;line-height:28px}}@media (max-width:782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-snackbar{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#1e1e1e;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.3);color:#fff;padding:16px 24px;width:100%;max-width:600px;box-sizing:border-box;cursor:pointer;pointer-events:auto}@media (min-width:600px){.components-snackbar{width:-moz-fit-content;width:fit-content}}.components-snackbar:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color)}.components-snackbar.components-snackbar-explicit-dismiss{cursor:default}.components-snackbar .components-snackbar__content-with-icon{margin-right:24px}.components-snackbar .components-snackbar__icon{position:absolute;top:24px;right:28px}.components-snackbar .components-snackbar__dismiss-button{margin-right:32px;cursor:pointer}.components-snackbar__action.components-button{margin-right:32px;color:#fff;height:auto;flex-shrink:0;line-height:1.4;padding:0}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary){text-decoration:underline;background-color:transparent}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):focus{color:#fff;box-shadow:none;outline:1px dotted #fff}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:var(--wp-admin-theme-color)}.components-snackbar__content{display:flex;align-items:baseline;justify-content:space-between;line-height:1.4}.components-snackbar-list{position:absolute;z-index:100000;width:100%;box-sizing:border-box;pointer-events:none}.components-snackbar-list__notice-container{position:relative;padding-top:8px}.components-swatch{width:18px;height:18px;border-radius:50%;color:transparent;background:transparent}.components-swatch:after{content:"";display:block;width:100%;height:100%;border:1px solid rgba(0,0,0,.2);border-radius:50%}.components-button.has-icon.has-text .components-swatch{margin-left:8px}.components-tab-panel__tabs{display:flex;align-items:stretch;flex-direction:row}.components-tab-panel__tabs[aria-orientation=vertical]{flex-direction:column}.components-tab-panel__tabs-item{background:transparent;border:none;box-shadow:none;border-radius:0;cursor:pointer;height:48px;padding:3px 16px;margin-right:0;font-weight:500;transition:box-shadow .1s linear;box-sizing:border-box}.components-tab-panel__tabs-item:after{content:attr(data-label);display:block;height:0;overflow:hidden;speak:none;visibility:hidden}.components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-tab-panel__tabs-item.is-active{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) transparent,inset 0 -4px 0 0 var(--wp-admin-theme-color);position:relative}.components-tab-panel__tabs-item.is-active:before{content:"";position:absolute;top:0;bottom:1px;left:0;right:0;border-bottom:4px solid transparent}.components-tab-panel__tabs-item:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-tab-panel__tabs-item.is-active:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 -4px 0 0 var(--wp-admin-theme-color)}.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal}@media (prefers-reduced-motion:reduce){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{transition-duration:0s;transition-delay:0s}}@media (min-width:600px){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{font-size:13px;line-height:normal}}.components-text-control__input:focus,.components-text-control__input[type=color]:focus,.components-text-control__input[type=date]:focus,.components-text-control__input[type=datetime-local]:focus,.components-text-control__input[type=datetime]:focus,.components-text-control__input[type=email]:focus,.components-text-control__input[type=month]:focus,.components-text-control__input[type=number]:focus,.components-text-control__input[type=password]:focus,.components-text-control__input[type=tel]:focus,.components-text-control__input[type=text]:focus,.components-text-control__input[type=time]:focus,.components-text-control__input[type=url]:focus,.components-text-control__input[type=week]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-text-control__input::-webkit-input-placeholder,.components-text-control__input[type=color]::-webkit-input-placeholder,.components-text-control__input[type=date]::-webkit-input-placeholder,.components-text-control__input[type=datetime-local]::-webkit-input-placeholder,.components-text-control__input[type=datetime]::-webkit-input-placeholder,.components-text-control__input[type=email]::-webkit-input-placeholder,.components-text-control__input[type=month]::-webkit-input-placeholder,.components-text-control__input[type=number]::-webkit-input-placeholder,.components-text-control__input[type=password]::-webkit-input-placeholder,.components-text-control__input[type=tel]::-webkit-input-placeholder,.components-text-control__input[type=text]::-webkit-input-placeholder,.components-text-control__input[type=time]::-webkit-input-placeholder,.components-text-control__input[type=url]::-webkit-input-placeholder,.components-text-control__input[type=week]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-text-control__input::-moz-placeholder,.components-text-control__input[type=color]::-moz-placeholder,.components-text-control__input[type=date]::-moz-placeholder,.components-text-control__input[type=datetime-local]::-moz-placeholder,.components-text-control__input[type=datetime]::-moz-placeholder,.components-text-control__input[type=email]::-moz-placeholder,.components-text-control__input[type=month]::-moz-placeholder,.components-text-control__input[type=number]::-moz-placeholder,.components-text-control__input[type=password]::-moz-placeholder,.components-text-control__input[type=tel]::-moz-placeholder,.components-text-control__input[type=text]::-moz-placeholder,.components-text-control__input[type=time]::-moz-placeholder,.components-text-control__input[type=url]::-moz-placeholder,.components-text-control__input[type=week]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-text-control__input:-ms-input-placeholder,.components-text-control__input[type=color]:-ms-input-placeholder,.components-text-control__input[type=date]:-ms-input-placeholder,.components-text-control__input[type=datetime-local]:-ms-input-placeholder,.components-text-control__input[type=datetime]:-ms-input-placeholder,.components-text-control__input[type=email]:-ms-input-placeholder,.components-text-control__input[type=month]:-ms-input-placeholder,.components-text-control__input[type=number]:-ms-input-placeholder,.components-text-control__input[type=password]:-ms-input-placeholder,.components-text-control__input[type=tel]:-ms-input-placeholder,.components-text-control__input[type=text]:-ms-input-placeholder,.components-text-control__input[type=time]:-ms-input-placeholder,.components-text-control__input[type=url]:-ms-input-placeholder,.components-text-control__input[type=week]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-tip{display:flex;color:#757575}.components-tip svg{align-self:center;fill:#f0b849;flex-shrink:0;margin-left:16px}.components-tip p{margin:0}.components-toggle-control .components-base-control__field{display:flex;margin-bottom:12px;line-height:normal;align-items:center}.components-toggle-control .components-base-control__field .components-form-toggle{margin-left:12px}.components-toggle-control .components-base-control__field .components-toggle-control__label{display:block}.components-accessible-toolbar{display:inline-flex;border:1px solid #1e1e1e;border-radius:2px;flex-shrink:0}.components-accessible-toolbar>.components-toolbar-group:last-child{border-left:none}.components-accessible-toolbar .components-button,.components-toolbar .components-button{position:relative;height:48px;z-index:1;padding-right:16px;padding-left:16px}.components-accessible-toolbar .components-button:focus:enabled,.components-toolbar .components-button:focus:enabled{box-shadow:none;outline:none}.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{content:"";position:absolute;display:block;border-radius:2px;height:32px;right:8px;left:8px;z-index:-1;animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation-duration:1ms;animation-delay:0s}}.components-accessible-toolbar .components-button svg,.components-toolbar .components-button svg{position:relative;margin-right:auto;margin-left:auto}.components-accessible-toolbar .components-button.is-pressed,.components-accessible-toolbar .components-button.is-pressed:hover,.components-toolbar .components-button.is-pressed,.components-toolbar .components-button.is-pressed:hover{background:transparent}.components-accessible-toolbar .components-button.is-pressed:before,.components-toolbar .components-button.is-pressed:before{background:#1e1e1e}.components-accessible-toolbar .components-button:focus:before,.components-toolbar .components-button:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.components-accessible-toolbar .components-button.has-icon.has-icon,.components-toolbar .components-button.has-icon.has-icon{padding-right:12px;padding-left:12px;min-width:48px}.components-accessible-toolbar .components-button.components-tab-button,.components-toolbar .components-button.components-tab-button{font-weight:500}.components-accessible-toolbar .components-button.components-tab-button span,.components-toolbar .components-button.components-tab-button span{display:inline-block;padding-right:0;padding-left:0;position:relative}@keyframes components-button__appear-animation{0%{transform:scaleY(0)}to{transform:scaleY(1)}}.components-toolbar__control.components-button{position:relative}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 0 5px 10px}.components-toolbar__control.components-button[data-subscript]:after{content:attr(data-subscript);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;line-height:12px;position:absolute;left:8px;bottom:10px}.components-toolbar__control.components-button:active:before{display:none}.components-toolbar__control.components-button:not(:disabled).is-pressed[data-subscript]:after{color:#fff}.components-toolbar-group{min-height:48px;border-left:1px solid #1e1e1e;background-color:#fff;display:inline-flex;flex-shrink:0;flex-wrap:wrap;line-height:0}.components-toolbar-group .components-toolbar-group.components-toolbar-group{border-width:0;margin:0}.components-toolbar{min-height:48px;margin:0;border:1px solid #1e1e1e;background-color:#fff;display:inline-flex;flex-shrink:0;flex-wrap:wrap}.components-toolbar .components-toolbar.components-toolbar{border-width:0;margin:0}div.components-toolbar>div{display:block;margin:0}@supports (position:sticky){div.components-toolbar>div{display:flex}}div.components-toolbar>div+div.has-left-divider{margin-right:6px;position:relative;overflow:visible}div.components-toolbar>div+div.has-left-divider:before{display:inline-block;content:"";box-sizing:content-box;background-color:#ddd;position:absolute;top:8px;right:-3px;width:1px;height:20px}.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group.components-dropdown>* .components-button,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group.components-dropdown>.components-button.components-button,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-button:first-child:last-child,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-dropdown:first-child:last-child .components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown.components-dropdown>* .components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown.components-dropdown>.components-button.components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-button:first-child:last-child,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-dropdown:first-child:last-child .components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar.components-dropdown>* .components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar.components-dropdown>.components-button.components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-button:first-child:last-child,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-dropdown:first-child:last-child .components-button,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot.components-dropdown>* .components-button,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot.components-dropdown>.components-button.components-button,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-button:first-child:last-child,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-dropdown:first-child:last-child .components-button,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot.components-dropdown>* .components-button,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot.components-dropdown>.components-button.components-button,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-button:first-child:last-child,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-dropdown:first-child:last-child .components-button{min-width:48px;padding-right:12px;padding-left:12px}.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group.components-dropdown>* .components-button:before,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group.components-dropdown>.components-button.components-button:before,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-button:first-child:last-child:before,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-dropdown:first-child:last-child .components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown.components-dropdown>* .components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown.components-dropdown>.components-button.components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-button:first-child:last-child:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-dropdown:first-child:last-child .components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar.components-dropdown>* .components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar.components-dropdown>.components-button.components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-button:first-child:last-child:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-dropdown:first-child:last-child .components-button:before,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot.components-dropdown>* .components-button:before,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot.components-dropdown>.components-button.components-button:before,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-button:first-child:last-child:before,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-dropdown:first-child:last-child .components-button:before,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot.components-dropdown>* .components-button:before,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot.components-dropdown>.components-button.components-button:before,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-button:first-child:last-child:before,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-dropdown:first-child:last-child .components-button:before{right:8px;left:8px}.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-button:first-child,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-dropdown:first-child .components-button,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>div:first-child>.components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-button:first-child,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-dropdown:first-child .components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>div:first-child>.components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-button:first-child,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-dropdown:first-child .components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>div:first-child>.components-button,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-button:first-child,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-dropdown:first-child .components-button,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>div:first-child>.components-button,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-button:first-child,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-dropdown:first-child .components-button,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>div:first-child>.components-button{min-width:42px;padding-right:11px;padding-left:6px}.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-button:first-child:before,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-dropdown:first-child .components-button:before,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>div:first-child>.components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-button:first-child:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-dropdown:first-child .components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>div:first-child>.components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-button:first-child:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-dropdown:first-child .components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>div:first-child>.components-button:before,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-button:first-child:before,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-dropdown:first-child .components-button:before,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>div:first-child>.components-button:before,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-button:first-child:before,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-dropdown:first-child .components-button:before,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>div:first-child>.components-button:before{right:8px;left:2px}.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-button,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-dropdown .components-button,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>div>.components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-dropdown .components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>div>.components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-dropdown .components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>div>.components-button,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-button,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-dropdown .components-button,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>div>.components-button,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-button,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-dropdown .components-button,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>div>.components-button{min-width:36px;padding-right:6px;padding-left:6px}.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-button svg,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-dropdown .components-button svg,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>div>.components-button svg,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-button svg,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-dropdown .components-button svg,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>div>.components-button svg,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-button svg,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-dropdown .components-button svg,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>div>.components-button svg,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-button svg,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-dropdown .components-button svg,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>div>.components-button svg,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-button svg,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-dropdown .components-button svg,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>div>.components-button svg{min-width:24px}.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-button:before,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-dropdown .components-button:before,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>div>.components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-dropdown .components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>div>.components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-dropdown .components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>div>.components-button:before,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-button:before,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-dropdown .components-button:before,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>div>.components-button:before,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-button:before,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-dropdown .components-button:before,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>div>.components-button:before{right:2px;left:2px}.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-button:last-child,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-dropdown:last-child .components-button,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>div:last-child>.components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-button:last-child,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-dropdown:last-child .components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>div:last-child>.components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-button:last-child,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-dropdown:last-child .components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>div:last-child>.components-button,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-button:last-child,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-dropdown:last-child .components-button,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>div:last-child>.components-button,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-button:last-child,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-dropdown:last-child .components-button,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>div:last-child>.components-button{min-width:42px;padding-right:6px;padding-left:11px}.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-button:last-child:before,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-dropdown:last-child .components-button:before,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>div:last-child>.components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-button:last-child:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-dropdown:last-child .components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>div:last-child>.components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-button:last-child:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-dropdown:last-child .components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>div:last-child>.components-button:before,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-button:last-child:before,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-dropdown:last-child .components-button:before,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>div:last-child>.components-button:before,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-button:last-child:before,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-dropdown:last-child .components-button:before,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>div:last-child>.components-button:before{right:2px;left:8px}.components-tooltip.components-popover{z-index:1000002}.components-tooltip.components-popover .components-popover__content{min-width:0}.components-tooltip .components-popover__content{background:#1e1e1e;border-radius:2px;border-width:0;color:#fff;white-space:nowrap;text-align:center;line-height:1.4;font-size:12px;box-shadow:none}.components-tooltip .components-popover__content>div{padding:4px 8px}.components-tooltip__shortcut{display:inline-block;margin-right:8px}.disabled-element-wrapper{position:relative}.disabled-element-wrapper .event-catcher{z-index:100002;position:absolute;width:100%;height:100%;top:0;right:0;bottom:0;left:0} \ No newline at end of file +@charset "UTF-8";:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__appear{animation-duration:1ms;animation-delay:0s}}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top right}.components-animate__appear.is-from-top.is-from-right{transform-origin:top left}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom right}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom left}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__slide-in{animation-duration:1ms;animation-delay:0s}}.components-animate__slide-in.is-from-left{transform:translateX(-100%)}.components-animate__slide-in.is-from-right{transform:translateX(100%)}@keyframes components-animate__slide-in-animation{to{transform:translateX(0)}}.components-animate__loading{animation:components-animate__loading 1.6s ease-in-out infinite}@keyframes components-animate__loading{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.components-autocomplete__popover .components-popover__content>div{padding:16px;min-width:220px}.components-autocomplete__result.components-button{display:flex;height:auto;min-height:36px;text-align:right;width:100%}.components-autocomplete__result.components-button.is-selected{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-button-group{display:inline-block}.components-button-group .components-button{border-radius:0;display:inline-flex;color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}.components-button-group .components-button+.components-button{margin-right:-1px}.components-button-group .components-button:first-child{border-radius:0 2px 2px 0}.components-button-group .components-button:last-child{border-radius:2px 0 0 2px}.components-button-group .components-button.is-primary,.components-button-group .components-button:focus{position:relative;z-index:1}.components-button-group .components-button.is-primary{box-shadow:inset 0 0 0 1px #1e1e1e}.components-button{display:inline-flex;text-decoration:none;font-weight:400;font-size:13px;margin:0;border:0;cursor:pointer;-webkit-appearance:none;background:none;transition:box-shadow .1s linear;height:36px;align-items:center;box-sizing:border-box;padding:6px 12px;border-radius:2px;color:#1e1e1e}@media (prefers-reduced-motion:reduce){.components-button{transition-duration:0s;transition-delay:0s}}.components-button:hover,.components-button[aria-expanded=true]{color:var(--wp-admin-theme-color)}.components-button[aria-disabled=true]:hover{color:initial}.components-button:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid transparent}.components-button.is-primary{white-space:nowrap;background:var(--wp-admin-theme-color);color:#fff;text-decoration:none;text-shadow:none;outline:1px solid transparent}.components-button.is-primary:hover:not(:disabled){background:var(--wp-admin-theme-color-darker-10);color:#fff}.components-button.is-primary:active:not(:disabled){background:var(--wp-admin-theme-color-darker-20);border-color:var(--wp-admin-theme-color-darker-20);color:#fff}.components-button.is-primary:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-button.is-primary:disabled,.components-button.is-primary:disabled:active:enabled,.components-button.is-primary[aria-disabled=true],.components-button.is-primary[aria-disabled=true]:active:enabled,.components-button.is-primary[aria-disabled=true]:enabled{color:hsla(0,0%,100%,.4);background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);opacity:1;outline:none}.components-button.is-primary:disabled:active:enabled:focus:enabled,.components-button.is-primary:disabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color)}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{color:#fff;background-size:100px 100%;background-image:linear-gradient(45deg,var(--wp-admin-theme-color) 33%,var(--wp-admin-theme-color-darker-20) 0,var(--wp-admin-theme-color-darker-20) 70%,var(--wp-admin-theme-color) 0);border-color:var(--wp-admin-theme-color)}.components-button.is-secondary,.components-button.is-tertiary{outline:1px solid transparent}.components-button.is-secondary:active:not(:disabled),.components-button.is-tertiary:active:not(:disabled){background:#ddd;color:var(--wp-admin-theme-color-darker-10);box-shadow:none}.components-button.is-secondary:hover:not(:disabled),.components-button.is-tertiary:hover:not(:disabled){color:var(--wp-admin-theme-color-darker-10);box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color-darker-10)}.components-button.is-secondary:disabled,.components-button.is-secondary[aria-disabled=true],.components-button.is-secondary[aria-disabled=true]:hover,.components-button.is-tertiary:disabled,.components-button.is-tertiary[aria-disabled=true],.components-button.is-tertiary[aria-disabled=true]:hover{color:#828282;background:#eaeaea;transform:none;opacity:1;box-shadow:none;outline:none}.components-button.is-secondary{box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);outline:1px solid transparent}.components-button.is-secondary,.components-button.is-tertiary{white-space:nowrap;color:var(--wp-admin-theme-color);background:transparent}.components-button.is-tertiary{padding:6px}.components-button.is-tertiary .dashicon{display:inline-block;flex:0 0 auto}p+.components-button.is-tertiary{margin-right:-6px}.components-button.is-destructive{color:#cc1818;box-shadow:inset 0 0 0 1px #cc1818}.components-button.is-destructive:hover:not(:disabled){color:#710d0d;box-shadow:inset 0 0 0 1px #710d0d}.components-button.is-destructive:focus:not(:disabled){color:var(--wp-admin-theme-color)}.components-button.is-destructive:active:not(:disabled){background:#ccc}.components-button.is-destructive.is-primary{color:#fff;background:#cc1818;box-shadow:inset 0 0 0 1px #cc1818}.components-button.is-destructive.is-primary:hover:not(:disabled){color:#fff;background:#710d0d;box-shadow:inset 0 0 0 1px #710d0d}.components-button.is-link{margin:0;padding:0;box-shadow:none;border:0;border-radius:0;background:none;outline:none;text-align:right;color:var(--wp-admin-theme-color);text-decoration:underline;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out;height:auto}@media (prefers-reduced-motion:reduce){.components-button.is-link{transition-duration:0s;transition-delay:0s}}.components-button.is-link:focus{border-radius:2px}.components-button.is-link.is-destructive{color:#cc1818}.components-button.is-link.is-destructive:active:not(:disabled),.components-button.is-link.is-destructive:hover:not(:disabled){color:#710d0d;background:none}.components-button.is-link.is-destructive:focus:not(:disabled){color:var(--wp-admin-theme-color)}.components-button:not([aria-disabled=true]):active{color:inherit}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;opacity:.3}.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{animation:components-button__busy-animation 2.5s linear infinite;opacity:1;background-size:100px 100%;background-image:linear-gradient(45deg,#fafafa 33%,#e0e0e0 0,#e0e0e0 70%,#fafafa 0)}.components-button.is-small{height:24px;line-height:22px;padding:0 8px;font-size:11px}.components-button.is-small.has-icon:not(.has-text){padding:0 8px;width:24px}.components-button.has-icon{padding:6px;min-width:36px;justify-content:center}.components-button.has-icon .dashicon{display:inline-block;flex:0 0 auto;margin-right:2px;margin-left:2px}.components-button.has-icon.has-text{justify-content:left}.components-button.has-icon.has-text svg{margin-left:8px}.components-button.has-icon.has-text .dashicon{margin-left:10px}.components-button.is-pressed{color:#fff;background:#1e1e1e}.components-button.is-pressed:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.components-button.is-pressed:hover:not(:disabled){color:#fff;background:#1e1e1e}.components-button svg{fill:currentColor;outline:none}@media (forced-colors:active){.components-button svg{fill:CanvasText}}.components-button .components-visually-hidden{height:auto}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control__input[type=checkbox]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;font-size:16px;line-height:normal;border:1px solid #1e1e1e;transition:none;border-radius:2px;background:#fff;color:#1e1e1e;clear:none;cursor:pointer;display:inline-block;line-height:0;margin:0 0 0 4px;outline:0;padding:0!important;text-align:center;vertical-align:top;width:24px;height:24px;-webkit-appearance:none;appearance:none;transition:border-color .1s ease-in-out}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{font-size:13px;line-height:normal}}.components-checkbox-control__input[type=checkbox]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-3px -5px;color:#fff}@media (min-width:782px){.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-4px -5px 0 0}}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{content:"";float:right;display:inline-block;vertical-align:middle;width:16px;font:normal 30px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:782px){.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{float:none;font-size:21px}}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{height:20px;width:20px}}@media (prefers-reduced-motion:reduce){.components-checkbox-control__input[type=checkbox]{transition-duration:0s;transition-delay:0s}}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.components-checkbox-control__input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input-container{position:relative;display:inline-block;margin-left:12px;vertical-align:middle;width:24px;height:24px}@media (min-width:600px){.components-checkbox-control__input-container{width:20px;height:20px}}svg.components-checkbox-control__checked{fill:#fff;cursor:pointer;position:absolute;right:0;top:0;width:24px;height:24px;-webkit-user-select:none;user-select:none;pointer-events:none}@media (min-width:600px){svg.components-checkbox-control__checked{right:-2px;top:-2px}}.components-circular-option-picker{display:inline-block;width:100%;min-width:188px}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end}.components-circular-option-picker .components-circular-option-picker__swatches{display:flex;flex-wrap:wrap;gap:12px}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;width:28px;vertical-align:top;transform:scale(1);transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option-wrapper{transition-duration:0s;transition-delay:0s}}.components-circular-option-picker__option-wrapper:hover{transform:scale(1.2)}.components-circular-option-picker__option-wrapper>div{height:100%;width:100%}.components-circular-option-picker__option-wrapper:before{content:"";position:absolute;top:1px;right:1px;bottom:1px;left:1px;border-radius:50%;z-index:-1;background:url("data:image/svg+xml;charset=utf-8,%3Csvg width='28' height='28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8V6H4v2h2zm2 0V6h2v2H8zm2 8H8v-2h2v2zm2 0v-2h2v2h-2zm0 2v-2h-2v2H8v2h2v-2h2zm2 0v2h-2v-2h2zm2 0h-2v-2h2v2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2v2zm-2-4v-2h2v2h-2z' fill='%23555D65'/%3E%3Cpath d='M18 18v2h-2v-2h2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 10V8H6v2H4v2h2v2H4v2h2v2H4v2h2v2H4v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2v2h-2V4h-2v2h-2V4h-2v2h-2V4h-2v2h2v2h-2v2H8zm0 2v-2H6v2h2zm2 0v-2h2v2h-2zm0 2v-2H8v2H6v2h2v2H6v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h-2v2h-2V6h-2v2h-2v2h2v2h-2v2h-2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4 0H2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2H8V0H6v2H4V0zm0 4V2H2v2h2zm2 0V2h2v2H6zm0 2V4H4v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2H8v2H6z' fill='%23555D65'/%3E%3C/svg%3E")}.components-circular-option-picker__option{display:inline-block;vertical-align:top;height:100%;width:100%;border:none;border-radius:50%;background:transparent;box-shadow:inset 0 0 0 14px;transition:box-shadow .1s ease;cursor:pointer}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option{transition-duration:0s;transition-delay:0s}}.components-circular-option-picker__option:hover{box-shadow:inset 0 0 0 14px!important}.components-circular-option-picker__option.is-pressed{box-shadow:inset 0 0 0 4px;position:relative;z-index:1;overflow:visible}.components-circular-option-picker__option.is-pressed+svg{position:absolute;right:2px;top:2px;border-radius:50%;z-index:2;pointer-events:none}.components-circular-option-picker__option:after{content:"";position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);border:1px solid transparent}.components-circular-option-picker__option:focus:after{content:"";border:2px solid #757575;width:32px;height:32px;position:absolute;top:-2px;right:-2px;border-radius:50%;box-shadow:inset 0 0 0 2px #fff}.components-circular-option-picker__option.components-button:focus{background-color:transparent;box-shadow:inset 0 0 0 14px;outline:none}.components-circular-option-picker__button-action .components-circular-option-picker__option{color:#fff;background:#fff}.components-circular-option-picker__dropdown-link-action{margin-left:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}@media (min-width:782px){.components-palette-edit__popover.components-popover .components-popover__content.components-popover__content.components-popover__content{margin-left:156px;margin-top:-49px}}.components-palette-edit__popover .components-custom-gradient-picker__gradient-bar{margin-top:0}.components-palette-edit__popover .components-custom-gradient-picker__ui-line{margin-bottom:0}.components-palette-edit__popover .components-custom-gradient-picker{width:280px;padding:8px}.component-color-indicator{width:25px;height:16px;margin-right:.8rem;border:1px solid #dadada;display:inline-block}.component-color-indicator+.component-color-indicator{margin-right:.5rem}.components-combobox-control{width:100%}input.components-combobox-control__input[type=text]{width:100%;border:none;box-shadow:none;font-size:16px;padding:2px;margin:0;line-height:inherit;min-height:auto}@media (min-width:600px){input.components-combobox-control__input[type=text]{font-size:13px}}input.components-combobox-control__input[type=text]:focus{outline:none;box-shadow:none}.components-combobox-control__suggestions-container{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;margin:0 0 8px;padding:4px}@media (prefers-reduced-motion:reduce){.components-combobox-control__suggestions-container{transition-duration:0s;transition-delay:0s}}@media (min-width:600px){.components-combobox-control__suggestions-container{font-size:13px;line-height:normal}}.components-combobox-control__suggestions-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-combobox-control__suggestions-container::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container:focus-within{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-combobox-control__reset.components-button{display:flex;height:24px;min-width:24px;padding:0}.components-color-list-picker,.components-color-list-picker__swatch-button{width:100%}.components-color-list-picker__color-picker{margin:8px 0}.components-color-palette__custom-color{border:none;background:none;outline:0;display:block;border-radius:2px;height:48px;text-align:left;width:100%;background-image:repeating-linear-gradient(-45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(-45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:100% 0,25px 25px;background-size:50px 50px;box-sizing:border-box;color:#fff;cursor:pointer}.components-custom-gradient-picker__gradient-bar:not(.has-gradient){opacity:.4}.components-custom-gradient-picker__gradient-bar{border-radius:2px;margin-top:12px;width:100%;height:48px;margin-bottom:20px;padding-right:16px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{position:relative;width:calc(100% - 32px);margin-right:auto;margin-left:auto}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point{border-radius:50%;background:#fff;padding:2px;top:16px;min-width:16px;width:16px;height:16px;position:relative;color:#1e1e1e}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border-radius:50%;height:16px;width:16px;padding:0;position:absolute;top:16px;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 2px 0 rgba(0,0,0,.25);outline:2px solid transparent}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active,.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus{box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2) #fff,0 0 2px 0 rgba(0,0,0,.25);outline:4px solid transparent}.components-custom-gradient-picker__color-picker-popover .components-custom-gradient-picker__remove-control-point{margin-right:auto;margin-left:auto;display:block;margin-bottom:8px}.components-custom-gradient-picker__inserter{direction:ltr;width:100%}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;width:20px;height:20px}.components-custom-gradient-picker .components-custom-gradient-picker__ui-line{margin-bottom:16px}.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-angle-picker,.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-custom-gradient-picker__type-picker{margin-bottom:0}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar{border:none}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar>div+div{margin-right:1px}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar button.is-pressed>svg{background:#fff;border:1px solid #949494;border-radius:2px}.components-custom-gradient-picker .components-input-control__input,.components-custom-gradient-picker .components-select-control__input{height:40px!important}.components-custom-gradient-picker .components-input-control__label{line-height:1;padding-bottom:8px!important}.components-custom-gradient-picker label{text-transform:uppercase;font-size:11px;font-weight:500}.components-custom-select-control{position:relative}.components-custom-select-control__label{display:block;margin-bottom:8px}.components-custom-select-control__button{border:1px solid #757575;border-radius:2px;min-height:30px;min-width:130px;position:relative;text-align:right}.components-custom-select-control__button.components-custom-select-control__button{padding-left:24px}.components-custom-select-control__button:focus:not(:disabled){border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.components-custom-select-control__button .components-custom-select-control__button-icon{height:100%;padding:0;position:absolute;left:0;top:0}.components-custom-select-control__menu{border:1px solid #1e1e1e;background-color:#fff;border-radius:2px;outline:none;transition:none;max-height:400px;min-width:100%;overflow:auto;padding:0;position:absolute;z-index:1000000}.components-custom-select-control__menu[aria-hidden=true]{display:none}.components-custom-select-control__item{align-items:center;display:grid;grid-template-columns:auto auto;list-style-type:none;padding:8px;cursor:default;line-height:28px}.components-custom-select-control__item.has-hint{grid-template-columns:auto auto 30px}.components-custom-select-control__item.is-highlighted{background:#ddd}.components-custom-select-control__item .components-custom-select-control__item-hint{color:#757575;text-align:left;padding-left:4px}.components-custom-select-control__item .components-custom-select-control__item-icon{margin-right:auto}.components-custom-select-control__item:last-child{margin-bottom:0}.PresetDateRangePicker_panel{padding:0 22px 11px}.PresetDateRangePicker_button{position:relative;height:100%;text-align:center;background:0 0;border:2px solid #00a699;color:#00a699;padding:4px 12px;margin-right:8px;font:inherit;font-weight:700;line-height:normal;overflow:visible;box-sizing:border-box;cursor:pointer}.PresetDateRangePicker_button:active{outline:0}.PresetDateRangePicker_button__selected{color:#fff;background:#00a699}.SingleDatePickerInput{display:inline-block;background-color:#fff}.SingleDatePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.SingleDatePickerInput__rtl{direction:rtl}.SingleDatePickerInput__disabled{background-color:#f2f2f2}.SingleDatePickerInput__block{display:block}.SingleDatePickerInput__showClearDate{padding-right:30px}.SingleDatePickerInput_clearDate{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.SingleDatePickerInput_clearDate__default:focus,.SingleDatePickerInput_clearDate__default:hover{background:#dbdbdb;border-radius:50%}.SingleDatePickerInput_clearDate__small{padding:6px}.SingleDatePickerInput_clearDate__hide{visibility:hidden}.SingleDatePickerInput_clearDate_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.SingleDatePickerInput_clearDate_svg__small{height:9px}.SingleDatePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.SingleDatePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.SingleDatePicker{position:relative;display:inline-block}.SingleDatePicker__block{display:block}.SingleDatePicker_picker{z-index:1;background-color:#fff;position:absolute}.SingleDatePicker_picker__rtl{direction:rtl}.SingleDatePicker_picker__directionLeft{left:0}.SingleDatePicker_picker__directionRight{right:0}.SingleDatePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.SingleDatePicker_picker__fullScreenPortal{background-color:#fff}.SingleDatePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.SingleDatePicker_closeButton:focus,.SingleDatePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.SingleDatePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_buttonReset{background:0 0;border:0;border-radius:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;cursor:pointer;font-size:14px}.DayPickerKeyboardShortcuts_buttonReset:active{outline:0}.DayPickerKeyboardShortcuts_show{width:22px;position:absolute;z-index:2}.DayPickerKeyboardShortcuts_show__bottomRight{border-top:26px solid transparent;border-right:33px solid #00a699;bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topRight{border-bottom:26px solid transparent;border-right:33px solid #00a699;top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topLeft{border-bottom:26px solid transparent;border-left:33px solid #00a699;top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:hover{border-left:33px solid #008489}.DayPickerKeyboardShortcuts_showSpan{color:#fff;position:absolute}.DayPickerKeyboardShortcuts_showSpan__bottomRight{bottom:0;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topRight{top:1px;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topLeft{top:1px;left:-28px}.DayPickerKeyboardShortcuts_panel{overflow:auto;background:#fff;border:1px solid #dbdbdb;border-radius:2px;position:absolute;top:0;bottom:0;right:0;left:0;z-index:2;padding:22px;margin:33px}.DayPickerKeyboardShortcuts_title{font-size:16px;font-weight:700;margin:0}.DayPickerKeyboardShortcuts_list{list-style:none;padding:0;font-size:14px}.DayPickerKeyboardShortcuts_close{position:absolute;right:22px;top:22px;z-index:2}.DayPickerKeyboardShortcuts_close:active{outline:0}.DayPickerKeyboardShortcuts_closeSvg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_closeSvg:focus,.DayPickerKeyboardShortcuts_closeSvg:hover{fill:#82888a}.CalendarDay{box-sizing:border-box;cursor:pointer;font-size:14px;text-align:center}.CalendarDay:active{outline:0}.CalendarDay__defaultCursor{cursor:default}.CalendarDay__default{border:1px solid #e4e7e7;color:#484848;background:#fff}.CalendarDay__default:hover{background:#e4e7e7;border:1px double #e4e7e7;color:inherit}.CalendarDay__hovered_offset{background:#f4f5f5;border:1px double #e4e7e7;color:inherit}.CalendarDay__outside{border:0;background:#fff;color:#484848}.CalendarDay__outside:hover{border:0}.CalendarDay__blocked_minimum_nights{background:#fff;border:1px solid #eceeee;color:#cacccd}.CalendarDay__blocked_minimum_nights:active,.CalendarDay__blocked_minimum_nights:hover{background:#fff;color:#cacccd}.CalendarDay__highlighted_calendar{background:#ffe8bc;color:#484848}.CalendarDay__highlighted_calendar:active,.CalendarDay__highlighted_calendar:hover{background:#ffce71;color:#484848}.CalendarDay__selected_span{background:#66e2da;border:1px solid #33dacd;color:#fff}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:#33dacd;border:1px solid #33dacd;color:#fff}.CalendarDay__last_in_range{border-right:#00a699}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:#00a699;border:1px solid #00a699;color:#fff}.CalendarDay__hovered_span,.CalendarDay__hovered_span:hover{background:#b2f1ec;border:1px solid #80e8e0;color:#007a87}.CalendarDay__hovered_span:active{background:#80e8e0;border:1px solid #80e8e0;color:#007a87}.CalendarDay__blocked_calendar,.CalendarDay__blocked_calendar:active,.CalendarDay__blocked_calendar:hover{background:#cacccd;border:1px solid #cacccd;color:#82888a}.CalendarDay__blocked_out_of_range,.CalendarDay__blocked_out_of_range:active,.CalendarDay__blocked_out_of_range:hover{background:#fff;border:1px solid #e4e7e7;color:#cacccd}.CalendarMonth{background:#fff;text-align:center;vertical-align:top;-webkit-user-select:none;user-select:none}.CalendarMonth_table{border-collapse:collapse;border-spacing:0}.CalendarMonth_verticalSpacing{border-collapse:separate}.CalendarMonth_caption{color:#484848;font-size:18px;text-align:center;padding-top:22px;padding-bottom:37px;caption-side:top}.CalendarMonth_caption__verticalScrollable{padding-top:12px;padding-bottom:7px}.CalendarMonthGrid{background:#fff;text-align:left;z-index:0}.CalendarMonthGrid__animating{z-index:1}.CalendarMonthGrid__horizontal{position:absolute;left:0}.CalendarMonthGrid__vertical{margin:0 auto}.CalendarMonthGrid__vertical_scrollable{margin:0 auto;overflow-y:scroll}.CalendarMonthGrid_month__horizontal{display:inline-block;vertical-align:top;min-height:100%}.CalendarMonthGrid_month__hideForAnimation{position:absolute;z-index:-1;opacity:0;pointer-events:none}.CalendarMonthGrid_month__hidden{visibility:hidden}.DayPickerNavigation{position:relative;z-index:2}.DayPickerNavigation__horizontal{height:0}.DayPickerNavigation__verticalDefault{position:absolute;width:100%;height:52px;bottom:0;left:0}.DayPickerNavigation__verticalScrollableDefault{position:relative}.DayPickerNavigation_button{cursor:pointer;-webkit-user-select:none;user-select:none;border:0;padding:0;margin:0}.DayPickerNavigation_button__default{border:1px solid #e4e7e7;background-color:#fff;color:#757575}.DayPickerNavigation_button__default:focus,.DayPickerNavigation_button__default:hover{border:1px solid #c4c4c4}.DayPickerNavigation_button__default:active{background:#f2f2f2}.DayPickerNavigation_button__horizontalDefault{position:absolute;top:18px;line-height:.78;border-radius:3px;padding:6px 9px}.DayPickerNavigation_leftButton__horizontalDefault{left:22px}.DayPickerNavigation_rightButton__horizontalDefault{right:22px}.DayPickerNavigation_button__verticalDefault{padding:5px;background:#fff;box-shadow:0 0 5px 2px rgba(0,0,0,.1);position:relative;display:inline-block;height:100%;width:50%}.DayPickerNavigation_nextButton__verticalDefault{border-left:0}.DayPickerNavigation_nextButton__verticalScrollableDefault{width:100%}.DayPickerNavigation_svg__horizontal{height:19px;width:19px;fill:#82888a;display:block}.DayPickerNavigation_svg__vertical{height:42px;width:42px;fill:#484848;display:block}.DayPicker{position:relative;text-align:left}.DayPicker,.DayPicker__horizontal{background:#fff}.DayPicker__verticalScrollable{height:100%}.DayPicker__hidden{visibility:hidden}.DayPicker__withBorder{box-shadow:0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);border-radius:3px}.DayPicker_portal__horizontal{box-shadow:none;position:absolute;left:50%;top:50%}.DayPicker_portal__vertical{position:static}.DayPicker_focusRegion{outline:0}.DayPicker_calendarInfo__horizontal,.DayPicker_wrapper__horizontal{display:inline-block;vertical-align:top}.DayPicker_weekHeaders{position:relative}.DayPicker_weekHeaders__horizontal{margin-left:13px}.DayPicker_weekHeader{color:#757575;position:absolute;top:62px;z-index:2;text-align:left;padding:0!important}.DayPicker_weekHeader__vertical{left:50%}.DayPicker_weekHeader__verticalScrollable{top:0;display:table-row;border-bottom:1px solid #dbdbdb;background:#fff;margin-left:0;left:0;width:100%;text-align:center}.DayPicker_weekHeader_ul{list-style:none;margin:1px 0;padding-left:0;padding-right:0;font-size:14px}.DayPicker_weekHeader_li{display:inline-block;text-align:center;margin:0 1px}.DayPicker_transitionContainer{position:relative;overflow:hidden;border-radius:3px}.DayPicker_transitionContainer__horizontal{transition:height .2s ease-in-out}.DayPicker_transitionContainer__vertical{width:100%}.DayPicker_transitionContainer__verticalScrollable{padding-top:20px;height:100%;position:absolute;top:0;bottom:0;right:0;left:0;overflow-y:scroll}.DateInput{margin:0;padding:0;background:#fff;position:relative;display:inline-block;width:130px;vertical-align:middle}.DateInput__small{width:97px}.DateInput__block{width:100%}.DateInput__disabled{background:#f2f2f2;color:#dbdbdb}.DateInput_input{font-weight:200;font-size:19px;line-height:24px;color:#484848;background-color:#fff;width:100%;padding:11px 11px 9px;border:0;border-bottom:2px solid transparent;border-radius:0}.DateInput_input__small{font-size:15px;line-height:18px;letter-spacing:.2px;padding:7px 7px 5px}.DateInput_input__regular{font-weight:auto}.DateInput_input__readOnly{-webkit-user-select:none;user-select:none}.DateInput_input__focused{outline:0;background:#fff;border:0;border-bottom:2px solid #008489}.DateInput_input__disabled{background:#f2f2f2;font-style:italic}.DateInput_screenReaderMessage{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DateInput_fang{position:absolute;width:20px;height:10px;left:22px;z-index:2}.DateInput_fangShape{fill:#fff}.DateInput_fangStroke{stroke:#dbdbdb;fill:transparent}.DateRangePickerInput{background-color:#fff;display:inline-block}.DateRangePickerInput__disabled{background:#f2f2f2}.DateRangePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.DateRangePickerInput__rtl{direction:rtl}.DateRangePickerInput__block{display:block}.DateRangePickerInput__showClearDates{padding-right:30px}.DateRangePickerInput_arrow{display:inline-block;vertical-align:middle;color:#484848}.DateRangePickerInput_arrow_svg{vertical-align:middle;fill:#484848;height:24px;width:24px}.DateRangePickerInput_clearDates{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.DateRangePickerInput_clearDates__small{padding:6px}.DateRangePickerInput_clearDates_default:focus,.DateRangePickerInput_clearDates_default:hover{background:#dbdbdb;border-radius:50%}.DateRangePickerInput_clearDates__hide{visibility:hidden}.DateRangePickerInput_clearDates_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.DateRangePickerInput_clearDates_svg__small{height:9px}.DateRangePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.DateRangePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.DateRangePicker{position:relative;display:inline-block}.DateRangePicker__block{display:block}.DateRangePicker_picker{z-index:1;background-color:#fff;position:absolute}.DateRangePicker_picker__rtl{direction:rtl}.DateRangePicker_picker__directionLeft{left:0}.DateRangePicker_picker__directionRight{right:0}.DateRangePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.DateRangePicker_picker__fullScreenPortal{background-color:#fff}.DateRangePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.DateRangePicker_closeButton:focus,.DateRangePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.DateRangePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.components-datetime{padding:16px}.components-panel__body .components-datetime{padding:0}.components-datetime .components-datetime__calendar-help{padding:16px;min-width:260px}.components-datetime .components-datetime__calendar-help h4{margin:0}.components-datetime .components-datetime__buttons{display:flex;justify-content:space-between}.components-datetime .components-datetime__date-help-toggle{display:block;margin-right:auto}.components-datetime fieldset{border:0;padding:0;margin:0}.components-datetime input,.components-datetime select{box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575}@media (prefers-reduced-motion:reduce){.components-datetime input,.components-datetime select{transition-duration:0s;transition-delay:0s}}.components-datetime .components-button,.components-datetime input[type=number],.components-datetime select{height:30px;margin-top:0;margin-bottom:0}.components-datetime .components-button:focus{z-index:1}.components-datetime__date{min-height:236px;border-top:1px solid #ddd}.components-datetime__date .DayPickerNavigation_leftButton__horizontalDefault{left:13px}.components-datetime__date .CalendarMonth_caption{font-size:13px}.components-datetime__date .CalendarMonth_table{border-collapse:separate;border-spacing:2px}.components-datetime__date .CalendarDay{font-size:13px;border:none;border-radius:50%;text-align:center}.components-datetime__date .CalendarDay:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 3px #fff;outline:2px solid transparent}.components-datetime__date .CalendarDay__selected{background:var(--wp-admin-theme-color);border:2px solid transparent}.components-datetime__date .CalendarDay__selected:hover{background:var(--wp-admin-theme-color-darker-20)}.components-datetime__date .CalendarDay__selected:focus{box-shadow:inset 0 0 0 1px #fff}.components-datetime__date .DayPickerNavigation_button__horizontalDefault{padding:2px 8px;top:20px}.components-datetime__date .DayPickerNavigation_button__horizontalDefault:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-datetime__date .DayPicker_weekHeader{top:50px}.components-datetime__date .DayPicker_weekHeader .DayPicker_weekHeader_ul{margin:1px;padding-right:0;padding-left:0}.components-datetime__date.is-description-visible .DayPicker{visibility:hidden}.components-datetime__date .CalendarDay .components-datetime__date__day{height:100%;display:flex;justify-content:center;align-content:center;flex-direction:column;position:relative}.components-datetime__date .CalendarDay .components-datetime__date__day.has-events:before{content:" ";width:4px;height:4px;border-radius:2px;position:absolute;right:50%;margin-right:-2px;bottom:0;background-color:#fff}.components-datetime__date .CalendarDay:not(.CalendarDay__selected) .components-datetime__date__day.has-events:before{background:var(--wp-admin-theme-color)}.components-datetime__time{padding-bottom:16px}.components-datetime__time fieldset{position:relative;margin-bottom:.5em}.components-datetime__time fieldset+fieldset{margin-bottom:0}.components-datetime__time .components-datetime__time-field-am-pm fieldset{margin-top:0}.components-datetime__time .components-datetime__time-wrapper{display:flex}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-separator{display:inline-block;padding:0 0 0 3px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field-time{direction:ltr}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select{margin-left:4px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]{padding:2px;margin-left:4px;text-align:center;-moz-appearance:textfield}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.components-datetime__time.is-12-hour .components-datetime__time-field-day input{margin:-4px 0 0!important;border-radius:0 2px 2px 0!important}.components-datetime__time.is-12-hour .components-datetime__time-field-year input{border-radius:2px 0 0 2px!important}.components-datetime__timezone{line-height:30px;margin-right:4px;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.components-datetime__time-legend{font-weight:600;margin-top:.5em}.components-datetime__time-legend.invisible{position:absolute;top:-999em;right:-999em}.components-datetime__time-field-day-input,.components-datetime__time-field-hours-input,.components-datetime__time-field-minutes-input{width:35px}.components-datetime__time-field-year-input{width:55px}.components-datetime__time-field-month-select{max-width:145px}.components-popover .components-datetime__date{padding-right:4px}.block-editor-dimension-control .components-base-control__field{display:flex;align-items:center}.block-editor-dimension-control .components-base-control__label{display:flex;align-items:center;margin-left:1em;margin-bottom:0}.block-editor-dimension-control .components-base-control__label .dashicon{margin-left:.5em}.block-editor-dimension-control.is-manual .components-base-control__label{width:10em}body.is-dragging-components-draggable{cursor:move;cursor:grabbing!important}.components-draggable__invisible-drag-image{position:fixed;right:-1000px;height:50px;width:50px}.components-draggable__clone{position:fixed;padding:0;background:transparent;pointer-events:none;z-index:1000000000}.components-drop-zone{position:absolute;top:0;left:0;bottom:0;right:0;z-index:40;visibility:hidden;opacity:0;border-radius:2px}.components-drop-zone.is-active{opacity:1;visibility:visible}.components-drop-zone__content{position:absolute;top:0;bottom:0;right:0;left:0;height:100%;width:100%;display:flex;background-color:var(--wp-admin-theme-color);align-items:center;justify-content:center;z-index:50;text-align:center;color:#fff}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{margin:0 auto;line-height:0;fill:currentColor;pointer-events:none}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-dropdown{display:inline-block}.components-dropdown__content .components-popover__content>div{padding:8px}.components-dropdown__content [role=menuitem]{white-space:nowrap}.components-dropdown-menu__menu{width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}.components-dropdown-menu__menu .components-dropdown-menu__menu-item,.components-dropdown-menu__menu .components-menu-item{width:100%;padding:6px;outline:none;cursor:pointer;white-space:nowrap}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator,.components-dropdown-menu__menu .components-menu-item.has-separator{margin-top:6px;position:relative;overflow:visible}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before,.components-dropdown-menu__menu .components-menu-item.has-separator:before{display:block;content:"";box-sizing:content-box;background-color:#ddd;position:absolute;top:-3px;right:0;left:0;height:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg,.components-dropdown-menu__menu .components-menu-item.is-active svg{color:#fff;background:#1e1e1e;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item>svg,.components-dropdown-menu__menu .components-menu-item>svg{border-radius:2px;width:24px;height:24px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-icon-only,.components-dropdown-menu__menu .components-menu-item.is-icon-only{width:auto}.components-dropdown-menu__menu .components-menu-item__button,.components-dropdown-menu__menu .components-menu-item__button.components-button{min-height:36px;height:auto;text-align:right;padding-right:8px;padding-left:8px}.components-dropdown-menu__menu .components-menu-group{padding:8px;margin:0 -8px}.components-dropdown-menu__menu .components-menu-group:first-child{margin-top:-8px}.components-dropdown-menu__menu .components-menu-group:last-child{margin-bottom:-8px}.components-dropdown-menu__menu .components-menu-group+.components-menu-group{margin-top:0;border-top:1px solid #ccc;padding:8px}.is-alternate .components-dropdown-menu__menu .components-menu-group+.components-menu-group{border-color:#1e1e1e}.components-font-size-picker__header__hint{margin-right:4px;color:#757575}.components-font-size-picker__header .components-button.is-small.has-icon:not(.has-text){min-width:24px;padding:0}.components-font-size-picker__controls{max-width:248px;align-items:center;margin-top:8px;margin-bottom:24px}.components-font-size-picker__controls .components-unit-control-wrapper .components-input-control__label{font-weight:300;padding-bottom:0!important;margin-bottom:8px!important}.components-font-size-picker__controls .components-custom-select-control__button{width:100%}.components-font-size-picker__controls .components-font-size-picker__number{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;display:inline-block;font-weight:500;height:30px;margin:8px 0 0 8px;width:54px}@media (prefers-reduced-motion:reduce){.components-font-size-picker__controls .components-font-size-picker__number{transition-duration:0s;transition-delay:0s}}@media (min-width:600px){.components-font-size-picker__controls .components-font-size-picker__number{font-size:13px;line-height:normal}}.components-font-size-picker__controls .components-font-size-picker__number:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-font-size-picker__controls .components-font-size-picker__number::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-font-size-picker__controls .components-font-size-picker__number::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-font-size-picker__controls .components-font-size-picker__number:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-font-size-picker__controls .components-font-size-picker__number[value=""]+.components-button{cursor:default;opacity:.3;pointer-events:none}.components-font-size-picker__controls .components-font-size-picker__number-container{display:flex;flex-direction:column}.components-font-size-picker__controls .components-color-palette__clear{height:30px}.components-font-size-picker__custom-input .components-range-control__slider+.dashicon{width:30px;height:30px}.components-font-size-picker{border:0;padding:0;margin:0}.components-form-toggle{position:relative;display:inline-block}.components-form-toggle .components-form-toggle__track{content:"";display:inline-block;box-sizing:border-box;vertical-align:top;background-color:#fff;border:1px solid #1e1e1e;width:36px;height:18px;border-radius:9px;transition:background .2s ease}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__track{transition-duration:0s;transition-delay:0s}}.components-form-toggle .components-form-toggle__thumb{display:block;position:absolute;box-sizing:border-box;top:3px;right:3px;width:12px;height:12px;border-radius:50%;transition:transform .1s ease;background-color:#1e1e1e;border:5px solid #1e1e1e}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__thumb{transition-duration:0s;transition-delay:0s}}.components-form-toggle.is-checked .components-form-toggle__track{background-color:var(--wp-admin-theme-color);border:9px solid transparent}.components-form-toggle .components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(-18px)}.components-disabled .components-form-toggle,.components-form-toggle.is-disabled{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{position:absolute;top:0;right:0;width:100%;height:100%;opacity:0;margin:0;padding:0;z-index:1;border:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:before{content:""}.components-form-token-field__input-container{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;display:flex;flex-wrap:wrap;align-items:center;width:100%;margin:0 0 8px;padding:2px 4px;cursor:text}@media (prefers-reduced-motion:reduce){.components-form-token-field__input-container{transition-duration:0s;transition-delay:0s}}@media (min-width:600px){.components-form-token-field__input-container{font-size:13px;line-height:normal}}.components-form-token-field__input-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-form-token-field__input-container::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-form-token-field__input-container:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container.is-disabled{background:#ddd;border-color:#ddd}.components-form-token-field__input-container.is-active{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-form-token-field__input-container input[type=text].components-form-token-field__input{display:inline-block;flex:1;font-size:16px;width:100%;max-width:100%;margin-right:4px;padding:0;min-height:24px;min-width:50px;background:inherit;border:0;color:#1e1e1e;box-shadow:none}@media (min-width:600px){.components-form-token-field__input-container input[type=text].components-form-token-field__input{font-size:13px}}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{outline:none;box-shadow:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__label{display:inline-block;margin-bottom:4px}.components-form-token-field__help{font-size:12px;font-style:normal;color:#757575}.components-form-token-field__token{font-size:13px;display:flex;margin:2px 0 2px 4px;color:#1e1e1e;max-width:100%}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#cc1818}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#757575}.components-form-token-field__token.is-borderless{position:relative;padding:0 0 0 16px}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:transparent;color:var(--wp-admin-theme-color)}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:transparent;color:#757575;position:absolute;top:1px;left:0}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{color:#cc1818;border-radius:0 4px 4px 0;padding:0 6px 0 4px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#1e1e1e}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token{cursor:default}.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{display:inline-block;line-height:24px;height:auto;background:#ddd;min-width:unset;transition:all .2s cubic-bezier(.4,1,.4,1)}@media (prefers-reduced-motion:reduce){.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{transition-duration:0s;transition-delay:0s;animation-duration:1ms;animation-delay:0s}}.components-form-token-field__token-text{border-radius:0 2px 2px 0;padding:0 8px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.components-form-token-field__remove-token.components-button{cursor:pointer;border-radius:2px 0 0 2px;padding:0 2px;color:#1e1e1e;line-height:10px;overflow:initial}.components-form-token-field__remove-token.components-button:hover{color:#1e1e1e}.components-form-token-field__suggestions-list{flex:1 0 100%;min-width:100%;max-height:9em;overflow-y:auto;transition:all .15s ease-in-out;list-style:none;border-top:1px solid #757575;margin:4px -4px -4px;padding:0}@media (prefers-reduced-motion:reduce){.components-form-token-field__suggestions-list{transition-duration:0s;transition-delay:0s}}.components-form-token-field__suggestion{color:#757575;display:block;font-size:13px;padding:4px 8px;margin:0;cursor:pointer}.components-form-token-field__suggestion.is-selected{background:var(--wp-admin-theme-color);color:#fff}.components-form-token-field__suggestion-match{text-decoration:underline}@media (min-width:600px){.components-guide{width:600px}}.components-guide .components-modal__content{padding:0;margin-top:0;border-radius:2px}.components-guide .components-modal__content:before{content:none}.components-guide .components-modal__header{border-bottom:none;padding:0;position:sticky}.components-guide .components-modal__header .components-button{align-self:flex-start;margin:8px 0 0 8px;position:static}.components-guide .components-modal__header .components-button:hover svg{fill:#fff}.components-guide__container{display:flex;flex-direction:column;justify-content:space-between;margin-top:-60px;min-height:100%}.components-guide__page{display:flex;flex-direction:column;justify-content:center;position:relative}@media (min-width:600px){.components-guide__page{min-height:300px}}.components-guide__footer{align-content:center;display:flex;height:30px;justify-content:center;margin:0 0 24px;padding:0 32px;position:relative;width:100%}.components-guide__page-control{margin:0;text-align:center}.components-guide__page-control li{display:inline-block;margin:0}.components-guide__page-control .components-button{height:30px;min-width:20px;margin:-6px 0}.components-modal__frame.components-guide{border:none;min-width:312px;height:80vh;max-height:575px}@media (max-width:600px){.components-modal__frame.components-guide{margin:auto;max-width:calc(100vw - 32px)}}.components-button.components-guide__back-button,.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{height:30px;position:absolute}.components-button.components-guide__back-button,.components-button.components-guide__forward-button{font-size:13px;padding:4px 2px}.components-button.components-guide__back-button.has-text svg,.components-button.components-guide__forward-button.has-text svg{margin:0}.components-button.components-guide__back-button:hover,.components-button.components-guide__forward-button:hover{text-decoration:underline}.components-button.components-guide__back-button{right:32px}.components-button.components-guide__forward-button{left:32px;color:#1386bf;font-weight:700}.components-button.components-guide__finish-button{left:32px}.components-button.components-guide__inline-finish-button{display:none}[role=region]{position:relative}.is-focusing-regions [role=region]:focus:after{content:"";position:absolute;top:0;bottom:0;right:0;left:0;pointer-events:none;outline:4px solid transparent;box-shadow:inset 0 0 0 4px var(--wp-admin-theme-color)}@supports (outline-offset:1px){.is-focusing-regions [role=region]:focus:after{content:none}.is-focusing-regions [role=region]:focus{outline-style:solid;outline-color:var(--wp-admin-theme-color);outline-width:4px;outline-offset:-4px}}.components-menu-group+.components-menu-group{margin-top:8px;padding-top:8px;border-top:1px solid #1e1e1e}.components-menu-group+.components-menu-group.has-hidden-separator{border-top:none;margin-top:0;padding-top:0}.components-menu-group__label{padding:0 8px;margin-top:4px;margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500;white-space:nowrap}.components-menu-item__button,.components-menu-item__button.components-button{width:100%}.components-menu-item__button.components-button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button.components-button[role=menuitemradio] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemradio] .components-menu-item__item:only-child{padding-left:48px}.components-menu-item__button.components-button .components-menu-items__item-icon,.components-menu-item__button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__button.components-button .components-menu-items__item-icon.has-icon-right,.components-menu-item__button .components-menu-items__item-icon.has-icon-right{margin-left:-2px;margin-right:24px}.components-menu-item__button.components-button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right,.components-menu-item__button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right{margin-right:8px}.components-menu-item__button .block-editor-block-icon,.components-menu-item__button.components-button .block-editor-block-icon{margin-right:-2px;margin-left:8px}.components-menu-item__button.components-button.is-primary,.components-menu-item__button.is-primary{justify-content:center}.components-menu-item__button.components-button.is-primary .components-menu-item__item,.components-menu-item__button.is-primary .components-menu-item__item{margin-left:0}.components-menu-item__info-wrapper{display:flex;flex-direction:column;margin-left:auto}.components-menu-item__info{margin-top:4px;font-size:12px;color:#757575;white-space:normal}.components-menu-item__item{white-space:nowrap;min-width:160px;margin-left:auto;display:inline-flex;align-items:center}.components-menu-item__shortcut{align-self:center;margin-left:0;margin-right:auto;padding-right:24px;color:currentColor;display:none}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-menu-items-choice.components-button svg,.components-menu-items-choice svg{margin-left:12px}.components-menu-items-choice.components-button.has-icon,.components-menu-items-choice.has-icon{padding-right:12px}.components-modal__screen-overlay{position:fixed;top:0;left:0;bottom:0;right:0;background-color:rgba(0,0,0,.35);z-index:100000;display:flex;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-modal__screen-overlay{animation-duration:1ms;animation-delay:0s}}.components-modal__frame{margin:0;width:100%;background:#fff;box-shadow:0 10px 10px rgba(0,0,0,.25);border-radius:2px;overflow:hidden;display:flex}@media (min-width:600px){.components-modal__frame{margin:auto;width:auto;min-width:360px;max-width:calc(100% - 32px);max-height:calc(100% - 120px);animation:components-modal__appear-animation .1s ease-out;animation-fill-mode:forwards}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.components-modal__frame{animation-duration:1ms;animation-delay:0s}}@media (min-width:600px){.components-modal__frame.is-full-screen{width:90vw;min-height:90vh}}@media (min-width:960px){.components-modal__frame{max-height:70%}}@keyframes components-modal__appear-animation{0%{transform:translateY(32px)}to{transform:translateY(0)}}.components-modal__header{box-sizing:border-box;border-bottom:1px solid #ddd;padding:0 32px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;height:60px;width:100%;z-index:10;position:absolute;top:0;right:0}.components-modal__header .components-modal__header-heading{font-size:1rem;font-weight:600}.components-modal__header h1{line-height:1;margin:0}.components-modal__header .components-button{position:relative;right:8px}.components-modal__header-heading-container{align-items:center;flex-grow:1;display:flex;flex-direction:row;justify-content:left}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-width:36px;max-height:36px;padding:8px}.components-modal__content{flex:1;margin-top:60px;padding:0 32px 24px;overflow:auto}.components-modal__content:before{content:"";display:block;margin-bottom:24px}.components-notice{display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#fff;border-right:4px solid var(--wp-admin-theme-color);margin:5px 15px 2px;padding:8px 12px;align-items:center}.components-notice.is-dismissible{padding-left:36px;position:relative}.components-notice.is-success{border-right-color:#4ab866;background-color:#eff9f1}.components-notice.is-warning{border-right-color:#f0b849;background-color:#fef8ee}.components-notice.is-error{border-right-color:#cc1818;background-color:#f4a2a2}.components-notice__content{flex-grow:1;margin:4px 0 4px 25px}.components-notice__actions{display:flex;flex-wrap:wrap}.components-notice__action.components-button{margin-left:8px}.components-notice__action.components-button,.components-notice__action.components-button.is-link{margin-right:12px}.components-notice__action.components-button.is-secondary{vertical-align:initial}.components-notice__dismiss{color:#757575;align-self:flex-start;flex-shrink:0}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#1e1e1e;background-color:transparent}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.components-notice-list{max-width:100vw;box-sizing:border-box}.components-notice-list .components-notice__content{margin-top:12px;margin-bottom:12px;line-height:2}.components-notice-list .components-notice__action.components-button{display:block;margin-right:0;margin-top:8px}.components-panel{background:#fff;border:1px solid #e0e0e0}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-top:1px solid #e0e0e0;border-bottom:1px solid #e0e0e0}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__header{display:flex;justify-content:space-between;align-items:center;padding:0 16px;height:48px;border-bottom:1px solid #ddd}.components-panel__header h2{margin:0;font-size:inherit;color:inherit}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;padding:0;font-size:inherit;margin-top:0;margin-bottom:0;transition:background .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body>.components-panel__body-title{transition-duration:0s;transition-delay:0s}}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 5px}.components-panel__body>.components-panel__body-title:hover{background:#f0f0f0;border:none}.components-panel__body-toggle.components-button{position:relative;padding:16px 16px 16px 48px;outline:none;width:100%;font-weight:500;text-align:right;color:#1e1e1e;border:none;box-shadow:none;transition:background .1s ease-in-out;height:auto}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button{transition-duration:0s;transition-delay:0s}}.components-panel__body-toggle.components-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);border-radius:0}.components-panel__body-toggle.components-button .components-panel__arrow{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:#1e1e1e;fill:currentColor;transition:color .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button .components-panel__arrow{transition-duration:0s;transition-delay:0s}}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{transform:scaleX(-1);-ms-filter:fliph;filter:FlipH;margin-top:-10px}.components-panel__icon{color:#757575;margin:-2px 6px -2px 0}.components-panel__body-toggle-icon{margin-left:-5px}.components-panel__color-title{float:right;height:19px}.components-panel__row{display:flex;justify-content:space-between;align-items:center;margin-top:8px;min-height:36px}.components-panel__row select{min-width:0}.components-panel__row label{margin-left:12px;flex-shrink:0;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder.components-placeholder{box-sizing:border-box;position:relative;padding:1em;min-height:200px;width:100%;text-align:right;margin:0;color:#1e1e1e;-moz-font-smoothing:subpixel-antialiased;-webkit-font-smoothing:subpixel-antialiased;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;outline:1px solid transparent}@supports (position:sticky){.components-placeholder.components-placeholder{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}}.components-placeholder.components-placeholder .components-base-control__label{font-size:13px}.components-placeholder__error,.components-placeholder__fieldset,.components-placeholder__instructions,.components-placeholder__label{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__label{display:flex;font-weight:600;margin-bottom:16px;align-items:center}.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{margin-left:1ch;fill:currentColor}@media (forced-colors:active){.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:CanvasText}}.components-placeholder__label:empty{display:none}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;width:100%;flex-wrap:wrap}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__fieldset.is-column-layout,.components-placeholder__fieldset.is-column-layout form{flex-direction:column}.components-placeholder__input[type=url]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;margin:0 0 0 8px;flex:1 1 auto}@media (prefers-reduced-motion:reduce){.components-placeholder__input[type=url]{transition-duration:0s;transition-delay:0s}}@media (min-width:600px){.components-placeholder__input[type=url]{font-size:13px;line-height:normal}}.components-placeholder__input[type=url]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-placeholder__input[type=url]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-placeholder__instructions{margin-bottom:1em}.components-placeholder__error{margin-top:1em;width:100%}.components-placeholder__preview img{margin:3%;width:50%}.components-placeholder__fieldset .components-button{margin-left:12px;margin-bottom:12px}.components-placeholder__fieldset .components-button:last-child{margin-bottom:0;margin-left:0}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link{margin-right:10px;margin-left:10px}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link:last-child{margin-left:0}.components-placeholder.is-large .components-placeholder__label{font-size:18pt;font-weight:400}.components-placeholder.is-medium .components-placeholder__instructions,.components-placeholder.is-small .components-placeholder__instructions{display:none}.components-placeholder.is-medium .components-placeholder__fieldset,.components-placeholder.is-medium .components-placeholder__fieldset form,.components-placeholder.is-small .components-placeholder__fieldset,.components-placeholder.is-small .components-placeholder__fieldset form{flex-direction:column}.components-placeholder.is-medium .components-placeholder__fieldset .components-button,.components-placeholder.is-small .components-placeholder__fieldset .components-button{margin-left:auto}.components-placeholder.is-small .components-button{padding:0 8px 2px}.components-popover{position:fixed;z-index:1000000;top:0;left:0;opacity:0}.components-popover.is-expanded,.components-popover[data-x-axis][data-y-axis]{opacity:1}.components-popover.is-expanded{top:0;left:0;right:0;bottom:0;z-index:1000000!important}.components-popover:not(.is-without-arrow){margin-left:2px}.components-popover:not(.is-without-arrow):before{border:8px solid #ccc}.components-popover:not(.is-without-arrow).is-alternate:before{border-color:#1e1e1e}.components-popover:not(.is-without-arrow):after{border:8px solid #fff}.components-popover:not(.is-without-arrow):after,.components-popover:not(.is-without-arrow):before{content:"";position:absolute;height:0;width:0;line-height:0}.components-popover:not(.is-without-arrow)[data-y-axis=top]{margin-top:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:before{bottom:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:after{bottom:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=top]:after,.components-popover:not(.is-without-arrow)[data-y-axis=top]:before{border-bottom:none;border-left-color:transparent;border-right-color:transparent;border-top-style:solid;margin-left:-10px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]{margin-top:8px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:before{top:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:after{top:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:after,.components-popover:not(.is-without-arrow)[data-y-axis=bottom]:before{border-bottom-style:solid;border-left-color:transparent;border-right-color:transparent;border-top:none;margin-left:-10px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]{margin-left:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:before{right:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:after{right:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:after,.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=left]:before{border-bottom-color:transparent;border-left-style:solid;border-right:none;border-top-color:transparent}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]{margin-left:8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:before{left:-8px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:after{left:-6px}.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:after,.components-popover:not(.is-without-arrow)[data-y-axis=middle][data-x-axis=right]:before{border-bottom-color:transparent;border-left:none;border-right-style:solid;border-top-color:transparent}.components-popover[data-y-axis=top]{bottom:100%}.components-popover[data-y-axis=bottom]{top:100%}.components-popover[data-y-axis=middle]{align-items:center;display:flex}.components-popover.is-from-top{margin-top:12px}.components-popover.is-from-bottom{margin-top:-12px}.components-popover.is-from-left:not(.is-from-top):not(.is-from-bottom){margin-left:12px}.components-popover.is-from-right:not(.is-from-top):not(.is-from-bottom){margin-right:12px}.components-popover__content{height:100%;background:#fff;border:1px solid #ccc;box-shadow:0 2px 6px rgba(0,0,0,.05);border-radius:2px}.is-alternate .components-popover__content{border:1px solid #1e1e1e;box-shadow:none}.components-popover .components-popover__content{position:absolute;height:auto;overflow-y:auto}.components-popover.is-expanded .components-popover__content{position:static;height:calc(100% - 48px);overflow-y:visible;min-width:auto;border:none;border-top:1px solid #1e1e1e}.components-popover[data-y-axis=top] .components-popover__content{bottom:100%}.components-popover[data-x-axis=center] .components-popover__content{left:50%;transform:translateX(-50%)}.components-popover[data-x-axis=right] .components-popover__content{position:absolute;left:100%}.components-popover:not([data-y-axis=middle])[data-x-axis=right] .components-popover__content{margin-left:-25px}.components-popover[data-x-axis=left] .components-popover__content{position:absolute;right:100%}.components-popover:not([data-y-axis=middle])[data-x-axis=left] .components-popover__content{margin-right:-25px}.components-popover__header{align-items:center;background:#fff;display:flex;height:48px;justify-content:space-between;padding:0 8px 0 16px}.components-popover__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.components-popover__close.components-button{z-index:5}.components-radio-control{display:flex;flex-direction:column}.components-radio-control .components-base-control__help{margin-top:0}.components-radio-control .components-base-control__field{margin-bottom:0}.components-radio-control__option:not(:last-child){margin-bottom:4px}.components-radio-control__input[type=radio]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;font-size:16px;line-height:normal;border:1px solid #1e1e1e;transition:none;border-radius:50%;width:24px;height:24px;margin-top:0;margin-left:6px}@media (prefers-reduced-motion:reduce){.components-radio-control__input[type=radio]{transition-duration:0s;transition-delay:0s}}@media (min-width:600px){.components-radio-control__input[type=radio]{font-size:13px;line-height:normal}}.components-radio-control__input[type=radio]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.components-radio-control__input[type=radio]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-radio-control__input[type=radio]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-radio-control__input[type=radio]:-ms-input-placeholder{color:rgba(30,30,30,.62)}@media (min-width:600px){.components-radio-control__input[type=radio]{height:20px;width:20px}}.components-radio-control__input[type=radio]:checked:before{box-sizing:inherit;width:8px;height:8px;transform:translate(-7px,7px);margin:0;background-color:#fff;border:4px solid #fff}@media (min-width:600px){.components-radio-control__input[type=radio]:checked:before{transform:translate(-5px,5px)}}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.components-radio-control__input[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-resizable-box__handle{display:none;width:23px;height:23px;z-index:2}.components-resizable-box__container.has-show-handle .components-resizable-box__handle{display:block}.components-resizable-box__container>img{width:inherit}.components-resizable-box__handle:after{display:block;content:"";width:15px;height:15px;border-radius:50%;background:#fff;cursor:inherit;position:absolute;top:calc(50% - 8px);left:calc(50% - 8px);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.components-resizable-box__side-handle:before{display:block;border-radius:2px;content:"";width:3px;height:3px;background:var(--wp-admin-theme-color);cursor:inherit;position:absolute;top:calc(50% - 1px);left:calc(50% - 1px);transition:transform .1s ease-in;opacity:0}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle:before{transition-duration:0s;transition-delay:0s}}.components-resizable-box__corner-handle,.components-resizable-box__side-handle{z-index:2}.components-resizable-box__side-handle.components-resizable-box__handle-bottom,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:before,.components-resizable-box__side-handle.components-resizable-box__handle-top,.components-resizable-box__side-handle.components-resizable-box__handle-top:before{width:100%;right:0;border-right:0;border-left:0}.components-resizable-box__side-handle.components-resizable-box__handle-left,.components-resizable-box__side-handle.components-resizable-box__handle-left:before,.components-resizable-box__side-handle.components-resizable-box__handle-right,.components-resizable-box__side-handle.components-resizable-box__handle-right:before{height:100%;top:0;border-top:0;border-bottom:0}.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:components-resizable-box__top-bottom-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation-duration:1ms;animation-delay:0s}}.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation:components-resizable-box__left-right-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation-duration:1ms;animation-delay:0s}}@media not all and (-webkit-min-device-pixel-ratio:0),not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:none}}}@keyframes components-resizable-box__top-bottom-animation{0%{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:1}}@keyframes components-resizable-box__left-right-animation{0%{transform:scaleY(0);opacity:0}to{transform:scaleY(1);opacity:1}}.components-resizable-box__handle-right{right:-11.5px}.components-resizable-box__handle-left{left:-11.5px}.components-resizable-box__handle-top{top:-11.5px}.components-resizable-box__handle-bottom{bottom:-11.5px}.components-responsive-wrapper{position:relative;max-width:100%}.components-responsive-wrapper,.components-responsive-wrapper>span{display:block}.components-responsive-wrapper__content{position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;margin:auto}.components-sandbox{overflow:hidden}iframe.components-sandbox{width:100%}body.lockscroll,html.lockscroll{overflow:hidden}.components-search-control{position:relative}.components-search-control input[type=search].components-search-control__input{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;line-height:normal;display:block;padding:16px 16px 16px 48px;background:#f0f0f0;border:none;width:100%;height:48px;font-size:16px}@media (prefers-reduced-motion:reduce){.components-search-control input[type=search].components-search-control__input{transition-duration:0s;transition-delay:0s}}@media (min-width:600px){.components-search-control input[type=search].components-search-control__input{font-size:13px;line-height:normal}}.components-search-control input[type=search].components-search-control__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-search-control input[type=search].components-search-control__input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-search-control input[type=search].components-search-control__input::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-search-control input[type=search].components-search-control__input:-ms-input-placeholder{color:rgba(30,30,30,.62)}@media (min-width:600px){.components-search-control input[type=search].components-search-control__input{font-size:13px}}.components-search-control input[type=search].components-search-control__input:focus{background:#fff;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-search-control input[type=search].components-search-control__input::placeholder{color:#757575}.components-search-control input[type=search].components-search-control__input::-webkit-search-cancel-button,.components-search-control input[type=search].components-search-control__input::-webkit-search-decoration,.components-search-control input[type=search].components-search-control__input::-webkit-search-results-button,.components-search-control input[type=search].components-search-control__input::-webkit-search-results-decoration{-webkit-appearance:none}.components-search-control__icon{position:absolute;top:0;left:12px;bottom:0;display:flex;align-items:center}.components-search-control__icon>svg{margin:8px 0}.components-search-control__input-wrapper{position:relative}.components-select-control__input{background:#fff;height:36px;line-height:36px;margin:1px;outline:0;width:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}@media (min-width:782px){.components-select-control__input{height:28px;line-height:28px}}@media (max-width:782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-snackbar{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#1e1e1e;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.3);color:#fff;padding:16px 24px;width:100%;max-width:600px;box-sizing:border-box;cursor:pointer;pointer-events:auto}@media (min-width:600px){.components-snackbar{width:-moz-fit-content;width:fit-content}}.components-snackbar:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color)}.components-snackbar.components-snackbar-explicit-dismiss{cursor:default}.components-snackbar .components-snackbar__content-with-icon{margin-right:24px}.components-snackbar .components-snackbar__icon{position:absolute;top:24px;right:28px}.components-snackbar .components-snackbar__dismiss-button{margin-right:32px;cursor:pointer}.components-snackbar__action.components-button{margin-right:32px;color:#fff;height:auto;flex-shrink:0;line-height:1.4;padding:0}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary){text-decoration:underline;background-color:transparent}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):focus{color:#fff;box-shadow:none;outline:1px dotted #fff}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:var(--wp-admin-theme-color)}.components-snackbar__content{display:flex;align-items:baseline;justify-content:space-between;line-height:1.4}.components-snackbar-list{position:absolute;z-index:100000;width:100%;box-sizing:border-box;pointer-events:none}.components-snackbar-list__notice-container{position:relative;padding-top:8px}.components-swatch{width:18px;height:18px;border-radius:50%;color:transparent;background:transparent}.components-swatch:after{content:"";display:block;width:100%;height:100%;border:1px solid rgba(0,0,0,.2);border-radius:50%}.components-button.has-icon.has-text .components-swatch{margin-left:8px}.components-tab-panel__tabs{display:flex;align-items:stretch;flex-direction:row}.components-tab-panel__tabs[aria-orientation=vertical]{flex-direction:column}.components-tab-panel__tabs-item{background:transparent;border:none;box-shadow:none;border-radius:0;cursor:pointer;height:48px;padding:3px 16px;margin-right:0;font-weight:500;transition:box-shadow .1s linear;box-sizing:border-box}.components-tab-panel__tabs-item:after{content:attr(data-label);display:block;height:0;overflow:hidden;speak:none;visibility:hidden}.components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-tab-panel__tabs-item.is-active{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) transparent,inset 0 -4px 0 0 var(--wp-admin-theme-color);position:relative}.components-tab-panel__tabs-item.is-active:before{content:"";position:absolute;top:0;bottom:1px;left:0;right:0;border-bottom:4px solid transparent}.components-tab-panel__tabs-item:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-tab-panel__tabs-item.is-active:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 -4px 0 0 var(--wp-admin-theme-color)}.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal}@media (prefers-reduced-motion:reduce){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{transition-duration:0s;transition-delay:0s}}@media (min-width:600px){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{font-size:13px;line-height:normal}}.components-text-control__input:focus,.components-text-control__input[type=color]:focus,.components-text-control__input[type=date]:focus,.components-text-control__input[type=datetime-local]:focus,.components-text-control__input[type=datetime]:focus,.components-text-control__input[type=email]:focus,.components-text-control__input[type=month]:focus,.components-text-control__input[type=number]:focus,.components-text-control__input[type=password]:focus,.components-text-control__input[type=tel]:focus,.components-text-control__input[type=text]:focus,.components-text-control__input[type=time]:focus,.components-text-control__input[type=url]:focus,.components-text-control__input[type=week]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-text-control__input::-webkit-input-placeholder,.components-text-control__input[type=color]::-webkit-input-placeholder,.components-text-control__input[type=date]::-webkit-input-placeholder,.components-text-control__input[type=datetime-local]::-webkit-input-placeholder,.components-text-control__input[type=datetime]::-webkit-input-placeholder,.components-text-control__input[type=email]::-webkit-input-placeholder,.components-text-control__input[type=month]::-webkit-input-placeholder,.components-text-control__input[type=number]::-webkit-input-placeholder,.components-text-control__input[type=password]::-webkit-input-placeholder,.components-text-control__input[type=tel]::-webkit-input-placeholder,.components-text-control__input[type=text]::-webkit-input-placeholder,.components-text-control__input[type=time]::-webkit-input-placeholder,.components-text-control__input[type=url]::-webkit-input-placeholder,.components-text-control__input[type=week]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-text-control__input::-moz-placeholder,.components-text-control__input[type=color]::-moz-placeholder,.components-text-control__input[type=date]::-moz-placeholder,.components-text-control__input[type=datetime-local]::-moz-placeholder,.components-text-control__input[type=datetime]::-moz-placeholder,.components-text-control__input[type=email]::-moz-placeholder,.components-text-control__input[type=month]::-moz-placeholder,.components-text-control__input[type=number]::-moz-placeholder,.components-text-control__input[type=password]::-moz-placeholder,.components-text-control__input[type=tel]::-moz-placeholder,.components-text-control__input[type=text]::-moz-placeholder,.components-text-control__input[type=time]::-moz-placeholder,.components-text-control__input[type=url]::-moz-placeholder,.components-text-control__input[type=week]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-text-control__input:-ms-input-placeholder,.components-text-control__input[type=color]:-ms-input-placeholder,.components-text-control__input[type=date]:-ms-input-placeholder,.components-text-control__input[type=datetime-local]:-ms-input-placeholder,.components-text-control__input[type=datetime]:-ms-input-placeholder,.components-text-control__input[type=email]:-ms-input-placeholder,.components-text-control__input[type=month]:-ms-input-placeholder,.components-text-control__input[type=number]:-ms-input-placeholder,.components-text-control__input[type=password]:-ms-input-placeholder,.components-text-control__input[type=tel]:-ms-input-placeholder,.components-text-control__input[type=text]:-ms-input-placeholder,.components-text-control__input[type=time]:-ms-input-placeholder,.components-text-control__input[type=url]:-ms-input-placeholder,.components-text-control__input[type=week]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-tip{display:flex;color:#757575}.components-tip svg{align-self:center;fill:#f0b849;flex-shrink:0;margin-left:16px}.components-tip p{margin:0}.components-toggle-control .components-base-control__field{display:flex;margin-bottom:12px;line-height:normal;align-items:center}.components-toggle-control .components-base-control__field .components-form-toggle{margin-left:12px}.components-toggle-control .components-base-control__field .components-toggle-control__label{display:block}.components-accessible-toolbar{display:inline-flex;border:1px solid #1e1e1e;border-radius:2px;flex-shrink:0}.components-accessible-toolbar>.components-toolbar-group:last-child{border-left:none}.components-accessible-toolbar .components-button,.components-toolbar .components-button{position:relative;height:48px;z-index:1;padding-right:16px;padding-left:16px}.components-accessible-toolbar .components-button:focus:enabled,.components-toolbar .components-button:focus:enabled{box-shadow:none;outline:none}.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{content:"";position:absolute;display:block;border-radius:2px;height:32px;right:8px;left:8px;z-index:-1;animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation-duration:1ms;animation-delay:0s}}.components-accessible-toolbar .components-button svg,.components-toolbar .components-button svg{position:relative;margin-right:auto;margin-left:auto}.components-accessible-toolbar .components-button.is-pressed,.components-accessible-toolbar .components-button.is-pressed:hover,.components-toolbar .components-button.is-pressed,.components-toolbar .components-button.is-pressed:hover{background:transparent}.components-accessible-toolbar .components-button.is-pressed:before,.components-toolbar .components-button.is-pressed:before{background:#1e1e1e}.components-accessible-toolbar .components-button:focus:before,.components-toolbar .components-button:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.components-accessible-toolbar .components-button.has-icon.has-icon,.components-toolbar .components-button.has-icon.has-icon{padding-right:12px;padding-left:12px;min-width:48px}.components-accessible-toolbar .components-button.components-tab-button,.components-toolbar .components-button.components-tab-button{font-weight:500}.components-accessible-toolbar .components-button.components-tab-button span,.components-toolbar .components-button.components-tab-button span{display:inline-block;padding-right:0;padding-left:0;position:relative}@keyframes components-button__appear-animation{0%{transform:scaleY(0)}to{transform:scaleY(1)}}.components-toolbar__control.components-button{position:relative}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 0 5px 10px}.components-toolbar__control.components-button[data-subscript]:after{content:attr(data-subscript);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;line-height:12px;position:absolute;left:8px;bottom:10px}.components-toolbar__control.components-button:active:before{display:none}.components-toolbar__control.components-button:not(:disabled).is-pressed[data-subscript]:after{color:#fff}.components-toolbar-group{min-height:48px;border-left:1px solid #1e1e1e;background-color:#fff;display:inline-flex;flex-shrink:0;flex-wrap:wrap;line-height:0}.components-toolbar-group .components-toolbar-group.components-toolbar-group{border-width:0;margin:0}.components-toolbar{min-height:48px;margin:0;border:1px solid #1e1e1e;background-color:#fff;display:inline-flex;flex-shrink:0;flex-wrap:wrap}.components-toolbar .components-toolbar.components-toolbar{border-width:0;margin:0}div.components-toolbar>div{display:block;margin:0}@supports (position:sticky){div.components-toolbar>div{display:flex}}div.components-toolbar>div+div.has-left-divider{margin-right:6px;position:relative;overflow:visible}div.components-toolbar>div+div.has-left-divider:before{display:inline-block;content:"";box-sizing:content-box;background-color:#ddd;position:absolute;top:8px;right:-3px;width:1px;height:20px}.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group.components-dropdown>* .components-button,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group.components-dropdown>.components-button.components-button,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-button:first-child:last-child,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-dropdown:first-child:last-child .components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown.components-dropdown>* .components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown.components-dropdown>.components-button.components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-button:first-child:last-child,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-dropdown:first-child:last-child .components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar.components-dropdown>* .components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar.components-dropdown>.components-button.components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-button:first-child:last-child,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-dropdown:first-child:last-child .components-button,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot.components-dropdown>* .components-button,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot.components-dropdown>.components-button.components-button,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-button:first-child:last-child,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-dropdown:first-child:last-child .components-button,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot.components-dropdown>* .components-button,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot.components-dropdown>.components-button.components-button,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-button:first-child:last-child,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-dropdown:first-child:last-child .components-button{min-width:48px;padding-right:12px;padding-left:12px}.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group.components-dropdown>* .components-button:before,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group.components-dropdown>.components-button.components-button:before,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-button:first-child:last-child:before,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-dropdown:first-child:last-child .components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown.components-dropdown>* .components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown.components-dropdown>.components-button.components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-button:first-child:last-child:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-dropdown:first-child:last-child .components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar.components-dropdown>* .components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar.components-dropdown>.components-button.components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-button:first-child:last-child:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-dropdown:first-child:last-child .components-button:before,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot.components-dropdown>* .components-button:before,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot.components-dropdown>.components-button.components-button:before,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-button:first-child:last-child:before,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-dropdown:first-child:last-child .components-button:before,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot.components-dropdown>* .components-button:before,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot.components-dropdown>.components-button.components-button:before,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-button:first-child:last-child:before,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-dropdown:first-child:last-child .components-button:before{right:8px;left:8px}.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-button:first-child,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-dropdown:first-child .components-button,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>div:first-child>.components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-button:first-child,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-dropdown:first-child .components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>div:first-child>.components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-button:first-child,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-dropdown:first-child .components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>div:first-child>.components-button,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-button:first-child,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-dropdown:first-child .components-button,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>div:first-child>.components-button,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-button:first-child,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-dropdown:first-child .components-button,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>div:first-child>.components-button{min-width:42px;padding-right:11px;padding-left:6px}.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-button:first-child:before,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-dropdown:first-child .components-button:before,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>div:first-child>.components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-button:first-child:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-dropdown:first-child .components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>div:first-child>.components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-button:first-child:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-dropdown:first-child .components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>div:first-child>.components-button:before,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-button:first-child:before,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-dropdown:first-child .components-button:before,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>div:first-child>.components-button:before,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-button:first-child:before,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-dropdown:first-child .components-button:before,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>div:first-child>.components-button:before{right:8px;left:2px}.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-button,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-dropdown .components-button,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>div>.components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-dropdown .components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>div>.components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-dropdown .components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>div>.components-button,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-button,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-dropdown .components-button,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>div>.components-button,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-button,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-dropdown .components-button,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>div>.components-button{min-width:36px;padding-right:6px;padding-left:6px}.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-button svg,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-dropdown .components-button svg,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>div>.components-button svg,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-button svg,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-dropdown .components-button svg,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>div>.components-button svg,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-button svg,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-dropdown .components-button svg,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>div>.components-button svg,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-button svg,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-dropdown .components-button svg,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>div>.components-button svg,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-button svg,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-dropdown .components-button svg,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>div>.components-button svg{min-width:24px}.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-button:before,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-dropdown .components-button:before,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>div>.components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-dropdown .components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>div>.components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-dropdown .components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>div>.components-button:before,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-button:before,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-dropdown .components-button:before,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>div>.components-button:before,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-button:before,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-dropdown .components-button:before,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>div>.components-button:before{right:2px;left:2px}.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-button:last-child,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-dropdown:last-child .components-button,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>div:last-child>.components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-button:last-child,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-dropdown:last-child .components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>div:last-child>.components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-button:last-child,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-dropdown:last-child .components-button,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>div:last-child>.components-button,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-button:last-child,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-dropdown:last-child .components-button,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>div:last-child>.components-button,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-button:last-child,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-dropdown:last-child .components-button,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>div:last-child>.components-button{min-width:42px;padding-right:6px;padding-left:11px}.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-button:last-child:before,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>.components-dropdown:last-child .components-button:before,.block-editor-block-toolbar .block-editor-block-toolbar__slot .components-toolbar-group>div:last-child>.components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-button:last-child:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>.components-dropdown:last-child .components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-dropdown>div:last-child>.components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-button:last-child:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>.components-dropdown:last-child .components-button:before,.block-editor-block-toolbar>.block-editor-block-toolbar__slot>.components-toolbar>div:last-child>.components-button:before,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-button:last-child:before,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>.components-dropdown:last-child .components-button:before,.block-editor-block-toolbar>.components-toolbar-group>.block-editor-block-toolbar__slot>div:last-child>.components-button:before,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-button:last-child:before,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>.components-dropdown:last-child .components-button:before,.block-editor-block-toolbar>.components-toolbar>.block-editor-block-toolbar__slot>div:last-child>.components-button:before{right:2px;left:8px}.components-tooltip.components-popover{z-index:1000002}.components-tooltip.components-popover .components-popover__content{min-width:0}.components-tooltip .components-popover__content{background:#1e1e1e;border-radius:2px;border-width:0;color:#fff;white-space:nowrap;text-align:center;line-height:1.4;font-size:12px;box-shadow:none}.components-tooltip .components-popover__content>div{padding:4px 8px}.components-tooltip__shortcut{display:inline-block;margin-right:8px}.disabled-element-wrapper{position:relative}.disabled-element-wrapper .event-catcher{z-index:100002;position:absolute;width:100%;height:100%;top:0;right:0;bottom:0;left:0} \ No newline at end of file diff --git a/wp-includes/css/dist/components/style.css b/wp-includes/css/dist/components/style.css index af5b8d5f67..ad3f76877d 100644 --- a/wp-includes/css/dist/components/style.css +++ b/wp-includes/css/dist/components/style.css @@ -754,11 +754,22 @@ svg.components-checkbox-control__checked { } @media (min-width: 782px) { - .components-color-edit__color-popover.components-popover .components-popover__content.components-popover__content.components-popover__content { + .components-palette-edit__popover.components-popover .components-popover__content.components-popover__content.components-popover__content { margin-right: 156px; margin-top: -49px; } } +.components-palette-edit__popover .components-custom-gradient-picker__gradient-bar { + margin-top: 0; +} +.components-palette-edit__popover .components-custom-gradient-picker__ui-line { + margin-bottom: 0; +} +.components-palette-edit__popover .components-custom-gradient-picker { + width: 280px; + padding: 8px; +} + .component-color-indicator { width: 25px; height: 16px; diff --git a/wp-includes/css/dist/components/style.min.css b/wp-includes/css/dist/components/style.min.css index b8abf72333..d46585f2ee 100644 --- a/wp-includes/css/dist/components/style.min.css +++ b/wp-includes/css/dist/components/style.min.css @@ -1,4 +1,4 @@ -@charset "UTF-8";:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__appear{animation-duration:1ms;animation-delay:0s}}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top left}.components-animate__appear.is-from-top.is-from-right{transform-origin:top right}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom left}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom right}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__slide-in{animation-duration:1ms;animation-delay:0s}}.components-animate__slide-in.is-from-left{transform:translateX(100%)}.components-animate__slide-in.is-from-right{transform:translateX(-100%)}@keyframes components-animate__slide-in-animation{to{transform:translateX(0)}}.components-animate__loading{animation:components-animate__loading 1.6s ease-in-out infinite}@keyframes components-animate__loading{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.components-autocomplete__popover .components-popover__content>div{padding:16px;min-width:220px}.components-autocomplete__result.components-button{display:flex;height:auto;min-height:36px;text-align:left;width:100%}.components-autocomplete__result.components-button.is-selected{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-button-group{display:inline-block}.components-button-group .components-button{border-radius:0;display:inline-flex;color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}.components-button-group .components-button+.components-button{margin-left:-1px}.components-button-group .components-button:first-child{border-radius:2px 0 0 2px}.components-button-group .components-button:last-child{border-radius:0 2px 2px 0}.components-button-group .components-button.is-primary,.components-button-group .components-button:focus{position:relative;z-index:1}.components-button-group .components-button.is-primary{box-shadow:inset 0 0 0 1px #1e1e1e}.components-button{display:inline-flex;text-decoration:none;font-weight:400;font-size:13px;margin:0;border:0;cursor:pointer;-webkit-appearance:none;background:none;transition:box-shadow .1s linear;height:36px;align-items:center;box-sizing:border-box;padding:6px 12px;border-radius:2px;color:#1e1e1e}@media (prefers-reduced-motion:reduce){.components-button{transition-duration:0s;transition-delay:0s}}.components-button:hover,.components-button[aria-expanded=true]{color:var(--wp-admin-theme-color)}.components-button[aria-disabled=true]:hover{color:initial}.components-button:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid transparent}.components-button.is-primary{white-space:nowrap;background:var(--wp-admin-theme-color);color:#fff;text-decoration:none;text-shadow:none;outline:1px solid transparent}.components-button.is-primary:hover:not(:disabled){background:var(--wp-admin-theme-color-darker-10);color:#fff}.components-button.is-primary:active:not(:disabled){background:var(--wp-admin-theme-color-darker-20);border-color:var(--wp-admin-theme-color-darker-20);color:#fff}.components-button.is-primary:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-button.is-primary:disabled,.components-button.is-primary:disabled:active:enabled,.components-button.is-primary[aria-disabled=true],.components-button.is-primary[aria-disabled=true]:active:enabled,.components-button.is-primary[aria-disabled=true]:enabled{color:hsla(0,0%,100%,.4);background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);opacity:1;outline:none}.components-button.is-primary:disabled:active:enabled:focus:enabled,.components-button.is-primary:disabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color)}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{color:#fff;background-size:100px 100%;background-image:linear-gradient(-45deg,var(--wp-admin-theme-color) 33%,var(--wp-admin-theme-color-darker-20) 0,var(--wp-admin-theme-color-darker-20) 70%,var(--wp-admin-theme-color) 0);border-color:var(--wp-admin-theme-color)}.components-button.is-secondary,.components-button.is-tertiary{outline:1px solid transparent}.components-button.is-secondary:active:not(:disabled),.components-button.is-tertiary:active:not(:disabled){background:#ddd;color:var(--wp-admin-theme-color-darker-10);box-shadow:none}.components-button.is-secondary:hover:not(:disabled),.components-button.is-tertiary:hover:not(:disabled){color:var(--wp-admin-theme-color-darker-10);box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color-darker-10)}.components-button.is-secondary:disabled,.components-button.is-secondary[aria-disabled=true],.components-button.is-secondary[aria-disabled=true]:hover,.components-button.is-tertiary:disabled,.components-button.is-tertiary[aria-disabled=true],.components-button.is-tertiary[aria-disabled=true]:hover{color:#828282;background:#eaeaea;transform:none;opacity:1;box-shadow:none;outline:none}.components-button.is-secondary{box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);outline:1px solid transparent}.components-button.is-secondary,.components-button.is-tertiary{white-space:nowrap;color:var(--wp-admin-theme-color);background:transparent}.components-button.is-tertiary{padding:6px}.components-button.is-tertiary .dashicon{display:inline-block;flex:0 0 auto}p+.components-button.is-tertiary{margin-left:-6px}.components-button.is-destructive{color:#cc1818;box-shadow:inset 0 0 0 1px #cc1818}.components-button.is-destructive:hover:not(:disabled){color:#710d0d;box-shadow:inset 0 0 0 1px #710d0d}.components-button.is-destructive:focus:not(:disabled){color:var(--wp-admin-theme-color)}.components-button.is-destructive:active:not(:disabled){background:#ccc}.components-button.is-destructive.is-primary{color:#fff;background:#cc1818;box-shadow:inset 0 0 0 1px #cc1818}.components-button.is-destructive.is-primary:hover:not(:disabled){color:#fff;background:#710d0d;box-shadow:inset 0 0 0 1px #710d0d}.components-button.is-link{margin:0;padding:0;box-shadow:none;border:0;border-radius:0;background:none;outline:none;text-align:left;color:var(--wp-admin-theme-color);text-decoration:underline;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out;height:auto}@media (prefers-reduced-motion:reduce){.components-button.is-link{transition-duration:0s;transition-delay:0s}}.components-button.is-link:focus{border-radius:2px}.components-button.is-link.is-destructive{color:#cc1818}.components-button.is-link.is-destructive:active:not(:disabled),.components-button.is-link.is-destructive:hover:not(:disabled){color:#710d0d;background:none}.components-button.is-link.is-destructive:focus:not(:disabled){color:var(--wp-admin-theme-color)}.components-button:not([aria-disabled=true]):active{color:inherit}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;opacity:.3}.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{animation:components-button__busy-animation 2.5s linear infinite;opacity:1;background-size:100px 100%;background-image:linear-gradient(-45deg,#fafafa 33%,#e0e0e0 0,#e0e0e0 70%,#fafafa 0)}.components-button.is-small{height:24px;line-height:22px;padding:0 8px;font-size:11px}.components-button.is-small.has-icon:not(.has-text){padding:0 8px;width:24px}.components-button.has-icon{padding:6px;min-width:36px;justify-content:center}.components-button.has-icon .dashicon{display:inline-block;flex:0 0 auto;margin-left:2px;margin-right:2px}.components-button.has-icon.has-text{justify-content:left}.components-button.has-icon.has-text svg{margin-right:8px}.components-button.has-icon.has-text .dashicon{margin-right:10px}.components-button.is-pressed{color:#fff;background:#1e1e1e}.components-button.is-pressed:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.components-button.is-pressed:hover:not(:disabled){color:#fff;background:#1e1e1e}.components-button svg{fill:currentColor;outline:none}@media (forced-colors:active){.components-button svg{fill:CanvasText}}.components-button .components-visually-hidden{height:auto}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control__input[type=checkbox]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;font-size:16px;line-height:normal;border:1px solid #1e1e1e;transition:none;border-radius:2px;background:#fff;color:#1e1e1e;clear:none;cursor:pointer;display:inline-block;line-height:0;margin:0 4px 0 0;outline:0;padding:0!important;text-align:center;vertical-align:top;width:24px;height:24px;-webkit-appearance:none;appearance:none;transition:border-color .1s ease-in-out}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{font-size:13px;line-height:normal}}.components-checkbox-control__input[type=checkbox]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-3px -5px;color:#fff}@media (min-width:782px){.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-4px 0 0 -5px}}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{content:"";float:left;display:inline-block;vertical-align:middle;width:16px;font:normal 30px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:782px){.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{float:none;font-size:21px}}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{height:20px;width:20px}}@media (prefers-reduced-motion:reduce){.components-checkbox-control__input[type=checkbox]{transition-duration:0s;transition-delay:0s}}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.components-checkbox-control__input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input-container{position:relative;display:inline-block;margin-right:12px;vertical-align:middle;width:24px;height:24px}@media (min-width:600px){.components-checkbox-control__input-container{width:20px;height:20px}}svg.components-checkbox-control__checked{fill:#fff;cursor:pointer;position:absolute;left:0;top:0;width:24px;height:24px;-webkit-user-select:none;user-select:none;pointer-events:none}@media (min-width:600px){svg.components-checkbox-control__checked{left:-2px;top:-2px}}.components-circular-option-picker{display:inline-block;width:100%;min-width:188px}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end}.components-circular-option-picker .components-circular-option-picker__swatches{display:flex;flex-wrap:wrap;gap:12px}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;width:28px;vertical-align:top;transform:scale(1);transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option-wrapper{transition-duration:0s;transition-delay:0s}}.components-circular-option-picker__option-wrapper:hover{transform:scale(1.2)}.components-circular-option-picker__option-wrapper>div{height:100%;width:100%}.components-circular-option-picker__option-wrapper:before{content:"";position:absolute;top:1px;left:1px;bottom:1px;right:1px;border-radius:50%;z-index:-1;background:url("data:image/svg+xml;charset=utf-8,%3Csvg width='28' height='28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8V6H4v2h2zm2 0V6h2v2H8zm2 8H8v-2h2v2zm2 0v-2h2v2h-2zm0 2v-2h-2v2H8v2h2v-2h2zm2 0v2h-2v-2h2zm2 0h-2v-2h2v2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2v2zm-2-4v-2h2v2h-2z' fill='%23555D65'/%3E%3Cpath d='M18 18v2h-2v-2h2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 10V8H6v2H4v2h2v2H4v2h2v2H4v2h2v2H4v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2v2h-2V4h-2v2h-2V4h-2v2h-2V4h-2v2h2v2h-2v2H8zm0 2v-2H6v2h2zm2 0v-2h2v2h-2zm0 2v-2H8v2H6v2h2v2H6v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h-2v2h-2V6h-2v2h-2v2h2v2h-2v2h-2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4 0H2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2H8V0H6v2H4V0zm0 4V2H2v2h2zm2 0V2h2v2H6zm0 2V4H4v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2H8v2H6z' fill='%23555D65'/%3E%3C/svg%3E")}.components-circular-option-picker__option{display:inline-block;vertical-align:top;height:100%;width:100%;border:none;border-radius:50%;background:transparent;box-shadow:inset 0 0 0 14px;transition:box-shadow .1s ease;cursor:pointer}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option{transition-duration:0s;transition-delay:0s}}.components-circular-option-picker__option:hover{box-shadow:inset 0 0 0 14px!important}.components-circular-option-picker__option.is-pressed{box-shadow:inset 0 0 0 4px;position:relative;z-index:1;overflow:visible}.components-circular-option-picker__option.is-pressed+svg{position:absolute;left:2px;top:2px;border-radius:50%;z-index:2;pointer-events:none}.components-circular-option-picker__option:after{content:"";position:absolute;top:-1px;left:-1px;bottom:-1px;right:-1px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);border:1px solid transparent}.components-circular-option-picker__option:focus:after{content:"";border:2px solid #757575;width:32px;height:32px;position:absolute;top:-2px;left:-2px;border-radius:50%;box-shadow:inset 0 0 0 2px #fff}.components-circular-option-picker__option.components-button:focus{background-color:transparent;box-shadow:inset 0 0 0 14px;outline:none}.components-circular-option-picker__button-action .components-circular-option-picker__option{color:#fff;background:#fff}.components-circular-option-picker__dropdown-link-action{margin-right:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}@media (min-width:782px){.components-color-edit__color-popover.components-popover .components-popover__content.components-popover__content.components-popover__content{margin-right:156px;margin-top:-49px}}.component-color-indicator{width:25px;height:16px;margin-left:.8rem;border:1px solid #dadada;display:inline-block}.component-color-indicator+.component-color-indicator{margin-left:.5rem}.components-combobox-control{width:100%}input.components-combobox-control__input[type=text]{width:100%;border:none;box-shadow:none;font-size:16px;padding:2px;margin:0;line-height:inherit;min-height:auto}@media (min-width:600px){input.components-combobox-control__input[type=text]{font-size:13px}}input.components-combobox-control__input[type=text]:focus{outline:none;box-shadow:none}.components-combobox-control__suggestions-container{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;margin:0 0 8px;padding:4px}@media (prefers-reduced-motion:reduce){.components-combobox-control__suggestions-container{transition-duration:0s;transition-delay:0s}}@media (min-width:600px){.components-combobox-control__suggestions-container{font-size:13px;line-height:normal}}.components-combobox-control__suggestions-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-combobox-control__suggestions-container::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container:focus-within{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-combobox-control__reset.components-button{display:flex;height:24px;min-width:24px;padding:0}.components-color-list-picker,.components-color-list-picker__swatch-button{width:100%}.components-color-list-picker__color-picker{margin:8px 0}.components-color-palette__custom-color{border:none;background:none;outline:0;display:block;border-radius:2px;height:48px;text-align:right;width:100%;background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,25px 25px;background-size:50px 50px;box-sizing:border-box;color:#fff;cursor:pointer}.components-custom-gradient-picker__gradient-bar:not(.has-gradient){opacity:.4}.components-custom-gradient-picker__gradient-bar{border-radius:2px;margin-top:12px;width:100%;height:48px;margin-bottom:20px;padding-right:16px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{position:relative;width:calc(100% - 32px);margin-left:auto;margin-right:auto}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point{border-radius:50%;background:#fff;padding:2px;top:16px;min-width:16px;width:16px;height:16px;position:relative;color:#1e1e1e}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border-radius:50%;height:16px;width:16px;padding:0;position:absolute;top:16px;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 2px 0 rgba(0,0,0,.25);outline:2px solid transparent}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active,.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus{box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2) #fff,0 0 2px 0 rgba(0,0,0,.25);outline:4px solid transparent}.components-custom-gradient-picker__color-picker-popover .components-custom-gradient-picker__remove-control-point{margin-left:auto;margin-right:auto;display:block;margin-bottom:8px}.components-custom-gradient-picker__inserter{direction:ltr;width:100%}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;width:20px;height:20px}.components-custom-gradient-picker .components-custom-gradient-picker__ui-line{margin-bottom:16px}.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-angle-picker,.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-custom-gradient-picker__type-picker{margin-bottom:0}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar{border:none}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar>div+div{margin-left:1px}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar button.is-pressed>svg{background:#fff;border:1px solid #949494;border-radius:2px}.components-custom-gradient-picker .components-input-control__input,.components-custom-gradient-picker .components-select-control__input{height:40px!important}.components-custom-gradient-picker .components-input-control__label{line-height:1;padding-bottom:8px!important}.components-custom-gradient-picker label{text-transform:uppercase;font-size:11px;font-weight:500}.components-custom-select-control{position:relative}.components-custom-select-control__label{display:block;margin-bottom:8px}.components-custom-select-control__button{border:1px solid #757575;border-radius:2px;min-height:30px;min-width:130px;position:relative;text-align:left}.components-custom-select-control__button.components-custom-select-control__button{padding-right:24px}.components-custom-select-control__button:focus:not(:disabled){border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.components-custom-select-control__button .components-custom-select-control__button-icon{height:100%;padding:0;position:absolute;right:0;top:0}.components-custom-select-control__menu{border:1px solid #1e1e1e;background-color:#fff;border-radius:2px;outline:none;transition:none;max-height:400px;min-width:100%;overflow:auto;padding:0;position:absolute;z-index:1000000}.components-custom-select-control__menu[aria-hidden=true]{display:none}.components-custom-select-control__item{align-items:center;display:grid;grid-template-columns:auto auto;list-style-type:none;padding:8px;cursor:default;line-height:28px}.components-custom-select-control__item.has-hint{grid-template-columns:auto auto 30px}.components-custom-select-control__item.is-highlighted{background:#ddd}.components-custom-select-control__item .components-custom-select-control__item-hint{color:#757575;text-align:right;padding-right:4px}.components-custom-select-control__item .components-custom-select-control__item-icon{margin-left:auto}.components-custom-select-control__item:last-child{margin-bottom:0}.PresetDateRangePicker_panel{padding:0 22px 11px}.PresetDateRangePicker_button{position:relative;height:100%;text-align:center;background:0 0;border:2px solid #00a699;color:#00a699;padding:4px 12px;margin-right:8px;font:inherit;font-weight:700;line-height:normal;overflow:visible;box-sizing:border-box;cursor:pointer}.PresetDateRangePicker_button:active{outline:0}.PresetDateRangePicker_button__selected{color:#fff;background:#00a699}.SingleDatePickerInput{display:inline-block;background-color:#fff}.SingleDatePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.SingleDatePickerInput__rtl{direction:rtl}.SingleDatePickerInput__disabled{background-color:#f2f2f2}.SingleDatePickerInput__block{display:block}.SingleDatePickerInput__showClearDate{padding-right:30px}.SingleDatePickerInput_clearDate{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.SingleDatePickerInput_clearDate__default:focus,.SingleDatePickerInput_clearDate__default:hover{background:#dbdbdb;border-radius:50%}.SingleDatePickerInput_clearDate__small{padding:6px}.SingleDatePickerInput_clearDate__hide{visibility:hidden}.SingleDatePickerInput_clearDate_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.SingleDatePickerInput_clearDate_svg__small{height:9px}.SingleDatePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.SingleDatePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.SingleDatePicker{position:relative;display:inline-block}.SingleDatePicker__block{display:block}.SingleDatePicker_picker{z-index:1;background-color:#fff;position:absolute}.SingleDatePicker_picker__rtl{direction:rtl}.SingleDatePicker_picker__directionLeft{left:0}.SingleDatePicker_picker__directionRight{right:0}.SingleDatePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.SingleDatePicker_picker__fullScreenPortal{background-color:#fff}.SingleDatePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.SingleDatePicker_closeButton:focus,.SingleDatePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.SingleDatePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_buttonReset{background:0 0;border:0;border-radius:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;cursor:pointer;font-size:14px}.DayPickerKeyboardShortcuts_buttonReset:active{outline:0}.DayPickerKeyboardShortcuts_show{width:22px;position:absolute;z-index:2}.DayPickerKeyboardShortcuts_show__bottomRight{border-top:26px solid transparent;border-right:33px solid #00a699;bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topRight{border-bottom:26px solid transparent;border-right:33px solid #00a699;top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topLeft{border-bottom:26px solid transparent;border-left:33px solid #00a699;top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:hover{border-left:33px solid #008489}.DayPickerKeyboardShortcuts_showSpan{color:#fff;position:absolute}.DayPickerKeyboardShortcuts_showSpan__bottomRight{bottom:0;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topRight{top:1px;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topLeft{top:1px;left:-28px}.DayPickerKeyboardShortcuts_panel{overflow:auto;background:#fff;border:1px solid #dbdbdb;border-radius:2px;position:absolute;top:0;bottom:0;right:0;left:0;z-index:2;padding:22px;margin:33px}.DayPickerKeyboardShortcuts_title{font-size:16px;font-weight:700;margin:0}.DayPickerKeyboardShortcuts_list{list-style:none;padding:0;font-size:14px}.DayPickerKeyboardShortcuts_close{position:absolute;right:22px;top:22px;z-index:2}.DayPickerKeyboardShortcuts_close:active{outline:0}.DayPickerKeyboardShortcuts_closeSvg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_closeSvg:focus,.DayPickerKeyboardShortcuts_closeSvg:hover{fill:#82888a}.CalendarDay{box-sizing:border-box;cursor:pointer;font-size:14px;text-align:center}.CalendarDay:active{outline:0}.CalendarDay__defaultCursor{cursor:default}.CalendarDay__default{border:1px solid #e4e7e7;color:#484848;background:#fff}.CalendarDay__default:hover{background:#e4e7e7;border:1px double #e4e7e7;color:inherit}.CalendarDay__hovered_offset{background:#f4f5f5;border:1px double #e4e7e7;color:inherit}.CalendarDay__outside{border:0;background:#fff;color:#484848}.CalendarDay__outside:hover{border:0}.CalendarDay__blocked_minimum_nights{background:#fff;border:1px solid #eceeee;color:#cacccd}.CalendarDay__blocked_minimum_nights:active,.CalendarDay__blocked_minimum_nights:hover{background:#fff;color:#cacccd}.CalendarDay__highlighted_calendar{background:#ffe8bc;color:#484848}.CalendarDay__highlighted_calendar:active,.CalendarDay__highlighted_calendar:hover{background:#ffce71;color:#484848}.CalendarDay__selected_span{background:#66e2da;border:1px solid #33dacd;color:#fff}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:#33dacd;border:1px solid #33dacd;color:#fff}.CalendarDay__last_in_range{border-right:#00a699}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:#00a699;border:1px solid #00a699;color:#fff}.CalendarDay__hovered_span,.CalendarDay__hovered_span:hover{background:#b2f1ec;border:1px solid #80e8e0;color:#007a87}.CalendarDay__hovered_span:active{background:#80e8e0;border:1px solid #80e8e0;color:#007a87}.CalendarDay__blocked_calendar,.CalendarDay__blocked_calendar:active,.CalendarDay__blocked_calendar:hover{background:#cacccd;border:1px solid #cacccd;color:#82888a}.CalendarDay__blocked_out_of_range,.CalendarDay__blocked_out_of_range:active,.CalendarDay__blocked_out_of_range:hover{background:#fff;border:1px solid #e4e7e7;color:#cacccd}.CalendarMonth{background:#fff;text-align:center;vertical-align:top;-webkit-user-select:none;user-select:none}.CalendarMonth_table{border-collapse:collapse;border-spacing:0}.CalendarMonth_verticalSpacing{border-collapse:separate}.CalendarMonth_caption{color:#484848;font-size:18px;text-align:center;padding-top:22px;padding-bottom:37px;caption-side:top}.CalendarMonth_caption__verticalScrollable{padding-top:12px;padding-bottom:7px}.CalendarMonthGrid{background:#fff;text-align:left;z-index:0}.CalendarMonthGrid__animating{z-index:1}.CalendarMonthGrid__horizontal{position:absolute;left:0}.CalendarMonthGrid__vertical{margin:0 auto}.CalendarMonthGrid__vertical_scrollable{margin:0 auto;overflow-y:scroll}.CalendarMonthGrid_month__horizontal{display:inline-block;vertical-align:top;min-height:100%}.CalendarMonthGrid_month__hideForAnimation{position:absolute;z-index:-1;opacity:0;pointer-events:none}.CalendarMonthGrid_month__hidden{visibility:hidden}.DayPickerNavigation{position:relative;z-index:2}.DayPickerNavigation__horizontal{height:0}.DayPickerNavigation__verticalDefault{position:absolute;width:100%;height:52px;bottom:0;left:0}.DayPickerNavigation__verticalScrollableDefault{position:relative}.DayPickerNavigation_button{cursor:pointer;-webkit-user-select:none;user-select:none;border:0;padding:0;margin:0}.DayPickerNavigation_button__default{border:1px solid #e4e7e7;background-color:#fff;color:#757575}.DayPickerNavigation_button__default:focus,.DayPickerNavigation_button__default:hover{border:1px solid #c4c4c4}.DayPickerNavigation_button__default:active{background:#f2f2f2}.DayPickerNavigation_button__horizontalDefault{position:absolute;top:18px;line-height:.78;border-radius:3px;padding:6px 9px}.DayPickerNavigation_leftButton__horizontalDefault{left:22px}.DayPickerNavigation_rightButton__horizontalDefault{right:22px}.DayPickerNavigation_button__verticalDefault{padding:5px;background:#fff;box-shadow:0 0 5px 2px rgba(0,0,0,.1);position:relative;display:inline-block;height:100%;width:50%}.DayPickerNavigation_nextButton__verticalDefault{border-left:0}.DayPickerNavigation_nextButton__verticalScrollableDefault{width:100%}.DayPickerNavigation_svg__horizontal{height:19px;width:19px;fill:#82888a;display:block}.DayPickerNavigation_svg__vertical{height:42px;width:42px;fill:#484848;display:block}.DayPicker{position:relative;text-align:left}.DayPicker,.DayPicker__horizontal{background:#fff}.DayPicker__verticalScrollable{height:100%}.DayPicker__hidden{visibility:hidden}.DayPicker__withBorder{box-shadow:0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);border-radius:3px}.DayPicker_portal__horizontal{box-shadow:none;position:absolute;left:50%;top:50%}.DayPicker_portal__vertical{position:static}.DayPicker_focusRegion{outline:0}.DayPicker_calendarInfo__horizontal,.DayPicker_wrapper__horizontal{display:inline-block;vertical-align:top}.DayPicker_weekHeaders{position:relative}.DayPicker_weekHeaders__horizontal{margin-left:13px}.DayPicker_weekHeader{color:#757575;position:absolute;top:62px;z-index:2;text-align:left;padding:0!important}.DayPicker_weekHeader__vertical{left:50%}.DayPicker_weekHeader__verticalScrollable{top:0;display:table-row;border-bottom:1px solid #dbdbdb;background:#fff;margin-left:0;left:0;width:100%;text-align:center}.DayPicker_weekHeader_ul{list-style:none;margin:1px 0;padding-left:0;padding-right:0;font-size:14px}.DayPicker_weekHeader_li{display:inline-block;text-align:center;margin:0 1px}.DayPicker_transitionContainer{position:relative;overflow:hidden;border-radius:3px}.DayPicker_transitionContainer__horizontal{transition:height .2s ease-in-out}.DayPicker_transitionContainer__vertical{width:100%}.DayPicker_transitionContainer__verticalScrollable{padding-top:20px;height:100%;position:absolute;top:0;bottom:0;right:0;left:0;overflow-y:scroll}.DateInput{margin:0;padding:0;background:#fff;position:relative;display:inline-block;width:130px;vertical-align:middle}.DateInput__small{width:97px}.DateInput__block{width:100%}.DateInput__disabled{background:#f2f2f2;color:#dbdbdb}.DateInput_input{font-weight:200;font-size:19px;line-height:24px;color:#484848;background-color:#fff;width:100%;padding:11px 11px 9px;border:0;border-bottom:2px solid transparent;border-radius:0}.DateInput_input__small{font-size:15px;line-height:18px;letter-spacing:.2px;padding:7px 7px 5px}.DateInput_input__regular{font-weight:auto}.DateInput_input__readOnly{-webkit-user-select:none;user-select:none}.DateInput_input__focused{outline:0;background:#fff;border:0;border-bottom:2px solid #008489}.DateInput_input__disabled{background:#f2f2f2;font-style:italic}.DateInput_screenReaderMessage{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DateInput_fang{position:absolute;width:20px;height:10px;left:22px;z-index:2}.DateInput_fangShape{fill:#fff}.DateInput_fangStroke{stroke:#dbdbdb;fill:transparent}.DateRangePickerInput{background-color:#fff;display:inline-block}.DateRangePickerInput__disabled{background:#f2f2f2}.DateRangePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.DateRangePickerInput__rtl{direction:rtl}.DateRangePickerInput__block{display:block}.DateRangePickerInput__showClearDates{padding-right:30px}.DateRangePickerInput_arrow{display:inline-block;vertical-align:middle;color:#484848}.DateRangePickerInput_arrow_svg{vertical-align:middle;fill:#484848;height:24px;width:24px}.DateRangePickerInput_clearDates{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.DateRangePickerInput_clearDates__small{padding:6px}.DateRangePickerInput_clearDates_default:focus,.DateRangePickerInput_clearDates_default:hover{background:#dbdbdb;border-radius:50%}.DateRangePickerInput_clearDates__hide{visibility:hidden}.DateRangePickerInput_clearDates_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.DateRangePickerInput_clearDates_svg__small{height:9px}.DateRangePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.DateRangePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.DateRangePicker{position:relative;display:inline-block}.DateRangePicker__block{display:block}.DateRangePicker_picker{z-index:1;background-color:#fff;position:absolute}.DateRangePicker_picker__rtl{direction:rtl}.DateRangePicker_picker__directionLeft{left:0}.DateRangePicker_picker__directionRight{right:0}.DateRangePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.DateRangePicker_picker__fullScreenPortal{background-color:#fff}.DateRangePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.DateRangePicker_closeButton:focus,.DateRangePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.DateRangePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.components-datetime{padding:16px}.components-panel__body .components-datetime{padding:0}.components-datetime .components-datetime__calendar-help{padding:16px;min-width:260px}.components-datetime .components-datetime__calendar-help h4{margin:0}.components-datetime .components-datetime__buttons{display:flex;justify-content:space-between}.components-datetime .components-datetime__date-help-toggle{display:block;margin-left:auto}.components-datetime fieldset{border:0;padding:0;margin:0}.components-datetime input,.components-datetime select{box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575}@media (prefers-reduced-motion:reduce){.components-datetime input,.components-datetime select{transition-duration:0s;transition-delay:0s}}.components-datetime .components-button,.components-datetime input[type=number],.components-datetime select{height:30px;margin-top:0;margin-bottom:0}.components-datetime .components-button:focus{z-index:1}.components-datetime__date{min-height:236px;border-top:1px solid #ddd}.components-datetime__date .DayPickerNavigation_leftButton__horizontalDefault{ +@charset "UTF-8";:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__appear{animation-duration:1ms;animation-delay:0s}}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top left}.components-animate__appear.is-from-top.is-from-right{transform-origin:top right}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom left}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom right}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__slide-in{animation-duration:1ms;animation-delay:0s}}.components-animate__slide-in.is-from-left{transform:translateX(100%)}.components-animate__slide-in.is-from-right{transform:translateX(-100%)}@keyframes components-animate__slide-in-animation{to{transform:translateX(0)}}.components-animate__loading{animation:components-animate__loading 1.6s ease-in-out infinite}@keyframes components-animate__loading{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.components-autocomplete__popover .components-popover__content>div{padding:16px;min-width:220px}.components-autocomplete__result.components-button{display:flex;height:auto;min-height:36px;text-align:left;width:100%}.components-autocomplete__result.components-button.is-selected{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-button-group{display:inline-block}.components-button-group .components-button{border-radius:0;display:inline-flex;color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}.components-button-group .components-button+.components-button{margin-left:-1px}.components-button-group .components-button:first-child{border-radius:2px 0 0 2px}.components-button-group .components-button:last-child{border-radius:0 2px 2px 0}.components-button-group .components-button.is-primary,.components-button-group .components-button:focus{position:relative;z-index:1}.components-button-group .components-button.is-primary{box-shadow:inset 0 0 0 1px #1e1e1e}.components-button{display:inline-flex;text-decoration:none;font-weight:400;font-size:13px;margin:0;border:0;cursor:pointer;-webkit-appearance:none;background:none;transition:box-shadow .1s linear;height:36px;align-items:center;box-sizing:border-box;padding:6px 12px;border-radius:2px;color:#1e1e1e}@media (prefers-reduced-motion:reduce){.components-button{transition-duration:0s;transition-delay:0s}}.components-button:hover,.components-button[aria-expanded=true]{color:var(--wp-admin-theme-color)}.components-button[aria-disabled=true]:hover{color:initial}.components-button:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid transparent}.components-button.is-primary{white-space:nowrap;background:var(--wp-admin-theme-color);color:#fff;text-decoration:none;text-shadow:none;outline:1px solid transparent}.components-button.is-primary:hover:not(:disabled){background:var(--wp-admin-theme-color-darker-10);color:#fff}.components-button.is-primary:active:not(:disabled){background:var(--wp-admin-theme-color-darker-20);border-color:var(--wp-admin-theme-color-darker-20);color:#fff}.components-button.is-primary:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-button.is-primary:disabled,.components-button.is-primary:disabled:active:enabled,.components-button.is-primary[aria-disabled=true],.components-button.is-primary[aria-disabled=true]:active:enabled,.components-button.is-primary[aria-disabled=true]:enabled{color:hsla(0,0%,100%,.4);background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);opacity:1;outline:none}.components-button.is-primary:disabled:active:enabled:focus:enabled,.components-button.is-primary:disabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:focus:enabled{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color)}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{color:#fff;background-size:100px 100%;background-image:linear-gradient(-45deg,var(--wp-admin-theme-color) 33%,var(--wp-admin-theme-color-darker-20) 0,var(--wp-admin-theme-color-darker-20) 70%,var(--wp-admin-theme-color) 0);border-color:var(--wp-admin-theme-color)}.components-button.is-secondary,.components-button.is-tertiary{outline:1px solid transparent}.components-button.is-secondary:active:not(:disabled),.components-button.is-tertiary:active:not(:disabled){background:#ddd;color:var(--wp-admin-theme-color-darker-10);box-shadow:none}.components-button.is-secondary:hover:not(:disabled),.components-button.is-tertiary:hover:not(:disabled){color:var(--wp-admin-theme-color-darker-10);box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color-darker-10)}.components-button.is-secondary:disabled,.components-button.is-secondary[aria-disabled=true],.components-button.is-secondary[aria-disabled=true]:hover,.components-button.is-tertiary:disabled,.components-button.is-tertiary[aria-disabled=true],.components-button.is-tertiary[aria-disabled=true]:hover{color:#828282;background:#eaeaea;transform:none;opacity:1;box-shadow:none;outline:none}.components-button.is-secondary{box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);outline:1px solid transparent}.components-button.is-secondary,.components-button.is-tertiary{white-space:nowrap;color:var(--wp-admin-theme-color);background:transparent}.components-button.is-tertiary{padding:6px}.components-button.is-tertiary .dashicon{display:inline-block;flex:0 0 auto}p+.components-button.is-tertiary{margin-left:-6px}.components-button.is-destructive{color:#cc1818;box-shadow:inset 0 0 0 1px #cc1818}.components-button.is-destructive:hover:not(:disabled){color:#710d0d;box-shadow:inset 0 0 0 1px #710d0d}.components-button.is-destructive:focus:not(:disabled){color:var(--wp-admin-theme-color)}.components-button.is-destructive:active:not(:disabled){background:#ccc}.components-button.is-destructive.is-primary{color:#fff;background:#cc1818;box-shadow:inset 0 0 0 1px #cc1818}.components-button.is-destructive.is-primary:hover:not(:disabled){color:#fff;background:#710d0d;box-shadow:inset 0 0 0 1px #710d0d}.components-button.is-link{margin:0;padding:0;box-shadow:none;border:0;border-radius:0;background:none;outline:none;text-align:left;color:var(--wp-admin-theme-color);text-decoration:underline;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out;height:auto}@media (prefers-reduced-motion:reduce){.components-button.is-link{transition-duration:0s;transition-delay:0s}}.components-button.is-link:focus{border-radius:2px}.components-button.is-link.is-destructive{color:#cc1818}.components-button.is-link.is-destructive:active:not(:disabled),.components-button.is-link.is-destructive:hover:not(:disabled){color:#710d0d;background:none}.components-button.is-link.is-destructive:focus:not(:disabled){color:var(--wp-admin-theme-color)}.components-button:not([aria-disabled=true]):active{color:inherit}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;opacity:.3}.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{animation:components-button__busy-animation 2.5s linear infinite;opacity:1;background-size:100px 100%;background-image:linear-gradient(-45deg,#fafafa 33%,#e0e0e0 0,#e0e0e0 70%,#fafafa 0)}.components-button.is-small{height:24px;line-height:22px;padding:0 8px;font-size:11px}.components-button.is-small.has-icon:not(.has-text){padding:0 8px;width:24px}.components-button.has-icon{padding:6px;min-width:36px;justify-content:center}.components-button.has-icon .dashicon{display:inline-block;flex:0 0 auto;margin-left:2px;margin-right:2px}.components-button.has-icon.has-text{justify-content:left}.components-button.has-icon.has-text svg{margin-right:8px}.components-button.has-icon.has-text .dashicon{margin-right:10px}.components-button.is-pressed{color:#fff;background:#1e1e1e}.components-button.is-pressed:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.components-button.is-pressed:hover:not(:disabled){color:#fff;background:#1e1e1e}.components-button svg{fill:currentColor;outline:none}@media (forced-colors:active){.components-button svg{fill:CanvasText}}.components-button .components-visually-hidden{height:auto}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control__input[type=checkbox]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;font-size:16px;line-height:normal;border:1px solid #1e1e1e;transition:none;border-radius:2px;background:#fff;color:#1e1e1e;clear:none;cursor:pointer;display:inline-block;line-height:0;margin:0 4px 0 0;outline:0;padding:0!important;text-align:center;vertical-align:top;width:24px;height:24px;-webkit-appearance:none;appearance:none;transition:border-color .1s ease-in-out}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{font-size:13px;line-height:normal}}.components-checkbox-control__input[type=checkbox]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-3px -5px;color:#fff}@media (min-width:782px){.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-4px 0 0 -5px}}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{content:"";float:left;display:inline-block;vertical-align:middle;width:16px;font:normal 30px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:782px){.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{float:none;font-size:21px}}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{height:20px;width:20px}}@media (prefers-reduced-motion:reduce){.components-checkbox-control__input[type=checkbox]{transition-duration:0s;transition-delay:0s}}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.components-checkbox-control__input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input-container{position:relative;display:inline-block;margin-right:12px;vertical-align:middle;width:24px;height:24px}@media (min-width:600px){.components-checkbox-control__input-container{width:20px;height:20px}}svg.components-checkbox-control__checked{fill:#fff;cursor:pointer;position:absolute;left:0;top:0;width:24px;height:24px;-webkit-user-select:none;user-select:none;pointer-events:none}@media (min-width:600px){svg.components-checkbox-control__checked{left:-2px;top:-2px}}.components-circular-option-picker{display:inline-block;width:100%;min-width:188px}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end}.components-circular-option-picker .components-circular-option-picker__swatches{display:flex;flex-wrap:wrap;gap:12px}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;width:28px;vertical-align:top;transform:scale(1);transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option-wrapper{transition-duration:0s;transition-delay:0s}}.components-circular-option-picker__option-wrapper:hover{transform:scale(1.2)}.components-circular-option-picker__option-wrapper>div{height:100%;width:100%}.components-circular-option-picker__option-wrapper:before{content:"";position:absolute;top:1px;left:1px;bottom:1px;right:1px;border-radius:50%;z-index:-1;background:url("data:image/svg+xml;charset=utf-8,%3Csvg width='28' height='28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8V6H4v2h2zm2 0V6h2v2H8zm2 8H8v-2h2v2zm2 0v-2h2v2h-2zm0 2v-2h-2v2H8v2h2v-2h2zm2 0v2h-2v-2h2zm2 0h-2v-2h2v2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2v2zm-2-4v-2h2v2h-2z' fill='%23555D65'/%3E%3Cpath d='M18 18v2h-2v-2h2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 10V8H6v2H4v2h2v2H4v2h2v2H4v2h2v2H4v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2v2h-2V4h-2v2h-2V4h-2v2h-2V4h-2v2h2v2h-2v2H8zm0 2v-2H6v2h2zm2 0v-2h2v2h-2zm0 2v-2H8v2H6v2h2v2H6v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h-2v2h-2V6h-2v2h-2v2h2v2h-2v2h-2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4 0H2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2H8V0H6v2H4V0zm0 4V2H2v2h2zm2 0V2h2v2H6zm0 2V4H4v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2H8v2H6z' fill='%23555D65'/%3E%3C/svg%3E")}.components-circular-option-picker__option{display:inline-block;vertical-align:top;height:100%;width:100%;border:none;border-radius:50%;background:transparent;box-shadow:inset 0 0 0 14px;transition:box-shadow .1s ease;cursor:pointer}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option{transition-duration:0s;transition-delay:0s}}.components-circular-option-picker__option:hover{box-shadow:inset 0 0 0 14px!important}.components-circular-option-picker__option.is-pressed{box-shadow:inset 0 0 0 4px;position:relative;z-index:1;overflow:visible}.components-circular-option-picker__option.is-pressed+svg{position:absolute;left:2px;top:2px;border-radius:50%;z-index:2;pointer-events:none}.components-circular-option-picker__option:after{content:"";position:absolute;top:-1px;left:-1px;bottom:-1px;right:-1px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);border:1px solid transparent}.components-circular-option-picker__option:focus:after{content:"";border:2px solid #757575;width:32px;height:32px;position:absolute;top:-2px;left:-2px;border-radius:50%;box-shadow:inset 0 0 0 2px #fff}.components-circular-option-picker__option.components-button:focus{background-color:transparent;box-shadow:inset 0 0 0 14px;outline:none}.components-circular-option-picker__button-action .components-circular-option-picker__option{color:#fff;background:#fff}.components-circular-option-picker__dropdown-link-action{margin-right:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}@media (min-width:782px){.components-palette-edit__popover.components-popover .components-popover__content.components-popover__content.components-popover__content{margin-right:156px;margin-top:-49px}}.components-palette-edit__popover .components-custom-gradient-picker__gradient-bar{margin-top:0}.components-palette-edit__popover .components-custom-gradient-picker__ui-line{margin-bottom:0}.components-palette-edit__popover .components-custom-gradient-picker{width:280px;padding:8px}.component-color-indicator{width:25px;height:16px;margin-left:.8rem;border:1px solid #dadada;display:inline-block}.component-color-indicator+.component-color-indicator{margin-left:.5rem}.components-combobox-control{width:100%}input.components-combobox-control__input[type=text]{width:100%;border:none;box-shadow:none;font-size:16px;padding:2px;margin:0;line-height:inherit;min-height:auto}@media (min-width:600px){input.components-combobox-control__input[type=text]{font-size:13px}}input.components-combobox-control__input[type=text]:focus{outline:none;box-shadow:none}.components-combobox-control__suggestions-container{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;margin:0 0 8px;padding:4px}@media (prefers-reduced-motion:reduce){.components-combobox-control__suggestions-container{transition-duration:0s;transition-delay:0s}}@media (min-width:600px){.components-combobox-control__suggestions-container{font-size:13px;line-height:normal}}.components-combobox-control__suggestions-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-combobox-control__suggestions-container::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container:focus-within{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-combobox-control__reset.components-button{display:flex;height:24px;min-width:24px;padding:0}.components-color-list-picker,.components-color-list-picker__swatch-button{width:100%}.components-color-list-picker__color-picker{margin:8px 0}.components-color-palette__custom-color{border:none;background:none;outline:0;display:block;border-radius:2px;height:48px;text-align:right;width:100%;background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,25px 25px;background-size:50px 50px;box-sizing:border-box;color:#fff;cursor:pointer}.components-custom-gradient-picker__gradient-bar:not(.has-gradient){opacity:.4}.components-custom-gradient-picker__gradient-bar{border-radius:2px;margin-top:12px;width:100%;height:48px;margin-bottom:20px;padding-right:16px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{position:relative;width:calc(100% - 32px);margin-left:auto;margin-right:auto}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point{border-radius:50%;background:#fff;padding:2px;top:16px;min-width:16px;width:16px;height:16px;position:relative;color:#1e1e1e}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border-radius:50%;height:16px;width:16px;padding:0;position:absolute;top:16px;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 2px 0 rgba(0,0,0,.25);outline:2px solid transparent}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active,.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus{box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2) #fff,0 0 2px 0 rgba(0,0,0,.25);outline:4px solid transparent}.components-custom-gradient-picker__color-picker-popover .components-custom-gradient-picker__remove-control-point{margin-left:auto;margin-right:auto;display:block;margin-bottom:8px}.components-custom-gradient-picker__inserter{direction:ltr;width:100%}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;width:20px;height:20px}.components-custom-gradient-picker .components-custom-gradient-picker__ui-line{margin-bottom:16px}.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-angle-picker,.components-custom-gradient-picker .components-custom-gradient-picker__ui-line .components-base-control.components-custom-gradient-picker__type-picker{margin-bottom:0}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar{border:none}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar>div+div{margin-left:1px}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar button.is-pressed>svg{background:#fff;border:1px solid #949494;border-radius:2px}.components-custom-gradient-picker .components-input-control__input,.components-custom-gradient-picker .components-select-control__input{height:40px!important}.components-custom-gradient-picker .components-input-control__label{line-height:1;padding-bottom:8px!important}.components-custom-gradient-picker label{text-transform:uppercase;font-size:11px;font-weight:500}.components-custom-select-control{position:relative}.components-custom-select-control__label{display:block;margin-bottom:8px}.components-custom-select-control__button{border:1px solid #757575;border-radius:2px;min-height:30px;min-width:130px;position:relative;text-align:left}.components-custom-select-control__button.components-custom-select-control__button{padding-right:24px}.components-custom-select-control__button:focus:not(:disabled){border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.components-custom-select-control__button .components-custom-select-control__button-icon{height:100%;padding:0;position:absolute;right:0;top:0}.components-custom-select-control__menu{border:1px solid #1e1e1e;background-color:#fff;border-radius:2px;outline:none;transition:none;max-height:400px;min-width:100%;overflow:auto;padding:0;position:absolute;z-index:1000000}.components-custom-select-control__menu[aria-hidden=true]{display:none}.components-custom-select-control__item{align-items:center;display:grid;grid-template-columns:auto auto;list-style-type:none;padding:8px;cursor:default;line-height:28px}.components-custom-select-control__item.has-hint{grid-template-columns:auto auto 30px}.components-custom-select-control__item.is-highlighted{background:#ddd}.components-custom-select-control__item .components-custom-select-control__item-hint{color:#757575;text-align:right;padding-right:4px}.components-custom-select-control__item .components-custom-select-control__item-icon{margin-left:auto}.components-custom-select-control__item:last-child{margin-bottom:0}.PresetDateRangePicker_panel{padding:0 22px 11px}.PresetDateRangePicker_button{position:relative;height:100%;text-align:center;background:0 0;border:2px solid #00a699;color:#00a699;padding:4px 12px;margin-right:8px;font:inherit;font-weight:700;line-height:normal;overflow:visible;box-sizing:border-box;cursor:pointer}.PresetDateRangePicker_button:active{outline:0}.PresetDateRangePicker_button__selected{color:#fff;background:#00a699}.SingleDatePickerInput{display:inline-block;background-color:#fff}.SingleDatePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.SingleDatePickerInput__rtl{direction:rtl}.SingleDatePickerInput__disabled{background-color:#f2f2f2}.SingleDatePickerInput__block{display:block}.SingleDatePickerInput__showClearDate{padding-right:30px}.SingleDatePickerInput_clearDate{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.SingleDatePickerInput_clearDate__default:focus,.SingleDatePickerInput_clearDate__default:hover{background:#dbdbdb;border-radius:50%}.SingleDatePickerInput_clearDate__small{padding:6px}.SingleDatePickerInput_clearDate__hide{visibility:hidden}.SingleDatePickerInput_clearDate_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.SingleDatePickerInput_clearDate_svg__small{height:9px}.SingleDatePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.SingleDatePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.SingleDatePicker{position:relative;display:inline-block}.SingleDatePicker__block{display:block}.SingleDatePicker_picker{z-index:1;background-color:#fff;position:absolute}.SingleDatePicker_picker__rtl{direction:rtl}.SingleDatePicker_picker__directionLeft{left:0}.SingleDatePicker_picker__directionRight{right:0}.SingleDatePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.SingleDatePicker_picker__fullScreenPortal{background-color:#fff}.SingleDatePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.SingleDatePicker_closeButton:focus,.SingleDatePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.SingleDatePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_buttonReset{background:0 0;border:0;border-radius:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;cursor:pointer;font-size:14px}.DayPickerKeyboardShortcuts_buttonReset:active{outline:0}.DayPickerKeyboardShortcuts_show{width:22px;position:absolute;z-index:2}.DayPickerKeyboardShortcuts_show__bottomRight{border-top:26px solid transparent;border-right:33px solid #00a699;bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topRight{border-bottom:26px solid transparent;border-right:33px solid #00a699;top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:hover{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topLeft{border-bottom:26px solid transparent;border-left:33px solid #00a699;top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:hover{border-left:33px solid #008489}.DayPickerKeyboardShortcuts_showSpan{color:#fff;position:absolute}.DayPickerKeyboardShortcuts_showSpan__bottomRight{bottom:0;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topRight{top:1px;right:-28px}.DayPickerKeyboardShortcuts_showSpan__topLeft{top:1px;left:-28px}.DayPickerKeyboardShortcuts_panel{overflow:auto;background:#fff;border:1px solid #dbdbdb;border-radius:2px;position:absolute;top:0;bottom:0;right:0;left:0;z-index:2;padding:22px;margin:33px}.DayPickerKeyboardShortcuts_title{font-size:16px;font-weight:700;margin:0}.DayPickerKeyboardShortcuts_list{list-style:none;padding:0;font-size:14px}.DayPickerKeyboardShortcuts_close{position:absolute;right:22px;top:22px;z-index:2}.DayPickerKeyboardShortcuts_close:active{outline:0}.DayPickerKeyboardShortcuts_closeSvg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_closeSvg:focus,.DayPickerKeyboardShortcuts_closeSvg:hover{fill:#82888a}.CalendarDay{box-sizing:border-box;cursor:pointer;font-size:14px;text-align:center}.CalendarDay:active{outline:0}.CalendarDay__defaultCursor{cursor:default}.CalendarDay__default{border:1px solid #e4e7e7;color:#484848;background:#fff}.CalendarDay__default:hover{background:#e4e7e7;border:1px double #e4e7e7;color:inherit}.CalendarDay__hovered_offset{background:#f4f5f5;border:1px double #e4e7e7;color:inherit}.CalendarDay__outside{border:0;background:#fff;color:#484848}.CalendarDay__outside:hover{border:0}.CalendarDay__blocked_minimum_nights{background:#fff;border:1px solid #eceeee;color:#cacccd}.CalendarDay__blocked_minimum_nights:active,.CalendarDay__blocked_minimum_nights:hover{background:#fff;color:#cacccd}.CalendarDay__highlighted_calendar{background:#ffe8bc;color:#484848}.CalendarDay__highlighted_calendar:active,.CalendarDay__highlighted_calendar:hover{background:#ffce71;color:#484848}.CalendarDay__selected_span{background:#66e2da;border:1px solid #33dacd;color:#fff}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:#33dacd;border:1px solid #33dacd;color:#fff}.CalendarDay__last_in_range{border-right:#00a699}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:#00a699;border:1px solid #00a699;color:#fff}.CalendarDay__hovered_span,.CalendarDay__hovered_span:hover{background:#b2f1ec;border:1px solid #80e8e0;color:#007a87}.CalendarDay__hovered_span:active{background:#80e8e0;border:1px solid #80e8e0;color:#007a87}.CalendarDay__blocked_calendar,.CalendarDay__blocked_calendar:active,.CalendarDay__blocked_calendar:hover{background:#cacccd;border:1px solid #cacccd;color:#82888a}.CalendarDay__blocked_out_of_range,.CalendarDay__blocked_out_of_range:active,.CalendarDay__blocked_out_of_range:hover{background:#fff;border:1px solid #e4e7e7;color:#cacccd}.CalendarMonth{background:#fff;text-align:center;vertical-align:top;-webkit-user-select:none;user-select:none}.CalendarMonth_table{border-collapse:collapse;border-spacing:0}.CalendarMonth_verticalSpacing{border-collapse:separate}.CalendarMonth_caption{color:#484848;font-size:18px;text-align:center;padding-top:22px;padding-bottom:37px;caption-side:top}.CalendarMonth_caption__verticalScrollable{padding-top:12px;padding-bottom:7px}.CalendarMonthGrid{background:#fff;text-align:left;z-index:0}.CalendarMonthGrid__animating{z-index:1}.CalendarMonthGrid__horizontal{position:absolute;left:0}.CalendarMonthGrid__vertical{margin:0 auto}.CalendarMonthGrid__vertical_scrollable{margin:0 auto;overflow-y:scroll}.CalendarMonthGrid_month__horizontal{display:inline-block;vertical-align:top;min-height:100%}.CalendarMonthGrid_month__hideForAnimation{position:absolute;z-index:-1;opacity:0;pointer-events:none}.CalendarMonthGrid_month__hidden{visibility:hidden}.DayPickerNavigation{position:relative;z-index:2}.DayPickerNavigation__horizontal{height:0}.DayPickerNavigation__verticalDefault{position:absolute;width:100%;height:52px;bottom:0;left:0}.DayPickerNavigation__verticalScrollableDefault{position:relative}.DayPickerNavigation_button{cursor:pointer;-webkit-user-select:none;user-select:none;border:0;padding:0;margin:0}.DayPickerNavigation_button__default{border:1px solid #e4e7e7;background-color:#fff;color:#757575}.DayPickerNavigation_button__default:focus,.DayPickerNavigation_button__default:hover{border:1px solid #c4c4c4}.DayPickerNavigation_button__default:active{background:#f2f2f2}.DayPickerNavigation_button__horizontalDefault{position:absolute;top:18px;line-height:.78;border-radius:3px;padding:6px 9px}.DayPickerNavigation_leftButton__horizontalDefault{left:22px}.DayPickerNavigation_rightButton__horizontalDefault{right:22px}.DayPickerNavigation_button__verticalDefault{padding:5px;background:#fff;box-shadow:0 0 5px 2px rgba(0,0,0,.1);position:relative;display:inline-block;height:100%;width:50%}.DayPickerNavigation_nextButton__verticalDefault{border-left:0}.DayPickerNavigation_nextButton__verticalScrollableDefault{width:100%}.DayPickerNavigation_svg__horizontal{height:19px;width:19px;fill:#82888a;display:block}.DayPickerNavigation_svg__vertical{height:42px;width:42px;fill:#484848;display:block}.DayPicker{position:relative;text-align:left}.DayPicker,.DayPicker__horizontal{background:#fff}.DayPicker__verticalScrollable{height:100%}.DayPicker__hidden{visibility:hidden}.DayPicker__withBorder{box-shadow:0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);border-radius:3px}.DayPicker_portal__horizontal{box-shadow:none;position:absolute;left:50%;top:50%}.DayPicker_portal__vertical{position:static}.DayPicker_focusRegion{outline:0}.DayPicker_calendarInfo__horizontal,.DayPicker_wrapper__horizontal{display:inline-block;vertical-align:top}.DayPicker_weekHeaders{position:relative}.DayPicker_weekHeaders__horizontal{margin-left:13px}.DayPicker_weekHeader{color:#757575;position:absolute;top:62px;z-index:2;text-align:left;padding:0!important}.DayPicker_weekHeader__vertical{left:50%}.DayPicker_weekHeader__verticalScrollable{top:0;display:table-row;border-bottom:1px solid #dbdbdb;background:#fff;margin-left:0;left:0;width:100%;text-align:center}.DayPicker_weekHeader_ul{list-style:none;margin:1px 0;padding-left:0;padding-right:0;font-size:14px}.DayPicker_weekHeader_li{display:inline-block;text-align:center;margin:0 1px}.DayPicker_transitionContainer{position:relative;overflow:hidden;border-radius:3px}.DayPicker_transitionContainer__horizontal{transition:height .2s ease-in-out}.DayPicker_transitionContainer__vertical{width:100%}.DayPicker_transitionContainer__verticalScrollable{padding-top:20px;height:100%;position:absolute;top:0;bottom:0;right:0;left:0;overflow-y:scroll}.DateInput{margin:0;padding:0;background:#fff;position:relative;display:inline-block;width:130px;vertical-align:middle}.DateInput__small{width:97px}.DateInput__block{width:100%}.DateInput__disabled{background:#f2f2f2;color:#dbdbdb}.DateInput_input{font-weight:200;font-size:19px;line-height:24px;color:#484848;background-color:#fff;width:100%;padding:11px 11px 9px;border:0;border-bottom:2px solid transparent;border-radius:0}.DateInput_input__small{font-size:15px;line-height:18px;letter-spacing:.2px;padding:7px 7px 5px}.DateInput_input__regular{font-weight:auto}.DateInput_input__readOnly{-webkit-user-select:none;user-select:none}.DateInput_input__focused{outline:0;background:#fff;border:0;border-bottom:2px solid #008489}.DateInput_input__disabled{background:#f2f2f2;font-style:italic}.DateInput_screenReaderMessage{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DateInput_fang{position:absolute;width:20px;height:10px;left:22px;z-index:2}.DateInput_fangShape{fill:#fff}.DateInput_fangStroke{stroke:#dbdbdb;fill:transparent}.DateRangePickerInput{background-color:#fff;display:inline-block}.DateRangePickerInput__disabled{background:#f2f2f2}.DateRangePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.DateRangePickerInput__rtl{direction:rtl}.DateRangePickerInput__block{display:block}.DateRangePickerInput__showClearDates{padding-right:30px}.DateRangePickerInput_arrow{display:inline-block;vertical-align:middle;color:#484848}.DateRangePickerInput_arrow_svg{vertical-align:middle;fill:#484848;height:24px;width:24px}.DateRangePickerInput_clearDates{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.DateRangePickerInput_clearDates__small{padding:6px}.DateRangePickerInput_clearDates_default:focus,.DateRangePickerInput_clearDates_default:hover{background:#dbdbdb;border-radius:50%}.DateRangePickerInput_clearDates__hide{visibility:hidden}.DateRangePickerInput_clearDates_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.DateRangePickerInput_clearDates_svg__small{height:9px}.DateRangePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.DateRangePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.DateRangePicker{position:relative;display:inline-block}.DateRangePicker__block{display:block}.DateRangePicker_picker{z-index:1;background-color:#fff;position:absolute}.DateRangePicker_picker__rtl{direction:rtl}.DateRangePicker_picker__directionLeft{left:0}.DateRangePicker_picker__directionRight{right:0}.DateRangePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.DateRangePicker_picker__fullScreenPortal{background-color:#fff}.DateRangePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.DateRangePicker_closeButton:focus,.DateRangePicker_closeButton:hover{color:#b0b3b4;text-decoration:none}.DateRangePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.components-datetime{padding:16px}.components-panel__body .components-datetime{padding:0}.components-datetime .components-datetime__calendar-help{padding:16px;min-width:260px}.components-datetime .components-datetime__calendar-help h4{margin:0}.components-datetime .components-datetime__buttons{display:flex;justify-content:space-between}.components-datetime .components-datetime__date-help-toggle{display:block;margin-left:auto}.components-datetime fieldset{border:0;padding:0;margin:0}.components-datetime input,.components-datetime select{box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575}@media (prefers-reduced-motion:reduce){.components-datetime input,.components-datetime select{transition-duration:0s;transition-delay:0s}}.components-datetime .components-button,.components-datetime input[type=number],.components-datetime select{height:30px;margin-top:0;margin-bottom:0}.components-datetime .components-button:focus{z-index:1}.components-datetime__date{min-height:236px;border-top:1px solid #ddd}.components-datetime__date .DayPickerNavigation_leftButton__horizontalDefault{ /*!rtl:begin:ignore*/left:13px /*!rtl:end:ignore*/}.components-datetime__date .CalendarMonth_caption{font-size:13px}.components-datetime__date .CalendarMonth_table{border-collapse:separate;border-spacing:2px}.components-datetime__date .CalendarDay{font-size:13px;border:none;border-radius:50%;text-align:center}.components-datetime__date .CalendarDay:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 3px #fff;outline:2px solid transparent}.components-datetime__date .CalendarDay__selected{background:var(--wp-admin-theme-color);border:2px solid transparent}.components-datetime__date .CalendarDay__selected:hover{background:var(--wp-admin-theme-color-darker-20)}.components-datetime__date .CalendarDay__selected:focus{box-shadow:inset 0 0 0 1px #fff}.components-datetime__date .DayPickerNavigation_button__horizontalDefault{padding:2px 8px;top:20px}.components-datetime__date .DayPickerNavigation_button__horizontalDefault:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-datetime__date .DayPicker_weekHeader{top:50px}.components-datetime__date .DayPicker_weekHeader .DayPicker_weekHeader_ul{margin:1px;padding-left:0;padding-right:0}.components-datetime__date.is-description-visible .DayPicker{visibility:hidden}.components-datetime__date .CalendarDay .components-datetime__date__day{height:100%;display:flex;justify-content:center;align-content:center;flex-direction:column;position:relative}.components-datetime__date .CalendarDay .components-datetime__date__day.has-events:before{content:" ";width:4px;height:4px;border-radius:2px;position:absolute;left:50%;margin-left:-2px;bottom:0;background-color:#fff}.components-datetime__date .CalendarDay:not(.CalendarDay__selected) .components-datetime__date__day.has-events:before{background:var(--wp-admin-theme-color)}.components-datetime__time{padding-bottom:16px}.components-datetime__time fieldset{position:relative;margin-bottom:.5em}.components-datetime__time fieldset+fieldset{margin-bottom:0}.components-datetime__time .components-datetime__time-field-am-pm fieldset{margin-top:0}.components-datetime__time .components-datetime__time-wrapper{display:flex}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-separator{display:inline-block;padding:0 3px 0 0}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field-time{direction:ltr}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select{margin-right:4px}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field select:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]{padding:2px;margin-right:4px;text-align:center;-moz-appearance:textfield}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]:focus{position:relative;z-index:1}.components-datetime__time .components-datetime__time-wrapper .components-datetime__time-field input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.components-datetime__time.is-12-hour .components-datetime__time-field-day input{margin:-4px 0 0!important;border-radius:2px 0 0 2px!important}.components-datetime__time.is-12-hour .components-datetime__time-field-year input{border-radius:0 2px 2px 0!important}.components-datetime__timezone{line-height:30px;margin-left:4px;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.components-datetime__time-legend{font-weight:600;margin-top:.5em}.components-datetime__time-legend.invisible{position:absolute;top:-999em;left:-999em}.components-datetime__time-field-day-input,.components-datetime__time-field-hours-input,.components-datetime__time-field-minutes-input{width:35px}.components-datetime__time-field-year-input{width:55px}.components-datetime__time-field-month-select{max-width:145px}.components-popover .components-datetime__date{padding-left:4px}.block-editor-dimension-control .components-base-control__field{display:flex;align-items:center}.block-editor-dimension-control .components-base-control__label{display:flex;align-items:center;margin-right:1em;margin-bottom:0}.block-editor-dimension-control .components-base-control__label .dashicon{margin-right:.5em}.block-editor-dimension-control.is-manual .components-base-control__label{width:10em}body.is-dragging-components-draggable{cursor:move;cursor:grabbing!important}.components-draggable__invisible-drag-image{position:fixed;left:-1000px;height:50px;width:50px}.components-draggable__clone{position:fixed;padding:0;background:transparent;pointer-events:none;z-index:1000000000}.components-drop-zone{position:absolute;top:0;right:0;bottom:0;left:0;z-index:40;visibility:hidden;opacity:0;border-radius:2px}.components-drop-zone.is-active{opacity:1;visibility:visible}.components-drop-zone__content{position:absolute;top:0;bottom:0;left:0;right:0;height:100%;width:100%;display:flex;background-color:var(--wp-admin-theme-color);align-items:center;justify-content:center;z-index:50;text-align:center;color:#fff}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{margin:0 auto;line-height:0;fill:currentColor;pointer-events:none}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-dropdown{display:inline-block}.components-dropdown__content .components-popover__content>div{padding:8px}.components-dropdown__content [role=menuitem]{white-space:nowrap}.components-dropdown-menu__menu{width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}.components-dropdown-menu__menu .components-dropdown-menu__menu-item,.components-dropdown-menu__menu .components-menu-item{width:100%;padding:6px;outline:none;cursor:pointer;white-space:nowrap}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator,.components-dropdown-menu__menu .components-menu-item.has-separator{margin-top:6px;position:relative;overflow:visible}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before,.components-dropdown-menu__menu .components-menu-item.has-separator:before{display:block;content:"";box-sizing:content-box;background-color:#ddd;position:absolute;top:-3px;left:0;right:0;height:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg,.components-dropdown-menu__menu .components-menu-item.is-active svg{color:#fff;background:#1e1e1e;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item>svg,.components-dropdown-menu__menu .components-menu-item>svg{border-radius:2px;width:24px;height:24px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-icon-only,.components-dropdown-menu__menu .components-menu-item.is-icon-only{width:auto}.components-dropdown-menu__menu .components-menu-item__button,.components-dropdown-menu__menu .components-menu-item__button.components-button{min-height:36px;height:auto;text-align:left;padding-left:8px;padding-right:8px}.components-dropdown-menu__menu .components-menu-group{padding:8px;margin:0 -8px}.components-dropdown-menu__menu .components-menu-group:first-child{margin-top:-8px}.components-dropdown-menu__menu .components-menu-group:last-child{margin-bottom:-8px}.components-dropdown-menu__menu .components-menu-group+.components-menu-group{margin-top:0;border-top:1px solid #ccc;padding:8px}.is-alternate .components-dropdown-menu__menu .components-menu-group+.components-menu-group{border-color:#1e1e1e}.components-font-size-picker__header__hint{margin-left:4px;color:#757575}.components-font-size-picker__header .components-button.is-small.has-icon:not(.has-text){min-width:24px;padding:0}.components-font-size-picker__controls{max-width:248px;align-items:center;margin-top:8px;margin-bottom:24px}.components-font-size-picker__controls .components-unit-control-wrapper .components-input-control__label{font-weight:300;padding-bottom:0!important;margin-bottom:8px!important}.components-font-size-picker__controls .components-custom-select-control__button{width:100%}.components-font-size-picker__controls .components-font-size-picker__number{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;display:inline-block;font-weight:500;height:30px;margin:8px 8px 0 0;width:54px}@media (prefers-reduced-motion:reduce){.components-font-size-picker__controls .components-font-size-picker__number{transition-duration:0s;transition-delay:0s}}@media (min-width:600px){.components-font-size-picker__controls .components-font-size-picker__number{font-size:13px;line-height:normal}}.components-font-size-picker__controls .components-font-size-picker__number:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-font-size-picker__controls .components-font-size-picker__number::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-font-size-picker__controls .components-font-size-picker__number::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-font-size-picker__controls .components-font-size-picker__number:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-font-size-picker__controls .components-font-size-picker__number[value=""]+.components-button{cursor:default;opacity:.3;pointer-events:none}.components-font-size-picker__controls .components-font-size-picker__number-container{display:flex;flex-direction:column}.components-font-size-picker__controls .components-color-palette__clear{height:30px}.components-font-size-picker__custom-input .components-range-control__slider+.dashicon{width:30px;height:30px}.components-font-size-picker{border:0;padding:0;margin:0}.components-form-toggle{position:relative;display:inline-block}.components-form-toggle .components-form-toggle__track{content:"";display:inline-block;box-sizing:border-box;vertical-align:top;background-color:#fff;border:1px solid #1e1e1e;width:36px;height:18px;border-radius:9px;transition:background .2s ease}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__track{transition-duration:0s;transition-delay:0s}}.components-form-toggle .components-form-toggle__thumb{display:block;position:absolute;box-sizing:border-box;top:3px;left:3px;width:12px;height:12px;border-radius:50%;transition:transform .1s ease;background-color:#1e1e1e;border:5px solid #1e1e1e}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__thumb{transition-duration:0s;transition-delay:0s}}.components-form-toggle.is-checked .components-form-toggle__track{background-color:var(--wp-admin-theme-color);border:9px solid transparent}.components-form-toggle .components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(18px)}.components-disabled .components-form-toggle,.components-form-toggle.is-disabled{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;margin:0;padding:0;z-index:1;border:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:before{content:""}.components-form-token-field__input-container{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;display:flex;flex-wrap:wrap;align-items:center;width:100%;margin:0 0 8px;padding:2px 4px;cursor:text}@media (prefers-reduced-motion:reduce){.components-form-token-field__input-container{transition-duration:0s;transition-delay:0s}}@media (min-width:600px){.components-form-token-field__input-container{font-size:13px;line-height:normal}}.components-form-token-field__input-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-form-token-field__input-container::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-form-token-field__input-container:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container.is-disabled{background:#ddd;border-color:#ddd}.components-form-token-field__input-container.is-active{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-form-token-field__input-container input[type=text].components-form-token-field__input{display:inline-block;flex:1;font-size:16px;width:100%;max-width:100%;margin-left:4px;padding:0;min-height:24px;min-width:50px;background:inherit;border:0;color:#1e1e1e;box-shadow:none}@media (min-width:600px){.components-form-token-field__input-container input[type=text].components-form-token-field__input{font-size:13px}}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{outline:none;box-shadow:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__label{display:inline-block;margin-bottom:4px}.components-form-token-field__help{font-size:12px;font-style:normal;color:#757575}.components-form-token-field__token{font-size:13px;display:flex;margin:2px 4px 2px 0;color:#1e1e1e;max-width:100%}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#cc1818}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#757575}.components-form-token-field__token.is-borderless{position:relative;padding:0 16px 0 0}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:transparent;color:var(--wp-admin-theme-color)}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:transparent;color:#757575;position:absolute;top:1px;right:0}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{color:#cc1818;border-radius:4px 0 0 4px;padding:0 4px 0 6px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#1e1e1e}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token{cursor:default}.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{display:inline-block;line-height:24px;height:auto;background:#ddd;min-width:unset;transition:all .2s cubic-bezier(.4,1,.4,1)}@media (prefers-reduced-motion:reduce){.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{transition-duration:0s;transition-delay:0s;animation-duration:1ms;animation-delay:0s}}.components-form-token-field__token-text{border-radius:2px 0 0 2px;padding:0 0 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.components-form-token-field__remove-token.components-button{cursor:pointer;border-radius:0 2px 2px 0;padding:0 2px;color:#1e1e1e;line-height:10px;overflow:initial}.components-form-token-field__remove-token.components-button:hover{color:#1e1e1e}.components-form-token-field__suggestions-list{flex:1 0 100%;min-width:100%;max-height:9em;overflow-y:auto;transition:all .15s ease-in-out;list-style:none;border-top:1px solid #757575;margin:4px -4px -4px;padding:0}@media (prefers-reduced-motion:reduce){.components-form-token-field__suggestions-list{transition-duration:0s;transition-delay:0s}}.components-form-token-field__suggestion{color:#757575;display:block;font-size:13px;padding:4px 8px;margin:0;cursor:pointer}.components-form-token-field__suggestion.is-selected{background:var(--wp-admin-theme-color);color:#fff}.components-form-token-field__suggestion-match{text-decoration:underline}@media (min-width:600px){.components-guide{width:600px}}.components-guide .components-modal__content{padding:0;margin-top:0;border-radius:2px}.components-guide .components-modal__content:before{content:none}.components-guide .components-modal__header{border-bottom:none;padding:0;position:sticky}.components-guide .components-modal__header .components-button{align-self:flex-start;margin:8px 8px 0 0;position:static}.components-guide .components-modal__header .components-button:hover svg{fill:#fff}.components-guide__container{display:flex;flex-direction:column;justify-content:space-between;margin-top:-60px;min-height:100%}.components-guide__page{display:flex;flex-direction:column;justify-content:center;position:relative}@media (min-width:600px){.components-guide__page{min-height:300px}}.components-guide__footer{align-content:center;display:flex;height:30px;justify-content:center;margin:0 0 24px;padding:0 32px;position:relative;width:100%}.components-guide__page-control{margin:0;text-align:center}.components-guide__page-control li{display:inline-block;margin:0}.components-guide__page-control .components-button{height:30px;min-width:20px;margin:-6px 0}.components-modal__frame.components-guide{border:none;min-width:312px;height:80vh;max-height:575px}@media (max-width:600px){.components-modal__frame.components-guide{margin:auto;max-width:calc(100vw - 32px)}}.components-button.components-guide__back-button,.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{height:30px;position:absolute}.components-button.components-guide__back-button,.components-button.components-guide__forward-button{font-size:13px;padding:4px 2px}.components-button.components-guide__back-button.has-text svg,.components-button.components-guide__forward-button.has-text svg{margin:0}.components-button.components-guide__back-button:hover,.components-button.components-guide__forward-button:hover{text-decoration:underline}.components-button.components-guide__back-button{left:32px}.components-button.components-guide__forward-button{right:32px;color:#1386bf;font-weight:700}.components-button.components-guide__finish-button{right:32px}.components-button.components-guide__inline-finish-button{display:none}[role=region]{position:relative}.is-focusing-regions [role=region]:focus:after{content:"";position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;outline:4px solid transparent;box-shadow:inset 0 0 0 4px var(--wp-admin-theme-color)}@supports (outline-offset:1px){.is-focusing-regions [role=region]:focus:after{content:none}.is-focusing-regions [role=region]:focus{outline-style:solid;outline-color:var(--wp-admin-theme-color);outline-width:4px;outline-offset:-4px}}.components-menu-group+.components-menu-group{margin-top:8px;padding-top:8px;border-top:1px solid #1e1e1e}.components-menu-group+.components-menu-group.has-hidden-separator{border-top:none;margin-top:0;padding-top:0}.components-menu-group__label{padding:0 8px;margin-top:4px;margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500;white-space:nowrap}.components-menu-item__button,.components-menu-item__button.components-button{width:100%}.components-menu-item__button.components-button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button.components-button[role=menuitemradio] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemradio] .components-menu-item__item:only-child{padding-right:48px}.components-menu-item__button.components-button .components-menu-items__item-icon,.components-menu-item__button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__button.components-button .components-menu-items__item-icon.has-icon-right,.components-menu-item__button .components-menu-items__item-icon.has-icon-right{margin-right:-2px;margin-left:24px}.components-menu-item__button.components-button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right,.components-menu-item__button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right{margin-left:8px}.components-menu-item__button .block-editor-block-icon,.components-menu-item__button.components-button .block-editor-block-icon{margin-left:-2px;margin-right:8px}.components-menu-item__button.components-button.is-primary,.components-menu-item__button.is-primary{justify-content:center}.components-menu-item__button.components-button.is-primary .components-menu-item__item,.components-menu-item__button.is-primary .components-menu-item__item{margin-right:0}.components-menu-item__info-wrapper{display:flex;flex-direction:column;margin-right:auto}.components-menu-item__info{margin-top:4px;font-size:12px;color:#757575;white-space:normal}.components-menu-item__item{white-space:nowrap;min-width:160px;margin-right:auto;display:inline-flex;align-items:center}.components-menu-item__shortcut{align-self:center;margin-right:0;margin-left:auto;padding-left:24px;color:currentColor;display:none}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-menu-items-choice.components-button svg,.components-menu-items-choice svg{margin-right:12px}.components-menu-items-choice.components-button.has-icon,.components-menu-items-choice.has-icon{padding-left:12px}.components-modal__screen-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.35);z-index:100000;display:flex;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-modal__screen-overlay{animation-duration:1ms;animation-delay:0s}}.components-modal__frame{margin:0;width:100%;background:#fff;box-shadow:0 10px 10px rgba(0,0,0,.25);border-radius:2px;overflow:hidden;display:flex}@media (min-width:600px){.components-modal__frame{margin:auto;width:auto;min-width:360px;max-width:calc(100% - 32px);max-height:calc(100% - 120px);animation:components-modal__appear-animation .1s ease-out;animation-fill-mode:forwards}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.components-modal__frame{animation-duration:1ms;animation-delay:0s}}@media (min-width:600px){.components-modal__frame.is-full-screen{width:90vw;min-height:90vh}}@media (min-width:960px){.components-modal__frame{max-height:70%}}@keyframes components-modal__appear-animation{0%{transform:translateY(32px)}to{transform:translateY(0)}}.components-modal__header{box-sizing:border-box;border-bottom:1px solid #ddd;padding:0 32px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;height:60px;width:100%;z-index:10;position:absolute;top:0;left:0}.components-modal__header .components-modal__header-heading{font-size:1rem;font-weight:600}.components-modal__header h1{line-height:1;margin:0}.components-modal__header .components-button{position:relative;left:8px}.components-modal__header-heading-container{align-items:center;flex-grow:1;display:flex;flex-direction:row;justify-content:left}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-width:36px;max-height:36px;padding:8px}.components-modal__content{flex:1;margin-top:60px;padding:0 32px 24px;overflow:auto}.components-modal__content:before{content:"";display:block;margin-bottom:24px}.components-notice{display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#fff;border-left:4px solid var(--wp-admin-theme-color);margin:5px 15px 2px;padding:8px 12px;align-items:center}.components-notice.is-dismissible{padding-right:36px;position:relative}.components-notice.is-success{border-left-color:#4ab866;background-color:#eff9f1}.components-notice.is-warning{border-left-color:#f0b849;background-color:#fef8ee}.components-notice.is-error{border-left-color:#cc1818;background-color:#f4a2a2}.components-notice__content{flex-grow:1;margin:4px 25px 4px 0}.components-notice__actions{display:flex;flex-wrap:wrap}.components-notice__action.components-button{margin-right:8px}.components-notice__action.components-button,.components-notice__action.components-button.is-link{margin-left:12px}.components-notice__action.components-button.is-secondary{vertical-align:initial}.components-notice__dismiss{color:#757575;align-self:flex-start;flex-shrink:0}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#1e1e1e;background-color:transparent}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.components-notice-list{max-width:100vw;box-sizing:border-box}.components-notice-list .components-notice__content{margin-top:12px;margin-bottom:12px;line-height:2}.components-notice-list .components-notice__action.components-button{display:block;margin-left:0;margin-top:8px}.components-panel{background:#fff;border:1px solid #e0e0e0}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-top:1px solid #e0e0e0;border-bottom:1px solid #e0e0e0}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__header{display:flex;justify-content:space-between;align-items:center;padding:0 16px;height:48px;border-bottom:1px solid #ddd}.components-panel__header h2{margin:0;font-size:inherit;color:inherit}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;padding:0;font-size:inherit;margin-top:0;margin-bottom:0;transition:background .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body>.components-panel__body-title{transition-duration:0s;transition-delay:0s}}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 5px}.components-panel__body>.components-panel__body-title:hover{background:#f0f0f0;border:none}.components-panel__body-toggle.components-button{position:relative;padding:16px 48px 16px 16px;outline:none;width:100%;font-weight:500;text-align:left;color:#1e1e1e;border:none;box-shadow:none;transition:background .1s ease-in-out;height:auto}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button{transition-duration:0s;transition-delay:0s}}.components-panel__body-toggle.components-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);border-radius:0}.components-panel__body-toggle.components-button .components-panel__arrow{position:absolute;right:16px;top:50%;transform:translateY(-50%);color:#1e1e1e;fill:currentColor;transition:color .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button .components-panel__arrow{transition-duration:0s;transition-delay:0s}}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{transform:scaleX(-1);-ms-filter:fliph;filter:FlipH;margin-top:-10px}.components-panel__icon{color:#757575;margin:-2px 0 -2px 6px}.components-panel__body-toggle-icon{margin-right:-5px}.components-panel__color-title{float:left;height:19px}.components-panel__row{display:flex;justify-content:space-between;align-items:center;margin-top:8px;min-height:36px}.components-panel__row select{min-width:0}.components-panel__row label{margin-right:12px;flex-shrink:0;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder.components-placeholder{box-sizing:border-box;position:relative;padding:1em;min-height:200px;width:100%;text-align:left;margin:0;color:#1e1e1e;-moz-font-smoothing:subpixel-antialiased;-webkit-font-smoothing:subpixel-antialiased;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;outline:1px solid transparent}@supports (position:sticky){.components-placeholder.components-placeholder{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}}.components-placeholder.components-placeholder .components-base-control__label{font-size:13px}.components-placeholder__error,.components-placeholder__fieldset,.components-placeholder__instructions,.components-placeholder__label{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__label{display:flex;font-weight:600;margin-bottom:16px;align-items:center}.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{margin-right:1ch;fill:currentColor}@media (forced-colors:active){.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:CanvasText}}.components-placeholder__label:empty{display:none}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;width:100%;flex-wrap:wrap}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__fieldset.is-column-layout,.components-placeholder__fieldset.is-column-layout form{flex-direction:column}.components-placeholder__input[type=url]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal;margin:0 8px 0 0;flex:1 1 auto}@media (prefers-reduced-motion:reduce){.components-placeholder__input[type=url]{transition-duration:0s;transition-delay:0s}}@media (min-width:600px){.components-placeholder__input[type=url]{font-size:13px;line-height:normal}}.components-placeholder__input[type=url]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-placeholder__input[type=url]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-placeholder__instructions{margin-bottom:1em}.components-placeholder__error{margin-top:1em;width:100%}.components-placeholder__preview img{margin:3%;width:50%}.components-placeholder__fieldset .components-button{margin-right:12px;margin-bottom:12px}.components-placeholder__fieldset .components-button:last-child{margin-bottom:0;margin-right:0}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link{margin-left:10px;margin-right:10px}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link:last-child{margin-right:0}.components-placeholder.is-large .components-placeholder__label{font-size:18pt;font-weight:400}.components-placeholder.is-medium .components-placeholder__instructions,.components-placeholder.is-small .components-placeholder__instructions{display:none}.components-placeholder.is-medium .components-placeholder__fieldset,.components-placeholder.is-medium .components-placeholder__fieldset form,.components-placeholder.is-small .components-placeholder__fieldset,.components-placeholder.is-small .components-placeholder__fieldset form{flex-direction:column}.components-placeholder.is-medium .components-placeholder__fieldset .components-button,.components-placeholder.is-small .components-placeholder__fieldset .components-button{margin-right:auto}.components-placeholder.is-small .components-button{padding:0 8px 2px} diff --git a/wp-includes/css/dist/edit-site/style-rtl.css b/wp-includes/css/dist/edit-site/style-rtl.css index 3571b9dd58..b5c8a2cd0b 100644 --- a/wp-includes/css/dist/edit-site/style-rtl.css +++ b/wp-includes/css/dist/edit-site/style-rtl.css @@ -535,6 +535,30 @@ body.is-fullscreen-mode .interface-interface-skeleton { padding: 0; } +.edit-site-typography-panel__preview { + display: flex; + align-items: center; + justify-content: center; + min-height: 100px; + margin-bottom: 16px; + background: #f0f0f0; + border-radius: 2px; +} + +.edit-site-global-styles-screen-typography { + margin: 16px; +} + +.edit-site-global-styles-screen-typography__indicator { + height: 24px; + width: 24px; + font-size: 14px; + display: flex !important; + align-items: center; + justify-content: center; + border-radius: 2px; +} + .edit-site-global-styles-screen-colors { margin: 16px; } @@ -561,6 +585,15 @@ body.is-fullscreen-mode .interface-interface-skeleton { font-weight: 500; } +.edit-site-screen-color-palette-toggle.edit-site-screen-color-palette-toggle { + margin-left: 16px; + margin-right: 16px; + width: unset; +} +.edit-site-screen-color-palette-toggle.edit-site-screen-color-palette-toggle .components-toggle-group-control { + min-height: 32px; +} + .edit-site-header { align-items: center; background-color: #fff; @@ -1099,12 +1132,14 @@ body.is-fullscreen-mode .edit-site-list-header { .edit-site-list-table { width: 100%; - border: 1px solid #e0e0e0; + border: 1px solid #ddd; border-radius: 2px; margin: 0; overflow: hidden; + border-spacing: 0; + max-width: 960px; } -.edit-site-list-table li { +.edit-site-list-table tr { display: flex; align-items: center; padding: 16px; @@ -1112,36 +1147,119 @@ body.is-fullscreen-mode .edit-site-list-header { border-top: 1px solid #f0f0f0; margin: 0; } +.edit-site-list-table tr:first-child { + border-top: 0; +} @media (min-width: 782px) { - .edit-site-list-table li { + .edit-site-list-table tr { padding: 24px 32px; } } -.edit-site-list-table li .edit-site-list-table-column:nth-child(1) { - width: calc(60% - 36px); +.edit-site-list-table tr .edit-site-list-table-column:nth-child(1) { + width: calc(60% - 18px); + padding-left: 24px; } -.edit-site-list-table li .edit-site-list-table-column:nth-child(1) a { - display: block; +.edit-site-list-table tr .edit-site-list-table-column:nth-child(1) a { + display: inline-block; text-decoration: none; font-weight: 500; margin-bottom: 4px; } -.edit-site-list-table li .edit-site-list-table-column:nth-child(2) { - width: calc(40% - 36px); +.edit-site-list-table tr .edit-site-list-table-column:nth-child(2) { + width: calc(40% - 18px); } -.edit-site-list-table li .edit-site-list-table-column:nth-child(3) { +.edit-site-list-table tr .edit-site-list-table-column:nth-child(3) { min-width: 36px; + flex-shrink: 0; } -.edit-site-list-table li.edit-site-list-table-head { - border-bottom: 1px solid #e0e0e0; +.edit-site-list-table tr.edit-site-list-table-head { font-size: 16px; - font-weight: 500; + font-weight: 600; text-align: right; - color: #000; + color: #1e1e1e; border-top: none; + border-bottom: 1px solid #ddd; } -.edit-site-list-table li.edit-site-list-table-head + li { - border-top: 0; +.edit-site-list-table tr.edit-site-list-table-head th { + font-weight: inherit; +} + +@media (min-width: 782px) { + .edit-site-list.is-navigation-open .components-snackbar-list { + margin-right: 300px; + } +} + +@media (min-width: 782px) { + .edit-site-list__rename-modal .components-base-control { + width: 320px; + } +} +.edit-site-list__rename-modal .components-modal__header { + border-bottom: none; +} +.edit-site-list__rename-modal .components-modal__content::before { + margin-bottom: 4px; +} + +.edit-site-list__rename-modal-actions { + margin-top: 12px; +} + +.edit-site-template__actions button:not(:last-child) { + margin-left: 8px; +} + +.edit-site-list-added-by__icon { + display: flex; + flex-shrink: 0; + position: relative; + align-items: center; + justify-content: center; + width: 32px; + height: 32px; + background: #2f2f2f; + border-radius: 100%; +} +.edit-site-list-added-by__icon svg { + fill: #fff; +} +.edit-site-list-added-by__icon.is-customized::after { + position: absolute; + content: ""; + background: var(--wp-admin-theme-color); + height: 8px; + width: 8px; + outline: 2px solid #fff; + border-radius: 100%; + top: -1px; + left: -1px; +} + +.edit-site-list-added-by__avatar { + flex-shrink: 0; + overflow: hidden; + border-radius: 100%; + background: #2f2f2f; + width: 32px; + height: 32px; +} +.edit-site-list-added-by__avatar img { + width: 32px; + height: 32px; + -o-object-fit: cover; + object-fit: cover; + opacity: 0; + transition: opacity 0.1s linear; +} +@media (prefers-reduced-motion: reduce) { + .edit-site-list-added-by__avatar img { + transition-duration: 0s; + transition-delay: 0s; + } +} +.edit-site-list-added-by__avatar.is-loaded img { + opacity: 1; } .edit-site-new-template-dropdown .components-dropdown-menu__toggle { @@ -1212,7 +1330,8 @@ body.is-fullscreen-mode .edit-site-list-header { padding: 0 16px; } -.edit-site-global-styles-color-palette-panel { +.edit-site-global-styles-color-palette-panel, +.edit-site-global-styles-gradient-palette-panel { padding: 16px; } diff --git a/wp-includes/css/dist/edit-site/style-rtl.min.css b/wp-includes/css/dist/edit-site/style-rtl.min.css index 9d1e44034c..97be787361 100644 --- a/wp-includes/css/dist/edit-site/style-rtl.min.css +++ b/wp-includes/css/dist/edit-site/style-rtl.min.css @@ -1 +1 @@ -:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-left:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-left:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-right:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-right:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}}@media (min-width:782px){.components-panel__header+.interface-complementary-area-header{margin-top:0}}.interface-complementary-area{background:#fff;color:#1e1e1e}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:0}}.interface-complementary-area p{margin-top:0}.interface-complementary-area h2{font-size:13px;color:#1e1e1e;margin-bottom:1.5em}.interface-complementary-area h3{font-size:11px;text-transform:uppercase;font-weight:500;color:#1e1e1e;margin-bottom:1.5em}.interface-complementary-area hr{border-top:none;border-bottom:1px solid #f0f0f0;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{top:auto;left:10px;bottom:10px;right:auto}@media (min-width:782px){body.js.is-fullscreen-mode{margin-top:-32px;height:calc(100% + 32px)}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-right:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{display:flex;flex-direction:row;height:auto;max-height:100%;position:fixed;top:46px;left:0;bottom:0}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex-direction:column;flex:0 1 100%;overflow:hidden}.interface-interface-skeleton{right:0}@media (min-width:783px){.interface-interface-skeleton{right:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{right:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{right:160px}}.folded .interface-interface-skeleton{right:0}@media (min-width:783px){.folded .interface-interface-skeleton{right:36px}}body.is-fullscreen-mode .interface-interface-skeleton{right:0!important}.interface-interface-skeleton__body{flex-grow:1;display:flex;overflow:auto;overscroll-behavior-y:none}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{flex-grow:1;display:flex;flex-direction:column;overflow:auto;z-index:20}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{display:block;flex-shrink:0;position:absolute;z-index:100000;top:0;left:0;bottom:0;right:0;background:#fff;color:#1e1e1e}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;z-index:90;width:auto}}.interface-interface-skeleton__sidebar{overflow:auto}@media (min-width:782px){.interface-interface-skeleton__sidebar{border-right:1px solid #e0e0e0}}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar{border-left:1px solid #e0e0e0}}.interface-interface-skeleton__header{flex-shrink:0;height:auto;border-bottom:1px solid #e0e0e0;z-index:30;color:#1e1e1e}.interface-interface-skeleton__footer{height:auto;flex-shrink:0;border-top:1px solid #e0e0e0;color:#1e1e1e;position:absolute;bottom:0;right:0;width:100%;background-color:#fff;z-index:90;display:none}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{z-index:30;display:flex;background:#fff;height:24px;align-items:center;font-size:13px;padding:0 18px}.interface-interface-skeleton__actions{z-index:100000;position:fixed!important;top:-9999em;bottom:auto;right:auto;left:0;width:280px;color:#1e1e1e}.interface-interface-skeleton__actions:focus{top:auto;bottom:0}.interface-more-menu-dropdown{margin-right:-4px}.interface-more-menu-dropdown .components-button{width:auto;padding:0 2px}@media (min-width:600px){.interface-more-menu-dropdown{margin-right:0}.interface-more-menu-dropdown .components-button{padding:0 4px}}.interface-more-menu-dropdown__content .components-popover__content{min-width:280px}@media (min-width:480px){.interface-more-menu-dropdown__content .components-popover__content{width:auto;max-width:480px}}.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.interface-more-menu-dropdown__content{z-index:99998}.interface-pinned-items{display:flex}.interface-pinned-items .components-button:not(:first-child){display:none}@media (min-width:600px){.interface-pinned-items .components-button:not(:first-child){display:flex}}.interface-pinned-items .components-button{margin-right:4px}.interface-pinned-items .components-button svg{max-width:24px;max-height:24px}.edit-site-block-editor__editor-styles-wrapper .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-site-block-editor__editor-styles-wrapper .components-button.has-icon,.edit-site-block-editor__editor-styles-wrapper .components-button.is-tertiary{padding:6px}.edit-site-visual-editor{background-color:#2f2f2f;align-items:center}.edit-site-visual-editor.is-focus-mode{padding:48px}.edit-site-visual-editor.is-focus-mode .edit-site-visual-editor__editor-canvas{border-radius:2px}.edit-site-visual-editor__editor-canvas{border-radius:2px 2px 0 0}.edit-site-visual-editor__back-button{position:absolute;top:8px;right:8px;color:#fff}.edit-site-visual-editor__back-button:active:not([aria-disabled=true]),.edit-site-visual-editor__back-button:focus:not([aria-disabled=true]),.edit-site-visual-editor__back-button:hover{color:#f0f0f0}.components-resizable-box__container{margin:0 auto}.resizable-editor__drag-handle{position:absolute;top:0;bottom:0;padding:0;margin:auto 0;width:8px;height:100px;-webkit-appearance:none;appearance:none;cursor:grab;outline:none;background:#757575;border-radius:4px;border:0}.resizable-editor__drag-handle.is-left{right:-28px}.resizable-editor__drag-handle.is-right{left:-28px}.resizable-editor__drag-handle:hover{background:#949494}.resizable-editor__drag-handle:active{cursor:grabbing;background:#949494}.resizable-editor__drag-handle:focus{box-shadow:0 0 0 1px #2f2f2f,0 0 0 calc(var(--wp-admin-border-width-focus) + 1px) var(--wp-admin-theme-color)}.edit-site-global-styles-preview{display:flex;align-items:center;justify-content:center;min-height:152px;line-height:1}.edit-site-global-styles-preview .component-color-indicator{border-radius:50%;border:0;height:36px;width:36px;margin-right:0;padding:0}.edit-site-global-styles-screen-colors{margin:16px}.edit-site-global-styles-screen-colors .component-color-indicator{margin-right:0;display:block;border-radius:50%;border:0;height:24px;width:24px;padding:0;background-image:repeating-linear-gradient(-45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(-45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:100% 0,25px 25px;background-size:10px 10px}.edit-site-global-styles-header__description{padding:0 16px}.edit-site-global-styles-subtitle{margin-bottom:0!important;text-transform:uppercase;font-weight:500}.edit-site-header{align-items:center;background-color:#fff;display:flex;height:60px;box-sizing:border-box;width:100%;justify-content:space-between}body.is-fullscreen-mode .edit-site-header{padding-right:60px;transition:padding-right 20ms linear;transition-delay:80ms}@media (prefers-reduced-motion:reduce){body.is-fullscreen-mode .edit-site-header{transition-duration:0s;transition-delay:0s}}.edit-site-header .edit-site-header_end,.edit-site-header .edit-site-header_start{display:flex}.edit-site-header .edit-site-header_center{display:flex;align-items:center;height:100%;min-width:0}.edit-site-header .edit-site-header_end{justify-content:flex-end}body.is-navigation-sidebar-open .edit-site-header{padding-right:0;transition:padding-right 20ms linear;transition-delay:0ms}@media (prefers-reduced-motion:reduce){body.is-navigation-sidebar-open .edit-site-header{transition-duration:0s;transition-delay:0s}}@media (max-width:959px){body.is-navigation-sidebar-open .edit-site-header .edit-site-header-toolbar__inserter-toggle~.components-button,body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .components-button:not(.is-primary){display:none}body.is-navigation-sidebar-open .edit-site-header .edit-site-save-button__button{margin-left:0}}.edit-site-header__toolbar{display:flex;align-items:center;padding-right:8px}@media (min-width:600px){.edit-site-header__toolbar{padding-right:24px}}@media (min-width:1280px){.edit-site-header__toolbar{padding-left:8px}}.edit-site-header__toolbar .edit-site-header-toolbar__inserter-toggle{margin-left:8px;min-width:32px;width:32px;height:32px;padding:0}.edit-site-header__toolbar .edit-site-header-toolbar__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.edit-site-header__toolbar .edit-site-header-toolbar__inserter-toggle svg{transition-duration:0s;transition-delay:0s}}.edit-site-header__toolbar .edit-site-header-toolbar__inserter-toggle.is-pressed svg{transform:rotate(-45deg)}.edit-site-header__toolbar-switchers{align-items:center;display:flex}.edit-site-header__toolbar-switchers-separator{margin:0 -6px}.edit-site-header__actions{display:inline-flex;align-items:center;flex-wrap:wrap;padding-left:4px}.edit-site-header__actions .interface-pinned-items{display:none}@media (min-width:782px){.edit-site-header__actions .interface-pinned-items{display:inline-flex}}.edit-site-header__actions .components-button.components-button,.edit-site-header__actions .editor-post-saved-state{margin-left:4px}@media (min-width:600px){.edit-site-header__actions .components-button.components-button,.edit-site-header__actions .editor-post-saved-state{margin-left:12px}}.edit-site-header__actions .components-button.is-tertiary,.edit-site-header__actions .editor-post-saved-state{padding:0 6px}.edit-site-header__actions .edit-site-more-menu .components-button,.edit-site-header__actions .interface-pinned-items .components-button{margin-left:0}@media (min-width:600px){.edit-site-header__actions{padding-left:16px}}.edit-site-header__actions-more-menu{margin-right:-4px}.edit-site-header__actions-more-menu .components-icon-button{padding:8px 2px;width:auto}@media (min-width:600px){.edit-site-header__actions-more-menu{margin-right:4px}.edit-site-header__actions-more-menu .components-icon-button{padding:8px 4px}}.edit-site-document-actions{display:flex;flex-direction:column;justify-content:center;height:100%;min-width:0}.edit-site-document-actions .edit-site-document-actions__title-wrapper{display:flex;flex-direction:row;justify-content:center;align-items:center;min-width:0}.edit-site-document-actions .edit-site-document-actions__title-wrapper .components-dropdown{display:inline-flex;margin-right:4px}.edit-site-document-actions .edit-site-document-actions__title-wrapper .components-dropdown .components-button{min-width:0;padding:0}.edit-site-document-actions .edit-site-document-actions__title-wrapper>h1{margin:0;min-width:0}.edit-site-document-actions .edit-site-document-actions__title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px}@media (min-width:782px){.edit-site-document-actions .edit-site-document-actions__title{max-width:75px}}@media (min-width:1080px){.edit-site-document-actions .edit-site-document-actions__title{max-width:180px}}.edit-site-document-actions .edit-site-document-actions__secondary-item{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:0;opacity:0;padding:0;transition:all .2s ease;background:#e0e0e0;border-radius:2px}@media (prefers-reduced-motion:reduce){.edit-site-document-actions .edit-site-document-actions__secondary-item{transition-duration:0s;transition-delay:0s}}.edit-site-document-actions.has-secondary-label .edit-site-document-actions__secondary-item{opacity:1;padding:0 4px;max-width:180px;margin-right:6px}.edit-site-document-actions__info-dropdown>.components-popover__content>div{padding:0;min-width:240px}.edit-site-more-menu{margin-right:-4px}.edit-site-more-menu .components-button{width:auto;padding:0 2px}@media (min-width:600px){.edit-site-more-menu{margin-right:4px}.edit-site-more-menu .components-button{padding:0 4px}}.edit-site-more-menu__content .components-popover__content{min-width:260px}.edit-site-more-menu__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.edit-site-more-menu__content{z-index:99998}.edit-site-navigation-toggle{align-items:center;background:#1e1e1e;border-radius:0;display:flex;position:absolute;z-index:31;height:60px;width:60px}.edit-site-navigation-toggle__button{align-items:center;background:#1e1e1e;border-radius:0;color:#fff;height:61px;width:60px;z-index:1;margin-bottom:-1px}.edit-site-navigation-toggle__button.has-icon{min-width:60px}.edit-site-navigation-toggle__button.has-icon:active,.edit-site-navigation-toggle__button.has-icon:hover{color:#fff}.edit-site-navigation-toggle__button.has-icon:focus{box-shadow:none}.edit-site-navigation-toggle__button.has-icon:before{transition:box-shadow .1s ease;content:"";display:block;position:absolute;top:9px;left:9px;bottom:9px;right:9px;border-radius:4px;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #1e1e1e}@media (prefers-reduced-motion:reduce){.edit-site-navigation-toggle__button.has-icon:before{transition-duration:0s;transition-delay:0s}}.edit-site-navigation-toggle__button.has-icon:hover:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #757575}.edit-site-navigation-toggle__button.has-icon:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) hsla(0,0%,100%,.1),inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-navigation-toggle__site-icon{width:36px;border-radius:2px}.edit-site-navigation-panel{height:100%;position:relative;width:0;overflow:hidden;background:#1e1e1e;color:#fff;transition:width .1s linear}@media (prefers-reduced-motion:reduce){.edit-site-navigation-panel{transition-duration:0s;transition-delay:0s}}@media (min-width:782px){.interface-interface-skeleton.has-footer .edit-site-navigation-panel{height:calc(100% - 25px)}}.edit-site-navigation-panel__inner{position:relative;width:300px;height:100%;overflow:hidden;visibility:hidden;transition:visibility .1s linear}@media (prefers-reduced-motion:reduce){.edit-site-navigation-panel__inner{transition-duration:0s;transition-delay:0s}}.edit-site-navigation-panel.is-open{width:300px}.edit-site-navigation-panel.is-open .edit-site-navigation-panel__inner{visibility:visible}.edit-site-navigation-panel__site-title-container{height:60px;padding-right:60px;margin:0 8px 0 16px;display:flex;align-items:center}.edit-site-navigation-panel__site-title{font-style:normal;font-weight:600;font-size:14px;line-height:20px;color:#ddd;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.edit-site-navigation-panel__scroll-container{overflow-x:hidden;overflow-y:auto;height:calc(100% - 60px)}.edit-site-navigation-panel__back-to-dashboard.components-button.is-tertiary{height:36px;margin-top:24px;padding:8px 8px 8px 16px}.edit-site-navigation-panel__back-to-dashboard.components-button.is-tertiary:focus:not(:disabled){border-bottom-color:transparent}.edit-site-navigation-panel__preview{display:none;border:1px solid #ccc;width:300px;padding:16px;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.05);border-radius:2px;position:absolute;top:73px;right:312px;color:#1e1e1e;z-index:32}@media (min-width:782px){.edit-site-navigation-panel__preview{display:block}}.edit-site-navigation-panel__template-item{display:block}.edit-site-navigation-panel__template-item .components-button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;height:auto;min-height:36px;text-align:right;padding-right:16px;padding-left:16px;color:inherit}.edit-site-navigation-panel__template-item-title{font-size:14px;line-height:20px}.edit-site-navigation-panel__template-item-title em{margin-left:1ch}.edit-site-navigation-panel__template-part-item .components-navigation__item-title,.edit-site-navigation-panel__template-parts .components-navigation__menu-title-heading{text-transform:capitalize}.components-navigation__item+.edit-site-navigation-panel__template-item{margin-top:16px}.edit-site-navigation-panel__template-item+.edit-site-navigation-panel__template-item{margin-top:8px}.edit-site-navigation-panel__info-wrapper{padding:4px 0}.edit-site-navigation-panel__template-item-description{padding-top:8px;font-size:12px;line-height:16px}.edit-site-navigation-panel__new-template-dropdown{margin:0 12px 0 0}.edit-site-navigation-panel__new-template-dropdown button{margin:0}@media (min-width:600px){.edit-site-navigation-panel__new-template-popover{min-width:300px}}.edit-site-list-header{position:relative;align-items:center;background-color:#fff;display:flex;height:60px;box-sizing:border-box;width:100%;justify-content:flex-end;padding-left:16px}body.is-fullscreen-mode .edit-site-list-header{padding-right:60px;transition:padding-right 20ms linear;transition-delay:80ms}@media (prefers-reduced-motion:reduce){body.is-fullscreen-mode .edit-site-list-header{transition-duration:0s;transition-delay:0s}}.edit-site-list-header .edit-site-list-header__title{position:absolute;right:0;width:100%;text-align:center;font-size:20px;padding:0;margin:0}.edit-site-list-header__right{position:relative}.edit-site .edit-site-list .interface-interface-skeleton__editor{min-width:100%}@media (min-width:782px){.edit-site .edit-site-list .interface-interface-skeleton__editor{min-width:0}}.edit-site .edit-site-list .interface-interface-skeleton__content{background:#fff}.edit-site-list-main{display:flex;align-items:center;justify-content:center;padding:16px}@media (min-width:782px){.edit-site-list-main{padding:72px}}.edit-site-list-table{width:100%;border:1px solid #e0e0e0;border-radius:2px;margin:0;overflow:hidden}.edit-site-list-table li{display:flex;align-items:center;padding:16px;box-sizing:border-box;border-top:1px solid #f0f0f0;margin:0}@media (min-width:782px){.edit-site-list-table li{padding:24px 32px}}.edit-site-list-table li .edit-site-list-table-column:first-child{width:calc(60% - 36px)}.edit-site-list-table li .edit-site-list-table-column:first-child a{display:block;text-decoration:none;font-weight:500;margin-bottom:4px}.edit-site-list-table li .edit-site-list-table-column:nth-child(2){width:calc(40% - 36px)}.edit-site-list-table li .edit-site-list-table-column:nth-child(3){min-width:36px}.edit-site-list-table li.edit-site-list-table-head{border-bottom:1px solid #e0e0e0;font-size:16px;font-weight:500;text-align:right;color:#000;border-top:none}.edit-site-list-table li.edit-site-list-table-head+li{border-top:0}.edit-site-new-template-dropdown .components-dropdown-menu__toggle{padding:6px 12px}@media (min-width:600px){.edit-site-new-template-dropdown .edit-site-new-template-dropdown__popover{min-width:300px}}.edit-site-sidebar{width:280px}.edit-site-sidebar>.components-panel{border-right:0;border-left:0;margin-bottom:-1px;margin-top:-1px}.edit-site-sidebar>.components-panel>.components-panel__header{background:#f0f0f0}.edit-site-sidebar .block-editor-block-inspector__card{margin:0}.edit-site-global-styles-sidebar .interface-complementary-area-header .components-button.has-icon{margin-right:0}.edit-site-global-styles-sidebar__reset-button.components-button{margin-right:auto}.edit-site-global-styles-sidebar__border-controls-row{display:flex;justify-content:space-between;margin-bottom:12px}.edit-site-global-styles-sidebar__border-controls-row>*{width:calc(50% - 8px)}.edit-site-global-styles-sidebar__border-controls-row .components-border-style-control__buttons{margin-bottom:0}.edit-site-global-styles-sidebar .components-navigation__menu-title-heading{font-size:15.6px;font-weight:500}.edit-site-global-styles-sidebar .components-navigation__item>button span{font-weight:500}.edit-site-global-styles-sidebar .block-editor-panel-color-gradient-settings,.edit-site-typography-panel{border:0}.edit-site-global-styles-sidebar__blocks-group{padding-top:24px;border-top:1px solid #e0e0e0}.edit-site-global-styles-sidebar__blocks-group-help{padding:0 16px}.edit-site-global-styles-color-palette-panel{padding:16px}.edit-site-global-styles-sidebar__beta{display:inline-flex;margin-right:8px;padding:0 8px;height:24px;border-radius:2px;background-color:#000;color:#fff;align-items:center;font-size:12px;line-height:1}.components-panel__header.edit-site-sidebar__panel-tabs{justify-content:flex-start;padding-right:0;padding-left:16px;border-top:0;margin-top:0}.components-panel__header.edit-site-sidebar__panel-tabs ul{display:flex}.components-panel__header.edit-site-sidebar__panel-tabs li{margin:0}.components-panel__header.edit-site-sidebar__panel-tabs .components-button.has-icon{display:none;margin:0 auto 0 0;padding:0;min-width:24px;height:24px}@media (min-width:782px){.components-panel__header.edit-site-sidebar__panel-tabs .components-button.has-icon{display:flex}}.components-button.edit-site-sidebar__panel-tab{border-radius:0;height:48px;background:transparent;border:none;box-shadow:none;cursor:pointer;display:inline-block;padding:3px 15px;margin-right:0;font-weight:500}.components-button.edit-site-sidebar__panel-tab:after{content:attr(data-label);display:block;font-weight:600;height:0;overflow:hidden;speak:none;visibility:hidden}.components-button.edit-site-sidebar__panel-tab.is-active{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) transparent,inset 0 -4px 0 0 var(--wp-admin-theme-color);position:relative;z-index:1}.components-button.edit-site-sidebar__panel-tab.is-active:before{content:"";position:absolute;top:0;bottom:1px;left:0;right:0;border-bottom:4px solid transparent}.components-button.edit-site-sidebar__panel-tab:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);position:relative;z-index:1}.components-button.edit-site-sidebar__panel-tab.is-active:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 -4px 0 0 var(--wp-admin-theme-color)}.edit-site-template-card{display:flex;align-items:flex-start}.edit-site-template-card__content{flex-grow:1;margin-bottom:4px}.edit-site-template-card__title{font-weight:500;line-height:24px}.edit-site-template-card__title.edit-site-template-card__title{margin:0 0 4px}.edit-site-template-card__description{font-size:13px;margin:0 0 16px}.edit-site-template-card__icon{flex:0 0 24px;margin-left:12px;width:24px;height:24px}h3.edit-site-template-card__template-areas-title{font-weight:500;margin:0 0 8px}.edit-site-template-card__template-areas-list,.edit-site-template-card__template-areas-list>li{margin:0}.edit-site-template-card__template-areas-item{width:100%}.edit-site-template-card__template-areas-item.components-button.has-icon{padding:0}html #wpadminbar{display:none}html.wp-toolbar{padding-top:0}.edit-site-editor__toggle-save-panel{z-index:100000;position:fixed!important;top:-9999em;bottom:auto;right:auto;left:0;width:280px;background-color:#fff;border:1px dotted #ddd;height:auto!important;padding:24px;display:flex;justify-content:center}.interface-interface-skeleton__actions:focus-within .edit-site-editor__toggle-save-panel,.interface-interface-skeleton__actions:focus .edit-site-editor__toggle-save-panel{top:auto;bottom:0}.edit-site-visual-editor{position:relative;height:100%;display:block;overflow:hidden}.edit-site-visual-editor iframe{display:block;width:100%;height:100%;background-color:#fff}.edit-site .components-editor-notices__snackbar{position:fixed;left:0;bottom:40px;padding-right:16px;padding-left:16px;right:0}@media (min-width:783px){.edit-site .components-editor-notices__snackbar{right:160px}}@media (min-width:783px){.auto-fold .edit-site .components-editor-notices__snackbar{right:36px}}@media (min-width:961px){.auto-fold .edit-site .components-editor-notices__snackbar{right:160px}}.folded .edit-site .components-editor-notices__snackbar{right:0}@media (min-width:783px){.folded .edit-site .components-editor-notices__snackbar{right:36px}}body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{right:0!important}.edit-site-template-details .edit-site-template-details__group{margin:0;padding:16px}.edit-site-template-details .edit-site-template-details__group+.edit-site-template-details__group{border-top:1px solid #ccc}.edit-site-template-details .edit-site-template-details__title{margin:0}.edit-site-template-details .edit-site-template-details__description{margin:12px 0 0;color:#757575}.edit-site-template-details .edit-site-template-details__group.edit-site-template-details__template-areas{padding:8px}.edit-site-template-details .edit-site-template-details__template-areas-item{position:relative}.edit-site-template-details .edit-site-template-details__template-areas-item .edit-site-template-details__template-areas-item-more{position:absolute;left:0;top:0;bottom:0;margin:auto 0}.edit-site-template-details .edit-site-template-details__revert{padding:12px 8px}.edit-site-template-details .edit-site-template-details__revert-button{height:auto;padding:4px 8px;text-align:right}.edit-site-template-details .edit-site-template-details__revert-button:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 3px #fff}.edit-site-template-details .edit-site-template-details__show-all-button.components-button{display:flex;justify-content:center;background:#1e1e1e;color:#fff;width:100%;height:44px;border-radius:0}.edit-site-template-details .edit-site-template-details__show-all-button.components-button:hover{color:#fff}.edit-site-template-details .edit-site-template-details__show-all-button.components-button:active{color:#ccc}.edit-site-template-details .edit-site-template-details__show-all-button.components-button:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 3px #fff}.edit-site-create-template-part-modal{z-index:1000001}@media (min-width:600px){.edit-site-create-template-part-modal .components-modal__frame{max-width:500px}}.edit-site-create-template-part-modal__modal-actions{padding-top:12px}.edit-site-create-template-part-modal__area-base-control .components-base-control__label{margin:16px 0 8px;cursor:auto}.edit-site-create-template-part-modal__area-radio-group{width:100%;border:1px solid #757575;border-radius:2px}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio{display:block;width:100%;height:100%;text-align:right;padding:12px}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover{margin:0;background-color:inherit;border-bottom:1px solid #757575;border-radius:0}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:focus){box-shadow:none}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:focus{border-bottom:1px solid #fff}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:last-of-type{border-bottom:none}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true]{color:#1e1e1e;cursor:auto}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover) .edit-site-create-template-part-modal__option-label div,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true] .edit-site-create-template-part-modal__option-label div{color:#949494}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label{padding-top:4px;white-space:normal}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label div{padding-top:4px;font-size:12px}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__checkbox{margin-right:auto;min-width:24px}.edit-site-editor__inserter-panel,.edit-site-editor__list-view-panel{height:100%;display:flex;flex-direction:column}.edit-site-editor__list-view-panel{min-width:350px}.edit-site-editor__inserter-panel-header{padding-top:8px;padding-left:8px;display:flex;justify-content:flex-end}@media (min-width:782px){.edit-site-editor__inserter-panel-header{display:none}}.edit-site-editor__inserter-panel-content,.edit-site-editor__list-view-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-site-editor__inserter-panel-content{height:100%}}.edit-site-editor__list-view-panel-header{align-items:center;border-bottom:1px solid #ddd;display:flex;justify-content:space-between;height:48px;padding-right:16px;padding-left:4px}.edit-site-editor__list-view-panel-content{overflow-y:auto;padding:8px}.edit-site-welcome-guide{width:312px}.edit-site-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-site-welcome-guide__image>img{display:block;max-width:100%;-o-object-fit:cover;object-fit:cover}.edit-site-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-site-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 16px;padding:0 32px}.edit-site-welcome-guide__text img{vertical-align:bottom}.edit-site-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}body.appearance_page_gutenberg-edit-site,body.site-editor-php,html.wp-toolbar{background:#fff}body.appearance_page_gutenberg-edit-site #wpcontent,body.site-editor-php #wpcontent{padding-right:0}body.appearance_page_gutenberg-edit-site #wpbody-content,body.site-editor-php #wpbody-content{padding-bottom:0}body.appearance_page_gutenberg-edit-site #wpbody-content>div:not(.edit-site):not(#screen-meta),body.appearance_page_gutenberg-edit-site #wpfooter,body.site-editor-php #wpbody-content>div:not(.edit-site):not(#screen-meta),body.site-editor-php #wpfooter{display:none}body.appearance_page_gutenberg-edit-site .a11y-speak-region,body.site-editor-php .a11y-speak-region{right:-1px;top:-1px}body.appearance_page_gutenberg-edit-site ul#adminmenu>li.current>a.current:after,body.appearance_page_gutenberg-edit-site ul#adminmenu a.wp-has-current-submenu:after,body.site-editor-php ul#adminmenu>li.current>a.current:after,body.site-editor-php ul#adminmenu a.wp-has-current-submenu:after{border-left-color:#fff}body.appearance_page_gutenberg-edit-site .media-frame select.attachment-filters:last-of-type,body.site-editor-php .media-frame select.attachment-filters:last-of-type{width:auto;max-width:100%}.components-modal__frame,.edit-site{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.edit-site *,.edit-site :after,.edit-site :before{box-sizing:inherit}@media (min-width:600px){.edit-site{bottom:0;right:0;min-height:100vh;position:absolute;left:0;top:0}}.edit-site .interface-interface-skeleton{top:0}.edit-site .interface-complementary-area__pin-unpin-item.components-button{display:none}.edit-site .interface-interface-skeleton__content{background-color:#2f2f2f}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}} \ No newline at end of file +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-left:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-left:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-right:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-right:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}}@media (min-width:782px){.components-panel__header+.interface-complementary-area-header{margin-top:0}}.interface-complementary-area{background:#fff;color:#1e1e1e}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:0}}.interface-complementary-area p{margin-top:0}.interface-complementary-area h2{font-size:13px;color:#1e1e1e;margin-bottom:1.5em}.interface-complementary-area h3{font-size:11px;text-transform:uppercase;font-weight:500;color:#1e1e1e;margin-bottom:1.5em}.interface-complementary-area hr{border-top:none;border-bottom:1px solid #f0f0f0;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{top:auto;left:10px;bottom:10px;right:auto}@media (min-width:782px){body.js.is-fullscreen-mode{margin-top:-32px;height:calc(100% + 32px)}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-right:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{display:flex;flex-direction:row;height:auto;max-height:100%;position:fixed;top:46px;left:0;bottom:0}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex-direction:column;flex:0 1 100%;overflow:hidden}.interface-interface-skeleton{right:0}@media (min-width:783px){.interface-interface-skeleton{right:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{right:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{right:160px}}.folded .interface-interface-skeleton{right:0}@media (min-width:783px){.folded .interface-interface-skeleton{right:36px}}body.is-fullscreen-mode .interface-interface-skeleton{right:0!important}.interface-interface-skeleton__body{flex-grow:1;display:flex;overflow:auto;overscroll-behavior-y:none}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{flex-grow:1;display:flex;flex-direction:column;overflow:auto;z-index:20}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{display:block;flex-shrink:0;position:absolute;z-index:100000;top:0;left:0;bottom:0;right:0;background:#fff;color:#1e1e1e}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;z-index:90;width:auto}}.interface-interface-skeleton__sidebar{overflow:auto}@media (min-width:782px){.interface-interface-skeleton__sidebar{border-right:1px solid #e0e0e0}}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar{border-left:1px solid #e0e0e0}}.interface-interface-skeleton__header{flex-shrink:0;height:auto;border-bottom:1px solid #e0e0e0;z-index:30;color:#1e1e1e}.interface-interface-skeleton__footer{height:auto;flex-shrink:0;border-top:1px solid #e0e0e0;color:#1e1e1e;position:absolute;bottom:0;right:0;width:100%;background-color:#fff;z-index:90;display:none}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{z-index:30;display:flex;background:#fff;height:24px;align-items:center;font-size:13px;padding:0 18px}.interface-interface-skeleton__actions{z-index:100000;position:fixed!important;top:-9999em;bottom:auto;right:auto;left:0;width:280px;color:#1e1e1e}.interface-interface-skeleton__actions:focus{top:auto;bottom:0}.interface-more-menu-dropdown{margin-right:-4px}.interface-more-menu-dropdown .components-button{width:auto;padding:0 2px}@media (min-width:600px){.interface-more-menu-dropdown{margin-right:0}.interface-more-menu-dropdown .components-button{padding:0 4px}}.interface-more-menu-dropdown__content .components-popover__content{min-width:280px}@media (min-width:480px){.interface-more-menu-dropdown__content .components-popover__content{width:auto;max-width:480px}}.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.interface-more-menu-dropdown__content{z-index:99998}.interface-pinned-items{display:flex}.interface-pinned-items .components-button:not(:first-child){display:none}@media (min-width:600px){.interface-pinned-items .components-button:not(:first-child){display:flex}}.interface-pinned-items .components-button{margin-right:4px}.interface-pinned-items .components-button svg{max-width:24px;max-height:24px}.edit-site-block-editor__editor-styles-wrapper .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-site-block-editor__editor-styles-wrapper .components-button.has-icon,.edit-site-block-editor__editor-styles-wrapper .components-button.is-tertiary{padding:6px}.edit-site-visual-editor{background-color:#2f2f2f;align-items:center}.edit-site-visual-editor.is-focus-mode{padding:48px}.edit-site-visual-editor.is-focus-mode .edit-site-visual-editor__editor-canvas{border-radius:2px}.edit-site-visual-editor__editor-canvas{border-radius:2px 2px 0 0}.edit-site-visual-editor__back-button{position:absolute;top:8px;right:8px;color:#fff}.edit-site-visual-editor__back-button:active:not([aria-disabled=true]),.edit-site-visual-editor__back-button:focus:not([aria-disabled=true]),.edit-site-visual-editor__back-button:hover{color:#f0f0f0}.components-resizable-box__container{margin:0 auto}.resizable-editor__drag-handle{position:absolute;top:0;bottom:0;padding:0;margin:auto 0;width:8px;height:100px;-webkit-appearance:none;appearance:none;cursor:grab;outline:none;background:#757575;border-radius:4px;border:0}.resizable-editor__drag-handle.is-left{right:-28px}.resizable-editor__drag-handle.is-right{left:-28px}.resizable-editor__drag-handle:hover{background:#949494}.resizable-editor__drag-handle:active{cursor:grabbing;background:#949494}.resizable-editor__drag-handle:focus{box-shadow:0 0 0 1px #2f2f2f,0 0 0 calc(var(--wp-admin-border-width-focus) + 1px) var(--wp-admin-theme-color)}.edit-site-global-styles-preview{display:flex;align-items:center;justify-content:center;min-height:152px;line-height:1}.edit-site-global-styles-preview .component-color-indicator{border-radius:50%;border:0;height:36px;width:36px;margin-right:0;padding:0}.edit-site-typography-panel__preview{display:flex;align-items:center;justify-content:center;min-height:100px;margin-bottom:16px;background:#f0f0f0;border-radius:2px}.edit-site-global-styles-screen-typography{margin:16px}.edit-site-global-styles-screen-typography__indicator{height:24px;width:24px;font-size:14px;display:flex!important;align-items:center;justify-content:center;border-radius:2px}.edit-site-global-styles-screen-colors{margin:16px}.edit-site-global-styles-screen-colors .component-color-indicator{margin-right:0;display:block;border-radius:50%;border:0;height:24px;width:24px;padding:0;background-image:repeating-linear-gradient(-45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(-45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:100% 0,25px 25px;background-size:10px 10px}.edit-site-global-styles-header__description{padding:0 16px}.edit-site-global-styles-subtitle{margin-bottom:0!important;text-transform:uppercase;font-weight:500}.edit-site-screen-color-palette-toggle.edit-site-screen-color-palette-toggle{margin-left:16px;margin-right:16px;width:unset}.edit-site-screen-color-palette-toggle.edit-site-screen-color-palette-toggle .components-toggle-group-control{min-height:32px}.edit-site-header{align-items:center;background-color:#fff;display:flex;height:60px;box-sizing:border-box;width:100%;justify-content:space-between}body.is-fullscreen-mode .edit-site-header{padding-right:60px;transition:padding-right 20ms linear;transition-delay:80ms}@media (prefers-reduced-motion:reduce){body.is-fullscreen-mode .edit-site-header{transition-duration:0s;transition-delay:0s}}.edit-site-header .edit-site-header_end,.edit-site-header .edit-site-header_start{display:flex}.edit-site-header .edit-site-header_center{display:flex;align-items:center;height:100%;min-width:0}.edit-site-header .edit-site-header_end{justify-content:flex-end}body.is-navigation-sidebar-open .edit-site-header{padding-right:0;transition:padding-right 20ms linear;transition-delay:0ms}@media (prefers-reduced-motion:reduce){body.is-navigation-sidebar-open .edit-site-header{transition-duration:0s;transition-delay:0s}}@media (max-width:959px){body.is-navigation-sidebar-open .edit-site-header .edit-site-header-toolbar__inserter-toggle~.components-button,body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .components-button:not(.is-primary){display:none}body.is-navigation-sidebar-open .edit-site-header .edit-site-save-button__button{margin-left:0}}.edit-site-header__toolbar{display:flex;align-items:center;padding-right:8px}@media (min-width:600px){.edit-site-header__toolbar{padding-right:24px}}@media (min-width:1280px){.edit-site-header__toolbar{padding-left:8px}}.edit-site-header__toolbar .edit-site-header-toolbar__inserter-toggle{margin-left:8px;min-width:32px;width:32px;height:32px;padding:0}.edit-site-header__toolbar .edit-site-header-toolbar__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.edit-site-header__toolbar .edit-site-header-toolbar__inserter-toggle svg{transition-duration:0s;transition-delay:0s}}.edit-site-header__toolbar .edit-site-header-toolbar__inserter-toggle.is-pressed svg{transform:rotate(-45deg)}.edit-site-header__toolbar-switchers{align-items:center;display:flex}.edit-site-header__toolbar-switchers-separator{margin:0 -6px}.edit-site-header__actions{display:inline-flex;align-items:center;flex-wrap:wrap;padding-left:4px}.edit-site-header__actions .interface-pinned-items{display:none}@media (min-width:782px){.edit-site-header__actions .interface-pinned-items{display:inline-flex}}.edit-site-header__actions .components-button.components-button,.edit-site-header__actions .editor-post-saved-state{margin-left:4px}@media (min-width:600px){.edit-site-header__actions .components-button.components-button,.edit-site-header__actions .editor-post-saved-state{margin-left:12px}}.edit-site-header__actions .components-button.is-tertiary,.edit-site-header__actions .editor-post-saved-state{padding:0 6px}.edit-site-header__actions .edit-site-more-menu .components-button,.edit-site-header__actions .interface-pinned-items .components-button{margin-left:0}@media (min-width:600px){.edit-site-header__actions{padding-left:16px}}.edit-site-header__actions-more-menu{margin-right:-4px}.edit-site-header__actions-more-menu .components-icon-button{padding:8px 2px;width:auto}@media (min-width:600px){.edit-site-header__actions-more-menu{margin-right:4px}.edit-site-header__actions-more-menu .components-icon-button{padding:8px 4px}}.edit-site-document-actions{display:flex;flex-direction:column;justify-content:center;height:100%;min-width:0}.edit-site-document-actions .edit-site-document-actions__title-wrapper{display:flex;flex-direction:row;justify-content:center;align-items:center;min-width:0}.edit-site-document-actions .edit-site-document-actions__title-wrapper .components-dropdown{display:inline-flex;margin-right:4px}.edit-site-document-actions .edit-site-document-actions__title-wrapper .components-dropdown .components-button{min-width:0;padding:0}.edit-site-document-actions .edit-site-document-actions__title-wrapper>h1{margin:0;min-width:0}.edit-site-document-actions .edit-site-document-actions__title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px}@media (min-width:782px){.edit-site-document-actions .edit-site-document-actions__title{max-width:75px}}@media (min-width:1080px){.edit-site-document-actions .edit-site-document-actions__title{max-width:180px}}.edit-site-document-actions .edit-site-document-actions__secondary-item{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:0;opacity:0;padding:0;transition:all .2s ease;background:#e0e0e0;border-radius:2px}@media (prefers-reduced-motion:reduce){.edit-site-document-actions .edit-site-document-actions__secondary-item{transition-duration:0s;transition-delay:0s}}.edit-site-document-actions.has-secondary-label .edit-site-document-actions__secondary-item{opacity:1;padding:0 4px;max-width:180px;margin-right:6px}.edit-site-document-actions__info-dropdown>.components-popover__content>div{padding:0;min-width:240px}.edit-site-more-menu{margin-right:-4px}.edit-site-more-menu .components-button{width:auto;padding:0 2px}@media (min-width:600px){.edit-site-more-menu{margin-right:4px}.edit-site-more-menu .components-button{padding:0 4px}}.edit-site-more-menu__content .components-popover__content{min-width:260px}.edit-site-more-menu__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.edit-site-more-menu__content{z-index:99998}.edit-site-navigation-toggle{align-items:center;background:#1e1e1e;border-radius:0;display:flex;position:absolute;z-index:31;height:60px;width:60px}.edit-site-navigation-toggle__button{align-items:center;background:#1e1e1e;border-radius:0;color:#fff;height:61px;width:60px;z-index:1;margin-bottom:-1px}.edit-site-navigation-toggle__button.has-icon{min-width:60px}.edit-site-navigation-toggle__button.has-icon:active,.edit-site-navigation-toggle__button.has-icon:hover{color:#fff}.edit-site-navigation-toggle__button.has-icon:focus{box-shadow:none}.edit-site-navigation-toggle__button.has-icon:before{transition:box-shadow .1s ease;content:"";display:block;position:absolute;top:9px;left:9px;bottom:9px;right:9px;border-radius:4px;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #1e1e1e}@media (prefers-reduced-motion:reduce){.edit-site-navigation-toggle__button.has-icon:before{transition-duration:0s;transition-delay:0s}}.edit-site-navigation-toggle__button.has-icon:hover:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #757575}.edit-site-navigation-toggle__button.has-icon:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) hsla(0,0%,100%,.1),inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-navigation-toggle__site-icon{width:36px;border-radius:2px}.edit-site-navigation-panel{height:100%;position:relative;width:0;overflow:hidden;background:#1e1e1e;color:#fff;transition:width .1s linear}@media (prefers-reduced-motion:reduce){.edit-site-navigation-panel{transition-duration:0s;transition-delay:0s}}@media (min-width:782px){.interface-interface-skeleton.has-footer .edit-site-navigation-panel{height:calc(100% - 25px)}}.edit-site-navigation-panel__inner{position:relative;width:300px;height:100%;overflow:hidden;visibility:hidden;transition:visibility .1s linear}@media (prefers-reduced-motion:reduce){.edit-site-navigation-panel__inner{transition-duration:0s;transition-delay:0s}}.edit-site-navigation-panel.is-open{width:300px}.edit-site-navigation-panel.is-open .edit-site-navigation-panel__inner{visibility:visible}.edit-site-navigation-panel__site-title-container{height:60px;padding-right:60px;margin:0 8px 0 16px;display:flex;align-items:center}.edit-site-navigation-panel__site-title{font-style:normal;font-weight:600;font-size:14px;line-height:20px;color:#ddd;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.edit-site-navigation-panel__scroll-container{overflow-x:hidden;overflow-y:auto;height:calc(100% - 60px)}.edit-site-navigation-panel__back-to-dashboard.components-button.is-tertiary{height:36px;margin-top:24px;padding:8px 8px 8px 16px}.edit-site-navigation-panel__back-to-dashboard.components-button.is-tertiary:focus:not(:disabled){border-bottom-color:transparent}.edit-site-navigation-panel__preview{display:none;border:1px solid #ccc;width:300px;padding:16px;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.05);border-radius:2px;position:absolute;top:73px;right:312px;color:#1e1e1e;z-index:32}@media (min-width:782px){.edit-site-navigation-panel__preview{display:block}}.edit-site-navigation-panel__template-item{display:block}.edit-site-navigation-panel__template-item .components-button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;height:auto;min-height:36px;text-align:right;padding-right:16px;padding-left:16px;color:inherit}.edit-site-navigation-panel__template-item-title{font-size:14px;line-height:20px}.edit-site-navigation-panel__template-item-title em{margin-left:1ch}.edit-site-navigation-panel__template-part-item .components-navigation__item-title,.edit-site-navigation-panel__template-parts .components-navigation__menu-title-heading{text-transform:capitalize}.components-navigation__item+.edit-site-navigation-panel__template-item{margin-top:16px}.edit-site-navigation-panel__template-item+.edit-site-navigation-panel__template-item{margin-top:8px}.edit-site-navigation-panel__info-wrapper{padding:4px 0}.edit-site-navigation-panel__template-item-description{padding-top:8px;font-size:12px;line-height:16px}.edit-site-navigation-panel__new-template-dropdown{margin:0 12px 0 0}.edit-site-navigation-panel__new-template-dropdown button{margin:0}@media (min-width:600px){.edit-site-navigation-panel__new-template-popover{min-width:300px}}.edit-site-list-header{position:relative;align-items:center;background-color:#fff;display:flex;height:60px;box-sizing:border-box;width:100%;justify-content:flex-end;padding-left:16px}body.is-fullscreen-mode .edit-site-list-header{padding-right:60px;transition:padding-right 20ms linear;transition-delay:80ms}@media (prefers-reduced-motion:reduce){body.is-fullscreen-mode .edit-site-list-header{transition-duration:0s;transition-delay:0s}}.edit-site-list-header .edit-site-list-header__title{position:absolute;right:0;width:100%;text-align:center;font-size:20px;padding:0;margin:0}.edit-site-list-header__right{position:relative}.edit-site .edit-site-list .interface-interface-skeleton__editor{min-width:100%}@media (min-width:782px){.edit-site .edit-site-list .interface-interface-skeleton__editor{min-width:0}}.edit-site .edit-site-list .interface-interface-skeleton__content{background:#fff}.edit-site-list-main{display:flex;align-items:center;justify-content:center;padding:16px}@media (min-width:782px){.edit-site-list-main{padding:72px}}.edit-site-list-table{width:100%;border:1px solid #ddd;border-radius:2px;margin:0;overflow:hidden;border-spacing:0;max-width:960px}.edit-site-list-table tr{display:flex;align-items:center;padding:16px;box-sizing:border-box;border-top:1px solid #f0f0f0;margin:0}.edit-site-list-table tr:first-child{border-top:0}@media (min-width:782px){.edit-site-list-table tr{padding:24px 32px}}.edit-site-list-table tr .edit-site-list-table-column:first-child{width:calc(60% - 18px);padding-left:24px}.edit-site-list-table tr .edit-site-list-table-column:first-child a{display:inline-block;text-decoration:none;font-weight:500;margin-bottom:4px}.edit-site-list-table tr .edit-site-list-table-column:nth-child(2){width:calc(40% - 18px)}.edit-site-list-table tr .edit-site-list-table-column:nth-child(3){min-width:36px;flex-shrink:0}.edit-site-list-table tr.edit-site-list-table-head{font-size:16px;font-weight:600;text-align:right;color:#1e1e1e;border-top:none;border-bottom:1px solid #ddd}.edit-site-list-table tr.edit-site-list-table-head th{font-weight:inherit}@media (min-width:782px){.edit-site-list.is-navigation-open .components-snackbar-list{margin-right:300px}}@media (min-width:782px){.edit-site-list__rename-modal .components-base-control{width:320px}}.edit-site-list__rename-modal .components-modal__header{border-bottom:none}.edit-site-list__rename-modal .components-modal__content:before{margin-bottom:4px}.edit-site-list__rename-modal-actions{margin-top:12px}.edit-site-template__actions button:not(:last-child){margin-left:8px}.edit-site-list-added-by__icon{display:flex;flex-shrink:0;position:relative;align-items:center;justify-content:center;width:32px;height:32px;background:#2f2f2f;border-radius:100%}.edit-site-list-added-by__icon svg{fill:#fff}.edit-site-list-added-by__icon.is-customized:after{position:absolute;content:"";background:var(--wp-admin-theme-color);height:8px;width:8px;outline:2px solid #fff;border-radius:100%;top:-1px;left:-1px}.edit-site-list-added-by__avatar{flex-shrink:0;overflow:hidden;border-radius:100%;background:#2f2f2f;width:32px;height:32px}.edit-site-list-added-by__avatar img{width:32px;height:32px;-o-object-fit:cover;object-fit:cover;opacity:0;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.edit-site-list-added-by__avatar img{transition-duration:0s;transition-delay:0s}}.edit-site-list-added-by__avatar.is-loaded img{opacity:1}.edit-site-new-template-dropdown .components-dropdown-menu__toggle{padding:6px 12px}@media (min-width:600px){.edit-site-new-template-dropdown .edit-site-new-template-dropdown__popover{min-width:300px}}.edit-site-sidebar{width:280px}.edit-site-sidebar>.components-panel{border-right:0;border-left:0;margin-bottom:-1px;margin-top:-1px}.edit-site-sidebar>.components-panel>.components-panel__header{background:#f0f0f0}.edit-site-sidebar .block-editor-block-inspector__card{margin:0}.edit-site-global-styles-sidebar .interface-complementary-area-header .components-button.has-icon{margin-right:0}.edit-site-global-styles-sidebar__reset-button.components-button{margin-right:auto}.edit-site-global-styles-sidebar__border-controls-row{display:flex;justify-content:space-between;margin-bottom:12px}.edit-site-global-styles-sidebar__border-controls-row>*{width:calc(50% - 8px)}.edit-site-global-styles-sidebar__border-controls-row .components-border-style-control__buttons{margin-bottom:0}.edit-site-global-styles-sidebar .components-navigation__menu-title-heading{font-size:15.6px;font-weight:500}.edit-site-global-styles-sidebar .components-navigation__item>button span{font-weight:500}.edit-site-global-styles-sidebar .block-editor-panel-color-gradient-settings,.edit-site-typography-panel{border:0}.edit-site-global-styles-sidebar__blocks-group{padding-top:24px;border-top:1px solid #e0e0e0}.edit-site-global-styles-sidebar__blocks-group-help{padding:0 16px}.edit-site-global-styles-color-palette-panel,.edit-site-global-styles-gradient-palette-panel{padding:16px}.edit-site-global-styles-sidebar__beta{display:inline-flex;margin-right:8px;padding:0 8px;height:24px;border-radius:2px;background-color:#000;color:#fff;align-items:center;font-size:12px;line-height:1}.components-panel__header.edit-site-sidebar__panel-tabs{justify-content:flex-start;padding-right:0;padding-left:16px;border-top:0;margin-top:0}.components-panel__header.edit-site-sidebar__panel-tabs ul{display:flex}.components-panel__header.edit-site-sidebar__panel-tabs li{margin:0}.components-panel__header.edit-site-sidebar__panel-tabs .components-button.has-icon{display:none;margin:0 auto 0 0;padding:0;min-width:24px;height:24px}@media (min-width:782px){.components-panel__header.edit-site-sidebar__panel-tabs .components-button.has-icon{display:flex}}.components-button.edit-site-sidebar__panel-tab{border-radius:0;height:48px;background:transparent;border:none;box-shadow:none;cursor:pointer;display:inline-block;padding:3px 15px;margin-right:0;font-weight:500}.components-button.edit-site-sidebar__panel-tab:after{content:attr(data-label);display:block;font-weight:600;height:0;overflow:hidden;speak:none;visibility:hidden}.components-button.edit-site-sidebar__panel-tab.is-active{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) transparent,inset 0 -4px 0 0 var(--wp-admin-theme-color);position:relative;z-index:1}.components-button.edit-site-sidebar__panel-tab.is-active:before{content:"";position:absolute;top:0;bottom:1px;left:0;right:0;border-bottom:4px solid transparent}.components-button.edit-site-sidebar__panel-tab:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);position:relative;z-index:1}.components-button.edit-site-sidebar__panel-tab.is-active:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 -4px 0 0 var(--wp-admin-theme-color)}.edit-site-template-card{display:flex;align-items:flex-start}.edit-site-template-card__content{flex-grow:1;margin-bottom:4px}.edit-site-template-card__title{font-weight:500;line-height:24px}.edit-site-template-card__title.edit-site-template-card__title{margin:0 0 4px}.edit-site-template-card__description{font-size:13px;margin:0 0 16px}.edit-site-template-card__icon{flex:0 0 24px;margin-left:12px;width:24px;height:24px}h3.edit-site-template-card__template-areas-title{font-weight:500;margin:0 0 8px}.edit-site-template-card__template-areas-list,.edit-site-template-card__template-areas-list>li{margin:0}.edit-site-template-card__template-areas-item{width:100%}.edit-site-template-card__template-areas-item.components-button.has-icon{padding:0}html #wpadminbar{display:none}html.wp-toolbar{padding-top:0}.edit-site-editor__toggle-save-panel{z-index:100000;position:fixed!important;top:-9999em;bottom:auto;right:auto;left:0;width:280px;background-color:#fff;border:1px dotted #ddd;height:auto!important;padding:24px;display:flex;justify-content:center}.interface-interface-skeleton__actions:focus-within .edit-site-editor__toggle-save-panel,.interface-interface-skeleton__actions:focus .edit-site-editor__toggle-save-panel{top:auto;bottom:0}.edit-site-visual-editor{position:relative;height:100%;display:block;overflow:hidden}.edit-site-visual-editor iframe{display:block;width:100%;height:100%;background-color:#fff}.edit-site .components-editor-notices__snackbar{position:fixed;left:0;bottom:40px;padding-right:16px;padding-left:16px;right:0}@media (min-width:783px){.edit-site .components-editor-notices__snackbar{right:160px}}@media (min-width:783px){.auto-fold .edit-site .components-editor-notices__snackbar{right:36px}}@media (min-width:961px){.auto-fold .edit-site .components-editor-notices__snackbar{right:160px}}.folded .edit-site .components-editor-notices__snackbar{right:0}@media (min-width:783px){.folded .edit-site .components-editor-notices__snackbar{right:36px}}body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{right:0!important}.edit-site-template-details .edit-site-template-details__group{margin:0;padding:16px}.edit-site-template-details .edit-site-template-details__group+.edit-site-template-details__group{border-top:1px solid #ccc}.edit-site-template-details .edit-site-template-details__title{margin:0}.edit-site-template-details .edit-site-template-details__description{margin:12px 0 0;color:#757575}.edit-site-template-details .edit-site-template-details__group.edit-site-template-details__template-areas{padding:8px}.edit-site-template-details .edit-site-template-details__template-areas-item{position:relative}.edit-site-template-details .edit-site-template-details__template-areas-item .edit-site-template-details__template-areas-item-more{position:absolute;left:0;top:0;bottom:0;margin:auto 0}.edit-site-template-details .edit-site-template-details__revert{padding:12px 8px}.edit-site-template-details .edit-site-template-details__revert-button{height:auto;padding:4px 8px;text-align:right}.edit-site-template-details .edit-site-template-details__revert-button:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 3px #fff}.edit-site-template-details .edit-site-template-details__show-all-button.components-button{display:flex;justify-content:center;background:#1e1e1e;color:#fff;width:100%;height:44px;border-radius:0}.edit-site-template-details .edit-site-template-details__show-all-button.components-button:hover{color:#fff}.edit-site-template-details .edit-site-template-details__show-all-button.components-button:active{color:#ccc}.edit-site-template-details .edit-site-template-details__show-all-button.components-button:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 3px #fff}.edit-site-create-template-part-modal{z-index:1000001}@media (min-width:600px){.edit-site-create-template-part-modal .components-modal__frame{max-width:500px}}.edit-site-create-template-part-modal__modal-actions{padding-top:12px}.edit-site-create-template-part-modal__area-base-control .components-base-control__label{margin:16px 0 8px;cursor:auto}.edit-site-create-template-part-modal__area-radio-group{width:100%;border:1px solid #757575;border-radius:2px}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio{display:block;width:100%;height:100%;text-align:right;padding:12px}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover{margin:0;background-color:inherit;border-bottom:1px solid #757575;border-radius:0}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:focus){box-shadow:none}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:focus{border-bottom:1px solid #fff}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:last-of-type{border-bottom:none}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true]{color:#1e1e1e;cursor:auto}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover) .edit-site-create-template-part-modal__option-label div,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true] .edit-site-create-template-part-modal__option-label div{color:#949494}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label{padding-top:4px;white-space:normal}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label div{padding-top:4px;font-size:12px}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__checkbox{margin-right:auto;min-width:24px}.edit-site-editor__inserter-panel,.edit-site-editor__list-view-panel{height:100%;display:flex;flex-direction:column}.edit-site-editor__list-view-panel{min-width:350px}.edit-site-editor__inserter-panel-header{padding-top:8px;padding-left:8px;display:flex;justify-content:flex-end}@media (min-width:782px){.edit-site-editor__inserter-panel-header{display:none}}.edit-site-editor__inserter-panel-content,.edit-site-editor__list-view-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-site-editor__inserter-panel-content{height:100%}}.edit-site-editor__list-view-panel-header{align-items:center;border-bottom:1px solid #ddd;display:flex;justify-content:space-between;height:48px;padding-right:16px;padding-left:4px}.edit-site-editor__list-view-panel-content{overflow-y:auto;padding:8px}.edit-site-welcome-guide{width:312px}.edit-site-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-site-welcome-guide__image>img{display:block;max-width:100%;-o-object-fit:cover;object-fit:cover}.edit-site-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-site-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 16px;padding:0 32px}.edit-site-welcome-guide__text img{vertical-align:bottom}.edit-site-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}body.appearance_page_gutenberg-edit-site,body.site-editor-php,html.wp-toolbar{background:#fff}body.appearance_page_gutenberg-edit-site #wpcontent,body.site-editor-php #wpcontent{padding-right:0}body.appearance_page_gutenberg-edit-site #wpbody-content,body.site-editor-php #wpbody-content{padding-bottom:0}body.appearance_page_gutenberg-edit-site #wpbody-content>div:not(.edit-site):not(#screen-meta),body.appearance_page_gutenberg-edit-site #wpfooter,body.site-editor-php #wpbody-content>div:not(.edit-site):not(#screen-meta),body.site-editor-php #wpfooter{display:none}body.appearance_page_gutenberg-edit-site .a11y-speak-region,body.site-editor-php .a11y-speak-region{right:-1px;top:-1px}body.appearance_page_gutenberg-edit-site ul#adminmenu>li.current>a.current:after,body.appearance_page_gutenberg-edit-site ul#adminmenu a.wp-has-current-submenu:after,body.site-editor-php ul#adminmenu>li.current>a.current:after,body.site-editor-php ul#adminmenu a.wp-has-current-submenu:after{border-left-color:#fff}body.appearance_page_gutenberg-edit-site .media-frame select.attachment-filters:last-of-type,body.site-editor-php .media-frame select.attachment-filters:last-of-type{width:auto;max-width:100%}.components-modal__frame,.edit-site{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.edit-site *,.edit-site :after,.edit-site :before{box-sizing:inherit}@media (min-width:600px){.edit-site{bottom:0;right:0;min-height:100vh;position:absolute;left:0;top:0}}.edit-site .interface-interface-skeleton{top:0}.edit-site .interface-complementary-area__pin-unpin-item.components-button{display:none}.edit-site .interface-interface-skeleton__content{background-color:#2f2f2f}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}} \ No newline at end of file diff --git a/wp-includes/css/dist/edit-site/style.css b/wp-includes/css/dist/edit-site/style.css index 69873e5ffc..5179817169 100644 --- a/wp-includes/css/dist/edit-site/style.css +++ b/wp-includes/css/dist/edit-site/style.css @@ -535,6 +535,30 @@ body.is-fullscreen-mode .interface-interface-skeleton { padding: 0; } +.edit-site-typography-panel__preview { + display: flex; + align-items: center; + justify-content: center; + min-height: 100px; + margin-bottom: 16px; + background: #f0f0f0; + border-radius: 2px; +} + +.edit-site-global-styles-screen-typography { + margin: 16px; +} + +.edit-site-global-styles-screen-typography__indicator { + height: 24px; + width: 24px; + font-size: 14px; + display: flex !important; + align-items: center; + justify-content: center; + border-radius: 2px; +} + .edit-site-global-styles-screen-colors { margin: 16px; } @@ -561,6 +585,15 @@ body.is-fullscreen-mode .interface-interface-skeleton { font-weight: 500; } +.edit-site-screen-color-palette-toggle.edit-site-screen-color-palette-toggle { + margin-right: 16px; + margin-left: 16px; + width: unset; +} +.edit-site-screen-color-palette-toggle.edit-site-screen-color-palette-toggle .components-toggle-group-control { + min-height: 32px; +} + .edit-site-header { align-items: center; background-color: #fff; @@ -1099,12 +1132,14 @@ body.is-fullscreen-mode .edit-site-list-header { .edit-site-list-table { width: 100%; - border: 1px solid #e0e0e0; + border: 1px solid #ddd; border-radius: 2px; margin: 0; overflow: hidden; + border-spacing: 0; + max-width: 960px; } -.edit-site-list-table li { +.edit-site-list-table tr { display: flex; align-items: center; padding: 16px; @@ -1112,36 +1147,119 @@ body.is-fullscreen-mode .edit-site-list-header { border-top: 1px solid #f0f0f0; margin: 0; } +.edit-site-list-table tr:first-child { + border-top: 0; +} @media (min-width: 782px) { - .edit-site-list-table li { + .edit-site-list-table tr { padding: 24px 32px; } } -.edit-site-list-table li .edit-site-list-table-column:nth-child(1) { - width: calc(60% - 36px); +.edit-site-list-table tr .edit-site-list-table-column:nth-child(1) { + width: calc(60% - 18px); + padding-right: 24px; } -.edit-site-list-table li .edit-site-list-table-column:nth-child(1) a { - display: block; +.edit-site-list-table tr .edit-site-list-table-column:nth-child(1) a { + display: inline-block; text-decoration: none; font-weight: 500; margin-bottom: 4px; } -.edit-site-list-table li .edit-site-list-table-column:nth-child(2) { - width: calc(40% - 36px); +.edit-site-list-table tr .edit-site-list-table-column:nth-child(2) { + width: calc(40% - 18px); } -.edit-site-list-table li .edit-site-list-table-column:nth-child(3) { +.edit-site-list-table tr .edit-site-list-table-column:nth-child(3) { min-width: 36px; + flex-shrink: 0; } -.edit-site-list-table li.edit-site-list-table-head { - border-bottom: 1px solid #e0e0e0; +.edit-site-list-table tr.edit-site-list-table-head { font-size: 16px; - font-weight: 500; + font-weight: 600; text-align: left; - color: #000; + color: #1e1e1e; border-top: none; + border-bottom: 1px solid #ddd; } -.edit-site-list-table li.edit-site-list-table-head + li { - border-top: 0; +.edit-site-list-table tr.edit-site-list-table-head th { + font-weight: inherit; +} + +@media (min-width: 782px) { + .edit-site-list.is-navigation-open .components-snackbar-list { + margin-left: 300px; + } +} + +@media (min-width: 782px) { + .edit-site-list__rename-modal .components-base-control { + width: 320px; + } +} +.edit-site-list__rename-modal .components-modal__header { + border-bottom: none; +} +.edit-site-list__rename-modal .components-modal__content::before { + margin-bottom: 4px; +} + +.edit-site-list__rename-modal-actions { + margin-top: 12px; +} + +.edit-site-template__actions button:not(:last-child) { + margin-right: 8px; +} + +.edit-site-list-added-by__icon { + display: flex; + flex-shrink: 0; + position: relative; + align-items: center; + justify-content: center; + width: 32px; + height: 32px; + background: #2f2f2f; + border-radius: 100%; +} +.edit-site-list-added-by__icon svg { + fill: #fff; +} +.edit-site-list-added-by__icon.is-customized::after { + position: absolute; + content: ""; + background: var(--wp-admin-theme-color); + height: 8px; + width: 8px; + outline: 2px solid #fff; + border-radius: 100%; + top: -1px; + right: -1px; +} + +.edit-site-list-added-by__avatar { + flex-shrink: 0; + overflow: hidden; + border-radius: 100%; + background: #2f2f2f; + width: 32px; + height: 32px; +} +.edit-site-list-added-by__avatar img { + width: 32px; + height: 32px; + -o-object-fit: cover; + object-fit: cover; + opacity: 0; + transition: opacity 0.1s linear; +} +@media (prefers-reduced-motion: reduce) { + .edit-site-list-added-by__avatar img { + transition-duration: 0s; + transition-delay: 0s; + } +} +.edit-site-list-added-by__avatar.is-loaded img { + opacity: 1; } .edit-site-new-template-dropdown .components-dropdown-menu__toggle { @@ -1212,7 +1330,8 @@ body.is-fullscreen-mode .edit-site-list-header { padding: 0 16px; } -.edit-site-global-styles-color-palette-panel { +.edit-site-global-styles-color-palette-panel, +.edit-site-global-styles-gradient-palette-panel { padding: 16px; } diff --git a/wp-includes/css/dist/edit-site/style.min.css b/wp-includes/css/dist/edit-site/style.min.css index 4bc7ef4f72..4b67ffb7d5 100644 --- a/wp-includes/css/dist/edit-site/style.min.css +++ b/wp-includes/css/dist/edit-site/style.min.css @@ -1 +1 @@ -:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-right:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-right:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-left:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-left:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}}@media (min-width:782px){.components-panel__header+.interface-complementary-area-header{margin-top:0}}.interface-complementary-area{background:#fff;color:#1e1e1e}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:0}}.interface-complementary-area p{margin-top:0}.interface-complementary-area h2{font-size:13px;color:#1e1e1e;margin-bottom:1.5em}.interface-complementary-area h3{font-size:11px;text-transform:uppercase;font-weight:500;color:#1e1e1e;margin-bottom:1.5em}.interface-complementary-area hr{border-top:none;border-bottom:1px solid #f0f0f0;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{top:auto;right:10px;bottom:10px;left:auto}@media (min-width:782px){body.js.is-fullscreen-mode{margin-top:-32px;height:calc(100% + 32px)}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-left:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{display:flex;flex-direction:row;height:auto;max-height:100%;position:fixed;top:46px;right:0;bottom:0}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex-direction:column;flex:0 1 100%;overflow:hidden}.interface-interface-skeleton{left:0}@media (min-width:783px){.interface-interface-skeleton{left:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{left:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{left:160px}}.folded .interface-interface-skeleton{left:0}@media (min-width:783px){.folded .interface-interface-skeleton{left:36px}}body.is-fullscreen-mode .interface-interface-skeleton{left:0!important}.interface-interface-skeleton__body{flex-grow:1;display:flex;overflow:auto;overscroll-behavior-y:none}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{flex-grow:1;display:flex;flex-direction:column;overflow:auto;z-index:20}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{display:block;flex-shrink:0;position:absolute;z-index:100000;top:0;right:0;bottom:0;left:0;background:#fff;color:#1e1e1e}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;z-index:90;width:auto}}.interface-interface-skeleton__sidebar{overflow:auto}@media (min-width:782px){.interface-interface-skeleton__sidebar{border-left:1px solid #e0e0e0}}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar{border-right:1px solid #e0e0e0}}.interface-interface-skeleton__header{flex-shrink:0;height:auto;border-bottom:1px solid #e0e0e0;z-index:30;color:#1e1e1e}.interface-interface-skeleton__footer{height:auto;flex-shrink:0;border-top:1px solid #e0e0e0;color:#1e1e1e;position:absolute;bottom:0;left:0;width:100%;background-color:#fff;z-index:90;display:none}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{z-index:30;display:flex;background:#fff;height:24px;align-items:center;font-size:13px;padding:0 18px}.interface-interface-skeleton__actions{z-index:100000;position:fixed!important;top:-9999em;bottom:auto;left:auto;right:0;width:280px;color:#1e1e1e}.interface-interface-skeleton__actions:focus{top:auto;bottom:0}.interface-more-menu-dropdown{margin-left:-4px}.interface-more-menu-dropdown .components-button{width:auto;padding:0 2px}@media (min-width:600px){.interface-more-menu-dropdown{margin-left:0}.interface-more-menu-dropdown .components-button{padding:0 4px}}.interface-more-menu-dropdown__content .components-popover__content{min-width:280px}@media (min-width:480px){.interface-more-menu-dropdown__content .components-popover__content{width:auto;max-width:480px}}.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.interface-more-menu-dropdown__content{z-index:99998}.interface-pinned-items{display:flex}.interface-pinned-items .components-button:not(:first-child){display:none}@media (min-width:600px){.interface-pinned-items .components-button:not(:first-child){display:flex}}.interface-pinned-items .components-button{margin-left:4px}.interface-pinned-items .components-button svg{max-width:24px;max-height:24px}.edit-site-block-editor__editor-styles-wrapper .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-site-block-editor__editor-styles-wrapper .components-button.has-icon,.edit-site-block-editor__editor-styles-wrapper .components-button.is-tertiary{padding:6px}.edit-site-visual-editor{background-color:#2f2f2f;align-items:center}.edit-site-visual-editor.is-focus-mode{padding:48px}.edit-site-visual-editor.is-focus-mode .edit-site-visual-editor__editor-canvas{border-radius:2px}.edit-site-visual-editor__editor-canvas{border-radius:2px 2px 0 0}.edit-site-visual-editor__back-button{position:absolute;top:8px;left:8px;color:#fff}.edit-site-visual-editor__back-button:active:not([aria-disabled=true]),.edit-site-visual-editor__back-button:focus:not([aria-disabled=true]),.edit-site-visual-editor__back-button:hover{color:#f0f0f0}.components-resizable-box__container{margin:0 auto}.resizable-editor__drag-handle{position:absolute;top:0;bottom:0;padding:0;margin:auto 0;width:8px;height:100px;-webkit-appearance:none;appearance:none;cursor:grab;outline:none;background:#757575;border-radius:4px;border:0}.resizable-editor__drag-handle.is-left{left:-28px}.resizable-editor__drag-handle.is-right{right:-28px}.resizable-editor__drag-handle:hover{background:#949494}.resizable-editor__drag-handle:active{cursor:grabbing;background:#949494}.resizable-editor__drag-handle:focus{box-shadow:0 0 0 1px #2f2f2f,0 0 0 calc(var(--wp-admin-border-width-focus) + 1px) var(--wp-admin-theme-color)}.edit-site-global-styles-preview{display:flex;align-items:center;justify-content:center;min-height:152px;line-height:1}.edit-site-global-styles-preview .component-color-indicator{border-radius:50%;border:0;height:36px;width:36px;margin-left:0;padding:0}.edit-site-global-styles-screen-colors{margin:16px}.edit-site-global-styles-screen-colors .component-color-indicator{margin-left:0;display:block;border-radius:50%;border:0;height:24px;width:24px;padding:0;background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,25px 25px;background-size:10px 10px}.edit-site-global-styles-header__description{padding:0 16px}.edit-site-global-styles-subtitle{margin-bottom:0!important;text-transform:uppercase;font-weight:500}.edit-site-header{align-items:center;background-color:#fff;display:flex;height:60px;box-sizing:border-box;width:100%;justify-content:space-between}body.is-fullscreen-mode .edit-site-header{padding-left:60px;transition:padding-left 20ms linear;transition-delay:80ms}@media (prefers-reduced-motion:reduce){body.is-fullscreen-mode .edit-site-header{transition-duration:0s;transition-delay:0s}}.edit-site-header .edit-site-header_end,.edit-site-header .edit-site-header_start{display:flex}.edit-site-header .edit-site-header_center{display:flex;align-items:center;height:100%;min-width:0}.edit-site-header .edit-site-header_end{justify-content:flex-end}body.is-navigation-sidebar-open .edit-site-header{padding-left:0;transition:padding-left 20ms linear;transition-delay:0ms}@media (prefers-reduced-motion:reduce){body.is-navigation-sidebar-open .edit-site-header{transition-duration:0s;transition-delay:0s}}@media (max-width:959px){body.is-navigation-sidebar-open .edit-site-header .edit-site-header-toolbar__inserter-toggle~.components-button,body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .components-button:not(.is-primary){display:none}body.is-navigation-sidebar-open .edit-site-header .edit-site-save-button__button{margin-right:0}}.edit-site-header__toolbar{display:flex;align-items:center;padding-left:8px}@media (min-width:600px){.edit-site-header__toolbar{padding-left:24px}}@media (min-width:1280px){.edit-site-header__toolbar{padding-right:8px}}.edit-site-header__toolbar .edit-site-header-toolbar__inserter-toggle{margin-right:8px;min-width:32px;width:32px;height:32px;padding:0}.edit-site-header__toolbar .edit-site-header-toolbar__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.edit-site-header__toolbar .edit-site-header-toolbar__inserter-toggle svg{transition-duration:0s;transition-delay:0s}}.edit-site-header__toolbar .edit-site-header-toolbar__inserter-toggle.is-pressed svg{transform:rotate(45deg)}.edit-site-header__toolbar-switchers{align-items:center;display:flex}.edit-site-header__toolbar-switchers-separator{margin:0 -6px}.edit-site-header__actions{display:inline-flex;align-items:center;flex-wrap:wrap;padding-right:4px}.edit-site-header__actions .interface-pinned-items{display:none}@media (min-width:782px){.edit-site-header__actions .interface-pinned-items{display:inline-flex}}.edit-site-header__actions .components-button.components-button,.edit-site-header__actions .editor-post-saved-state{margin-right:4px}@media (min-width:600px){.edit-site-header__actions .components-button.components-button,.edit-site-header__actions .editor-post-saved-state{margin-right:12px}}.edit-site-header__actions .components-button.is-tertiary,.edit-site-header__actions .editor-post-saved-state{padding:0 6px}.edit-site-header__actions .edit-site-more-menu .components-button,.edit-site-header__actions .interface-pinned-items .components-button{margin-right:0}@media (min-width:600px){.edit-site-header__actions{padding-right:16px}}.edit-site-header__actions-more-menu{margin-left:-4px}.edit-site-header__actions-more-menu .components-icon-button{padding:8px 2px;width:auto}@media (min-width:600px){.edit-site-header__actions-more-menu{margin-left:4px}.edit-site-header__actions-more-menu .components-icon-button{padding:8px 4px}}.edit-site-document-actions{display:flex;flex-direction:column;justify-content:center;height:100%;min-width:0}.edit-site-document-actions .edit-site-document-actions__title-wrapper{display:flex;flex-direction:row;justify-content:center;align-items:center;min-width:0}.edit-site-document-actions .edit-site-document-actions__title-wrapper .components-dropdown{display:inline-flex;margin-left:4px}.edit-site-document-actions .edit-site-document-actions__title-wrapper .components-dropdown .components-button{min-width:0;padding:0}.edit-site-document-actions .edit-site-document-actions__title-wrapper>h1{margin:0;min-width:0}.edit-site-document-actions .edit-site-document-actions__title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px}@media (min-width:782px){.edit-site-document-actions .edit-site-document-actions__title{max-width:75px}}@media (min-width:1080px){.edit-site-document-actions .edit-site-document-actions__title{max-width:180px}}.edit-site-document-actions .edit-site-document-actions__secondary-item{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:0;opacity:0;padding:0;transition:all .2s ease;background:#e0e0e0;border-radius:2px}@media (prefers-reduced-motion:reduce){.edit-site-document-actions .edit-site-document-actions__secondary-item{transition-duration:0s;transition-delay:0s}}.edit-site-document-actions.has-secondary-label .edit-site-document-actions__secondary-item{opacity:1;padding:0 4px;max-width:180px;margin-left:6px}.edit-site-document-actions__info-dropdown>.components-popover__content>div{padding:0;min-width:240px}.edit-site-more-menu{margin-left:-4px}.edit-site-more-menu .components-button{width:auto;padding:0 2px}@media (min-width:600px){.edit-site-more-menu{margin-left:4px}.edit-site-more-menu .components-button{padding:0 4px}}.edit-site-more-menu__content .components-popover__content{min-width:260px}.edit-site-more-menu__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.edit-site-more-menu__content{z-index:99998}.edit-site-navigation-toggle{align-items:center;background:#1e1e1e;border-radius:0;display:flex;position:absolute;z-index:31;height:60px;width:60px}.edit-site-navigation-toggle__button{align-items:center;background:#1e1e1e;border-radius:0;color:#fff;height:61px;width:60px;z-index:1;margin-bottom:-1px}.edit-site-navigation-toggle__button.has-icon{min-width:60px}.edit-site-navigation-toggle__button.has-icon:active,.edit-site-navigation-toggle__button.has-icon:hover{color:#fff}.edit-site-navigation-toggle__button.has-icon:focus{box-shadow:none}.edit-site-navigation-toggle__button.has-icon:before{transition:box-shadow .1s ease;content:"";display:block;position:absolute;top:9px;right:9px;bottom:9px;left:9px;border-radius:4px;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #1e1e1e}@media (prefers-reduced-motion:reduce){.edit-site-navigation-toggle__button.has-icon:before{transition-duration:0s;transition-delay:0s}}.edit-site-navigation-toggle__button.has-icon:hover:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #757575}.edit-site-navigation-toggle__button.has-icon:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) hsla(0,0%,100%,.1),inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-navigation-toggle__site-icon{width:36px;border-radius:2px}.edit-site-navigation-panel{height:100%;position:relative;width:0;overflow:hidden;background:#1e1e1e;color:#fff;transition:width .1s linear}@media (prefers-reduced-motion:reduce){.edit-site-navigation-panel{transition-duration:0s;transition-delay:0s}}@media (min-width:782px){.interface-interface-skeleton.has-footer .edit-site-navigation-panel{height:calc(100% - 25px)}}.edit-site-navigation-panel__inner{position:relative;width:300px;height:100%;overflow:hidden;visibility:hidden;transition:visibility .1s linear}@media (prefers-reduced-motion:reduce){.edit-site-navigation-panel__inner{transition-duration:0s;transition-delay:0s}}.edit-site-navigation-panel.is-open{width:300px}.edit-site-navigation-panel.is-open .edit-site-navigation-panel__inner{visibility:visible}.edit-site-navigation-panel__site-title-container{height:60px;padding-left:60px;margin:0 16px 0 8px;display:flex;align-items:center}.edit-site-navigation-panel__site-title{font-style:normal;font-weight:600;font-size:14px;line-height:20px;color:#ddd;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.edit-site-navigation-panel__scroll-container{overflow-x:hidden;overflow-y:auto;height:calc(100% - 60px)}.edit-site-navigation-panel__back-to-dashboard.components-button.is-tertiary{height:36px;margin-top:24px;padding:8px 16px 8px 8px}.edit-site-navigation-panel__back-to-dashboard.components-button.is-tertiary:focus:not(:disabled){border-bottom-color:transparent}.edit-site-navigation-panel__preview{display:none;border:1px solid #ccc;width:300px;padding:16px;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.05);border-radius:2px;position:absolute;top:73px;left:312px;color:#1e1e1e;z-index:32}@media (min-width:782px){.edit-site-navigation-panel__preview{display:block}}.edit-site-navigation-panel__template-item{display:block}.edit-site-navigation-panel__template-item .components-button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;height:auto;min-height:36px;text-align:left;padding-left:16px;padding-right:16px;color:inherit}.edit-site-navigation-panel__template-item-title{font-size:14px;line-height:20px}.edit-site-navigation-panel__template-item-title em{margin-right:1ch}.edit-site-navigation-panel__template-part-item .components-navigation__item-title,.edit-site-navigation-panel__template-parts .components-navigation__menu-title-heading{text-transform:capitalize}.components-navigation__item+.edit-site-navigation-panel__template-item{margin-top:16px}.edit-site-navigation-panel__template-item+.edit-site-navigation-panel__template-item{margin-top:8px}.edit-site-navigation-panel__info-wrapper{padding:4px 0}.edit-site-navigation-panel__template-item-description{padding-top:8px;font-size:12px;line-height:16px}.edit-site-navigation-panel__new-template-dropdown{margin:0 0 0 12px}.edit-site-navigation-panel__new-template-dropdown button{margin:0}@media (min-width:600px){.edit-site-navigation-panel__new-template-popover{min-width:300px}}.edit-site-list-header{position:relative;align-items:center;background-color:#fff;display:flex;height:60px;box-sizing:border-box;width:100%;justify-content:flex-end;padding-right:16px}body.is-fullscreen-mode .edit-site-list-header{padding-left:60px;transition:padding-left 20ms linear;transition-delay:80ms}@media (prefers-reduced-motion:reduce){body.is-fullscreen-mode .edit-site-list-header{transition-duration:0s;transition-delay:0s}}.edit-site-list-header .edit-site-list-header__title{position:absolute;left:0;width:100%;text-align:center;font-size:20px;padding:0;margin:0}.edit-site-list-header__right{position:relative}.edit-site .edit-site-list .interface-interface-skeleton__editor{min-width:100%}@media (min-width:782px){.edit-site .edit-site-list .interface-interface-skeleton__editor{min-width:0}}.edit-site .edit-site-list .interface-interface-skeleton__content{background:#fff}.edit-site-list-main{display:flex;align-items:center;justify-content:center;padding:16px}@media (min-width:782px){.edit-site-list-main{padding:72px}}.edit-site-list-table{width:100%;border:1px solid #e0e0e0;border-radius:2px;margin:0;overflow:hidden}.edit-site-list-table li{display:flex;align-items:center;padding:16px;box-sizing:border-box;border-top:1px solid #f0f0f0;margin:0}@media (min-width:782px){.edit-site-list-table li{padding:24px 32px}}.edit-site-list-table li .edit-site-list-table-column:first-child{width:calc(60% - 36px)}.edit-site-list-table li .edit-site-list-table-column:first-child a{display:block;text-decoration:none;font-weight:500;margin-bottom:4px}.edit-site-list-table li .edit-site-list-table-column:nth-child(2){width:calc(40% - 36px)}.edit-site-list-table li .edit-site-list-table-column:nth-child(3){min-width:36px}.edit-site-list-table li.edit-site-list-table-head{border-bottom:1px solid #e0e0e0;font-size:16px;font-weight:500;text-align:left;color:#000;border-top:none}.edit-site-list-table li.edit-site-list-table-head+li{border-top:0}.edit-site-new-template-dropdown .components-dropdown-menu__toggle{padding:6px 12px}@media (min-width:600px){.edit-site-new-template-dropdown .edit-site-new-template-dropdown__popover{min-width:300px}}.edit-site-sidebar{width:280px}.edit-site-sidebar>.components-panel{border-left:0;border-right:0;margin-bottom:-1px;margin-top:-1px}.edit-site-sidebar>.components-panel>.components-panel__header{background:#f0f0f0}.edit-site-sidebar .block-editor-block-inspector__card{margin:0}.edit-site-global-styles-sidebar .interface-complementary-area-header .components-button.has-icon{margin-left:0}.edit-site-global-styles-sidebar__reset-button.components-button{margin-left:auto}.edit-site-global-styles-sidebar__border-controls-row{display:flex;justify-content:space-between;margin-bottom:12px}.edit-site-global-styles-sidebar__border-controls-row>*{width:calc(50% - 8px)}.edit-site-global-styles-sidebar__border-controls-row .components-border-style-control__buttons{margin-bottom:0}.edit-site-global-styles-sidebar .components-navigation__menu-title-heading{font-size:15.6px;font-weight:500}.edit-site-global-styles-sidebar .components-navigation__item>button span{font-weight:500}.edit-site-global-styles-sidebar .block-editor-panel-color-gradient-settings,.edit-site-typography-panel{border:0}.edit-site-global-styles-sidebar__blocks-group{padding-top:24px;border-top:1px solid #e0e0e0}.edit-site-global-styles-sidebar__blocks-group-help{padding:0 16px}.edit-site-global-styles-color-palette-panel{padding:16px}.edit-site-global-styles-sidebar__beta{display:inline-flex;margin-left:8px;padding:0 8px;height:24px;border-radius:2px;background-color:#000;color:#fff;align-items:center;font-size:12px;line-height:1}.components-panel__header.edit-site-sidebar__panel-tabs{justify-content:flex-start;padding-left:0;padding-right:16px;border-top:0;margin-top:0}.components-panel__header.edit-site-sidebar__panel-tabs ul{display:flex}.components-panel__header.edit-site-sidebar__panel-tabs li{margin:0}.components-panel__header.edit-site-sidebar__panel-tabs .components-button.has-icon{display:none;margin:0 0 0 auto;padding:0;min-width:24px;height:24px}@media (min-width:782px){.components-panel__header.edit-site-sidebar__panel-tabs .components-button.has-icon{display:flex}}.components-button.edit-site-sidebar__panel-tab{border-radius:0;height:48px;background:transparent;border:none;box-shadow:none;cursor:pointer;display:inline-block;padding:3px 15px;margin-left:0;font-weight:500}.components-button.edit-site-sidebar__panel-tab:after{content:attr(data-label);display:block;font-weight:600;height:0;overflow:hidden;speak:none;visibility:hidden}.components-button.edit-site-sidebar__panel-tab.is-active{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) transparent,inset 0 -4px 0 0 var(--wp-admin-theme-color);position:relative;z-index:1}.components-button.edit-site-sidebar__panel-tab.is-active:before{content:"";position:absolute;top:0;bottom:1px;right:0;left:0;border-bottom:4px solid transparent}.components-button.edit-site-sidebar__panel-tab:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);position:relative;z-index:1}.components-button.edit-site-sidebar__panel-tab.is-active:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 -4px 0 0 var(--wp-admin-theme-color)}.edit-site-template-card{display:flex;align-items:flex-start}.edit-site-template-card__content{flex-grow:1;margin-bottom:4px}.edit-site-template-card__title{font-weight:500;line-height:24px}.edit-site-template-card__title.edit-site-template-card__title{margin:0 0 4px}.edit-site-template-card__description{font-size:13px;margin:0 0 16px}.edit-site-template-card__icon{flex:0 0 24px;margin-right:12px;width:24px;height:24px}h3.edit-site-template-card__template-areas-title{font-weight:500;margin:0 0 8px}.edit-site-template-card__template-areas-list,.edit-site-template-card__template-areas-list>li{margin:0}.edit-site-template-card__template-areas-item{width:100%}.edit-site-template-card__template-areas-item.components-button.has-icon{padding:0}html #wpadminbar{display:none}html.wp-toolbar{padding-top:0}.edit-site-editor__toggle-save-panel{z-index:100000;position:fixed!important;top:-9999em;bottom:auto;left:auto;right:0;width:280px;background-color:#fff;border:1px dotted #ddd;height:auto!important;padding:24px;display:flex;justify-content:center}.interface-interface-skeleton__actions:focus-within .edit-site-editor__toggle-save-panel,.interface-interface-skeleton__actions:focus .edit-site-editor__toggle-save-panel{top:auto;bottom:0}.edit-site-visual-editor{position:relative;height:100%;display:block;overflow:hidden}.edit-site-visual-editor iframe{display:block;width:100%;height:100%;background-color:#fff}.edit-site .components-editor-notices__snackbar{position:fixed;right:0;bottom:40px;padding-left:16px;padding-right:16px;left:0}@media (min-width:783px){.edit-site .components-editor-notices__snackbar{left:160px}}@media (min-width:783px){.auto-fold .edit-site .components-editor-notices__snackbar{left:36px}}@media (min-width:961px){.auto-fold .edit-site .components-editor-notices__snackbar{left:160px}}.folded .edit-site .components-editor-notices__snackbar{left:0}@media (min-width:783px){.folded .edit-site .components-editor-notices__snackbar{left:36px}}body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{left:0!important}.edit-site-template-details .edit-site-template-details__group{margin:0;padding:16px}.edit-site-template-details .edit-site-template-details__group+.edit-site-template-details__group{border-top:1px solid #ccc}.edit-site-template-details .edit-site-template-details__title{margin:0}.edit-site-template-details .edit-site-template-details__description{margin:12px 0 0;color:#757575}.edit-site-template-details .edit-site-template-details__group.edit-site-template-details__template-areas{padding:8px}.edit-site-template-details .edit-site-template-details__template-areas-item{position:relative}.edit-site-template-details .edit-site-template-details__template-areas-item .edit-site-template-details__template-areas-item-more{position:absolute;right:0;top:0;bottom:0;margin:auto 0}.edit-site-template-details .edit-site-template-details__revert{padding:12px 8px}.edit-site-template-details .edit-site-template-details__revert-button{height:auto;padding:4px 8px;text-align:left}.edit-site-template-details .edit-site-template-details__revert-button:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 3px #fff}.edit-site-template-details .edit-site-template-details__show-all-button.components-button{display:flex;justify-content:center;background:#1e1e1e;color:#fff;width:100%;height:44px;border-radius:0}.edit-site-template-details .edit-site-template-details__show-all-button.components-button:hover{color:#fff}.edit-site-template-details .edit-site-template-details__show-all-button.components-button:active{color:#ccc}.edit-site-template-details .edit-site-template-details__show-all-button.components-button:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 3px #fff}.edit-site-create-template-part-modal{z-index:1000001}@media (min-width:600px){.edit-site-create-template-part-modal .components-modal__frame{max-width:500px}}.edit-site-create-template-part-modal__modal-actions{padding-top:12px}.edit-site-create-template-part-modal__area-base-control .components-base-control__label{margin:16px 0 8px;cursor:auto}.edit-site-create-template-part-modal__area-radio-group{width:100%;border:1px solid #757575;border-radius:2px}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio{display:block;width:100%;height:100%;text-align:left;padding:12px}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover{margin:0;background-color:inherit;border-bottom:1px solid #757575;border-radius:0}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:focus){box-shadow:none}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:focus{border-bottom:1px solid #fff}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:last-of-type{border-bottom:none}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true]{color:#1e1e1e;cursor:auto}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover) .edit-site-create-template-part-modal__option-label div,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true] .edit-site-create-template-part-modal__option-label div{color:#949494}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label{padding-top:4px;white-space:normal}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label div{padding-top:4px;font-size:12px}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__checkbox{margin-left:auto;min-width:24px}.edit-site-editor__inserter-panel,.edit-site-editor__list-view-panel{height:100%;display:flex;flex-direction:column}.edit-site-editor__list-view-panel{min-width:350px}.edit-site-editor__inserter-panel-header{padding-top:8px;padding-right:8px;display:flex;justify-content:flex-end}@media (min-width:782px){.edit-site-editor__inserter-panel-header{display:none}}.edit-site-editor__inserter-panel-content,.edit-site-editor__list-view-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-site-editor__inserter-panel-content{height:100%}}.edit-site-editor__list-view-panel-header{align-items:center;border-bottom:1px solid #ddd;display:flex;justify-content:space-between;height:48px;padding-left:16px;padding-right:4px}.edit-site-editor__list-view-panel-content{overflow-y:auto;padding:8px}.edit-site-welcome-guide{width:312px}.edit-site-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-site-welcome-guide__image>img{display:block;max-width:100%;-o-object-fit:cover;object-fit:cover}.edit-site-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-site-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 16px;padding:0 32px}.edit-site-welcome-guide__text img{vertical-align:bottom}.edit-site-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}body.appearance_page_gutenberg-edit-site,body.site-editor-php,html.wp-toolbar{background:#fff}body.appearance_page_gutenberg-edit-site #wpcontent,body.site-editor-php #wpcontent{padding-left:0}body.appearance_page_gutenberg-edit-site #wpbody-content,body.site-editor-php #wpbody-content{padding-bottom:0}body.appearance_page_gutenberg-edit-site #wpbody-content>div:not(.edit-site):not(#screen-meta),body.appearance_page_gutenberg-edit-site #wpfooter,body.site-editor-php #wpbody-content>div:not(.edit-site):not(#screen-meta),body.site-editor-php #wpfooter{display:none}body.appearance_page_gutenberg-edit-site .a11y-speak-region,body.site-editor-php .a11y-speak-region{left:-1px;top:-1px}body.appearance_page_gutenberg-edit-site ul#adminmenu>li.current>a.current:after,body.appearance_page_gutenberg-edit-site ul#adminmenu a.wp-has-current-submenu:after,body.site-editor-php ul#adminmenu>li.current>a.current:after,body.site-editor-php ul#adminmenu a.wp-has-current-submenu:after{border-right-color:#fff}body.appearance_page_gutenberg-edit-site .media-frame select.attachment-filters:last-of-type,body.site-editor-php .media-frame select.attachment-filters:last-of-type{width:auto;max-width:100%}.components-modal__frame,.edit-site{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.edit-site *,.edit-site :after,.edit-site :before{box-sizing:inherit}@media (min-width:600px){.edit-site{bottom:0;left:0;min-height:100vh;position:absolute;right:0;top:0}}.edit-site .interface-interface-skeleton{top:0}.edit-site .interface-complementary-area__pin-unpin-item.components-button{display:none}.edit-site .interface-interface-skeleton__content{background-color:#2f2f2f}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}} \ No newline at end of file +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-right:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-right:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-left:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-left:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}}@media (min-width:782px){.components-panel__header+.interface-complementary-area-header{margin-top:0}}.interface-complementary-area{background:#fff;color:#1e1e1e}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:0}}.interface-complementary-area p{margin-top:0}.interface-complementary-area h2{font-size:13px;color:#1e1e1e;margin-bottom:1.5em}.interface-complementary-area h3{font-size:11px;text-transform:uppercase;font-weight:500;color:#1e1e1e;margin-bottom:1.5em}.interface-complementary-area hr{border-top:none;border-bottom:1px solid #f0f0f0;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{top:auto;right:10px;bottom:10px;left:auto}@media (min-width:782px){body.js.is-fullscreen-mode{margin-top:-32px;height:calc(100% + 32px)}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-left:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{display:flex;flex-direction:row;height:auto;max-height:100%;position:fixed;top:46px;right:0;bottom:0}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex-direction:column;flex:0 1 100%;overflow:hidden}.interface-interface-skeleton{left:0}@media (min-width:783px){.interface-interface-skeleton{left:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{left:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{left:160px}}.folded .interface-interface-skeleton{left:0}@media (min-width:783px){.folded .interface-interface-skeleton{left:36px}}body.is-fullscreen-mode .interface-interface-skeleton{left:0!important}.interface-interface-skeleton__body{flex-grow:1;display:flex;overflow:auto;overscroll-behavior-y:none}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{flex-grow:1;display:flex;flex-direction:column;overflow:auto;z-index:20}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{display:block;flex-shrink:0;position:absolute;z-index:100000;top:0;right:0;bottom:0;left:0;background:#fff;color:#1e1e1e}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;z-index:90;width:auto}}.interface-interface-skeleton__sidebar{overflow:auto}@media (min-width:782px){.interface-interface-skeleton__sidebar{border-left:1px solid #e0e0e0}}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar{border-right:1px solid #e0e0e0}}.interface-interface-skeleton__header{flex-shrink:0;height:auto;border-bottom:1px solid #e0e0e0;z-index:30;color:#1e1e1e}.interface-interface-skeleton__footer{height:auto;flex-shrink:0;border-top:1px solid #e0e0e0;color:#1e1e1e;position:absolute;bottom:0;left:0;width:100%;background-color:#fff;z-index:90;display:none}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{z-index:30;display:flex;background:#fff;height:24px;align-items:center;font-size:13px;padding:0 18px}.interface-interface-skeleton__actions{z-index:100000;position:fixed!important;top:-9999em;bottom:auto;left:auto;right:0;width:280px;color:#1e1e1e}.interface-interface-skeleton__actions:focus{top:auto;bottom:0}.interface-more-menu-dropdown{margin-left:-4px}.interface-more-menu-dropdown .components-button{width:auto;padding:0 2px}@media (min-width:600px){.interface-more-menu-dropdown{margin-left:0}.interface-more-menu-dropdown .components-button{padding:0 4px}}.interface-more-menu-dropdown__content .components-popover__content{min-width:280px}@media (min-width:480px){.interface-more-menu-dropdown__content .components-popover__content{width:auto;max-width:480px}}.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.interface-more-menu-dropdown__content{z-index:99998}.interface-pinned-items{display:flex}.interface-pinned-items .components-button:not(:first-child){display:none}@media (min-width:600px){.interface-pinned-items .components-button:not(:first-child){display:flex}}.interface-pinned-items .components-button{margin-left:4px}.interface-pinned-items .components-button svg{max-width:24px;max-height:24px}.edit-site-block-editor__editor-styles-wrapper .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-site-block-editor__editor-styles-wrapper .components-button.has-icon,.edit-site-block-editor__editor-styles-wrapper .components-button.is-tertiary{padding:6px}.edit-site-visual-editor{background-color:#2f2f2f;align-items:center}.edit-site-visual-editor.is-focus-mode{padding:48px}.edit-site-visual-editor.is-focus-mode .edit-site-visual-editor__editor-canvas{border-radius:2px}.edit-site-visual-editor__editor-canvas{border-radius:2px 2px 0 0}.edit-site-visual-editor__back-button{position:absolute;top:8px;left:8px;color:#fff}.edit-site-visual-editor__back-button:active:not([aria-disabled=true]),.edit-site-visual-editor__back-button:focus:not([aria-disabled=true]),.edit-site-visual-editor__back-button:hover{color:#f0f0f0}.components-resizable-box__container{margin:0 auto}.resizable-editor__drag-handle{position:absolute;top:0;bottom:0;padding:0;margin:auto 0;width:8px;height:100px;-webkit-appearance:none;appearance:none;cursor:grab;outline:none;background:#757575;border-radius:4px;border:0}.resizable-editor__drag-handle.is-left{left:-28px}.resizable-editor__drag-handle.is-right{right:-28px}.resizable-editor__drag-handle:hover{background:#949494}.resizable-editor__drag-handle:active{cursor:grabbing;background:#949494}.resizable-editor__drag-handle:focus{box-shadow:0 0 0 1px #2f2f2f,0 0 0 calc(var(--wp-admin-border-width-focus) + 1px) var(--wp-admin-theme-color)}.edit-site-global-styles-preview{display:flex;align-items:center;justify-content:center;min-height:152px;line-height:1}.edit-site-global-styles-preview .component-color-indicator{border-radius:50%;border:0;height:36px;width:36px;margin-left:0;padding:0}.edit-site-typography-panel__preview{display:flex;align-items:center;justify-content:center;min-height:100px;margin-bottom:16px;background:#f0f0f0;border-radius:2px}.edit-site-global-styles-screen-typography{margin:16px}.edit-site-global-styles-screen-typography__indicator{height:24px;width:24px;font-size:14px;display:flex!important;align-items:center;justify-content:center;border-radius:2px}.edit-site-global-styles-screen-colors{margin:16px}.edit-site-global-styles-screen-colors .component-color-indicator{margin-left:0;display:block;border-radius:50%;border:0;height:24px;width:24px;padding:0;background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,25px 25px;background-size:10px 10px}.edit-site-global-styles-header__description{padding:0 16px}.edit-site-global-styles-subtitle{margin-bottom:0!important;text-transform:uppercase;font-weight:500}.edit-site-screen-color-palette-toggle.edit-site-screen-color-palette-toggle{margin-right:16px;margin-left:16px;width:unset}.edit-site-screen-color-palette-toggle.edit-site-screen-color-palette-toggle .components-toggle-group-control{min-height:32px}.edit-site-header{align-items:center;background-color:#fff;display:flex;height:60px;box-sizing:border-box;width:100%;justify-content:space-between}body.is-fullscreen-mode .edit-site-header{padding-left:60px;transition:padding-left 20ms linear;transition-delay:80ms}@media (prefers-reduced-motion:reduce){body.is-fullscreen-mode .edit-site-header{transition-duration:0s;transition-delay:0s}}.edit-site-header .edit-site-header_end,.edit-site-header .edit-site-header_start{display:flex}.edit-site-header .edit-site-header_center{display:flex;align-items:center;height:100%;min-width:0}.edit-site-header .edit-site-header_end{justify-content:flex-end}body.is-navigation-sidebar-open .edit-site-header{padding-left:0;transition:padding-left 20ms linear;transition-delay:0ms}@media (prefers-reduced-motion:reduce){body.is-navigation-sidebar-open .edit-site-header{transition-duration:0s;transition-delay:0s}}@media (max-width:959px){body.is-navigation-sidebar-open .edit-site-header .edit-site-header-toolbar__inserter-toggle~.components-button,body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .components-button:not(.is-primary){display:none}body.is-navigation-sidebar-open .edit-site-header .edit-site-save-button__button{margin-right:0}}.edit-site-header__toolbar{display:flex;align-items:center;padding-left:8px}@media (min-width:600px){.edit-site-header__toolbar{padding-left:24px}}@media (min-width:1280px){.edit-site-header__toolbar{padding-right:8px}}.edit-site-header__toolbar .edit-site-header-toolbar__inserter-toggle{margin-right:8px;min-width:32px;width:32px;height:32px;padding:0}.edit-site-header__toolbar .edit-site-header-toolbar__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.edit-site-header__toolbar .edit-site-header-toolbar__inserter-toggle svg{transition-duration:0s;transition-delay:0s}}.edit-site-header__toolbar .edit-site-header-toolbar__inserter-toggle.is-pressed svg{transform:rotate(45deg)}.edit-site-header__toolbar-switchers{align-items:center;display:flex}.edit-site-header__toolbar-switchers-separator{margin:0 -6px}.edit-site-header__actions{display:inline-flex;align-items:center;flex-wrap:wrap;padding-right:4px}.edit-site-header__actions .interface-pinned-items{display:none}@media (min-width:782px){.edit-site-header__actions .interface-pinned-items{display:inline-flex}}.edit-site-header__actions .components-button.components-button,.edit-site-header__actions .editor-post-saved-state{margin-right:4px}@media (min-width:600px){.edit-site-header__actions .components-button.components-button,.edit-site-header__actions .editor-post-saved-state{margin-right:12px}}.edit-site-header__actions .components-button.is-tertiary,.edit-site-header__actions .editor-post-saved-state{padding:0 6px}.edit-site-header__actions .edit-site-more-menu .components-button,.edit-site-header__actions .interface-pinned-items .components-button{margin-right:0}@media (min-width:600px){.edit-site-header__actions{padding-right:16px}}.edit-site-header__actions-more-menu{margin-left:-4px}.edit-site-header__actions-more-menu .components-icon-button{padding:8px 2px;width:auto}@media (min-width:600px){.edit-site-header__actions-more-menu{margin-left:4px}.edit-site-header__actions-more-menu .components-icon-button{padding:8px 4px}}.edit-site-document-actions{display:flex;flex-direction:column;justify-content:center;height:100%;min-width:0}.edit-site-document-actions .edit-site-document-actions__title-wrapper{display:flex;flex-direction:row;justify-content:center;align-items:center;min-width:0}.edit-site-document-actions .edit-site-document-actions__title-wrapper .components-dropdown{display:inline-flex;margin-left:4px}.edit-site-document-actions .edit-site-document-actions__title-wrapper .components-dropdown .components-button{min-width:0;padding:0}.edit-site-document-actions .edit-site-document-actions__title-wrapper>h1{margin:0;min-width:0}.edit-site-document-actions .edit-site-document-actions__title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px}@media (min-width:782px){.edit-site-document-actions .edit-site-document-actions__title{max-width:75px}}@media (min-width:1080px){.edit-site-document-actions .edit-site-document-actions__title{max-width:180px}}.edit-site-document-actions .edit-site-document-actions__secondary-item{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:0;opacity:0;padding:0;transition:all .2s ease;background:#e0e0e0;border-radius:2px}@media (prefers-reduced-motion:reduce){.edit-site-document-actions .edit-site-document-actions__secondary-item{transition-duration:0s;transition-delay:0s}}.edit-site-document-actions.has-secondary-label .edit-site-document-actions__secondary-item{opacity:1;padding:0 4px;max-width:180px;margin-left:6px}.edit-site-document-actions__info-dropdown>.components-popover__content>div{padding:0;min-width:240px}.edit-site-more-menu{margin-left:-4px}.edit-site-more-menu .components-button{width:auto;padding:0 2px}@media (min-width:600px){.edit-site-more-menu{margin-left:4px}.edit-site-more-menu .components-button{padding:0 4px}}.edit-site-more-menu__content .components-popover__content{min-width:260px}.edit-site-more-menu__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.edit-site-more-menu__content{z-index:99998}.edit-site-navigation-toggle{align-items:center;background:#1e1e1e;border-radius:0;display:flex;position:absolute;z-index:31;height:60px;width:60px}.edit-site-navigation-toggle__button{align-items:center;background:#1e1e1e;border-radius:0;color:#fff;height:61px;width:60px;z-index:1;margin-bottom:-1px}.edit-site-navigation-toggle__button.has-icon{min-width:60px}.edit-site-navigation-toggle__button.has-icon:active,.edit-site-navigation-toggle__button.has-icon:hover{color:#fff}.edit-site-navigation-toggle__button.has-icon:focus{box-shadow:none}.edit-site-navigation-toggle__button.has-icon:before{transition:box-shadow .1s ease;content:"";display:block;position:absolute;top:9px;right:9px;bottom:9px;left:9px;border-radius:4px;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #1e1e1e}@media (prefers-reduced-motion:reduce){.edit-site-navigation-toggle__button.has-icon:before{transition-duration:0s;transition-delay:0s}}.edit-site-navigation-toggle__button.has-icon:hover:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #757575}.edit-site-navigation-toggle__button.has-icon:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) hsla(0,0%,100%,.1),inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-navigation-toggle__site-icon{width:36px;border-radius:2px}.edit-site-navigation-panel{height:100%;position:relative;width:0;overflow:hidden;background:#1e1e1e;color:#fff;transition:width .1s linear}@media (prefers-reduced-motion:reduce){.edit-site-navigation-panel{transition-duration:0s;transition-delay:0s}}@media (min-width:782px){.interface-interface-skeleton.has-footer .edit-site-navigation-panel{height:calc(100% - 25px)}}.edit-site-navigation-panel__inner{position:relative;width:300px;height:100%;overflow:hidden;visibility:hidden;transition:visibility .1s linear}@media (prefers-reduced-motion:reduce){.edit-site-navigation-panel__inner{transition-duration:0s;transition-delay:0s}}.edit-site-navigation-panel.is-open{width:300px}.edit-site-navigation-panel.is-open .edit-site-navigation-panel__inner{visibility:visible}.edit-site-navigation-panel__site-title-container{height:60px;padding-left:60px;margin:0 16px 0 8px;display:flex;align-items:center}.edit-site-navigation-panel__site-title{font-style:normal;font-weight:600;font-size:14px;line-height:20px;color:#ddd;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.edit-site-navigation-panel__scroll-container{overflow-x:hidden;overflow-y:auto;height:calc(100% - 60px)}.edit-site-navigation-panel__back-to-dashboard.components-button.is-tertiary{height:36px;margin-top:24px;padding:8px 16px 8px 8px}.edit-site-navigation-panel__back-to-dashboard.components-button.is-tertiary:focus:not(:disabled){border-bottom-color:transparent}.edit-site-navigation-panel__preview{display:none;border:1px solid #ccc;width:300px;padding:16px;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.05);border-radius:2px;position:absolute;top:73px;left:312px;color:#1e1e1e;z-index:32}@media (min-width:782px){.edit-site-navigation-panel__preview{display:block}}.edit-site-navigation-panel__template-item{display:block}.edit-site-navigation-panel__template-item .components-button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;height:auto;min-height:36px;text-align:left;padding-left:16px;padding-right:16px;color:inherit}.edit-site-navigation-panel__template-item-title{font-size:14px;line-height:20px}.edit-site-navigation-panel__template-item-title em{margin-right:1ch}.edit-site-navigation-panel__template-part-item .components-navigation__item-title,.edit-site-navigation-panel__template-parts .components-navigation__menu-title-heading{text-transform:capitalize}.components-navigation__item+.edit-site-navigation-panel__template-item{margin-top:16px}.edit-site-navigation-panel__template-item+.edit-site-navigation-panel__template-item{margin-top:8px}.edit-site-navigation-panel__info-wrapper{padding:4px 0}.edit-site-navigation-panel__template-item-description{padding-top:8px;font-size:12px;line-height:16px}.edit-site-navigation-panel__new-template-dropdown{margin:0 0 0 12px}.edit-site-navigation-panel__new-template-dropdown button{margin:0}@media (min-width:600px){.edit-site-navigation-panel__new-template-popover{min-width:300px}}.edit-site-list-header{position:relative;align-items:center;background-color:#fff;display:flex;height:60px;box-sizing:border-box;width:100%;justify-content:flex-end;padding-right:16px}body.is-fullscreen-mode .edit-site-list-header{padding-left:60px;transition:padding-left 20ms linear;transition-delay:80ms}@media (prefers-reduced-motion:reduce){body.is-fullscreen-mode .edit-site-list-header{transition-duration:0s;transition-delay:0s}}.edit-site-list-header .edit-site-list-header__title{position:absolute;left:0;width:100%;text-align:center;font-size:20px;padding:0;margin:0}.edit-site-list-header__right{position:relative}.edit-site .edit-site-list .interface-interface-skeleton__editor{min-width:100%}@media (min-width:782px){.edit-site .edit-site-list .interface-interface-skeleton__editor{min-width:0}}.edit-site .edit-site-list .interface-interface-skeleton__content{background:#fff}.edit-site-list-main{display:flex;align-items:center;justify-content:center;padding:16px}@media (min-width:782px){.edit-site-list-main{padding:72px}}.edit-site-list-table{width:100%;border:1px solid #ddd;border-radius:2px;margin:0;overflow:hidden;border-spacing:0;max-width:960px}.edit-site-list-table tr{display:flex;align-items:center;padding:16px;box-sizing:border-box;border-top:1px solid #f0f0f0;margin:0}.edit-site-list-table tr:first-child{border-top:0}@media (min-width:782px){.edit-site-list-table tr{padding:24px 32px}}.edit-site-list-table tr .edit-site-list-table-column:first-child{width:calc(60% - 18px);padding-right:24px}.edit-site-list-table tr .edit-site-list-table-column:first-child a{display:inline-block;text-decoration:none;font-weight:500;margin-bottom:4px}.edit-site-list-table tr .edit-site-list-table-column:nth-child(2){width:calc(40% - 18px)}.edit-site-list-table tr .edit-site-list-table-column:nth-child(3){min-width:36px;flex-shrink:0}.edit-site-list-table tr.edit-site-list-table-head{font-size:16px;font-weight:600;text-align:left;color:#1e1e1e;border-top:none;border-bottom:1px solid #ddd}.edit-site-list-table tr.edit-site-list-table-head th{font-weight:inherit}@media (min-width:782px){.edit-site-list.is-navigation-open .components-snackbar-list{margin-left:300px}}@media (min-width:782px){.edit-site-list__rename-modal .components-base-control{width:320px}}.edit-site-list__rename-modal .components-modal__header{border-bottom:none}.edit-site-list__rename-modal .components-modal__content:before{margin-bottom:4px}.edit-site-list__rename-modal-actions{margin-top:12px}.edit-site-template__actions button:not(:last-child){margin-right:8px}.edit-site-list-added-by__icon{display:flex;flex-shrink:0;position:relative;align-items:center;justify-content:center;width:32px;height:32px;background:#2f2f2f;border-radius:100%}.edit-site-list-added-by__icon svg{fill:#fff}.edit-site-list-added-by__icon.is-customized:after{position:absolute;content:"";background:var(--wp-admin-theme-color);height:8px;width:8px;outline:2px solid #fff;border-radius:100%;top:-1px;right:-1px}.edit-site-list-added-by__avatar{flex-shrink:0;overflow:hidden;border-radius:100%;background:#2f2f2f;width:32px;height:32px}.edit-site-list-added-by__avatar img{width:32px;height:32px;-o-object-fit:cover;object-fit:cover;opacity:0;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.edit-site-list-added-by__avatar img{transition-duration:0s;transition-delay:0s}}.edit-site-list-added-by__avatar.is-loaded img{opacity:1}.edit-site-new-template-dropdown .components-dropdown-menu__toggle{padding:6px 12px}@media (min-width:600px){.edit-site-new-template-dropdown .edit-site-new-template-dropdown__popover{min-width:300px}}.edit-site-sidebar{width:280px}.edit-site-sidebar>.components-panel{border-left:0;border-right:0;margin-bottom:-1px;margin-top:-1px}.edit-site-sidebar>.components-panel>.components-panel__header{background:#f0f0f0}.edit-site-sidebar .block-editor-block-inspector__card{margin:0}.edit-site-global-styles-sidebar .interface-complementary-area-header .components-button.has-icon{margin-left:0}.edit-site-global-styles-sidebar__reset-button.components-button{margin-left:auto}.edit-site-global-styles-sidebar__border-controls-row{display:flex;justify-content:space-between;margin-bottom:12px}.edit-site-global-styles-sidebar__border-controls-row>*{width:calc(50% - 8px)}.edit-site-global-styles-sidebar__border-controls-row .components-border-style-control__buttons{margin-bottom:0}.edit-site-global-styles-sidebar .components-navigation__menu-title-heading{font-size:15.6px;font-weight:500}.edit-site-global-styles-sidebar .components-navigation__item>button span{font-weight:500}.edit-site-global-styles-sidebar .block-editor-panel-color-gradient-settings,.edit-site-typography-panel{border:0}.edit-site-global-styles-sidebar__blocks-group{padding-top:24px;border-top:1px solid #e0e0e0}.edit-site-global-styles-sidebar__blocks-group-help{padding:0 16px}.edit-site-global-styles-color-palette-panel,.edit-site-global-styles-gradient-palette-panel{padding:16px}.edit-site-global-styles-sidebar__beta{display:inline-flex;margin-left:8px;padding:0 8px;height:24px;border-radius:2px;background-color:#000;color:#fff;align-items:center;font-size:12px;line-height:1}.components-panel__header.edit-site-sidebar__panel-tabs{justify-content:flex-start;padding-left:0;padding-right:16px;border-top:0;margin-top:0}.components-panel__header.edit-site-sidebar__panel-tabs ul{display:flex}.components-panel__header.edit-site-sidebar__panel-tabs li{margin:0}.components-panel__header.edit-site-sidebar__panel-tabs .components-button.has-icon{display:none;margin:0 0 0 auto;padding:0;min-width:24px;height:24px}@media (min-width:782px){.components-panel__header.edit-site-sidebar__panel-tabs .components-button.has-icon{display:flex}}.components-button.edit-site-sidebar__panel-tab{border-radius:0;height:48px;background:transparent;border:none;box-shadow:none;cursor:pointer;display:inline-block;padding:3px 15px;margin-left:0;font-weight:500}.components-button.edit-site-sidebar__panel-tab:after{content:attr(data-label);display:block;font-weight:600;height:0;overflow:hidden;speak:none;visibility:hidden}.components-button.edit-site-sidebar__panel-tab.is-active{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) transparent,inset 0 -4px 0 0 var(--wp-admin-theme-color);position:relative;z-index:1}.components-button.edit-site-sidebar__panel-tab.is-active:before{content:"";position:absolute;top:0;bottom:1px;right:0;left:0;border-bottom:4px solid transparent}.components-button.edit-site-sidebar__panel-tab:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);position:relative;z-index:1}.components-button.edit-site-sidebar__panel-tab.is-active:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 -4px 0 0 var(--wp-admin-theme-color)}.edit-site-template-card{display:flex;align-items:flex-start}.edit-site-template-card__content{flex-grow:1;margin-bottom:4px}.edit-site-template-card__title{font-weight:500;line-height:24px}.edit-site-template-card__title.edit-site-template-card__title{margin:0 0 4px}.edit-site-template-card__description{font-size:13px;margin:0 0 16px}.edit-site-template-card__icon{flex:0 0 24px;margin-right:12px;width:24px;height:24px}h3.edit-site-template-card__template-areas-title{font-weight:500;margin:0 0 8px}.edit-site-template-card__template-areas-list,.edit-site-template-card__template-areas-list>li{margin:0}.edit-site-template-card__template-areas-item{width:100%}.edit-site-template-card__template-areas-item.components-button.has-icon{padding:0}html #wpadminbar{display:none}html.wp-toolbar{padding-top:0}.edit-site-editor__toggle-save-panel{z-index:100000;position:fixed!important;top:-9999em;bottom:auto;left:auto;right:0;width:280px;background-color:#fff;border:1px dotted #ddd;height:auto!important;padding:24px;display:flex;justify-content:center}.interface-interface-skeleton__actions:focus-within .edit-site-editor__toggle-save-panel,.interface-interface-skeleton__actions:focus .edit-site-editor__toggle-save-panel{top:auto;bottom:0}.edit-site-visual-editor{position:relative;height:100%;display:block;overflow:hidden}.edit-site-visual-editor iframe{display:block;width:100%;height:100%;background-color:#fff}.edit-site .components-editor-notices__snackbar{position:fixed;right:0;bottom:40px;padding-left:16px;padding-right:16px;left:0}@media (min-width:783px){.edit-site .components-editor-notices__snackbar{left:160px}}@media (min-width:783px){.auto-fold .edit-site .components-editor-notices__snackbar{left:36px}}@media (min-width:961px){.auto-fold .edit-site .components-editor-notices__snackbar{left:160px}}.folded .edit-site .components-editor-notices__snackbar{left:0}@media (min-width:783px){.folded .edit-site .components-editor-notices__snackbar{left:36px}}body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{left:0!important}.edit-site-template-details .edit-site-template-details__group{margin:0;padding:16px}.edit-site-template-details .edit-site-template-details__group+.edit-site-template-details__group{border-top:1px solid #ccc}.edit-site-template-details .edit-site-template-details__title{margin:0}.edit-site-template-details .edit-site-template-details__description{margin:12px 0 0;color:#757575}.edit-site-template-details .edit-site-template-details__group.edit-site-template-details__template-areas{padding:8px}.edit-site-template-details .edit-site-template-details__template-areas-item{position:relative}.edit-site-template-details .edit-site-template-details__template-areas-item .edit-site-template-details__template-areas-item-more{position:absolute;right:0;top:0;bottom:0;margin:auto 0}.edit-site-template-details .edit-site-template-details__revert{padding:12px 8px}.edit-site-template-details .edit-site-template-details__revert-button{height:auto;padding:4px 8px;text-align:left}.edit-site-template-details .edit-site-template-details__revert-button:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 3px #fff}.edit-site-template-details .edit-site-template-details__show-all-button.components-button{display:flex;justify-content:center;background:#1e1e1e;color:#fff;width:100%;height:44px;border-radius:0}.edit-site-template-details .edit-site-template-details__show-all-button.components-button:hover{color:#fff}.edit-site-template-details .edit-site-template-details__show-all-button.components-button:active{color:#ccc}.edit-site-template-details .edit-site-template-details__show-all-button.components-button:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 3px #fff}.edit-site-create-template-part-modal{z-index:1000001}@media (min-width:600px){.edit-site-create-template-part-modal .components-modal__frame{max-width:500px}}.edit-site-create-template-part-modal__modal-actions{padding-top:12px}.edit-site-create-template-part-modal__area-base-control .components-base-control__label{margin:16px 0 8px;cursor:auto}.edit-site-create-template-part-modal__area-radio-group{width:100%;border:1px solid #757575;border-radius:2px}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio{display:block;width:100%;height:100%;text-align:left;padding:12px}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover{margin:0;background-color:inherit;border-bottom:1px solid #757575;border-radius:0}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:focus){box-shadow:none}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:focus{border-bottom:1px solid #fff}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:last-of-type{border-bottom:none}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true]{color:#1e1e1e;cursor:auto}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover) .edit-site-create-template-part-modal__option-label div,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true] .edit-site-create-template-part-modal__option-label div{color:#949494}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label{padding-top:4px;white-space:normal}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label div{padding-top:4px;font-size:12px}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__checkbox{margin-left:auto;min-width:24px}.edit-site-editor__inserter-panel,.edit-site-editor__list-view-panel{height:100%;display:flex;flex-direction:column}.edit-site-editor__list-view-panel{min-width:350px}.edit-site-editor__inserter-panel-header{padding-top:8px;padding-right:8px;display:flex;justify-content:flex-end}@media (min-width:782px){.edit-site-editor__inserter-panel-header{display:none}}.edit-site-editor__inserter-panel-content,.edit-site-editor__list-view-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-site-editor__inserter-panel-content{height:100%}}.edit-site-editor__list-view-panel-header{align-items:center;border-bottom:1px solid #ddd;display:flex;justify-content:space-between;height:48px;padding-left:16px;padding-right:4px}.edit-site-editor__list-view-panel-content{overflow-y:auto;padding:8px}.edit-site-welcome-guide{width:312px}.edit-site-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-site-welcome-guide__image>img{display:block;max-width:100%;-o-object-fit:cover;object-fit:cover}.edit-site-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-site-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 16px;padding:0 32px}.edit-site-welcome-guide__text img{vertical-align:bottom}.edit-site-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}body.appearance_page_gutenberg-edit-site,body.site-editor-php,html.wp-toolbar{background:#fff}body.appearance_page_gutenberg-edit-site #wpcontent,body.site-editor-php #wpcontent{padding-left:0}body.appearance_page_gutenberg-edit-site #wpbody-content,body.site-editor-php #wpbody-content{padding-bottom:0}body.appearance_page_gutenberg-edit-site #wpbody-content>div:not(.edit-site):not(#screen-meta),body.appearance_page_gutenberg-edit-site #wpfooter,body.site-editor-php #wpbody-content>div:not(.edit-site):not(#screen-meta),body.site-editor-php #wpfooter{display:none}body.appearance_page_gutenberg-edit-site .a11y-speak-region,body.site-editor-php .a11y-speak-region{left:-1px;top:-1px}body.appearance_page_gutenberg-edit-site ul#adminmenu>li.current>a.current:after,body.appearance_page_gutenberg-edit-site ul#adminmenu a.wp-has-current-submenu:after,body.site-editor-php ul#adminmenu>li.current>a.current:after,body.site-editor-php ul#adminmenu a.wp-has-current-submenu:after{border-right-color:#fff}body.appearance_page_gutenberg-edit-site .media-frame select.attachment-filters:last-of-type,body.site-editor-php .media-frame select.attachment-filters:last-of-type{width:auto;max-width:100%}.components-modal__frame,.edit-site{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.edit-site *,.edit-site :after,.edit-site :before{box-sizing:inherit}@media (min-width:600px){.edit-site{bottom:0;left:0;min-height:100vh;position:absolute;right:0;top:0}}.edit-site .interface-interface-skeleton{top:0}.edit-site .interface-complementary-area__pin-unpin-item.components-button{display:none}.edit-site .interface-interface-skeleton__content{background-color:#2f2f2f}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}} \ No newline at end of file diff --git a/wp-includes/global-styles-and-settings.php b/wp-includes/global-styles-and-settings.php index 303f004bf6..9db95a3e95 100644 --- a/wp-includes/global-styles-and-settings.php +++ b/wp-includes/global-styles-and-settings.php @@ -10,25 +10,28 @@ * * @since 5.9.0 * - * @param array $path Path to the specific setting to retrieve. Optional. - * If empty, will return all settings. - * @param string $block_name Which block to retrieve the settings from. Optional - * If empty, it'll return the settings for the global context. - * @param string $origin Which origin to take data from. Optional. - * It can be 'all' (core, theme, and user) or 'base' (core and theme). - * If empty or unknown, 'all' is used. + * @param array $path Path to the specific setting to retrieve. Optional. + * If empty, will return all settings. + * @param array $context { + * Metadata to know where to retrieve the $path from. Optional. + * + * @type string $block_name Which block to retrieve the settings from. + * If empty, it'll return the settings for the global context. + * @type string $origin Which origin to take data from. + * Valid values are 'all' (core, theme, and user) or 'base' (core and theme). + * If empty or unknown, 'all' is used. + * } * * @return array The settings to retrieve. */ -function wp_get_global_settings( $path = array(), $block_name = '', $origin = 'all' ) { - if ( '' !== $block_name ) { - $path = array_merge( array( 'blocks', $block_name ), $path ); +function wp_get_global_settings( $path = array(), $context = array() ) { + if ( ! empty( $context['block_name'] ) ) { + $path = array_merge( array( 'blocks', $context['block_name'] ), $path ); } - if ( 'base' === $origin ) { + $origin = 'custom'; + if ( isset( $context['origin'] ) && 'base' === $context['origin'] ) { $origin = 'theme'; - } else { - $origin = 'user'; } $settings = WP_Theme_JSON_Resolver::get_merged_data( $origin )->get_settings(); @@ -41,25 +44,28 @@ function wp_get_global_settings( $path = array(), $block_name = '', $origin = 'a * * @since 5.9.0 * - * @param array $path Path to the specific style to retrieve. Optional. - * If empty, will return all styles. - * @param string $block_name Which block to retrieve the styles from. Optional. - * If empty, it'll return the styles for the global context. - * @param string $origin Which origin to take data from. Optional. - * It can be 'all' (core, theme, and user) or 'base' (core and theme). - * If empty or unknown, 'all' is used. + * @param array $path Path to the specific style to retrieve. Optional. + * If empty, will return all styles. + * @param array $context { + * Metadata to know where to retrieve the $path from. Optional. + * + * @type string $block_name Which block to retrieve the styles from. + * If empty, it'll return the styles for the global context. + * @type string $origin Which origin to take data from. + * Valid values are 'all' (core, theme, and user) or 'base' (core and theme). + * If empty or unknown, 'all' is used. + * } * * @return array The styles to retrieve. */ -function wp_get_global_styles( $path = array(), $block_name = '', $origin = 'all' ) { - if ( '' !== $block_name ) { - $path = array_merge( array( 'blocks', $block_name ), $path ); +function wp_get_global_styles( $path = array(), $context = array() ) { + if ( ! empty( $context['block_name'] ) ) { + $path = array_merge( array( 'blocks', $context['block_name'] ), $path ); } - if ( 'base' === $origin ) { + $origin = 'custom'; + if ( isset( $context['origin'] ) && 'base' === $context['origin'] ) { $origin = 'theme'; - } else { - $origin = 'user'; } $styles = WP_Theme_JSON_Resolver::get_merged_data( $origin )->get_raw_data()['styles']; @@ -105,7 +111,7 @@ function wp_get_global_stylesheet( $types = array() ) { $types = array( 'variables', 'styles', 'presets' ); } - $origins = array( 'default', 'theme', 'user' ); + $origins = array( 'default', 'theme', 'custom' ); if ( ! $supports_theme_json && ! $supports_link_color ) { // In this case we only enqueue the core presets (CSS Custom Properties + the classes). $origins = array( 'default' ); diff --git a/wp-includes/js/dist/block-editor.js b/wp-includes/js/dist/block-editor.js index ef4c0fd95f..796af135b7 100644 --- a/wp-includes/js/dist/block-editor.js +++ b/wp-includes/js/dist/block-editor.js @@ -14886,7 +14886,6 @@ var use_setting = __webpack_require__("v5LD"); -const DEFAULT_COLORS = []; /** * Higher order component factory for injecting the `colorsArray` argument as * the colors prop in the `withCustomColors` HOC. @@ -14908,9 +14907,12 @@ const withCustomColorPalette = colorsArray => Object(external_wp_compose_["creat const withEditorColorPalette = () => Object(external_wp_compose_["createHigherOrderComponent"])(WrappedComponent => props => { - const colors = Object(use_setting["a" /* default */])('color.palette') || DEFAULT_COLORS; + const { + palette: colorPerOrigin + } = Object(use_setting["a" /* default */])('color') || {}; + const allColors = Object(external_wp_element_["useMemo"])(() => [...((colorPerOrigin === null || colorPerOrigin === void 0 ? void 0 : colorPerOrigin.custom) || []), ...((colorPerOrigin === null || colorPerOrigin === void 0 ? void 0 : colorPerOrigin.theme) || []), ...((colorPerOrigin === null || colorPerOrigin === void 0 ? void 0 : colorPerOrigin.default) || [])], [colorPerOrigin]); return Object(external_wp_element_["createElement"])(WrappedComponent, Object(esm_extends["a" /* default */])({}, props, { - colors: colors + colors: allColors })); }, 'withEditorColorPalette'); /** @@ -20692,38 +20694,33 @@ const getInserterItems = Object(rememo["a" /* default */])(function (state) { }; const blockTypeInserterItems = Object(external_wp_blocks_["getBlockTypes"])().filter(blockType => canIncludeBlockTypeInInserter(state, blockType, rootClientId)).map(buildBlockTypeInserterItem); - const reusableBlockInserterItems = canInsertBlockTypeUnmemoized(state, 'core/block', rootClientId) ? getReusableBlocks(state).map(buildReusableBlockInserterItem) : []; // Exclude any block type item that is to be replaced by a default - // variation. - - const visibleBlockTypeInserterItems = blockTypeInserterItems.filter(_ref4 => { - let { - variations = [] - } = _ref4; - return !variations.some(_ref5 => { - let { - isDefault - } = _ref5; - return isDefault; - }); - }); - const blockVariations = []; // Show all available blocks with variations - - for (const item of blockTypeInserterItems) { + const reusableBlockInserterItems = canInsertBlockTypeUnmemoized(state, 'core/block', rootClientId) ? getReusableBlocks(state).map(buildReusableBlockInserterItem) : []; + const items = blockTypeInserterItems.reduce((accumulator, item) => { const { variations = [] - } = item; + } = item; // Exclude any block type item that is to be replaced by a default variation + + if (!variations.some(_ref4 => { + let { + isDefault + } = _ref4; + return isDefault; + })) { + accumulator.push(item); + } if (variations.length) { const variationMapper = getItemFromVariation(state, item); - blockVariations.push(...variations.map(variationMapper)); + accumulator.push(...variations.map(variationMapper)); } - } // Ensure core blocks are prioritized in the returned results, + + return accumulator; + }, []); // Ensure core blocks are prioritized in the returned results, // because third party blocks can be registered earlier than // the core blocks (usually by using the `init` action), // thus affecting the display order. // We don't sort reusable blocks as they are handled differently. - const groupByType = (blocks, block) => { const { core, @@ -20734,15 +20731,14 @@ const getInserterItems = Object(rememo["a" /* default */])(function (state) { return blocks; }; - const items = visibleBlockTypeInserterItems.reduce(groupByType, { + const { + core: coreItems, + noncore: nonCoreItems + } = items.reduce(groupByType, { core: [], noncore: [] }); - const variations = blockVariations.reduce(groupByType, { - core: [], - noncore: [] - }); - const sortedBlockTypes = [...items.core, ...variations.core, ...items.noncore, ...variations.noncore]; + const sortedBlockTypes = [...coreItems, ...nonCoreItems]; return [...sortedBlockTypes, ...reusableBlockInserterItems]; }, (state, rootClientId) => [state.blockListSettings[rootClientId], state.blocks.byClientId, state.blocks.order, state.preferences.insertUsage, state.settings.allowedBlockTypes, state.settings.templateLock, getReusableBlocks(state), Object(external_wp_blocks_["getBlockTypes"])()]); /** @@ -20777,10 +20773,10 @@ const getBlockTransformItems = Object(rememo["a" /* default */])(function (state buildScope: 'transform' }); const blockTypeTransformItems = Object(external_wp_blocks_["getBlockTypes"])().filter(blockType => canIncludeBlockTypeInInserter(state, blockType, rootClientId)).map(buildBlockTypeTransformItem); - const itemsByName = Object(external_lodash_["mapKeys"])(blockTypeTransformItems, _ref6 => { + const itemsByName = Object(external_lodash_["mapKeys"])(blockTypeTransformItems, _ref5 => { let { name - } = _ref6; + } = _ref5; return name; }); const possibleTransforms = Object(external_wp_blocks_["getPossibleBlockTransformations"])(blocks).reduce((accumulator, block) => { @@ -20890,10 +20886,10 @@ const checkAllowListRecursive = (blocks, allowedBlockTypes) => { const __experimentalGetParsedPattern = Object(rememo["a" /* default */])((state, patternName) => { const patterns = state.settings.__experimentalBlockPatterns; - const pattern = patterns.find(_ref7 => { + const pattern = patterns.find(_ref6 => { let { name - } = _ref7; + } = _ref6; return name === patternName; }); @@ -20910,21 +20906,21 @@ const getAllAllowedPatterns = Object(rememo["a" /* default */])(state => { const { allowedBlockTypes } = getSettings(state); - const parsedPatterns = patterns.filter(_ref8 => { + const parsedPatterns = patterns.filter(_ref7 => { let { inserter = true - } = _ref8; + } = _ref7; return !!inserter; - }).map(_ref9 => { + }).map(_ref8 => { let { name - } = _ref9; + } = _ref8; return __experimentalGetParsedPattern(state, name); }); - const allowedPatterns = parsedPatterns.filter(_ref10 => { + const allowedPatterns = parsedPatterns.filter(_ref9 => { let { blocks - } = _ref10; + } = _ref9; return checkAllowListRecursive(blocks, allowedBlockTypes); }); return allowedPatterns; @@ -20941,14 +20937,14 @@ const getAllAllowedPatterns = Object(rememo["a" /* default */])(state => { const __experimentalGetAllowedPatterns = Object(rememo["a" /* default */])(function (state) { let rootClientId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; const availableParsedPatterns = getAllAllowedPatterns(state); - const patternsAllowed = Object(external_lodash_["filter"])(availableParsedPatterns, _ref11 => { + const patternsAllowed = Object(external_lodash_["filter"])(availableParsedPatterns, _ref10 => { let { blocks - } = _ref11; - return blocks.every(_ref12 => { + } = _ref10; + return blocks.every(_ref11 => { let { name - } = _ref12; + } = _ref11; return canInsertBlockType(state, name, rootClientId); }); }); @@ -21010,21 +21006,21 @@ const __experimentalGetPatternTransformItems = Object(rememo["a" /* default */]) * to check for this case too. */ - if (blocks.some(_ref13 => { + if (blocks.some(_ref12 => { let { clientId, innerBlocks - } = _ref13; + } = _ref12; return innerBlocks.length || areInnerBlocksControlled(state, clientId); })) { return EMPTY_ARRAY; } // Create a Set of the selected block names that is used in patterns filtering. - const selectedBlockNames = Array.from(new Set(blocks.map(_ref14 => { + const selectedBlockNames = Array.from(new Set(blocks.map(_ref13 => { let { name - } = _ref14; + } = _ref13; return name; }))); /** @@ -23075,7 +23071,6 @@ const layout = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEle -const EMPTY_ARRAY = []; function __experimentalGetGradientClass(gradientSlug) { if (!gradientSlug) { return undefined; @@ -23121,7 +23116,10 @@ function __experimentalUseGradient() { const { clientId } = Object(_block_edit__WEBPACK_IMPORTED_MODULE_3__[/* useBlockEditContext */ "c"])(); - const gradients = Object(_use_setting__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])('color.gradients') || EMPTY_ARRAY; + const { + gradients: gradientsPerOrigin + } = Object(_use_setting__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])('color') || {}; + const allGradients = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useMemo"])(() => [...((gradientsPerOrigin === null || gradientsPerOrigin === void 0 ? void 0 : gradientsPerOrigin.custom) || []), ...((gradientsPerOrigin === null || gradientsPerOrigin === void 0 ? void 0 : gradientsPerOrigin.theme) || []), ...((gradientsPerOrigin === null || gradientsPerOrigin === void 0 ? void 0 : gradientsPerOrigin.default) || [])], [gradientsPerOrigin]); const { gradient, customGradient @@ -23139,7 +23137,7 @@ function __experimentalUseGradient() { updateBlockAttributes } = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__["useDispatch"])(_store__WEBPACK_IMPORTED_MODULE_5__[/* store */ "a"]); const setGradient = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useCallback"])(newGradientValue => { - const slug = getGradientSlugByValue(gradients, newGradientValue); + const slug = getGradientSlugByValue(allGradients, newGradientValue); if (slug) { updateBlockAttributes(clientId, { @@ -23153,14 +23151,14 @@ function __experimentalUseGradient() { [gradientAttribute]: undefined, [customGradientAttribute]: newGradientValue }); - }, [gradients, clientId, updateBlockAttributes]); + }, [allGradients, clientId, updateBlockAttributes]); const gradientClass = __experimentalGetGradientClass(gradient); let gradientValue; if (gradient) { - gradientValue = getGradientValueBySlug(gradients, gradient); + gradientValue = getGradientValueBySlug(allGradients, gradient); } else { gradientValue = customGradient; } @@ -32029,7 +32027,8 @@ function ColorGradientControlInner(_ref) { colorValue, gradientValue, clearable, - showTitle = true + showTitle = true, + enableAlpha } = _ref; const canChooseAColor = onColorChange && (!Object(lodash__WEBPACK_IMPORTED_MODULE_3__["isEmpty"])(colors) || !disableCustomColors); const canChooseAGradient = onGradientChange && (!Object(lodash__WEBPACK_IMPORTED_MODULE_3__["isEmpty"])(gradients) || !disableCustomGradients); @@ -32066,7 +32065,8 @@ function ColorGradientControlInner(_ref) { colors, disableCustomColors, __experimentalHasMultipleOrigins: __experimentalHasMultipleOrigins, - clearable: clearable + clearable: clearable, + enableAlpha: enableAlpha }), (currentTab === 'gradient' || !canChooseAColor) && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["GradientPicker"], { value: gradientValue, onChange: canChooseAColor ? newGradient => { @@ -42022,7 +42022,6 @@ function ColorPanel(_ref) { const COLOR_SUPPORT_KEY = 'color'; -const color_EMPTY_ARRAY = []; const hasColorSupport = blockType => { const colorSupport = Object(external_wp_blocks_["getBlockSupport"])(blockType, COLOR_SUPPORT_KEY); @@ -42192,19 +42191,25 @@ function immutableSet(object, path, value) { function ColorEdit(props) { - var _style$color6, _style$color7, _style$color8, _style$elements2, _style$elements2$link, _style$elements2$link2, _style$elements3, _style$elements3$link, _style$elements3$link2; + var _solidsPerOrigin$them, _gradientsPerOrigin$t, _style$color6, _style$color7, _style$color8, _style$elements2, _style$elements2$link, _style$elements2$link2, _style$elements3, _style$elements3$link, _style$elements3$link2; const { name: blockName, attributes } = props; - const solids = Object(use_setting["a" /* default */])('color.palette') || color_EMPTY_ARRAY; - const gradients = Object(use_setting["a" /* default */])('color.gradients') || color_EMPTY_ARRAY; - const areCustomSolidsEnabled = Object(use_setting["a" /* default */])('color.custom'); - const areCustomGradientsEnabled = Object(use_setting["a" /* default */])('color.customGradient'); - const isLinkEnabled = Object(use_setting["a" /* default */])('color.link'); - const isTextEnabled = Object(use_setting["a" /* default */])('color.text'); - const isBackgroundEnabled = Object(use_setting["a" /* default */])('color.background'); // Shouldn't be needed but right now the ColorGradientsPanel + const { + palette: solidsPerOrigin, + gradients: gradientsPerOrigin, + customGradient: areCustomGradientsEnabled, + custom: areCustomSolidsEnabled, + text: isTextEnabled, + background: isBackgroundEnabled, + link: isLinkEnabled + } = Object(use_setting["a" /* default */])('color') || {}; + const solidsEnabled = areCustomSolidsEnabled || !(solidsPerOrigin !== null && solidsPerOrigin !== void 0 && solidsPerOrigin.theme) || (solidsPerOrigin === null || solidsPerOrigin === void 0 ? void 0 : (_solidsPerOrigin$them = solidsPerOrigin.theme) === null || _solidsPerOrigin$them === void 0 ? void 0 : _solidsPerOrigin$them.length) > 0; + const gradientsEnabled = areCustomGradientsEnabled || !(gradientsPerOrigin !== null && gradientsPerOrigin !== void 0 && gradientsPerOrigin.theme) || (gradientsPerOrigin === null || gradientsPerOrigin === void 0 ? void 0 : (_gradientsPerOrigin$t = gradientsPerOrigin.theme) === null || _gradientsPerOrigin$t === void 0 ? void 0 : _gradientsPerOrigin$t.length) > 0; + const allSolids = Object(external_wp_element_["useMemo"])(() => [...((solidsPerOrigin === null || solidsPerOrigin === void 0 ? void 0 : solidsPerOrigin.custom) || []), ...((solidsPerOrigin === null || solidsPerOrigin === void 0 ? void 0 : solidsPerOrigin.theme) || []), ...((solidsPerOrigin === null || solidsPerOrigin === void 0 ? void 0 : solidsPerOrigin.default) || [])], [solidsPerOrigin]); + const allGradients = Object(external_wp_element_["useMemo"])(() => [...((gradientsPerOrigin === null || gradientsPerOrigin === void 0 ? void 0 : gradientsPerOrigin.custom) || []), ...((gradientsPerOrigin === null || gradientsPerOrigin === void 0 ? void 0 : gradientsPerOrigin.theme) || []), ...((gradientsPerOrigin === null || gradientsPerOrigin === void 0 ? void 0 : gradientsPerOrigin.default) || [])], [gradientsPerOrigin]); // Shouldn't be needed but right now the ColorGradientsPanel // can trigger both onChangeColor and onChangeBackground // synchronously causing our two callbacks to override changes // from each other. @@ -42218,10 +42223,10 @@ function ColorEdit(props) { return null; } - const hasLinkColor = hasLinkColorSupport(blockName) && isLinkEnabled && (solids.length > 0 || areCustomSolidsEnabled); - const hasTextColor = hasTextColorSupport(blockName) && isTextEnabled && (solids.length > 0 || areCustomSolidsEnabled); - const hasBackgroundColor = hasBackgroundColorSupport(blockName) && isBackgroundEnabled && (solids.length > 0 || areCustomSolidsEnabled); - const hasGradientColor = hasGradientSupport(blockName) && (gradients.length > 0 || areCustomGradientsEnabled); + const hasLinkColor = hasLinkColorSupport(blockName) && isLinkEnabled && solidsEnabled; + const hasTextColor = hasTextColorSupport(blockName) && isTextEnabled && solidsEnabled; + const hasBackgroundColor = hasBackgroundColorSupport(blockName) && isBackgroundEnabled && solidsEnabled; + const hasGradientColor = hasGradientSupport(blockName) && gradientsEnabled; if (!hasLinkColor && !hasTextColor && !hasBackgroundColor && !hasGradientColor) { return null; @@ -42236,7 +42241,7 @@ function ColorEdit(props) { let gradientValue; if (hasGradientColor && gradient) { - gradientValue = Object(use_gradient["e" /* getGradientValueBySlug */])(gradients, gradient); + gradientValue = Object(use_gradient["e" /* getGradientValueBySlug */])(allGradients, gradient); } else if (hasGradientColor) { var _style$color5; @@ -42246,7 +42251,7 @@ function ColorEdit(props) { const onChangeColor = name => value => { var _localAttributes$curr, _localAttributes$curr2; - const colorObject = Object(utils["c" /* getColorObjectByColorValue */])(solids, value); + const colorObject = Object(utils["c" /* getColorObjectByColorValue */])(allSolids, value); const attributeName = name + 'Color'; const newStyle = { ...localAttributes.current.style, color: { ...((_localAttributes$curr = localAttributes.current) === null || _localAttributes$curr === void 0 ? void 0 : (_localAttributes$curr2 = _localAttributes$curr.style) === null || _localAttributes$curr2 === void 0 ? void 0 : _localAttributes$curr2.color), @@ -42265,7 +42270,7 @@ function ColorEdit(props) { }; const onChangeGradient = value => { - const slug = Object(use_gradient["d" /* getGradientSlugByValue */])(gradients, value); + const slug = Object(use_gradient["d" /* getGradientSlugByValue */])(allGradients, value); let newAttributes; if (slug) { @@ -42301,7 +42306,7 @@ function ColorEdit(props) { }; const onChangeLinkColor = value => { - const colorObject = Object(utils["c" /* getColorObjectByColorValue */])(solids, value); + const colorObject = Object(utils["c" /* getColorObjectByColorValue */])(allSolids, value); const newLinkColorValue = colorObject !== null && colorObject !== void 0 && colorObject.slug ? `var:preset|color|${colorObject.slug}` : value; const newStyle = Object(hooks_utils["a" /* cleanEmptyObject */])(immutableSet(style, ['elements', 'link', 'color', 'text'], newLinkColorValue)); props.setAttributes({ @@ -42316,17 +42321,17 @@ function ColorEdit(props) { settings: [...(hasTextColor ? [{ label: Object(external_wp_i18n_["__"])('Text color'), onColorChange: onChangeColor('text'), - colorValue: Object(utils["b" /* getColorObjectByAttributeValues */])(solids, textColor, style === null || style === void 0 ? void 0 : (_style$color7 = style.color) === null || _style$color7 === void 0 ? void 0 : _style$color7.text).color + colorValue: Object(utils["b" /* getColorObjectByAttributeValues */])(allSolids, textColor, style === null || style === void 0 ? void 0 : (_style$color7 = style.color) === null || _style$color7 === void 0 ? void 0 : _style$color7.text).color }] : []), ...(hasBackgroundColor || hasGradientColor ? [{ label: Object(external_wp_i18n_["__"])('Background color'), onColorChange: hasBackgroundColor ? onChangeColor('background') : undefined, - colorValue: Object(utils["b" /* getColorObjectByAttributeValues */])(solids, backgroundColor, style === null || style === void 0 ? void 0 : (_style$color8 = style.color) === null || _style$color8 === void 0 ? void 0 : _style$color8.background).color, + colorValue: Object(utils["b" /* getColorObjectByAttributeValues */])(allSolids, backgroundColor, style === null || style === void 0 ? void 0 : (_style$color8 = style.color) === null || _style$color8 === void 0 ? void 0 : _style$color8.background).color, gradientValue, onGradientChange: hasGradientColor ? onChangeGradient : undefined }] : []), ...(hasLinkColor ? [{ label: Object(external_wp_i18n_["__"])('Link Color'), onColorChange: onChangeLinkColor, - colorValue: getLinkColorFromAttributeValue(solids, style === null || style === void 0 ? void 0 : (_style$elements2 = style.elements) === null || _style$elements2 === void 0 ? void 0 : (_style$elements2$link = _style$elements2.link) === null || _style$elements2$link === void 0 ? void 0 : (_style$elements2$link2 = _style$elements2$link.color) === null || _style$elements2$link2 === void 0 ? void 0 : _style$elements2$link2.text), + colorValue: getLinkColorFromAttributeValue(allSolids, style === null || style === void 0 ? void 0 : (_style$elements2 = style.elements) === null || _style$elements2 === void 0 ? void 0 : (_style$elements2$link = _style$elements2.link) === null || _style$elements2$link === void 0 ? void 0 : (_style$elements2$link2 = _style$elements2$link.color) === null || _style$elements2$link2 === void 0 ? void 0 : _style$elements2$link2.text), clearable: !!(style !== null && style !== void 0 && (_style$elements3 = style.elements) !== null && _style$elements3 !== void 0 && (_style$elements3$link = _style$elements3.link) !== null && _style$elements3$link !== void 0 && (_style$elements3$link2 = _style$elements3$link.color) !== null && _style$elements3$link2 !== void 0 && _style$elements3$link2.text) }] : [])] }); @@ -42351,7 +42356,10 @@ const withColorPaletteStyles = Object(external_wp_compose_["createHigherOrderCom backgroundColor, textColor } = attributes; - const colors = Object(use_setting["a" /* default */])('color.palette') || color_EMPTY_ARRAY; + const { + palette: solidsPerOrigin + } = Object(use_setting["a" /* default */])('color') || {}; + const colors = Object(external_wp_element_["useMemo"])(() => [...((solidsPerOrigin === null || solidsPerOrigin === void 0 ? void 0 : solidsPerOrigin.custom) || []), ...((solidsPerOrigin === null || solidsPerOrigin === void 0 ? void 0 : solidsPerOrigin.theme) || []), ...((solidsPerOrigin === null || solidsPerOrigin === void 0 ? void 0 : solidsPerOrigin.default) || [])], [solidsPerOrigin]); if (!hasColorSupport(name) || color_shouldSkipSerialization(name)) { return Object(external_wp_element_["createElement"])(BlockListBlock, props); @@ -43556,7 +43564,6 @@ function TypographyPanel(props) { panelId: clientId }, Object(external_wp_element_["createElement"])(LetterSpacingEdit, props))); } - const hasTypographySupport = blockName => { return TYPOGRAPHY_SUPPORT_KEYS.some(key => Object(external_wp_blocks_["hasBlockSupport"])(blockName, key)); }; @@ -44996,6 +45003,11 @@ function useBorderProps(attributes) { * External dependencies */ +/** + * WordPress dependencies + */ + + /** * Internal dependencies */ @@ -45010,7 +45022,6 @@ function useBorderProps(attributes) { // block support is being skipped for a block but the color related CSS classes // & styles still need to be generated so they can be applied to inner elements. -const use_color_props_EMPTY_ARRAY = []; /** * Provides the CSS class names and inline styles for a block's color support * attributes. @@ -45072,8 +45083,12 @@ function useColorProps(attributes) { textColor, gradient } = attributes; - const colors = Object(use_setting["a" /* default */])('color.palette') || use_color_props_EMPTY_ARRAY; - const gradients = Object(use_setting["a" /* default */])('color.gradients') || use_color_props_EMPTY_ARRAY; + const { + palette: solidsPerOrigin, + gradients: gradientsPerOrigin + } = Object(use_setting["a" /* default */])('color') || {}; + const colors = Object(external_wp_element_["useMemo"])(() => [...((solidsPerOrigin === null || solidsPerOrigin === void 0 ? void 0 : solidsPerOrigin.custom) || []), ...((solidsPerOrigin === null || solidsPerOrigin === void 0 ? void 0 : solidsPerOrigin.theme) || []), ...((solidsPerOrigin === null || solidsPerOrigin === void 0 ? void 0 : solidsPerOrigin.default) || [])], [solidsPerOrigin]); + const gradients = Object(external_wp_element_["useMemo"])(() => [...((gradientsPerOrigin === null || gradientsPerOrigin === void 0 ? void 0 : gradientsPerOrigin.custom) || []), ...((gradientsPerOrigin === null || gradientsPerOrigin === void 0 ? void 0 : gradientsPerOrigin.theme) || []), ...((gradientsPerOrigin === null || gradientsPerOrigin === void 0 ? void 0 : gradientsPerOrigin.default) || [])], [gradientsPerOrigin]); const colorProps = getColorClassesAndStyles(attributes); // Force inline styles to apply colors when themes do not load their color // stylesheets in the editor. @@ -45401,7 +45416,7 @@ function useSetting(path) { if (_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__["__EXPERIMENTAL_PATHS_WITH_MERGE"][normalizedPath]) { var _ref, _experimentalFeatures; - return (_ref = (_experimentalFeatures = experimentalFeaturesResult.user) !== null && _experimentalFeatures !== void 0 ? _experimentalFeatures : experimentalFeaturesResult.theme) !== null && _ref !== void 0 ? _ref : experimentalFeaturesResult.default; + return (_ref = (_experimentalFeatures = experimentalFeaturesResult.custom) !== null && _experimentalFeatures !== void 0 ? _experimentalFeatures : experimentalFeaturesResult.theme) !== null && _ref !== void 0 ? _ref : experimentalFeaturesResult.default; } return experimentalFeaturesResult; @@ -49487,6 +49502,7 @@ const PanelColorGradientSettingsInner = _ref3 => { title, showTitle = true, __experimentalHasMultipleOrigins, + enableAlpha, ...props } = _ref3; @@ -49511,7 +49527,8 @@ const PanelColorGradientSettingsInner = _ref3 => { gradients, disableCustomColors, disableCustomGradients, - __experimentalHasMultipleOrigins + __experimentalHasMultipleOrigins, + enableAlpha }, setting))), children); }; @@ -49531,7 +49548,7 @@ const PanelColorGradientSettingsSingleSelect = props => { const PanelColorGradientSettingsMultipleSelect = props => { const colorGradientSettings = useCommonSingleMultipleSelects(); - const customColors = Object(_use_setting__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"])('color.palette.user'); + const customColors = Object(_use_setting__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"])('color.palette.custom'); const themeColors = Object(_use_setting__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"])('color.palette.theme'); const defaultColors = Object(_use_setting__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"])('color.palette.default'); const shouldDisplayDefaultColors = Object(_use_setting__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"])('color.defaultPalette'); @@ -49561,7 +49578,7 @@ const PanelColorGradientSettingsMultipleSelect = props => { return result; }, [defaultColors, themeColors, customColors]); - const customGradients = Object(_use_setting__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"])('color.gradients.user'); + const customGradients = Object(_use_setting__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"])('color.gradients.custom'); const themeGradients = Object(_use_setting__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"])('color.gradients.theme'); const defaultGradients = Object(_use_setting__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"])('color.gradients.default'); const shouldDisplayDefaultGradients = Object(_use_setting__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"])('color.defaultGradients'); diff --git a/wp-includes/js/dist/block-editor.min.js b/wp-includes/js/dist/block-editor.min.js index 527d48f78c..6036b3dbf9 100644 --- a/wp-includes/js/dist/block-editor.min.js +++ b/wp-includes/js/dist/block-editor.min.js @@ -1,5 +1,5 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.blockEditor=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="tr0p")}({"+0ps":function(e,t,n){"use strict";n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return p}));var o=n("GRId"),r=n("HSyU"),c=n("1CF3"),l=n("1ZqX"),i=n("l3Sj"),a=n("onLe"),s=n("K9lf"),u=n("xTGt");var d=n("BhPs");function b(){const{getBlockName:e}=Object(l.useSelect)(d.a),{getBlockType:t}=Object(l.useSelect)(r.store),{createSuccessNotice:n}=Object(l.useDispatch)(a.store);return Object(o.useCallback)((o,r)=>{let c="";if(1===r.length){var l;const n=r[0],a=null===(l=t(e(n)))||void 0===l?void 0:l.title;c="copy"===o?Object(i.sprintf)(Object(i.__)('Copied "%s" to clipboard.'),a):Object(i.sprintf)(Object(i.__)('Moved "%s" to clipboard.'),a)}else c="copy"===o?Object(i.sprintf)(Object(i._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",r.length),r.length):Object(i.sprintf)(Object(i._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",r.length),r.length);n(c,{type:"snackbar"})},[])}function p(){const{getBlocksByClientId:e,getSelectedBlockClientIds:t,hasMultiSelection:n,getSettings:o}=Object(l.useSelect)(d.a),{flashBlock:i,removeBlocks:a,replaceBlocks:p}=Object(l.useDispatch)(d.a),m=b();return Object(s.useRefEffect)(l=>{function s(s){const d=t();if(0===d.length)return;if(!n()){const{target:e}=s,{ownerDocument:t}=e;if("copy"===s.type||"cut"===s.type?Object(c.documentHasUncollapsedSelection)(t):Object(c.documentHasSelection)(t))return}if(!l.contains(s.target.ownerDocument.activeElement))return;const b=s.defaultPrevented;if(s.preventDefault(),"copy"===s.type||"cut"===s.type){1===d.length&&i(d[0]),m(s.type,d);const t=e(d),n=Object(r.serialize)(t);s.clipboardData.setData("text/plain",n),s.clipboardData.setData("text/html",n)}if("cut"===s.type)a(d);else if("paste"===s.type){if(b)return;const{__experimentalCanUserUseUnfilteredHTML:e}=o(),{plainText:t,html:n}=function(e){let{clipboardData:t}=e,n="",o="";try{n=t.getData("text/plain"),o=t.getData("text/html")}catch(e){try{o=t.getData("Text")}catch(e){return}}const r=Object(c.getFilesFromDataTransfer)(t).filter(e=>{let{type:t}=e;return/^image\/(?:jpe?g|png|gif)$/.test(t)});return r.length&&!o&&(o=r.map(e=>`<img src="${Object(u.createBlobURL)(e)}">`).join(""),n=""),{html:o,plainText:n}}(s),l=Object(r.pasteHandler)({HTML:n,plainText:t,mode:"BLOCKS",canUserUseUnfilteredHTML:e});p(d,l,l.length-1,-1)}}return l.ownerDocument.addEventListener("copy",s),l.ownerDocument.addEventListener("cut",s),l.ownerDocument.addEventListener("paste",s),()=>{l.ownerDocument.removeEventListener("copy",s),l.ownerDocument.removeEventListener("cut",s),l.ownerDocument.removeEventListener("paste",s)}},[])}t.a=function(e){let{children:t}=e;return Object(o.createElement)("div",{ref:p()},t)}},"+6d5":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("TSYQ"),r=n.n(o),c=n("1ZqX"),l=n("BhPs");function i(e){return Object(c.useSelect)(t=>{const{hasBlockMovingClientId:n,canInsertBlockType:o,getBlockName:c,getBlockRootClientId:i,isBlockSelected:a}=t(l.a);if(!a(e))return;const s=n();return s?r()("is-block-moving-mode",{"can-insert-moving-block":o(c(s),i(e))}):void 0},[e])}},"+DUQ":function(e,t,n){"use strict";n.d(t,"animated",(function(){return y}));var o=n("kmrn");n.o(o,"useSpring")&&n.d(t,"useSpring",(function(){return o.useSpring}));var r=n("faye"),c=n("nEW0"),l=n("dfZa");function i(e,t){if(null==e)return{};var n,o,r={},c=Object.keys(e);for(o=0;o<c.length;o++)n=c[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}const a=["style","children","scrollTop","scrollLeft"],s=/^--/;function u(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||s.test(e)||b.hasOwnProperty(e)&&b[e]?(""+t).trim():t+"px"}const d={};let b={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const p=["Webkit","Ms","Moz","O"];b=Object.keys(b).reduce((e,t)=>(p.forEach(n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t]),e),b);const m=["x","y","z"],f=/^(matrix|translate|scale|rotate|skew)/,h=/^(translate)/,g=/^(rotate|skew)/,O=(e,t)=>c.s.num(e)&&0!==e?e+t:e,v=(e,t)=>c.s.arr(e)?e.every(e=>v(e,t)):c.s.num(e)?e===t:parseFloat(e)===t;class j extends l.a{constructor(e){let{x:t,y:n,z:o}=e,r=i(e,m);const l=[],a=[];(t||n||o)&&(l.push([t||0,n||0,o||0]),a.push(e=>[`translate3d(${e.map(e=>O(e,"px")).join(",")})`,v(e,0)])),Object(c.l)(r,(e,t)=>{if("transform"===t)l.push([e||""]),a.push(e=>[e,""===e]);else if(f.test(t)){if(delete r[t],c.s.und(e))return;const n=h.test(t)?"px":g.test(t)?"deg":"";l.push(Object(c.y)(e)),a.push("rotate3d"===t?([e,t,o,r])=>[`rotate3d(${e},${t},${o},${O(r,n)})`,v(r,0)]:e=>[`${t}(${e.map(e=>O(e,n)).join(",")})`,v(e,t.startsWith("scale")?1:0)])}}),l.length&&(r.transform=new k(l,a)),super(r)}}class k extends c.a{constructor(e,t){super(),this._value=null,this.inputs=e,this.transforms=t}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Object(c.k)(this.inputs,(n,o)=>{const r=Object(c.q)(n[0]),[l,i]=this.transforms[o](c.s.arr(r)?r:n.map(c.q));e+=" "+l,t=t&&i}),t?"none":e}observerAdded(e){1==e&&Object(c.k)(this.inputs,e=>Object(c.k)(e,e=>Object(c.r)(e)&&Object(c.c)(e,this)))}observerRemoved(e){0==e&&Object(c.k)(this.inputs,e=>Object(c.k)(e,e=>Object(c.r)(e)&&Object(c.x)(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),Object(c.d)(this,e)}}const _=["scrollTop","scrollLeft"];o.Globals.assign({batchedUpdates:r.unstable_batchedUpdates,createStringInterpolator:c.g,colors:c.e});const y=Object(l.d)(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,o=t,{style:r,children:c,scrollTop:l,scrollLeft:b}=o,p=i(o,a),m=Object.values(p),f=Object.keys(p).map(t=>n||e.hasAttribute(t)?t:d[t]||(d[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));void 0!==c&&(e.textContent=c);for(let t in r)if(r.hasOwnProperty(t)){const n=u(t,r[t]);s.test(t)?e.style.setProperty(t,n):e.style[t]=n}f.forEach((t,n)=>{e.setAttribute(t,m[n])}),void 0!==l&&(e.scrollTop=l),void 0!==b&&(e.scrollLeft=b)},createAnimatedStyle:e=>new j(e),getComponentProps:e=>i(e,_)}).animated},"+G0a":function(e,t,n){"use strict";var o=n("HSyU"),r=n("1ZqX"),c=n("GRId"),l=n("BhPs");t.a=(e,t)=>{const{categories:n,collections:i,items:a}=Object(r.useSelect)(t=>{const{getInserterItems:n}=t(l.a),{getCategories:r,getCollections:c}=t(o.store);return{categories:r(),collections:c(),items:n(e)}},[e]);return[a,n,i,Object(c.useCallback)((e,n)=>{let{name:r,initialAttributes:c,innerBlocks:l}=e;const i=Object(o.createBlock)(r,c,Object(o.createBlocksFromInnerBlocksTemplate)(l));t(i,void 0,n)},[t])]}},"+WrK":function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));t.a=c},"+gtr":function(e,t,n){"use strict";n.d(t,"a",(function(){return V}));var o=n("wx14"),r=n("GRId"),c=n("TSYQ"),l=n.n(c),i=n("1ZqX"),a=n("K9lf"),s=n("HSyU"),u=n("tI+e"),d=n("JygI"),b=n("l3Sj"),p=n("wC17"),m=n("7SSY"),f=n("YLtl");const{clearTimeout:h,setTimeout:g}=window,O=200;function v(e){let{ref:t,isFocused:n,debounceTimeout:o=O,onChange:c=f.noop}=e;const[l,i]=Object(r.useState)(!1),a=Object(r.useRef)(),s=e=>{null!=t&&t.current&&i(e),c(e)},u=()=>{const e=(null==t?void 0:t.current)&&t.current.matches(":hover");return!n&&!e},d=()=>{const e=a.current;e&&h&&h(e)};return Object(r.useEffect)(()=>()=>d(),[]),{showMovers:l,debouncedShowMovers:e=>{e&&e.stopPropagation(),d(),l||s(!0)},debouncedHideMovers:e=>{e&&e.stopPropagation(),d(),a.current=g(()=>{u()&&s(!1)},o)}}}function j(e){let{ref:t,debounceTimeout:n=O,onChange:o=f.noop}=e;const[c,l]=Object(r.useState)(!1),{showMovers:i,debouncedShowMovers:a,debouncedHideMovers:s}=v({ref:t,debounceTimeout:n,isFocused:c,onChange:o}),u=Object(r.useRef)(!1),d=()=>(null==t?void 0:t.current)&&t.current.contains(t.current.ownerDocument.activeElement);return Object(r.useEffect)(()=>{const e=t.current,n=()=>{d()&&(l(!0),a())},o=()=>{d()||(l(!1),s())};return e&&!u.current&&(e.addEventListener("focus",n,!0),e.addEventListener("blur",o,!0),u.current=!0),()=>{e&&(e.removeEventListener("focus",n),e.removeEventListener("blur",o))}},[t,u,l,a,s]),{showMovers:i,gestures:{onMouseMove:a,onMouseLeave:s}}}var k=n("BhPs");function _(){const{selectBlock:e,toggleBlockHighlight:t}=Object(i.useDispatch)(k.a),{firstParentClientId:n,shouldHide:c,hasReducedUI:l}=Object(i.useSelect)(e=>{const{getBlockName:t,getBlockParents:n,getSelectedBlockClientId:o,getSettings:r}=e(k.a),{hasBlockSupport:c}=e(s.store),l=n(o()),i=l[l.length-1],a=t(i),u=Object(s.getBlockType)(a),d=r();return{firstParentClientId:i,shouldHide:!c(u,"__experimentalParentSelector",!0),hasReducedUI:d.hasReducedUI}},[]),a=Object(p.a)(n),d=Object(r.useRef)(),{gestures:f}=j({ref:d,onChange(e){e&&l||t(n,e)}});return c||void 0===n?null:Object(r.createElement)("div",Object(o.a)({className:"block-editor-block-parent-selector",key:n,ref:d},f),Object(r.createElement)(u.ToolbarButton,{className:"block-editor-block-parent-selector__button",onClick:()=>e(n),label:Object(b.sprintf)(Object(b.__)("Select %s"),a.title),showTooltip:!0,icon:Object(r.createElement)(m.a,{icon:a.icon})}))}var y=n("wzfx"),E=n("f8JO"),C=n("REKd");function S(e){let{blocks:t}=e;return Object(r.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},Object(r.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},Object(r.createElement)(u.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right",focusOnMount:!1},Object(r.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(r.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(b.__)("Preview")),Object(r.createElement)(C.a,{viewportWidth:500,blocks:t})))))}var w=e=>{let{className:t,possibleBlockTransformations:n,onSelect:o,blocks:c}=e;const[l,i]=Object(r.useState)();return Object(r.createElement)(u.MenuGroup,{label:Object(b.__)("Transform to"),className:t},l&&Object(r.createElement)(S,{blocks:Object(s.switchToBlockType)(c,l)}),n.map(e=>{const{name:t,icon:n,title:c,isDisabled:l}=e;return Object(r.createElement)(u.MenuItem,{key:t,className:Object(s.getBlockMenuDefaultClassName)(t),onClick:e=>{e.preventDefault(),o(t)},disabled:l,onMouseLeave:()=>i(null),onMouseEnter:()=>i(t)},Object(r.createElement)(m.a,{icon:n,showColors:!0}),c)}))},I=n("7NR9");function B(e){let{hoveredBlock:t,onSwitch:n}=e;const{name:o,clientId:c}=t,[l,a]=Object(r.useState)(),d=Object(i.useSelect)(e=>e(s.store).getBlockType(o),[o]);return Object(r.createElement)(u.MenuGroup,{label:Object(b.__)("Styles"),className:"block-editor-block-switcher__styles__menugroup"},l&&Object(r.createElement)(S,{blocks:d&&d.example?Object(s.getBlockFromExample)(d.name,{attributes:{...d.example.attributes,className:l},innerBlocks:d.example.innerBlocks}):Object(s.cloneBlock)(t,{className:l})}),Object(r.createElement)(I.a,{clientId:c,onSwitch:n,onHoverClassName:a,itemRole:"menuitem"}))}var x=n("1iEr");const T=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set;const{clientId:o,name:r,innerBlocks:c=[]}=e;if(!n.has(o)){if(r===t)return e;for(const e of c){const o=T(e,t,n);if(o)return o}}},P=(e,t)=>{const n=((e,t)=>{const n=Object(s.__experimentalGetBlockAttributesNamesByRole)(e,"content");return null!=n&&n.length?n.reduce((e,n)=>(t[n]&&(e[n]=t[n]),e),{}):t})(t.name,t.attributes);e.attributes={...e.attributes,...n}};var R=(e,t)=>Object(r.useMemo)(()=>e.reduce((e,n)=>{const o=((e,t)=>{const n=t.map(e=>Object(s.cloneBlock)(e)),o=new Set;for(const t of e){let e=!1;for(const r of n){const n=T(r,t.name,o);if(n){e=!0,o.add(n.clientId),P(n,t);break}}if(!e)return}return n})(t,n.blocks);return o&&e.push({...n,transformedBlocks:o}),e},[]),[e,t]);function N(e){let{patterns:t,onSelect:n}=e;return Object(r.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},Object(r.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},Object(r.createElement)(u.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right"},Object(r.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(r.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(b.__)("Preview")),Object(r.createElement)(L,{patterns:t,onSelect:n})))))}function L(e){let{patterns:t,onSelect:n}=e;const c=Object(u.__unstableUseCompositeState)();return Object(r.createElement)(u.__unstableComposite,Object(o.a)({},c,{role:"listbox",className:"block-editor-block-switcher__preview-patterns-container","aria-label":Object(b.__)("Patterns list")}),t.map(e=>Object(r.createElement)(M,{key:e.name,pattern:e,onSelect:n,composite:c})))}function M(e){let{pattern:t,onSelect:n,composite:c}=e;const l="block-editor-block-switcher__preview-patterns-container",i=Object(a.useInstanceId)(M,l+"-list__item-description");return Object(r.createElement)("div",{className:l+"-list__list-item","aria-label":t.title,"aria-describedby":t.description?i:void 0},Object(r.createElement)(u.__unstableCompositeItem,Object(o.a)({role:"option",as:"div"},c,{className:l+"-list__item",onClick:()=>n(t.transformedBlocks)}),Object(r.createElement)(C.a,{blocks:t.transformedBlocks,viewportWidth:t.viewportWidth||500}),Object(r.createElement)("div",{className:l+"-list__item-title"},t.title)),!!t.description&&Object(r.createElement)(u.VisuallyHidden,{id:i},t.description))}var A=function(e){let{blocks:t,patterns:n,onSelect:o}=e;const[c,l]=Object(r.useState)(!1),i=R(n,t);return i.length?Object(r.createElement)(u.MenuGroup,{className:"block-editor-block-switcher__pattern__transforms__menugroup"},c&&Object(r.createElement)(N,{patterns:i,onSelect:o}),Object(r.createElement)(u.MenuItem,{onClick:e=>{e.preventDefault(),l(!c)},icon:x.a},Object(b.__)("Patterns"))):null};const D=e=>{let{clientIds:t,blocks:n}=e;const{replaceBlocks:o}=Object(i.useDispatch)(k.a),c=Object(p.a)(n[0].clientId),{possibleBlockTransformations:l,canRemove:a,hasBlockStyles:d,icon:h,blockTitle:g,patterns:O}=Object(i.useSelect)(e=>{var o;const{getBlockRootClientId:r,getBlockTransformItems:l,__experimentalGetPatternTransformItems:i}=e(k.a),{getBlockStyles:a,getBlockType:u}=e(s.store),{canRemoveBlocks:d}=e(k.a),b=r(Object(f.castArray)(t)[0]),[{name:p}]=n,m=1===n.length,h=m&&a(p);let g;if(m)g=null==c?void 0:c.icon;else{var O;g=1===Object(f.uniq)(n.map(e=>{let{name:t}=e;return t})).length?null===(O=u(p))||void 0===O?void 0:O.icon:y.a}return{possibleBlockTransformations:l(n,b),canRemove:d(t,b),hasBlockStyles:!(null==h||!h.length),icon:g,blockTitle:null===(o=u(p))||void 0===o?void 0:o.title,patterns:i(n,b)}},[t,n,null==c?void 0:c.icon]),v=1===n.length&&Object(s.isReusableBlock)(n[0]),j=1===n.length&&Object(s.isTemplatePart)(n[0]),_=!!l.length&&a,C=!(null==O||!O.length)&&a;if(!d&&!_)return Object(r.createElement)(u.ToolbarGroup,null,Object(r.createElement)(u.ToolbarButton,{disabled:!0,className:"block-editor-block-switcher__no-switcher-icon",title:g,icon:Object(r.createElement)(m.a,{icon:h,showColors:!0})}));const S=g,I=1===n.length?Object(b.sprintf)(Object(b.__)("%s: Change block type or style"),g):Object(b.sprintf)(Object(b._n)("Change type of %d block","Change type of %d blocks",n.length),n.length),x=d||_||C;return Object(r.createElement)(u.ToolbarGroup,null,Object(r.createElement)(u.ToolbarItem,null,e=>Object(r.createElement)(u.DropdownMenu,{className:"block-editor-block-switcher",label:S,popoverProps:{position:"bottom right",isAlternate:!0,className:"block-editor-block-switcher__popover"},icon:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(m.a,{icon:h,className:"block-editor-block-switcher__toggle",showColors:!0}),(v||j)&&Object(r.createElement)("span",{className:"block-editor-block-switcher__toggle-text"},Object(r.createElement)(E.a,{clientId:t}))),toggleProps:{describedBy:I,...e},menuProps:{orientation:"both"}},e=>{let{onClose:c}=e;return x&&Object(r.createElement)("div",{className:"block-editor-block-switcher__container"},C&&Object(r.createElement)(A,{blocks:n,patterns:O,onSelect:e=>{(e=>{o(t,e)})(e),c()}}),_&&Object(r.createElement)(w,{className:"block-editor-block-switcher__transforms__menugroup",possibleBlockTransformations:l,blocks:n,onSelect:e=>{(e=>{o(t,Object(s.switchToBlockType)(n,e))})(e),c()}}),d&&Object(r.createElement)(B,{hoveredBlock:n[0],onSwitch:c}))})))};var F=e=>{let{clientIds:t}=e;const n=Object(i.useSelect)(e=>e(k.a).getBlocksByClientId(t),[t]);return!n.length||n.some(e=>!e)?null:Object(r.createElement)(D,{clientIds:t,blocks:n})},z=n("fOYa"),H=n("U1WI");function V(e){let{hideDragHandle:t}=e;const{blockClientIds:n,blockClientId:c,blockType:b,hasFixedToolbar:p,hasReducedUI:m,isValid:f,isVisual:h}=Object(i.useSelect)(e=>{const{getBlockName:t,getBlockMode:n,getSelectedBlockClientIds:o,isBlockValid:r,getBlockRootClientId:c,getSettings:l}=e(k.a),i=o(),a=i[0],u=c(a),d=l();return{blockClientIds:i,blockClientId:a,blockType:a&&Object(s.getBlockType)(t(a)),hasFixedToolbar:d.hasFixedToolbar,hasReducedUI:d.hasReducedUI,rootClientId:u,isValid:i.every(e=>r(e)),isVisual:i.every(e=>"visual"===n(e))}},[]),{toggleBlockHighlight:g}=Object(i.useDispatch)(k.a),O=Object(r.useRef)(),{showMovers:v,gestures:y}=j({ref:O,onChange(e){e&&m||g(c,e)}}),E=Object(a.useViewportMatch)("medium","<")||p;if(b&&!Object(s.hasBlockSupport)(b,"__experimentalToolbar",!0))return null;const C=E||v;if(0===n.length)return null;const S=f&&h,w=n.length>1,I=l()("block-editor-block-toolbar",C&&"is-showing-movers");return Object(r.createElement)("div",{className:I},!w&&!E&&Object(r.createElement)(_,{clientIds:n}),Object(r.createElement)("div",Object(o.a)({ref:O},y),(S||w)&&Object(r.createElement)(u.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls"},Object(r.createElement)(F,{clientIds:n}),Object(r.createElement)(d.a,{clientIds:n,hideDragHandle:t||m}))),S&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(z.b.Slot,{group:"parent",className:"block-editor-block-toolbar__slot"}),Object(r.createElement)(z.b.Slot,{group:"block",className:"block-editor-block-toolbar__slot"}),Object(r.createElement)(z.b.Slot,{className:"block-editor-block-toolbar__slot"}),Object(r.createElement)(z.b.Slot,{group:"inline",className:"block-editor-block-toolbar__slot"}),Object(r.createElement)(z.b.Slot,{group:"other",className:"block-editor-block-toolbar__slot"})),Object(r.createElement)(H.a,{clientIds:n}))}},"//Lo":function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));t.a=c},"/Hvg":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n("GRId"),r=n("tI+e"),c=n("l3Sj"),l=n("Tqx9");var i=Object(o.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(l.Path,{d:"M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"}));var a=Object(o.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(l.Path,{d:"M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"}));var s=Object(o.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(l.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"}));const u=[{name:Object(c.__)("Uppercase"),value:"uppercase",icon:i},{name:Object(c.__)("Lowercase"),value:"lowercase",icon:a},{name:Object(c.__)("Capitalize"),value:"capitalize",icon:s}];function d(e){let{value:t,onChange:n}=e;return Object(o.createElement)("fieldset",{className:"block-editor-text-transform-control"},Object(o.createElement)("legend",null,Object(c.__)("Letter case")),Object(o.createElement)("div",{className:"block-editor-text-transform-control__buttons"},u.map(e=>Object(o.createElement)(r.Button,{key:e.value,icon:e.icon,isSmall:!0,isPressed:t===e.value,"aria-label":e.name,onClick:()=>n(t===e.value?void 0:e.value)}))))}},"/QNa":function(e,t,n){"use strict";var o=n("GRId"),r=n("1ZqX"),c=n("wx14"),l=n("K9lf"),i=n("BhPs"),a=n("AHN3");var s=Object(l.createHigherOrderComponent)(e=>Object(r.withRegistry)(t=>{let{useSubRegistry:n=!0,registry:l,...s}=t;if(!n)return Object(o.createElement)(e,Object(c.a)({registry:l},s));const[u,d]=Object(o.useState)(null);return Object(o.useEffect)(()=>{const e=Object(r.createRegistry)({},l);e.registerStore(a.a,i.b),d(e)},[l]),u?Object(o.createElement)(r.RegistryProvider,{value:u},Object(o.createElement)(e,Object(c.a)({registry:u},s))):null}),"withRegistryProvider"),u=n("JGYp"),d=n("cDhi");t.a=s((function(e){const{children:t,settings:n}=e,{updateSettings:c}=Object(r.useDispatch)(i.a);return Object(o.useEffect)(()=>{c(n)},[n]),Object(u.a)(e),Object(o.createElement)(d.b,null,t)}))},"/lNF":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("HSyU"),r=n("1ZqX"),c=n("1CF3"),l=n("BhPs");function i(e,t,n,r,c,l,i){return a=>{const{srcRootClientId:s,srcClientIds:u,type:d,blocks:b}=function(e){let t={srcRootClientId:null,srcClientIds:null,srcIndex:null,type:null,blocks:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("wp-blocks")))}catch(e){return t}return t}(a);if("inserter"===d){i();const n=b.map(e=>Object(o.cloneBlock)(e));l(n,t,e,!0,null)}if("block"===d){const o=n(u[0],s);if(s===e&&o===t)return;if(u.includes(e)||r(u).some(t=>t===e))return;const l=s===e,i=u.length;c(u,s,e,l&&o<t?t-i:t)}}}function a(e,t){const n=Object(r.useSelect)(e=>e(l.a).getSettings().mediaUpload,[]),{canInsertBlockType:a,getBlockIndex:s,getClientIdsOfDescendants:u}=Object(r.useSelect)(l.a),{insertBlocks:d,moveBlocksToPosition:b,updateBlockAttributes:p,clearSelectedBlock:m}=Object(r.useDispatch)(l.a),f=i(e,t,s,u,b,d,m),h=function(e,t,n,r,c,l){return i=>{if(!n)return;const a=Object(o.findTransform)(Object(o.getBlockTransforms)("from"),t=>"files"===t.type&&c(t.blockName,e)&&t.isMatch(i));if(a){const n=a.transform(i,r);l(n,t,e)}}}(e,t,n,p,a,d),g=function(e,t,n){return r=>{const c=Object(o.pasteHandler)({HTML:r,mode:"BLOCKS"});c.length&&n(c,t,e)}}(e,t,d);return e=>{const t=Object(c.getFilesFromDataTransfer)(e.dataTransfer),n=e.dataTransfer.getData("text/html");t.length?h(t):n?g(n):f(e)}}},"0E5u":function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return m}));var o=n("wx14"),r=n("GRId"),c=n("tI+e"),l=n("kWXm"),i=n("DmX/"),a=n("suLj"),s=n("bTSr"),u=n("l3Sj");const d={left:l.a,center:i.a,right:a.a,"space-between":s.a};var b=function(e){let{allowedControls:t=["left","center","right","space-between"],isCollapsed:n=!0,onChange:b,value:p,popoverProps:m,isToolbar:f}=e;const h=e=>{b(e===p?void 0:e)},g=p?d[p]:d.left,O=[{name:"left",icon:l.a,title:Object(u.__)("Justify items left"),isActive:"left"===p,onClick:()=>h("left")},{name:"center",icon:i.a,title:Object(u.__)("Justify items center"),isActive:"center"===p,onClick:()=>h("center")},{name:"right",icon:a.a,title:Object(u.__)("Justify items right"),isActive:"right"===p,onClick:()=>h("right")},{name:"space-between",icon:s.a,title:Object(u.__)("Space between items"),isActive:"space-between"===p,onClick:()=>h("space-between")}],v=f?c.ToolbarGroup:c.ToolbarDropdownMenu,j=f?{isCollapsed:n}:{};return Object(r.createElement)(v,Object(o.a)({icon:g,popoverProps:m,label:Object(u.__)("Change items justification"),controls:O.filter(e=>t.includes(e.name))},j))};function p(e){return Object(r.createElement)(b,Object(o.a)({},e,{isToolbar:!1}))}function m(e){return Object(r.createElement)(b,Object(o.a)({},e,{isToolbar:!0}))}},"14PQ":function(e,t,n){"use strict";n.d(t,"gc",(function(){return o.b})),n.d(t,"hc",(function(){return o.c})),n.d(t,"ic",(function(){return o.d})),n.d(t,"fc",(function(){return o.a})),n.d(t,"uc",(function(){return o.e})),n.d(t,"xb",(function(){return r.a})),n.d(t,"nc",(function(){return r.e})),n.d(t,"yb",(function(){return r.b})),n.d(t,"mc",(function(){return r.d})),n.d(t,"Rb",(function(){return r.c})),n.d(t,"jc",(function(){return c.b})),n.d(t,"kc",(function(){return c.c})),n.d(t,"lc",(function(){return c.d})),n.d(t,"I",(function(){return c.a})),n.d(t,"vc",(function(){return c.e})),n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return O})),n.d(t,"c",(function(){return x})),n.d(t,"d",(function(){return T.a})),n.d(t,"e",(function(){return T.b})),n.d(t,"nb",(function(){return N})),n.d(t,"lb",(function(){return M})),n.d(t,"f",(function(){return z})),n.d(t,"mb",(function(){return G})),n.d(t,"h",(function(){return U.a})),n.d(t,"i",(function(){return W.b})),n.d(t,"m",(function(){return W.a})),n.d(t,"g",(function(){return Y})),n.d(t,"j",(function(){return X.a})),n.d(t,"pc",(function(){return k.c})),n.d(t,"n",(function(){return C.a})),n.d(t,"r",(function(){return Ie})),n.d(t,"pb",(function(){return xe})),n.d(t,"ob",(function(){return We})),n.d(t,"qb",(function(){return $e})),n.d(t,"A",(function(){return nt})),n.d(t,"z",(function(){return tt})),n.d(t,"rb",(function(){return ot.a})),n.d(t,"sb",(function(){return rt.a})),n.d(t,"C",(function(){return ct.a})),n.d(t,"B",(function(){return ct.b})),n.d(t,"D",(function(){return at})),n.d(t,"E",(function(){return ut})),n.d(t,"F",(function(){return dt.a})),n.d(t,"ub",(function(){return bt.a})),n.d(t,"vb",(function(){return pt.a})),n.d(t,"wb",(function(){return mt.a})),n.d(t,"Eb",(function(){return ft.a})),n.d(t,"Ob",(function(){return ht.a})),n.d(t,"Pb",(function(){return gt.a})),n.d(t,"tb",(function(){return st.a})),n.d(t,"Lb",(function(){return Ot.a})),n.d(t,"Ab",(function(){return on})),n.d(t,"zb",(function(){return qt})),n.d(t,"Bb",(function(){return cn})),n.d(t,"J",(function(){return ln.a})),n.d(t,"rc",(function(){return ln.b})),n.d(t,"M",(function(){return an.b})),n.d(t,"L",(function(){return an.a})),n.d(t,"O",(function(){return sn.b})),n.d(t,"N",(function(){return sn.a})),n.d(t,"Gb",(function(){return Hn})),n.d(t,"Hb",(function(){return xn})),n.d(t,"Jb",(function(){return yn})),n.d(t,"Ib",(function(){return kn})),n.d(t,"P",(function(){return Vn.a})),n.d(t,"Kb",(function(){return Se})),n.d(t,"R",(function(){return $n})),n.d(t,"Q",(function(){return to})),n.d(t,"S",(function(){return qn})),n.d(t,"T",(function(){return Kn})),n.d(t,"X",(function(){return no})),n.d(t,"Y",(function(){return Ro})),n.d(t,"Nb",(function(){return Lo})),n.d(t,"ab",(function(){return xo})),n.d(t,"bb",(function(){return Mo})),n.d(t,"cb",(function(){return Ao})),n.d(t,"Yb",(function(){return Do})),n.d(t,"eb",(function(){return zo})),n.d(t,"Qb",(function(){return Ho})),n.d(t,"gb",(function(){return gn})),n.d(t,"hb",(function(){return Wo})),n.d(t,"ib",(function(){return Jn})),n.d(t,"Cb",(function(){return Yo})),n.d(t,"tc",(function(){return it})),n.d(t,"Ub",(function(){return Xo.a})),n.d(t,"Xb",(function(){return Zo.a})),n.d(t,"Mb",(function(){return Qo})),n.d(t,"Tb",(function(){return Jo})),n.d(t,"o",(function(){return ur})),n.d(t,"p",(function(){return dr.c})),n.d(t,"qc",(function(){return br.a})),n.d(t,"Db",(function(){return pr.b})),n.d(t,"q",(function(){return mr.a})),n.d(t,"s",(function(){return Te.a})),n.d(t,"t",(function(){return fr.a})),n.d(t,"Zb",(function(){return fr.b})),n.d(t,"u",(function(){return hr.a})),n.d(t,"v",(function(){return gr.a})),n.d(t,"w",(function(){return F.a})),n.d(t,"x",(function(){return Or.a})),n.d(t,"y",(function(){return Er})),n.d(t,"G",(function(){return Cr.a})),n.d(t,"bc",(function(){return Cr.b})),n.d(t,"H",(function(){return Sr.a})),n.d(t,"Vb",(function(){return wr.a})),n.d(t,"K",(function(){return Ir.a})),n.d(t,"Fb",(function(){return xr})),n.d(t,"k",(function(){return Pr})),n.d(t,"U",(function(){return Rr})),n.d(t,"V",(function(){return Nr.a})),n.d(t,"W",(function(){return Dr})),n.d(t,"ec",(function(){return Ar})),n.d(t,"cc",(function(){return Mr})),n.d(t,"Z",(function(){return Fr})),n.d(t,"db",(function(){return tr})),n.d(t,"fb",(function(){return Gr})),n.d(t,"dc",(function(){return Vr})),n.d(t,"jb",(function(){return Ur.a})),n.d(t,"kb",(function(){return Wr.a})),n.d(t,"ac",(function(){return Kr})),n.d(t,"oc",(function(){return ce.a})),n.d(t,"Wb",(function(){return $r.a})),n.d(t,"Sb",(function(){return Zr})),n.d(t,"l",(function(){return Qr.a})),n.d(t,"sc",(function(){return lt.a}));var o=n("5gPN"),r=n("zmSX"),c=n("9XVa"),l=n("wx14"),i=n("GRId"),a=n("YLtl"),s=n("l3Sj"),u=n("tI+e"),d=n("fPbg"),b=n("plpT"),p=n("ziDm");const m=[{icon:d.a,title:Object(s.__)("Align text left"),align:"left"},{icon:b.a,title:Object(s.__)("Align text center"),align:"center"},{icon:p.a,title:Object(s.__)("Align text right"),align:"right"}],f={position:"bottom right",isAlternate:!0};var h=function(e){let{value:t,onChange:n,alignmentControls:o=m,label:r=Object(s.__)("Align"),describedBy:c=Object(s.__)("Change text alignment"),isCollapsed:b=!0,isToolbar:h}=e;function g(e){return()=>n(t===e?void 0:e)}const O=Object(a.find)(o,e=>e.align===t),v=h?u.ToolbarGroup:u.ToolbarDropdownMenu,j=h?{isCollapsed:b}:{};return Object(i.createElement)(v,Object(l.a)({icon:O?O.icon:Object(s.isRTL)()?p.a:d.a,label:r,toggleProps:{describedBy:c},popoverProps:f,controls:o.map(e=>{const{align:n}=e,o=t===n;return{...e,isActive:o,role:b?"menuitemradio":void 0,onClick:g(n)}})},j))};function g(e){return Object(i.createElement)(h,Object(l.a)({},e,{isToolbar:!1}))}function O(e){return Object(i.createElement)(h,Object(l.a)({},e,{isToolbar:!0}))}var v=n("g56x"),j=n("HSyU"),k=n("ur0x"),_=n("1ZqX"),y=n("pOGT"),E=n("+G0a"),C=n("7SSY"),S=n("BhPs");var w={name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems(e){const{rootClientId:t,selectedBlockName:n}=Object(_.useSelect)(e=>{const{getSelectedBlockClientId:t,getBlockName:n,getBlockInsertionPoint:o}=e(S.a),r=t();return{selectedBlockName:r?n(r):null,rootClientId:o().rootClientId}},[]),[o,r,c]=Object(E.a)(t,a.noop),l=Object(i.useMemo)(()=>(e.trim()?Object(y.a)(o,r,c,e):Object(a.orderBy)(o,["frecency"],["desc"])).filter(e=>e.name!==n).slice(0,9),[e,n,o,r,c]);return[Object(i.useMemo)(()=>l.map(e=>{const{title:t,icon:n,isDisabled:o}=e;return{key:"block-"+e.id,value:e,label:Object(i.createElement)(i.Fragment,null,Object(i.createElement)(C.a,{key:"icon",icon:n,showColors:!0}),t),isDisabled:o}}),[l])]},allowContext:(e,t)=>!(/\S/.test(e)||/\S/.test(t)),getOptionCompletion(e){const{name:t,initialAttributes:n,innerBlocks:o}=e;return{action:"replace",value:Object(j.createBlock)(t,n,Object(j.createBlocksFromInnerBlocksTemplate)(o))}}};const I=[];function B(e){let{completers:t=I}=e;const{name:n}=Object(k.c)();return Object(i.useMemo)(()=>{let e=t;return(n===Object(j.getDefaultBlockName)()||Object(j.getBlockSupport)(n,"__experimentalSlashInserter",!1))&&(e=e.concat([w])),Object(v.hasFilter)("editor.Autocomplete.completers")&&(e===t&&(e=e.map(a.clone)),e=Object(v.applyFilters)("editor.Autocomplete.completers",e,n)),e},[t,n])}var x=function(e){return Object(i.createElement)(u.Autocomplete,Object(l.a)({},e,{completers:B(e)}))},T=n("vtO0"),P=n("Tqx9");var R=Object(i.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(P.Path,{d:"M4.2 9h1.5V5.8H9V4.2H4.2V9zm14 9.2H15v1.5h4.8V15h-1.5v3.2zM15 4.2v1.5h3.2V9h1.5V4.2H15zM5.8 15H4.2v4.8H9v-1.5H5.8V15z"}));var N=function(e){let{isActive:t,label:n=Object(s.__)("Toggle full height"),onToggle:o,isDisabled:r}=e;return Object(i.createElement)(u.ToolbarButton,{isActive:t,icon:R,label:n,onClick:()=>o(!t),disabled:r})},L=n("RxS6");var M=function(e){const{label:t=Object(s.__)("Change matrix alignment"),onChange:n=a.noop,value:o="center",isDisabled:r}=e,c=Object(i.createElement)(u.__experimentalAlignmentMatrixControl.Icon,{value:o}),l="block-editor-block-alignment-matrix-control";return Object(i.createElement)(u.Dropdown,{position:"bottom right",className:l,popoverProps:{className:"block-editor-block-alignment-matrix-control__popover",isAlternate:!0},renderToggle:e=>{let{onToggle:n,isOpen:o}=e;return Object(i.createElement)(u.ToolbarButton,{onClick:n,"aria-haspopup":"true","aria-expanded":o,onKeyDown:e=>{o||e.keyCode!==L.DOWN||(e.preventDefault(),n())},label:t,icon:c,showTooltip:!0,disabled:r})},renderContent:()=>Object(i.createElement)(u.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:n,value:o})})},A=n("iClF");var D=Object(i.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(P.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})),F=n("f8JO");var z=function(e){let{rootLabelText:t}=e;const{selectBlock:n,clearSelectedBlock:o}=Object(_.useDispatch)(S.a),{clientId:r,parents:c,hasSelection:l}=Object(_.useSelect)(e=>{const{getSelectionStart:t,getSelectedBlockClientId:n,getBlockParents:o}=e(S.a),r=n();return{parents:o(r),clientId:r,hasSelection:!!t().clientId}},[]),a=t||Object(s.__)("Document");return Object(i.createElement)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":Object(s.__)("Block breadcrumb")},Object(i.createElement)("li",{className:l?void 0:"block-editor-block-breadcrumb__current","aria-current":l?void 0:"true"},l&&Object(i.createElement)(u.Button,{className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:o},a),!l&&a,!!r&&Object(i.createElement)(A.a,{icon:D,className:"block-editor-block-breadcrumb__separator"})),c.map(e=>Object(i.createElement)("li",{key:e},Object(i.createElement)(u.Button,{className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:()=>n(e)},Object(i.createElement)(F.a,{clientId:e})),Object(i.createElement)(A.a,{icon:D,className:"block-editor-block-breadcrumb__separator"}))),!!r&&Object(i.createElement)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true"},Object(i.createElement)(F.a,{clientId:r})))},H=n("TSYQ"),V=n.n(H);function G(e){let{clientId:t,tagName:n="div",wrapperProps:o,className:r}=e;const[c,a]=Object(i.useState)(!0),[s,u]=Object(i.useState)(!1),{isParentSelected:d,hasChildSelected:b,isDraggingBlocks:p,isParentHighlighted:m}=Object(_.useSelect)(e=>{const{isBlockSelected:n,hasSelectedInnerBlock:o,isDraggingBlocks:r,isBlockHighlighted:c}=e(S.a);return{isParentSelected:n(t),hasChildSelected:o(t,!0),isDraggingBlocks:r(),isParentHighlighted:c(t)}},[t]),f=V()("block-editor-block-content-overlay",null==o?void 0:o.className,r,{"overlay-active":c,"parent-highlighted":m,"is-dragging-blocks":p});return Object(i.useEffect)(()=>{d||b||c||a(!0),d&&!s&&c&&a(!1),b&&c&&a(!1)},[d,b,c,s]),Object(i.createElement)(n,Object(l.a)({},o,{className:f,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),onMouseUp:c?()=>a(!1):void 0}),null==o?void 0:o.children)}var U=n("uoCR"),W=n("fOYa");const q=()=>Object(i.createElement)(u.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 20 20"},Object(i.createElement)(u.Path,{d:"M7.434 5l3.18 9.16H8.538l-.692-2.184H4.628l-.705 2.184H2L5.18 5h2.254zm-1.13 1.904h-.115l-1.148 3.593H7.44L6.304 6.904zM14.348 7.006c1.853 0 2.9.876 2.9 2.374v4.78h-1.79v-.914h-.114c-.362.64-1.123 1.022-2.031 1.022-1.346 0-2.292-.826-2.292-2.108 0-1.27.972-2.006 2.71-2.107l1.696-.102V9.38c0-.584-.42-.914-1.18-.914-.667 0-1.112.228-1.264.647h-1.701c.12-1.295 1.307-2.107 3.066-2.107zm1.079 4.1l-1.416.09c-.793.056-1.18.342-1.18.844 0 .52.45.837 1.091.837.857 0 1.505-.545 1.505-1.256v-.515z"})),K=e=>{let{style:t,className:n}=e;return Object(i.createElement)("div",{className:"block-library-colors-selector__icon-container"},Object(i.createElement)("div",{className:n+" block-library-colors-selector__state-selection",style:t},Object(i.createElement)(q,null)))},$=e=>{let{TextColor:t,BackgroundColor:n}=e;return e=>{let{onToggle:o,isOpen:r}=e;return Object(i.createElement)(u.ToolbarGroup,null,Object(i.createElement)(u.ToolbarButton,{className:"components-toolbar__control block-library-colors-selector__toggle",label:Object(s.__)("Open Colors Selector"),onClick:o,onKeyDown:e=>{r||e.keyCode!==L.DOWN||(e.preventDefault(),o())},icon:Object(i.createElement)(n,null,Object(i.createElement)(t,null,Object(i.createElement)(K,null)))}))}};var Y=e=>{let{children:t,...n}=e;return Object(i.createElement)(u.Dropdown,{position:"bottom right",className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:$(n),renderContent:()=>t})},X=n("JRTi"),Z=n("OzlF"),Q=n("K9lf"),J=n("VKE3"),ee=n("+DUQ"),te=n("Xkls");const ne=Object(ee.animated)(u.__experimentalTreeGridRow);function oe(e){let{isSelected:t,position:n,level:o,rowCount:r,children:c,className:a,path:s,...u}=e;const d=Object(te.a)({isSelected:t,adjustScrolling:!1,enableAnimation:!0,triggerAnimationOnChange:s});return Object(i.createElement)(ne,Object(l.a)({ref:d,className:V()("block-editor-list-view-leaf",a),level:o,positionInSet:n,setSize:r},u),c)}var re=n("9Ma0"),ce=n("wC17");function le(e){let{onClick:t}=e;return Object(i.createElement)("span",{className:"block-editor-list-view__expander",onClick:e=>t(e,{forceToggle:!0}),"aria-hidden":"true"},Object(i.createElement)(A.a,{icon:D}))}var ie=Object(i.forwardRef)((function e(t,n){let{className:o,block:{clientId:r},isSelected:c,onClick:l,onToggleExpanded:a,position:d,siblingBlockCount:b,level:p,tabIndex:m,onFocus:f,onDragStart:h,onDragEnd:g,draggable:O}=t;const v=Object(ce.a)(r),j="list-view-block-select-button__"+Object(Q.useInstanceId)(e),k=((e,t,n)=>Object(s.sprintf)(Object(s.__)("Block %1$d of %2$d, Level %3$d"),e,t,n))(d,b,p);return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(u.Button,{className:V()("block-editor-list-view-block-select-button",o),onClick:l,"aria-describedby":j,ref:n,tabIndex:m,onFocus:f,onDragStart:h,onDragEnd:g,draggable:O},Object(i.createElement)(le,{onClick:a}),Object(i.createElement)(C.a,{icon:null==v?void 0:v.icon,showColors:!0}),Object(i.createElement)(F.a,{clientId:r}),(null==v?void 0:v.anchor)&&Object(i.createElement)("span",{className:"block-editor-list-view-block-select-button__anchor"},v.anchor),c&&Object(i.createElement)(u.VisuallyHidden,null,Object(s.__)("(selected block)"))),Object(i.createElement)("div",{className:"block-editor-list-view-block-select-button__description",id:j},k))})),ae=n("ZAjO");var se=Object(i.forwardRef)((e,t)=>{let{onClick:n,onToggleExpanded:o,block:r,isSelected:c,position:a,siblingBlockCount:s,level:u,...d}=e;const{clientId:b}=r,{blockMovingClientId:p,selectedBlockInBlockEditor:m}=Object(_.useSelect)(e=>{const{getBlockRootClientId:t,hasBlockMovingClientId:n,getSelectedBlockClientId:o}=e(S.a);return{rootClientId:t(b)||"",blockMovingClientId:n(),selectedBlockInBlockEditor:o()}},[b]),f=p&&m===b,h=V()("block-editor-list-view-block-contents",{"is-dropping-before":f});return Object(i.createElement)(ae.a,{clientIds:[r.clientId]},e=>{let{draggable:b,onDragStart:p,onDragEnd:m}=e;return Object(i.createElement)(ie,Object(l.a)({ref:t,className:h,block:r,onClick:n,onToggleExpanded:o,isSelected:c,position:a,siblingBlockCount:s,level:u,draggable:b,onDragStart:p,onDragEnd:m},d))})}),ue=n("1eGn");const de=Object(i.createContext)({__experimentalFeatures:!1,__experimentalPersistentListViewFeatures:!1}),be=()=>Object(i.useContext)(de);var pe=Object(i.memo)((function(e){let{block:t,isDragged:n,isSelected:o,isBranchSelected:r,selectBlock:c,position:l,level:a,rowCount:s,siblingBlockCount:d,showBlockMovers:b,path:p,isExpanded:m}=e;const f=Object(i.useRef)(null),[h,g]=Object(i.useState)(!1),{clientId:O}=t,{toggleBlockHighlight:v}=Object(_.useDispatch)(S.a),{__experimentalFeatures:j,__experimentalPersistentListViewFeatures:k,__experimentalHideContainerBlockActions:y,isTreeGridMounted:E,expand:C,collapse:w}=be(),I=b&&d>0,B=V()("block-editor-list-view-block__mover-cell",{"is-visible":h||o}),x=V()("block-editor-list-view-block__menu-cell",{"is-visible":h||o});Object(i.useEffect)(()=>{k&&!E&&o&&f.current.focus()},[]);const T=k?v:()=>{},P=Object(i.useCallback)(()=>{g(!0),T(O,!0)},[O,g,T]),R=Object(i.useCallback)(()=>{g(!1),T(O,!1)},[O,g,T]),N=Object(i.useCallback)(e=>{e.stopPropagation(),c(O)},[O,c]),L=Object(i.useCallback)(e=>{e.stopPropagation(),!0===m?w(O):!1===m&&C(O)},[O,C,w,m]),M=j&&(!y||y&&a>1),A=j&&!M;let D;I?D=2:A&&(D=3);const F=V()({"is-selected":o,"is-branch-selected":k&&r,"is-dragging":n,"has-single-cell":A});return Object(i.createElement)(oe,{className:F,onMouseEnter:P,onMouseLeave:R,onFocus:P,onBlur:R,level:a,position:l,rowCount:s,path:p,id:"list-view-block-"+O,"data-block":O,isExpanded:m},Object(i.createElement)(u.__experimentalTreeGridCell,{className:"block-editor-list-view-block__contents-cell",colSpan:D,ref:f},e=>{let{ref:n,tabIndex:r,onFocus:c}=e;return Object(i.createElement)("div",{className:"block-editor-list-view-block__contents-container"},Object(i.createElement)(se,{block:t,onClick:N,onToggleExpanded:L,isSelected:o,position:l,siblingBlockCount:d,level:a,ref:n,tabIndex:r,onFocus:c}))}),I&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(u.__experimentalTreeGridCell,{className:B,withoutGridItem:!0},Object(i.createElement)(u.__experimentalTreeGridItem,null,e=>{let{ref:t,tabIndex:n,onFocus:o}=e;return Object(i.createElement)(re.b,{orientation:"vertical",clientIds:[O],ref:t,tabIndex:n,onFocus:o})}),Object(i.createElement)(u.__experimentalTreeGridItem,null,e=>{let{ref:t,tabIndex:n,onFocus:o}=e;return Object(i.createElement)(re.a,{orientation:"vertical",clientIds:[O],ref:t,tabIndex:n,onFocus:o})}))),M&&Object(i.createElement)(u.__experimentalTreeGridCell,{className:x},e=>{let{ref:t,tabIndex:n,onFocus:o}=e;return Object(i.createElement)(ue.a,{clientIds:[O],icon:J.a,toggleProps:{ref:t,className:"block-editor-list-view-block__menu",tabIndex:n,onFocus:o},disableOpenOnArrowDown:!0,__experimentalSelectBlock:N})}))}));function me(e,t,n){var o;if(null==n?void 0:n.includes(e.clientId))return 0;return null===(o=t[e.clientId])||void 0===o||o?1+e.innerBlocks.reduce(fe(t,n),0):1}const fe=(e,t)=>(n,o)=>{var r;if(null==t?void 0:t.includes(o.clientId))return n;return(null===(r=e[o.clientId])||void 0===r||r)&&o.innerBlocks.length>0?n+me(o,e,t):n+1};function he(e){const{blocks:t,selectBlock:n,showBlockMovers:o,showNestedBlocks:r,selectedClientIds:c,level:l=1,path:s="",isBranchSelected:u=!1,listPosition:d=0,fixedListWindow:b}=e,{expandedState:p,draggedClientIds:m,__experimentalPersistentListViewFeatures:f}=be(),h=Object(a.compact)(t),g=h.length;let O=d;return Object(i.createElement)(i.Fragment,null,h.map((e,t)=>{var d;const{clientId:v,innerBlocks:j}=e;t>0&&(O+=me(h[t-1],p,m));const k=f,{itemInView:y}=b,E=!k||y(O),C=t+1,S=s.length>0?`${s}_${C}`:""+C,w=r&&!!j&&!!j.length,I=w?null===(d=p[v])||void 0===d||d:void 0,B=!(null==m||!m.includes(v)),x=B||E,T=((e,t)=>Object(a.isArray)(t)&&t.length?-1!==t.indexOf(e):t===e)(v,c),P=u||T&&w;return Object(i.createElement)(_.AsyncModeProvider,{key:v,value:!T},x&&Object(i.createElement)(pe,{block:e,selectBlock:n,isSelected:T,isBranchSelected:P,isDragged:B,level:l,position:C,rowCount:g,siblingBlockCount:g,showBlockMovers:o,path:S,isExpanded:I,listPosition:O}),!x&&Object(i.createElement)("tr",null,Object(i.createElement)("td",{className:"block-editor-list-view-placeholder"})),w&&I&&!B&&Object(i.createElement)(he,{blocks:j,selectBlock:n,showBlockMovers:o,showNestedBlocks:r,level:l+1,path:S,listPosition:O+1,fixedListWindow:b,isBranchSelected:P,selectedClientIds:c}))}))}he.defaultProps={selectBlock:()=>{}};var ge=Object(i.memo)(he);function Oe(e){let{listViewRef:t,blockDropTarget:n}=e;const{rootClientId:o,clientId:r,dropPosition:c}=n||{},[l,a]=Object(i.useMemo)(()=>{if(!t.current)return[];return[o?t.current.querySelector(`[data-block="${o}"]`):void 0,r?t.current.querySelector(`[data-block="${r}"]`):void 0]},[o,r]),s=a||l,d=Object(i.useCallback)(()=>{if(!l)return 0;const e=s.getBoundingClientRect();return l.querySelector(".block-editor-block-icon").getBoundingClientRect().right-e.left},[l,s]),b=Object(i.useMemo)(()=>{if(!s)return{};const e=d();return{width:s.offsetWidth-e}},[d,s]),p=Object(i.useCallback)(()=>{if(!s)return{};const e=s.ownerDocument,t=s.getBoundingClientRect(),n=d(),o={left:t.left+n,right:t.right,width:0,height:t.height,ownerDocument:e};return"top"===c?{...o,top:t.top,bottom:t.top}:"bottom"===c||"inside"===c?{...o,top:t.bottom,bottom:t.bottom}:{}},[s,c,d]);return s?Object(i.createElement)(u.Popover,{noArrow:!0,animate:!1,getAnchorRect:p,focusOnMount:!1,className:"block-editor-list-view-drop-indicator"},Object(i.createElement)("div",{style:b,className:"block-editor-list-view-drop-indicator__line"})):null}var ve=n("vIlp"),je=n("/lNF");function ke(e,t){return t.left<=e.x&&t.right>=e.x&&t.top<=e.y&&t.bottom>=e.y}const _e=["top","bottom"];function ye(){const{getBlockRootClientId:e,getBlockIndex:t,getBlockCount:n,getDraggedBlockClientIds:o,canInsertBlocks:r}=Object(_.useSelect)(S.a),[c,l]=Object(i.useState)(),{rootClientId:a,blockIndex:s}=c||{},u=Object(je.a)(a,s),d=o(),b=Object(Q.useThrottle)(Object(i.useCallback)((o,c)=>{const i={x:o.clientX,y:o.clientY},a=!(null==d||!d.length),s=function(e,t){let n,o,r,c;for(const l of e){if(l.isDraggedBlock)continue;const i=l.element.getBoundingClientRect(),[a,s]=Object(ve.a)(t,i,_e),u=ke(t,i);if(void 0===r||a<r||u){r=a;const t=e.indexOf(l),d=e[t-1];if("top"===s&&d&&d.rootClientId===l.rootClientId&&!d.isDraggedBlock?(o=d,n="bottom",c=d.element.getBoundingClientRect()):(o=l,n=s,c=i),u)break}}if(!o)return;const l="bottom"===n;if(l&&o.canInsertDraggedBlocksAsChild&&(o.innerBlockCount>0||function(e,t){const n=t.left+t.width/2;return e.x>n}(t,c)))return{rootClientId:o.clientId,blockIndex:0,dropPosition:"inside"};if(!o.canInsertDraggedBlocksAsSibling)return;const i=l?1:0;return{rootClientId:o.rootClientId,clientId:o.clientId,blockIndex:o.blockIndex+i,dropPosition:n}}(Array.from(c.querySelectorAll("[data-block]")).map(o=>{const c=o.dataset.block,l=e(c);return{clientId:c,rootClientId:l,blockIndex:t(c,l),element:o,isDraggedBlock:!!a&&d.includes(c),innerBlockCount:n(c),canInsertDraggedBlocksAsSibling:!a||r(d,l),canInsertDraggedBlocksAsChild:!a||r(d,c)}}),i);s&&l(s)},[d]),200);return{ref:Object(Q.__experimentalUseDropZone)({onDrop:u,onDragOver(e){b(e,e.currentTarget)},onDragEnd(){b.cancel(),l(null)}}),target:c}}const Ee=()=>{},Ce=(e,t)=>{switch(t.type){case"expand":return{...e,[t.clientId]:!0};case"collapse":return{...e,[t.clientId]:!1};default:return e}};var Se=Object(i.forwardRef)((function(e,t){let{blocks:n,onSelect:o=Ee,__experimentalFeatures:r,__experimentalPersistentListViewFeatures:c,__experimentalHideContainerBlockActions:a,showNestedBlocks:d,showBlockMovers:b,...p}=e;const{clientIdsTree:m,draggedClientIds:f,selectedClientIds:h}=function(e){return Object(_.useSelect)(t=>{const{getDraggedBlockClientIds:n,getSelectedBlockClientIds:o,__unstableGetClientIdsTree:r}=t(S.a);return{selectedClientIds:o(),draggedClientIds:n(),clientIdsTree:e||r()}},[e])}(n),{selectBlock:g}=Object(_.useDispatch)(S.a),{visibleBlockCount:O}=Object(_.useSelect)(e=>{const{getGlobalBlockCount:t,getClientIdsOfDescendants:n}=e(S.a),o=(null==f?void 0:f.length)>0?n(f).length+1:0;return{visibleBlockCount:t()-o}},[f]),v=Object(i.useCallback)(e=>{g(e),o(e)},[g,o]),[j,k]=Object(i.useReducer)(Ce,{}),{ref:y,target:E}=ye(),C=Object(i.useRef)(),w=Object(Q.useMergeRefs)([C,y,t]),I=Object(i.useRef)(!1);Object(i.useEffect)(()=>{I.current=!0},[]);const[B]=Object(Q.__experimentalUseFixedWindowList)(C,36,O,{useWindowing:c,windowOverscan:40}),x=Object(i.useCallback)(e=>{e&&k({type:"expand",clientId:e})},[k]),T=Object(i.useCallback)(e=>{e&&k({type:"collapse",clientId:e})},[k]),P=Object(i.useCallback)(e=>{var t;x(null==e||null===(t=e.dataset)||void 0===t?void 0:t.block)},[x]),R=Object(i.useCallback)(e=>{var t;T(null==e||null===(t=e.dataset)||void 0===t?void 0:t.block)},[T]),N=Object(i.useMemo)(()=>({__experimentalFeatures:r,__experimentalPersistentListViewFeatures:c,__experimentalHideContainerBlockActions:a,isTreeGridMounted:I.current,draggedClientIds:f,expandedState:j,expand:x,collapse:T}),[r,c,a,I.current,f,j,x,T]);return Object(i.createElement)(_.AsyncModeProvider,{value:!0},Object(i.createElement)(Oe,{listViewRef:C,blockDropTarget:E}),Object(i.createElement)(u.__experimentalTreeGrid,{className:"block-editor-list-view-tree","aria-label":Object(s.__)("Block navigation structure"),ref:w,onCollapseRow:R,onExpandRow:P},Object(i.createElement)(de.Provider,{value:N},Object(i.createElement)(ge,Object(l.a)({blocks:m,selectBlock:v,showNestedBlocks:d,showBlockMovers:b,fixedListWindow:B,selectedClientIds:h},p)))))}));function we(e){let{isEnabled:t,onToggle:n,isOpen:o,innerRef:r,...c}=e;return Object(i.createElement)(u.Button,Object(l.a)({},c,{ref:r,icon:Z.a,"aria-expanded":o,"aria-haspopup":"true",onClick:t?n:void 0,label:Object(s.__)("List view"),className:"block-editor-block-navigation","aria-disabled":!t}))}var Ie=Object(i.forwardRef)((function(e,t){let{isDisabled:n,__experimentalFeatures:o,...r}=e;const c=Object(_.useSelect)(e=>!!e(S.a).getBlockCount(),[])&&!n;return Object(i.createElement)(u.Dropdown,{contentClassName:"block-editor-block-navigation__popover",position:"bottom right",renderToggle:e=>{let{isOpen:n,onToggle:o}=e;return Object(i.createElement)(we,Object(l.a)({},r,{innerRef:t,isOpen:n,onToggle:o,isEnabled:c}))},renderContent:()=>Object(i.createElement)("div",{className:"block-editor-block-navigation__container"},Object(i.createElement)("p",{className:"block-editor-block-navigation__label"},Object(s.__)("List view")),Object(i.createElement)(Se,{showNestedBlocks:!0,__experimentalFeatures:o}))})})),Be=n("Civd");var xe=function(e){let{icon:t=Be.a,label:n=Object(s.__)("Choose variation"),instructions:o=Object(s.__)("Select a variation to start with."),variations:r,onSelect:c,allowSkip:l}=e;const a=V()("block-editor-block-variation-picker",{"has-many-variations":r.length>4});return Object(i.createElement)(u.Placeholder,{icon:t,label:n,instructions:o,className:a},Object(i.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":Object(s.__)("Block variations")},r.map(e=>Object(i.createElement)("li",{key:e.name},Object(i.createElement)(u.Button,{variant:"secondary",icon:e.icon,iconSize:48,onClick:()=>c(e),className:"block-editor-block-variation-picker__variation",label:e.description||e.title}),Object(i.createElement)("span",{className:"block-editor-block-variation-picker__variation-label",role:"presentation"},e.title)))),l&&Object(i.createElement)("div",{className:"block-editor-block-variation-picker__skip"},Object(i.createElement)(u.Button,{variant:"link",onClick:()=>c()},Object(s.__)("Skip"))))},Te=n("REKd"),Pe=n("2gm7"),Re=n("1iEr"),Ne=n("XNw2"),Le=n("b2RC");const Me="carousel",Ae="grid",De=e=>{let{onStartBlank:t,onBlockPatternSelect:n}=e;return Object(i.createElement)("div",{className:"block-editor-block-pattern-setup__actions"},Object(i.createElement)(u.Button,{onClick:t},Object(s.__)("Start blank")),Object(i.createElement)(u.Button,{variant:"primary",onClick:n},Object(s.__)("Choose")))},Fe=e=>{let{handlePrevious:t,handleNext:n,activeSlide:o,totalSlides:r}=e;return Object(i.createElement)("div",{className:"block-editor-block-pattern-setup__navigation"},Object(i.createElement)(u.Button,{icon:Pe.a,label:Object(s.__)("Previous pattern"),onClick:t,disabled:0===o}),Object(i.createElement)(u.Button,{icon:Re.a,label:Object(s.__)("Next pattern"),onClick:n,disabled:o===r-1}))};var ze=e=>{let{viewMode:t,setViewMode:n,handlePrevious:o,handleNext:r,activeSlide:c,totalSlides:l,onBlockPatternSelect:a,onStartBlank:d}=e;const b=t===Me,p=Object(i.createElement)("div",{className:"block-editor-block-pattern-setup__display-controls"},Object(i.createElement)(u.Button,{icon:Ne.a,label:Object(s.__)("Carousel view"),onClick:()=>n(Me),isPressed:b}),Object(i.createElement)(u.Button,{icon:Le.a,label:Object(s.__)("Grid view"),onClick:()=>n(Ae),isPressed:t===Ae}));return Object(i.createElement)("div",{className:"block-editor-block-pattern-setup__toolbar"},b&&Object(i.createElement)(Fe,{handlePrevious:o,handleNext:r,activeSlide:c,totalSlides:l}),p,b&&Object(i.createElement)(De,{onBlockPatternSelect:a,onStartBlank:d}))};var He=function(e,t,n){return Object(_.useSelect)(o=>{const{getBlockRootClientId:r,__experimentalGetPatternsByBlockTypes:c,__experimentalGetAllowedPatterns:l}=o(S.a),i=r(e);return n?l(i).filter(n):c(t,i)},[e,t,n])};const Ve=e=>{let{viewMode:t,activeSlide:n,patterns:o,onBlockPatternSelect:r}=e;const c=Object(u.__unstableUseCompositeState)(),a="block-editor-block-pattern-setup__container";if(t===Me){const e=new Map([[n,"active-slide"],[n-1,"previous-slide"],[n+1,"next-slide"]]);return Object(i.createElement)("div",{className:a},Object(i.createElement)("ul",{className:"carousel-container"},o.map((t,n)=>Object(i.createElement)(Ue,{className:e.get(n)||"",key:t.name,pattern:t}))))}return Object(i.createElement)(u.__unstableComposite,Object(l.a)({},c,{role:"listbox",className:a,"aria-label":Object(s.__)("Patterns list")}),o.map(e=>Object(i.createElement)(Ge,{key:e.name,pattern:e,onSelect:r,composite:c})))};function Ge(e){let{pattern:t,onSelect:n,composite:o}=e;const r="block-editor-block-pattern-setup-list",{blocks:c,title:a,description:s,viewportWidth:d=700}=t,b=Object(Q.useInstanceId)(Ge,r+"__item-description");return Object(i.createElement)("div",{className:r+"__list-item","aria-label":t.title,"aria-describedby":t.description?b:void 0},Object(i.createElement)(u.__unstableCompositeItem,Object(l.a)({role:"option",as:"div"},o,{className:r+"__item",onClick:()=>n(c)}),Object(i.createElement)(Te.a,{blocks:c,viewportWidth:d}),Object(i.createElement)("div",{className:r+"__item-title"},a)),!!s&&Object(i.createElement)(u.VisuallyHidden,{id:b},s))}function Ue(e){let{className:t,pattern:n}=e;const{blocks:o,title:r,description:c}=n,l=Object(Q.useInstanceId)(Ue,"block-editor-block-pattern-setup-list__item-description");return Object(i.createElement)("li",{className:"pattern-slide "+t,"aria-label":r,"aria-describedby":c?l:void 0},Object(i.createElement)(Te.a,{blocks:o,__experimentalLive:!0}),!!c&&Object(i.createElement)(u.VisuallyHidden,{id:l},c))}var We=e=>{let{clientId:t,blockName:n,filterPatternsFn:o,startBlankComponent:r,onBlockPatternSelect:c}=e;const[l,a]=Object(i.useState)(Me),[s,u]=Object(i.useState)(0),[d,b]=Object(i.useState)(!1),{replaceBlock:p}=Object(_.useDispatch)(S.a),m=He(t,n,o);if(null==m||!m.length||d)return r;const f=c||(e=>{const n=e.map(e=>Object(j.cloneBlock)(e));p(t,n)});return Object(i.createElement)("div",{className:"block-editor-block-pattern-setup view-mode-"+l},Object(i.createElement)(ze,{viewMode:l,setViewMode:a,activeSlide:s,totalSlides:m.length,handleNext:()=>{u(e=>e+1)},handlePrevious:()=>{u(e=>e-1)},onBlockPatternSelect:()=>{f(m[s].blocks)},onStartBlank:()=>{b(!0)}}),Object(i.createElement)(Ve,{viewMode:l,activeSlide:s,patterns:m,onBlockPatternSelect:f}))},qe=n("NWDH"),Ke=n("Btt3");var $e=function(e){let{blockClientId:t}=e;const[n,o]=Object(i.useState)(),{updateBlockAttributes:r}=Object(_.useDispatch)(S.a),{variations:c,blockAttributes:l}=Object(_.useSelect)(e=>{const{getBlockVariations:n}=e(j.store),{getBlockName:o,getBlockAttributes:r}=e(S.a),c=t&&o(t);return{variations:c&&n(c,"transform"),blockAttributes:r(t)}},[t]);if(Object(i.useEffect)(()=>{var e;o(null===(e=Object(Ke.a)(l,c))||void 0===e?void 0:e.name)},[l,c]),null==c||!c.length)return null;const a=c.map(e=>{let{name:t,title:n,description:o}=e;return{value:t,label:n,info:o}}),d=e=>{r(t,{...c.find(t=>{let{name:n}=t;return n===e}).attributes})},b="block-editor-block-variation-transforms";return Object(i.createElement)(u.DropdownMenu,{className:b,label:Object(s.__)("Transform to variation"),text:Object(s.__)("Transform to variation"),popoverProps:{position:"bottom center",className:b+"__popover"},icon:qe.a,toggleProps:{iconPosition:"right"}},()=>Object(i.createElement)("div",{className:b+"__container"},Object(i.createElement)(u.MenuGroup,null,Object(i.createElement)(u.MenuItemsChoice,{choices:a,value:n,onSelect:d}))))};const Ye=Object(i.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(u.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),Xe=Object(i.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(u.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})),Ze={top:{icon:Object(i.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(u.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),title:Object(s._x)("Align top","Block vertical alignment setting")},center:{icon:Xe,title:Object(s._x)("Align middle","Block vertical alignment setting")},bottom:{icon:Ye,title:Object(s._x)("Align bottom","Block vertical alignment setting")}},Qe=["top","center","bottom"],Je={isAlternate:!0};var et=function(e){let{value:t,onChange:n,controls:o=Qe,isCollapsed:r=!0,isToolbar:c}=e;const a=Ze[t],d=Ze.top,b=c?u.ToolbarGroup:u.ToolbarDropdownMenu,p=c?{isCollapsed:r}:{};return Object(i.createElement)(b,Object(l.a)({popoverProps:Je,icon:a?a.icon:d.icon,label:Object(s._x)("Change vertical alignment","Block vertical alignment setting label"),controls:o.map(e=>{return{...Ze[e],isActive:t===e,role:r?"menuitemradio":void 0,onClick:(o=e,()=>n(t===o?void 0:o))};var o})},p))};function tt(e){return Object(i.createElement)(et,Object(l.a)({},e,{isToolbar:!1}))}function nt(e){return Object(i.createElement)(et,Object(l.a)({},e,{isToolbar:!0}))}var ot=n("Wy3j"),rt=n("2YCo"),ct=n("I5Hl"),lt=n("v5LD"),it=Object(Q.createHigherOrderComponent)(e=>t=>{const n=Object(lt.a)("color.palette"),o=!Object(lt.a)("color.custom"),r=void 0===t.colors?n:t.colors,c=void 0===t.disableCustomColors?o:t.disableCustomColors,s=!Object(a.isEmpty)(r)||!c;return Object(i.createElement)(e,Object(l.a)({},t,{colors:r,disableCustomColors:c,hasColorsToChoose:s}))},"withColorContext"),at=it(u.ColorPalette),st=n("hMaJ");function ut(e){let{onChange:t,value:n,...o}=e;return Object(i.createElement)(st.a,Object(l.a)({},o,{onColorChange:t,colorValue:n,gradients:[],disableCustomGradients:!0}))}var dt=n("6c9H"),bt=n("1uGa"),pt=n("Bo0k"),mt=n("GKUk"),ft=n("xBDm"),ht=n("kVRd"),gt=n("/Hvg"),Ot=n("yU1v"),vt=function(e,t){return(vt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};var jt=function(){return(jt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.create;Object.create;var kt=n("cDcd"),_t=n.n(kt),yt=n("wJiJ"),Et=n.n(yt);function Ct(e,t,n,o,r,c){void 0===c&&(c=0);var l=Mt(e,t,c),i=l.width,a=l.height,s=Math.min(i,n),u=Math.min(a,o);return s>u*r?{width:u*r,height:u}:{width:s,height:s/r}}function St(e,t,n,o,r){void 0===r&&(r=0);var c=Mt(t.width,t.height,r),l=c.width,i=c.height;return{x:wt(e.x,l,n.width,o),y:wt(e.y,i,n.height,o)}}function wt(e,t,n,o){var r=t*o/2-n/2;return Math.min(r,Math.max(e,-r))}function It(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function Bt(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function xt(e,t,n,o,r,c,l){void 0===c&&(c=0),void 0===l&&(l=!0);var i=l&&0===c?Tt:Pt,a={x:i(100,((t.width-n.width/r)/2-e.x/r)/t.width*100),y:i(100,((t.height-n.height/r)/2-e.y/r)/t.height*100),width:i(100,n.width/t.width*100/r),height:i(100,n.height/t.height*100/r)},s=Math.round(i(t.naturalWidth,a.width*t.naturalWidth/100)),u=Math.round(i(t.naturalHeight,a.height*t.naturalHeight/100)),d=t.naturalWidth>=t.naturalHeight*o?{width:Math.round(u*o),height:u}:{width:s,height:Math.round(s/o)};return{croppedAreaPercentages:a,croppedAreaPixels:jt(jt({},d),{x:Math.round(i(t.naturalWidth-d.width,a.x*t.naturalWidth/100)),y:Math.round(i(t.naturalHeight-d.height,a.y*t.naturalHeight/100))})}}function Tt(e,t){return Math.min(e,Math.max(0,t))}function Pt(e,t){return t}function Rt(e,t,n){var o=t.width/t.naturalWidth,r=function(e,t,n){var o=t.width/t.naturalWidth;if(n)return n.height>n.width?n.height/o/e.height:n.width/o/e.width;var r=e.width/e.height;return t.naturalWidth>=t.naturalHeight*r?t.naturalHeight/e.height:t.naturalWidth/e.width}(e,t,n),c=o*r;return{crop:{x:((t.naturalWidth-e.width)/2-e.x)*c,y:((t.naturalHeight-e.height)/2-e.y)*c},zoom:r}}function Nt(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function Lt(e,t,n,o,r){var c=Math.cos,l=Math.sin,i=r*Math.PI/180;return[(e-n)*c(i)-(t-o)*l(i)+n,(e-n)*l(i)+(t-o)*c(i)+o]}function Mt(e,t,n){var o=e/2,r=t/2,c=[Lt(0,0,o,r,n),Lt(e,0,o,r,n),Lt(e,t,o,r,n),Lt(0,t,o,r,n)],l=Math.min.apply(Math,c.map((function(e){return e[0]}))),i=Math.max.apply(Math,c.map((function(e){return e[0]}))),a=Math.min.apply(Math,c.map((function(e){return e[1]})));return{width:i-l,height:Math.max.apply(Math,c.map((function(e){return e[1]})))-a}}function At(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return"string"==typeof e&&e.length>0})).join(" ").trim()}var Dt=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.imageRef=null,n.videoRef=null,n.containerRef=null,n.styleRef=null,n.containerRect=null,n.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},n.dragStartPosition={x:0,y:0},n.dragStartCrop={x:0,y:0},n.lastPinchDistance=0,n.lastPinchRotation=0,n.rafDragTimeout=null,n.rafPinchTimeout=null,n.wheelTimer=null,n.state={cropSize:null,hasWheelJustStarted:!1},n.preventZoomSafari=function(e){return e.preventDefault()},n.cleanEvents=function(){document.removeEventListener("mousemove",n.onMouseMove),document.removeEventListener("mouseup",n.onDragStopped),document.removeEventListener("touchmove",n.onTouchMove),document.removeEventListener("touchend",n.onDragStopped)},n.clearScrollEvent=function(){n.containerRef&&n.containerRef.removeEventListener("wheel",n.onWheel),n.wheelTimer&&clearTimeout(n.wheelTimer)},n.onMediaLoad=function(){n.computeSizes(),n.emitCropData(),n.setInitialCrop(),n.props.onMediaLoaded&&n.props.onMediaLoaded(n.mediaSize)},n.setInitialCrop=function(){var e=n.props,t=e.initialCroppedAreaPixels,o=e.cropSize;if(t){var r=Rt(t,n.mediaSize,o),c=r.crop,l=r.zoom;n.props.onCropChange(c),n.props.onZoomChange&&n.props.onZoomChange(l)}},n.computeSizes=function(){var e,t,o,r,c,l,i=n.imageRef||n.videoRef;if(i&&n.containerRef){n.containerRect=n.containerRef.getBoundingClientRect(),n.mediaSize={width:i.offsetWidth,height:i.offsetHeight,naturalWidth:(null===(e=n.imageRef)||void 0===e?void 0:e.naturalWidth)||(null===(t=n.videoRef)||void 0===t?void 0:t.videoWidth)||0,naturalHeight:(null===(o=n.imageRef)||void 0===o?void 0:o.naturalHeight)||(null===(r=n.videoRef)||void 0===r?void 0:r.videoHeight)||0};var a=n.props.cropSize?n.props.cropSize:Ct(i.offsetWidth,i.offsetHeight,n.containerRect.width,n.containerRect.height,n.props.aspect,n.props.rotation);(null===(c=n.state.cropSize)||void 0===c?void 0:c.height)===a.height&&(null===(l=n.state.cropSize)||void 0===l?void 0:l.width)===a.width||n.props.onCropSizeChange&&n.props.onCropSizeChange(a),n.setState({cropSize:a},n.recomputeCropPosition)}},n.onMouseDown=function(e){e.preventDefault(),document.addEventListener("mousemove",n.onMouseMove),document.addEventListener("mouseup",n.onDragStopped),n.onDragStart(t.getMousePoint(e))},n.onMouseMove=function(e){return n.onDrag(t.getMousePoint(e))},n.onTouchStart=function(e){document.addEventListener("touchmove",n.onTouchMove,{passive:!1}),document.addEventListener("touchend",n.onDragStopped),2===e.touches.length?n.onPinchStart(e):1===e.touches.length&&n.onDragStart(t.getTouchPoint(e.touches[0]))},n.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?n.onPinchMove(e):1===e.touches.length&&n.onDrag(t.getTouchPoint(e.touches[0]))},n.onDragStart=function(e){var t,o,r=e.x,c=e.y;n.dragStartPosition={x:r,y:c},n.dragStartCrop=jt({},n.props.crop),null===(o=(t=n.props).onInteractionStart)||void 0===o||o.call(t)},n.onDrag=function(e){var t=e.x,o=e.y;n.rafDragTimeout&&window.cancelAnimationFrame(n.rafDragTimeout),n.rafDragTimeout=window.requestAnimationFrame((function(){if(n.state.cropSize&&void 0!==t&&void 0!==o){var e=t-n.dragStartPosition.x,r=o-n.dragStartPosition.y,c={x:n.dragStartCrop.x+e,y:n.dragStartCrop.y+r},l=n.props.restrictPosition?St(c,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):c;n.props.onCropChange(l)}}))},n.onDragStopped=function(){var e,t;n.cleanEvents(),n.emitCropData(),null===(t=(e=n.props).onInteractionEnd)||void 0===t||t.call(e)},n.onWheel=function(e){e.preventDefault();var o=t.getMousePoint(e),r=Et()(e).pixelY,c=n.props.zoom-r*n.props.zoomSpeed/200;n.setNewZoom(c,o),n.state.hasWheelJustStarted||n.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=n.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),n.wheelTimer&&clearTimeout(n.wheelTimer),n.wheelTimer=window.setTimeout((function(){return n.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=n.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)},n.getPointOnContainer=function(e){var t=e.x,o=e.y;if(!n.containerRect)throw new Error("The Cropper is not mounted");return{x:n.containerRect.width/2-(t-n.containerRect.left),y:n.containerRect.height/2-(o-n.containerRect.top)}},n.getPointOnMedia=function(e){var t=e.x,o=e.y,r=n.props,c=r.crop,l=r.zoom;return{x:(t+c.x)/l,y:(o+c.y)/l}},n.setNewZoom=function(e,t){if(n.state.cropSize&&n.props.onZoomChange){var o=n.getPointOnContainer(t),r=n.getPointOnMedia(o),c=Math.min(n.props.maxZoom,Math.max(e,n.props.minZoom)),l={x:r.x*c-o.x,y:r.y*c-o.y},i=n.props.restrictPosition?St(l,n.mediaSize,n.state.cropSize,c,n.props.rotation):l;n.props.onCropChange(i),n.props.onZoomChange(c)}},n.getCropData=function(){return n.state.cropSize?xt(n.props.restrictPosition?St(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop,n.mediaSize,n.state.cropSize,n.getAspect(),n.props.zoom,n.props.rotation,n.props.restrictPosition):null},n.emitCropData=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,o=e.croppedAreaPixels;n.props.onCropComplete&&n.props.onCropComplete(t,o),n.props.onCropAreaChange&&n.props.onCropAreaChange(t,o)}},n.emitCropAreaChange=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,o=e.croppedAreaPixels;n.props.onCropAreaChange&&n.props.onCropAreaChange(t,o)}},n.recomputeCropPosition=function(){if(n.state.cropSize){var e=n.props.restrictPosition?St(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop;n.props.onCropChange(e),n.emitCropData()}},n}return function(e,t){function n(){this.constructor=e}vt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.computeSizes),this.containerRef&&(this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.preventZoomSafari),this.containerRef.addEventListener("gesturechange",this.preventZoomSafari)),this.props.disableAutomaticStylesInjection||(this.styleRef=document.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.styleRef.innerHTML=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",document.head.appendChild(this.styleRef)),this.imageRef&&this.imageRef.complete&&this.onMediaLoad()},t.prototype.componentWillUnmount=function(){var e;window.removeEventListener("resize",this.computeSizes),this.containerRef&&(this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.containerRef.removeEventListener("gesturechange",this.preventZoomSafari)),this.styleRef&&(null===(e=this.styleRef.parentNode)||void 0===e||e.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent()},t.prototype.componentDidUpdate=function(e){var t,n,o,r,c,l,i,a,s;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(n=this.props.cropSize)||void 0===n?void 0:n.height)||(null===(o=e.cropSize)||void 0===o?void 0:o.width)!==(null===(r=this.props.cropSize)||void 0===r?void 0:r.width)?this.computeSizes():(null===(c=e.crop)||void 0===c?void 0:c.x)===(null===(l=this.props.crop)||void 0===l?void 0:l.x)&&(null===(i=e.crop)||void 0===i?void 0:i.y)===(null===(a=this.props.crop)||void 0===a?void 0:a.y)||this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&(null===(s=this.videoRef)||void 0===s||s.load())},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,n=e.aspect;return t?t.width/t.height:n},t.prototype.onPinchStart=function(e){var n=t.getTouchPoint(e.touches[0]),o=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=It(n,o),this.lastPinchRotation=Bt(n,o),this.onDragStart(Nt(n,o))},t.prototype.onPinchMove=function(e){var n=this,o=t.getTouchPoint(e.touches[0]),r=t.getTouchPoint(e.touches[1]),c=Nt(o,r);this.onDrag(c),this.rafPinchTimeout&&window.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=window.requestAnimationFrame((function(){var e=It(o,r),t=n.props.zoom*(e/n.lastPinchDistance);n.setNewZoom(t,c),n.lastPinchDistance=e;var l=Bt(o,r),i=n.props.rotation+(l-n.lastPinchRotation);n.props.onRotationChange&&n.props.onRotationChange(i),n.lastPinchRotation=l}))},t.prototype.render=function(){var e=this,t=this.props,n=t.image,o=t.video,r=t.mediaProps,c=t.transform,l=t.crop,i=l.x,a=l.y,s=t.rotation,u=t.zoom,d=t.cropShape,b=t.showGrid,p=t.style,m=p.containerStyle,f=p.cropAreaStyle,h=p.mediaStyle,g=t.classes,O=g.containerClassName,v=g.cropAreaClassName,j=g.mediaClassName,k=t.objectFit;return _t.a.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:m,className:At("reactEasyCrop_Container",O)},n?_t.a.createElement("img",jt({alt:"",className:At("reactEasyCrop_Image","contain"===k&&"reactEasyCrop_Contain","horizontal-cover"===k&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===k&&"reactEasyCrop_Cover_Vertical",j)},r,{src:n,ref:function(t){return e.imageRef=t},style:jt(jt({},h),{transform:c||"translate("+i+"px, "+a+"px) rotate("+s+"deg) scale("+u+")"}),onLoad:this.onMediaLoad})):o&&_t.a.createElement("video",jt({autoPlay:!0,loop:!0,muted:!0,className:At("reactEasyCrop_Video","contain"===k&&"reactEasyCrop_Contain","horizontal-cover"===k&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===k&&"reactEasyCrop_Cover_Vertical",j)},r,{ref:function(t){return e.videoRef=t},onLoadedMetadata:this.onMediaLoad,style:jt(jt({},h),{transform:c||"translate("+i+"px, "+a+"px) rotate("+s+"deg) scale("+u+")"}),controls:!1}),(Array.isArray(o)?o:[{src:o}]).map((function(e){return _t.a.createElement("source",jt({key:e.src},e))}))),this.state.cropSize&&_t.a.createElement("div",{style:jt(jt({},f),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:At("reactEasyCrop_CropArea","round"===d&&"reactEasyCrop_CropAreaRound",b&&"reactEasyCrop_CropAreaGrid",v)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(_t.a.Component);const Ft={position:"bottom right",isAlternate:!0};var zt=n("ywyh"),Ht=n.n(zt),Vt=n("onLe");function Gt(e,t){const n=function(e){let{url:t,naturalWidth:n,naturalHeight:o}=e;const[r,c]=Object(i.useState)(),[l,a]=Object(i.useState)(),[s,u]=Object(i.useState)({x:0,y:0}),[d,b]=Object(i.useState)(),[p,m]=Object(i.useState)(),[f,h]=Object(i.useState)(),[g,O]=Object(i.useState)(),j=Object(i.useCallback)(()=>{u({x:0,y:0}),b(100),m(0),h(n/o),O(n/o)},[n,o,u,b,m,h,O]),k=Object(i.useCallback)(()=>{const e=(p+90)%360;let r=n/o;if(p%180==90&&(r=o/n),0===e)return c(),m(e),h(1/f),void u({x:-s.y*r,y:s.x*r});const l=new window.Image;l.src=t,l.onload=function(t){const n=document.createElement("canvas");let o=0,l=0;e%180?(n.width=t.target.height,n.height=t.target.width):(n.width=t.target.width,n.height=t.target.height),90!==e&&180!==e||(o=n.width),270!==e&&180!==e||(l=n.height);const i=n.getContext("2d");i.translate(o,l),i.rotate(e*Math.PI/180),i.drawImage(t.target,0,0),n.toBlob(t=>{c(URL.createObjectURL(t)),m(e),h(1/f),u({x:-s.y*r,y:s.x*r})})};const i=Object(v.applyFilters)("media.crossOrigin",void 0,t);"string"==typeof i&&(l.crossOrigin=i)},[p,n,o,c,m,h,u]);return Object(i.useMemo)(()=>({editedUrl:r,setEditedUrl:c,crop:l,setCrop:a,position:s,setPosition:u,zoom:d,setZoom:b,rotation:p,setRotation:m,rotateClockwise:k,aspect:f,setAspect:h,defaultAspect:g,initializeTransformValues:j}),[r,c,l,a,s,u,d,b,p,m,k,f,h,g,j])}(e),{initializeTransformValues:o}=n;return Object(i.useEffect)(()=>{t&&o()},[t,o]),n}const Ut=Object(i.createContext)({}),Wt=()=>Object(i.useContext)(Ut);function qt(e){let{id:t,url:n,naturalWidth:o,naturalHeight:r,isEditing:c,onFinishEditing:l,onSaveImage:a,children:u}=e;const d=Gt({url:n,naturalWidth:o,naturalHeight:r},c),b=function(e){let{crop:t,rotation:n,height:o,width:r,aspect:c,url:l,id:a,onSaveImage:u,onFinishEditing:d}=e;const{createErrorNotice:b}=Object(_.useDispatch)(Vt.store),[p,m]=Object(i.useState)(!1),f=Object(i.useCallback)(()=>{m(!1),d()},[m,d]),h=Object(i.useCallback)(()=>{m(!0);let e={};(t.width<99.9||t.height<99.9)&&(e=t),n>0&&(e.rotation=n),e.src=l,Ht()({path:`/wp/v2/media/${a}/edit`,method:"POST",data:e}).then(e=>{u({id:e.id,url:e.source_url,height:o&&r?r/c:void 0})}).catch(e=>{b(Object(s.sprintf)(Object(s.__)("Could not edit image. %s"),e.message),{id:"image-editing-error",type:"snackbar"})}).finally(()=>{m(!1),d()})},[m,t,n,o,r,c,l,u,b,m,d]);return Object(i.useMemo)(()=>({isInProgress:p,apply:h,cancel:f}),[p,h,f])}({id:t,url:n,onSaveImage:a,onFinishEditing:l,...d}),p=Object(i.useMemo)(()=>({...d,...b}),[d,b]);return Object(i.createElement)(Ut.Provider,{value:p},u)}function Kt(e){let{url:t,width:n,height:o,clientWidth:r,naturalHeight:c,naturalWidth:l}=e;const{isInProgress:a,editedUrl:s,position:d,zoom:b,aspect:p,setPosition:m,setCrop:f,setZoom:h,rotation:g}=Wt();let O=o||r*c/l;return g%180==90&&(O=r*l/c),Object(i.createElement)("div",{className:V()("wp-block-image__crop-area",{"is-applying":a}),style:{width:n||r,height:O}},Object(i.createElement)(Dt,{image:s||t,disabled:a,minZoom:1,maxZoom:3,crop:d,zoom:b/100,aspect:p,onCropChange:m,onCropComplete:e=>{f(e)},onZoomChange:e=>{h(100*e)}}),a&&Object(i.createElement)(u.Spinner,null))}var $t=n("cGtP");function Yt(){const{isInProgress:e,zoom:t,setZoom:n}=Wt();return Object(i.createElement)(u.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:Ft,renderToggle:t=>{let{isOpen:n,onToggle:o}=t;return Object(i.createElement)(u.ToolbarButton,{icon:$t.a,label:Object(s.__)("Zoom"),onClick:o,"aria-expanded":n,disabled:e})},renderContent:()=>Object(i.createElement)(u.RangeControl,{label:Object(s.__)("Zoom"),min:100,max:300,value:Math.round(t),onChange:n})})}var Xt=n("RMJe");var Zt=Object(i.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(P.Path,{d:"M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"}));function Qt(e){let{aspectRatios:t,isDisabled:n,label:o,onClick:r,value:c}=e;return Object(i.createElement)(u.MenuGroup,{label:o},t.map(e=>{let{title:t,aspect:o}=e;return Object(i.createElement)(u.MenuItem,{key:o,disabled:n,onClick:()=>{r(o)},role:"menuitemradio",isSelected:o===c,icon:o===c?Xt.a:void 0},t)}))}function Jt(e){let{toggleProps:t}=e;const{isInProgress:n,aspect:o,setAspect:r,defaultAspect:c}=Wt();return Object(i.createElement)(u.DropdownMenu,{icon:Zt,label:Object(s.__)("Aspect Ratio"),popoverProps:Ft,toggleProps:t,className:"wp-block-image__aspect-ratio"},e=>{let{onClose:t}=e;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(Qt,{isDisabled:n,onClick:e=>{r(e),t()},value:o,aspectRatios:[{title:Object(s.__)("Original"),aspect:c},{title:Object(s.__)("Square"),aspect:1}]}),Object(i.createElement)(Qt,{label:Object(s.__)("Landscape"),isDisabled:n,onClick:e=>{r(e),t()},value:o,aspectRatios:[{title:Object(s.__)("16:10"),aspect:1.6},{title:Object(s.__)("16:9"),aspect:16/9},{title:Object(s.__)("4:3"),aspect:4/3},{title:Object(s.__)("3:2"),aspect:1.5}]}),Object(i.createElement)(Qt,{label:Object(s.__)("Portrait"),isDisabled:n,onClick:e=>{r(e),t()},value:o,aspectRatios:[{title:Object(s.__)("10:16"),aspect:.625},{title:Object(s.__)("9:16"),aspect:9/16},{title:Object(s.__)("3:4"),aspect:3/4},{title:Object(s.__)("2:3"),aspect:2/3}]}))})}var en=Object(i.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(P.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"}));function tn(){const{isInProgress:e,rotateClockwise:t}=Wt();return Object(i.createElement)(u.ToolbarButton,{icon:en,label:Object(s.__)("Rotate"),onClick:t,disabled:e})}function nn(){const{isInProgress:e,apply:t,cancel:n}=Wt();return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(u.ToolbarButton,{onClick:t,disabled:e},Object(s.__)("Apply")),Object(i.createElement)(u.ToolbarButton,{onClick:n},Object(s.__)("Cancel")))}function on(e){let{url:t,width:n,height:o,clientWidth:r,naturalHeight:c,naturalWidth:l}=e;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(Kt,{url:t,width:n,height:o,clientWidth:r,naturalHeight:c,naturalWidth:l}),Object(i.createElement)(W.b,null,Object(i.createElement)(u.ToolbarGroup,null,Object(i.createElement)(Yt,null),Object(i.createElement)(u.ToolbarItem,null,e=>Object(i.createElement)(Jt,{toggleProps:e})),Object(i.createElement)(tn,null)),Object(i.createElement)(u.ToolbarGroup,null,Object(i.createElement)(nn,null))))}const rn=[25,50,75,100];function cn(e){let{imageWidth:t,imageHeight:n,imageSizeOptions:o=[],isResizable:r=!0,slug:c,width:l,height:d,onChange:b,onChangeImage:p=a.noop}=e;const{currentHeight:m,currentWidth:f,updateDimension:h,updateDimensions:g}=function(e,t,n,o,r){var c,l;const[a,s]=Object(i.useState)(null!==(c=null!=t?t:o)&&void 0!==c?c:""),[u,d]=Object(i.useState)(null!==(l=null!=e?e:n)&&void 0!==l?l:"");return Object(i.useEffect)(()=>{void 0===t&&void 0!==o&&s(o),void 0===e&&void 0!==n&&d(n)},[o,n]),Object(i.useEffect)(()=>{void 0!==t&&Number.parseInt(t)!==Number.parseInt(a)&&s(t),void 0!==e&&Number.parseInt(e)!==Number.parseInt(u)&&d(e)},[t,e]),{currentHeight:u,currentWidth:a,updateDimension:(e,t)=>{"width"===e?s(t):d(t),r({[e]:""===t?void 0:parseInt(t,10)})},updateDimensions:(e,t)=>{d(null!=e?e:n),s(null!=t?t:o),r({height:e,width:t})}}}(d,l,n,t,b);return Object(i.createElement)(i.Fragment,null,!Object(a.isEmpty)(o)&&Object(i.createElement)(u.SelectControl,{label:Object(s.__)("Image size"),value:c,options:o,onChange:p}),r&&Object(i.createElement)("div",{className:"block-editor-image-size-control"},Object(i.createElement)("p",{className:"block-editor-image-size-control__row"},Object(s.__)("Image dimensions")),Object(i.createElement)("div",{className:"block-editor-image-size-control__row"},Object(i.createElement)(u.TextControl,{type:"number",className:"block-editor-image-size-control__width",label:Object(s.__)("Width"),value:f,min:1,onChange:e=>h("width",e)}),Object(i.createElement)(u.TextControl,{type:"number",className:"block-editor-image-size-control__height",label:Object(s.__)("Height"),value:m,min:1,onChange:e=>h("height",e)})),Object(i.createElement)("div",{className:"block-editor-image-size-control__row"},Object(i.createElement)(u.ButtonGroup,{"aria-label":Object(s.__)("Image size presets")},rn.map(e=>{const o=Math.round(t*(e/100)),r=Math.round(n*(e/100)),c=f===o&&m===r;return Object(i.createElement)(u.Button,{key:e,isSmall:!0,variant:c?"primary":void 0,isPressed:c,onClick:()=>g(r,o)},e,"%")})),Object(i.createElement)(u.Button,{isSmall:!0,onClick:()=>g()},Object(s.__)("Reset")))))}var ln=n("p3NJ"),an=n("1oY3"),sn=n("0E5u"),un=n("btIw"),dn=n("1CF3");var bn=e=>{let{value:t,onChange:n=a.noop,settings:o}=e;if(!o||!o.length)return null;const r=e=>o=>{n({...t,[e.id]:o})},c=o.map(e=>Object(i.createElement)(u.ToggleControl,{className:"block-editor-link-control__setting",key:e.id,label:e.title,onChange:r(e),checked:!!t&&!!t[e.id]}));return Object(i.createElement)("fieldset",{className:"block-editor-link-control__settings"},Object(i.createElement)(u.VisuallyHidden,{as:"legend"},Object(s.__)("Currently selected link settings")),c)},pn=n("9Do8"),mn=n.n(pn),fn=n("Mmq9");class hn extends i.Component{constructor(e){super(e),this.onChange=this.onChange.bind(this),this.onFocus=this.onFocus.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.selectLink=this.selectLink.bind(this),this.handleOnClick=this.handleOnClick.bind(this),this.bindSuggestionNode=this.bindSuggestionNode.bind(this),this.autocompleteRef=e.autocompleteRef||Object(i.createRef)(),this.inputRef=Object(i.createRef)(),this.updateSuggestions=Object(a.debounce)(this.updateSuggestions.bind(this),200),this.suggestionNodes=[],this.isUpdatingSuggestions=!1,this.state={suggestions:[],showSuggestions:!1,selectedSuggestion:null,suggestionsListboxId:"",suggestionOptionIdPrefix:""}}componentDidUpdate(e){const{showSuggestions:t,selectedSuggestion:n}=this.state,{value:o,__experimentalShowInitialSuggestions:r=!1}=this.props;t&&null!==n&&this.suggestionNodes[n]&&!this.scrollingIntoView&&(this.scrollingIntoView=!0,mn()(this.suggestionNodes[n],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),this.props.setTimeout(()=>{this.scrollingIntoView=!1},100)),e.value===o||this.props.disableSuggestions||this.isUpdatingSuggestions||(null!=o&&o.length?this.updateSuggestions(o):r&&this.updateSuggestions())}componentDidMount(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}componentWillUnmount(){var e,t;null===(e=this.suggestionsRequest)||void 0===e||null===(t=e.cancel)||void 0===t||t.call(e),delete this.suggestionsRequest}bindSuggestionNode(e){return t=>{this.suggestionNodes[e]=t}}shouldShowInitialSuggestions(){const{suggestions:e}=this.state,{__experimentalShowInitialSuggestions:t=!1,value:n}=this.props;return!this.isUpdatingSuggestions&&t&&!(n&&n.length)&&!(e&&e.length)}updateSuggestions(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{__experimentalFetchLinkSuggestions:n,__experimentalHandleURLSuggestions:o}=this.props;if(!n)return;const r=!(null!==(e=t)&&void 0!==e&&e.length);if(t=t.trim(),!r&&(t.length<2||!o&&Object(fn.isURL)(t)))return void this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1});this.isUpdatingSuggestions=!0,this.setState({selectedSuggestion:null,loading:!0});const c=n(t,{isInitialSuggestions:r});c.then(e=>{this.suggestionsRequest===c&&(this.setState({suggestions:e,loading:!1,showSuggestions:!!e.length}),e.length?this.props.debouncedSpeak(Object(s.sprintf)(Object(s._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length),e.length),"assertive"):this.props.debouncedSpeak(Object(s.__)("No results."),"assertive"),this.isUpdatingSuggestions=!1)}).catch(()=>{this.suggestionsRequest===c&&(this.setState({loading:!1}),this.isUpdatingSuggestions=!1)}),this.suggestionsRequest=c}onChange(e){const t=e.target.value;this.props.onChange(t),this.props.disableSuggestions||this.updateSuggestions(t)}onFocus(){const{suggestions:e}=this.state,{disableSuggestions:t,value:n}=this.props;!n||t||this.isUpdatingSuggestions||e&&e.length||this.updateSuggestions(n)}onKeyDown(e){const{showSuggestions:t,selectedSuggestion:n,suggestions:o,loading:r}=this.state;if(!t||!o.length||r){switch(e.keyCode){case L.UP:0!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(0,0));break;case L.DOWN:this.props.value.length!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length));break;case L.ENTER:this.props.onSubmit&&this.props.onSubmit(null,e)}return}const c=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case L.UP:{e.preventDefault();const t=n?n-1:o.length-1;this.setState({selectedSuggestion:t});break}case L.DOWN:{e.preventDefault();const t=null===n||n===o.length-1?0:n+1;this.setState({selectedSuggestion:t});break}case L.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(c),this.props.speak(Object(s.__)("Link selected.")));break;case L.ENTER:null!==this.state.selectedSuggestion?(this.selectLink(c),this.props.onSubmit&&this.props.onSubmit(c,e)):this.props.onSubmit&&this.props.onSubmit(null,e)}}selectLink(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}handleOnClick(e){this.selectLink(e),this.inputRef.current.focus()}static getDerivedStateFromProps(e,t){let{value:n,instanceId:o,disableSuggestions:r,__experimentalShowInitialSuggestions:c=!1}=e,{showSuggestions:l}=t,i=l;const a=n&&n.length;return c||a||(i=!1),!0===r&&(i=!1),{showSuggestions:i,suggestionsListboxId:"block-editor-url-input-suggestions-"+o,suggestionOptionIdPrefix:"block-editor-url-input-suggestion-"+o}}render(){return Object(i.createElement)(i.Fragment,null,this.renderControl(),this.renderSuggestions())}renderControl(){const{label:e,className:t,isFullWidth:n,instanceId:o,placeholder:r=Object(s.__)("Paste URL or type to search"),__experimentalRenderControl:c,value:l=""}=this.props,{loading:a,showSuggestions:d,selectedSuggestion:b,suggestionsListboxId:p,suggestionOptionIdPrefix:m}=this.state,f={id:"url-input-control-"+o,label:e,className:V()("block-editor-url-input",t,{"is-full-width":n})},h={value:l,required:!0,className:"block-editor-url-input__input",type:"text",onChange:this.onChange,onFocus:this.onFocus,placeholder:r,onKeyDown:this.onKeyDown,role:"combobox","aria-label":Object(s.__)("URL"),"aria-expanded":d,"aria-autocomplete":"list","aria-owns":p,"aria-activedescendant":null!==b?`${m}-${b}`:void 0,ref:this.inputRef};return c?c(f,h,a):Object(i.createElement)(u.BaseControl,f,Object(i.createElement)("input",h),a&&Object(i.createElement)(u.Spinner,null))}renderSuggestions(){const{className:e,__experimentalRenderSuggestions:t,value:n="",__experimentalShowInitialSuggestions:o=!1}=this.props,{showSuggestions:r,suggestions:c,selectedSuggestion:s,suggestionsListboxId:d,suggestionOptionIdPrefix:b,loading:p}=this.state,m={id:d,ref:this.autocompleteRef,role:"listbox"},f=(e,t)=>({role:"option",tabIndex:"-1",id:`${b}-${t}`,ref:this.bindSuggestionNode(t),"aria-selected":t===s});return Object(a.isFunction)(t)&&r&&c.length?t({suggestions:c,selectedSuggestion:s,suggestionsListProps:m,buildSuggestionItemProps:f,isLoading:p,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:o&&!(n&&n.length)}):!Object(a.isFunction)(t)&&r&&c.length?Object(i.createElement)(u.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(i.createElement)("div",Object(l.a)({},m,{className:V()("block-editor-url-input__suggestions",e+"__suggestions")}),c.map((e,t)=>Object(i.createElement)(u.Button,Object(l.a)({},f(0,t),{key:e.id,className:V()("block-editor-url-input__suggestion",{"is-selected":t===s}),onClick:()=>this.handleOnClick(e)}),e.title)))):null}}var gn=Object(Q.compose)(Q.withSafeTimeout,u.withSpokenMessages,Q.withInstanceId,Object(_.withSelect)((e,t)=>{if(Object(a.isFunction)(t.__experimentalFetchLinkSuggestions))return;const{getSettings:n}=e(S.a);return{__experimentalFetchLinkSuggestions:n().__experimentalFetchLinkSuggestions}}))(hn),On=n("Q4Sy");var vn=e=>{let t,{searchTerm:n,onClick:o,itemProps:r,isSelected:c,buttonText:d}=e;return n?(t=d?Object(a.isFunction)(d)?d(n):d:Object(i.createInterpolateElement)(Object(s.sprintf)(Object(s.__)("Create: <mark>%s</mark>"),n),{mark:Object(i.createElement)("mark",null)}),Object(i.createElement)(u.Button,Object(l.a)({},r,{className:V()("block-editor-link-control__search-create block-editor-link-control__search-item",{"is-selected":c}),onClick:o}),Object(i.createElement)(A.a,{className:"block-editor-link-control__search-item-icon",icon:On.a}),Object(i.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(i.createElement)("span",{className:"block-editor-link-control__search-item-title"},t)))):null};var jn=Object(i.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(P.Path,{d:"M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"}));var kn=e=>{let{itemProps:t,suggestion:n,isSelected:o=!1,onClick:r,isURL:c=!1,searchTerm:a="",shouldShowType:d=!1}=e;return Object(i.createElement)(u.Button,Object(l.a)({},t,{onClick:r,className:V()("block-editor-link-control__search-item",{"is-selected":o,"is-url":c,"is-entity":!c})}),c&&Object(i.createElement)(A.a,{className:"block-editor-link-control__search-item-icon",icon:jn}),Object(i.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(i.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(i.createElement)(u.TextHighlight,{text:n.title,highlight:a})),Object(i.createElement)("span",{"aria-hidden":!c,className:"block-editor-link-control__search-item-info"},!c&&(Object(fn.filterURLForDisplay)(Object(fn.safeDecodeURI)(n.url))||""),c&&Object(s.__)("Press ENTER to add this link"))),d&&n.type&&Object(i.createElement)("span",{className:"block-editor-link-control__search-item-type"},"post_tag"===n.type?"tag":n.type))};const _n=[{id:"opensInNewTab",title:Object(s.__)("Open in new tab")}];function yn(e){let{instanceId:t,withCreateSuggestion:n,currentInputValue:o,handleSuggestionClick:r,suggestionsListProps:c,buildSuggestionItemProps:a,suggestions:d,selectedSuggestion:b,isLoading:p,isInitialSuggestions:m,createSuggestionButtonText:f,suggestionsQuery:h}=e;const g=V()("block-editor-link-control__search-results",{"is-loading":p}),O=["url","mailto","tel","internal"],v=1===d.length&&O.includes(d[0].type.toLowerCase()),j=n&&!v&&!m,k=!(null!=h&&h.type),_="block-editor-link-control-search-results-label-"+t,y=m?Object(s.__)("Recently updated"):Object(s.sprintf)(Object(s.__)('Search results for "%s"'),o),E=Object(i.createElement)(m?i.Fragment:u.VisuallyHidden,{},Object(i.createElement)("span",{className:"block-editor-link-control__search-results-label",id:_},y));return Object(i.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},E,Object(i.createElement)("div",Object(l.a)({},c,{className:g,"aria-labelledby":_}),d.map((e,t)=>j&&"__CREATE__"===e.type?Object(i.createElement)(vn,{searchTerm:o,buttonText:f,onClick:()=>r(e),key:e.type,itemProps:a(e,t),isSelected:t===b}):"__CREATE__"===e.type?null:Object(i.createElement)(kn,{key:`${e.id}-${e.type}`,itemProps:a(e,t),suggestion:e,index:t,onClick:()=>{r(e)},isSelected:t===b,isURL:O.includes(e.type.toLowerCase()),searchTerm:o,shouldShowType:k}))))}function En(e){const t=Object(a.startsWith)(e,"#");return Object(fn.isURL)(e)||e&&e.includes("www.")||t}const Cn=()=>Promise.resolve([]),Sn=e=>{let t="URL";const n=Object(fn.getProtocol)(e)||"";return n.includes("mailto")&&(t="mailto"),n.includes("tel")&&(t="tel"),Object(a.startsWith)(e,"#")&&(t="internal"),Promise.resolve([{id:e,title:e,url:"URL"===t?Object(fn.prependHTTP)(e):e,type:t}])};function wn(e,t,n,o){const{fetchSearchSuggestions:r}=Object(_.useSelect)(e=>{const{getSettings:t}=e(S.a);return{fetchSearchSuggestions:t().__experimentalFetchLinkSuggestions}},[]),c=t?Sn:Cn;return Object(i.useCallback)((t,l)=>{let{isInitialSuggestions:i}=l;return En(t)?c(t,{isInitialSuggestions:i}):(async(e,t,n,o,r,c)=>{const{isInitialSuggestions:l}=t;let i=await Promise.all([n(e,t),o(e)]);return i=!e.includes(" ")&&c&&!l?i[0].concat(i[1]):i[0],l||En(e)||!r?i:i.concat({title:e,url:e,type:"__CREATE__"})})(t,{...e,isInitialSuggestions:i},r,c,n,o)},[c,r,n])}const In=()=>Promise.resolve([]),Bn=Object(i.forwardRef)((e,t)=>{let{value:n,children:o,currentLink:r={},className:c=null,placeholder:l=null,withCreateSuggestion:u=!1,onCreateSuggestion:d=a.noop,onChange:b=a.noop,onSelect:p=a.noop,showSuggestions:m=!0,renderSuggestions:f=(e=>Object(i.createElement)(yn,e)),fetchSuggestions:h=null,allowDirectEntry:g=!0,showInitialSuggestions:O=!1,suggestionsQuery:v={},withURLSuggestion:j=!0,createSuggestionButtonText:k,useLabel:_=!1}=e;const y=wn(v,g,u,j),E=m?h||y:In,C=Object(Q.useInstanceId)(Bn),[S,w]=Object(i.useState)(),I=async e=>{let t=e;if("__CREATE__"!==e.type)(g||t&&Object.keys(t).length>=1)&&p({...Object(a.omit)(r,"id","url"),...t},t);else try{var n;t=await d(e.title),null!==(n=t)&&void 0!==n&&n.url&&p(t)}catch(e){}},B=V()(c,{"has-no-label":!_});return Object(i.createElement)("div",{className:"block-editor-link-control__search-input-container"},Object(i.createElement)(gn,{label:_?"URL":void 0,className:B,value:n,onChange:(e,t)=>{b(e),w(t)},placeholder:null!=l?l:Object(s.__)("Search or type url"),__experimentalRenderSuggestions:m?e=>f({...e,instanceId:C,withCreateSuggestion:u,currentInputValue:n,createSuggestionButtonText:k,suggestionsQuery:v,handleSuggestionClick:t=>{e.handleSuggestionClick&&e.handleSuggestionClick(t),I(t)}}):null,__experimentalFetchLinkSuggestions:E,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:O,onSubmit:(e,t)=>{var o;const r=e||S;r||null!=n&&null!==(o=n.trim())&&void 0!==o&&o.length?I(r||{url:n}):t.preventDefault()},ref:t}),o)});var xn=Bn,Tn=n("FnAh"),Pn=n("B9Az"),Rn=n("Mp0b");const{Slot:Nn,Fill:Ln}=Object(u.createSlotFill)("BlockEditorLinkControlViewer");function Mn(e,t){switch(t.type){case"RESOLVED":return{...e,isFetching:!1,richData:t.richData};case"ERROR":return{...e,isFetching:!1,richData:null};case"LOADING":return{...e,isFetching:!0};default:throw new Error("Unexpected action type "+t.type)}}var An=function(e){const[t,n]=Object(i.useReducer)(Mn,{richData:null,isFetching:!1}),{fetchRichUrlData:o}=Object(_.useSelect)(e=>{const{getSettings:t}=e(S.a);return{fetchRichUrlData:t().__experimentalFetchRichUrlData}},[]);return Object(i.useEffect)(()=>{if(null!=e&&e.length&&o&&"undefined"!=typeof AbortController){n({type:"LOADING"});const t=new window.AbortController,r=t.signal;return o(e,{signal:r}).then(e=>{n({type:"RESOLVED",richData:e})}).catch(()=>{r.aborted||n({type:"ERROR"})}),()=>{t.abort()}}},[e]),t};function Dn(e){let{value:t,onEditClick:n,hasRichPreviews:o=!1,hasUnlinkControl:r=!1,onRemove:c}=e;const l=o?null==t?void 0:t.url:null,{richData:a,isFetching:d}=An(l),b=a&&Object.keys(a).length,p=t&&Object(fn.filterURLForDisplay)(Object(fn.safeDecodeURI)(t.url),16)||"",m=(null==a?void 0:a.title)||(null==t?void 0:t.title)||p,f=!t.url.length;let h;return h=null!=a&&a.icon?Object(i.createElement)("img",{src:null==a?void 0:a.icon,alt:""}):f?Object(i.createElement)(A.a,{icon:Tn.a,size:32}):Object(i.createElement)(A.a,{icon:jn}),Object(i.createElement)("div",{"aria-label":Object(s.__)("Currently selected"),"aria-selected":"true",className:V()("block-editor-link-control__search-item",{"is-current":!0,"is-rich":b,"is-fetching":!!d,"is-preview":!0,"is-error":f})},Object(i.createElement)("div",{className:"block-editor-link-control__search-item-top"},Object(i.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(i.createElement)("span",{className:V()("block-editor-link-control__search-item-icon",{"is-image":null==a?void 0:a.icon})},h),Object(i.createElement)("span",{className:"block-editor-link-control__search-item-details"},f?Object(i.createElement)("span",{className:"block-editor-link-control__search-item-error-notice"},"Link is empty"):Object(i.createElement)(i.Fragment,null,Object(i.createElement)(u.ExternalLink,{className:"block-editor-link-control__search-item-title",href:t.url},Object(dn.__unstableStripHTML)(m)),(null==t?void 0:t.url)&&Object(i.createElement)("span",{className:"block-editor-link-control__search-item-info"},p)))),Object(i.createElement)(u.Button,{icon:Pn.a,label:Object(s.__)("Edit"),className:"block-editor-link-control__search-item-action",onClick:n,iconSize:24}),r&&Object(i.createElement)(u.Button,{icon:Rn.a,label:Object(s.__)("Unlink"),className:"block-editor-link-control__search-item-action block-editor-link-control__unlink",onClick:c,iconSize:24}),Object(i.createElement)(Nn,{fillProps:t})),(b&&((null==a?void 0:a.image)||(null==a?void 0:a.description))||d)&&Object(i.createElement)("div",{className:"block-editor-link-control__search-item-bottom"},((null==a?void 0:a.image)||d)&&Object(i.createElement)("div",{"aria-hidden":!(null!=a&&a.image),className:V()("block-editor-link-control__search-item-image",{"is-placeholder":!(null!=a&&a.image)})},(null==a?void 0:a.image)&&Object(i.createElement)("img",{src:null==a?void 0:a.image,alt:""})),((null==a?void 0:a.description)||d)&&Object(i.createElement)("div",{"aria-hidden":!(null!=a&&a.description),className:V()("block-editor-link-control__search-item-description",{"is-placeholder":!(null!=a&&a.description)})},(null==a?void 0:a.description)&&Object(i.createElement)(u.__experimentalText,{truncate:!0,numberOfLines:"2"},a.description))))}const Fn=e=>{let t=!1;return{promise:new Promise((n,o)=>{e.then(e=>t?o({isCanceled:!0}):n(e),e=>o(t?{isCanceled:!0}:e))}),cancel(){t=!0}}};function zn(e){var t,n,o;let{searchInputPlaceholder:r,value:c,settings:l=_n,onChange:d=a.noop,onRemove:b,noDirectEntry:p=!1,showSuggestions:m=!0,showInitialSuggestions:f,forceIsEditingLink:h,createSuggestion:g,withCreateSuggestion:O,inputValue:v="",suggestionsQuery:j={},noURLSuggestion:k=!1,createSuggestionButtonText:_,hasRichPreviews:y=!1,hasTextControl:E=!1,renderControlBottom:C=null}=e;void 0===O&&g&&(O=!0);const S=Object(i.useRef)(!0),w=Object(i.useRef)(),I=Object(i.useRef)(),[B,x]=Object(i.useState)((null==c?void 0:c.url)||""),[T,P]=Object(i.useState)((null==c?void 0:c.title)||""),R=v||B,[N,M]=Object(i.useState)(void 0!==h?h:!c||!c.url),A=Object(i.useRef)(!1),D=!(null!=R&&null!==(t=R.trim())&&void 0!==t&&t.length);function F(){var e;A.current=!(null===(e=w.current)||void 0===e||!e.contains(w.current.ownerDocument.activeElement)),M(!1)}Object(i.useEffect)(()=>{void 0!==h&&h!==N&&M(h)},[h]),Object(i.useEffect)(()=>{if(S.current)return void(S.current=!1);const e=null!=I&&I.current?1:0;(dn.focus.focusable.find(w.current)[e]||w.current).focus(),A.current=!1},[N]),Object(i.useEffect)(()=>{null!=c&&c.title&&c.title!==T&&P(c.title),null!=c&&c.url&&x(c.url)},[c]);const{createPage:z,isCreatingPage:H,errorMessage:G}=function(e){const t=Object(i.useRef)(),[n,o]=Object(i.useState)(!1),[r,c]=Object(i.useState)(null);return Object(i.useEffect)(()=>()=>{t.current&&t.current.cancel()},[]),{createPage:async function(n){o(!0),c(null);try{return t.current=Fn(Promise.resolve(e(n))),await t.current.promise}catch(e){if(e&&e.isCanceled)return;throw c(e.message||Object(s.__)("An unknown error occurred during creation. Please try again.")),e}finally{o(!1)}},isCreatingPage:n,errorMessage:r}}(g),U=()=>{R===(null==c?void 0:c.url)&&T===(null==c?void 0:c.title)||d({url:R,title:T}),F()},W=b&&c&&!N&&!H,q=!(null==l||!l.length),K=(null==c||null===(n=c.url)||void 0===n||null===(o=n.trim())||void 0===o?void 0:o.length)>0&&E;return Object(i.createElement)("div",{tabIndex:-1,ref:w,className:"block-editor-link-control"},H&&Object(i.createElement)("div",{className:"block-editor-link-control__loading"},Object(i.createElement)(u.Spinner,null)," ",Object(s.__)("Creating"),"…"),(N||!c)&&!H&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:V()({"block-editor-link-control__search-input-wrapper":!0,"has-text-control":K})},K&&Object(i.createElement)(u.TextControl,{ref:I,className:"block-editor-link-control__field block-editor-link-control__text-content",label:"Text",value:T,onChange:P,onKeyDown:e=>{const{keyCode:t}=e;t!==L.ENTER||D||(e.preventDefault(),U())}}),Object(i.createElement)(xn,{currentLink:c,className:"block-editor-link-control__field block-editor-link-control__search-input",placeholder:r,value:R,withCreateSuggestion:O,onCreateSuggestion:z,onChange:x,onSelect:e=>{d({...e,title:T||(null==e?void 0:e.title)}),F()},showInitialSuggestions:f,allowDirectEntry:!p,showSuggestions:m,suggestionsQuery:j,withURLSuggestion:!k,createSuggestionButtonText:_,useLabel:K},Object(i.createElement)("div",{className:"block-editor-link-control__search-actions"},Object(i.createElement)(u.Button,{onClick:U,label:Object(s.__)("Submit"),icon:un.a,className:"block-editor-link-control__search-submit",disabled:D})))),G&&Object(i.createElement)(u.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},G)),c&&!N&&!H&&Object(i.createElement)(Dn,{key:null==c?void 0:c.url,value:c,onEditClick:()=>M(!0),hasRichPreviews:y,hasUnlinkControl:W,onRemove:b}),q&&Object(i.createElement)("div",{className:"block-editor-link-control__tools"},Object(i.createElement)(bn,{value:c,settings:l,onChange:d})),C&&C())}zn.ViewerFill=Ln;var Hn=zn,Vn=n("weEX"),Gn=n("gdqT"),Un=n("rH4q"),Wn=n("NTP4");var qn=Object(u.withFilters)("editor.MediaUpload")(()=>null);var Kn=function(e){let{fallback:t=null,children:n}=e;return Object(_.useSelect)(e=>{const{getSettings:t}=e(S.a);return!!t().mediaUpload},[])?n:t};var $n=Object(Q.compose)([Object(_.withDispatch)(e=>{const{createNotice:t,removeNotice:n}=e(Vt.store);return{createNotice:t,removeNotice:n}}),Object(u.withFilters)("editor.MediaReplaceFlow")])(e=>{let{mediaURL:t,mediaId:n,allowedTypes:o,accept:r,onSelect:c,onSelectURL:l,onFilesUpload:d=a.noop,name:b=Object(s.__)("Replace"),createNotice:p,removeNotice:m,children:f}=e;const[h,g]=Object(i.useState)(t),O=Object(_.useSelect)(e=>e(S.a).getSettings().mediaUpload,[]),v=Object(i.createRef)(),j=Object(a.uniqueId)("block-editor/media-replace-flow/error-notice/"),k=e=>{const t=document.createElement("div");t.innerHTML=Object(i.renderToString)(e);const n=t.textContent||t.innerText||"";setTimeout(()=>{p("error",n,{speak:!0,id:j,isDismissible:!0})},1e3)},y=e=>{g(e.url),c(e),Object(Gn.speak)(Object(s.__)("The media file has been replaced")),m(j)},E=e=>{e.keyCode===L.DOWN&&(e.preventDefault(),e.target.click())};return Object(i.createElement)(u.Dropdown,{popoverProps:{isAlternate:!0},contentClassName:"block-editor-media-replace-flow__options",renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return Object(i.createElement)(u.ToolbarButton,{ref:v,"aria-expanded":t,"aria-haspopup":"true",onClick:n,onKeyDown:E},b)},renderContent:e=>{let{onClose:t}=e;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(u.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu"},Object(i.createElement)(qn,{value:n,onSelect:e=>y(e),allowedTypes:o,render:e=>{let{open:t}=e;return Object(i.createElement)(u.MenuItem,{icon:Un.a,onClick:t},Object(s.__)("Open Media Library"))}}),Object(i.createElement)(Kn,null,Object(i.createElement)(u.FormFileUpload,{onChange:e=>{(e=>{const t=e.target.files;d(t);O({allowedTypes:o,filesList:t,onFileChange:e=>{let[t]=e;y(t)},onError:k})})(e)},accept:r,render:e=>{let{openFileDialog:t}=e;return Object(i.createElement)(u.MenuItem,{icon:Wn.a,onClick:()=>{t()}},Object(s.__)("Upload"))}})),f),l&&Object(i.createElement)("form",{className:"block-editor-media-flow__url-input"},Object(i.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},Object(s.__)("Current media URL:")),Object(i.createElement)(Hn,{value:{url:h},settings:[],showSuggestions:!1,onChange:e=>{let{url:t}=e;g(t),l(t),v.current.focus()}})))}})}),Yn=n("NMb1"),Xn=n.n(Yn);function Zn(e){let{url:t,urlLabel:n,className:o}=e;const r=V()(o,"block-editor-url-popover__link-viewer-url");return t?Object(i.createElement)(u.ExternalLink,{className:r,href:t},n||Object(fn.filterURLForDisplay)(Object(fn.safeDecodeURI)(t))):Object(i.createElement)("span",{className:r})}function Qn(e){let{additionalControls:t,children:n,renderSettings:o,position:r="bottom center",focusOnMount:c="firstElement",...a}=e;const[d,b]=Object(i.useState)(!1),p=!!o&&d;return Object(i.createElement)(u.Popover,Object(l.a)({className:"block-editor-url-popover",focusOnMount:c,position:r},a),Object(i.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(i.createElement)("div",{className:"block-editor-url-popover__row"},n,!!o&&Object(i.createElement)(u.Button,{className:"block-editor-url-popover__settings-toggle",icon:qe.a,label:Object(s.__)("Link settings"),onClick:()=>{b(!d)},"aria-expanded":d})),p&&Object(i.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},o())),t&&!p&&Object(i.createElement)("div",{className:"block-editor-url-popover__additional-controls"},t))}Qn.LinkEditor=function(e){let{autocompleteRef:t,className:n,onChangeInputValue:o,value:r,...c}=e;return Object(i.createElement)("form",Object(l.a)({className:V()("block-editor-url-popover__link-editor",n)},c),Object(i.createElement)(gn,{value:r,onChange:o,autocompleteRef:t}),Object(i.createElement)(u.Button,{icon:un.a,label:Object(s.__)("Apply"),type:"submit"}))},Qn.LinkViewer=function(e){let{className:t,linkClassName:n,onEditLinkClick:o,url:r,urlLabel:c,...a}=e;return Object(i.createElement)("div",Object(l.a)({className:V()("block-editor-url-popover__link-viewer",t)},a),Object(i.createElement)(Zn,{url:r,urlLabel:c,className:n}),o&&Object(i.createElement)(u.Button,{icon:Pn.a,label:Object(s.__)("Edit"),onClick:o}))};var Jn=Qn;const eo=e=>{let{src:t,onChange:n,onSubmit:o,onClose:r}=e;return Object(i.createElement)(Jn,{onClose:r},Object(i.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:o},Object(i.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"text","aria-label":Object(s.__)("URL"),placeholder:Object(s.__)("Paste or type URL"),onChange:n,value:t}),Object(i.createElement)(u.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:un.a,label:Object(s.__)("Apply"),type:"submit"})))};var to=Object(u.withFilters)("editor.MediaPlaceholder")((function(e){let{value:t={},allowedTypes:n,className:o,icon:r,labels:c={},mediaPreview:l,notices:d,isAppender:b,accept:p,addToGallery:m,multiple:f=!1,handleUpload:h=!0,dropZoneUIOnly:g,disableDropZone:O,disableMediaButtons:v,onError:j,onSelect:k,onCancel:y,onSelectURL:E,onDoubleClick:C,onFilesPreUpload:w=a.noop,onHTMLDrop:I=a.noop,children:B,mediaLibraryButton:x,placeholder:T,style:P}=e;const R=Object(_.useSelect)(e=>{const{getSettings:t}=e(S.a);return t().mediaUpload},[]),[N,L]=Object(i.useState)(""),[M,A]=Object(i.useState)(!1);Object(i.useEffect)(()=>{var e;L(null!==(e=null==t?void 0:t.src)&&void 0!==e?e:"")},[null==t?void 0:t.src]);const D=e=>{L(e.target.value)},F=()=>{A(!0)},z=()=>{A(!1)},H=e=>{e.preventDefault(),N&&E&&(E(N),z())},G=e=>{if(!h)return k(e);let o;if(w(e),f)if(m){let e=[];o=n=>{const o=(null!=t?t:[]).filter(t=>t.id?!e.some(e=>{let{id:n}=e;return Number(n)===Number(t.id)}):!e.some(e=>{let{urlSlug:n}=e;return t.url.includes(n)}));k(o.concat(n)),e=n.map(e=>{const t=e.url.lastIndexOf("."),n=e.url.slice(0,t);return{id:e.id,urlSlug:n}})}}else o=k;else o=e=>{let[t]=e;return k(t)};R({allowedTypes:n,filesList:e,onFileChange:o,onError:j})},U=e=>{G(e.target.files)},W=null!=T?T:e=>{let{instructions:t,title:a}=c;if(R||E||(t=Object(s.__)("To edit this block, you need permission to upload media.")),void 0===t||void 0===a){const e=null!=n?n:[],[o]=e,r=1===e.length,c=r&&"audio"===o,l=r&&"image"===o,i=r&&"video"===o;void 0===t&&R&&(t=Object(s.__)("Upload a media file or pick one from your media library."),c?t=Object(s.__)("Upload an audio file, pick one from your media library, or add one with a URL."):l?t=Object(s.__)("Upload an image file, pick one from your media library, or add one with a URL."):i&&(t=Object(s.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===a&&(a=Object(s.__)("Media"),c?a=Object(s.__)("Audio"):l?a=Object(s.__)("Image"):i&&(a=Object(s.__)("Video")))}const p=V()("block-editor-media-placeholder",o,{"is-appender":b});return Object(i.createElement)(u.Placeholder,{icon:r,label:a,instructions:t,className:p,notices:d,onDoubleClick:C,preview:l,style:P},e,B)},q=()=>O?null:Object(i.createElement)(u.DropZone,{onFilesDrop:G,onHTMLDrop:I}),K=()=>y&&Object(i.createElement)(u.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(s.__)("Cancel"),variant:"link",onClick:y},Object(s.__)("Cancel")),$=()=>E&&Object(i.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},Object(i.createElement)(u.Button,{className:"block-editor-media-placeholder__button",onClick:F,isPressed:M,variant:"tertiary"},Object(s.__)("Insert from URL")),M&&Object(i.createElement)(eo,{src:N,onChange:D,onSubmit:H,onClose:z}));return g||v?(g&&Xn()("wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop",{since:"5.4",alternative:"disableMediaButtons"}),Object(i.createElement)(Kn,null,q())):Object(i.createElement)(Kn,{fallback:W($())},(()=>{const e=null!=x?x:e=>{let{open:t}=e;return Object(i.createElement)(u.Button,{variant:"tertiary",onClick:()=>{t()}},Object(s.__)("Media Library"))},o=Object(i.createElement)(qn,{addToGallery:m,gallery:f&&!(!n||0===n.length)&&n.every(e=>"image"===e||e.startsWith("image/")),multiple:f,onSelect:k,allowedTypes:n,value:Array.isArray(t)?t.map(e=>{let{id:t}=e;return t}):t.id,render:e});if(R&&b)return Object(i.createElement)(i.Fragment,null,q(),Object(i.createElement)(u.FormFileUpload,{onChange:U,accept:p,multiple:f,render:e=>{let{openFileDialog:t}=e;const n=Object(i.createElement)(i.Fragment,null,Object(i.createElement)(u.Button,{variant:"primary",className:V()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onClick:t},Object(s.__)("Upload")),o,$(),K());return W(n)}}));if(R){const e=Object(i.createElement)(i.Fragment,null,q(),Object(i.createElement)(u.FormFileUpload,{variant:"primary",className:V()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:U,accept:p,multiple:f},Object(s.__)("Upload")),o,$(),K());return W(e)}return W(o)})())}));var no=e=>{let{colorSettings:t,...n}=e;const o=t.map(e=>{let{value:t,onChange:n,...o}=e;return{...o,colorValue:t,onColorChange:n}});return Object(i.createElement)(Ot.a,Object(l.a)({settings:o,gradients:[],disableCustomGradients:!0},n))},oo=n("O6Fj"),ro=n.n(oo),co=n("qRz9");const lo={position:"bottom right",isAlternate:!0};var io=()=>Object(i.createElement)(i.Fragment,null,["bold","italic","link"].map(e=>Object(i.createElement)(u.Slot,{name:"RichText.ToolbarControls."+e,key:e})),Object(i.createElement)(u.Slot,{name:"RichText.ToolbarControls"},e=>{if(!e.length)return null;const t=e.map(e=>{let[{props:t}]=e;return t}).some(e=>{let{isActive:t}=e;return t});return Object(i.createElement)(u.ToolbarItem,null,n=>Object(i.createElement)(u.DropdownMenu,{icon:qe.a,label:Object(s.__)("More"),toggleProps:{...n,className:V()(n.className,{"is-pressed":t}),describedBy:Object(s.__)("Displays more block tools")},controls:Object(a.orderBy)(e.map(e=>{let[{props:t}]=e;return t}),"title"),popoverProps:lo}))}));var ao=e=>{let{inline:t,anchorRef:n}=e;return t?Object(i.createElement)(u.Popover,{noArrow:!0,position:"top center",focusOnMount:!1,anchorRef:n,className:"block-editor-rich-text__inline-format-toolbar",__unstableSlotName:"block-toolbar"},Object(i.createElement)("div",{className:"block-editor-rich-text__inline-format-toolbar-group"},Object(i.createElement)(u.ToolbarGroup,null,Object(i.createElement)(io,null)))):Object(i.createElement)(W.b,{group:"inline"},Object(i.createElement)(io,null))};function so(){const{didAutomaticChange:e,getSettings:t}=Object(_.useSelect)(S.a);return Object(Q.useRefEffect)(n=>{function o(n){const{keyCode:o}=n;n.defaultPrevented||o!==L.DELETE&&o!==L.BACKSPACE&&o!==L.ESCAPE||e()&&(n.preventDefault(),t().__experimentalUndo())}return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}},[])}var uo=n("xTGt");function bo(e){return e.filter(e=>{let{type:t}=e;return/^image\/(?:jpe?g|png|gif)$/.test(t)}).map(e=>`<img src="${Object(uo.createBlobURL)(e)}">`).join("")}var po=n("SVSp");function mo(e,t){if(null!=t&&t.length){let n=e.formats.length;for(;n--;)e.formats[n]=[...t,...e.formats[n]||[]]}}function fo(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}function ho(e){let{allowedFormats:t,formattingControls:n,disableFormats:o}=e;return o?ho.EMPTY_ARRAY:t||n?t||(Xn()("wp.blockEditor.RichText formattingControls prop",{since:"5.4",alternative:"allowedFormats"}),n.map(e=>"core/"+e)):void 0}ho.EMPTY_ARRAY=[];function go(e){let{value:t,pastedBlocks:n=[],onReplace:o,onSplit:r,onSplitMiddle:c,multilineTag:l}=e;if(!o||!r)return;const i=[],[a,s]=Object(co.split)(t),u=n.length>0;let d=-1;const b=Object(co.isEmpty)(a)&&!Object(co.isEmpty)(s);u&&Object(co.isEmpty)(a)||(i.push(r(Object(co.toHTMLString)({value:a,multilineTag:l}),!b)),d+=1),u?(i.push(...n),d+=n.length):c&&i.push(c()),(u||c)&&Object(co.isEmpty)(s)||i.push(r(Object(co.toHTMLString)({value:s,multilineTag:l}),b));o(i,u?d:1,u?-1:0)}function Oo(e,t){return t?Object(co.replace)(e,/\n+/g,co.__UNSTABLE_LINE_SEPARATOR):Object(co.replace)(e,new RegExp(co.__UNSTABLE_LINE_SEPARATOR,"g"),"\n")}function vo(e){const t=Object(i.useRef)(e);return t.current=e,Object(Q.useRefEffect)(e=>{function n(e){const{isSelected:n,disableFormats:o,onChange:r,value:c,formatTypes:l,tagName:i,onReplace:a,onSplit:s,onSplitMiddle:u,__unstableEmbedURLOnPaste:d,multilineTag:b,preserveWhiteSpace:p,pastePlainText:m}=t.current;if(!n)return void e.preventDefault();const{clipboardData:f}=e;let h="",g="";try{h=f.getData("text/plain"),g=f.getData("text/html")}catch(e){try{g=f.getData("Text")}catch(e){return}}if(g=function(e){return e.replace(/.*<!--StartFragment-->/s,"").replace(/<!--EndFragment-->.*/s,"")}(g),g=function(e){const t="<meta charset='utf-8'>";if(e.startsWith(t))return e.slice(t.length);return e}(g),e.preventDefault(),window.console.log("Received HTML:\n\n",g),window.console.log("Received plain text:\n\n",h),o)return void r(Object(co.insert)(c,h));const O=l.reduce((e,t)=>{let{__unstablePasteRule:n}=t;return n&&e===c&&(e=n(c,{html:g,plainText:h})),e},c);if(O!==c)return void r(O);const v=[...Object(dn.getFilesFromDataTransfer)(f)];if("true"===f.getData("rich-text")){const e=f.getData("rich-text-multi-line-tag")||void 0;let t=Object(co.create)({html:g,multilineTag:e,multilineWrapperTags:"li"===e?["ul","ol"]:void 0,preserveWhiteSpace:p});return t=Oo(t,!!b),mo(t,c.activeFormats),void r(Object(co.insert)(c,t))}if(m)return void r(Object(co.insert)(c,Object(co.create)({text:h})));if(v&&v.length&&!g){const e=Object(j.pasteHandler)({HTML:bo(v),mode:"BLOCKS",tagName:i,preserveWhiteSpace:p});return window.console.log("Received items:\n\n",v),void(a&&Object(co.isEmpty)(c)?a(e):go({value:c,pastedBlocks:e,onReplace:a,onSplit:s,onSplitMiddle:u,multilineTag:b}))}let k=a&&s?"AUTO":"INLINE";var _;"AUTO"===k&&Object(co.isEmpty)(c)&&(_=h,Object(po.regexp)(".*").test(_))&&(k="BLOCKS"),d&&Object(co.isEmpty)(c)&&Object(fn.isURL)(h.trim())&&(k="BLOCKS");const y=Object(j.pasteHandler)({HTML:g,plainText:h,mode:k,tagName:i,preserveWhiteSpace:p});if("string"==typeof y){let e=Object(co.create)({html:y});e=Oo(e,!!b),mo(e,c.activeFormats),r(Object(co.insert)(c,e))}else y.length>0&&(a&&Object(co.isEmpty)(c)?a(y,y.length-1,-1):go({value:c,pastedBlocks:y,onReplace:a,onSplit:s,onSplitMiddle:u,multilineTag:b}))}return e.addEventListener("paste",n),()=>{e.removeEventListener("paste",n)}},[])}function jo(e){const{__unstableMarkLastChangeAsPersistent:t,__unstableMarkAutomaticChange:n}=Object(_.useDispatch)(S.a),o=Object(i.useRef)(e);return o.current=e,Object(Q.useRefEffect)(e=>{function r(){const{value:e,onReplace:t}=o.current;if(!t)return;const{start:r,text:c}=e;if(" "!==c.slice(r-1,r))return;const l=c.slice(0,r).trim(),i=Object(j.getBlockTransforms)("from").filter(e=>{let{type:t}=e;return"prefix"===t}),a=Object(j.findTransform)(i,e=>{let{prefix:t}=e;return l===t});if(!a)return;const s=Object(co.toHTMLString)({value:Object(co.slice)(e,r,c.length)});t([a.transform(s)]),n()}function c(e){const{inputType:c,type:l}=e,{value:i,onChange:a,__unstableAllowPrefixTransformations:s,formatTypes:u}=o.current;if("insertText"!==c&&"compositionend"!==l)return;s&&r&&r();const d=u.reduce((e,t)=>{let{__unstableInputRule:n}=t;return n&&(e=n(e)),e},i);d!==i&&(t(),a({...d,activeFormats:i.activeFormats}),n())}return e.addEventListener("input",c),e.addEventListener("compositionend",c),()=>{e.removeEventListener("input",c),e.removeEventListener("compositionend",c)}},[])}function ko(e){const{__unstableMarkAutomaticChange:t}=Object(_.useDispatch)(S.a),n=Object(i.useRef)(e);return n.current=e,Object(Q.useRefEffect)(e=>{function o(e){if(e.defaultPrevented)return;const{removeEditorOnlyFormats:o,value:r,onReplace:c,onSplit:l,onSplitMiddle:i,multilineTag:a,onChange:s,disableLineBreaks:u,onSplitAtEnd:d}=n.current;if(e.keyCode!==L.ENTER)return;e.preventDefault();const b={...r};b.formats=o(r);const p=c&&l;if(c){const e=Object(j.getBlockTransforms)("from").filter(e=>{let{type:t}=e;return"enter"===t}),n=Object(j.findTransform)(e,e=>e.regExp.test(b.text));n&&(c([n.transform({content:b.text})]),t())}if(a)e.shiftKey?u||s(Object(co.insert)(b,"\n")):p&&Object(co.__unstableIsEmptyLine)(b)?go({value:b,onReplace:c,onSplit:l,onSplitMiddle:i,multilineTag:a}):s(Object(co.__unstableInsertLineSeparator)(b));else{const{text:t,start:n,end:o}=b,r=d&&n===o&&o===t.length;e.shiftKey||!p&&!r?u||s(Object(co.insert)(b,"\n")):!p&&r?d():p&&go({value:b,onReplace:c,onSplit:l,onSplitMiddle:i,multilineTag:a})}}return e.addEventListener("keydown",o),()=>{e.removeEventListener("keydown",o)}},[])}function _o(e){return e(co.store).getFormatTypes()}const yo=new Set(["a","audio","button","details","embed","iframe","input","label","select","textarea","video"]);function Eo(e){return Object(Q.useRefEffect)(t=>{function n(t){for(const n of e.current)n(t)}return t.addEventListener("keydown",n),()=>{t.removeEventListener("keydown",n)}},[])}function Co(e){return Object(Q.useRefEffect)(t=>{function n(t){for(const n of e.current)n(t)}return t.addEventListener("input",n),()=>{t.removeEventListener("input",n)}},[])}function So(e){let{formatTypes:t,onChange:n,onFocus:o,value:r,forwardedRef:c}=e;return t.map(e=>{const{name:t,edit:l}=e;if(!l)return null;const s=Object(co.getActiveFormat)(r,t);let u=void 0!==s;const d=Object(co.getActiveObject)(r),b=void 0!==d&&d.type===t;if("core/link"===t&&!Object(co.isCollapsed)(r)){const e=r.formats,t=Object(a.find)(e[r.start],{type:"core/link"}),n=Object(a.find)(e[r.end-1],{type:"core/link"});t&&n&&t===n||(u=!1)}return Object(i.createElement)(l,{key:t,isActive:u,activeAttributes:u&&s.attributes||{},isObjectActive:b,activeObjectAttributes:b&&d.attributes||{},value:r,onChange:n,onFocus:o,contentRef:c})})}const wo=Object(i.createContext)(),Io=Object(i.createContext)();const Bo=Object(i.forwardRef)((function e(t,n){let{children:o,tagName:r="div",value:c="",onChange:s,isSelected:d,multiline:b,inlineToolbar:p,wrapperClassName:m,autocompleters:f,onReplace:h,placeholder:g,allowedFormats:O,formattingControls:v,withoutInteractiveFormatting:y,onRemove:E,onMerge:C,onSplit:w,__unstableOnSplitAtEnd:I,__unstableOnSplitMiddle:x,identifier:T,preserveWhiteSpace:P,__unstablePastePlainText:R,__unstableEmbedURLOnPaste:N,__unstableDisableFormats:M,disableLineBreaks:A,unstableOnFocus:D,__unstableAllowPrefixTransformations:F,...z}=t;const H=Object(Q.useInstanceId)(e);T=T||H,z=function(e){return Object(a.omit)(e,["__unstableMobileNoFocusOnMount","deleteEnter","placeholderTextColor","textAlign","selectionColor","tagsToEliminate","rootTagsToEliminate","disableEditingMenu","fontSize","fontFamily","fontWeight","fontStyle","minWidth","maxWidth","setRef"])}(z);const G=Object(i.useRef)(),{clientId:U}=Object(k.c)(),{selectionStart:W,selectionEnd:q,isSelected:K,disabled:$}=Object(_.useSelect)(e=>{const{getSelectionStart:t,getSelectionEnd:n,isMultiSelecting:o,hasMultiSelection:r}=e(S.a),c=t(),l=n();let i;return void 0===d?i=c.clientId===U&&c.attributeKey===T:d&&(i=c.clientId===U),{selectionStart:i?c.offset:void 0,selectionEnd:i?l.offset:void 0,isSelected:i,disabled:o()||r()}}),{selectionChange:Y}=Object(_.useDispatch)(S.a),X=fo(b),Z=ho({allowedFormats:O,formattingControls:v,disableFormats:M}),J=!Z||Z.length>0;let ee=c,te=s;Array.isArray(c)&&(ee=j.children.toHTML(c),te=e=>s(j.children.fromDOM(Object(co.__unstableCreateElement)(document,e).childNodes)));const ne=Object(i.useCallback)((e,t)=>{Y(U,T,e,t)},[U,T]),{formatTypes:oe,prepareHandlers:re,valueHandlers:ce,changeHandlers:le,dependencies:ie}=function(e){let{clientId:t,identifier:n,withoutInteractiveFormatting:o,allowedFormats:r}=e;const c=Object(_.useSelect)(_o,[]),l=Object(i.useMemo)(()=>c.filter(e=>{let{name:t,tagName:n}=e;return!(r&&!r.includes(t))&&(!o||!yo.has(n))}),[c,r,yo]),a=Object(_.useSelect)(e=>l.reduce((o,r)=>(r.__experimentalGetPropsForEditableTreePreparation&&(o[r.name]=r.__experimentalGetPropsForEditableTreePreparation(e,{richTextIdentifier:n,blockClientId:t})),o),{}),[l,t,n]),s=Object(_.useDispatch)(),u=[],d=[],b=[],p=[];return l.forEach(e=>{if(e.__experimentalCreatePrepareEditableTree){const o=a[e.name],r=e.__experimentalCreatePrepareEditableTree(o,{richTextIdentifier:n,blockClientId:t});e.__experimentalCreateOnChangeEditableValue?d.push(r):u.push(r);for(const e in o)p.push(o[e])}if(e.__experimentalCreateOnChangeEditableValue){let o={};e.__experimentalGetPropsForEditableTreeChangeHandler&&(o=e.__experimentalGetPropsForEditableTreeChangeHandler(s,{richTextIdentifier:n,blockClientId:t})),b.push(e.__experimentalCreateOnChangeEditableValue({...a[e.name]||{},...o},{richTextIdentifier:n,blockClientId:t}))}}),{formatTypes:l,prepareHandlers:u,valueHandlers:d,changeHandlers:b,dependencies:p}}({clientId:U,identifier:T,withoutInteractiveFormatting:y,allowedFormats:Z});function ae(e){return oe.forEach(t=>{t.__experimentalCreatePrepareEditableTree&&(e=Object(co.removeFormat)(e,t.name,0,e.text.length))}),e.formats}const{value:se,onChange:ue,ref:de}=Object(co.__unstableUseRichText)({value:ee,onChange(e,t){let{__unstableFormats:n,__unstableText:o}=t;te(e),Object.values(le).forEach(e=>{e(n,o)})},selectionStart:W,selectionEnd:q,onSelectionChange:ne,placeholder:g,__unstableIsSelected:K,__unstableMultilineTag:X,__unstableDisableFormats:M,preserveWhiteSpace:P,__unstableDependencies:[...ie,r],__unstableAfterParse:function(e){return ce.reduce((t,n)=>n(t,e.text),e.formats)},__unstableBeforeSerialize:ae,__unstableAddInvisibleFormats:function(e){return re.reduce((t,n)=>n(t,e.text),e.formats)}}),be=function(e){return Object(u.__unstableUseAutocompleteProps)({...e,completers:B(e)})}({onReplace:h,completers:f,record:se,onChange:ue});!function(e){let{value:t}=e;const n=t.activeFormats&&!!t.activeFormats.length,{isCaretWithinFormattedText:o}=Object(_.useSelect)(S.a),{enterFormattedText:r,exitFormattedText:c}=Object(_.useDispatch)(S.a);Object(i.useEffect)(()=>{n?o()||r():o()&&c()},[n])}({value:se}),function(e){let{html:t,value:n}=e;const o=Object(i.useRef)(),r=n.activeFormats&&!!n.activeFormats.length,{__unstableMarkLastChangeAsPersistent:c}=Object(_.useDispatch)(S.a);Object(i.useLayoutEffect)(()=>{if(o.current){if(o.current!==n.text){const e=window.setTimeout(()=>{c()},1e3);return o.current=n.text,()=>{window.clearTimeout(e)}}c()}else o.current=n.text},[t,r])}({html:ee,value:se});const pe=Object(i.useRef)(new Set),me=Object(i.useRef)(new Set);function fe(){G.current.focus()}const he=r,ge=Object(i.createElement)(i.Fragment,null,K&&Object(i.createElement)(wo.Provider,{value:pe},Object(i.createElement)(Io.Provider,{value:me},Object(i.createElement)(u.Popover.__unstableSlotNameProvider,{value:"__unstable-block-tools-after"},o&&o({value:se,onChange:ue,onFocus:fe}),Object(i.createElement)(So,{value:se,onChange:ue,onFocus:fe,formatTypes:oe,forwardedRef:G})))),K&&J&&Object(i.createElement)(ao,{inline:p,anchorRef:G.current}),Object(i.createElement)(he,Object(l.a)({role:"textbox","aria-multiline":!0,"aria-label":g},z,be,{ref:Object(Q.useMergeRefs)([be.ref,z.ref,de,jo({value:se,onChange:ue,__unstableAllowPrefixTransformations:F,formatTypes:oe,onReplace:h}),Object(Q.useRefEffect)(e=>{function t(e){(L.isKeyboardEvent.primary(e,"z")||L.isKeyboardEvent.primary(e,"y")||L.isKeyboardEvent.primaryShift(e,"z"))&&e.preventDefault()}return e.addEventListener("keydown",t),()=>{e.addEventListener("keydown",t)}},[]),Eo(pe),Co(me),so(),vo({isSelected:K,disableFormats:M,onChange:ue,value:se,formatTypes:oe,tagName:r,onReplace:h,onSplit:w,onSplitMiddle:x,__unstableEmbedURLOnPaste:N,multilineTag:X,preserveWhiteSpace:P,pastePlainText:R}),ko({removeEditorOnlyFormats:ae,value:se,onReplace:h,onSplit:w,onSplitMiddle:x,multilineTag:X,onChange:ue,disableLineBreaks:A,onSplitAtEnd:I}),G,n]),contentEditable:!$||void 0,suppressContentEditableWarning:!$,className:V()("block-editor-rich-text__editable",z.className,"rich-text"),onFocus:D,onKeyDown:function(e){const{keyCode:t}=e;if(!e.defaultPrevented&&(t===L.DELETE||t===L.BACKSPACE)){const{start:n,end:o,text:r}=se,c=t===L.BACKSPACE,l=se.activeFormats&&!!se.activeFormats.length;if(!Object(co.isCollapsed)(se)||l||c&&0!==n||!c&&o!==r.length)return;C&&C(!c),E&&Object(co.isEmpty)(se)&&c&&E(!c),e.preventDefault()}}})));if(!m)return ge;Xn()("wp.blockEditor.RichText wrapperClassName prop",{since:"5.4",alternative:"className prop or create your own wrapper div"});const Oe=V()("block-editor-rich-text",m);return Object(i.createElement)("div",{className:Oe},ge)}));Bo.Content=e=>{let{value:t,tagName:n,multiline:o,...r}=e;Array.isArray(t)&&(t=j.children.toHTML(t));const c=fo(o);!t&&c&&(t=`<${c}></${c}>`);const l=Object(i.createElement)(i.RawHTML,null,t);return n?Object(i.createElement)(n,Object(a.omit)(r,["format"]),l):l},Bo.isEmpty=e=>!e||0===e.length;var xo=Bo;const To=Object(i.forwardRef)((e,t)=>Object(i.createElement)(xo,Object(l.a)({ref:t},e,{__unstableDisableFormats:!0,preserveWhiteSpace:!0})));To.Content=e=>{let{value:t="",tagName:n="div",...o}=e;return Object(i.createElement)(n,o,t)};var Po=To;var Ro=Object(i.forwardRef)((e,t)=>{let{__experimentalVersion:n,...o}=e;if(2===n)return Object(i.createElement)(Po,Object(l.a)({ref:t},o));const{className:r,onChange:c,...a}=o;return Object(i.createElement)(ro.a,Object(l.a)({ref:t,className:V()("block-editor-plain-text",r),onChange:e=>c(e.target.value)},a))});function No(e){let{property:t,viewport:n,desc:o}=e;const r=Object(Q.useInstanceId)(No),c=o||Object(s.sprintf)(Object(s._x)("Controls the %1$s property for %2$s viewports.","Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size."),t,n.label);return Object(i.createElement)(i.Fragment,null,Object(i.createElement)("span",{"aria-describedby":"rbc-desc-"+r},n.label),Object(i.createElement)(u.VisuallyHidden,{as:"span",id:"rbc-desc-"+r},c))}var Lo=function(e){const{title:t,property:n,toggleLabel:o,onIsResponsiveChange:r,renderDefaultControl:c,renderResponsiveControls:l,isResponsive:a=!1,defaultLabel:d={id:"all",label:Object(s.__)("All")},viewports:b=[{id:"small",label:Object(s.__)("Small screens")},{id:"medium",label:Object(s.__)("Medium screens")},{id:"large",label:Object(s.__)("Large screens")}]}=e;if(!t||!n||!c)return null;const p=o||Object(s.sprintf)(Object(s.__)("Use the same %s on all screensizes."),n),m=Object(s.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),f=c(Object(i.createElement)(No,{property:n,viewport:d}),d);return Object(i.createElement)("fieldset",{className:"block-editor-responsive-block-control"},Object(i.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),Object(i.createElement)("div",{className:"block-editor-responsive-block-control__inner"},Object(i.createElement)(u.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:p,checked:!a,onChange:r,help:m}),Object(i.createElement)("div",{className:V()("block-editor-responsive-block-control__group",{"is-responsive":a})},!a&&f,a&&(l?l(b):b.map(e=>Object(i.createElement)(i.Fragment,{key:e.id},c(Object(i.createElement)(No,{property:n,viewport:e}),e)))))))};function Mo(e){let{character:t,type:n,onUse:o}=e;const r=Object(i.useContext)(wo),c=Object(i.useRef)();return c.current=o,Object(i.useEffect)(()=>{function e(e){L.isKeyboardEvent[n](e,t)&&(c.current(),e.preventDefault())}return r.current.add(e),()=>{r.current.delete(e)}},[t,n]),null}function Ao(e){let t,{name:n,shortcutType:o,shortcutCharacter:r,...c}=e,a="RichText.ToolbarControls";return n&&(a+="."+n),o&&r&&(t=L.displayShortcut[o](r)),Object(i.createElement)(u.Fill,{name:a},Object(i.createElement)(u.ToolbarButton,Object(l.a)({},c,{shortcut:t})))}function Do(e){let{inputType:t,onInput:n}=e;const o=Object(i.useContext)(Io),r=Object(i.useRef)();return r.current=n,Object(i.useEffect)(()=>{function e(e){e.inputType===t&&(r.current(),e.preventDefault())}return o.current.add(e),()=>{o.current.delete(e)}},[t]),null}const Fo=Object(i.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(i.createElement)(u.Path,{d:"M9.4 20.5L5.2 3.8l14.6 9-2 .3c-.2 0-.4.1-.7.1-.9.2-1.6.3-2.2.5-.8.3-1.4.5-1.8.8-.4.3-.8.8-1.3 1.5-.4.5-.8 1.2-1.2 2l-.3.6-.9 1.9zM7.6 7.1l2.4 9.3c.2-.4.5-.8.7-1.1.6-.8 1.1-1.4 1.6-1.8.5-.4 1.3-.8 2.2-1.1l1.2-.3-8.1-5z"}));var zo=Object(i.forwardRef)((function(e,t){const n=Object(_.useSelect)(e=>e(S.a).isNavigationMode(),[]),{setNavigationMode:o}=Object(_.useDispatch)(S.a),r=e=>{o("edit"!==e)};return Object(i.createElement)(u.Dropdown,{renderToggle:o=>{let{isOpen:r,onToggle:c}=o;return Object(i.createElement)(u.Button,Object(l.a)({},e,{ref:t,icon:n?Fo:Pn.a,"aria-expanded":r,"aria-haspopup":"true",onClick:c,label:Object(s.__)("Tools")}))},position:"bottom right",renderContent:()=>Object(i.createElement)(i.Fragment,null,Object(i.createElement)(u.NavigableMenu,{role:"menu","aria-label":Object(s.__)("Tools")},Object(i.createElement)(u.MenuItemsChoice,{value:n?"select":"edit",onSelect:r,choices:[{value:"edit",label:Object(i.createElement)(i.Fragment,null,Object(i.createElement)(A.a,{icon:Pn.a}),Object(s.__)("Edit"))},{value:"select",label:Object(i.createElement)(i.Fragment,null,Fo,Object(s.__)("Select"))}]})),Object(i.createElement)("div",{className:"block-editor-tool-selector__help"},Object(s.__)("Tools provide different interactions for selecting, navigating, and editing blocks. Toggle between select and edit by pressing Escape and Enter.")))})}));function Ho(e){let{units:t,...n}=e;const o=Object(u.__experimentalUseCustomUnits)({availableUnits:Object(lt.a)("spacing.units")||["%","px","em","rem","vw"],units:t});return Object(i.createElement)(u.__experimentalUnitControl,Object(l.a)({units:o},n))}var Vo=n("Bpkj"),Go=n("cjQ8");class Uo extends i.Component{constructor(){super(...arguments),this.toggle=this.toggle.bind(this),this.submitLink=this.submitLink.bind(this),this.state={expanded:!1}}toggle(){this.setState({expanded:!this.state.expanded})}submitLink(e){e.preventDefault(),this.toggle()}render(){const{url:e,onChange:t}=this.props,{expanded:n}=this.state,o=e?Object(s.__)("Edit link"):Object(s.__)("Insert link");return Object(i.createElement)("div",{className:"block-editor-url-input__button"},Object(i.createElement)(u.Button,{icon:Vo.a,label:o,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!e}),n&&Object(i.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(i.createElement)("div",{className:"block-editor-url-input__button-modal-line"},Object(i.createElement)(u.Button,{className:"block-editor-url-input__back",icon:Go.a,label:Object(s.__)("Close"),onClick:this.toggle}),Object(i.createElement)(gn,{value:e||"",onChange:t}),Object(i.createElement)(u.Button,{icon:un.a,label:Object(s.__)("Submit"),type:"submit"}))))}}var Wo=Uo,qo=n("w95h");const Ko=["noreferrer","noopener"],$o=Object(i.createElement)(u.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(i.createElement)(u.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(i.createElement)(u.Path,{d:"m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"}),Object(i.createElement)(u.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),Yo=e=>{let{linkDestination:t,onChangeUrl:n,url:o,mediaType:r="image",mediaUrl:c,mediaLink:l,linkTarget:d,linkClass:b,rel:p}=e;const[m,f]=Object(i.useState)(!1),h=Object(i.useCallback)(()=>{f(!0)}),[g,O]=Object(i.useState)(!1),[v,j]=Object(i.useState)(null),k=Object(i.useRef)(null),_=Object(i.useCallback)(()=>{"media"!==t&&"attachment"!==t||j(""),O(!0)}),y=Object(i.useCallback)(()=>{O(!1)}),E=Object(i.useCallback)(()=>{j(null),y(),f(!1)}),C=e=>{let t=e;return void 0===e||Object(a.isEmpty)(t)||Object(a.isEmpty)(t)||(Object(a.each)(Ko,e=>{const n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")}),t!==e&&(t=t.trim()),Object(a.isEmpty)(t)&&(t=void 0)),t},S=Object(i.useCallback)(()=>e=>{const t=k.current;t&&t.contains(e.target)||(f(!1),j(null),y())}),w=Object(i.useCallback)(()=>e=>{if(v){var t;const e=(null===(t=B().find(e=>e.url===v))||void 0===t?void 0:t.linkDestination)||"custom";n({href:v,linkDestination:e})}y(),j(null),e.preventDefault()}),I=Object(i.useCallback)(()=>{n({linkDestination:"none",href:""})}),B=()=>{const e=[{linkDestination:"media",title:Object(s.__)("Media File"),url:"image"===r?c:void 0,icon:$o}];return"image"===r&&l&&e.push({linkDestination:"attachment",title:Object(s.__)("Attachment Page"),url:"image"===r?l:void 0,icon:Object(i.createElement)(u.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(i.createElement)(u.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object(i.createElement)(u.Path,{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))}),e},x=Object(i.createElement)(i.Fragment,null,Object(i.createElement)(u.ToggleControl,{label:Object(s.__)("Open in new tab"),onChange:e=>{const t=(e=>{const t=e?"_blank":void 0;let n;return n=t||p?C(p):void 0,{linkTarget:t,rel:n}})(e);n(t)},checked:"_blank"===d}),Object(i.createElement)(u.TextControl,{label:Object(s.__)("Link Rel"),value:C(p)||"",onChange:e=>{n({rel:e})}}),Object(i.createElement)(u.TextControl,{label:Object(s.__)("Link CSS Class"),value:b||"",onChange:e=>{n({linkClass:e})}})),T=null!==v?v:o,P=(Object(a.find)(B(),["linkDestination",t])||{}).title;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(u.ToolbarButton,{icon:Vo.a,className:"components-toolbar__control",label:o?Object(s.__)("Edit link"):Object(s.__)("Insert link"),"aria-expanded":m,onClick:h}),m&&Object(i.createElement)(Jn,{onFocusOutside:S(),onClose:E,renderSettings:()=>x,additionalControls:!T&&Object(i.createElement)(u.NavigableMenu,null,Object(a.map)(B(),e=>Object(i.createElement)(u.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:()=>{j(null),(e=>{const t=B();let o;o=e?(Object(a.find)(t,t=>t.url===e)||{linkDestination:"custom"}).linkDestination:"none",n({linkDestination:o,href:e})})(e.url),y()}},e.title)))},(!o||g)&&Object(i.createElement)(Jn.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:T,onChangeInputValue:j,onSubmit:w(),autocompleteRef:k}),o&&!g&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(Jn.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",url:o,onEditLinkClick:_,urlLabel:P}),Object(i.createElement)(u.Button,{icon:qo.a,label:Object(s.__)("Remove link"),onClick:I}))))};var Xo=n("Jyyd"),Zo=n("mlss");function Qo(e){let{children:t,className:n,isEnabled:o=!0,deviceType:r,setDeviceType:c}=e;if(Object(Q.useViewportMatch)("small","<"))return null;const l={className:V()(n,"block-editor-post-preview__dropdown-content"),position:"bottom left"},a={variant:"tertiary",className:"block-editor-post-preview__button-toggle",disabled:!o,children:Object(s.__)("Preview")};return Object(i.createElement)(u.DropdownMenu,{className:"block-editor-post-preview__dropdown",popoverProps:l,toggleProps:a,icon:null},()=>Object(i.createElement)(i.Fragment,null,Object(i.createElement)(u.MenuGroup,null,Object(i.createElement)(u.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:()=>c("Desktop"),icon:"Desktop"===r&&Xt.a},Object(s.__)("Desktop")),Object(i.createElement)(u.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:()=>c("Tablet"),icon:"Tablet"===r&&Xt.a},Object(s.__)("Tablet")),Object(i.createElement)(u.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:()=>c("Mobile"),icon:"Mobile"===r&&Xt.a},Object(s.__)("Mobile"))),t))}function Jo(e){const[t,n]=Object(i.useState)(window.innerWidth);Object(i.useEffect)(()=>{if("Desktop"===e)return;const t=()=>n(window.innerWidth);return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[e]);const o=e=>{let n;switch(e){case"Tablet":n=780;break;case"Mobile":n=360;break;default:return null}return n<t?n:t};return(e=>{const t="Mobile"===e?"768px":"1024px";switch(e){case"Tablet":case"Mobile":return{width:o(e),margin:(window.innerHeight<800?36:72)+"px auto",height:t,borderRadius:"2px 2px 2px 2px",border:"1px solid #ddd",overflowY:"auto"};default:return null}})(e)}var er=n("PKbb");var tr=Object(_.withSelect)(e=>({selectedBlockClientId:e(S.a).getBlockSelectionStart()}))(e=>{let{selectedBlockClientId:t}=e;const n=Object(er.b)(t);return t?Object(i.createElement)(u.Button,{variant:"secondary",className:"block-editor-skip-to-selected-block",onClick:()=>{n.current.focus()}},Object(s.__)("Skip to the selected block")):null}),nr=n("GvwK"),or=n("7NR9"),rr=n("7fqt"),cr=n("wzfx");var lr=Object(_.withSelect)(e=>{const{getMultiSelectedBlocks:t}=e(S.a);return{blocks:t()}})((function(e){let{blocks:t}=e;const n=Object(rr.count)(Object(j.serialize)(t),"words");return Object(i.createElement)("div",{className:"block-editor-multi-selection-inspector__card"},Object(i.createElement)(C.a,{icon:cr.a,showColors:!0}),Object(i.createElement)("div",{className:"block-editor-multi-selection-inspector__card-content"},Object(i.createElement)("div",{className:"block-editor-multi-selection-inspector__card-title"},Object(s.sprintf)(Object(s._n)("%d block","%d blocks",t.length),t.length)),Object(i.createElement)("div",{className:"block-editor-multi-selection-inspector__card-description"},Object(s.sprintf)(Object(s._n)("%d word","%d words",n),n))))}));function ir(e){let{blockName:t}=e;const{preferredStyle:n,onUpdatePreferredStyleVariations:o,styles:r}=Object(_.useSelect)(e=>{var n,o;const r=e(S.a).getSettings().__experimentalPreferredStyleVariations;return{preferredStyle:null==r||null===(n=r.value)||void 0===n?void 0:n[t],onUpdatePreferredStyleVariations:null!==(o=null==r?void 0:r.onChange)&&void 0!==o?o:null,styles:e(j.store).getBlockStyles(t)}},[t]),c=Object(i.useMemo)(()=>[{label:Object(s.__)("Not set"),value:""},...r.map(e=>{let{label:t,name:n}=e;return{label:t,value:n}})],[r]),l=Object(i.useCallback)(e=>{o(t,e)},[t,o]);return o&&Object(i.createElement)(u.SelectControl,{options:c,value:n||"",label:Object(s.__)("Default Style"),onChange:l})}const ar=e=>{let{clientId:t,blockName:n,hasBlockStyles:o,bubblesVirtually:r}=e;const c=Object(ce.a)(t);return Object(i.createElement)("div",{className:"block-editor-block-inspector"},Object(i.createElement)(nr.a,c),Object(i.createElement)($e,{blockClientId:t}),o&&Object(i.createElement)("div",null,Object(i.createElement)(u.PanelBody,{title:Object(s.__)("Styles")},Object(i.createElement)(or.a,{clientId:t}),Object(j.hasBlockSupport)(n,"defaultStylePicker",!0)&&Object(i.createElement)(ir,{blockName:n}))),Object(i.createElement)(an.b.Slot,{bubblesVirtually:r}),Object(i.createElement)(an.b.Slot,{__experimentalGroup:"typography",bubblesVirtually:r,label:Object(s.__)("Typography")}),Object(i.createElement)(an.b.Slot,{__experimentalGroup:"dimensions",bubblesVirtually:r,label:Object(s.__)("Dimensions")}),Object(i.createElement)("div",null,Object(i.createElement)(sr,{bubblesVirtually:r})),Object(i.createElement)(tr,{key:"back"}))},sr=e=>{let{bubblesVirtually:t}=e;const n=Object(u.__experimentalUseSlot)(an.a.slotName);return Boolean(n.fills&&n.fills.length)?Object(i.createElement)(u.PanelBody,{className:"block-editor-block-inspector__advanced",title:Object(s.__)("Advanced"),initialOpen:!1},Object(i.createElement)(an.b.Slot,{__experimentalGroup:"advanced",bubblesVirtually:t})):null};var ur=e=>{let{showNoBlockSelectedMessage:t=!0,bubblesVirtually:n=!0}=e;const{count:o,hasBlockStyles:r,selectedBlockName:c,selectedBlockClientId:l,blockType:a}=Object(_.useSelect)(e=>{const{getSelectedBlockClientId:t,getSelectedBlockCount:n,getBlockName:o}=e(S.a),{getBlockStyles:r}=e(j.store),c=t(),l=c&&o(c),i=l&&Object(j.getBlockType)(l),a=l&&r(l);return{count:n(),selectedBlockClientId:c,selectedBlockName:l,blockType:i,hasBlockStyles:a&&a.length>0}},[]);if(o>1)return Object(i.createElement)("div",{className:"block-editor-block-inspector"},Object(i.createElement)(lr,null),Object(i.createElement)(an.b.Slot,{bubblesVirtually:n}));const u=c===Object(j.getUnregisteredTypeHandlerName)();return a&&l&&!u?Object(i.createElement)(ar,{clientId:l,blockName:a.name,hasBlockStyles:r,bubblesVirtually:n}):t?Object(i.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},Object(s.__)("No block selected.")):null},dr=n("VyCT"),br=n("nlh6"),pr=n("w8sn"),mr=n("JygI"),fr=n("zQI6"),hr=n("U1WI"),gr=n("pXCJ"),Or=n("+gtr"),vr=n("hF7m"),jr=n("PS/H"),kr=n("xCFn"),_r=n("JUfZ"),yr=n("2z9l");function Er(e){let{children:t,__unstableContentRef:n,...o}=e;const r=Object(Q.useViewportMatch)("medium"),c=Object(_.useSelect)(e=>e(S.a).getSettings().hasFixedToolbar,[]),s=Object(vr.__unstableUseShortcutEventMatch)(),{getSelectedBlockClientIds:d,getBlockRootClientId:b}=Object(_.useSelect)(S.a),{duplicateBlocks:p,removeBlocks:m,insertAfterBlock:f,insertBeforeBlock:h,clearSelectedBlock:g,moveBlocksUp:O,moveBlocksDown:v}=Object(_.useDispatch)(S.a);return Object(i.createElement)("div",Object(l.a)({},o,{onKeyDown:function(e){if(s("core/block-editor/move-up",e)){const t=d();if(t.length){e.preventDefault();const n=b(Object(a.first)(t));O(t,n)}}else if(s("core/block-editor/move-down",e)){const t=d();if(t.length){e.preventDefault();const n=b(Object(a.first)(t));v(t,n)}}else if(s("core/block-editor/duplicate",e)){const t=d();t.length&&(e.preventDefault(),p(t))}else if(s("core/block-editor/remove",e)){const t=d();t.length&&(e.preventDefault(),m(t))}else if(s("core/block-editor/insert-after",e)){const t=d();t.length&&(e.preventDefault(),f(Object(a.last)(t)))}else if(s("core/block-editor/insert-before",e)){const t=d();t.length&&(e.preventDefault(),h(Object(a.first)(t)))}else if(s("core/block-editor/delete-multi-selection",e)){const t=d();t.length>1&&(e.preventDefault(),m(t))}else if(s("core/block-editor/unselect",e)){d().length>1&&(e.preventDefault(),g(),e.target.ownerDocument.defaultView.getSelection().removeAllRanges())}}}),Object(i.createElement)(jr.b,{__unstableContentRef:n},(c||!r)&&Object(i.createElement)(_r.a,{isFixed:!0}),Object(i.createElement)(kr.a,{__unstableContentRef:n}),Object(i.createElement)(u.Popover.Slot,{name:"block-toolbar",ref:Object(yr.a)(n)}),t,Object(i.createElement)(u.Popover.Slot,{name:"__unstable-block-tools-after",ref:Object(yr.a)(n)})))}var Cr=n("+0ps"),Sr=n("5L8O"),wr=n("KyyN"),Ir=n("qrxh"),Br=n("xZzQ");var xr=function(e){let{rootClientId:t,clientId:n,isAppender:o,showInserterHelpPanel:r,showMostUsedBlocks:c=!1,__experimentalInsertionIndex:l,__experimentalFilterValue:s,onSelect:u=a.noop,shouldFocusBlock:d=!1}=e;const b=Object(_.useSelect)(e=>{const{getBlockRootClientId:o}=e(S.a);return t||o(n)||void 0},[n,t]);return Object(i.createElement)(Br.a,{onSelect:u,rootClientId:b,clientId:n,isAppender:o,showInserterHelpPanel:r,showMostUsedBlocks:c,__experimentalInsertionIndex:l,__experimentalFilterValue:s,shouldFocusBlock:d})};function Tr(){return null}Tr.Register=function(){const{registerShortcut:e}=Object(_.useDispatch)(vr.store);return Object(i.useEffect)(()=>{e({name:"core/block-editor/duplicate",category:"block",description:Object(s.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:Object(s.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:Object(s.__)("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:Object(s.__)("Insert a new block after the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"y"}}),e({name:"core/block-editor/delete-multi-selection",category:"block",description:Object(s.__)("Remove multiple selected blocks."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:Object(s.__)("Select all text when typing. Press again to select all blocks."),keyCombination:{modifier:"primary",character:"a"}}),e({name:"core/block-editor/unselect",category:"selection",description:Object(s.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:Object(s.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:Object(s.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:Object(s.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}})},[e]),null};var Pr=Tr;function Rr(){return Xn()("wp.blockEditor.MultiSelectScrollIntoView",{hint:"This behaviour is now built-in."}),null}var Nr=n("GkEL");const Lr=new Set([L.UP,L.RIGHT,L.DOWN,L.LEFT,L.ENTER,L.BACKSPACE]);function Mr(){const e=Object(_.useSelect)(e=>e(S.a).isTyping(),[]),{stopTyping:t}=Object(_.useDispatch)(S.a);return Object(Q.useRefEffect)(n=>{if(!e)return;const{ownerDocument:o}=n;let r,c;function l(e){const{clientX:n,clientY:o}=e;r&&c&&(r!==n||c!==o)&&t(),r=n,c=o}return o.addEventListener("mousemove",l),()=>{o.removeEventListener("mousemove",l)}},[e,t])}function Ar(){const e=Object(_.useSelect)(e=>e(S.a).isTyping()),{startTyping:t,stopTyping:n}=Object(_.useDispatch)(S.a),o=Mr(),r=Object(Q.useRefEffect)(o=>{const{ownerDocument:r}=o,{defaultView:c}=r;if(e){let e;function l(t){const{target:o}=t;e=c.setTimeout(()=>{Object(dn.isTextField)(o)||n()})}function i(e){const{keyCode:t}=e;t!==L.ESCAPE&&t!==L.TAB||n()}function a(){const e=c.getSelection();e.rangeCount>0&&e.getRangeAt(0).collapsed||n()}return o.addEventListener("focus",l),o.addEventListener("keydown",i),r.addEventListener("selectionchange",a),()=>{c.clearTimeout(e),o.removeEventListener("focus",l),o.removeEventListener("keydown",i),r.removeEventListener("selectionchange",a)}}function s(e){const{type:n,target:r}=e;Object(dn.isTextField)(r)&&o.contains(r)&&("keydown"!==n||function(e){const{keyCode:t,shiftKey:n}=e;return!n&&Lr.has(t)}(e))&&t()}return o.addEventListener("keypress",s),o.addEventListener("keydown",s),()=>{o.removeEventListener("keypress",s),o.removeEventListener("keydown",s)}},[e,t,n]);return Object(Q.useMergeRefs)([o,r])}var Dr=function(e){let{children:t}=e;return Object(i.createElement)("div",{ref:Ar()},t)};function Fr(){return Xn()("PreserveScrollInReorder component",{since:"5.4",hint:"This behavior is now built-in the block list"}),null}const zr=-1!==window.navigator.userAgent.indexOf("Trident"),Hr=new Set([L.UP,L.DOWN,L.LEFT,L.RIGHT]);function Vr(){const e=Object(_.useSelect)(e=>e(S.a).hasSelectedBlock(),[]);return Object(Q.useRefEffect)(t=>{if(!e)return;const{ownerDocument:n}=t,{defaultView:o}=n;let r,c,l;function i(){r||(r=o.requestAnimationFrame(()=>{b(),r=null}))}function a(e){c&&o.cancelAnimationFrame(c),c=o.requestAnimationFrame(()=>{s(e),c=null})}function s(e){let{keyCode:r}=e;if(!p())return;const c=Object(dn.computeCaretRect)(o);if(!c)return;if(!l)return void(l=c);if(Hr.has(r))return void(l=c);const i=c.top-l.top;if(0===i)return;const a=Object(dn.getScrollContainer)(t);if(!a)return;const s=a===n.body,u=s?o.scrollY:a.scrollTop,d=s?0:a.getBoundingClientRect().top,b=s?l.top/o.innerHeight:(l.top-d)/(o.innerHeight-d);if(0===u&&b<.75&&function(){const e=t.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===n.activeElement}())return void(l=c);const m=s?o.innerHeight:a.clientHeight;l.top+l.height>d+m||l.top<d?l=c:s?o.scrollBy(0,i):a.scrollTop+=i}function u(){n.addEventListener("selectionchange",d)}function d(){n.removeEventListener("selectionchange",d),b()}function b(){p()&&(l=Object(dn.computeCaretRect)(o))}function p(){return t.contains(n.activeElement)&&n.activeElement.isContentEditable}return o.addEventListener("scroll",i,!0),o.addEventListener("resize",i,!0),t.addEventListener("keydown",a),t.addEventListener("keyup",s),t.addEventListener("mousedown",u),t.addEventListener("touchstart",u),()=>{o.removeEventListener("scroll",i,!0),o.removeEventListener("resize",i,!0),t.removeEventListener("keydown",a),t.removeEventListener("keyup",s),t.removeEventListener("mousedown",u),t.removeEventListener("touchstart",u),n.removeEventListener("selectionchange",d),o.cancelAnimationFrame(r),o.cancelAnimationFrame(c)}},[e])}var Gr=zr?e=>e.children:function(e){let{children:t}=e;return Object(i.createElement)("div",{ref:Vr(),className:"block-editor__typewriter"},t)},Ur=n("Zzu2"),Wr=n("TVFh");const qr=Object(a.overEvery)([dn.isTextField,dn.focus.tabbable.isTabbableIndex]);function Kr(){return Object(Q.useRefEffect)(e=>{function t(t){if(t.target!==e)return;const n=dn.focus.focusable.find(e),o=Object(a.findLast)(n,qr);if(!o)return;const{bottom:r}=o.getBoundingClientRect();t.clientY<r||(Object(dn.placeCaretAtHorizontalEdge)(o,!0),t.preventDefault())}return e.addEventListener("mousedown",t),()=>{e.addEventListener("mousedown",t)}},[])}var $r=n("hHnB");const Yr=Object(i.createContext)({});function Xr(e,t,n){const o={...e,[t]:e[t]?new Set(e[t]):new Set};return o[t].add(n),o}function Zr(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const o=Object(i.useContext)(Yr),{name:r}=Object(k.c)();n=n||r;const c=Boolean(null===(t=o[n])||void 0===t?void 0:t.has(e)),l=Object(i.useMemo)(()=>Xr(o,n,e),[o,n,e]),a=Object(i.useCallback)(e=>{let{children:t}=e;return Object(i.createElement)(Yr.Provider,{value:l},t)},[l]);return[c,a]}var Qr=n("/QNa")},"16Al":function(e,t,n){"use strict";var o=n("WbBG");function r(){}function c(){}c.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,c,l){if(l!==o){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:c,resetWarningCache:r};return n.PropTypes=n,n}},"17x9":function(e,t,n){e.exports=n("16Al")()},"1CF3":function(e,t){e.exports=window.wp.dom},"1K8p":function(e,t,n){"use strict";var o=n("jrfk"),r=n("ez49");function c(e){var t=0,n=0,o=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),o=10*t,r=10*n,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(o=e.deltaX),(o||r)&&e.deltaMode&&(1==e.deltaMode?(o*=40,r*=40):(o*=800,r*=800)),o&&!t&&(t=o<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:o,pixelY:r}}c.getEventType=function(){return o.firefox()?"DOMMouseScroll":r("wheel")?"wheel":"mousewheel"},e.exports=c},"1ZqX":function(e,t){e.exports=window.wp.data},"1eGn":function(e,t,n){"use strict";var o=n("wx14"),r=n("GRId"),c=n("YLtl"),l=n("l3Sj"),i=n("tI+e"),a=n("1ZqX"),s=n("VKE3"),u=n("HSyU"),d=n("hF7m"),b=n("K9lf"),p=n("+0ps"),m=n("BhPs");function f(e){let{clientIds:t,children:n,__experimentalUpdateSelection:o}=e;const{canInsertBlockType:r,getBlockRootClientId:l,getBlocksByClientId:i,canMoveBlocks:s,canRemoveBlocks:d}=Object(a.useSelect)(m.a),{getDefaultBlockName:b,getGroupingBlockName:f}=Object(a.useSelect)(u.store),h=i(t),g=l(t[0]),O=Object(c.every)(h,e=>!!e&&Object(u.hasBlockSupport)(e.name,"multiple",!0)&&r(e.name,g)),v=r(b(),g),j=s(t,g),k=d(t,g),{removeBlocks:_,replaceBlocks:y,duplicateBlocks:E,insertAfterBlock:C,insertBeforeBlock:S,flashBlock:w,setBlockMovingClientId:I,setNavigationMode:B,selectBlock:x}=Object(a.useDispatch)(m.a),T=Object(p.c)();return n({canDuplicate:O,canInsertDefaultBlock:v,canMove:j,canRemove:k,rootClientId:g,blocks:h,onDuplicate:()=>E(t,o),onRemove:()=>_(t,o),onInsertBefore(){S(Object(c.first)(Object(c.castArray)(t)))},onInsertAfter(){C(Object(c.last)(Object(c.castArray)(t)))},onMoveTo(){B(!0),x(t[0]),I(t[0])},onGroup(){if(!h.length)return;const e=f(),n=Object(u.switchToBlockType)(h,e);n&&y(t,n)},onUngroup(){if(!h.length)return;const e=h[0].innerBlocks;e.length&&y(t,e)},onCopy(){const e=h.map(e=>{let{clientId:t}=e;return t});1===h.length&&w(e[0]),T("copy",e)}})}var h=Object(b.compose)([Object(a.withSelect)((e,t)=>{let{clientId:n}=t;const{getBlock:o,getBlockMode:r,getSettings:c}=e(m.a),l=o(n),i=c().codeEditingEnabled;return{mode:r(n),blockType:l?Object(u.getBlockType)(l.name):null,isCodeEditingEnabled:i}}),Object(a.withDispatch)((e,t)=>{let{onToggle:n=c.noop,clientId:o}=t;return{onToggleMode(){e(m.a).toggleBlockMode(o),n()}}})])((function(e){let{blockType:t,mode:n,onToggleMode:o,small:c=!1,isCodeEditingEnabled:a=!0}=e;if(!Object(u.hasBlockSupport)(t,"html",!0)||!a)return null;const s="visual"===n?Object(l.__)("Edit as HTML"):Object(l.__)("Edit visually");return Object(r.createElement)(i.MenuItem,{onClick:o},!c&&s)}));var g=Object(b.compose)(Object(a.withSelect)((e,t)=>{let{clientId:n}=t;const o=e(m.a).getBlock(n);return{block:o,shouldRender:o&&"core/html"===o.name}}),Object(a.withDispatch)((e,t)=>{let{block:n}=t;return{onClick:()=>e(m.a).replaceBlocks(n.clientId,Object(u.rawHandler)({HTML:Object(u.getBlockContent)(n)}))}}))((function(e){let{shouldRender:t,onClick:n,small:o}=e;if(!t)return null;const c=Object(l.__)("Convert to Blocks");return Object(r.createElement)(i.MenuItem,{onClick:n},!o&&c)})),O=n("Jyyd"),v=n("pXCJ");const j={className:"block-editor-block-settings-menu__popover",position:"bottom right",isAlternate:!0};function k(e){let{blocks:t,onCopy:n}=e;const o=Object(b.useCopyToClipboard)(()=>Object(u.serialize)(t),n);return Object(r.createElement)(i.MenuItem,{ref:o},Object(l.__)("Copy"))}t.a=function(e){let{clientIds:t,__experimentalSelectBlock:n,children:b,...p}=e;const _=Object(c.castArray)(t),y=_.length,E=_[0],{onlyBlock:C,title:S}=Object(a.useSelect)(e=>{var t;const{getBlockCount:n,getBlockName:o}=e(m.a),{getBlockType:r}=e(u.store);return{onlyBlock:1===n(),title:null===(t=r(o(E)))||void 0===t?void 0:t.title}},[E]),w=Object(a.useSelect)(e=>{const{getShortcutRepresentation:t}=e(d.store);return{duplicate:t("core/block-editor/duplicate"),remove:t("core/block-editor/remove"),insertAfter:t("core/block-editor/insert-after"),insertBefore:t("core/block-editor/insert-before")}},[]),I=Object(r.useCallback)(n?async e=>{const t=await e;t&&t[0]&&n(t[0])}:c.noop,[n]),B=Object(l.sprintf)(Object(l.__)("Remove %s"),S),x=1===y?B:Object(l.__)("Remove blocks");return Object(r.createElement)(f,{clientIds:t,__experimentalUpdateSelection:!n},e=>{let{canDuplicate:n,canInsertDefaultBlock:a,canMove:u,canRemove:d,onDuplicate:m,onInsertAfter:f,onInsertBefore:_,onRemove:S,onCopy:B,onMoveTo:T,blocks:P}=e;return Object(r.createElement)(i.DropdownMenu,Object(o.a)({icon:s.a,label:Object(l.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:j,noIcons:!0},p),e=>{let{onClose:o}=e;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(i.MenuGroup,null,Object(r.createElement)(O.a.Slot,{fillProps:{onClose:o}}),1===y&&Object(r.createElement)(g,{clientId:E}),Object(r.createElement)(k,{blocks:P,onCopy:B}),n&&Object(r.createElement)(i.MenuItem,{onClick:Object(c.flow)(o,m,I),shortcut:w.duplicate},Object(l.__)("Duplicate")),a&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(i.MenuItem,{onClick:Object(c.flow)(o,_),shortcut:w.insertBefore},Object(l.__)("Insert before")),Object(r.createElement)(i.MenuItem,{onClick:Object(c.flow)(o,f),shortcut:w.insertAfter},Object(l.__)("Insert after"))),u&&!C&&Object(r.createElement)(i.MenuItem,{onClick:Object(c.flow)(o,T)},Object(l.__)("Move to")),1===y&&Object(r.createElement)(h,{clientId:E,onToggle:o})),Object(r.createElement)(v.a.Slot,{fillProps:{onClose:o},clientIds:t}),"function"==typeof b?b({onClose:o}):r.Children.map(e=>Object(r.cloneElement)(e,{onClose:o})),d&&Object(r.createElement)(i.MenuGroup,null,Object(r.createElement)(i.MenuItem,{onClick:Object(c.flow)(o,S,I),shortcut:w.remove},x)))})})}},"1iEr":function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=c},"1oY3":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("wx14"),r=n("GRId"),c=n("NtoT"),l=n("jwne");const i=c.a;i.Slot=l.a;const a=e=>Object(r.createElement)(c.a,Object(o.a)({},e,{__experimentalGroup:"advanced"}));a.Slot=e=>Object(r.createElement)(l.a,Object(o.a)({},e,{__experimentalGroup:"advanced"})),a.slotName="InspectorAdvancedControls",t.b=i},"1uGa":function(e,t,n){"use strict";var o=n("GRId"),r=n("tI+e"),c=n("l3Sj"),l=n("RxS6");t.a=function(e){let{colorPalette:t,duotonePalette:n,disableCustomColors:i,disableCustomDuotone:a,value:s,onChange:u}=e;return Object(o.createElement)(r.Dropdown,{popoverProps:{className:"block-editor-duotone-control__popover",headerTitle:Object(c.__)("Duotone"),isAlternate:!0},renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return Object(o.createElement)(r.ToolbarButton,{showTooltip:!0,onClick:n,"aria-haspopup":"true","aria-expanded":t,onKeyDown:e=>{t||e.keyCode!==l.DOWN||(e.preventDefault(),n())},label:Object(c.__)("Apply duotone filter"),icon:Object(o.createElement)(r.DuotoneSwatch,{values:s})})},renderContent:()=>Object(o.createElement)(r.MenuGroup,{label:Object(c.__)("Duotone")},Object(o.createElement)("div",{className:"block-editor-duotone-control__description"},Object(c.__)("Create a two-tone color effect without losing your original image.")),Object(o.createElement)(r.DuotonePicker,{colorPalette:t,duotonePalette:n,disableCustomColors:i,disableCustomDuotone:a,value:s,onChange:u}))})}},"2YCo":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n("GRId"),r=n("tI+e"),c=n("l3Sj"),l=n("bVTw"),i=n("Tqx9");var a=Object(o.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},Object(o.createElement)(i.Path,{fillRule:"evenodd",d:"M5 11.25h3v1.5H5v-1.5zm5.5 0h3v1.5h-3v-1.5zm8.5 0h-3v1.5h3v-1.5z",clipRule:"evenodd"}));var s=Object(o.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},Object(o.createElement)(i.Path,{fillRule:"evenodd",d:"M5.25 11.25h1.5v1.5h-1.5v-1.5zm3 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5zm1.5 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5z",clipRule:"evenodd"}));const u=[{label:Object(c.__)("Solid"),icon:l.a,value:"solid"},{label:Object(c.__)("Dashed"),icon:a,value:"dashed"},{label:Object(c.__)("Dotted"),icon:s,value:"dotted"}];function d(e){let{onChange:t,value:n}=e;return Object(o.createElement)("fieldset",{className:"components-border-style-control"},Object(o.createElement)("legend",null,Object(c.__)("Style")),Object(o.createElement)("div",{className:"components-border-style-control__buttons"},u.map(e=>Object(o.createElement)(r.Button,{key:e.value,icon:e.icon,isSmall:!0,isPressed:e.value===n,onClick:()=>t(e.value===n?void 0:e.value),"aria-label":e.label}))))}},"2gm7":function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=c},"2z9l":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("K9lf");function r(e){return Object(o.useRefEffect)(t=>{if(!e)return;function n(t){const{deltaX:n,deltaY:o}=t;e.current.scrollBy(n,o)}const o={passive:!0};return t.addEventListener("wheel",n,o),()=>{t.removeEventListener("wheel",n,o)}},[e])}},"5L8O":function(e,t,n){"use strict";var o=n("GRId"),r=n("TSYQ"),c=n.n(r),l=n("l3Sj"),i=n("K9lf"),a=n("HSyU"),s=n("rmEH"),u=n("1ZqX"),d=n("qrxh"),b=n("BhPs");t.a=Object(i.compose)(Object(u.withSelect)((e,t)=>{const{getBlockCount:n,getBlockName:o,isBlockValid:r,getSettings:c,getTemplateLock:l}=e(b.a),i=!n(t.rootClientId),s=o(t.lastBlockClientId)===Object(a.getDefaultBlockName)(),u=r(t.lastBlockClientId),{bodyPlaceholder:d}=c();return{isVisible:i||!s||!u,showPrompt:i,isLocked:!!l(t.rootClientId),placeholder:d}}),Object(u.withDispatch)((e,t)=>{const{insertDefaultBlock:n,startTyping:o}=e(b.a);return{onAppend(){const{rootClientId:e}=t;n(void 0,e),o()}}}))((function(e){let{isLocked:t,isVisible:n,onAppend:r,showPrompt:i,placeholder:a,rootClientId:u}=e;if(t||!n)return null;const b=Object(s.decodeEntities)(a)||Object(l.__)("Type / to choose a block");return Object(o.createElement)("div",{"data-root-client-id":u||"",className:c()("block-editor-default-block-appender",{"has-visible-prompt":i})},Object(o.createElement)("p",{tabIndex:"0",contentEditable:!0,suppressContentEditableWarning:!0,role:"button","aria-label":Object(l.__)("Add block"),className:"block-editor-default-block-appender__content",onFocus:r},i?b:"\ufeff"),Object(o.createElement)(d.a,{rootClientId:u,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0}))}))},"5gPN":function(e,t,n){"use strict";n.d(t,"b",(function(){return o.a})),n.d(t,"c",(function(){return o.b})),n.d(t,"d",(function(){return o.c})),n.d(t,"a",(function(){return p})),n.d(t,"e",(function(){return m}));var o=n("bVpQ"),r=n("wx14"),c=n("GRId"),l=n("YLtl"),i=n("K9lf"),a=n("v5LD");const s=[],u=e=>Object(i.createHigherOrderComponent)(t=>n=>Object(c.createElement)(t,Object(r.a)({},n,{colors:e})),"withCustomColorPalette"),d=()=>Object(i.createHigherOrderComponent)(e=>t=>{const n=Object(a.a)("color.palette")||s;return Object(c.createElement)(e,Object(r.a)({},t,{colors:n}))},"withEditorColorPalette");function b(e,t){const n=Object(l.reduce)(e,(e,t)=>({...e,...Object(l.isString)(t)?{[t]:Object(l.kebabCase)(t)}:t}),{});return Object(i.compose)([t,e=>class extends c.Component{constructor(e){super(e),this.setters=this.createSetters(),this.colorUtils={getMostReadableColor:this.getMostReadableColor.bind(this)},this.state={}}getMostReadableColor(e){const{colors:t}=this.props;return Object(o.d)(t,e)}createSetters(){return Object(l.reduce)(n,(e,t,n)=>{const o=Object(l.upperFirst)(n),r="custom"+o;return e["set"+o]=this.createSetColor(n,r),e},{})}createSetColor(e,t){return n=>{const r=Object(o.c)(this.props.colors,n);this.props.setAttributes({[e]:r&&r.slug?r.slug:void 0,[t]:r&&r.slug?void 0:n})}}static getDerivedStateFromProps(e,t){let{attributes:r,colors:c}=e;return Object(l.reduce)(n,(e,n,i)=>{const a=Object(o.b)(c,r[i],r["custom"+Object(l.upperFirst)(i)]),s=t[i];return(null==s?void 0:s.color)===a.color&&s?e[i]=s:e[i]={...a,class:Object(o.a)(n,a.slug)},e},{})}render(){return Object(c.createElement)(e,Object(r.a)({},this.props,{colors:void 0},this.state,this.setters,{colorUtils:this.colorUtils}))}}])}function p(e){return function(){const t=u(e);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return Object(i.createHigherOrderComponent)(b(o,t),"withCustomColors")}}function m(){const e=d();for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Object(i.createHigherOrderComponent)(b(n,e),"withColors")}},"6ZVF":function(e,t,n){"use strict";var o=n("GRId"),r=n("HSyU"),c=n("wx14"),l=n("TSYQ"),i=n.n(l),a=n("RxS6"),s=n("7SSY"),u=n("M+co"),d=n("j6zP");function b(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;const{platform:t}=e.navigator;return-1!==t.indexOf("Mac")||["iPad","iPhone"].includes(t)}var p=Object(o.memo)((function(e){let{className:t,isFirst:n,item:l,onSelect:p,onHover:m,isDraggable:f,...h}=e;const g=Object(o.useRef)(!1),O=l.icon?{backgroundColor:l.icon.background,color:l.icon.foreground}:{},v=Object(o.useMemo)(()=>[Object(r.createBlock)(l.name,l.initialAttributes,Object(r.createBlocksFromInnerBlocksTemplate)(l.innerBlocks))],[l.name,l.initialAttributes,l.initialAttributes]);return Object(o.createElement)(d.a,{isEnabled:f&&!l.disabled,blocks:v,icon:l.icon},e=>{let{draggable:r,onDragStart:d,onDragEnd:f}=e;return Object(o.createElement)("div",{className:"block-editor-block-types-list__list-item",draggable:r,onDragStart:e=>{g.current=!0,d&&(m(null),d(e))},onDragEnd:e=>{g.current=!1,f&&f(e)}},Object(o.createElement)(u.a,Object(c.a)({isFirst:n,className:i()("block-editor-block-types-list__item",t),disabled:l.isDisabled,onClick:e=>{e.preventDefault(),p(l,b()?e.metaKey:e.ctrlKey),m(null)},onKeyDown:e=>{const{keyCode:t}=e;t===a.ENTER&&(e.preventDefault(),p(l,b()?e.metaKey:e.ctrlKey),m(null))},onFocus:()=>{g.current||m(l)},onMouseEnter:()=>{g.current||m(l)},onMouseLeave:()=>m(null),onBlur:()=>m(null)},h),Object(o.createElement)("span",{className:"block-editor-block-types-list__item-icon",style:O},Object(o.createElement)(s.a,{icon:l.icon,showColors:!0})),Object(o.createElement)("span",{className:"block-editor-block-types-list__item-title"},l.title)))})})),m=n("xkPd"),f=n("HC45");t.a=function(e){let{items:t=[],onSelect:n,onHover:c=(()=>{}),children:l,label:i,isDraggable:a=!0}=e;return Object(o.createElement)(m.a,{className:"block-editor-block-types-list","aria-label":i},function(e,t){const n=[];for(let o=0,r=e.length;o<r;o+=t)n.push(e.slice(o,o+t));return n}(t,3).map((e,t)=>Object(o.createElement)(f.a,{key:t},e.map((e,l)=>Object(o.createElement)(p,{key:e.id,item:e,className:Object(r.getBlockMenuDefaultClassName)(e.id),onSelect:n,onHover:c,isDraggable:a,isFirst:0===t&&0===l})))),l)}},"6c9H":function(e,t,n){"use strict";var o=n("GRId"),r=n("fHnH"),c=n("abaT"),l=n("7bKH"),i=n("gdqT"),a=n("l3Sj"),s=n("tI+e");function u(e){let{colordBackgroundColor:t,colordTextColor:n,backgroundColor:r,textColor:c}=e;const l=t.brightness()<n.brightness()?Object(a.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter text color."):Object(a.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker text color.");return Object(o.useEffect)(()=>{Object(i.speak)(Object(a.__)("This color combination may be hard for people to read."))},[r,c]),Object(o.createElement)("div",{className:"block-editor-contrast-checker"},Object(o.createElement)(s.Notice,{spokenMessage:null,status:"warning",isDismissible:!1},l))}Object(r.b)([c.a,l.a]),t.a=function(e){let{backgroundColor:t,fallbackBackgroundColor:n,fallbackTextColor:c,fontSize:l,isLargeText:i,textColor:a}=e;if(!t&&!n||!a&&!c)return null;const s=Object(r.a)(t||n),d=Object(r.a)(a||c);return 1!==s.alpha()||1!==d.alpha()||d.isReadable(s,{level:"AA",size:i||!1!==i&&l>=24?"large":"small"})?null:Object(o.createElement)(u,{backgroundColor:t,textColor:a,colordBackgroundColor:s,colordTextColor:d})}},"6jxZ":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("1ZqX"),r=n("K9lf"),c=n("OL6h"),l=n("BhPs");function i(e){const{isBlockSelected:t}=Object(o.useSelect)(l.a),{selectBlock:n,selectionChange:i}=Object(o.useDispatch)(l.a);return Object(r.useRefEffect)(o=>{function r(r){t(e)?r.target.isContentEditable||i(e):Object(c.c)(o,r.target)&&n(e)}return o.addEventListener("focusin",r),()=>{o.removeEventListener("focusin",r)}},[t,n])}},"715p":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("YLtl");const r=e=>{if(!Object(o.isObject)(e)||Array.isArray(e))return e;const t=Object(o.pickBy)(Object(o.mapValues)(e,r),o.identity);return Object(o.isEmpty)(t)?void 0:t}},"7NR9":function(e,t,n){"use strict";var o=n("GRId"),r=n("YLtl"),c=n("TSYQ"),l=n.n(c),i=n("1ZqX"),a=n("RxS6"),s=n("l3Sj"),u=n("HSyU"),d=n("BLeD"),b=n.n(d);var p=n("REKd"),m=n("BhPs");const f={};function h(e){let{genericPreviewBlock:t,viewportWidth:n,style:r,isActive:c,onBlur:i,onHover:s,onSelect:u,styleClassName:d,itemRole:b}=e;const m=Object(o.useMemo)(()=>({...t,attributes:{...t.attributes,className:d}}),[t,d]);return Object(o.createElement)("div",{key:r.name,className:l()("block-editor-block-styles__item",{"is-active":c}),onClick:()=>u(),onKeyDown:e=>{a.ENTER!==e.keyCode&&a.SPACE!==e.keyCode||(e.preventDefault(),u())},onMouseEnter:s,onMouseLeave:i,role:b||"button",tabIndex:"0","aria-label":r.label||r.name},Object(o.createElement)("div",{className:"block-editor-block-styles__item-preview"},Object(o.createElement)(p.a,{viewportWidth:n,blocks:m})),Object(o.createElement)("div",{className:"block-editor-block-styles__item-label"},r.label||r.name))}t.a=function(e){let{clientId:t,onSwitch:n=r.noop,onHoverClassName:c=r.noop,itemRole:l}=e;const{styles:a,block:d,type:p,className:g}=Object(i.useSelect)(e=>{const{getBlock:n}=e(m.a),o=n(t);if(!o)return f;const r=Object(u.getBlockType)(o.name),{getBlockStyles:c}=e(u.store);return{block:o,type:r,styles:c(o.name),className:o.attributes.className||""}},[t]),{updateBlockAttributes:O}=Object(i.useDispatch)(m.a),v=function(e,t){return Object(o.useMemo)(()=>{const n=null==t?void 0:t.example,o=null==t?void 0:t.name;return n&&o?Object(u.getBlockFromExample)(o,{attributes:n.attributes,innerBlocks:n.innerBlocks}):e?Object(u.cloneBlock)(e):void 0},[null!=t&&t.example?null==e?void 0:e.name:e,t])}(d,p);if(!a||0===a.length)return null;const j=Object(r.find)(a,"isDefault")?a:[{name:"default",label:Object(s._x)("Default","block style"),isDefault:!0},...a],k=function(e,t){for(const n of new b.a(t).values()){if(-1===n.indexOf("is-style-"))continue;const t=n.substring(9),o=Object(r.find)(e,{name:t});if(o)return o}return Object(r.find)(e,"isDefault")}(j,g);return Object(o.createElement)("div",{className:"block-editor-block-styles"},j.map(e=>{var r,i;const a=function(e,t,n){const o=new b.a(e);return t&&o.remove("is-style-"+t.name),o.add("is-style-"+n.name),o.value}(g,k,e);return Object(o.createElement)(h,{genericPreviewBlock:v,viewportWidth:null!==(r=null===(i=p.example)||void 0===i?void 0:i.viewportWidth)&&void 0!==r?r:500,className:g,isActive:k===e,key:e.name,onSelect:()=>{O(t,{className:a}),c(null),n()},onBlur:()=>c(null),onHover:()=>c(a),style:e,styleClassName:a,itemRole:l})}))}},"7SSY":function(e,t,n){"use strict";var o=n("GRId"),r=n("TSYQ"),c=n.n(r),l=n("tI+e"),i=n("//Lo");t.a=Object(o.memo)((function(e){var t;let{icon:n,showColors:r=!1,className:a}=e;"block-default"===(null===(t=n)||void 0===t?void 0:t.src)&&(n={src:i.a});const s=Object(o.createElement)(l.Icon,{icon:n&&n.src?n.src:n}),u=r?{backgroundColor:n&&n.background,color:n&&n.foreground}:{};return Object(o.createElement)("span",{style:u,className:c()("block-editor-block-icon",a,{"has-colors":r})},s)}))},"7bKH":function(e,t,n){"use strict";var o=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},r=function(e){return.2126*o(e.r)+.7152*o(e.g)+.0722*o(e.b)};t.a=function(e){e.prototype.luminance=function(){return e=r(this.rgba),void 0===(t=2)&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var n,o,c,l,i,a,s,u=t instanceof e?t:new e(t);return l=this.rgba,i=u.toRgb(),n=(a=r(l))>(s=r(i))?(a+.05)/(s+.05):(s+.05)/(a+.05),void 0===(o=2)&&(o=0),void 0===c&&(c=Math.pow(10,o)),Math.floor(c*n)/c+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(l=void 0===(c=(n=t).size)?"normal":c,"AAA"===(r=void 0===(o=n.level)?"AA":o)&&"normal"===l?7:"AA"===r&&"large"===l?3:4.5);var n,o,r,c,l}}},"7fqt":function(e,t){e.exports=window.wp.wordcount},"8oxB":function(e,t){var n,o,r=e.exports={};function c(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}function i(e){if(n===setTimeout)return setTimeout(e,0);if((n===c||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:c}catch(e){n=c}try{o="function"==typeof clearTimeout?clearTimeout:l}catch(e){o=l}}();var a,s=[],u=!1,d=-1;function b(){u&&a&&(u=!1,a.length?s=a.concat(s):d=-1,s.length&&p())}function p(){if(!u){var e=i(b);u=!0;for(var t=s.length;t;){for(a=s,s=[];++d<t;)a&&a[d].run();d=-1,t=s.length}a=null,u=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===l||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function f(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new m(e,t)),1!==s.length||u||i(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},"9Do8":function(e,t,n){"use strict";e.exports=n("zt9T")},"9Ma0":function(e,t,n){"use strict";n.d(t,"b",(function(){return _})),n.d(t,"a",(function(){return y}));var o=n("wx14"),r=n("GRId"),c=n("TSYQ"),l=n.n(c),i=n("YLtl"),a=n("HSyU"),s=n("tI+e"),u=n("K9lf"),d=n("1ZqX"),b=n("l3Sj"),p=n("1iEr"),m=n("2gm7"),f=n("XgzB"),h=n("NWDH");function g(e,t,n,o,r,c,l){const i=n+1,a=e=>"up"===e?"horizontal"===l?Object(b.isRTL)()?"right":"left":"up":"down"===e?"horizontal"===l?Object(b.isRTL)()?"left":"right":"down":null;if(e>1)return function(e,t,n,o,r){const c=t+1;if(r<0&&n)return Object(b.__)("Blocks cannot be moved up as they are already at the top");if(r>0&&o)return Object(b.__)("Blocks cannot be moved down as they are already at the bottom");if(r<0&&!n)return Object(b.sprintf)(Object(b._n)("Move %1$d block from position %2$d up by one place","Move %1$d blocks from position %2$d up by one place",e),e,c);if(r>0&&!o)return Object(b.sprintf)(Object(b._n)("Move %1$d block from position %2$d down by one place","Move %1$d blocks from position %2$d down by one place",e),e,c)}(e,n,o,r,c);if(o&&r)return Object(b.sprintf)(Object(b.__)("Block %s is the only block, and cannot be moved"),t);if(c>0&&!r){const e=a("down");if("down"===e)return Object(b.sprintf)(Object(b.__)("Move %1$s block from position %2$d down to position %3$d"),t,i,i+1);if("left"===e)return Object(b.sprintf)(Object(b.__)("Move %1$s block from position %2$d left to position %3$d"),t,i,i+1);if("right"===e)return Object(b.sprintf)(Object(b.__)("Move %1$s block from position %2$d right to position %3$d"),t,i,i+1)}if(c>0&&r){const e=a("down");if("down"===e)return Object(b.sprintf)(Object(b.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===e)return Object(b.sprintf)(Object(b.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===e)return Object(b.sprintf)(Object(b.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(c<0&&!o){const e=a("up");if("up"===e)return Object(b.sprintf)(Object(b.__)("Move %1$s block from position %2$d up to position %3$d"),t,i,i-1);if("left"===e)return Object(b.sprintf)(Object(b.__)("Move %1$s block from position %2$d left to position %3$d"),t,i,i-1);if("right"===e)return Object(b.sprintf)(Object(b.__)("Move %1$s block from position %2$d right to position %3$d"),t,i,i-1)}if(c<0&&o){const e=a("up");if("up"===e)return Object(b.sprintf)(Object(b.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===e)return Object(b.sprintf)(Object(b.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===e)return Object(b.sprintf)(Object(b.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}var O=n("BhPs");const v=(e,t)=>"up"===e?"horizontal"===t?Object(b.isRTL)()?p.a:m.a:f.a:"down"===e?"horizontal"===t?Object(b.isRTL)()?m.a:p.a:h.a:null,j=(e,t)=>"up"===e?"horizontal"===t?Object(b.isRTL)()?Object(b.__)("Move right"):Object(b.__)("Move left"):Object(b.__)("Move up"):"down"===e?"horizontal"===t?Object(b.isRTL)()?Object(b.__)("Move left"):Object(b.__)("Move right"):Object(b.__)("Move down"):null,k=Object(r.forwardRef)((e,t)=>{let{clientIds:n,direction:c,orientation:b,...p}=e;const m=Object(u.useInstanceId)(k),f=Object(i.castArray)(n).length,{blockType:h,isDisabled:_,rootClientId:y,isFirst:E,isLast:C,firstIndex:S,orientation:w="vertical"}=Object(d.useSelect)(e=>{const{getBlockIndex:t,getBlockRootClientId:o,getBlockOrder:r,getBlock:l,getBlockListSettings:s}=e(O.a),u=Object(i.castArray)(n),d=Object(i.first)(u),p=o(d),m=t(d,p),f=t(Object(i.last)(u),p),h=r(p),g=l(d),v=0===m,j=f===h.length-1,{orientation:k}=s(p)||{};return{blockType:g?Object(a.getBlockType)(g.name):null,isDisabled:"up"===c?v:j,rootClientId:p,firstIndex:m,isFirst:v,isLast:j,orientation:b||k}},[n,c]),{moveBlocksDown:I,moveBlocksUp:B}=Object(d.useDispatch)(O.a),x="up"===c?B:I,T="block-editor-block-mover-button__description-"+m;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(s.Button,Object(o.a)({ref:t,className:l()("block-editor-block-mover-button",`is-${c}-button`),icon:v(c,w),label:j(c,w),"aria-describedby":T},p,{onClick:_?null:e=>{x(n,y),p.onClick&&p.onClick(e)},"aria-disabled":_})),Object(r.createElement)("span",{id:T,className:"block-editor-block-mover-button__description"},g(f,h&&h.title,S,E,C,"up"===c?-1:1,w)))}),_=Object(r.forwardRef)((e,t)=>Object(r.createElement)(k,Object(o.a)({direction:"up",ref:t},e))),y=Object(r.forwardRef)((e,t)=>Object(r.createElement)(k,Object(o.a)({direction:"down",ref:t},e)))},"9XVa":function(e,t,n){"use strict";n.d(t,"b",(function(){return o.a})),n.d(t,"c",(function(){return o.b})),n.d(t,"d",(function(){return o.c})),n.d(t,"a",(function(){return r.a})),n.d(t,"e",(function(){return d}));var o=n("NMUH"),r=n("QP/w"),c=n("wx14"),l=n("GRId"),i=n("YLtl"),a=n("K9lf"),s=n("v5LD");const u=[];var d=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=Object(i.reduce)(t,(e,t)=>(e[t]="custom"+Object(i.upperFirst)(t),e),{});return Object(a.createHigherOrderComponent)(Object(a.compose)([Object(a.createHigherOrderComponent)(e=>t=>{const n=Object(s.a)("typography.fontSizes")||u;return Object(l.createElement)(e,Object(c.a)({},t,{fontSizes:n}))},"withFontSizes"),e=>class extends l.Component{constructor(e){super(e),this.setters=this.createSetters(),this.state={}}createSetters(){return Object(i.reduce)(r,(e,t,n)=>(e["set"+Object(i.upperFirst)(n)]=this.createSetFontSize(n,t),e),{})}createSetFontSize(e,t){return n=>{const o=Object(i.find)(this.props.fontSizes,{size:Number(n)});this.props.setAttributes({[e]:o&&o.slug?o.slug:void 0,[t]:o&&o.slug?void 0:n})}}static getDerivedStateFromProps(e,t){let{attributes:n,fontSizes:c}=e;const l=(e,o)=>!t[o]||(n[o]?n[o]!==t[o].slug:t[o].size!==n[e]);if(!Object(i.some)(r,l))return null;const a=Object(i.reduce)(Object(i.pickBy)(r,l),(e,t,r)=>{const l=n[r],i=Object(o.a)(c,l,n[t]);return e[r]={...i,class:Object(o.b)(l)},e},{});return{...t,...a}}render(){return Object(l.createElement)(e,Object(c.a)({},this.props,{fontSizes:void 0},this.state,this.setters))}}]),"withFontSizes")}},AHN3:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));const o="core/block-editor"},AORF:function(e,t,n){"use strict";var o=n("YLtl"),r=n("1ZqX"),c=n("HSyU"),l=n("l3Sj"),i=n("gdqT"),a=n("GRId"),s=n("BhPs");t.a=function(e){let{rootClientId:t="",insertionIndex:n,clientId:u,isAppender:d,onSelect:b,shouldFocusBlock:p=!0}=e;const{getSelectedBlock:m}=Object(r.useSelect)(s.a),{destinationRootClientId:f,destinationIndex:h}=Object(r.useSelect)(e=>{const{getSelectedBlockClientId:o,getBlockRootClientId:r,getBlockIndex:c,getBlockOrder:l}=e(s.a),i=o();let a,b=t;return void 0!==n?a=n:u?a=c(u,b):!d&&i?(b=r(i),a=c(i,b)+1):a=l(b).length,{destinationRootClientId:b,destinationIndex:a}},[t,n,u,d]),{replaceBlocks:g,insertBlocks:O,showInsertionPoint:v,hideInsertionPoint:j}=Object(r.useDispatch)(s.a),k=Object(a.useCallback)((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=m();!d&&r&&Object(c.isUnmodifiedDefaultBlock)(r)?g(r.clientId,e,null,p||n?0:null,t):O(e,h,f,!0,p||n?0:null,t);const a=Object(l.sprintf)(Object(l._n)("%d block added.","%d blocks added.",Object(o.castArray)(e).length),Object(o.castArray)(e).length);Object(i.speak)(a),b&&b()}),[d,m,g,O,f,h,b,p]),_=Object(a.useCallback)(e=>{e?v(f,h):j()},[v,j,f,h]);return[f,k,_]}},B9Az:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");var c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=c},BCrt:function(e,t,n){"use strict";n.d(t,"c",(function(){return o.a})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"a",(function(){return i.a})),n.d(t,"b",(function(){return g}));var o=n("vSu0"),r=n("lJLt");function c(e){if(void 0===e)e=r.b.colors;else{const t=e.filter(e=>e.color);0===t.length?e=r.b.colors:t.length<e.length&&(e=t)}return e}function l(e){if(void 0===e)e=r.b.gradients;else{const t=e.filter(e=>e.gradient);0===t.length?e=r.b.gradients:t.length<e.length&&(e=t)}return e}var i=n("Btt3");function a(e){const t=null==e?void 0:e.trim().match(/^(0?[-.]?\d+)(r?e[m|x]|v[h|w|min|max]+|p[x|t|c]|[c|m]m|%|in|ch|Q|lh)$/);return isNaN(e)||isNaN(parseFloat(e))?t?{value:parseFloat(t[1])||t[1],unit:t[2]}:{value:e,unit:void 0}:{value:parseFloat(e),unit:"px"}}function s(e,t){const n=e.split(/[(),]/g).filter(Boolean),o=n.slice(1).map(e=>a(m(e,t)).value).filter(Boolean);switch(n[0]){case"min":return Math.min(...o)+"px";case"max":return Math.max(...o)+"px";case"clamp":return 3!==o.length?null:o[1]<o[0]?o[0]+"px":o[1]>o[2]?o[2]+"px":o[1]+"px";case"calc":return o[0]+"px"}}function u(e){for(;;){const t=e,n=/(max|min|calc|clamp)\(([^()]*)\)/g.exec(e)||[];if(n[0]){const t=s(n[0]);e=e.replace(n[0],t)}if(e===t||parseFloat(e))break}return a(e)}function d(e){for(let t=0;t<e.length;t++)if(["+","-","/","*"].includes(e[t]))return!0;return!1}function b(e){let t=!1;const n=e.split(/[+-/*/]/g).filter(Boolean);for(const o of n){const n=a(m(o));if(!parseFloat(n.value)){t=!0;break}e=e.replace(o,n.value)}return t?null:(o=e,Function(`'use strict'; return (${o})`)()).toFixed(0)+"px";var o}function p(e,t){const n=Object.assign({},{fontSize:16,lineHeight:16,width:375,height:812,type:"font"},t),o={em:n.fontSize,rem:n.fontSize,vh:.01*n.height,vw:.01*n.width,vmin:.01*(n.width<n.height?n.width:n.height),vmax:.01*(n.width>n.height?n.width:n.height),"%":.01*("font"===n.type?n.fontSize:n.width),ch:8,ex:7.15625,lh:n.lineHeight},r={in:96,cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,px:1,Q:96/2.54/40};return o[e.unit]?(o[e.unit]*e.value).toFixed(0)+"px":r[e.unit]?(r[e.unit]*e.value).toFixed(0)+"px":null}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isFinite(e))return e.toFixed(0)+"px";if(void 0===e)return null;let n=a(e);return n.unit||(n=u(e)),d(e)&&!n.unit?b(e):p(n,t)}const f={};function h(e){let t="";return e.hasOwnProperty("fontSize")&&(t=":"+e.width),e.hasOwnProperty("lineHeight")&&(t=":"+e.lineHeight),e.hasOwnProperty("width")&&(t=":"+e.width),e.hasOwnProperty("height")&&(t=":"+e.height),e.hasOwnProperty("type")&&(t=":"+e.type),t}var g=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e+h(t);return f[n]||(f[n]=m(e,t)),f[n]}},BLeD:function(e,t){e.exports=window.wp.tokenList},BhPs:function(e,t,n){"use strict";n.d(t,"b",(function(){return En})),n.d(t,"a",(function(){return Cn}));var o={};n.r(o),n.d(o,"getBlockName",(function(){return S})),n.d(o,"isBlockValid",(function(){return w})),n.d(o,"getBlockAttributes",(function(){return I})),n.d(o,"getBlock",(function(){return B})),n.d(o,"__unstableGetBlockWithoutInnerBlocks",(function(){return x})),n.d(o,"getBlocks",(function(){return T})),n.d(o,"__unstableGetClientIdWithClientIdsTree",(function(){return P})),n.d(o,"__unstableGetClientIdsTree",(function(){return R})),n.d(o,"getClientIdsOfDescendants",(function(){return N})),n.d(o,"getClientIdsWithDescendants",(function(){return L})),n.d(o,"getGlobalBlockCount",(function(){return M})),n.d(o,"getBlocksByClientId",(function(){return A})),n.d(o,"getBlockCount",(function(){return D})),n.d(o,"getSelectionStart",(function(){return F})),n.d(o,"getSelectionEnd",(function(){return z})),n.d(o,"getBlockSelectionStart",(function(){return H})),n.d(o,"getBlockSelectionEnd",(function(){return V})),n.d(o,"getSelectedBlockCount",(function(){return G})),n.d(o,"hasSelectedBlock",(function(){return U})),n.d(o,"getSelectedBlockClientId",(function(){return W})),n.d(o,"getSelectedBlock",(function(){return q})),n.d(o,"getBlockRootClientId",(function(){return K})),n.d(o,"getBlockParents",(function(){return $})),n.d(o,"getBlockParentsByBlockName",(function(){return Y})),n.d(o,"getBlockHierarchyRootClientId",(function(){return X})),n.d(o,"getLowestCommonAncestorWithSelectedBlock",(function(){return Z})),n.d(o,"getAdjacentBlockClientId",(function(){return Q})),n.d(o,"getPreviousBlockClientId",(function(){return J})),n.d(o,"getNextBlockClientId",(function(){return ee})),n.d(o,"getSelectedBlocksInitialCaretPosition",(function(){return te})),n.d(o,"getSelectedBlockClientIds",(function(){return ne})),n.d(o,"getMultiSelectedBlockClientIds",(function(){return oe})),n.d(o,"getMultiSelectedBlocks",(function(){return re})),n.d(o,"getFirstMultiSelectedBlockClientId",(function(){return ce})),n.d(o,"getLastMultiSelectedBlockClientId",(function(){return le})),n.d(o,"isFirstMultiSelectedBlock",(function(){return ie})),n.d(o,"isBlockMultiSelected",(function(){return ae})),n.d(o,"isAncestorMultiSelected",(function(){return se})),n.d(o,"getMultiSelectedBlocksStartClientId",(function(){return ue})),n.d(o,"getMultiSelectedBlocksEndClientId",(function(){return de})),n.d(o,"getBlockOrder",(function(){return be})),n.d(o,"getBlockIndex",(function(){return pe})),n.d(o,"isBlockSelected",(function(){return me})),n.d(o,"hasSelectedInnerBlock",(function(){return fe})),n.d(o,"isBlockWithinSelection",(function(){return he})),n.d(o,"hasMultiSelection",(function(){return ge})),n.d(o,"isMultiSelecting",(function(){return Oe})),n.d(o,"isSelectionEnabled",(function(){return ve})),n.d(o,"getBlockMode",(function(){return je})),n.d(o,"isTyping",(function(){return ke})),n.d(o,"isDraggingBlocks",(function(){return _e})),n.d(o,"getDraggedBlockClientIds",(function(){return ye})),n.d(o,"isBlockBeingDragged",(function(){return Ee})),n.d(o,"isAncestorBeingDragged",(function(){return Ce})),n.d(o,"isCaretWithinFormattedText",(function(){return Se})),n.d(o,"getBlockInsertionPoint",(function(){return we})),n.d(o,"isBlockInsertionPointVisible",(function(){return Ie})),n.d(o,"isValidTemplate",(function(){return Be})),n.d(o,"getTemplate",(function(){return xe})),n.d(o,"getTemplateLock",(function(){return Te})),n.d(o,"canInsertBlockType",(function(){return Ne})),n.d(o,"canInsertBlocks",(function(){return Le})),n.d(o,"canRemoveBlock",(function(){return Me})),n.d(o,"canRemoveBlocks",(function(){return Ae})),n.d(o,"canMoveBlock",(function(){return De})),n.d(o,"canMoveBlocks",(function(){return Fe})),n.d(o,"getInserterItems",(function(){return We})),n.d(o,"getBlockTransformItems",(function(){return qe})),n.d(o,"hasInserterItems",(function(){return Ke})),n.d(o,"__experimentalGetAllowedBlocks",(function(){return $e})),n.d(o,"__experimentalGetDirectInsertBlock",(function(){return Ye})),n.d(o,"__experimentalGetParsedPattern",(function(){return Xe})),n.d(o,"__experimentalGetAllowedPatterns",(function(){return Qe})),n.d(o,"__experimentalGetPatternsByBlockTypes",(function(){return Je})),n.d(o,"__experimentalGetPatternTransformItems",(function(){return et})),n.d(o,"getBlockListSettings",(function(){return tt})),n.d(o,"getSettings",(function(){return nt})),n.d(o,"isLastBlockChangePersistent",(function(){return ot})),n.d(o,"__experimentalGetBlockListSettingsForBlocks",(function(){return rt})),n.d(o,"__experimentalGetReusableBlockTitle",(function(){return ct})),n.d(o,"__unstableIsLastBlockChangeIgnored",(function(){return lt})),n.d(o,"__experimentalGetLastBlockAttributeChanges",(function(){return it})),n.d(o,"isNavigationMode",(function(){return st})),n.d(o,"hasBlockMovingClientId",(function(){return ut})),n.d(o,"didAutomaticChange",(function(){return dt})),n.d(o,"isBlockHighlighted",(function(){return bt})),n.d(o,"areInnerBlocksControlled",(function(){return pt})),n.d(o,"__experimentalGetActiveBlockIdByBlockNames",(function(){return mt})),n.d(o,"wasBlockJustInserted",(function(){return ft}));var r={};n.r(r),n.d(r,"resetBlocks",(function(){return kt})),n.d(r,"validateBlocksToTemplate",(function(){return _t})),n.d(r,"resetSelection",(function(){return yt})),n.d(r,"receiveBlocks",(function(){return Et})),n.d(r,"updateBlockAttributes",(function(){return Ct})),n.d(r,"updateBlock",(function(){return St})),n.d(r,"selectBlock",(function(){return wt})),n.d(r,"selectPreviousBlock",(function(){return It})),n.d(r,"selectNextBlock",(function(){return Bt})),n.d(r,"startMultiSelect",(function(){return xt})),n.d(r,"stopMultiSelect",(function(){return Tt})),n.d(r,"multiSelect",(function(){return Pt})),n.d(r,"clearSelectedBlock",(function(){return Rt})),n.d(r,"toggleSelection",(function(){return Nt})),n.d(r,"replaceBlocks",(function(){return Mt})),n.d(r,"replaceBlock",(function(){return At})),n.d(r,"moveBlocksDown",(function(){return Ft})),n.d(r,"moveBlocksUp",(function(){return zt})),n.d(r,"moveBlocksToPosition",(function(){return Ht})),n.d(r,"moveBlockToPosition",(function(){return Vt})),n.d(r,"insertBlock",(function(){return Gt})),n.d(r,"insertBlocks",(function(){return Ut})),n.d(r,"showInsertionPoint",(function(){return Wt})),n.d(r,"hideInsertionPoint",(function(){return qt})),n.d(r,"setTemplateValidity",(function(){return Kt})),n.d(r,"synchronizeTemplate",(function(){return $t})),n.d(r,"mergeBlocks",(function(){return Yt})),n.d(r,"removeBlocks",(function(){return Xt})),n.d(r,"removeBlock",(function(){return Zt})),n.d(r,"replaceInnerBlocks",(function(){return Qt})),n.d(r,"toggleBlockMode",(function(){return Jt})),n.d(r,"startTyping",(function(){return en})),n.d(r,"stopTyping",(function(){return tn})),n.d(r,"startDraggingBlocks",(function(){return nn})),n.d(r,"stopDraggingBlocks",(function(){return on})),n.d(r,"enterFormattedText",(function(){return rn})),n.d(r,"exitFormattedText",(function(){return cn})),n.d(r,"selectionChange",(function(){return ln})),n.d(r,"insertDefaultBlock",(function(){return an})),n.d(r,"updateBlockListSettings",(function(){return sn})),n.d(r,"updateSettings",(function(){return un})),n.d(r,"__unstableSaveReusableBlock",(function(){return dn})),n.d(r,"__unstableMarkLastChangeAsPersistent",(function(){return bn})),n.d(r,"__unstableMarkNextChangeAsNotPersistent",(function(){return pn})),n.d(r,"__unstableMarkAutomaticChange",(function(){return mn})),n.d(r,"setNavigationMode",(function(){return fn})),n.d(r,"setBlockMovingClientId",(function(){return hn})),n.d(r,"duplicateBlocks",(function(){return gn})),n.d(r,"insertBeforeBlock",(function(){return On})),n.d(r,"insertAfterBlock",(function(){return vn})),n.d(r,"toggleBlockHighlight",(function(){return jn})),n.d(r,"flashBlock",(function(){return kn})),n.d(r,"setHasControlledInnerBlocks",(function(){return _n}));var c=n("1ZqX"),l=n("YLtl"),i=n("HSyU"),a=n("lJLt");function s(e,t,n){return[...e.slice(0,n),...Object(l.castArray)(t),...e.slice(n)]}function u(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const r=[...e];return r.splice(t,o),s(r,e.slice(t,t+o),n)}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n={[t]:[]};return e.forEach(e=>{const{clientId:o,innerBlocks:r}=e;n[t].push(o),Object.assign(n,d(r,o))}),n}function b(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce((e,n)=>Object.assign(e,{[n.clientId]:t},b(n.innerBlocks,n.clientId)),{})}function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.identity;const n={},o=[...e];for(;o.length;){const{innerBlocks:e,...r}=o.shift();o.push(...e),n[r.clientId]=t(r)}return n}function m(e){return p(e,e=>Object(l.omit)(e,"attributes"))}function f(e){return p(e,e=>e.attributes)}function h(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&Object(l.isEqual)(e.clientIds,t.clientIds)&&(n=e.attributes,o=t.attributes,Object(l.isEqual)(Object(l.keys)(n),Object(l.keys)(o)));var n,o}function g(e,t){const n={},o=[...t],r=[...t];for(;o.length;){const e=o.shift();o.push(...e.innerBlocks),r.push(...e.innerBlocks)}for(const e of r)n[e.clientId]={};for(const t of r)n[t.clientId]=Object.assign(n[t.clientId],{...e.byClientId[t.clientId],attributes:e.attributes[t.clientId],innerBlocks:t.innerBlocks.map(e=>n[e.clientId])});return n}function O(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=new Set([]),c=new Set;for(const t of n){let n=o?t:e.parents[t];do{if(e.controlledInnerBlocks[n]){c.add(n);break}r.add(n),n=e.parents[n]}while(void 0!==n)}for(const e of r)t[e]={...t[e]};for(const n of r)t[n].innerBlocks=(e.order[n]||[]).map(e=>t[e]);for(const n of c)t["controlled||"+n]={innerBlocks:(e.order[n]||[]).map(e=>t[e])};return t}const v=Object(l.flow)(c.combineReducers,e=>(t,n)=>{if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){const{id:e,updatedId:o}=n;if(e===o)return t;(t={...t}).attributes=Object(l.mapValues)(t.attributes,(n,r)=>{const{name:c}=t.byClientId[r];return"core/block"===c&&n.ref===e?{...n,ref:o}:n})}return e(t,n)},e=>function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;const o=e(t,n);if(o===t)return t;switch(o.tree=t.tree?t.tree:{},n.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const e=g(o,n.blocks);o.tree=O(o,{...o.tree,...e},n.rootClientId?[n.rootClientId]:[""],!0);break}case"UPDATE_BLOCK":o.tree=O(o,{...o.tree,[n.clientId]:{...o.tree[n.clientId],...o.byClientId[n.clientId],attributes:o.attributes[n.clientId]}},[n.clientId],!1);break;case"UPDATE_BLOCK_ATTRIBUTES":{const e=n.clientIds.reduce((e,t)=>(e[t]={...o.tree[t],attributes:o.attributes[t]},e),{});o.tree=O(o,{...o.tree,...e},n.clientIds,!1);break}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const e=g(o,n.blocks);o.tree=O(o,{...Object(l.omit)(o.tree,n.replacedClientIds.concat(n.replacedClientIds.map(e=>"controlled||"+e))),...e},n.blocks.map(e=>e.clientId),!1);const r=[];for(const e of n.clientIds)void 0===t.parents[e]||""!==t.parents[e]&&!o.byClientId[t.parents[e]]||r.push(t.parents[e]);o.tree=O(o,o.tree,r,!0);break}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":const e=[];for(const r of n.clientIds)void 0===t.parents[r]||""!==t.parents[r]&&!o.byClientId[t.parents[r]]||e.push(t.parents[r]);o.tree=O(o,Object(l.omit)(o.tree,n.removedClientIds.concat(n.removedClientIds.map(e=>"controlled||"+e))),e,!0);break;case"MOVE_BLOCKS_TO_POSITION":{const e=[];n.fromRootClientId&&e.push(n.fromRootClientId),n.toRootClientId&&e.push(n.toRootClientId),n.fromRootClientId&&n.fromRootClientId||e.push(""),o.tree=O(o,o.tree,e,!0);break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{const e=[n.rootClientId?n.rootClientId:""];o.tree=O(o,o.tree,e,!0);break}case"SAVE_REUSABLE_BLOCK_SUCCESS":{const e=Object(l.keys)(Object(l.omitBy)(o.attributes,(e,t)=>"core/block"!==o.byClientId[t].name||e.ref!==n.updatedId));o.tree=O(o,{...o.tree,...e.reduce((e,t)=>(e[t]={...o.byClientId[t],attributes:o.attributes[t],innerBlocks:o.tree[t].innerBlocks},e),{})},e,!1)}}return o},e=>(t,n)=>{const o=e=>{let o=e;for(let r=0;r<o.length;r++)!t.order[o[r]]||n.keepControlledInnerBlocks&&n.keepControlledInnerBlocks[o[r]]||(o===e&&(o=[...o]),o.push(...t.order[o[r]]));return o};if(t)switch(n.type){case"REMOVE_BLOCKS":n={...n,type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:o(n.clientIds)};break;case"REPLACE_BLOCKS":n={...n,type:"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",replacedClientIds:o(n.clientIds)}}return e(t,n)},e=>(t,n)=>{if("REPLACE_INNER_BLOCKS"!==n.type)return e(t,n);const o={};if(Object.keys(t.controlledInnerBlocks).length){const e=[...n.blocks];for(;e.length;){const{innerBlocks:n,...r}=e.shift();e.push(...n),t.controlledInnerBlocks[r.clientId]&&(o[r.clientId]=!0)}}let r=t;t.order[n.rootClientId]&&(r=e(r,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:o,clientIds:t.order[n.rootClientId]}));let c=r;return n.blocks.length&&(c=e(c,{...n,type:"INSERT_BLOCKS",index:0}),c.order={...c.order,...Object(l.reduce)(o,(e,n,o)=>(t.order[o]&&(e[o]=t.order[o]),e),{})}),c},e=>(t,n)=>{if("RESET_BLOCKS"===n.type){var o,r,c;const e=function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(l.reduce)(t[n],(n,r)=>o[r]?n:[...n,r,...e(t,r)],[])}(null!==(o=null==t?void 0:t.order)&&void 0!==o?o:{},"",null!==(r=null==t?void 0:t.controlledInnerBlocks)&&void 0!==r?r:{}),i=Object.keys(Object(l.pickBy)(null!==(c=null==t?void 0:t.controlledInnerBlocks)&&void 0!==c?c:{})),a={...t,byClientId:{...Object(l.omit)(null==t?void 0:t.byClientId,e),...m(n.blocks)},attributes:{...Object(l.omit)(null==t?void 0:t.attributes,e),...f(n.blocks)},order:{...Object(l.omit)(null==t?void 0:t.order,e),...Object(l.omit)(d(n.blocks),i)},parents:{...Object(l.omit)(null==t?void 0:t.parents,e),...b(n.blocks)},controlledInnerBlocks:(null==t?void 0:t.controlledInnerBlocks)||{}},s=g(a,n.blocks);return a.tree={...Object(l.omit)(null==t?void 0:t.tree,e),...s,"":{innerBlocks:n.blocks.map(e=>s[e.clientId])}},a}return e(t,n)},(function(e){let t,n=!1;return(o,r)=>{let c=e(o,r);const l="MARK_LAST_CHANGE_AS_PERSISTENT"===r.type||n;if(o===c&&!l){var i;n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===r.type;const e=null===(i=null==o?void 0:o.isPersistentChange)||void 0===i||i;return o.isPersistentChange===e?o:{...c,isPersistentChange:e}}return c={...c,isPersistentChange:l?!n:!h(r,t)},t=r,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===r.type,c}}),(function(e){const t=new Set(["RECEIVE_BLOCKS"]);return(n,o)=>{const r=e(n,o);return r!==n&&(r.isIgnoredChange=t.has(o.type)),r}}))({byClientId(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return{...e,...m(t.blocks)};case"UPDATE_BLOCK":if(!e[t.clientId])return e;const n=Object(l.omit)(t.updates,"attributes");return Object(l.isEmpty)(n)?e:{...e,[t.clientId]:{...e[t.clientId],...n}};case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?{...Object(l.omit)(e,t.replacedClientIds),...m(t.blocks)}:e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(l.omit)(e,t.removedClientIds)}return e},attributes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return{...e,...f(t.blocks)};case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?{...e,[t.clientId]:{...e[t.clientId],...t.updates.attributes}}:e;case"UPDATE_BLOCK_ATTRIBUTES":{if(t.clientIds.every(t=>!e[t]))return e;const n=t.clientIds.reduce((n,o)=>({...n,[o]:Object(l.reduce)(t.uniqueByBlock?t.attributes[o]:t.attributes,(t,n,r)=>{var c,l;return n!==t[r]&&((t=(c=e[o])===(l=t)?{...c}:l)[r]=n),t},e[o])}),{});return t.clientIds.every(t=>n[t]===e[t])?e:{...e,...n}}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?{...Object(l.omit)(e,t.replacedClientIds),...f(t.blocks)}:e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(l.omit)(e,t.removedClientIds)}return e},order(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":{const n=d(t.blocks);return{...e,...Object(l.omit)(n,""),"":((null==e?void 0:e[""])||[]).concat(n[""])}}case"INSERT_BLOCKS":{const{rootClientId:n=""}=t,o=e[n]||[],r=d(t.blocks,n),{index:c=o.length}=t;return{...e,...r,[n]:s(o,r[n],c)}}case"MOVE_BLOCKS_TO_POSITION":{const{fromRootClientId:n="",toRootClientId:o="",clientIds:r}=t,{index:c=e[o].length}=t;if(n===o){const t=e[o].indexOf(r[0]);return{...e,[o]:u(e[o],t,c,r.length)}}return{...e,[n]:Object(l.without)(e[n],...r),[o]:s(e[o],r,c)}}case"MOVE_BLOCKS_UP":{const{clientIds:n,rootClientId:o=""}=t,r=Object(l.first)(n),c=e[o];if(!c.length||r===Object(l.first)(c))return e;const i=c.indexOf(r);return{...e,[o]:u(c,i,i-1,n.length)}}case"MOVE_BLOCKS_DOWN":{const{clientIds:n,rootClientId:o=""}=t,r=Object(l.first)(n),c=Object(l.last)(n),i=e[o];if(!i.length||c===Object(l.last)(i))return e;const a=i.indexOf(r);return{...e,[o]:u(i,a,a+1,n.length)}}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const{clientIds:n}=t;if(!t.blocks)return e;const o=d(t.blocks);return Object(l.flow)([e=>Object(l.omit)(e,t.replacedClientIds),e=>({...e,...Object(l.omit)(o,"")}),e=>Object(l.mapValues)(e,e=>Object(l.reduce)(e,(e,t)=>t===n[0]?[...e,...o[""]]:(-1===n.indexOf(t)&&e.push(t),e),[]))])(e)}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(l.flow)([e=>Object(l.omit)(e,t.removedClientIds),e=>Object(l.mapValues)(e,e=>Object(l.without)(e,...t.removedClientIds))])(e)}return e},parents(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":return{...e,...b(t.blocks)};case"INSERT_BLOCKS":return{...e,...b(t.blocks,t.rootClientId||"")};case"MOVE_BLOCKS_TO_POSITION":return{...e,...t.clientIds.reduce((e,n)=>(e[n]=t.toRootClientId||"",e),{})};case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return{...Object(l.omit)(e,t.replacedClientIds),...b(t.blocks,e[t.clientIds[0]])};case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(l.omit)(e,t.removedClientIds)}return e},controlledInnerBlocks(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t,clientId:n,hasControlledInnerBlocks:o}=arguments.length>1?arguments[1]:void 0;return"SET_HAS_CONTROLLED_INNER_BLOCKS"===t?{...e,[n]:o}:e}});function j(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection&&t.blocks.length?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":{if(-1===t.clientIds.indexOf(e.clientId))return e;const n=t.blocks[t.indexToSelect]||t.blocks[t.blocks.length-1];return n?n.clientId===e.clientId?e:{clientId:n.clientId}:{}}}return e}var k=Object(c.combineReducers)({blocks:v,isTyping:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},draggedBlocks:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},isCaretWithinFormattedText:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},selection:function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;switch(o.type){case"SELECTION_CHANGE":return{selectionStart:{clientId:o.clientId,attributeKey:o.attributeKey,offset:o.startOffset},selectionEnd:{clientId:o.clientId,attributeKey:o.attributeKey,offset:o.endOffset}};case"RESET_SELECTION":const{selectionStart:r,selectionEnd:c}=o;return{selectionStart:r,selectionEnd:c};case"MULTI_SELECT":const{start:l,end:i}=o;return{selectionStart:{clientId:l},selectionEnd:{clientId:i}};case"RESET_BLOCKS":const a=null==n||null===(e=n.selectionStart)||void 0===e?void 0:e.clientId,s=null==n||null===(t=n.selectionEnd)||void 0===t?void 0:t.clientId;if(!a&&!s)return n;if(!o.blocks.some(e=>e.clientId===a))return{selectionStart:{},selectionEnd:{}};if(!o.blocks.some(e=>e.clientId===s))return{...n,selectionEnd:n.selectionStart}}return{selectionStart:j(n.selectionStart,o),selectionEnd:j(n.selectionEnd,o)}},isMultiSelecting:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOGGLE_SELECTION":return t.isSelectionEnabled}return e},initialPosition:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return"REPLACE_BLOCKS"===t.type&&void 0!==t.initialPosition||["SELECT_BLOCK","RESET_SELECTION","INSERT_BLOCKS","REPLACE_INNER_BLOCKS"].includes(t.type)?t.initialPosition:e},blocksMode:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("TOGGLE_BLOCK_MODE"===t.type){const{clientId:n}=t;return{...e,[n]:e[n]&&"html"===e[n]?"visual":"html"}}return e},blockListSettings:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object(l.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":{const{clientId:n}=t;return t.settings?Object(l.isEqual)(e[n],t.settings)?e:{...e,[n]:t.settings}:e.hasOwnProperty(n)?Object(l.omit)(e,n):e}}return e},insertionPoint:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SHOW_INSERTION_POINT":const{rootClientId:e,index:n,__unstableWithInserter:o}=t;return{rootClientId:e,index:n,__unstableWithInserter:o};case"HIDE_INSERTION_POINT":return null}return e},template:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE_VALIDITY":return{...e,isValid:t.isValid}}return e},settings:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.b,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return{...e,...t.settings}}return e},preferences:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce((e,n)=>{const{attributes:o,name:r}=n,l=Object(c.select)(i.store).getActiveBlockVariation(r,o);let a=null!=l&&l.name?`${r}/${l.name}`:r;const s={name:a};return"core/block"===r&&(s.ref=o.ref,a+="/"+o.ref),{...e,insertUsage:{...e.insertUsage,[a]:{time:t.time,count:e.insertUsage[a]?e.insertUsage[a].count+1:1,insert:s}}}},e)}return e},lastBlockAttributesChange:function(e,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return{[t.clientId]:t.updates.attributes};case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce((e,n)=>({...e,[n]:t.uniqueByBlock?t.attributes[n]:t.attributes}),{})}return null},isNavigationMode:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"INSERT_BLOCKS"!==t.type&&("SET_NAVIGATION_MODE"===t.type?t.isNavigationMode:e)},hasBlockMovingClientId:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return"SET_BLOCK_MOVING_MODE"===t.type?t.hasBlockMovingClientId:"SET_NAVIGATION_MODE"===t.type?null:e},automaticChangeStatus:function(e,t){switch(t.type){case"MARK_AUTOMATIC_CHANGE":return"pending";case"MARK_AUTOMATIC_CHANGE_FINAL":return"pending"===e?"final":void 0;case"SELECTION_CHANGE":return"final"!==e?e:void 0;case"START_TYPING":case"STOP_TYPING":return e}},highlightedBlock:function(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":const{clientId:n,isHighlighted:o}=t;return o?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e},lastBlockInserted:function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case"INSERT_BLOCKS":if(!n.blocks.length)return t;return{clientId:n.blocks[0].clientId,source:null===(e=n.meta)||void 0===e?void 0:e.source};case"RESET_BLOCKS":return{}}return t}}),_=n("pPDe"),y=n("GRId"),E=n("+WrK");const C=[];function S(e,t){const n=e.blocks.byClientId[t];if("web"!==y.Platform.OS&&"core/social-link"===(null==n?void 0:n.name)){const n=e.blocks.attributes[t],{service:o}=n;return o?"core/social-link-"+o:"core/social-link"}return n?n.name:null}function w(e,t){const n=e.blocks.byClientId[t];return!!n&&n.isValid}function I(e,t){return e.blocks.byClientId[t]?e.blocks.attributes[t]:null}function B(e,t){return e.blocks.byClientId[t]?e.blocks.tree[t]:null}const x=Object(_.a)((e,t)=>{const n=e.blocks.byClientId[t];return n?{...n,attributes:I(e,t)}:null},(e,t)=>[e.blocks.byClientId[t],e.blocks.attributes[t]]);function T(e,t){var n;const o=t&&pt(e,t)?"controlled||"+t:t||"";return(null===(n=e.blocks.tree[o])||void 0===n?void 0:n.innerBlocks)||C}const P=Object(_.a)((e,t)=>({clientId:t,innerBlocks:R(e,t)}),e=>[e.blocks.order]),R=Object(_.a)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(l.map)(be(e,t),t=>P(e,t))}),e=>[e.blocks.order]),N=(e,t)=>Object(l.flatMap)(t,t=>{const n=be(e,t);return[...n,...N(e,n)]}),L=Object(_.a)(e=>{const t=be(e);return[...t,...N(e,t)]},e=>[e.blocks.order]),M=Object(_.a)((e,t)=>{const n=L(e);return t?Object(l.reduce)(n,(n,o)=>e.blocks.byClientId[o].name===t?n+1:n,0):n.length},e=>[e.blocks.order,e.blocks.byClientId]),A=Object(_.a)((e,t)=>Object(l.map)(Object(l.castArray)(t),t=>B(e,t)),(e,t)=>Object(l.map)(Object(l.castArray)(t),t=>e.blocks.tree[t]));function D(e,t){return be(e,t).length}function F(e){return e.selection.selectionStart}function z(e){return e.selection.selectionEnd}function H(e){return e.selection.selectionStart.clientId}function V(e){return e.selection.selectionEnd.clientId}function G(e){const t=oe(e).length;return t||(e.selection.selectionStart.clientId?1:0)}function U(e){const{selectionStart:t,selectionEnd:n}=e.selection;return!!t.clientId&&t.clientId===n.clientId}function W(e){const{selectionStart:t,selectionEnd:n}=e.selection,{clientId:o}=t;return o&&o===n.clientId?o:null}function q(e){const t=W(e);return t?B(e,t):null}function K(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}const $=Object(_.a)((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=[];let r=t;for(;e.blocks.parents[r];)r=e.blocks.parents[r],o.push(r);return n?o:o.reverse()}),e=>[e.blocks.parents]),Y=Object(_.a)((function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=$(e,t,o);return Object(l.map)(Object(l.filter)(Object(l.map)(r,t=>({id:t,name:S(e,t)})),e=>{let{name:t}=e;return Array.isArray(n)?n.includes(t):t===n}),e=>{let{id:t}=e;return t})}),e=>[e.blocks.parents]);function X(e,t){let n,o=t;do{n=o,o=e.blocks.parents[o]}while(o);return n}function Z(e,t){const n=W(e),o=[...$(e,t),t],r=[...$(e,n),n];let c;const l=Math.min(o.length,r.length);for(let e=0;e<l&&o[e]===r[e];e++)c=o[e];return c}function Q(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=W(e)),void 0===t&&(t=n<0?ce(e):le(e)),!t)return null;const o=K(e,t);if(null===o)return null;const{order:r}=e.blocks,c=r[o],l=c.indexOf(t),i=l+1*n;return i<0||i===c.length?null:c[i]}function J(e,t){return Q(e,t,-1)}function ee(e,t){return Q(e,t,1)}function te(e){return e.initialPosition}const ne=Object(_.a)(e=>{const{selectionStart:t,selectionEnd:n}=e.selection;if(void 0===t.clientId||void 0===n.clientId)return C;if(t.clientId===n.clientId)return[t.clientId];const o=K(e,t.clientId);if(null===o)return C;const r=be(e,o),c=r.indexOf(t.clientId),l=r.indexOf(n.clientId);return c>l?r.slice(l,c+1):r.slice(c,l+1)},e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]);function oe(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?C:ne(e)}const re=Object(_.a)(e=>{const t=oe(e);return t.length?t.map(t=>B(e,t)):C},e=>[...ne.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]);function ce(e){return Object(l.first)(oe(e))||null}function le(e){return Object(l.last)(oe(e))||null}function ie(e,t){return ce(e)===t}function ae(e,t){return-1!==oe(e).indexOf(t)}const se=Object(_.a)((e,t)=>{let n=t,o=!1;for(;n&&!o;)n=K(e,n),o=ae(e,n);return o},e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]);function ue(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:t.clientId||null}function de(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:n.clientId||null}function be(e,t){return e.blocks.order[t||""]||C}function pe(e,t,n){return be(e,n).indexOf(t)}function me(e,t){const{selectionStart:n,selectionEnd:o}=e.selection;return n.clientId===o.clientId&&n.clientId===t}function fe(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(l.some)(be(e,t),t=>me(e,t)||ae(e,t)||n&&fe(e,t,n))}function he(e,t){if(!t)return!1;const n=oe(e),o=n.indexOf(t);return o>-1&&o<n.length-1}function ge(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId!==n.clientId}function Oe(e){return e.isMultiSelecting}function ve(e){return e.isSelectionEnabled}function je(e,t){return e.blocksMode[t]||"visual"}function ke(e){return e.isTyping}function _e(e){return!!e.draggedBlocks.length}function ye(e){return e.draggedBlocks}function Ee(e,t){return e.draggedBlocks.includes(t)}function Ce(e,t){if(!_e(e))return!1;const n=$(e,t);return Object(l.some)(n,t=>Ee(e,t))}function Se(e){return e.isCaretWithinFormattedText}function we(e){let t,n;const{insertionPoint:o,selection:{selectionEnd:r}}=e;if(null!==o)return o;const{clientId:c}=r;return c?(t=K(e,c)||void 0,n=pe(e,r.clientId,t)+1):n=be(e).length,{rootClientId:t,index:n}}function Ie(e){return null!==e.insertionPoint}function Be(e){return e.template.isValid}function xe(e){return e.settings.template}function Te(e,t){if(!t)return e.settings.templateLock;const n=tt(e,t);return n?n.templateLock:null}const Pe=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object(l.isBoolean)(e)?e:Object(l.isArray)(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n},Re=function(e,t){let n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(t&&"object"==typeof t?(n=t,t=n.name):n=Object(i.getBlockType)(t),!n)return!1;const{allowedBlockTypes:r}=nt(e),c=Pe(r,t,!0);if(!c)return!1;const l=!!Te(e,o);if(l)return!1;const a=tt(e,o);if(o&&void 0===a)return!1;const s=null==a?void 0:a.allowedBlocks,u=Pe(s,t),d=n.parent,b=S(e,o),p=Pe(d,b);return null!==u&&null!==p?u||p:null!==u?u:null===p||p},Ne=Object(_.a)(Re,(e,t,n)=>[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]);function Le(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every(t=>Ne(e,S(e,t),n))}function Me(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const o=I(e,t);if(null===o)return!0;const{lock:r}=o,c=!!Te(e,n);return void 0===r||void 0===(null==r?void 0:r.remove)?!c:!(null!=r&&r.remove)}function Ae(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every(t=>Me(e,t,n))}function De(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const o=I(e,t);if(null===o)return;const{lock:r}=o,c="all"===Te(e,n);return void 0===r||void 0===(null==r?void 0:r.move)?!c:!(null!=r&&r.move)}function Fe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every(t=>De(e,t,n))}function ze(e,t){var n,o;return null!==(n=null===(o=e.preferences.insertUsage)||void 0===o?void 0:o[t])&&void 0!==n?n:null}const He=(e,t,n)=>!!Object(i.hasBlockSupport)(t,"inserter",!0)&&Re(e,t.name,n),Ve=(e,t)=>n=>{const o=`${t.id}/${n.name}`,{time:r,count:c=0}=ze(e,o)||{};return{...t,id:o,icon:n.icon||t.icon,title:n.title||t.title,description:n.description||t.description,category:n.category||t.category,example:n.hasOwnProperty("example")?n.example:t.example,initialAttributes:{...t.initialAttributes,...n.attributes},innerBlocks:n.innerBlocks,keywords:n.keywords||t.keywords,frecency:Ge(r,c)}},Ge=(e,t)=>{if(!e)return t;const n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},Ue=(e,t)=>{let{buildScope:n="inserter"}=t;return t=>{const o=t.name;let r=!1;Object(i.hasBlockSupport)(t.name,"multiple",!0)||(r=Object(l.some)(A(e,L(e)),{name:t.name}));const{time:c,count:a=0}=ze(e,o)||{},s={id:o,name:t.name,title:t.title,icon:t.icon,isDisabled:r,frecency:Ge(c,a)};if("transform"===n)return s;const u=Object(i.getBlockVariations)(t.name,"inserter");return{...s,initialAttributes:{},description:t.description,category:t.category,keywords:t.keywords,variations:u,example:t.example,utility:1}}},We=Object(_.a)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=Ue(e,{buildScope:"inserter"}),o=/^\s*<!--\s+(\/)?wp:([a-z][a-z0-9_-]*\/)?([a-z][a-z0-9_-]*)\s+({(?:(?=([^}]+|}+(?=})|(?!}\s+\/?-->)[^])*)\5|[^]*?)}\s+)?(\/)?-->/,r=t=>{let n=E.a;if("web"===y.Platform.OS){const e=("string"==typeof t.content.raw?t.content.raw:t.content).match(o);if(e){const[,,t="core/",o]=e,r=Object(i.getBlockType)(t+o);r&&(n=r.icon)}}const r="core/block/"+t.id,{time:c,count:l=0}=ze(e,r)||{},a=Ge(c,l);return{id:r,name:"core/block",initialAttributes:{ref:t.id},title:t.title.raw,icon:n,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:a}},c=Object(i.getBlockTypes)().filter(n=>He(e,n,t)).map(n),l=Re(e,"core/block",t)?at(e).map(r):[],a=c.filter(e=>{let{variations:t=[]}=e;return!t.some(e=>{let{isDefault:t}=e;return t})}),s=[];for(const t of c){const{variations:n=[]}=t;if(n.length){const o=Ve(e,t);s.push(...n.map(o))}}const u=(e,t)=>{const{core:n,noncore:o}=e;return(t.name.startsWith("core/")?n:o).push(t),e},d=a.reduce(u,{core:[],noncore:[]}),b=s.reduce(u,{core:[],noncore:[]}),p=[...d.core,...b.core,...d.noncore,...b.noncore];return[...p,...l]}),(e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,at(e),Object(i.getBlockTypes)()]),qe=Object(_.a)((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const o=Ue(e,{buildScope:"transform"}),r=Object(i.getBlockTypes)().filter(t=>He(e,t,n)).map(o),c=Object(l.mapKeys)(r,e=>{let{name:t}=e;return t}),a=Object(i.getPossibleBlockTransformations)(t).reduce((e,t)=>(c[null==t?void 0:t.name]&&e.push(c[t.name]),e),[]),s=Object(l.orderBy)(a,e=>c[e.name].frecency,"desc");return s}),(e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Object(i.getBlockTypes)()]),Ke=Object(_.a)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=Object(l.some)(Object(i.getBlockTypes)(),n=>He(e,n,t));if(n)return!0;const o=Re(e,"core/block",t)&&at(e).length>0;return o}),(e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,at(e),Object(i.getBlockTypes)()]),$e=Object(_.a)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return Object(l.filter)(Object(i.getBlockTypes)(),n=>He(e,n,t))}),(e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Object(i.getBlockTypes)()]),Ye=Object(_.a)((function(e){var t,n;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!o)return;const r=null===(t=e.blockListSettings[o])||void 0===t?void 0:t.__experimentalDefaultBlock,c=null===(n=e.blockListSettings[o])||void 0===n?void 0:n.__experimentalDirectInsert;return r&&c?"function"==typeof c?c(B(e,o))?r:null:r:void 0}),(e,t)=>[e.blockListSettings[t],e.blocks.tree[t]]),Xe=Object(_.a)((e,t)=>{const n=e.settings.__experimentalBlockPatterns.find(e=>{let{name:n}=e;return n===t});return n?{...n,blocks:Object(i.parse)(n.content)}:null},e=>[e.settings.__experimentalBlockPatterns]),Ze=Object(_.a)(e=>{const t=e.settings.__experimentalBlockPatterns,{allowedBlockTypes:n}=nt(e);return t.filter(e=>{let{inserter:t=!0}=e;return!!t}).map(t=>{let{name:n}=t;return Xe(e,n)}).filter(e=>{let{blocks:t}=e;return((e,t)=>{if(Object(l.isBoolean)(t))return t;const n=[...e];for(;n.length>0;){var o;const e=n.shift();if(!Pe(t,e.name||e.blockName,!0))return!1;null===(o=e.innerBlocks)||void 0===o||o.forEach(e=>{n.push(e)})}return!0})(t,n)})},e=>[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes]),Qe=Object(_.a)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=Ze(e),o=Object(l.filter)(n,n=>{let{blocks:o}=n;return o.every(n=>{let{name:o}=n;return Ne(e,o,t)})});return o}),(e,t)=>[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes,e.settings.templateLock,e.blockListSettings[t],e.blocks.byClientId[t]]),Je=Object(_.a)((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return C;const o=Qe(e,n),r=Array.isArray(t)?t:[t];return o.filter(e=>{var t,n;return null==e||null===(t=e.blockTypes)||void 0===t||null===(n=t.some)||void 0===n?void 0:n.call(t,e=>r.includes(e))})}),(e,t)=>[...Qe.getDependants(e,t)]),et=Object(_.a)((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return C;if(t.some(t=>{let{clientId:n,innerBlocks:o}=t;return o.length||pt(e,n)}))return C;const o=Array.from(new Set(t.map(e=>{let{name:t}=e;return t})));return Je(e,o,n)}),(e,t)=>[...Je.getDependants(e,t)]);function tt(e,t){return e.blockListSettings[t]}function nt(e){return e.settings}function ot(e){return e.blocks.isPersistentChange}const rt=Object(_.a)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.reduce((t,n)=>e.blockListSettings[n]?{...t,[n]:e.blockListSettings[n]}:t,{})}),e=>[e.blockListSettings]),ct=Object(_.a)((e,t)=>{var n;const o=Object(l.find)(at(e),e=>e.id===t);return o?null===(n=o.title)||void 0===n?void 0:n.raw:null},e=>[at(e)]);function lt(e){return e.blocks.isIgnoredChange}function it(e){return e.lastBlockAttributesChange}function at(e){var t,n;return null!==(t=null==e||null===(n=e.settings)||void 0===n?void 0:n.__experimentalReusableBlocks)&&void 0!==t?t:C}function st(e){return e.isNavigationMode}function ut(e){return e.hasBlockMovingClientId}function dt(e){return!!e.automaticChangeStatus}function bt(e,t){return e.highlightedBlock===t}function pt(e,t){return!!e.blocks.controlledInnerBlocks[t]}const mt=Object(_.a)((e,t)=>{if(!t.length)return null;const n=W(e);if(t.includes(S(e,n)))return n;const o=oe(e),r=Y(e,n||o[0],t);return r?Object(l.last)(r):null},(e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]);function ft(e,t,n){const{lastBlockInserted:o}=e;return o.clientId===t&&o.source===n}var ht=n("gdqT"),gt=n("l3Sj"),Ot=n("qRz9"),vt=n("NMb1"),jt=n.n(vt);const kt=e=>t=>{let{dispatch:n}=t;n({type:"RESET_BLOCKS",blocks:e}),n(_t(e))},_t=e=>t=>{let{select:n,dispatch:o}=t;const r=n.getTemplate(),c=n.getTemplateLock(),l=!r||"all"!==c||Object(i.doBlocksMatchTemplate)(e,r);if(l!==n.isValidTemplate())return o.setTemplateValidity(l),l};function yt(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function Et(e){return jt()('wp.data.dispatch( "core/block-editor" ).receiveBlocks',{since:"5.9",alternative:"resetBlocks or insertBlocks"}),{type:"RECEIVE_BLOCKS",blocks:e}}function Ct(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:Object(l.castArray)(e),attributes:t,uniqueByBlock:n}}function St(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function wt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}const It=e=>t=>{let{select:n,dispatch:o}=t;const r=n.getPreviousBlockClientId(e);r&&o.selectBlock(r,-1)},Bt=e=>t=>{let{select:n,dispatch:o}=t;const r=n.getNextBlockClientId(e);r&&o.selectBlock(r)};function xt(){return{type:"START_MULTI_SELECT"}}function Tt(){return{type:"STOP_MULTI_SELECT"}}const Pt=(e,t)=>n=>{let{select:o,dispatch:r}=n;if(o.getBlockRootClientId(e)!==o.getBlockRootClientId(t))return;r({type:"MULTI_SELECT",start:e,end:t});const c=o.getSelectedBlockCount();Object(ht.speak)(Object(gt.sprintf)(Object(gt._n)("%s block selected.","%s blocks selected.",c),c),"assertive")};function Rt(){return{type:"CLEAR_SELECTED_BLOCK"}}function Nt(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function Lt(e,t){var n,o;const r=null!==(n=null==t||null===(o=t.__experimentalPreferredStyleVariations)||void 0===o?void 0:o.value)&&void 0!==n?n:{};return e.map(e=>{var t;const n=e.name;if(!Object(i.hasBlockSupport)(n,"defaultStylePicker",!0))return e;if(!r[n])return e;const o=null===(t=e.attributes)||void 0===t?void 0:t.className;if(null!=o&&o.includes("is-style-"))return e;const{attributes:c={}}=e,l=r[n];return{...e,attributes:{...c,className:`${o||""} is-style-${l}`.trim()}}})}const Mt=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4?arguments[4]:void 0;return c=>{let{select:i,dispatch:a}=c;e=Object(l.castArray)(e),t=Lt(Object(l.castArray)(t),i.getSettings());const s=i.getBlockRootClientId(Object(l.first)(e));for(let e=0;e<t.length;e++){const n=t[e];if(!i.canInsertBlockType(n.name,s))return}a({type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:o,meta:r}),a(e=>{let{select:t,dispatch:n}=e;if(t.getBlockCount()>0)return;const{__unstableHasCustomAppender:o}=t.getSettings();o||n.insertDefaultBlock()})}};function At(e,t){return Mt(e,t)}const Dt=e=>(t,n)=>o=>{let{select:r,dispatch:c}=o;r.canMoveBlocks(t,n)&&c({type:e,clientIds:Object(l.castArray)(t),rootClientId:n})},Ft=Dt("MOVE_BLOCKS_DOWN"),zt=Dt("MOVE_BLOCKS_UP"),Ht=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3?arguments[3]:void 0;return r=>{let{select:c,dispatch:l}=r;if(c.canMoveBlocks(e,t)){if(t!==n){if(!c.canRemoveBlocks(e,t))return;if(!c.canInsertBlocks(e,n))return}l({type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:o})}}};function Vt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3?arguments[3]:void 0;return Ht([e],t,n,o)}function Gt(e,t,n,o,r){return Ut([e],t,n,o,0,r)}const Ut=function(e,t,n){let o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,c=arguments.length>5?arguments[5]:void 0;return i=>{let{select:a,dispatch:s}=i;Object(l.isObject)(r)&&(c=r,r=0,jt()("meta argument in wp.data.dispatch('core/block-editor')",{since:"10.1",plugin:"Gutenberg",hint:"The meta argument is now the 6th argument of the function"})),e=Lt(Object(l.castArray)(e),a.getSettings());const u=[];for(const t of e){a.canInsertBlockType(t.name,n)&&u.push(t)}u.length&&s({type:"INSERT_BLOCKS",blocks:u,index:t,rootClientId:n,time:Date.now(),updateSelection:o,initialPosition:o?r:null,meta:c})}};function Wt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{__unstableWithInserter:o}=n;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:o}}function qt(){return{type:"HIDE_INSERTION_POINT"}}function Kt(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}const $t=()=>e=>{let{select:t,dispatch:n}=e;n({type:"SYNCHRONIZE_TEMPLATE"});const o=t.getBlocks(),r=t.getTemplate(),c=Object(i.synchronizeBlocksWithTemplate)(o,r);n.resetBlocks(c)},Yt=(e,t)=>n=>{let{select:o,dispatch:r}=n;const c=[e,t];r({type:"MERGE_BLOCKS",blocks:c});const[a,s]=c,u=o.getBlock(a),d=Object(i.getBlockType)(u.name);if(d&&!d.merge)return void r.selectBlock(u.clientId);const b=o.getBlock(s),p=Object(i.getBlockType)(b.name),{clientId:m,attributeKey:f,offset:h}=o.getSelectionStart(),g=(m===a?d:p).attributes[f],O=(m===a||m===s)&&void 0!==f&&void 0!==h&&!!g;g||("number"==typeof f?window.console.error("RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was "+typeof f):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));const v=Object(i.cloneBlock)(u),j=Object(i.cloneBlock)(b);if(O){const e=m===a?v:j,t=e.attributes[f],{multiline:n,__unstableMultilineWrapperTags:o,__unstablePreserveWhiteSpace:r}=g,c=Object(Ot.insert)(Object(Ot.create)({html:t,multilineTag:n,multilineWrapperTags:o,preserveWhiteSpace:r}),"†",h,h);e.attributes[f]=Object(Ot.toHTMLString)({value:c,multilineTag:n,preserveWhiteSpace:r})}const k=u.name===b.name?[j]:Object(i.switchToBlockType)(j,u.name);if(!k||!k.length)return;const _=d.merge(v.attributes,k[0].attributes);if(O){const e=Object(l.findKey)(_,e=>"string"==typeof e&&-1!==e.indexOf("†")),t=_[e],{multiline:n,__unstableMultilineWrapperTags:o,__unstablePreserveWhiteSpace:c}=d.attributes[e],i=Object(Ot.create)({html:t,multilineTag:n,multilineWrapperTags:o,preserveWhiteSpace:c}),a=i.text.indexOf("†"),s=Object(Ot.remove)(i,a,a+1),b=Object(Ot.toHTMLString)({value:s,multilineTag:n,preserveWhiteSpace:c});_[e]=b,r.selectionChange(u.clientId,e,a,a)}r.replaceBlocks([u.clientId,b.clientId],[{...u,attributes:{...u.attributes,..._}},...k.slice(1)],0)},Xt=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return n=>{let{select:o,dispatch:r}=n;if(!e||!e.length)return;e=Object(l.castArray)(e);const c=o.getBlockRootClientId(e[0]);o.canRemoveBlocks(e,c)&&(t&&r.selectPreviousBlock(e[0]),r({type:"REMOVE_BLOCKS",clientIds:e}),r(e=>{let{select:t,dispatch:n}=e;if(t.getBlockCount()>0)return;const{__unstableHasCustomAppender:o}=t.getSettings();o||n.insertDefaultBlock()}))}};function Zt(e,t){return Xt([e],t)}function Qt(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,initialPosition:n?o:null,time:Date.now()}}function Jt(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function en(){return{type:"START_TYPING"}}function tn(){return{type:"STOP_TYPING"}}function nn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function on(){return{type:"STOP_DRAGGING_BLOCKS"}}function rn(){return{type:"ENTER_FORMATTED_TEXT"}}function cn(){return{type:"EXIT_FORMATTED_TEXT"}}function ln(e,t,n,o){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:o}}function an(e,t,n){const o=Object(i.getDefaultBlockName)();if(!o)return;return Gt(Object(i.createBlock)(o,e),n,t)}function sn(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function un(e){return{type:"UPDATE_SETTINGS",settings:e}}function dn(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function bn(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function pn(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}const mn=()=>e=>{let{dispatch:t}=e;t({type:"MARK_AUTOMATIC_CHANGE"});const{requestIdleCallback:n=(e=>setTimeout(e,100))}=window;n(()=>{t({type:"MARK_AUTOMATIC_CHANGE_FINAL"})})},fn=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return t=>{let{dispatch:n}=t;n({type:"SET_NAVIGATION_MODE",isNavigationMode:e}),e?Object(ht.speak)(Object(gt.__)("You are currently in navigation mode. Navigate blocks using the Tab key and Arrow keys. Use Left and Right Arrow keys to move between nesting levels. To exit navigation mode and edit the selected block, press Enter.")):Object(ht.speak)(Object(gt.__)("You are currently in edit mode. To return to the navigation mode, press Escape."))}},hn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t=>{let{dispatch:n}=t;n({type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e}),e&&Object(ht.speak)(Object(gt.__)("Use the Tab key and Arrow keys to choose new block location. Use Left and Right Arrow keys to move between nesting levels. Once location is selected press Enter or Space to move the block."))}},gn=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return n=>{let{select:o,dispatch:r}=n;if(!e||!e.length)return;const c=o.getBlocksByClientId(e);if(Object(l.some)(c,e=>!e))return;if(c.map(e=>e.name).some(e=>!Object(i.hasBlockSupport)(e,"multiple",!0)))return;const a=o.getBlockRootClientId(e[0]),s=o.getBlockIndex(Object(l.last)(Object(l.castArray)(e)),a),u=c.map(e=>Object(i.__experimentalCloneSanitizedBlock)(e));return r.insertBlocks(u,s+1,a,t),u.length>1&&t&&r.multiSelect(Object(l.first)(u).clientId,Object(l.last)(u).clientId),u.map(e=>e.clientId)}},On=e=>t=>{let{select:n,dispatch:o}=t;if(!e)return;const r=n.getBlockRootClientId(e);if(n.getTemplateLock(r))return;const c=n.getBlockIndex(e,r);return o.insertDefaultBlock({},r,c)},vn=e=>t=>{let{select:n,dispatch:o}=t;if(!e)return;const r=n.getBlockRootClientId(e);if(n.getTemplateLock(r))return;const c=n.getBlockIndex(e,r);return o.insertDefaultBlock({},r,c+1)};function jn(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}const kn=e=>async t=>{let{dispatch:n}=t;n(jn(e,!0)),await new Promise(e=>setTimeout(e,150)),n(jn(e,!1))};function _n(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}var yn=n("AHN3");const En={reducer:k,selectors:o,actions:r,__experimentalUseThunks:!0},Cn=Object(c.createReduxStore)(yn.a,{...En,persist:["preferences"]});Object(c.registerStore)(yn.a,{...En,persist:["preferences"]})},Bo0k:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var o=n("GRId"),r=n("tI+e"),c=n("l3Sj");const l=[{name:Object(c.__)("Regular"),value:"normal"},{name:Object(c.__)("Italic"),value:"italic"}],i=[{name:Object(c.__)("Thin"),value:"100"},{name:Object(c.__)("Extra Light"),value:"200"},{name:Object(c.__)("Light"),value:"300"},{name:Object(c.__)("Regular"),value:"400"},{name:Object(c.__)("Medium"),value:"500"},{name:Object(c.__)("Semi Bold"),value:"600"},{name:Object(c.__)("Bold"),value:"700"},{name:Object(c.__)("Extra Bold"),value:"800"},{name:Object(c.__)("Black"),value:"900"}],a=(e,t)=>e?t?Object(c.__)("Appearance"):Object(c.__)("Font style"):Object(c.__)("Font weight");function s(e){const{onChange:t,hasFontStyles:n=!0,hasFontWeights:s=!0,value:{fontStyle:u,fontWeight:d}}=e,b=n||s,p=a(n,s),m={key:"default",name:Object(c.__)("Default"),style:{fontStyle:void 0,fontWeight:void 0}},f=Object(o.useMemo)(()=>n&&s?(()=>{const e=[m];return l.forEach(t=>{let{name:n,value:o}=t;i.forEach(t=>{let{name:r,value:l}=t;const i="normal"===o?r:Object(c.sprintf)(Object(c.__)("%1$s %2$s"),r,n);e.push({key:`${o}-${l}`,name:i,style:{fontStyle:o,fontWeight:l}})})}),e})():n?(()=>{const e=[m];return l.forEach(t=>{let{name:n,value:o}=t;e.push({key:o,name:n,style:{fontStyle:o,fontWeight:void 0}})}),e})():(()=>{const e=[m];return i.forEach(t=>{let{name:n,value:o}=t;e.push({key:o,name:n,style:{fontStyle:void 0,fontWeight:o}})}),e})(),[e.options]),h=f.find(e=>e.style.fontStyle===u&&e.style.fontWeight===d)||f[0];return b&&Object(o.createElement)(r.CustomSelectControl,{className:"components-font-appearance-control",label:p,describedBy:h?n?s?Object(c.sprintf)(Object(c.__)("Currently selected font appearance: %s"),h.name):Object(c.sprintf)(Object(c.__)("Currently selected font style: %s"),h.name):Object(c.sprintf)(Object(c.__)("Currently selected font weight: %s"),h.name):Object(c.__)("No selected font appearance"),options:f,value:h,onChange:e=>{let{selectedItem:n}=e;return t(n.style)}})}},Bpkj:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));t.a=c},Btt3:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("YLtl");const r=(e,t)=>{if(!t||!e)return;const n=t.filter(t=>{let{attributes:n}=t;return!(!n||!Object.keys(n).length)&&Object(o.isMatch)(e,n)});return 1===n.length?n[0]:void 0}},CNgt:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},l=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(n[o[r]]=e[o[r]])}return n};t.__esModule=!0;var i=n("cDcd"),a=n("17x9"),s=n("GemG"),u=n("Rk8H"),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&&t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&&t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t}return r(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.maxRows,o=t.async;"number"==typeof n&&this.updateLineHeight(),"number"==typeof n||o?setTimeout((function(){return e.textarea&&s(e.textarea)})):this.textarea&&s(this.textarea),this.textarea&&this.textarea.addEventListener("autosize:resized",this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener("autosize:resized",this.onResize),s.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props,n=(t.onResize,t.maxRows),o=(t.onChange,t.style),r=(t.innerRef,t.children),a=l(t,["onResize","maxRows","onChange","style","innerRef","children"]),s=this.state.lineHeight,u=n&&s?s*n:null;return i.createElement("textarea",c({},a,{onChange:this.onChange,style:u?c({},o,{maxHeight:u}):o,ref:function(t){e.textarea=t,"function"==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&&(e.props.innerRef.current=t)}}),r)},t.prototype.componentDidUpdate=function(){this.textarea&&s.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:a.number,maxRows:a.number,onResize:a.func,innerRef:a.any,async:a.bool},t}(i.Component);t.TextareaAutosize=i.forwardRef((function(e,t){return i.createElement(d,c({},e,{innerRef:t}))}))},Civd:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));t.a=c},Cn0l:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return d})),n.d(t,"b",(function(){return b})),n.d(t,"d",(function(){return p})),n.d(t,"c",(function(){return m}));var o=n("YLtl"),r=n("GRId"),c=n("1ZqX"),l=n("ur0x"),i=n("v5LD"),a=n("BhPs");const s=[];function u(e){if(e)return`has-${e}-gradient-background`}function d(e,t){const n=Object(o.find)(e,["slug",t]);return n&&n.gradient}function b(e,t){return Object(o.find)(e,["gradient",t])}function p(e,t){const n=b(e,t);return n&&n.slug}function m(){let{gradientAttribute:e="gradient",customGradientAttribute:t="customGradient"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{clientId:n}=Object(l.c)(),o=Object(i.a)("color.gradients")||s,{gradient:b,customGradient:m}=Object(c.useSelect)(o=>{const{getBlockAttributes:r}=o(a.a),c=r(n)||{};return{customGradient:c[t],gradient:c[e]}},[n,e,t]),{updateBlockAttributes:f}=Object(c.useDispatch)(a.a),h=Object(r.useCallback)(r=>{const c=p(o,r);f(n,c?{[e]:c,[t]:void 0}:{[e]:void 0,[t]:r})},[o,n,f]),g=u(b);let O;return O=b?d(o,b):m,{gradientClass:g,gradientValue:O,setGradient:h}}},Crq9:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"}));t.a=c},"DmX/":function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M20 9h-7.2V4h-1.6v5H4v6h7.2v5h1.6v-5H20z"}));t.a=c},ERVc:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n("1ZqX"),r=n("HSyU"),c=n("BhPs");function l(e){return Object(o.useSelect)(t=>{const{getBlockName:n,getBlockAttributes:o}=t(c.a),l=o(e);if(null==l||!l.className)return;const i=Object(r.getBlockType)(n(e));return(null==i?void 0:i.apiVersion)>1?l.className:void 0},[e])}},EpZT:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M7 9v6h10V9H7zM5 19.8h14v-1.5H5v1.5zM5 4.3v1.5h14V4.3H5z"}));t.a=c},Fmc1:function(e,t,n){"use strict";var o=n("wx14"),r=n("GRId"),c=n("tI+e"),l=n("K9lf"),i=n("l3Sj"),a=n("REKd"),s=n("j6zP");function u(e){let{isDraggable:t,pattern:n,onClick:i,composite:d}=e;const{blocks:b,viewportWidth:p}=n,m="block-editor-block-patterns-list__item-description-"+Object(l.useInstanceId)(u);return Object(r.createElement)(s.a,{isEnabled:t,blocks:b},e=>{let{draggable:t,onDragStart:l,onDragEnd:s}=e;return Object(r.createElement)("div",{className:"block-editor-block-patterns-list__list-item","aria-label":n.title,"aria-describedby":n.description?m:void 0,draggable:t,onDragStart:l,onDragEnd:s},Object(r.createElement)(c.__unstableCompositeItem,Object(o.a)({role:"option",as:"div"},d,{className:"block-editor-block-patterns-list__item",onClick:()=>i(n,b)}),Object(r.createElement)(a.a,{blocks:b,viewportWidth:p}),Object(r.createElement)("div",{className:"block-editor-block-patterns-list__item-title"},n.title),!!n.description&&Object(r.createElement)(c.VisuallyHidden,{id:m},n.description)))})}function d(){return Object(r.createElement)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}t.a=function(e){let{isDraggable:t,blockPatterns:n,shownPatterns:l,onClickPattern:a,orientation:s,label:b=Object(i.__)("Block Patterns")}=e;const p=Object(c.__unstableUseCompositeState)({orientation:s});return Object(r.createElement)(c.__unstableComposite,Object(o.a)({},p,{role:"listbox",className:"block-editor-block-patterns-list","aria-label":b}),n.map(e=>l.includes(e)?Object(r.createElement)(u,{key:e.name,pattern:e,onClick:a,isDraggable:t,composite:p}):Object(r.createElement)(d,{key:e.name})))}},FnAh:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"}));t.a=c},G4zt:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n("9Do8"),r=n.n(o),c=n("GRId"),l=n("1ZqX"),i=n("1CF3"),a=n("BhPs");function s(e){const t=Object(c.useRef)(),n=Object(l.useSelect)(t=>{const{isBlockSelected:n,getBlockSelectionEnd:o}=t(a.a);return n(e)||o()===e},[e]);return Object(c.useEffect)(()=>{if(!n)return;const e=t.current;if(!e)return;if(e.contains(e.ownerDocument.activeElement))return;const o=Object(i.getScrollContainer)(e)||e.ownerDocument.defaultView;o&&r()(e,o,{onlyScrollIfNeeded:!0})},[n]),t}},GKUk:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n("wx14"),r=n("GRId"),c=n("YLtl"),l=n("tI+e"),i=n("l3Sj"),a=n("v5LD");function s(e){let{value:t="",onChange:n,fontFamilies:s,...u}=e;const d=Object(a.a)("typography.fontFamilies");if(s||(s=d),Object(c.isEmpty)(s))return null;const b=[{value:"",label:Object(i.__)("Default")},...s.map(e=>{let{fontFamily:t,name:n}=e;return{value:t,label:n||t}})];return Object(r.createElement)(l.SelectControl,Object(o.a)({label:Object(i.__)("Font family"),options:b,value:t,onChange:n,labelPosition:"top"},u))}},GOly:function(e,t,n){"use strict";var o=n("GRId");const r=Object(o.createContext)();t.a=r},GRId:function(e,t){e.exports=window.wp.element},GemG:function(e,t,n){var o,r,c; +this.wp=this.wp||{},this.wp.blockEditor=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="tr0p")}({"+0ps":function(e,t,n){"use strict";n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return p}));var o=n("GRId"),r=n("HSyU"),c=n("1CF3"),l=n("1ZqX"),i=n("l3Sj"),a=n("onLe"),s=n("K9lf"),u=n("xTGt");var d=n("BhPs");function b(){const{getBlockName:e}=Object(l.useSelect)(d.a),{getBlockType:t}=Object(l.useSelect)(r.store),{createSuccessNotice:n}=Object(l.useDispatch)(a.store);return Object(o.useCallback)((o,r)=>{let c="";if(1===r.length){var l;const n=r[0],a=null===(l=t(e(n)))||void 0===l?void 0:l.title;c="copy"===o?Object(i.sprintf)(Object(i.__)('Copied "%s" to clipboard.'),a):Object(i.sprintf)(Object(i.__)('Moved "%s" to clipboard.'),a)}else c="copy"===o?Object(i.sprintf)(Object(i._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",r.length),r.length):Object(i.sprintf)(Object(i._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",r.length),r.length);n(c,{type:"snackbar"})},[])}function p(){const{getBlocksByClientId:e,getSelectedBlockClientIds:t,hasMultiSelection:n,getSettings:o}=Object(l.useSelect)(d.a),{flashBlock:i,removeBlocks:a,replaceBlocks:p}=Object(l.useDispatch)(d.a),m=b();return Object(s.useRefEffect)(l=>{function s(s){const d=t();if(0===d.length)return;if(!n()){const{target:e}=s,{ownerDocument:t}=e;if("copy"===s.type||"cut"===s.type?Object(c.documentHasUncollapsedSelection)(t):Object(c.documentHasSelection)(t))return}if(!l.contains(s.target.ownerDocument.activeElement))return;const b=s.defaultPrevented;if(s.preventDefault(),"copy"===s.type||"cut"===s.type){1===d.length&&i(d[0]),m(s.type,d);const t=e(d),n=Object(r.serialize)(t);s.clipboardData.setData("text/plain",n),s.clipboardData.setData("text/html",n)}if("cut"===s.type)a(d);else if("paste"===s.type){if(b)return;const{__experimentalCanUserUseUnfilteredHTML:e}=o(),{plainText:t,html:n}=function(e){let{clipboardData:t}=e,n="",o="";try{n=t.getData("text/plain"),o=t.getData("text/html")}catch(e){try{o=t.getData("Text")}catch(e){return}}const r=Object(c.getFilesFromDataTransfer)(t).filter(e=>{let{type:t}=e;return/^image\/(?:jpe?g|png|gif)$/.test(t)});return r.length&&!o&&(o=r.map(e=>`<img src="${Object(u.createBlobURL)(e)}">`).join(""),n=""),{html:o,plainText:n}}(s),l=Object(r.pasteHandler)({HTML:n,plainText:t,mode:"BLOCKS",canUserUseUnfilteredHTML:e});p(d,l,l.length-1,-1)}}return l.ownerDocument.addEventListener("copy",s),l.ownerDocument.addEventListener("cut",s),l.ownerDocument.addEventListener("paste",s),()=>{l.ownerDocument.removeEventListener("copy",s),l.ownerDocument.removeEventListener("cut",s),l.ownerDocument.removeEventListener("paste",s)}},[])}t.a=function(e){let{children:t}=e;return Object(o.createElement)("div",{ref:p()},t)}},"+6d5":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("TSYQ"),r=n.n(o),c=n("1ZqX"),l=n("BhPs");function i(e){return Object(c.useSelect)(t=>{const{hasBlockMovingClientId:n,canInsertBlockType:o,getBlockName:c,getBlockRootClientId:i,isBlockSelected:a}=t(l.a);if(!a(e))return;const s=n();return s?r()("is-block-moving-mode",{"can-insert-moving-block":o(c(s),i(e))}):void 0},[e])}},"+DUQ":function(e,t,n){"use strict";n.d(t,"animated",(function(){return y}));var o=n("kmrn");n.o(o,"useSpring")&&n.d(t,"useSpring",(function(){return o.useSpring}));var r=n("faye"),c=n("nEW0"),l=n("dfZa");function i(e,t){if(null==e)return{};var n,o,r={},c=Object.keys(e);for(o=0;o<c.length;o++)n=c[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}const a=["style","children","scrollTop","scrollLeft"],s=/^--/;function u(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||s.test(e)||b.hasOwnProperty(e)&&b[e]?(""+t).trim():t+"px"}const d={};let b={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const p=["Webkit","Ms","Moz","O"];b=Object.keys(b).reduce((e,t)=>(p.forEach(n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t]),e),b);const m=["x","y","z"],f=/^(matrix|translate|scale|rotate|skew)/,h=/^(translate)/,g=/^(rotate|skew)/,O=(e,t)=>c.s.num(e)&&0!==e?e+t:e,v=(e,t)=>c.s.arr(e)?e.every(e=>v(e,t)):c.s.num(e)?e===t:parseFloat(e)===t;class j extends l.a{constructor(e){let{x:t,y:n,z:o}=e,r=i(e,m);const l=[],a=[];(t||n||o)&&(l.push([t||0,n||0,o||0]),a.push(e=>[`translate3d(${e.map(e=>O(e,"px")).join(",")})`,v(e,0)])),Object(c.l)(r,(e,t)=>{if("transform"===t)l.push([e||""]),a.push(e=>[e,""===e]);else if(f.test(t)){if(delete r[t],c.s.und(e))return;const n=h.test(t)?"px":g.test(t)?"deg":"";l.push(Object(c.y)(e)),a.push("rotate3d"===t?([e,t,o,r])=>[`rotate3d(${e},${t},${o},${O(r,n)})`,v(r,0)]:e=>[`${t}(${e.map(e=>O(e,n)).join(",")})`,v(e,t.startsWith("scale")?1:0)])}}),l.length&&(r.transform=new k(l,a)),super(r)}}class k extends c.a{constructor(e,t){super(),this._value=null,this.inputs=e,this.transforms=t}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Object(c.k)(this.inputs,(n,o)=>{const r=Object(c.q)(n[0]),[l,i]=this.transforms[o](c.s.arr(r)?r:n.map(c.q));e+=" "+l,t=t&&i}),t?"none":e}observerAdded(e){1==e&&Object(c.k)(this.inputs,e=>Object(c.k)(e,e=>Object(c.r)(e)&&Object(c.c)(e,this)))}observerRemoved(e){0==e&&Object(c.k)(this.inputs,e=>Object(c.k)(e,e=>Object(c.r)(e)&&Object(c.x)(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),Object(c.d)(this,e)}}const _=["scrollTop","scrollLeft"];o.Globals.assign({batchedUpdates:r.unstable_batchedUpdates,createStringInterpolator:c.g,colors:c.e});const y=Object(l.d)(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,o=t,{style:r,children:c,scrollTop:l,scrollLeft:b}=o,p=i(o,a),m=Object.values(p),f=Object.keys(p).map(t=>n||e.hasAttribute(t)?t:d[t]||(d[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));void 0!==c&&(e.textContent=c);for(let t in r)if(r.hasOwnProperty(t)){const n=u(t,r[t]);s.test(t)?e.style.setProperty(t,n):e.style[t]=n}f.forEach((t,n)=>{e.setAttribute(t,m[n])}),void 0!==l&&(e.scrollTop=l),void 0!==b&&(e.scrollLeft=b)},createAnimatedStyle:e=>new j(e),getComponentProps:e=>i(e,_)}).animated},"+G0a":function(e,t,n){"use strict";var o=n("HSyU"),r=n("1ZqX"),c=n("GRId"),l=n("BhPs");t.a=(e,t)=>{const{categories:n,collections:i,items:a}=Object(r.useSelect)(t=>{const{getInserterItems:n}=t(l.a),{getCategories:r,getCollections:c}=t(o.store);return{categories:r(),collections:c(),items:n(e)}},[e]);return[a,n,i,Object(c.useCallback)((e,n)=>{let{name:r,initialAttributes:c,innerBlocks:l}=e;const i=Object(o.createBlock)(r,c,Object(o.createBlocksFromInnerBlocksTemplate)(l));t(i,void 0,n)},[t])]}},"+WrK":function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));t.a=c},"+gtr":function(e,t,n){"use strict";n.d(t,"a",(function(){return V}));var o=n("wx14"),r=n("GRId"),c=n("TSYQ"),l=n.n(c),i=n("1ZqX"),a=n("K9lf"),s=n("HSyU"),u=n("tI+e"),d=n("JygI"),b=n("l3Sj"),p=n("wC17"),m=n("7SSY"),f=n("YLtl");const{clearTimeout:h,setTimeout:g}=window,O=200;function v(e){let{ref:t,isFocused:n,debounceTimeout:o=O,onChange:c=f.noop}=e;const[l,i]=Object(r.useState)(!1),a=Object(r.useRef)(),s=e=>{null!=t&&t.current&&i(e),c(e)},u=()=>{const e=(null==t?void 0:t.current)&&t.current.matches(":hover");return!n&&!e},d=()=>{const e=a.current;e&&h&&h(e)};return Object(r.useEffect)(()=>()=>d(),[]),{showMovers:l,debouncedShowMovers:e=>{e&&e.stopPropagation(),d(),l||s(!0)},debouncedHideMovers:e=>{e&&e.stopPropagation(),d(),a.current=g(()=>{u()&&s(!1)},o)}}}function j(e){let{ref:t,debounceTimeout:n=O,onChange:o=f.noop}=e;const[c,l]=Object(r.useState)(!1),{showMovers:i,debouncedShowMovers:a,debouncedHideMovers:s}=v({ref:t,debounceTimeout:n,isFocused:c,onChange:o}),u=Object(r.useRef)(!1),d=()=>(null==t?void 0:t.current)&&t.current.contains(t.current.ownerDocument.activeElement);return Object(r.useEffect)(()=>{const e=t.current,n=()=>{d()&&(l(!0),a())},o=()=>{d()||(l(!1),s())};return e&&!u.current&&(e.addEventListener("focus",n,!0),e.addEventListener("blur",o,!0),u.current=!0),()=>{e&&(e.removeEventListener("focus",n),e.removeEventListener("blur",o))}},[t,u,l,a,s]),{showMovers:i,gestures:{onMouseMove:a,onMouseLeave:s}}}var k=n("BhPs");function _(){const{selectBlock:e,toggleBlockHighlight:t}=Object(i.useDispatch)(k.a),{firstParentClientId:n,shouldHide:c,hasReducedUI:l}=Object(i.useSelect)(e=>{const{getBlockName:t,getBlockParents:n,getSelectedBlockClientId:o,getSettings:r}=e(k.a),{hasBlockSupport:c}=e(s.store),l=n(o()),i=l[l.length-1],a=t(i),u=Object(s.getBlockType)(a),d=r();return{firstParentClientId:i,shouldHide:!c(u,"__experimentalParentSelector",!0),hasReducedUI:d.hasReducedUI}},[]),a=Object(p.a)(n),d=Object(r.useRef)(),{gestures:f}=j({ref:d,onChange(e){e&&l||t(n,e)}});return c||void 0===n?null:Object(r.createElement)("div",Object(o.a)({className:"block-editor-block-parent-selector",key:n,ref:d},f),Object(r.createElement)(u.ToolbarButton,{className:"block-editor-block-parent-selector__button",onClick:()=>e(n),label:Object(b.sprintf)(Object(b.__)("Select %s"),a.title),showTooltip:!0,icon:Object(r.createElement)(m.a,{icon:a.icon})}))}var y=n("wzfx"),E=n("f8JO"),C=n("REKd");function S(e){let{blocks:t}=e;return Object(r.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},Object(r.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},Object(r.createElement)(u.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right",focusOnMount:!1},Object(r.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(r.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(b.__)("Preview")),Object(r.createElement)(C.a,{viewportWidth:500,blocks:t})))))}var w=e=>{let{className:t,possibleBlockTransformations:n,onSelect:o,blocks:c}=e;const[l,i]=Object(r.useState)();return Object(r.createElement)(u.MenuGroup,{label:Object(b.__)("Transform to"),className:t},l&&Object(r.createElement)(S,{blocks:Object(s.switchToBlockType)(c,l)}),n.map(e=>{const{name:t,icon:n,title:c,isDisabled:l}=e;return Object(r.createElement)(u.MenuItem,{key:t,className:Object(s.getBlockMenuDefaultClassName)(t),onClick:e=>{e.preventDefault(),o(t)},disabled:l,onMouseLeave:()=>i(null),onMouseEnter:()=>i(t)},Object(r.createElement)(m.a,{icon:n,showColors:!0}),c)}))},I=n("7NR9");function B(e){let{hoveredBlock:t,onSwitch:n}=e;const{name:o,clientId:c}=t,[l,a]=Object(r.useState)(),d=Object(i.useSelect)(e=>e(s.store).getBlockType(o),[o]);return Object(r.createElement)(u.MenuGroup,{label:Object(b.__)("Styles"),className:"block-editor-block-switcher__styles__menugroup"},l&&Object(r.createElement)(S,{blocks:d&&d.example?Object(s.getBlockFromExample)(d.name,{attributes:{...d.example.attributes,className:l},innerBlocks:d.example.innerBlocks}):Object(s.cloneBlock)(t,{className:l})}),Object(r.createElement)(I.a,{clientId:c,onSwitch:n,onHoverClassName:a,itemRole:"menuitem"}))}var x=n("1iEr");const T=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set;const{clientId:o,name:r,innerBlocks:c=[]}=e;if(!n.has(o)){if(r===t)return e;for(const e of c){const o=T(e,t,n);if(o)return o}}},P=(e,t)=>{const n=((e,t)=>{const n=Object(s.__experimentalGetBlockAttributesNamesByRole)(e,"content");return null!=n&&n.length?n.reduce((e,n)=>(t[n]&&(e[n]=t[n]),e),{}):t})(t.name,t.attributes);e.attributes={...e.attributes,...n}};var R=(e,t)=>Object(r.useMemo)(()=>e.reduce((e,n)=>{const o=((e,t)=>{const n=t.map(e=>Object(s.cloneBlock)(e)),o=new Set;for(const t of e){let e=!1;for(const r of n){const n=T(r,t.name,o);if(n){e=!0,o.add(n.clientId),P(n,t);break}}if(!e)return}return n})(t,n.blocks);return o&&e.push({...n,transformedBlocks:o}),e},[]),[e,t]);function N(e){let{patterns:t,onSelect:n}=e;return Object(r.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},Object(r.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},Object(r.createElement)(u.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right"},Object(r.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(r.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(b.__)("Preview")),Object(r.createElement)(L,{patterns:t,onSelect:n})))))}function L(e){let{patterns:t,onSelect:n}=e;const c=Object(u.__unstableUseCompositeState)();return Object(r.createElement)(u.__unstableComposite,Object(o.a)({},c,{role:"listbox",className:"block-editor-block-switcher__preview-patterns-container","aria-label":Object(b.__)("Patterns list")}),t.map(e=>Object(r.createElement)(M,{key:e.name,pattern:e,onSelect:n,composite:c})))}function M(e){let{pattern:t,onSelect:n,composite:c}=e;const l="block-editor-block-switcher__preview-patterns-container",i=Object(a.useInstanceId)(M,l+"-list__item-description");return Object(r.createElement)("div",{className:l+"-list__list-item","aria-label":t.title,"aria-describedby":t.description?i:void 0},Object(r.createElement)(u.__unstableCompositeItem,Object(o.a)({role:"option",as:"div"},c,{className:l+"-list__item",onClick:()=>n(t.transformedBlocks)}),Object(r.createElement)(C.a,{blocks:t.transformedBlocks,viewportWidth:t.viewportWidth||500}),Object(r.createElement)("div",{className:l+"-list__item-title"},t.title)),!!t.description&&Object(r.createElement)(u.VisuallyHidden,{id:i},t.description))}var A=function(e){let{blocks:t,patterns:n,onSelect:o}=e;const[c,l]=Object(r.useState)(!1),i=R(n,t);return i.length?Object(r.createElement)(u.MenuGroup,{className:"block-editor-block-switcher__pattern__transforms__menugroup"},c&&Object(r.createElement)(N,{patterns:i,onSelect:o}),Object(r.createElement)(u.MenuItem,{onClick:e=>{e.preventDefault(),l(!c)},icon:x.a},Object(b.__)("Patterns"))):null};const D=e=>{let{clientIds:t,blocks:n}=e;const{replaceBlocks:o}=Object(i.useDispatch)(k.a),c=Object(p.a)(n[0].clientId),{possibleBlockTransformations:l,canRemove:a,hasBlockStyles:d,icon:h,blockTitle:g,patterns:O}=Object(i.useSelect)(e=>{var o;const{getBlockRootClientId:r,getBlockTransformItems:l,__experimentalGetPatternTransformItems:i}=e(k.a),{getBlockStyles:a,getBlockType:u}=e(s.store),{canRemoveBlocks:d}=e(k.a),b=r(Object(f.castArray)(t)[0]),[{name:p}]=n,m=1===n.length,h=m&&a(p);let g;if(m)g=null==c?void 0:c.icon;else{var O;g=1===Object(f.uniq)(n.map(e=>{let{name:t}=e;return t})).length?null===(O=u(p))||void 0===O?void 0:O.icon:y.a}return{possibleBlockTransformations:l(n,b),canRemove:d(t,b),hasBlockStyles:!(null==h||!h.length),icon:g,blockTitle:null===(o=u(p))||void 0===o?void 0:o.title,patterns:i(n,b)}},[t,n,null==c?void 0:c.icon]),v=1===n.length&&Object(s.isReusableBlock)(n[0]),j=1===n.length&&Object(s.isTemplatePart)(n[0]),_=!!l.length&&a,C=!(null==O||!O.length)&&a;if(!d&&!_)return Object(r.createElement)(u.ToolbarGroup,null,Object(r.createElement)(u.ToolbarButton,{disabled:!0,className:"block-editor-block-switcher__no-switcher-icon",title:g,icon:Object(r.createElement)(m.a,{icon:h,showColors:!0})}));const S=g,I=1===n.length?Object(b.sprintf)(Object(b.__)("%s: Change block type or style"),g):Object(b.sprintf)(Object(b._n)("Change type of %d block","Change type of %d blocks",n.length),n.length),x=d||_||C;return Object(r.createElement)(u.ToolbarGroup,null,Object(r.createElement)(u.ToolbarItem,null,e=>Object(r.createElement)(u.DropdownMenu,{className:"block-editor-block-switcher",label:S,popoverProps:{position:"bottom right",isAlternate:!0,className:"block-editor-block-switcher__popover"},icon:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(m.a,{icon:h,className:"block-editor-block-switcher__toggle",showColors:!0}),(v||j)&&Object(r.createElement)("span",{className:"block-editor-block-switcher__toggle-text"},Object(r.createElement)(E.a,{clientId:t}))),toggleProps:{describedBy:I,...e},menuProps:{orientation:"both"}},e=>{let{onClose:c}=e;return x&&Object(r.createElement)("div",{className:"block-editor-block-switcher__container"},C&&Object(r.createElement)(A,{blocks:n,patterns:O,onSelect:e=>{(e=>{o(t,e)})(e),c()}}),_&&Object(r.createElement)(w,{className:"block-editor-block-switcher__transforms__menugroup",possibleBlockTransformations:l,blocks:n,onSelect:e=>{(e=>{o(t,Object(s.switchToBlockType)(n,e))})(e),c()}}),d&&Object(r.createElement)(B,{hoveredBlock:n[0],onSwitch:c}))})))};var F=e=>{let{clientIds:t}=e;const n=Object(i.useSelect)(e=>e(k.a).getBlocksByClientId(t),[t]);return!n.length||n.some(e=>!e)?null:Object(r.createElement)(D,{clientIds:t,blocks:n})},z=n("fOYa"),H=n("U1WI");function V(e){let{hideDragHandle:t}=e;const{blockClientIds:n,blockClientId:c,blockType:b,hasFixedToolbar:p,hasReducedUI:m,isValid:f,isVisual:h}=Object(i.useSelect)(e=>{const{getBlockName:t,getBlockMode:n,getSelectedBlockClientIds:o,isBlockValid:r,getBlockRootClientId:c,getSettings:l}=e(k.a),i=o(),a=i[0],u=c(a),d=l();return{blockClientIds:i,blockClientId:a,blockType:a&&Object(s.getBlockType)(t(a)),hasFixedToolbar:d.hasFixedToolbar,hasReducedUI:d.hasReducedUI,rootClientId:u,isValid:i.every(e=>r(e)),isVisual:i.every(e=>"visual"===n(e))}},[]),{toggleBlockHighlight:g}=Object(i.useDispatch)(k.a),O=Object(r.useRef)(),{showMovers:v,gestures:y}=j({ref:O,onChange(e){e&&m||g(c,e)}}),E=Object(a.useViewportMatch)("medium","<")||p;if(b&&!Object(s.hasBlockSupport)(b,"__experimentalToolbar",!0))return null;const C=E||v;if(0===n.length)return null;const S=f&&h,w=n.length>1,I=l()("block-editor-block-toolbar",C&&"is-showing-movers");return Object(r.createElement)("div",{className:I},!w&&!E&&Object(r.createElement)(_,{clientIds:n}),Object(r.createElement)("div",Object(o.a)({ref:O},y),(S||w)&&Object(r.createElement)(u.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls"},Object(r.createElement)(F,{clientIds:n}),Object(r.createElement)(d.a,{clientIds:n,hideDragHandle:t||m}))),S&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(z.b.Slot,{group:"parent",className:"block-editor-block-toolbar__slot"}),Object(r.createElement)(z.b.Slot,{group:"block",className:"block-editor-block-toolbar__slot"}),Object(r.createElement)(z.b.Slot,{className:"block-editor-block-toolbar__slot"}),Object(r.createElement)(z.b.Slot,{group:"inline",className:"block-editor-block-toolbar__slot"}),Object(r.createElement)(z.b.Slot,{group:"other",className:"block-editor-block-toolbar__slot"})),Object(r.createElement)(H.a,{clientIds:n}))}},"//Lo":function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));t.a=c},"/Hvg":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n("GRId"),r=n("tI+e"),c=n("l3Sj"),l=n("Tqx9");var i=Object(o.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(l.Path,{d:"M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"}));var a=Object(o.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(l.Path,{d:"M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"}));var s=Object(o.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(l.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"}));const u=[{name:Object(c.__)("Uppercase"),value:"uppercase",icon:i},{name:Object(c.__)("Lowercase"),value:"lowercase",icon:a},{name:Object(c.__)("Capitalize"),value:"capitalize",icon:s}];function d(e){let{value:t,onChange:n}=e;return Object(o.createElement)("fieldset",{className:"block-editor-text-transform-control"},Object(o.createElement)("legend",null,Object(c.__)("Letter case")),Object(o.createElement)("div",{className:"block-editor-text-transform-control__buttons"},u.map(e=>Object(o.createElement)(r.Button,{key:e.value,icon:e.icon,isSmall:!0,isPressed:t===e.value,"aria-label":e.name,onClick:()=>n(t===e.value?void 0:e.value)}))))}},"/QNa":function(e,t,n){"use strict";var o=n("GRId"),r=n("1ZqX"),c=n("wx14"),l=n("K9lf"),i=n("BhPs"),a=n("AHN3");var s=Object(l.createHigherOrderComponent)(e=>Object(r.withRegistry)(t=>{let{useSubRegistry:n=!0,registry:l,...s}=t;if(!n)return Object(o.createElement)(e,Object(c.a)({registry:l},s));const[u,d]=Object(o.useState)(null);return Object(o.useEffect)(()=>{const e=Object(r.createRegistry)({},l);e.registerStore(a.a,i.b),d(e)},[l]),u?Object(o.createElement)(r.RegistryProvider,{value:u},Object(o.createElement)(e,Object(c.a)({registry:u},s))):null}),"withRegistryProvider"),u=n("JGYp"),d=n("cDhi");t.a=s((function(e){const{children:t,settings:n}=e,{updateSettings:c}=Object(r.useDispatch)(i.a);return Object(o.useEffect)(()=>{c(n)},[n]),Object(u.a)(e),Object(o.createElement)(d.b,null,t)}))},"/lNF":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("HSyU"),r=n("1ZqX"),c=n("1CF3"),l=n("BhPs");function i(e,t,n,r,c,l,i){return a=>{const{srcRootClientId:s,srcClientIds:u,type:d,blocks:b}=function(e){let t={srcRootClientId:null,srcClientIds:null,srcIndex:null,type:null,blocks:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("wp-blocks")))}catch(e){return t}return t}(a);if("inserter"===d){i();const n=b.map(e=>Object(o.cloneBlock)(e));l(n,t,e,!0,null)}if("block"===d){const o=n(u[0],s);if(s===e&&o===t)return;if(u.includes(e)||r(u).some(t=>t===e))return;const l=s===e,i=u.length;c(u,s,e,l&&o<t?t-i:t)}}}function a(e,t){const n=Object(r.useSelect)(e=>e(l.a).getSettings().mediaUpload,[]),{canInsertBlockType:a,getBlockIndex:s,getClientIdsOfDescendants:u}=Object(r.useSelect)(l.a),{insertBlocks:d,moveBlocksToPosition:b,updateBlockAttributes:p,clearSelectedBlock:m}=Object(r.useDispatch)(l.a),f=i(e,t,s,u,b,d,m),h=function(e,t,n,r,c,l){return i=>{if(!n)return;const a=Object(o.findTransform)(Object(o.getBlockTransforms)("from"),t=>"files"===t.type&&c(t.blockName,e)&&t.isMatch(i));if(a){const n=a.transform(i,r);l(n,t,e)}}}(e,t,n,p,a,d),g=function(e,t,n){return r=>{const c=Object(o.pasteHandler)({HTML:r,mode:"BLOCKS"});c.length&&n(c,t,e)}}(e,t,d);return e=>{const t=Object(c.getFilesFromDataTransfer)(e.dataTransfer),n=e.dataTransfer.getData("text/html");t.length?h(t):n?g(n):f(e)}}},"0E5u":function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return m}));var o=n("wx14"),r=n("GRId"),c=n("tI+e"),l=n("kWXm"),i=n("DmX/"),a=n("suLj"),s=n("bTSr"),u=n("l3Sj");const d={left:l.a,center:i.a,right:a.a,"space-between":s.a};var b=function(e){let{allowedControls:t=["left","center","right","space-between"],isCollapsed:n=!0,onChange:b,value:p,popoverProps:m,isToolbar:f}=e;const h=e=>{b(e===p?void 0:e)},g=p?d[p]:d.left,O=[{name:"left",icon:l.a,title:Object(u.__)("Justify items left"),isActive:"left"===p,onClick:()=>h("left")},{name:"center",icon:i.a,title:Object(u.__)("Justify items center"),isActive:"center"===p,onClick:()=>h("center")},{name:"right",icon:a.a,title:Object(u.__)("Justify items right"),isActive:"right"===p,onClick:()=>h("right")},{name:"space-between",icon:s.a,title:Object(u.__)("Space between items"),isActive:"space-between"===p,onClick:()=>h("space-between")}],v=f?c.ToolbarGroup:c.ToolbarDropdownMenu,j=f?{isCollapsed:n}:{};return Object(r.createElement)(v,Object(o.a)({icon:g,popoverProps:m,label:Object(u.__)("Change items justification"),controls:O.filter(e=>t.includes(e.name))},j))};function p(e){return Object(r.createElement)(b,Object(o.a)({},e,{isToolbar:!1}))}function m(e){return Object(r.createElement)(b,Object(o.a)({},e,{isToolbar:!0}))}},"14PQ":function(e,t,n){"use strict";n.d(t,"gc",(function(){return o.b})),n.d(t,"hc",(function(){return o.c})),n.d(t,"ic",(function(){return o.d})),n.d(t,"fc",(function(){return o.a})),n.d(t,"uc",(function(){return o.e})),n.d(t,"xb",(function(){return r.a})),n.d(t,"nc",(function(){return r.e})),n.d(t,"yb",(function(){return r.b})),n.d(t,"mc",(function(){return r.d})),n.d(t,"Rb",(function(){return r.c})),n.d(t,"jc",(function(){return c.b})),n.d(t,"kc",(function(){return c.c})),n.d(t,"lc",(function(){return c.d})),n.d(t,"I",(function(){return c.a})),n.d(t,"vc",(function(){return c.e})),n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return O})),n.d(t,"c",(function(){return x})),n.d(t,"d",(function(){return T.a})),n.d(t,"e",(function(){return T.b})),n.d(t,"nb",(function(){return N})),n.d(t,"lb",(function(){return M})),n.d(t,"f",(function(){return z})),n.d(t,"mb",(function(){return G})),n.d(t,"h",(function(){return U.a})),n.d(t,"i",(function(){return W.b})),n.d(t,"m",(function(){return W.a})),n.d(t,"g",(function(){return Y})),n.d(t,"j",(function(){return X.a})),n.d(t,"pc",(function(){return k.c})),n.d(t,"n",(function(){return C.a})),n.d(t,"r",(function(){return Ie})),n.d(t,"pb",(function(){return xe})),n.d(t,"ob",(function(){return We})),n.d(t,"qb",(function(){return $e})),n.d(t,"A",(function(){return nt})),n.d(t,"z",(function(){return tt})),n.d(t,"rb",(function(){return ot.a})),n.d(t,"sb",(function(){return rt.a})),n.d(t,"C",(function(){return ct.a})),n.d(t,"B",(function(){return ct.b})),n.d(t,"D",(function(){return at})),n.d(t,"E",(function(){return ut})),n.d(t,"F",(function(){return dt.a})),n.d(t,"ub",(function(){return bt.a})),n.d(t,"vb",(function(){return pt.a})),n.d(t,"wb",(function(){return mt.a})),n.d(t,"Eb",(function(){return ft.a})),n.d(t,"Ob",(function(){return ht.a})),n.d(t,"Pb",(function(){return gt.a})),n.d(t,"tb",(function(){return st.a})),n.d(t,"Lb",(function(){return Ot.a})),n.d(t,"Ab",(function(){return on})),n.d(t,"zb",(function(){return qt})),n.d(t,"Bb",(function(){return cn})),n.d(t,"J",(function(){return ln.a})),n.d(t,"rc",(function(){return ln.b})),n.d(t,"M",(function(){return an.b})),n.d(t,"L",(function(){return an.a})),n.d(t,"O",(function(){return sn.b})),n.d(t,"N",(function(){return sn.a})),n.d(t,"Gb",(function(){return Hn})),n.d(t,"Hb",(function(){return xn})),n.d(t,"Jb",(function(){return yn})),n.d(t,"Ib",(function(){return kn})),n.d(t,"P",(function(){return Vn.a})),n.d(t,"Kb",(function(){return Se})),n.d(t,"R",(function(){return $n})),n.d(t,"Q",(function(){return to})),n.d(t,"S",(function(){return qn})),n.d(t,"T",(function(){return Kn})),n.d(t,"X",(function(){return no})),n.d(t,"Y",(function(){return Ro})),n.d(t,"Nb",(function(){return Lo})),n.d(t,"ab",(function(){return xo})),n.d(t,"bb",(function(){return Mo})),n.d(t,"cb",(function(){return Ao})),n.d(t,"Yb",(function(){return Do})),n.d(t,"eb",(function(){return zo})),n.d(t,"Qb",(function(){return Ho})),n.d(t,"gb",(function(){return gn})),n.d(t,"hb",(function(){return Wo})),n.d(t,"ib",(function(){return Jn})),n.d(t,"Cb",(function(){return Yo})),n.d(t,"tc",(function(){return it})),n.d(t,"Ub",(function(){return Xo.a})),n.d(t,"Xb",(function(){return Zo.a})),n.d(t,"Mb",(function(){return Qo})),n.d(t,"Tb",(function(){return Jo})),n.d(t,"o",(function(){return ur})),n.d(t,"p",(function(){return dr.c})),n.d(t,"qc",(function(){return br.a})),n.d(t,"Db",(function(){return pr.b})),n.d(t,"q",(function(){return mr.a})),n.d(t,"s",(function(){return Te.a})),n.d(t,"t",(function(){return fr.a})),n.d(t,"Zb",(function(){return fr.b})),n.d(t,"u",(function(){return hr.a})),n.d(t,"v",(function(){return gr.a})),n.d(t,"w",(function(){return F.a})),n.d(t,"x",(function(){return Or.a})),n.d(t,"y",(function(){return Er})),n.d(t,"G",(function(){return Cr.a})),n.d(t,"bc",(function(){return Cr.b})),n.d(t,"H",(function(){return Sr.a})),n.d(t,"Vb",(function(){return wr.a})),n.d(t,"K",(function(){return Ir.a})),n.d(t,"Fb",(function(){return xr})),n.d(t,"k",(function(){return Pr})),n.d(t,"U",(function(){return Rr})),n.d(t,"V",(function(){return Nr.a})),n.d(t,"W",(function(){return Dr})),n.d(t,"ec",(function(){return Ar})),n.d(t,"cc",(function(){return Mr})),n.d(t,"Z",(function(){return Fr})),n.d(t,"db",(function(){return tr})),n.d(t,"fb",(function(){return Gr})),n.d(t,"dc",(function(){return Vr})),n.d(t,"jb",(function(){return Ur.a})),n.d(t,"kb",(function(){return Wr.a})),n.d(t,"ac",(function(){return Kr})),n.d(t,"oc",(function(){return ce.a})),n.d(t,"Wb",(function(){return $r.a})),n.d(t,"Sb",(function(){return Zr})),n.d(t,"l",(function(){return Qr.a})),n.d(t,"sc",(function(){return lt.a}));var o=n("5gPN"),r=n("zmSX"),c=n("9XVa"),l=n("wx14"),i=n("GRId"),a=n("YLtl"),s=n("l3Sj"),u=n("tI+e"),d=n("fPbg"),b=n("plpT"),p=n("ziDm");const m=[{icon:d.a,title:Object(s.__)("Align text left"),align:"left"},{icon:b.a,title:Object(s.__)("Align text center"),align:"center"},{icon:p.a,title:Object(s.__)("Align text right"),align:"right"}],f={position:"bottom right",isAlternate:!0};var h=function(e){let{value:t,onChange:n,alignmentControls:o=m,label:r=Object(s.__)("Align"),describedBy:c=Object(s.__)("Change text alignment"),isCollapsed:b=!0,isToolbar:h}=e;function g(e){return()=>n(t===e?void 0:e)}const O=Object(a.find)(o,e=>e.align===t),v=h?u.ToolbarGroup:u.ToolbarDropdownMenu,j=h?{isCollapsed:b}:{};return Object(i.createElement)(v,Object(l.a)({icon:O?O.icon:Object(s.isRTL)()?p.a:d.a,label:r,toggleProps:{describedBy:c},popoverProps:f,controls:o.map(e=>{const{align:n}=e,o=t===n;return{...e,isActive:o,role:b?"menuitemradio":void 0,onClick:g(n)}})},j))};function g(e){return Object(i.createElement)(h,Object(l.a)({},e,{isToolbar:!1}))}function O(e){return Object(i.createElement)(h,Object(l.a)({},e,{isToolbar:!0}))}var v=n("g56x"),j=n("HSyU"),k=n("ur0x"),_=n("1ZqX"),y=n("pOGT"),E=n("+G0a"),C=n("7SSY"),S=n("BhPs");var w={name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems(e){const{rootClientId:t,selectedBlockName:n}=Object(_.useSelect)(e=>{const{getSelectedBlockClientId:t,getBlockName:n,getBlockInsertionPoint:o}=e(S.a),r=t();return{selectedBlockName:r?n(r):null,rootClientId:o().rootClientId}},[]),[o,r,c]=Object(E.a)(t,a.noop),l=Object(i.useMemo)(()=>(e.trim()?Object(y.a)(o,r,c,e):Object(a.orderBy)(o,["frecency"],["desc"])).filter(e=>e.name!==n).slice(0,9),[e,n,o,r,c]);return[Object(i.useMemo)(()=>l.map(e=>{const{title:t,icon:n,isDisabled:o}=e;return{key:"block-"+e.id,value:e,label:Object(i.createElement)(i.Fragment,null,Object(i.createElement)(C.a,{key:"icon",icon:n,showColors:!0}),t),isDisabled:o}}),[l])]},allowContext:(e,t)=>!(/\S/.test(e)||/\S/.test(t)),getOptionCompletion(e){const{name:t,initialAttributes:n,innerBlocks:o}=e;return{action:"replace",value:Object(j.createBlock)(t,n,Object(j.createBlocksFromInnerBlocksTemplate)(o))}}};const I=[];function B(e){let{completers:t=I}=e;const{name:n}=Object(k.c)();return Object(i.useMemo)(()=>{let e=t;return(n===Object(j.getDefaultBlockName)()||Object(j.getBlockSupport)(n,"__experimentalSlashInserter",!1))&&(e=e.concat([w])),Object(v.hasFilter)("editor.Autocomplete.completers")&&(e===t&&(e=e.map(a.clone)),e=Object(v.applyFilters)("editor.Autocomplete.completers",e,n)),e},[t,n])}var x=function(e){return Object(i.createElement)(u.Autocomplete,Object(l.a)({},e,{completers:B(e)}))},T=n("vtO0"),P=n("Tqx9");var R=Object(i.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(P.Path,{d:"M4.2 9h1.5V5.8H9V4.2H4.2V9zm14 9.2H15v1.5h4.8V15h-1.5v3.2zM15 4.2v1.5h3.2V9h1.5V4.2H15zM5.8 15H4.2v4.8H9v-1.5H5.8V15z"}));var N=function(e){let{isActive:t,label:n=Object(s.__)("Toggle full height"),onToggle:o,isDisabled:r}=e;return Object(i.createElement)(u.ToolbarButton,{isActive:t,icon:R,label:n,onClick:()=>o(!t),disabled:r})},L=n("RxS6");var M=function(e){const{label:t=Object(s.__)("Change matrix alignment"),onChange:n=a.noop,value:o="center",isDisabled:r}=e,c=Object(i.createElement)(u.__experimentalAlignmentMatrixControl.Icon,{value:o}),l="block-editor-block-alignment-matrix-control";return Object(i.createElement)(u.Dropdown,{position:"bottom right",className:l,popoverProps:{className:"block-editor-block-alignment-matrix-control__popover",isAlternate:!0},renderToggle:e=>{let{onToggle:n,isOpen:o}=e;return Object(i.createElement)(u.ToolbarButton,{onClick:n,"aria-haspopup":"true","aria-expanded":o,onKeyDown:e=>{o||e.keyCode!==L.DOWN||(e.preventDefault(),n())},label:t,icon:c,showTooltip:!0,disabled:r})},renderContent:()=>Object(i.createElement)(u.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:n,value:o})})},A=n("iClF");var D=Object(i.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(P.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})),F=n("f8JO");var z=function(e){let{rootLabelText:t}=e;const{selectBlock:n,clearSelectedBlock:o}=Object(_.useDispatch)(S.a),{clientId:r,parents:c,hasSelection:l}=Object(_.useSelect)(e=>{const{getSelectionStart:t,getSelectedBlockClientId:n,getBlockParents:o}=e(S.a),r=n();return{parents:o(r),clientId:r,hasSelection:!!t().clientId}},[]),a=t||Object(s.__)("Document");return Object(i.createElement)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":Object(s.__)("Block breadcrumb")},Object(i.createElement)("li",{className:l?void 0:"block-editor-block-breadcrumb__current","aria-current":l?void 0:"true"},l&&Object(i.createElement)(u.Button,{className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:o},a),!l&&a,!!r&&Object(i.createElement)(A.a,{icon:D,className:"block-editor-block-breadcrumb__separator"})),c.map(e=>Object(i.createElement)("li",{key:e},Object(i.createElement)(u.Button,{className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:()=>n(e)},Object(i.createElement)(F.a,{clientId:e})),Object(i.createElement)(A.a,{icon:D,className:"block-editor-block-breadcrumb__separator"}))),!!r&&Object(i.createElement)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true"},Object(i.createElement)(F.a,{clientId:r})))},H=n("TSYQ"),V=n.n(H);function G(e){let{clientId:t,tagName:n="div",wrapperProps:o,className:r}=e;const[c,a]=Object(i.useState)(!0),[s,u]=Object(i.useState)(!1),{isParentSelected:d,hasChildSelected:b,isDraggingBlocks:p,isParentHighlighted:m}=Object(_.useSelect)(e=>{const{isBlockSelected:n,hasSelectedInnerBlock:o,isDraggingBlocks:r,isBlockHighlighted:c}=e(S.a);return{isParentSelected:n(t),hasChildSelected:o(t,!0),isDraggingBlocks:r(),isParentHighlighted:c(t)}},[t]),f=V()("block-editor-block-content-overlay",null==o?void 0:o.className,r,{"overlay-active":c,"parent-highlighted":m,"is-dragging-blocks":p});return Object(i.useEffect)(()=>{d||b||c||a(!0),d&&!s&&c&&a(!1),b&&c&&a(!1)},[d,b,c,s]),Object(i.createElement)(n,Object(l.a)({},o,{className:f,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),onMouseUp:c?()=>a(!1):void 0}),null==o?void 0:o.children)}var U=n("uoCR"),W=n("fOYa");const q=()=>Object(i.createElement)(u.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 20 20"},Object(i.createElement)(u.Path,{d:"M7.434 5l3.18 9.16H8.538l-.692-2.184H4.628l-.705 2.184H2L5.18 5h2.254zm-1.13 1.904h-.115l-1.148 3.593H7.44L6.304 6.904zM14.348 7.006c1.853 0 2.9.876 2.9 2.374v4.78h-1.79v-.914h-.114c-.362.64-1.123 1.022-2.031 1.022-1.346 0-2.292-.826-2.292-2.108 0-1.27.972-2.006 2.71-2.107l1.696-.102V9.38c0-.584-.42-.914-1.18-.914-.667 0-1.112.228-1.264.647h-1.701c.12-1.295 1.307-2.107 3.066-2.107zm1.079 4.1l-1.416.09c-.793.056-1.18.342-1.18.844 0 .52.45.837 1.091.837.857 0 1.505-.545 1.505-1.256v-.515z"})),K=e=>{let{style:t,className:n}=e;return Object(i.createElement)("div",{className:"block-library-colors-selector__icon-container"},Object(i.createElement)("div",{className:n+" block-library-colors-selector__state-selection",style:t},Object(i.createElement)(q,null)))},$=e=>{let{TextColor:t,BackgroundColor:n}=e;return e=>{let{onToggle:o,isOpen:r}=e;return Object(i.createElement)(u.ToolbarGroup,null,Object(i.createElement)(u.ToolbarButton,{className:"components-toolbar__control block-library-colors-selector__toggle",label:Object(s.__)("Open Colors Selector"),onClick:o,onKeyDown:e=>{r||e.keyCode!==L.DOWN||(e.preventDefault(),o())},icon:Object(i.createElement)(n,null,Object(i.createElement)(t,null,Object(i.createElement)(K,null)))}))}};var Y=e=>{let{children:t,...n}=e;return Object(i.createElement)(u.Dropdown,{position:"bottom right",className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:$(n),renderContent:()=>t})},X=n("JRTi"),Z=n("OzlF"),Q=n("K9lf"),J=n("VKE3"),ee=n("+DUQ"),te=n("Xkls");const ne=Object(ee.animated)(u.__experimentalTreeGridRow);function oe(e){let{isSelected:t,position:n,level:o,rowCount:r,children:c,className:a,path:s,...u}=e;const d=Object(te.a)({isSelected:t,adjustScrolling:!1,enableAnimation:!0,triggerAnimationOnChange:s});return Object(i.createElement)(ne,Object(l.a)({ref:d,className:V()("block-editor-list-view-leaf",a),level:o,positionInSet:n,setSize:r},u),c)}var re=n("9Ma0"),ce=n("wC17");function le(e){let{onClick:t}=e;return Object(i.createElement)("span",{className:"block-editor-list-view__expander",onClick:e=>t(e,{forceToggle:!0}),"aria-hidden":"true"},Object(i.createElement)(A.a,{icon:D}))}var ie=Object(i.forwardRef)((function e(t,n){let{className:o,block:{clientId:r},isSelected:c,onClick:l,onToggleExpanded:a,position:d,siblingBlockCount:b,level:p,tabIndex:m,onFocus:f,onDragStart:h,onDragEnd:g,draggable:O}=t;const v=Object(ce.a)(r),j="list-view-block-select-button__"+Object(Q.useInstanceId)(e),k=((e,t,n)=>Object(s.sprintf)(Object(s.__)("Block %1$d of %2$d, Level %3$d"),e,t,n))(d,b,p);return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(u.Button,{className:V()("block-editor-list-view-block-select-button",o),onClick:l,"aria-describedby":j,ref:n,tabIndex:m,onFocus:f,onDragStart:h,onDragEnd:g,draggable:O},Object(i.createElement)(le,{onClick:a}),Object(i.createElement)(C.a,{icon:null==v?void 0:v.icon,showColors:!0}),Object(i.createElement)(F.a,{clientId:r}),(null==v?void 0:v.anchor)&&Object(i.createElement)("span",{className:"block-editor-list-view-block-select-button__anchor"},v.anchor),c&&Object(i.createElement)(u.VisuallyHidden,null,Object(s.__)("(selected block)"))),Object(i.createElement)("div",{className:"block-editor-list-view-block-select-button__description",id:j},k))})),ae=n("ZAjO");var se=Object(i.forwardRef)((e,t)=>{let{onClick:n,onToggleExpanded:o,block:r,isSelected:c,position:a,siblingBlockCount:s,level:u,...d}=e;const{clientId:b}=r,{blockMovingClientId:p,selectedBlockInBlockEditor:m}=Object(_.useSelect)(e=>{const{getBlockRootClientId:t,hasBlockMovingClientId:n,getSelectedBlockClientId:o}=e(S.a);return{rootClientId:t(b)||"",blockMovingClientId:n(),selectedBlockInBlockEditor:o()}},[b]),f=p&&m===b,h=V()("block-editor-list-view-block-contents",{"is-dropping-before":f});return Object(i.createElement)(ae.a,{clientIds:[r.clientId]},e=>{let{draggable:b,onDragStart:p,onDragEnd:m}=e;return Object(i.createElement)(ie,Object(l.a)({ref:t,className:h,block:r,onClick:n,onToggleExpanded:o,isSelected:c,position:a,siblingBlockCount:s,level:u,draggable:b,onDragStart:p,onDragEnd:m},d))})}),ue=n("1eGn");const de=Object(i.createContext)({__experimentalFeatures:!1,__experimentalPersistentListViewFeatures:!1}),be=()=>Object(i.useContext)(de);var pe=Object(i.memo)((function(e){let{block:t,isDragged:n,isSelected:o,isBranchSelected:r,selectBlock:c,position:l,level:a,rowCount:s,siblingBlockCount:d,showBlockMovers:b,path:p,isExpanded:m}=e;const f=Object(i.useRef)(null),[h,g]=Object(i.useState)(!1),{clientId:O}=t,{toggleBlockHighlight:v}=Object(_.useDispatch)(S.a),{__experimentalFeatures:j,__experimentalPersistentListViewFeatures:k,__experimentalHideContainerBlockActions:y,isTreeGridMounted:E,expand:C,collapse:w}=be(),I=b&&d>0,B=V()("block-editor-list-view-block__mover-cell",{"is-visible":h||o}),x=V()("block-editor-list-view-block__menu-cell",{"is-visible":h||o});Object(i.useEffect)(()=>{k&&!E&&o&&f.current.focus()},[]);const T=k?v:()=>{},P=Object(i.useCallback)(()=>{g(!0),T(O,!0)},[O,g,T]),R=Object(i.useCallback)(()=>{g(!1),T(O,!1)},[O,g,T]),N=Object(i.useCallback)(e=>{e.stopPropagation(),c(O)},[O,c]),L=Object(i.useCallback)(e=>{e.stopPropagation(),!0===m?w(O):!1===m&&C(O)},[O,C,w,m]),M=j&&(!y||y&&a>1),A=j&&!M;let D;I?D=2:A&&(D=3);const F=V()({"is-selected":o,"is-branch-selected":k&&r,"is-dragging":n,"has-single-cell":A});return Object(i.createElement)(oe,{className:F,onMouseEnter:P,onMouseLeave:R,onFocus:P,onBlur:R,level:a,position:l,rowCount:s,path:p,id:"list-view-block-"+O,"data-block":O,isExpanded:m},Object(i.createElement)(u.__experimentalTreeGridCell,{className:"block-editor-list-view-block__contents-cell",colSpan:D,ref:f},e=>{let{ref:n,tabIndex:r,onFocus:c}=e;return Object(i.createElement)("div",{className:"block-editor-list-view-block__contents-container"},Object(i.createElement)(se,{block:t,onClick:N,onToggleExpanded:L,isSelected:o,position:l,siblingBlockCount:d,level:a,ref:n,tabIndex:r,onFocus:c}))}),I&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(u.__experimentalTreeGridCell,{className:B,withoutGridItem:!0},Object(i.createElement)(u.__experimentalTreeGridItem,null,e=>{let{ref:t,tabIndex:n,onFocus:o}=e;return Object(i.createElement)(re.b,{orientation:"vertical",clientIds:[O],ref:t,tabIndex:n,onFocus:o})}),Object(i.createElement)(u.__experimentalTreeGridItem,null,e=>{let{ref:t,tabIndex:n,onFocus:o}=e;return Object(i.createElement)(re.a,{orientation:"vertical",clientIds:[O],ref:t,tabIndex:n,onFocus:o})}))),M&&Object(i.createElement)(u.__experimentalTreeGridCell,{className:x},e=>{let{ref:t,tabIndex:n,onFocus:o}=e;return Object(i.createElement)(ue.a,{clientIds:[O],icon:J.a,toggleProps:{ref:t,className:"block-editor-list-view-block__menu",tabIndex:n,onFocus:o},disableOpenOnArrowDown:!0,__experimentalSelectBlock:N})}))}));function me(e,t,n){var o;if(null==n?void 0:n.includes(e.clientId))return 0;return null===(o=t[e.clientId])||void 0===o||o?1+e.innerBlocks.reduce(fe(t,n),0):1}const fe=(e,t)=>(n,o)=>{var r;if(null==t?void 0:t.includes(o.clientId))return n;return(null===(r=e[o.clientId])||void 0===r||r)&&o.innerBlocks.length>0?n+me(o,e,t):n+1};function he(e){const{blocks:t,selectBlock:n,showBlockMovers:o,showNestedBlocks:r,selectedClientIds:c,level:l=1,path:s="",isBranchSelected:u=!1,listPosition:d=0,fixedListWindow:b}=e,{expandedState:p,draggedClientIds:m,__experimentalPersistentListViewFeatures:f}=be(),h=Object(a.compact)(t),g=h.length;let O=d;return Object(i.createElement)(i.Fragment,null,h.map((e,t)=>{var d;const{clientId:v,innerBlocks:j}=e;t>0&&(O+=me(h[t-1],p,m));const k=f,{itemInView:y}=b,E=!k||y(O),C=t+1,S=s.length>0?`${s}_${C}`:""+C,w=r&&!!j&&!!j.length,I=w?null===(d=p[v])||void 0===d||d:void 0,B=!(null==m||!m.includes(v)),x=B||E,T=((e,t)=>Object(a.isArray)(t)&&t.length?-1!==t.indexOf(e):t===e)(v,c),P=u||T&&w;return Object(i.createElement)(_.AsyncModeProvider,{key:v,value:!T},x&&Object(i.createElement)(pe,{block:e,selectBlock:n,isSelected:T,isBranchSelected:P,isDragged:B,level:l,position:C,rowCount:g,siblingBlockCount:g,showBlockMovers:o,path:S,isExpanded:I,listPosition:O}),!x&&Object(i.createElement)("tr",null,Object(i.createElement)("td",{className:"block-editor-list-view-placeholder"})),w&&I&&!B&&Object(i.createElement)(he,{blocks:j,selectBlock:n,showBlockMovers:o,showNestedBlocks:r,level:l+1,path:S,listPosition:O+1,fixedListWindow:b,isBranchSelected:P,selectedClientIds:c}))}))}he.defaultProps={selectBlock:()=>{}};var ge=Object(i.memo)(he);function Oe(e){let{listViewRef:t,blockDropTarget:n}=e;const{rootClientId:o,clientId:r,dropPosition:c}=n||{},[l,a]=Object(i.useMemo)(()=>{if(!t.current)return[];return[o?t.current.querySelector(`[data-block="${o}"]`):void 0,r?t.current.querySelector(`[data-block="${r}"]`):void 0]},[o,r]),s=a||l,d=Object(i.useCallback)(()=>{if(!l)return 0;const e=s.getBoundingClientRect();return l.querySelector(".block-editor-block-icon").getBoundingClientRect().right-e.left},[l,s]),b=Object(i.useMemo)(()=>{if(!s)return{};const e=d();return{width:s.offsetWidth-e}},[d,s]),p=Object(i.useCallback)(()=>{if(!s)return{};const e=s.ownerDocument,t=s.getBoundingClientRect(),n=d(),o={left:t.left+n,right:t.right,width:0,height:t.height,ownerDocument:e};return"top"===c?{...o,top:t.top,bottom:t.top}:"bottom"===c||"inside"===c?{...o,top:t.bottom,bottom:t.bottom}:{}},[s,c,d]);return s?Object(i.createElement)(u.Popover,{noArrow:!0,animate:!1,getAnchorRect:p,focusOnMount:!1,className:"block-editor-list-view-drop-indicator"},Object(i.createElement)("div",{style:b,className:"block-editor-list-view-drop-indicator__line"})):null}var ve=n("vIlp"),je=n("/lNF");function ke(e,t){return t.left<=e.x&&t.right>=e.x&&t.top<=e.y&&t.bottom>=e.y}const _e=["top","bottom"];function ye(){const{getBlockRootClientId:e,getBlockIndex:t,getBlockCount:n,getDraggedBlockClientIds:o,canInsertBlocks:r}=Object(_.useSelect)(S.a),[c,l]=Object(i.useState)(),{rootClientId:a,blockIndex:s}=c||{},u=Object(je.a)(a,s),d=o(),b=Object(Q.useThrottle)(Object(i.useCallback)((o,c)=>{const i={x:o.clientX,y:o.clientY},a=!(null==d||!d.length),s=function(e,t){let n,o,r,c;for(const l of e){if(l.isDraggedBlock)continue;const i=l.element.getBoundingClientRect(),[a,s]=Object(ve.a)(t,i,_e),u=ke(t,i);if(void 0===r||a<r||u){r=a;const t=e.indexOf(l),d=e[t-1];if("top"===s&&d&&d.rootClientId===l.rootClientId&&!d.isDraggedBlock?(o=d,n="bottom",c=d.element.getBoundingClientRect()):(o=l,n=s,c=i),u)break}}if(!o)return;const l="bottom"===n;if(l&&o.canInsertDraggedBlocksAsChild&&(o.innerBlockCount>0||function(e,t){const n=t.left+t.width/2;return e.x>n}(t,c)))return{rootClientId:o.clientId,blockIndex:0,dropPosition:"inside"};if(!o.canInsertDraggedBlocksAsSibling)return;const i=l?1:0;return{rootClientId:o.rootClientId,clientId:o.clientId,blockIndex:o.blockIndex+i,dropPosition:n}}(Array.from(c.querySelectorAll("[data-block]")).map(o=>{const c=o.dataset.block,l=e(c);return{clientId:c,rootClientId:l,blockIndex:t(c,l),element:o,isDraggedBlock:!!a&&d.includes(c),innerBlockCount:n(c),canInsertDraggedBlocksAsSibling:!a||r(d,l),canInsertDraggedBlocksAsChild:!a||r(d,c)}}),i);s&&l(s)},[d]),200);return{ref:Object(Q.__experimentalUseDropZone)({onDrop:u,onDragOver(e){b(e,e.currentTarget)},onDragEnd(){b.cancel(),l(null)}}),target:c}}const Ee=()=>{},Ce=(e,t)=>{switch(t.type){case"expand":return{...e,[t.clientId]:!0};case"collapse":return{...e,[t.clientId]:!1};default:return e}};var Se=Object(i.forwardRef)((function(e,t){let{blocks:n,onSelect:o=Ee,__experimentalFeatures:r,__experimentalPersistentListViewFeatures:c,__experimentalHideContainerBlockActions:a,showNestedBlocks:d,showBlockMovers:b,...p}=e;const{clientIdsTree:m,draggedClientIds:f,selectedClientIds:h}=function(e){return Object(_.useSelect)(t=>{const{getDraggedBlockClientIds:n,getSelectedBlockClientIds:o,__unstableGetClientIdsTree:r}=t(S.a);return{selectedClientIds:o(),draggedClientIds:n(),clientIdsTree:e||r()}},[e])}(n),{selectBlock:g}=Object(_.useDispatch)(S.a),{visibleBlockCount:O}=Object(_.useSelect)(e=>{const{getGlobalBlockCount:t,getClientIdsOfDescendants:n}=e(S.a),o=(null==f?void 0:f.length)>0?n(f).length+1:0;return{visibleBlockCount:t()-o}},[f]),v=Object(i.useCallback)(e=>{g(e),o(e)},[g,o]),[j,k]=Object(i.useReducer)(Ce,{}),{ref:y,target:E}=ye(),C=Object(i.useRef)(),w=Object(Q.useMergeRefs)([C,y,t]),I=Object(i.useRef)(!1);Object(i.useEffect)(()=>{I.current=!0},[]);const[B]=Object(Q.__experimentalUseFixedWindowList)(C,36,O,{useWindowing:c,windowOverscan:40}),x=Object(i.useCallback)(e=>{e&&k({type:"expand",clientId:e})},[k]),T=Object(i.useCallback)(e=>{e&&k({type:"collapse",clientId:e})},[k]),P=Object(i.useCallback)(e=>{var t;x(null==e||null===(t=e.dataset)||void 0===t?void 0:t.block)},[x]),R=Object(i.useCallback)(e=>{var t;T(null==e||null===(t=e.dataset)||void 0===t?void 0:t.block)},[T]),N=Object(i.useMemo)(()=>({__experimentalFeatures:r,__experimentalPersistentListViewFeatures:c,__experimentalHideContainerBlockActions:a,isTreeGridMounted:I.current,draggedClientIds:f,expandedState:j,expand:x,collapse:T}),[r,c,a,I.current,f,j,x,T]);return Object(i.createElement)(_.AsyncModeProvider,{value:!0},Object(i.createElement)(Oe,{listViewRef:C,blockDropTarget:E}),Object(i.createElement)(u.__experimentalTreeGrid,{className:"block-editor-list-view-tree","aria-label":Object(s.__)("Block navigation structure"),ref:w,onCollapseRow:R,onExpandRow:P},Object(i.createElement)(de.Provider,{value:N},Object(i.createElement)(ge,Object(l.a)({blocks:m,selectBlock:v,showNestedBlocks:d,showBlockMovers:b,fixedListWindow:B,selectedClientIds:h},p)))))}));function we(e){let{isEnabled:t,onToggle:n,isOpen:o,innerRef:r,...c}=e;return Object(i.createElement)(u.Button,Object(l.a)({},c,{ref:r,icon:Z.a,"aria-expanded":o,"aria-haspopup":"true",onClick:t?n:void 0,label:Object(s.__)("List view"),className:"block-editor-block-navigation","aria-disabled":!t}))}var Ie=Object(i.forwardRef)((function(e,t){let{isDisabled:n,__experimentalFeatures:o,...r}=e;const c=Object(_.useSelect)(e=>!!e(S.a).getBlockCount(),[])&&!n;return Object(i.createElement)(u.Dropdown,{contentClassName:"block-editor-block-navigation__popover",position:"bottom right",renderToggle:e=>{let{isOpen:n,onToggle:o}=e;return Object(i.createElement)(we,Object(l.a)({},r,{innerRef:t,isOpen:n,onToggle:o,isEnabled:c}))},renderContent:()=>Object(i.createElement)("div",{className:"block-editor-block-navigation__container"},Object(i.createElement)("p",{className:"block-editor-block-navigation__label"},Object(s.__)("List view")),Object(i.createElement)(Se,{showNestedBlocks:!0,__experimentalFeatures:o}))})})),Be=n("Civd");var xe=function(e){let{icon:t=Be.a,label:n=Object(s.__)("Choose variation"),instructions:o=Object(s.__)("Select a variation to start with."),variations:r,onSelect:c,allowSkip:l}=e;const a=V()("block-editor-block-variation-picker",{"has-many-variations":r.length>4});return Object(i.createElement)(u.Placeholder,{icon:t,label:n,instructions:o,className:a},Object(i.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":Object(s.__)("Block variations")},r.map(e=>Object(i.createElement)("li",{key:e.name},Object(i.createElement)(u.Button,{variant:"secondary",icon:e.icon,iconSize:48,onClick:()=>c(e),className:"block-editor-block-variation-picker__variation",label:e.description||e.title}),Object(i.createElement)("span",{className:"block-editor-block-variation-picker__variation-label",role:"presentation"},e.title)))),l&&Object(i.createElement)("div",{className:"block-editor-block-variation-picker__skip"},Object(i.createElement)(u.Button,{variant:"link",onClick:()=>c()},Object(s.__)("Skip"))))},Te=n("REKd"),Pe=n("2gm7"),Re=n("1iEr"),Ne=n("XNw2"),Le=n("b2RC");const Me="carousel",Ae="grid",De=e=>{let{onStartBlank:t,onBlockPatternSelect:n}=e;return Object(i.createElement)("div",{className:"block-editor-block-pattern-setup__actions"},Object(i.createElement)(u.Button,{onClick:t},Object(s.__)("Start blank")),Object(i.createElement)(u.Button,{variant:"primary",onClick:n},Object(s.__)("Choose")))},Fe=e=>{let{handlePrevious:t,handleNext:n,activeSlide:o,totalSlides:r}=e;return Object(i.createElement)("div",{className:"block-editor-block-pattern-setup__navigation"},Object(i.createElement)(u.Button,{icon:Pe.a,label:Object(s.__)("Previous pattern"),onClick:t,disabled:0===o}),Object(i.createElement)(u.Button,{icon:Re.a,label:Object(s.__)("Next pattern"),onClick:n,disabled:o===r-1}))};var ze=e=>{let{viewMode:t,setViewMode:n,handlePrevious:o,handleNext:r,activeSlide:c,totalSlides:l,onBlockPatternSelect:a,onStartBlank:d}=e;const b=t===Me,p=Object(i.createElement)("div",{className:"block-editor-block-pattern-setup__display-controls"},Object(i.createElement)(u.Button,{icon:Ne.a,label:Object(s.__)("Carousel view"),onClick:()=>n(Me),isPressed:b}),Object(i.createElement)(u.Button,{icon:Le.a,label:Object(s.__)("Grid view"),onClick:()=>n(Ae),isPressed:t===Ae}));return Object(i.createElement)("div",{className:"block-editor-block-pattern-setup__toolbar"},b&&Object(i.createElement)(Fe,{handlePrevious:o,handleNext:r,activeSlide:c,totalSlides:l}),p,b&&Object(i.createElement)(De,{onBlockPatternSelect:a,onStartBlank:d}))};var He=function(e,t,n){return Object(_.useSelect)(o=>{const{getBlockRootClientId:r,__experimentalGetPatternsByBlockTypes:c,__experimentalGetAllowedPatterns:l}=o(S.a),i=r(e);return n?l(i).filter(n):c(t,i)},[e,t,n])};const Ve=e=>{let{viewMode:t,activeSlide:n,patterns:o,onBlockPatternSelect:r}=e;const c=Object(u.__unstableUseCompositeState)(),a="block-editor-block-pattern-setup__container";if(t===Me){const e=new Map([[n,"active-slide"],[n-1,"previous-slide"],[n+1,"next-slide"]]);return Object(i.createElement)("div",{className:a},Object(i.createElement)("ul",{className:"carousel-container"},o.map((t,n)=>Object(i.createElement)(Ue,{className:e.get(n)||"",key:t.name,pattern:t}))))}return Object(i.createElement)(u.__unstableComposite,Object(l.a)({},c,{role:"listbox",className:a,"aria-label":Object(s.__)("Patterns list")}),o.map(e=>Object(i.createElement)(Ge,{key:e.name,pattern:e,onSelect:r,composite:c})))};function Ge(e){let{pattern:t,onSelect:n,composite:o}=e;const r="block-editor-block-pattern-setup-list",{blocks:c,title:a,description:s,viewportWidth:d=700}=t,b=Object(Q.useInstanceId)(Ge,r+"__item-description");return Object(i.createElement)("div",{className:r+"__list-item","aria-label":t.title,"aria-describedby":t.description?b:void 0},Object(i.createElement)(u.__unstableCompositeItem,Object(l.a)({role:"option",as:"div"},o,{className:r+"__item",onClick:()=>n(c)}),Object(i.createElement)(Te.a,{blocks:c,viewportWidth:d}),Object(i.createElement)("div",{className:r+"__item-title"},a)),!!s&&Object(i.createElement)(u.VisuallyHidden,{id:b},s))}function Ue(e){let{className:t,pattern:n}=e;const{blocks:o,title:r,description:c}=n,l=Object(Q.useInstanceId)(Ue,"block-editor-block-pattern-setup-list__item-description");return Object(i.createElement)("li",{className:"pattern-slide "+t,"aria-label":r,"aria-describedby":c?l:void 0},Object(i.createElement)(Te.a,{blocks:o,__experimentalLive:!0}),!!c&&Object(i.createElement)(u.VisuallyHidden,{id:l},c))}var We=e=>{let{clientId:t,blockName:n,filterPatternsFn:o,startBlankComponent:r,onBlockPatternSelect:c}=e;const[l,a]=Object(i.useState)(Me),[s,u]=Object(i.useState)(0),[d,b]=Object(i.useState)(!1),{replaceBlock:p}=Object(_.useDispatch)(S.a),m=He(t,n,o);if(null==m||!m.length||d)return r;const f=c||(e=>{const n=e.map(e=>Object(j.cloneBlock)(e));p(t,n)});return Object(i.createElement)("div",{className:"block-editor-block-pattern-setup view-mode-"+l},Object(i.createElement)(ze,{viewMode:l,setViewMode:a,activeSlide:s,totalSlides:m.length,handleNext:()=>{u(e=>e+1)},handlePrevious:()=>{u(e=>e-1)},onBlockPatternSelect:()=>{f(m[s].blocks)},onStartBlank:()=>{b(!0)}}),Object(i.createElement)(Ve,{viewMode:l,activeSlide:s,patterns:m,onBlockPatternSelect:f}))},qe=n("NWDH"),Ke=n("Btt3");var $e=function(e){let{blockClientId:t}=e;const[n,o]=Object(i.useState)(),{updateBlockAttributes:r}=Object(_.useDispatch)(S.a),{variations:c,blockAttributes:l}=Object(_.useSelect)(e=>{const{getBlockVariations:n}=e(j.store),{getBlockName:o,getBlockAttributes:r}=e(S.a),c=t&&o(t);return{variations:c&&n(c,"transform"),blockAttributes:r(t)}},[t]);if(Object(i.useEffect)(()=>{var e;o(null===(e=Object(Ke.a)(l,c))||void 0===e?void 0:e.name)},[l,c]),null==c||!c.length)return null;const a=c.map(e=>{let{name:t,title:n,description:o}=e;return{value:t,label:n,info:o}}),d=e=>{r(t,{...c.find(t=>{let{name:n}=t;return n===e}).attributes})},b="block-editor-block-variation-transforms";return Object(i.createElement)(u.DropdownMenu,{className:b,label:Object(s.__)("Transform to variation"),text:Object(s.__)("Transform to variation"),popoverProps:{position:"bottom center",className:b+"__popover"},icon:qe.a,toggleProps:{iconPosition:"right"}},()=>Object(i.createElement)("div",{className:b+"__container"},Object(i.createElement)(u.MenuGroup,null,Object(i.createElement)(u.MenuItemsChoice,{choices:a,value:n,onSelect:d}))))};const Ye=Object(i.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(u.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),Xe=Object(i.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(u.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})),Ze={top:{icon:Object(i.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(u.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),title:Object(s._x)("Align top","Block vertical alignment setting")},center:{icon:Xe,title:Object(s._x)("Align middle","Block vertical alignment setting")},bottom:{icon:Ye,title:Object(s._x)("Align bottom","Block vertical alignment setting")}},Qe=["top","center","bottom"],Je={isAlternate:!0};var et=function(e){let{value:t,onChange:n,controls:o=Qe,isCollapsed:r=!0,isToolbar:c}=e;const a=Ze[t],d=Ze.top,b=c?u.ToolbarGroup:u.ToolbarDropdownMenu,p=c?{isCollapsed:r}:{};return Object(i.createElement)(b,Object(l.a)({popoverProps:Je,icon:a?a.icon:d.icon,label:Object(s._x)("Change vertical alignment","Block vertical alignment setting label"),controls:o.map(e=>{return{...Ze[e],isActive:t===e,role:r?"menuitemradio":void 0,onClick:(o=e,()=>n(t===o?void 0:o))};var o})},p))};function tt(e){return Object(i.createElement)(et,Object(l.a)({},e,{isToolbar:!1}))}function nt(e){return Object(i.createElement)(et,Object(l.a)({},e,{isToolbar:!0}))}var ot=n("Wy3j"),rt=n("2YCo"),ct=n("I5Hl"),lt=n("v5LD"),it=Object(Q.createHigherOrderComponent)(e=>t=>{const n=Object(lt.a)("color.palette"),o=!Object(lt.a)("color.custom"),r=void 0===t.colors?n:t.colors,c=void 0===t.disableCustomColors?o:t.disableCustomColors,s=!Object(a.isEmpty)(r)||!c;return Object(i.createElement)(e,Object(l.a)({},t,{colors:r,disableCustomColors:c,hasColorsToChoose:s}))},"withColorContext"),at=it(u.ColorPalette),st=n("hMaJ");function ut(e){let{onChange:t,value:n,...o}=e;return Object(i.createElement)(st.a,Object(l.a)({},o,{onColorChange:t,colorValue:n,gradients:[],disableCustomGradients:!0}))}var dt=n("6c9H"),bt=n("1uGa"),pt=n("Bo0k"),mt=n("GKUk"),ft=n("xBDm"),ht=n("kVRd"),gt=n("/Hvg"),Ot=n("yU1v"),vt=function(e,t){return(vt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};var jt=function(){return(jt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.create;Object.create;var kt=n("cDcd"),_t=n.n(kt),yt=n("wJiJ"),Et=n.n(yt);function Ct(e,t,n,o,r,c){void 0===c&&(c=0);var l=Mt(e,t,c),i=l.width,a=l.height,s=Math.min(i,n),u=Math.min(a,o);return s>u*r?{width:u*r,height:u}:{width:s,height:s/r}}function St(e,t,n,o,r){void 0===r&&(r=0);var c=Mt(t.width,t.height,r),l=c.width,i=c.height;return{x:wt(e.x,l,n.width,o),y:wt(e.y,i,n.height,o)}}function wt(e,t,n,o){var r=t*o/2-n/2;return Math.min(r,Math.max(e,-r))}function It(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function Bt(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function xt(e,t,n,o,r,c,l){void 0===c&&(c=0),void 0===l&&(l=!0);var i=l&&0===c?Tt:Pt,a={x:i(100,((t.width-n.width/r)/2-e.x/r)/t.width*100),y:i(100,((t.height-n.height/r)/2-e.y/r)/t.height*100),width:i(100,n.width/t.width*100/r),height:i(100,n.height/t.height*100/r)},s=Math.round(i(t.naturalWidth,a.width*t.naturalWidth/100)),u=Math.round(i(t.naturalHeight,a.height*t.naturalHeight/100)),d=t.naturalWidth>=t.naturalHeight*o?{width:Math.round(u*o),height:u}:{width:s,height:Math.round(s/o)};return{croppedAreaPercentages:a,croppedAreaPixels:jt(jt({},d),{x:Math.round(i(t.naturalWidth-d.width,a.x*t.naturalWidth/100)),y:Math.round(i(t.naturalHeight-d.height,a.y*t.naturalHeight/100))})}}function Tt(e,t){return Math.min(e,Math.max(0,t))}function Pt(e,t){return t}function Rt(e,t,n){var o=t.width/t.naturalWidth,r=function(e,t,n){var o=t.width/t.naturalWidth;if(n)return n.height>n.width?n.height/o/e.height:n.width/o/e.width;var r=e.width/e.height;return t.naturalWidth>=t.naturalHeight*r?t.naturalHeight/e.height:t.naturalWidth/e.width}(e,t,n),c=o*r;return{crop:{x:((t.naturalWidth-e.width)/2-e.x)*c,y:((t.naturalHeight-e.height)/2-e.y)*c},zoom:r}}function Nt(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function Lt(e,t,n,o,r){var c=Math.cos,l=Math.sin,i=r*Math.PI/180;return[(e-n)*c(i)-(t-o)*l(i)+n,(e-n)*l(i)+(t-o)*c(i)+o]}function Mt(e,t,n){var o=e/2,r=t/2,c=[Lt(0,0,o,r,n),Lt(e,0,o,r,n),Lt(e,t,o,r,n),Lt(0,t,o,r,n)],l=Math.min.apply(Math,c.map((function(e){return e[0]}))),i=Math.max.apply(Math,c.map((function(e){return e[0]}))),a=Math.min.apply(Math,c.map((function(e){return e[1]})));return{width:i-l,height:Math.max.apply(Math,c.map((function(e){return e[1]})))-a}}function At(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return"string"==typeof e&&e.length>0})).join(" ").trim()}var Dt=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.imageRef=null,n.videoRef=null,n.containerRef=null,n.styleRef=null,n.containerRect=null,n.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},n.dragStartPosition={x:0,y:0},n.dragStartCrop={x:0,y:0},n.lastPinchDistance=0,n.lastPinchRotation=0,n.rafDragTimeout=null,n.rafPinchTimeout=null,n.wheelTimer=null,n.state={cropSize:null,hasWheelJustStarted:!1},n.preventZoomSafari=function(e){return e.preventDefault()},n.cleanEvents=function(){document.removeEventListener("mousemove",n.onMouseMove),document.removeEventListener("mouseup",n.onDragStopped),document.removeEventListener("touchmove",n.onTouchMove),document.removeEventListener("touchend",n.onDragStopped)},n.clearScrollEvent=function(){n.containerRef&&n.containerRef.removeEventListener("wheel",n.onWheel),n.wheelTimer&&clearTimeout(n.wheelTimer)},n.onMediaLoad=function(){n.computeSizes(),n.emitCropData(),n.setInitialCrop(),n.props.onMediaLoaded&&n.props.onMediaLoaded(n.mediaSize)},n.setInitialCrop=function(){var e=n.props,t=e.initialCroppedAreaPixels,o=e.cropSize;if(t){var r=Rt(t,n.mediaSize,o),c=r.crop,l=r.zoom;n.props.onCropChange(c),n.props.onZoomChange&&n.props.onZoomChange(l)}},n.computeSizes=function(){var e,t,o,r,c,l,i=n.imageRef||n.videoRef;if(i&&n.containerRef){n.containerRect=n.containerRef.getBoundingClientRect(),n.mediaSize={width:i.offsetWidth,height:i.offsetHeight,naturalWidth:(null===(e=n.imageRef)||void 0===e?void 0:e.naturalWidth)||(null===(t=n.videoRef)||void 0===t?void 0:t.videoWidth)||0,naturalHeight:(null===(o=n.imageRef)||void 0===o?void 0:o.naturalHeight)||(null===(r=n.videoRef)||void 0===r?void 0:r.videoHeight)||0};var a=n.props.cropSize?n.props.cropSize:Ct(i.offsetWidth,i.offsetHeight,n.containerRect.width,n.containerRect.height,n.props.aspect,n.props.rotation);(null===(c=n.state.cropSize)||void 0===c?void 0:c.height)===a.height&&(null===(l=n.state.cropSize)||void 0===l?void 0:l.width)===a.width||n.props.onCropSizeChange&&n.props.onCropSizeChange(a),n.setState({cropSize:a},n.recomputeCropPosition)}},n.onMouseDown=function(e){e.preventDefault(),document.addEventListener("mousemove",n.onMouseMove),document.addEventListener("mouseup",n.onDragStopped),n.onDragStart(t.getMousePoint(e))},n.onMouseMove=function(e){return n.onDrag(t.getMousePoint(e))},n.onTouchStart=function(e){document.addEventListener("touchmove",n.onTouchMove,{passive:!1}),document.addEventListener("touchend",n.onDragStopped),2===e.touches.length?n.onPinchStart(e):1===e.touches.length&&n.onDragStart(t.getTouchPoint(e.touches[0]))},n.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?n.onPinchMove(e):1===e.touches.length&&n.onDrag(t.getTouchPoint(e.touches[0]))},n.onDragStart=function(e){var t,o,r=e.x,c=e.y;n.dragStartPosition={x:r,y:c},n.dragStartCrop=jt({},n.props.crop),null===(o=(t=n.props).onInteractionStart)||void 0===o||o.call(t)},n.onDrag=function(e){var t=e.x,o=e.y;n.rafDragTimeout&&window.cancelAnimationFrame(n.rafDragTimeout),n.rafDragTimeout=window.requestAnimationFrame((function(){if(n.state.cropSize&&void 0!==t&&void 0!==o){var e=t-n.dragStartPosition.x,r=o-n.dragStartPosition.y,c={x:n.dragStartCrop.x+e,y:n.dragStartCrop.y+r},l=n.props.restrictPosition?St(c,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):c;n.props.onCropChange(l)}}))},n.onDragStopped=function(){var e,t;n.cleanEvents(),n.emitCropData(),null===(t=(e=n.props).onInteractionEnd)||void 0===t||t.call(e)},n.onWheel=function(e){e.preventDefault();var o=t.getMousePoint(e),r=Et()(e).pixelY,c=n.props.zoom-r*n.props.zoomSpeed/200;n.setNewZoom(c,o),n.state.hasWheelJustStarted||n.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=n.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),n.wheelTimer&&clearTimeout(n.wheelTimer),n.wheelTimer=window.setTimeout((function(){return n.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=n.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)},n.getPointOnContainer=function(e){var t=e.x,o=e.y;if(!n.containerRect)throw new Error("The Cropper is not mounted");return{x:n.containerRect.width/2-(t-n.containerRect.left),y:n.containerRect.height/2-(o-n.containerRect.top)}},n.getPointOnMedia=function(e){var t=e.x,o=e.y,r=n.props,c=r.crop,l=r.zoom;return{x:(t+c.x)/l,y:(o+c.y)/l}},n.setNewZoom=function(e,t){if(n.state.cropSize&&n.props.onZoomChange){var o=n.getPointOnContainer(t),r=n.getPointOnMedia(o),c=Math.min(n.props.maxZoom,Math.max(e,n.props.minZoom)),l={x:r.x*c-o.x,y:r.y*c-o.y},i=n.props.restrictPosition?St(l,n.mediaSize,n.state.cropSize,c,n.props.rotation):l;n.props.onCropChange(i),n.props.onZoomChange(c)}},n.getCropData=function(){return n.state.cropSize?xt(n.props.restrictPosition?St(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop,n.mediaSize,n.state.cropSize,n.getAspect(),n.props.zoom,n.props.rotation,n.props.restrictPosition):null},n.emitCropData=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,o=e.croppedAreaPixels;n.props.onCropComplete&&n.props.onCropComplete(t,o),n.props.onCropAreaChange&&n.props.onCropAreaChange(t,o)}},n.emitCropAreaChange=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,o=e.croppedAreaPixels;n.props.onCropAreaChange&&n.props.onCropAreaChange(t,o)}},n.recomputeCropPosition=function(){if(n.state.cropSize){var e=n.props.restrictPosition?St(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop;n.props.onCropChange(e),n.emitCropData()}},n}return function(e,t){function n(){this.constructor=e}vt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.computeSizes),this.containerRef&&(this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.preventZoomSafari),this.containerRef.addEventListener("gesturechange",this.preventZoomSafari)),this.props.disableAutomaticStylesInjection||(this.styleRef=document.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.styleRef.innerHTML=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",document.head.appendChild(this.styleRef)),this.imageRef&&this.imageRef.complete&&this.onMediaLoad()},t.prototype.componentWillUnmount=function(){var e;window.removeEventListener("resize",this.computeSizes),this.containerRef&&(this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.containerRef.removeEventListener("gesturechange",this.preventZoomSafari)),this.styleRef&&(null===(e=this.styleRef.parentNode)||void 0===e||e.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent()},t.prototype.componentDidUpdate=function(e){var t,n,o,r,c,l,i,a,s;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(n=this.props.cropSize)||void 0===n?void 0:n.height)||(null===(o=e.cropSize)||void 0===o?void 0:o.width)!==(null===(r=this.props.cropSize)||void 0===r?void 0:r.width)?this.computeSizes():(null===(c=e.crop)||void 0===c?void 0:c.x)===(null===(l=this.props.crop)||void 0===l?void 0:l.x)&&(null===(i=e.crop)||void 0===i?void 0:i.y)===(null===(a=this.props.crop)||void 0===a?void 0:a.y)||this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&(null===(s=this.videoRef)||void 0===s||s.load())},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,n=e.aspect;return t?t.width/t.height:n},t.prototype.onPinchStart=function(e){var n=t.getTouchPoint(e.touches[0]),o=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=It(n,o),this.lastPinchRotation=Bt(n,o),this.onDragStart(Nt(n,o))},t.prototype.onPinchMove=function(e){var n=this,o=t.getTouchPoint(e.touches[0]),r=t.getTouchPoint(e.touches[1]),c=Nt(o,r);this.onDrag(c),this.rafPinchTimeout&&window.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=window.requestAnimationFrame((function(){var e=It(o,r),t=n.props.zoom*(e/n.lastPinchDistance);n.setNewZoom(t,c),n.lastPinchDistance=e;var l=Bt(o,r),i=n.props.rotation+(l-n.lastPinchRotation);n.props.onRotationChange&&n.props.onRotationChange(i),n.lastPinchRotation=l}))},t.prototype.render=function(){var e=this,t=this.props,n=t.image,o=t.video,r=t.mediaProps,c=t.transform,l=t.crop,i=l.x,a=l.y,s=t.rotation,u=t.zoom,d=t.cropShape,b=t.showGrid,p=t.style,m=p.containerStyle,f=p.cropAreaStyle,h=p.mediaStyle,g=t.classes,O=g.containerClassName,v=g.cropAreaClassName,j=g.mediaClassName,k=t.objectFit;return _t.a.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:m,className:At("reactEasyCrop_Container",O)},n?_t.a.createElement("img",jt({alt:"",className:At("reactEasyCrop_Image","contain"===k&&"reactEasyCrop_Contain","horizontal-cover"===k&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===k&&"reactEasyCrop_Cover_Vertical",j)},r,{src:n,ref:function(t){return e.imageRef=t},style:jt(jt({},h),{transform:c||"translate("+i+"px, "+a+"px) rotate("+s+"deg) scale("+u+")"}),onLoad:this.onMediaLoad})):o&&_t.a.createElement("video",jt({autoPlay:!0,loop:!0,muted:!0,className:At("reactEasyCrop_Video","contain"===k&&"reactEasyCrop_Contain","horizontal-cover"===k&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===k&&"reactEasyCrop_Cover_Vertical",j)},r,{ref:function(t){return e.videoRef=t},onLoadedMetadata:this.onMediaLoad,style:jt(jt({},h),{transform:c||"translate("+i+"px, "+a+"px) rotate("+s+"deg) scale("+u+")"}),controls:!1}),(Array.isArray(o)?o:[{src:o}]).map((function(e){return _t.a.createElement("source",jt({key:e.src},e))}))),this.state.cropSize&&_t.a.createElement("div",{style:jt(jt({},f),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:At("reactEasyCrop_CropArea","round"===d&&"reactEasyCrop_CropAreaRound",b&&"reactEasyCrop_CropAreaGrid",v)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(_t.a.Component);const Ft={position:"bottom right",isAlternate:!0};var zt=n("ywyh"),Ht=n.n(zt),Vt=n("onLe");function Gt(e,t){const n=function(e){let{url:t,naturalWidth:n,naturalHeight:o}=e;const[r,c]=Object(i.useState)(),[l,a]=Object(i.useState)(),[s,u]=Object(i.useState)({x:0,y:0}),[d,b]=Object(i.useState)(),[p,m]=Object(i.useState)(),[f,h]=Object(i.useState)(),[g,O]=Object(i.useState)(),j=Object(i.useCallback)(()=>{u({x:0,y:0}),b(100),m(0),h(n/o),O(n/o)},[n,o,u,b,m,h,O]),k=Object(i.useCallback)(()=>{const e=(p+90)%360;let r=n/o;if(p%180==90&&(r=o/n),0===e)return c(),m(e),h(1/f),void u({x:-s.y*r,y:s.x*r});const l=new window.Image;l.src=t,l.onload=function(t){const n=document.createElement("canvas");let o=0,l=0;e%180?(n.width=t.target.height,n.height=t.target.width):(n.width=t.target.width,n.height=t.target.height),90!==e&&180!==e||(o=n.width),270!==e&&180!==e||(l=n.height);const i=n.getContext("2d");i.translate(o,l),i.rotate(e*Math.PI/180),i.drawImage(t.target,0,0),n.toBlob(t=>{c(URL.createObjectURL(t)),m(e),h(1/f),u({x:-s.y*r,y:s.x*r})})};const i=Object(v.applyFilters)("media.crossOrigin",void 0,t);"string"==typeof i&&(l.crossOrigin=i)},[p,n,o,c,m,h,u]);return Object(i.useMemo)(()=>({editedUrl:r,setEditedUrl:c,crop:l,setCrop:a,position:s,setPosition:u,zoom:d,setZoom:b,rotation:p,setRotation:m,rotateClockwise:k,aspect:f,setAspect:h,defaultAspect:g,initializeTransformValues:j}),[r,c,l,a,s,u,d,b,p,m,k,f,h,g,j])}(e),{initializeTransformValues:o}=n;return Object(i.useEffect)(()=>{t&&o()},[t,o]),n}const Ut=Object(i.createContext)({}),Wt=()=>Object(i.useContext)(Ut);function qt(e){let{id:t,url:n,naturalWidth:o,naturalHeight:r,isEditing:c,onFinishEditing:l,onSaveImage:a,children:u}=e;const d=Gt({url:n,naturalWidth:o,naturalHeight:r},c),b=function(e){let{crop:t,rotation:n,height:o,width:r,aspect:c,url:l,id:a,onSaveImage:u,onFinishEditing:d}=e;const{createErrorNotice:b}=Object(_.useDispatch)(Vt.store),[p,m]=Object(i.useState)(!1),f=Object(i.useCallback)(()=>{m(!1),d()},[m,d]),h=Object(i.useCallback)(()=>{m(!0);let e={};(t.width<99.9||t.height<99.9)&&(e=t),n>0&&(e.rotation=n),e.src=l,Ht()({path:`/wp/v2/media/${a}/edit`,method:"POST",data:e}).then(e=>{u({id:e.id,url:e.source_url,height:o&&r?r/c:void 0})}).catch(e=>{b(Object(s.sprintf)(Object(s.__)("Could not edit image. %s"),e.message),{id:"image-editing-error",type:"snackbar"})}).finally(()=>{m(!1),d()})},[m,t,n,o,r,c,l,u,b,m,d]);return Object(i.useMemo)(()=>({isInProgress:p,apply:h,cancel:f}),[p,h,f])}({id:t,url:n,onSaveImage:a,onFinishEditing:l,...d}),p=Object(i.useMemo)(()=>({...d,...b}),[d,b]);return Object(i.createElement)(Ut.Provider,{value:p},u)}function Kt(e){let{url:t,width:n,height:o,clientWidth:r,naturalHeight:c,naturalWidth:l}=e;const{isInProgress:a,editedUrl:s,position:d,zoom:b,aspect:p,setPosition:m,setCrop:f,setZoom:h,rotation:g}=Wt();let O=o||r*c/l;return g%180==90&&(O=r*l/c),Object(i.createElement)("div",{className:V()("wp-block-image__crop-area",{"is-applying":a}),style:{width:n||r,height:O}},Object(i.createElement)(Dt,{image:s||t,disabled:a,minZoom:1,maxZoom:3,crop:d,zoom:b/100,aspect:p,onCropChange:m,onCropComplete:e=>{f(e)},onZoomChange:e=>{h(100*e)}}),a&&Object(i.createElement)(u.Spinner,null))}var $t=n("cGtP");function Yt(){const{isInProgress:e,zoom:t,setZoom:n}=Wt();return Object(i.createElement)(u.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:Ft,renderToggle:t=>{let{isOpen:n,onToggle:o}=t;return Object(i.createElement)(u.ToolbarButton,{icon:$t.a,label:Object(s.__)("Zoom"),onClick:o,"aria-expanded":n,disabled:e})},renderContent:()=>Object(i.createElement)(u.RangeControl,{label:Object(s.__)("Zoom"),min:100,max:300,value:Math.round(t),onChange:n})})}var Xt=n("RMJe");var Zt=Object(i.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(P.Path,{d:"M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"}));function Qt(e){let{aspectRatios:t,isDisabled:n,label:o,onClick:r,value:c}=e;return Object(i.createElement)(u.MenuGroup,{label:o},t.map(e=>{let{title:t,aspect:o}=e;return Object(i.createElement)(u.MenuItem,{key:o,disabled:n,onClick:()=>{r(o)},role:"menuitemradio",isSelected:o===c,icon:o===c?Xt.a:void 0},t)}))}function Jt(e){let{toggleProps:t}=e;const{isInProgress:n,aspect:o,setAspect:r,defaultAspect:c}=Wt();return Object(i.createElement)(u.DropdownMenu,{icon:Zt,label:Object(s.__)("Aspect Ratio"),popoverProps:Ft,toggleProps:t,className:"wp-block-image__aspect-ratio"},e=>{let{onClose:t}=e;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(Qt,{isDisabled:n,onClick:e=>{r(e),t()},value:o,aspectRatios:[{title:Object(s.__)("Original"),aspect:c},{title:Object(s.__)("Square"),aspect:1}]}),Object(i.createElement)(Qt,{label:Object(s.__)("Landscape"),isDisabled:n,onClick:e=>{r(e),t()},value:o,aspectRatios:[{title:Object(s.__)("16:10"),aspect:1.6},{title:Object(s.__)("16:9"),aspect:16/9},{title:Object(s.__)("4:3"),aspect:4/3},{title:Object(s.__)("3:2"),aspect:1.5}]}),Object(i.createElement)(Qt,{label:Object(s.__)("Portrait"),isDisabled:n,onClick:e=>{r(e),t()},value:o,aspectRatios:[{title:Object(s.__)("10:16"),aspect:.625},{title:Object(s.__)("9:16"),aspect:9/16},{title:Object(s.__)("3:4"),aspect:3/4},{title:Object(s.__)("2:3"),aspect:2/3}]}))})}var en=Object(i.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(P.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"}));function tn(){const{isInProgress:e,rotateClockwise:t}=Wt();return Object(i.createElement)(u.ToolbarButton,{icon:en,label:Object(s.__)("Rotate"),onClick:t,disabled:e})}function nn(){const{isInProgress:e,apply:t,cancel:n}=Wt();return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(u.ToolbarButton,{onClick:t,disabled:e},Object(s.__)("Apply")),Object(i.createElement)(u.ToolbarButton,{onClick:n},Object(s.__)("Cancel")))}function on(e){let{url:t,width:n,height:o,clientWidth:r,naturalHeight:c,naturalWidth:l}=e;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(Kt,{url:t,width:n,height:o,clientWidth:r,naturalHeight:c,naturalWidth:l}),Object(i.createElement)(W.b,null,Object(i.createElement)(u.ToolbarGroup,null,Object(i.createElement)(Yt,null),Object(i.createElement)(u.ToolbarItem,null,e=>Object(i.createElement)(Jt,{toggleProps:e})),Object(i.createElement)(tn,null)),Object(i.createElement)(u.ToolbarGroup,null,Object(i.createElement)(nn,null))))}const rn=[25,50,75,100];function cn(e){let{imageWidth:t,imageHeight:n,imageSizeOptions:o=[],isResizable:r=!0,slug:c,width:l,height:d,onChange:b,onChangeImage:p=a.noop}=e;const{currentHeight:m,currentWidth:f,updateDimension:h,updateDimensions:g}=function(e,t,n,o,r){var c,l;const[a,s]=Object(i.useState)(null!==(c=null!=t?t:o)&&void 0!==c?c:""),[u,d]=Object(i.useState)(null!==(l=null!=e?e:n)&&void 0!==l?l:"");return Object(i.useEffect)(()=>{void 0===t&&void 0!==o&&s(o),void 0===e&&void 0!==n&&d(n)},[o,n]),Object(i.useEffect)(()=>{void 0!==t&&Number.parseInt(t)!==Number.parseInt(a)&&s(t),void 0!==e&&Number.parseInt(e)!==Number.parseInt(u)&&d(e)},[t,e]),{currentHeight:u,currentWidth:a,updateDimension:(e,t)=>{"width"===e?s(t):d(t),r({[e]:""===t?void 0:parseInt(t,10)})},updateDimensions:(e,t)=>{d(null!=e?e:n),s(null!=t?t:o),r({height:e,width:t})}}}(d,l,n,t,b);return Object(i.createElement)(i.Fragment,null,!Object(a.isEmpty)(o)&&Object(i.createElement)(u.SelectControl,{label:Object(s.__)("Image size"),value:c,options:o,onChange:p}),r&&Object(i.createElement)("div",{className:"block-editor-image-size-control"},Object(i.createElement)("p",{className:"block-editor-image-size-control__row"},Object(s.__)("Image dimensions")),Object(i.createElement)("div",{className:"block-editor-image-size-control__row"},Object(i.createElement)(u.TextControl,{type:"number",className:"block-editor-image-size-control__width",label:Object(s.__)("Width"),value:f,min:1,onChange:e=>h("width",e)}),Object(i.createElement)(u.TextControl,{type:"number",className:"block-editor-image-size-control__height",label:Object(s.__)("Height"),value:m,min:1,onChange:e=>h("height",e)})),Object(i.createElement)("div",{className:"block-editor-image-size-control__row"},Object(i.createElement)(u.ButtonGroup,{"aria-label":Object(s.__)("Image size presets")},rn.map(e=>{const o=Math.round(t*(e/100)),r=Math.round(n*(e/100)),c=f===o&&m===r;return Object(i.createElement)(u.Button,{key:e,isSmall:!0,variant:c?"primary":void 0,isPressed:c,onClick:()=>g(r,o)},e,"%")})),Object(i.createElement)(u.Button,{isSmall:!0,onClick:()=>g()},Object(s.__)("Reset")))))}var ln=n("p3NJ"),an=n("1oY3"),sn=n("0E5u"),un=n("btIw"),dn=n("1CF3");var bn=e=>{let{value:t,onChange:n=a.noop,settings:o}=e;if(!o||!o.length)return null;const r=e=>o=>{n({...t,[e.id]:o})},c=o.map(e=>Object(i.createElement)(u.ToggleControl,{className:"block-editor-link-control__setting",key:e.id,label:e.title,onChange:r(e),checked:!!t&&!!t[e.id]}));return Object(i.createElement)("fieldset",{className:"block-editor-link-control__settings"},Object(i.createElement)(u.VisuallyHidden,{as:"legend"},Object(s.__)("Currently selected link settings")),c)},pn=n("9Do8"),mn=n.n(pn),fn=n("Mmq9");class hn extends i.Component{constructor(e){super(e),this.onChange=this.onChange.bind(this),this.onFocus=this.onFocus.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.selectLink=this.selectLink.bind(this),this.handleOnClick=this.handleOnClick.bind(this),this.bindSuggestionNode=this.bindSuggestionNode.bind(this),this.autocompleteRef=e.autocompleteRef||Object(i.createRef)(),this.inputRef=Object(i.createRef)(),this.updateSuggestions=Object(a.debounce)(this.updateSuggestions.bind(this),200),this.suggestionNodes=[],this.isUpdatingSuggestions=!1,this.state={suggestions:[],showSuggestions:!1,selectedSuggestion:null,suggestionsListboxId:"",suggestionOptionIdPrefix:""}}componentDidUpdate(e){const{showSuggestions:t,selectedSuggestion:n}=this.state,{value:o,__experimentalShowInitialSuggestions:r=!1}=this.props;t&&null!==n&&this.suggestionNodes[n]&&!this.scrollingIntoView&&(this.scrollingIntoView=!0,mn()(this.suggestionNodes[n],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),this.props.setTimeout(()=>{this.scrollingIntoView=!1},100)),e.value===o||this.props.disableSuggestions||this.isUpdatingSuggestions||(null!=o&&o.length?this.updateSuggestions(o):r&&this.updateSuggestions())}componentDidMount(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}componentWillUnmount(){var e,t;null===(e=this.suggestionsRequest)||void 0===e||null===(t=e.cancel)||void 0===t||t.call(e),delete this.suggestionsRequest}bindSuggestionNode(e){return t=>{this.suggestionNodes[e]=t}}shouldShowInitialSuggestions(){const{suggestions:e}=this.state,{__experimentalShowInitialSuggestions:t=!1,value:n}=this.props;return!this.isUpdatingSuggestions&&t&&!(n&&n.length)&&!(e&&e.length)}updateSuggestions(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{__experimentalFetchLinkSuggestions:n,__experimentalHandleURLSuggestions:o}=this.props;if(!n)return;const r=!(null!==(e=t)&&void 0!==e&&e.length);if(t=t.trim(),!r&&(t.length<2||!o&&Object(fn.isURL)(t)))return void this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1});this.isUpdatingSuggestions=!0,this.setState({selectedSuggestion:null,loading:!0});const c=n(t,{isInitialSuggestions:r});c.then(e=>{this.suggestionsRequest===c&&(this.setState({suggestions:e,loading:!1,showSuggestions:!!e.length}),e.length?this.props.debouncedSpeak(Object(s.sprintf)(Object(s._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length),e.length),"assertive"):this.props.debouncedSpeak(Object(s.__)("No results."),"assertive"),this.isUpdatingSuggestions=!1)}).catch(()=>{this.suggestionsRequest===c&&(this.setState({loading:!1}),this.isUpdatingSuggestions=!1)}),this.suggestionsRequest=c}onChange(e){const t=e.target.value;this.props.onChange(t),this.props.disableSuggestions||this.updateSuggestions(t)}onFocus(){const{suggestions:e}=this.state,{disableSuggestions:t,value:n}=this.props;!n||t||this.isUpdatingSuggestions||e&&e.length||this.updateSuggestions(n)}onKeyDown(e){const{showSuggestions:t,selectedSuggestion:n,suggestions:o,loading:r}=this.state;if(!t||!o.length||r){switch(e.keyCode){case L.UP:0!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(0,0));break;case L.DOWN:this.props.value.length!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length));break;case L.ENTER:this.props.onSubmit&&this.props.onSubmit(null,e)}return}const c=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case L.UP:{e.preventDefault();const t=n?n-1:o.length-1;this.setState({selectedSuggestion:t});break}case L.DOWN:{e.preventDefault();const t=null===n||n===o.length-1?0:n+1;this.setState({selectedSuggestion:t});break}case L.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(c),this.props.speak(Object(s.__)("Link selected.")));break;case L.ENTER:null!==this.state.selectedSuggestion?(this.selectLink(c),this.props.onSubmit&&this.props.onSubmit(c,e)):this.props.onSubmit&&this.props.onSubmit(null,e)}}selectLink(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}handleOnClick(e){this.selectLink(e),this.inputRef.current.focus()}static getDerivedStateFromProps(e,t){let{value:n,instanceId:o,disableSuggestions:r,__experimentalShowInitialSuggestions:c=!1}=e,{showSuggestions:l}=t,i=l;const a=n&&n.length;return c||a||(i=!1),!0===r&&(i=!1),{showSuggestions:i,suggestionsListboxId:"block-editor-url-input-suggestions-"+o,suggestionOptionIdPrefix:"block-editor-url-input-suggestion-"+o}}render(){return Object(i.createElement)(i.Fragment,null,this.renderControl(),this.renderSuggestions())}renderControl(){const{label:e,className:t,isFullWidth:n,instanceId:o,placeholder:r=Object(s.__)("Paste URL or type to search"),__experimentalRenderControl:c,value:l=""}=this.props,{loading:a,showSuggestions:d,selectedSuggestion:b,suggestionsListboxId:p,suggestionOptionIdPrefix:m}=this.state,f={id:"url-input-control-"+o,label:e,className:V()("block-editor-url-input",t,{"is-full-width":n})},h={value:l,required:!0,className:"block-editor-url-input__input",type:"text",onChange:this.onChange,onFocus:this.onFocus,placeholder:r,onKeyDown:this.onKeyDown,role:"combobox","aria-label":Object(s.__)("URL"),"aria-expanded":d,"aria-autocomplete":"list","aria-owns":p,"aria-activedescendant":null!==b?`${m}-${b}`:void 0,ref:this.inputRef};return c?c(f,h,a):Object(i.createElement)(u.BaseControl,f,Object(i.createElement)("input",h),a&&Object(i.createElement)(u.Spinner,null))}renderSuggestions(){const{className:e,__experimentalRenderSuggestions:t,value:n="",__experimentalShowInitialSuggestions:o=!1}=this.props,{showSuggestions:r,suggestions:c,selectedSuggestion:s,suggestionsListboxId:d,suggestionOptionIdPrefix:b,loading:p}=this.state,m={id:d,ref:this.autocompleteRef,role:"listbox"},f=(e,t)=>({role:"option",tabIndex:"-1",id:`${b}-${t}`,ref:this.bindSuggestionNode(t),"aria-selected":t===s});return Object(a.isFunction)(t)&&r&&c.length?t({suggestions:c,selectedSuggestion:s,suggestionsListProps:m,buildSuggestionItemProps:f,isLoading:p,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:o&&!(n&&n.length)}):!Object(a.isFunction)(t)&&r&&c.length?Object(i.createElement)(u.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(i.createElement)("div",Object(l.a)({},m,{className:V()("block-editor-url-input__suggestions",e+"__suggestions")}),c.map((e,t)=>Object(i.createElement)(u.Button,Object(l.a)({},f(0,t),{key:e.id,className:V()("block-editor-url-input__suggestion",{"is-selected":t===s}),onClick:()=>this.handleOnClick(e)}),e.title)))):null}}var gn=Object(Q.compose)(Q.withSafeTimeout,u.withSpokenMessages,Q.withInstanceId,Object(_.withSelect)((e,t)=>{if(Object(a.isFunction)(t.__experimentalFetchLinkSuggestions))return;const{getSettings:n}=e(S.a);return{__experimentalFetchLinkSuggestions:n().__experimentalFetchLinkSuggestions}}))(hn),On=n("Q4Sy");var vn=e=>{let t,{searchTerm:n,onClick:o,itemProps:r,isSelected:c,buttonText:d}=e;return n?(t=d?Object(a.isFunction)(d)?d(n):d:Object(i.createInterpolateElement)(Object(s.sprintf)(Object(s.__)("Create: <mark>%s</mark>"),n),{mark:Object(i.createElement)("mark",null)}),Object(i.createElement)(u.Button,Object(l.a)({},r,{className:V()("block-editor-link-control__search-create block-editor-link-control__search-item",{"is-selected":c}),onClick:o}),Object(i.createElement)(A.a,{className:"block-editor-link-control__search-item-icon",icon:On.a}),Object(i.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(i.createElement)("span",{className:"block-editor-link-control__search-item-title"},t)))):null};var jn=Object(i.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(P.Path,{d:"M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"}));var kn=e=>{let{itemProps:t,suggestion:n,isSelected:o=!1,onClick:r,isURL:c=!1,searchTerm:a="",shouldShowType:d=!1}=e;return Object(i.createElement)(u.Button,Object(l.a)({},t,{onClick:r,className:V()("block-editor-link-control__search-item",{"is-selected":o,"is-url":c,"is-entity":!c})}),c&&Object(i.createElement)(A.a,{className:"block-editor-link-control__search-item-icon",icon:jn}),Object(i.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(i.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(i.createElement)(u.TextHighlight,{text:n.title,highlight:a})),Object(i.createElement)("span",{"aria-hidden":!c,className:"block-editor-link-control__search-item-info"},!c&&(Object(fn.filterURLForDisplay)(Object(fn.safeDecodeURI)(n.url))||""),c&&Object(s.__)("Press ENTER to add this link"))),d&&n.type&&Object(i.createElement)("span",{className:"block-editor-link-control__search-item-type"},"post_tag"===n.type?"tag":n.type))};const _n=[{id:"opensInNewTab",title:Object(s.__)("Open in new tab")}];function yn(e){let{instanceId:t,withCreateSuggestion:n,currentInputValue:o,handleSuggestionClick:r,suggestionsListProps:c,buildSuggestionItemProps:a,suggestions:d,selectedSuggestion:b,isLoading:p,isInitialSuggestions:m,createSuggestionButtonText:f,suggestionsQuery:h}=e;const g=V()("block-editor-link-control__search-results",{"is-loading":p}),O=["url","mailto","tel","internal"],v=1===d.length&&O.includes(d[0].type.toLowerCase()),j=n&&!v&&!m,k=!(null!=h&&h.type),_="block-editor-link-control-search-results-label-"+t,y=m?Object(s.__)("Recently updated"):Object(s.sprintf)(Object(s.__)('Search results for "%s"'),o),E=Object(i.createElement)(m?i.Fragment:u.VisuallyHidden,{},Object(i.createElement)("span",{className:"block-editor-link-control__search-results-label",id:_},y));return Object(i.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},E,Object(i.createElement)("div",Object(l.a)({},c,{className:g,"aria-labelledby":_}),d.map((e,t)=>j&&"__CREATE__"===e.type?Object(i.createElement)(vn,{searchTerm:o,buttonText:f,onClick:()=>r(e),key:e.type,itemProps:a(e,t),isSelected:t===b}):"__CREATE__"===e.type?null:Object(i.createElement)(kn,{key:`${e.id}-${e.type}`,itemProps:a(e,t),suggestion:e,index:t,onClick:()=>{r(e)},isSelected:t===b,isURL:O.includes(e.type.toLowerCase()),searchTerm:o,shouldShowType:k}))))}function En(e){const t=Object(a.startsWith)(e,"#");return Object(fn.isURL)(e)||e&&e.includes("www.")||t}const Cn=()=>Promise.resolve([]),Sn=e=>{let t="URL";const n=Object(fn.getProtocol)(e)||"";return n.includes("mailto")&&(t="mailto"),n.includes("tel")&&(t="tel"),Object(a.startsWith)(e,"#")&&(t="internal"),Promise.resolve([{id:e,title:e,url:"URL"===t?Object(fn.prependHTTP)(e):e,type:t}])};function wn(e,t,n,o){const{fetchSearchSuggestions:r}=Object(_.useSelect)(e=>{const{getSettings:t}=e(S.a);return{fetchSearchSuggestions:t().__experimentalFetchLinkSuggestions}},[]),c=t?Sn:Cn;return Object(i.useCallback)((t,l)=>{let{isInitialSuggestions:i}=l;return En(t)?c(t,{isInitialSuggestions:i}):(async(e,t,n,o,r,c)=>{const{isInitialSuggestions:l}=t;let i=await Promise.all([n(e,t),o(e)]);return i=!e.includes(" ")&&c&&!l?i[0].concat(i[1]):i[0],l||En(e)||!r?i:i.concat({title:e,url:e,type:"__CREATE__"})})(t,{...e,isInitialSuggestions:i},r,c,n,o)},[c,r,n])}const In=()=>Promise.resolve([]),Bn=Object(i.forwardRef)((e,t)=>{let{value:n,children:o,currentLink:r={},className:c=null,placeholder:l=null,withCreateSuggestion:u=!1,onCreateSuggestion:d=a.noop,onChange:b=a.noop,onSelect:p=a.noop,showSuggestions:m=!0,renderSuggestions:f=(e=>Object(i.createElement)(yn,e)),fetchSuggestions:h=null,allowDirectEntry:g=!0,showInitialSuggestions:O=!1,suggestionsQuery:v={},withURLSuggestion:j=!0,createSuggestionButtonText:k,useLabel:_=!1}=e;const y=wn(v,g,u,j),E=m?h||y:In,C=Object(Q.useInstanceId)(Bn),[S,w]=Object(i.useState)(),I=async e=>{let t=e;if("__CREATE__"!==e.type)(g||t&&Object.keys(t).length>=1)&&p({...Object(a.omit)(r,"id","url"),...t},t);else try{var n;t=await d(e.title),null!==(n=t)&&void 0!==n&&n.url&&p(t)}catch(e){}},B=V()(c,{"has-no-label":!_});return Object(i.createElement)("div",{className:"block-editor-link-control__search-input-container"},Object(i.createElement)(gn,{label:_?"URL":void 0,className:B,value:n,onChange:(e,t)=>{b(e),w(t)},placeholder:null!=l?l:Object(s.__)("Search or type url"),__experimentalRenderSuggestions:m?e=>f({...e,instanceId:C,withCreateSuggestion:u,currentInputValue:n,createSuggestionButtonText:k,suggestionsQuery:v,handleSuggestionClick:t=>{e.handleSuggestionClick&&e.handleSuggestionClick(t),I(t)}}):null,__experimentalFetchLinkSuggestions:E,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:O,onSubmit:(e,t)=>{var o;const r=e||S;r||null!=n&&null!==(o=n.trim())&&void 0!==o&&o.length?I(r||{url:n}):t.preventDefault()},ref:t}),o)});var xn=Bn,Tn=n("FnAh"),Pn=n("B9Az"),Rn=n("Mp0b");const{Slot:Nn,Fill:Ln}=Object(u.createSlotFill)("BlockEditorLinkControlViewer");function Mn(e,t){switch(t.type){case"RESOLVED":return{...e,isFetching:!1,richData:t.richData};case"ERROR":return{...e,isFetching:!1,richData:null};case"LOADING":return{...e,isFetching:!0};default:throw new Error("Unexpected action type "+t.type)}}var An=function(e){const[t,n]=Object(i.useReducer)(Mn,{richData:null,isFetching:!1}),{fetchRichUrlData:o}=Object(_.useSelect)(e=>{const{getSettings:t}=e(S.a);return{fetchRichUrlData:t().__experimentalFetchRichUrlData}},[]);return Object(i.useEffect)(()=>{if(null!=e&&e.length&&o&&"undefined"!=typeof AbortController){n({type:"LOADING"});const t=new window.AbortController,r=t.signal;return o(e,{signal:r}).then(e=>{n({type:"RESOLVED",richData:e})}).catch(()=>{r.aborted||n({type:"ERROR"})}),()=>{t.abort()}}},[e]),t};function Dn(e){let{value:t,onEditClick:n,hasRichPreviews:o=!1,hasUnlinkControl:r=!1,onRemove:c}=e;const l=o?null==t?void 0:t.url:null,{richData:a,isFetching:d}=An(l),b=a&&Object.keys(a).length,p=t&&Object(fn.filterURLForDisplay)(Object(fn.safeDecodeURI)(t.url),16)||"",m=(null==a?void 0:a.title)||(null==t?void 0:t.title)||p,f=!t.url.length;let h;return h=null!=a&&a.icon?Object(i.createElement)("img",{src:null==a?void 0:a.icon,alt:""}):f?Object(i.createElement)(A.a,{icon:Tn.a,size:32}):Object(i.createElement)(A.a,{icon:jn}),Object(i.createElement)("div",{"aria-label":Object(s.__)("Currently selected"),"aria-selected":"true",className:V()("block-editor-link-control__search-item",{"is-current":!0,"is-rich":b,"is-fetching":!!d,"is-preview":!0,"is-error":f})},Object(i.createElement)("div",{className:"block-editor-link-control__search-item-top"},Object(i.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(i.createElement)("span",{className:V()("block-editor-link-control__search-item-icon",{"is-image":null==a?void 0:a.icon})},h),Object(i.createElement)("span",{className:"block-editor-link-control__search-item-details"},f?Object(i.createElement)("span",{className:"block-editor-link-control__search-item-error-notice"},"Link is empty"):Object(i.createElement)(i.Fragment,null,Object(i.createElement)(u.ExternalLink,{className:"block-editor-link-control__search-item-title",href:t.url},Object(dn.__unstableStripHTML)(m)),(null==t?void 0:t.url)&&Object(i.createElement)("span",{className:"block-editor-link-control__search-item-info"},p)))),Object(i.createElement)(u.Button,{icon:Pn.a,label:Object(s.__)("Edit"),className:"block-editor-link-control__search-item-action",onClick:n,iconSize:24}),r&&Object(i.createElement)(u.Button,{icon:Rn.a,label:Object(s.__)("Unlink"),className:"block-editor-link-control__search-item-action block-editor-link-control__unlink",onClick:c,iconSize:24}),Object(i.createElement)(Nn,{fillProps:t})),(b&&((null==a?void 0:a.image)||(null==a?void 0:a.description))||d)&&Object(i.createElement)("div",{className:"block-editor-link-control__search-item-bottom"},((null==a?void 0:a.image)||d)&&Object(i.createElement)("div",{"aria-hidden":!(null!=a&&a.image),className:V()("block-editor-link-control__search-item-image",{"is-placeholder":!(null!=a&&a.image)})},(null==a?void 0:a.image)&&Object(i.createElement)("img",{src:null==a?void 0:a.image,alt:""})),((null==a?void 0:a.description)||d)&&Object(i.createElement)("div",{"aria-hidden":!(null!=a&&a.description),className:V()("block-editor-link-control__search-item-description",{"is-placeholder":!(null!=a&&a.description)})},(null==a?void 0:a.description)&&Object(i.createElement)(u.__experimentalText,{truncate:!0,numberOfLines:"2"},a.description))))}const Fn=e=>{let t=!1;return{promise:new Promise((n,o)=>{e.then(e=>t?o({isCanceled:!0}):n(e),e=>o(t?{isCanceled:!0}:e))}),cancel(){t=!0}}};function zn(e){var t,n,o;let{searchInputPlaceholder:r,value:c,settings:l=_n,onChange:d=a.noop,onRemove:b,noDirectEntry:p=!1,showSuggestions:m=!0,showInitialSuggestions:f,forceIsEditingLink:h,createSuggestion:g,withCreateSuggestion:O,inputValue:v="",suggestionsQuery:j={},noURLSuggestion:k=!1,createSuggestionButtonText:_,hasRichPreviews:y=!1,hasTextControl:E=!1,renderControlBottom:C=null}=e;void 0===O&&g&&(O=!0);const S=Object(i.useRef)(!0),w=Object(i.useRef)(),I=Object(i.useRef)(),[B,x]=Object(i.useState)((null==c?void 0:c.url)||""),[T,P]=Object(i.useState)((null==c?void 0:c.title)||""),R=v||B,[N,M]=Object(i.useState)(void 0!==h?h:!c||!c.url),A=Object(i.useRef)(!1),D=!(null!=R&&null!==(t=R.trim())&&void 0!==t&&t.length);function F(){var e;A.current=!(null===(e=w.current)||void 0===e||!e.contains(w.current.ownerDocument.activeElement)),M(!1)}Object(i.useEffect)(()=>{void 0!==h&&h!==N&&M(h)},[h]),Object(i.useEffect)(()=>{if(S.current)return void(S.current=!1);const e=null!=I&&I.current?1:0;(dn.focus.focusable.find(w.current)[e]||w.current).focus(),A.current=!1},[N]),Object(i.useEffect)(()=>{null!=c&&c.title&&c.title!==T&&P(c.title),null!=c&&c.url&&x(c.url)},[c]);const{createPage:z,isCreatingPage:H,errorMessage:G}=function(e){const t=Object(i.useRef)(),[n,o]=Object(i.useState)(!1),[r,c]=Object(i.useState)(null);return Object(i.useEffect)(()=>()=>{t.current&&t.current.cancel()},[]),{createPage:async function(n){o(!0),c(null);try{return t.current=Fn(Promise.resolve(e(n))),await t.current.promise}catch(e){if(e&&e.isCanceled)return;throw c(e.message||Object(s.__)("An unknown error occurred during creation. Please try again.")),e}finally{o(!1)}},isCreatingPage:n,errorMessage:r}}(g),U=()=>{R===(null==c?void 0:c.url)&&T===(null==c?void 0:c.title)||d({url:R,title:T}),F()},W=b&&c&&!N&&!H,q=!(null==l||!l.length),K=(null==c||null===(n=c.url)||void 0===n||null===(o=n.trim())||void 0===o?void 0:o.length)>0&&E;return Object(i.createElement)("div",{tabIndex:-1,ref:w,className:"block-editor-link-control"},H&&Object(i.createElement)("div",{className:"block-editor-link-control__loading"},Object(i.createElement)(u.Spinner,null)," ",Object(s.__)("Creating"),"…"),(N||!c)&&!H&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:V()({"block-editor-link-control__search-input-wrapper":!0,"has-text-control":K})},K&&Object(i.createElement)(u.TextControl,{ref:I,className:"block-editor-link-control__field block-editor-link-control__text-content",label:"Text",value:T,onChange:P,onKeyDown:e=>{const{keyCode:t}=e;t!==L.ENTER||D||(e.preventDefault(),U())}}),Object(i.createElement)(xn,{currentLink:c,className:"block-editor-link-control__field block-editor-link-control__search-input",placeholder:r,value:R,withCreateSuggestion:O,onCreateSuggestion:z,onChange:x,onSelect:e=>{d({...e,title:T||(null==e?void 0:e.title)}),F()},showInitialSuggestions:f,allowDirectEntry:!p,showSuggestions:m,suggestionsQuery:j,withURLSuggestion:!k,createSuggestionButtonText:_,useLabel:K},Object(i.createElement)("div",{className:"block-editor-link-control__search-actions"},Object(i.createElement)(u.Button,{onClick:U,label:Object(s.__)("Submit"),icon:un.a,className:"block-editor-link-control__search-submit",disabled:D})))),G&&Object(i.createElement)(u.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},G)),c&&!N&&!H&&Object(i.createElement)(Dn,{key:null==c?void 0:c.url,value:c,onEditClick:()=>M(!0),hasRichPreviews:y,hasUnlinkControl:W,onRemove:b}),q&&Object(i.createElement)("div",{className:"block-editor-link-control__tools"},Object(i.createElement)(bn,{value:c,settings:l,onChange:d})),C&&C())}zn.ViewerFill=Ln;var Hn=zn,Vn=n("weEX"),Gn=n("gdqT"),Un=n("rH4q"),Wn=n("NTP4");var qn=Object(u.withFilters)("editor.MediaUpload")(()=>null);var Kn=function(e){let{fallback:t=null,children:n}=e;return Object(_.useSelect)(e=>{const{getSettings:t}=e(S.a);return!!t().mediaUpload},[])?n:t};var $n=Object(Q.compose)([Object(_.withDispatch)(e=>{const{createNotice:t,removeNotice:n}=e(Vt.store);return{createNotice:t,removeNotice:n}}),Object(u.withFilters)("editor.MediaReplaceFlow")])(e=>{let{mediaURL:t,mediaId:n,allowedTypes:o,accept:r,onSelect:c,onSelectURL:l,onFilesUpload:d=a.noop,name:b=Object(s.__)("Replace"),createNotice:p,removeNotice:m,children:f}=e;const[h,g]=Object(i.useState)(t),O=Object(_.useSelect)(e=>e(S.a).getSettings().mediaUpload,[]),v=Object(i.createRef)(),j=Object(a.uniqueId)("block-editor/media-replace-flow/error-notice/"),k=e=>{const t=document.createElement("div");t.innerHTML=Object(i.renderToString)(e);const n=t.textContent||t.innerText||"";setTimeout(()=>{p("error",n,{speak:!0,id:j,isDismissible:!0})},1e3)},y=e=>{g(e.url),c(e),Object(Gn.speak)(Object(s.__)("The media file has been replaced")),m(j)},E=e=>{e.keyCode===L.DOWN&&(e.preventDefault(),e.target.click())};return Object(i.createElement)(u.Dropdown,{popoverProps:{isAlternate:!0},contentClassName:"block-editor-media-replace-flow__options",renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return Object(i.createElement)(u.ToolbarButton,{ref:v,"aria-expanded":t,"aria-haspopup":"true",onClick:n,onKeyDown:E},b)},renderContent:e=>{let{onClose:t}=e;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(u.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu"},Object(i.createElement)(qn,{value:n,onSelect:e=>y(e),allowedTypes:o,render:e=>{let{open:t}=e;return Object(i.createElement)(u.MenuItem,{icon:Un.a,onClick:t},Object(s.__)("Open Media Library"))}}),Object(i.createElement)(Kn,null,Object(i.createElement)(u.FormFileUpload,{onChange:e=>{(e=>{const t=e.target.files;d(t);O({allowedTypes:o,filesList:t,onFileChange:e=>{let[t]=e;y(t)},onError:k})})(e)},accept:r,render:e=>{let{openFileDialog:t}=e;return Object(i.createElement)(u.MenuItem,{icon:Wn.a,onClick:()=>{t()}},Object(s.__)("Upload"))}})),f),l&&Object(i.createElement)("form",{className:"block-editor-media-flow__url-input"},Object(i.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},Object(s.__)("Current media URL:")),Object(i.createElement)(Hn,{value:{url:h},settings:[],showSuggestions:!1,onChange:e=>{let{url:t}=e;g(t),l(t),v.current.focus()}})))}})}),Yn=n("NMb1"),Xn=n.n(Yn);function Zn(e){let{url:t,urlLabel:n,className:o}=e;const r=V()(o,"block-editor-url-popover__link-viewer-url");return t?Object(i.createElement)(u.ExternalLink,{className:r,href:t},n||Object(fn.filterURLForDisplay)(Object(fn.safeDecodeURI)(t))):Object(i.createElement)("span",{className:r})}function Qn(e){let{additionalControls:t,children:n,renderSettings:o,position:r="bottom center",focusOnMount:c="firstElement",...a}=e;const[d,b]=Object(i.useState)(!1),p=!!o&&d;return Object(i.createElement)(u.Popover,Object(l.a)({className:"block-editor-url-popover",focusOnMount:c,position:r},a),Object(i.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(i.createElement)("div",{className:"block-editor-url-popover__row"},n,!!o&&Object(i.createElement)(u.Button,{className:"block-editor-url-popover__settings-toggle",icon:qe.a,label:Object(s.__)("Link settings"),onClick:()=>{b(!d)},"aria-expanded":d})),p&&Object(i.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},o())),t&&!p&&Object(i.createElement)("div",{className:"block-editor-url-popover__additional-controls"},t))}Qn.LinkEditor=function(e){let{autocompleteRef:t,className:n,onChangeInputValue:o,value:r,...c}=e;return Object(i.createElement)("form",Object(l.a)({className:V()("block-editor-url-popover__link-editor",n)},c),Object(i.createElement)(gn,{value:r,onChange:o,autocompleteRef:t}),Object(i.createElement)(u.Button,{icon:un.a,label:Object(s.__)("Apply"),type:"submit"}))},Qn.LinkViewer=function(e){let{className:t,linkClassName:n,onEditLinkClick:o,url:r,urlLabel:c,...a}=e;return Object(i.createElement)("div",Object(l.a)({className:V()("block-editor-url-popover__link-viewer",t)},a),Object(i.createElement)(Zn,{url:r,urlLabel:c,className:n}),o&&Object(i.createElement)(u.Button,{icon:Pn.a,label:Object(s.__)("Edit"),onClick:o}))};var Jn=Qn;const eo=e=>{let{src:t,onChange:n,onSubmit:o,onClose:r}=e;return Object(i.createElement)(Jn,{onClose:r},Object(i.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:o},Object(i.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"text","aria-label":Object(s.__)("URL"),placeholder:Object(s.__)("Paste or type URL"),onChange:n,value:t}),Object(i.createElement)(u.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:un.a,label:Object(s.__)("Apply"),type:"submit"})))};var to=Object(u.withFilters)("editor.MediaPlaceholder")((function(e){let{value:t={},allowedTypes:n,className:o,icon:r,labels:c={},mediaPreview:l,notices:d,isAppender:b,accept:p,addToGallery:m,multiple:f=!1,handleUpload:h=!0,dropZoneUIOnly:g,disableDropZone:O,disableMediaButtons:v,onError:j,onSelect:k,onCancel:y,onSelectURL:E,onDoubleClick:C,onFilesPreUpload:w=a.noop,onHTMLDrop:I=a.noop,children:B,mediaLibraryButton:x,placeholder:T,style:P}=e;const R=Object(_.useSelect)(e=>{const{getSettings:t}=e(S.a);return t().mediaUpload},[]),[N,L]=Object(i.useState)(""),[M,A]=Object(i.useState)(!1);Object(i.useEffect)(()=>{var e;L(null!==(e=null==t?void 0:t.src)&&void 0!==e?e:"")},[null==t?void 0:t.src]);const D=e=>{L(e.target.value)},F=()=>{A(!0)},z=()=>{A(!1)},H=e=>{e.preventDefault(),N&&E&&(E(N),z())},G=e=>{if(!h)return k(e);let o;if(w(e),f)if(m){let e=[];o=n=>{const o=(null!=t?t:[]).filter(t=>t.id?!e.some(e=>{let{id:n}=e;return Number(n)===Number(t.id)}):!e.some(e=>{let{urlSlug:n}=e;return t.url.includes(n)}));k(o.concat(n)),e=n.map(e=>{const t=e.url.lastIndexOf("."),n=e.url.slice(0,t);return{id:e.id,urlSlug:n}})}}else o=k;else o=e=>{let[t]=e;return k(t)};R({allowedTypes:n,filesList:e,onFileChange:o,onError:j})},U=e=>{G(e.target.files)},W=null!=T?T:e=>{let{instructions:t,title:a}=c;if(R||E||(t=Object(s.__)("To edit this block, you need permission to upload media.")),void 0===t||void 0===a){const e=null!=n?n:[],[o]=e,r=1===e.length,c=r&&"audio"===o,l=r&&"image"===o,i=r&&"video"===o;void 0===t&&R&&(t=Object(s.__)("Upload a media file or pick one from your media library."),c?t=Object(s.__)("Upload an audio file, pick one from your media library, or add one with a URL."):l?t=Object(s.__)("Upload an image file, pick one from your media library, or add one with a URL."):i&&(t=Object(s.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===a&&(a=Object(s.__)("Media"),c?a=Object(s.__)("Audio"):l?a=Object(s.__)("Image"):i&&(a=Object(s.__)("Video")))}const p=V()("block-editor-media-placeholder",o,{"is-appender":b});return Object(i.createElement)(u.Placeholder,{icon:r,label:a,instructions:t,className:p,notices:d,onDoubleClick:C,preview:l,style:P},e,B)},q=()=>O?null:Object(i.createElement)(u.DropZone,{onFilesDrop:G,onHTMLDrop:I}),K=()=>y&&Object(i.createElement)(u.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(s.__)("Cancel"),variant:"link",onClick:y},Object(s.__)("Cancel")),$=()=>E&&Object(i.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},Object(i.createElement)(u.Button,{className:"block-editor-media-placeholder__button",onClick:F,isPressed:M,variant:"tertiary"},Object(s.__)("Insert from URL")),M&&Object(i.createElement)(eo,{src:N,onChange:D,onSubmit:H,onClose:z}));return g||v?(g&&Xn()("wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop",{since:"5.4",alternative:"disableMediaButtons"}),Object(i.createElement)(Kn,null,q())):Object(i.createElement)(Kn,{fallback:W($())},(()=>{const e=null!=x?x:e=>{let{open:t}=e;return Object(i.createElement)(u.Button,{variant:"tertiary",onClick:()=>{t()}},Object(s.__)("Media Library"))},o=Object(i.createElement)(qn,{addToGallery:m,gallery:f&&!(!n||0===n.length)&&n.every(e=>"image"===e||e.startsWith("image/")),multiple:f,onSelect:k,allowedTypes:n,value:Array.isArray(t)?t.map(e=>{let{id:t}=e;return t}):t.id,render:e});if(R&&b)return Object(i.createElement)(i.Fragment,null,q(),Object(i.createElement)(u.FormFileUpload,{onChange:U,accept:p,multiple:f,render:e=>{let{openFileDialog:t}=e;const n=Object(i.createElement)(i.Fragment,null,Object(i.createElement)(u.Button,{variant:"primary",className:V()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onClick:t},Object(s.__)("Upload")),o,$(),K());return W(n)}}));if(R){const e=Object(i.createElement)(i.Fragment,null,q(),Object(i.createElement)(u.FormFileUpload,{variant:"primary",className:V()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:U,accept:p,multiple:f},Object(s.__)("Upload")),o,$(),K());return W(e)}return W(o)})())}));var no=e=>{let{colorSettings:t,...n}=e;const o=t.map(e=>{let{value:t,onChange:n,...o}=e;return{...o,colorValue:t,onColorChange:n}});return Object(i.createElement)(Ot.a,Object(l.a)({settings:o,gradients:[],disableCustomGradients:!0},n))},oo=n("O6Fj"),ro=n.n(oo),co=n("qRz9");const lo={position:"bottom right",isAlternate:!0};var io=()=>Object(i.createElement)(i.Fragment,null,["bold","italic","link"].map(e=>Object(i.createElement)(u.Slot,{name:"RichText.ToolbarControls."+e,key:e})),Object(i.createElement)(u.Slot,{name:"RichText.ToolbarControls"},e=>{if(!e.length)return null;const t=e.map(e=>{let[{props:t}]=e;return t}).some(e=>{let{isActive:t}=e;return t});return Object(i.createElement)(u.ToolbarItem,null,n=>Object(i.createElement)(u.DropdownMenu,{icon:qe.a,label:Object(s.__)("More"),toggleProps:{...n,className:V()(n.className,{"is-pressed":t}),describedBy:Object(s.__)("Displays more block tools")},controls:Object(a.orderBy)(e.map(e=>{let[{props:t}]=e;return t}),"title"),popoverProps:lo}))}));var ao=e=>{let{inline:t,anchorRef:n}=e;return t?Object(i.createElement)(u.Popover,{noArrow:!0,position:"top center",focusOnMount:!1,anchorRef:n,className:"block-editor-rich-text__inline-format-toolbar",__unstableSlotName:"block-toolbar"},Object(i.createElement)("div",{className:"block-editor-rich-text__inline-format-toolbar-group"},Object(i.createElement)(u.ToolbarGroup,null,Object(i.createElement)(io,null)))):Object(i.createElement)(W.b,{group:"inline"},Object(i.createElement)(io,null))};function so(){const{didAutomaticChange:e,getSettings:t}=Object(_.useSelect)(S.a);return Object(Q.useRefEffect)(n=>{function o(n){const{keyCode:o}=n;n.defaultPrevented||o!==L.DELETE&&o!==L.BACKSPACE&&o!==L.ESCAPE||e()&&(n.preventDefault(),t().__experimentalUndo())}return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}},[])}var uo=n("xTGt");function bo(e){return e.filter(e=>{let{type:t}=e;return/^image\/(?:jpe?g|png|gif)$/.test(t)}).map(e=>`<img src="${Object(uo.createBlobURL)(e)}">`).join("")}var po=n("SVSp");function mo(e,t){if(null!=t&&t.length){let n=e.formats.length;for(;n--;)e.formats[n]=[...t,...e.formats[n]||[]]}}function fo(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}function ho(e){let{allowedFormats:t,formattingControls:n,disableFormats:o}=e;return o?ho.EMPTY_ARRAY:t||n?t||(Xn()("wp.blockEditor.RichText formattingControls prop",{since:"5.4",alternative:"allowedFormats"}),n.map(e=>"core/"+e)):void 0}ho.EMPTY_ARRAY=[];function go(e){let{value:t,pastedBlocks:n=[],onReplace:o,onSplit:r,onSplitMiddle:c,multilineTag:l}=e;if(!o||!r)return;const i=[],[a,s]=Object(co.split)(t),u=n.length>0;let d=-1;const b=Object(co.isEmpty)(a)&&!Object(co.isEmpty)(s);u&&Object(co.isEmpty)(a)||(i.push(r(Object(co.toHTMLString)({value:a,multilineTag:l}),!b)),d+=1),u?(i.push(...n),d+=n.length):c&&i.push(c()),(u||c)&&Object(co.isEmpty)(s)||i.push(r(Object(co.toHTMLString)({value:s,multilineTag:l}),b));o(i,u?d:1,u?-1:0)}function Oo(e,t){return t?Object(co.replace)(e,/\n+/g,co.__UNSTABLE_LINE_SEPARATOR):Object(co.replace)(e,new RegExp(co.__UNSTABLE_LINE_SEPARATOR,"g"),"\n")}function vo(e){const t=Object(i.useRef)(e);return t.current=e,Object(Q.useRefEffect)(e=>{function n(e){const{isSelected:n,disableFormats:o,onChange:r,value:c,formatTypes:l,tagName:i,onReplace:a,onSplit:s,onSplitMiddle:u,__unstableEmbedURLOnPaste:d,multilineTag:b,preserveWhiteSpace:p,pastePlainText:m}=t.current;if(!n)return void e.preventDefault();const{clipboardData:f}=e;let h="",g="";try{h=f.getData("text/plain"),g=f.getData("text/html")}catch(e){try{g=f.getData("Text")}catch(e){return}}if(g=function(e){return e.replace(/.*<!--StartFragment-->/s,"").replace(/<!--EndFragment-->.*/s,"")}(g),g=function(e){const t="<meta charset='utf-8'>";if(e.startsWith(t))return e.slice(t.length);return e}(g),e.preventDefault(),window.console.log("Received HTML:\n\n",g),window.console.log("Received plain text:\n\n",h),o)return void r(Object(co.insert)(c,h));const O=l.reduce((e,t)=>{let{__unstablePasteRule:n}=t;return n&&e===c&&(e=n(c,{html:g,plainText:h})),e},c);if(O!==c)return void r(O);const v=[...Object(dn.getFilesFromDataTransfer)(f)];if("true"===f.getData("rich-text")){const e=f.getData("rich-text-multi-line-tag")||void 0;let t=Object(co.create)({html:g,multilineTag:e,multilineWrapperTags:"li"===e?["ul","ol"]:void 0,preserveWhiteSpace:p});return t=Oo(t,!!b),mo(t,c.activeFormats),void r(Object(co.insert)(c,t))}if(m)return void r(Object(co.insert)(c,Object(co.create)({text:h})));if(v&&v.length&&!g){const e=Object(j.pasteHandler)({HTML:bo(v),mode:"BLOCKS",tagName:i,preserveWhiteSpace:p});return window.console.log("Received items:\n\n",v),void(a&&Object(co.isEmpty)(c)?a(e):go({value:c,pastedBlocks:e,onReplace:a,onSplit:s,onSplitMiddle:u,multilineTag:b}))}let k=a&&s?"AUTO":"INLINE";var _;"AUTO"===k&&Object(co.isEmpty)(c)&&(_=h,Object(po.regexp)(".*").test(_))&&(k="BLOCKS"),d&&Object(co.isEmpty)(c)&&Object(fn.isURL)(h.trim())&&(k="BLOCKS");const y=Object(j.pasteHandler)({HTML:g,plainText:h,mode:k,tagName:i,preserveWhiteSpace:p});if("string"==typeof y){let e=Object(co.create)({html:y});e=Oo(e,!!b),mo(e,c.activeFormats),r(Object(co.insert)(c,e))}else y.length>0&&(a&&Object(co.isEmpty)(c)?a(y,y.length-1,-1):go({value:c,pastedBlocks:y,onReplace:a,onSplit:s,onSplitMiddle:u,multilineTag:b}))}return e.addEventListener("paste",n),()=>{e.removeEventListener("paste",n)}},[])}function jo(e){const{__unstableMarkLastChangeAsPersistent:t,__unstableMarkAutomaticChange:n}=Object(_.useDispatch)(S.a),o=Object(i.useRef)(e);return o.current=e,Object(Q.useRefEffect)(e=>{function r(){const{value:e,onReplace:t}=o.current;if(!t)return;const{start:r,text:c}=e;if(" "!==c.slice(r-1,r))return;const l=c.slice(0,r).trim(),i=Object(j.getBlockTransforms)("from").filter(e=>{let{type:t}=e;return"prefix"===t}),a=Object(j.findTransform)(i,e=>{let{prefix:t}=e;return l===t});if(!a)return;const s=Object(co.toHTMLString)({value:Object(co.slice)(e,r,c.length)});t([a.transform(s)]),n()}function c(e){const{inputType:c,type:l}=e,{value:i,onChange:a,__unstableAllowPrefixTransformations:s,formatTypes:u}=o.current;if("insertText"!==c&&"compositionend"!==l)return;s&&r&&r();const d=u.reduce((e,t)=>{let{__unstableInputRule:n}=t;return n&&(e=n(e)),e},i);d!==i&&(t(),a({...d,activeFormats:i.activeFormats}),n())}return e.addEventListener("input",c),e.addEventListener("compositionend",c),()=>{e.removeEventListener("input",c),e.removeEventListener("compositionend",c)}},[])}function ko(e){const{__unstableMarkAutomaticChange:t}=Object(_.useDispatch)(S.a),n=Object(i.useRef)(e);return n.current=e,Object(Q.useRefEffect)(e=>{function o(e){if(e.defaultPrevented)return;const{removeEditorOnlyFormats:o,value:r,onReplace:c,onSplit:l,onSplitMiddle:i,multilineTag:a,onChange:s,disableLineBreaks:u,onSplitAtEnd:d}=n.current;if(e.keyCode!==L.ENTER)return;e.preventDefault();const b={...r};b.formats=o(r);const p=c&&l;if(c){const e=Object(j.getBlockTransforms)("from").filter(e=>{let{type:t}=e;return"enter"===t}),n=Object(j.findTransform)(e,e=>e.regExp.test(b.text));n&&(c([n.transform({content:b.text})]),t())}if(a)e.shiftKey?u||s(Object(co.insert)(b,"\n")):p&&Object(co.__unstableIsEmptyLine)(b)?go({value:b,onReplace:c,onSplit:l,onSplitMiddle:i,multilineTag:a}):s(Object(co.__unstableInsertLineSeparator)(b));else{const{text:t,start:n,end:o}=b,r=d&&n===o&&o===t.length;e.shiftKey||!p&&!r?u||s(Object(co.insert)(b,"\n")):!p&&r?d():p&&go({value:b,onReplace:c,onSplit:l,onSplitMiddle:i,multilineTag:a})}}return e.addEventListener("keydown",o),()=>{e.removeEventListener("keydown",o)}},[])}function _o(e){return e(co.store).getFormatTypes()}const yo=new Set(["a","audio","button","details","embed","iframe","input","label","select","textarea","video"]);function Eo(e){return Object(Q.useRefEffect)(t=>{function n(t){for(const n of e.current)n(t)}return t.addEventListener("keydown",n),()=>{t.removeEventListener("keydown",n)}},[])}function Co(e){return Object(Q.useRefEffect)(t=>{function n(t){for(const n of e.current)n(t)}return t.addEventListener("input",n),()=>{t.removeEventListener("input",n)}},[])}function So(e){let{formatTypes:t,onChange:n,onFocus:o,value:r,forwardedRef:c}=e;return t.map(e=>{const{name:t,edit:l}=e;if(!l)return null;const s=Object(co.getActiveFormat)(r,t);let u=void 0!==s;const d=Object(co.getActiveObject)(r),b=void 0!==d&&d.type===t;if("core/link"===t&&!Object(co.isCollapsed)(r)){const e=r.formats,t=Object(a.find)(e[r.start],{type:"core/link"}),n=Object(a.find)(e[r.end-1],{type:"core/link"});t&&n&&t===n||(u=!1)}return Object(i.createElement)(l,{key:t,isActive:u,activeAttributes:u&&s.attributes||{},isObjectActive:b,activeObjectAttributes:b&&d.attributes||{},value:r,onChange:n,onFocus:o,contentRef:c})})}const wo=Object(i.createContext)(),Io=Object(i.createContext)();const Bo=Object(i.forwardRef)((function e(t,n){let{children:o,tagName:r="div",value:c="",onChange:s,isSelected:d,multiline:b,inlineToolbar:p,wrapperClassName:m,autocompleters:f,onReplace:h,placeholder:g,allowedFormats:O,formattingControls:v,withoutInteractiveFormatting:y,onRemove:E,onMerge:C,onSplit:w,__unstableOnSplitAtEnd:I,__unstableOnSplitMiddle:x,identifier:T,preserveWhiteSpace:P,__unstablePastePlainText:R,__unstableEmbedURLOnPaste:N,__unstableDisableFormats:M,disableLineBreaks:A,unstableOnFocus:D,__unstableAllowPrefixTransformations:F,...z}=t;const H=Object(Q.useInstanceId)(e);T=T||H,z=function(e){return Object(a.omit)(e,["__unstableMobileNoFocusOnMount","deleteEnter","placeholderTextColor","textAlign","selectionColor","tagsToEliminate","rootTagsToEliminate","disableEditingMenu","fontSize","fontFamily","fontWeight","fontStyle","minWidth","maxWidth","setRef"])}(z);const G=Object(i.useRef)(),{clientId:U}=Object(k.c)(),{selectionStart:W,selectionEnd:q,isSelected:K,disabled:$}=Object(_.useSelect)(e=>{const{getSelectionStart:t,getSelectionEnd:n,isMultiSelecting:o,hasMultiSelection:r}=e(S.a),c=t(),l=n();let i;return void 0===d?i=c.clientId===U&&c.attributeKey===T:d&&(i=c.clientId===U),{selectionStart:i?c.offset:void 0,selectionEnd:i?l.offset:void 0,isSelected:i,disabled:o()||r()}}),{selectionChange:Y}=Object(_.useDispatch)(S.a),X=fo(b),Z=ho({allowedFormats:O,formattingControls:v,disableFormats:M}),J=!Z||Z.length>0;let ee=c,te=s;Array.isArray(c)&&(ee=j.children.toHTML(c),te=e=>s(j.children.fromDOM(Object(co.__unstableCreateElement)(document,e).childNodes)));const ne=Object(i.useCallback)((e,t)=>{Y(U,T,e,t)},[U,T]),{formatTypes:oe,prepareHandlers:re,valueHandlers:ce,changeHandlers:le,dependencies:ie}=function(e){let{clientId:t,identifier:n,withoutInteractiveFormatting:o,allowedFormats:r}=e;const c=Object(_.useSelect)(_o,[]),l=Object(i.useMemo)(()=>c.filter(e=>{let{name:t,tagName:n}=e;return!(r&&!r.includes(t))&&(!o||!yo.has(n))}),[c,r,yo]),a=Object(_.useSelect)(e=>l.reduce((o,r)=>(r.__experimentalGetPropsForEditableTreePreparation&&(o[r.name]=r.__experimentalGetPropsForEditableTreePreparation(e,{richTextIdentifier:n,blockClientId:t})),o),{}),[l,t,n]),s=Object(_.useDispatch)(),u=[],d=[],b=[],p=[];return l.forEach(e=>{if(e.__experimentalCreatePrepareEditableTree){const o=a[e.name],r=e.__experimentalCreatePrepareEditableTree(o,{richTextIdentifier:n,blockClientId:t});e.__experimentalCreateOnChangeEditableValue?d.push(r):u.push(r);for(const e in o)p.push(o[e])}if(e.__experimentalCreateOnChangeEditableValue){let o={};e.__experimentalGetPropsForEditableTreeChangeHandler&&(o=e.__experimentalGetPropsForEditableTreeChangeHandler(s,{richTextIdentifier:n,blockClientId:t})),b.push(e.__experimentalCreateOnChangeEditableValue({...a[e.name]||{},...o},{richTextIdentifier:n,blockClientId:t}))}}),{formatTypes:l,prepareHandlers:u,valueHandlers:d,changeHandlers:b,dependencies:p}}({clientId:U,identifier:T,withoutInteractiveFormatting:y,allowedFormats:Z});function ae(e){return oe.forEach(t=>{t.__experimentalCreatePrepareEditableTree&&(e=Object(co.removeFormat)(e,t.name,0,e.text.length))}),e.formats}const{value:se,onChange:ue,ref:de}=Object(co.__unstableUseRichText)({value:ee,onChange(e,t){let{__unstableFormats:n,__unstableText:o}=t;te(e),Object.values(le).forEach(e=>{e(n,o)})},selectionStart:W,selectionEnd:q,onSelectionChange:ne,placeholder:g,__unstableIsSelected:K,__unstableMultilineTag:X,__unstableDisableFormats:M,preserveWhiteSpace:P,__unstableDependencies:[...ie,r],__unstableAfterParse:function(e){return ce.reduce((t,n)=>n(t,e.text),e.formats)},__unstableBeforeSerialize:ae,__unstableAddInvisibleFormats:function(e){return re.reduce((t,n)=>n(t,e.text),e.formats)}}),be=function(e){return Object(u.__unstableUseAutocompleteProps)({...e,completers:B(e)})}({onReplace:h,completers:f,record:se,onChange:ue});!function(e){let{value:t}=e;const n=t.activeFormats&&!!t.activeFormats.length,{isCaretWithinFormattedText:o}=Object(_.useSelect)(S.a),{enterFormattedText:r,exitFormattedText:c}=Object(_.useDispatch)(S.a);Object(i.useEffect)(()=>{n?o()||r():o()&&c()},[n])}({value:se}),function(e){let{html:t,value:n}=e;const o=Object(i.useRef)(),r=n.activeFormats&&!!n.activeFormats.length,{__unstableMarkLastChangeAsPersistent:c}=Object(_.useDispatch)(S.a);Object(i.useLayoutEffect)(()=>{if(o.current){if(o.current!==n.text){const e=window.setTimeout(()=>{c()},1e3);return o.current=n.text,()=>{window.clearTimeout(e)}}c()}else o.current=n.text},[t,r])}({html:ee,value:se});const pe=Object(i.useRef)(new Set),me=Object(i.useRef)(new Set);function fe(){G.current.focus()}const he=r,ge=Object(i.createElement)(i.Fragment,null,K&&Object(i.createElement)(wo.Provider,{value:pe},Object(i.createElement)(Io.Provider,{value:me},Object(i.createElement)(u.Popover.__unstableSlotNameProvider,{value:"__unstable-block-tools-after"},o&&o({value:se,onChange:ue,onFocus:fe}),Object(i.createElement)(So,{value:se,onChange:ue,onFocus:fe,formatTypes:oe,forwardedRef:G})))),K&&J&&Object(i.createElement)(ao,{inline:p,anchorRef:G.current}),Object(i.createElement)(he,Object(l.a)({role:"textbox","aria-multiline":!0,"aria-label":g},z,be,{ref:Object(Q.useMergeRefs)([be.ref,z.ref,de,jo({value:se,onChange:ue,__unstableAllowPrefixTransformations:F,formatTypes:oe,onReplace:h}),Object(Q.useRefEffect)(e=>{function t(e){(L.isKeyboardEvent.primary(e,"z")||L.isKeyboardEvent.primary(e,"y")||L.isKeyboardEvent.primaryShift(e,"z"))&&e.preventDefault()}return e.addEventListener("keydown",t),()=>{e.addEventListener("keydown",t)}},[]),Eo(pe),Co(me),so(),vo({isSelected:K,disableFormats:M,onChange:ue,value:se,formatTypes:oe,tagName:r,onReplace:h,onSplit:w,onSplitMiddle:x,__unstableEmbedURLOnPaste:N,multilineTag:X,preserveWhiteSpace:P,pastePlainText:R}),ko({removeEditorOnlyFormats:ae,value:se,onReplace:h,onSplit:w,onSplitMiddle:x,multilineTag:X,onChange:ue,disableLineBreaks:A,onSplitAtEnd:I}),G,n]),contentEditable:!$||void 0,suppressContentEditableWarning:!$,className:V()("block-editor-rich-text__editable",z.className,"rich-text"),onFocus:D,onKeyDown:function(e){const{keyCode:t}=e;if(!e.defaultPrevented&&(t===L.DELETE||t===L.BACKSPACE)){const{start:n,end:o,text:r}=se,c=t===L.BACKSPACE,l=se.activeFormats&&!!se.activeFormats.length;if(!Object(co.isCollapsed)(se)||l||c&&0!==n||!c&&o!==r.length)return;C&&C(!c),E&&Object(co.isEmpty)(se)&&c&&E(!c),e.preventDefault()}}})));if(!m)return ge;Xn()("wp.blockEditor.RichText wrapperClassName prop",{since:"5.4",alternative:"className prop or create your own wrapper div"});const Oe=V()("block-editor-rich-text",m);return Object(i.createElement)("div",{className:Oe},ge)}));Bo.Content=e=>{let{value:t,tagName:n,multiline:o,...r}=e;Array.isArray(t)&&(t=j.children.toHTML(t));const c=fo(o);!t&&c&&(t=`<${c}></${c}>`);const l=Object(i.createElement)(i.RawHTML,null,t);return n?Object(i.createElement)(n,Object(a.omit)(r,["format"]),l):l},Bo.isEmpty=e=>!e||0===e.length;var xo=Bo;const To=Object(i.forwardRef)((e,t)=>Object(i.createElement)(xo,Object(l.a)({ref:t},e,{__unstableDisableFormats:!0,preserveWhiteSpace:!0})));To.Content=e=>{let{value:t="",tagName:n="div",...o}=e;return Object(i.createElement)(n,o,t)};var Po=To;var Ro=Object(i.forwardRef)((e,t)=>{let{__experimentalVersion:n,...o}=e;if(2===n)return Object(i.createElement)(Po,Object(l.a)({ref:t},o));const{className:r,onChange:c,...a}=o;return Object(i.createElement)(ro.a,Object(l.a)({ref:t,className:V()("block-editor-plain-text",r),onChange:e=>c(e.target.value)},a))});function No(e){let{property:t,viewport:n,desc:o}=e;const r=Object(Q.useInstanceId)(No),c=o||Object(s.sprintf)(Object(s._x)("Controls the %1$s property for %2$s viewports.","Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size."),t,n.label);return Object(i.createElement)(i.Fragment,null,Object(i.createElement)("span",{"aria-describedby":"rbc-desc-"+r},n.label),Object(i.createElement)(u.VisuallyHidden,{as:"span",id:"rbc-desc-"+r},c))}var Lo=function(e){const{title:t,property:n,toggleLabel:o,onIsResponsiveChange:r,renderDefaultControl:c,renderResponsiveControls:l,isResponsive:a=!1,defaultLabel:d={id:"all",label:Object(s.__)("All")},viewports:b=[{id:"small",label:Object(s.__)("Small screens")},{id:"medium",label:Object(s.__)("Medium screens")},{id:"large",label:Object(s.__)("Large screens")}]}=e;if(!t||!n||!c)return null;const p=o||Object(s.sprintf)(Object(s.__)("Use the same %s on all screensizes."),n),m=Object(s.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),f=c(Object(i.createElement)(No,{property:n,viewport:d}),d);return Object(i.createElement)("fieldset",{className:"block-editor-responsive-block-control"},Object(i.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),Object(i.createElement)("div",{className:"block-editor-responsive-block-control__inner"},Object(i.createElement)(u.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:p,checked:!a,onChange:r,help:m}),Object(i.createElement)("div",{className:V()("block-editor-responsive-block-control__group",{"is-responsive":a})},!a&&f,a&&(l?l(b):b.map(e=>Object(i.createElement)(i.Fragment,{key:e.id},c(Object(i.createElement)(No,{property:n,viewport:e}),e)))))))};function Mo(e){let{character:t,type:n,onUse:o}=e;const r=Object(i.useContext)(wo),c=Object(i.useRef)();return c.current=o,Object(i.useEffect)(()=>{function e(e){L.isKeyboardEvent[n](e,t)&&(c.current(),e.preventDefault())}return r.current.add(e),()=>{r.current.delete(e)}},[t,n]),null}function Ao(e){let t,{name:n,shortcutType:o,shortcutCharacter:r,...c}=e,a="RichText.ToolbarControls";return n&&(a+="."+n),o&&r&&(t=L.displayShortcut[o](r)),Object(i.createElement)(u.Fill,{name:a},Object(i.createElement)(u.ToolbarButton,Object(l.a)({},c,{shortcut:t})))}function Do(e){let{inputType:t,onInput:n}=e;const o=Object(i.useContext)(Io),r=Object(i.useRef)();return r.current=n,Object(i.useEffect)(()=>{function e(e){e.inputType===t&&(r.current(),e.preventDefault())}return o.current.add(e),()=>{o.current.delete(e)}},[t]),null}const Fo=Object(i.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(i.createElement)(u.Path,{d:"M9.4 20.5L5.2 3.8l14.6 9-2 .3c-.2 0-.4.1-.7.1-.9.2-1.6.3-2.2.5-.8.3-1.4.5-1.8.8-.4.3-.8.8-1.3 1.5-.4.5-.8 1.2-1.2 2l-.3.6-.9 1.9zM7.6 7.1l2.4 9.3c.2-.4.5-.8.7-1.1.6-.8 1.1-1.4 1.6-1.8.5-.4 1.3-.8 2.2-1.1l1.2-.3-8.1-5z"}));var zo=Object(i.forwardRef)((function(e,t){const n=Object(_.useSelect)(e=>e(S.a).isNavigationMode(),[]),{setNavigationMode:o}=Object(_.useDispatch)(S.a),r=e=>{o("edit"!==e)};return Object(i.createElement)(u.Dropdown,{renderToggle:o=>{let{isOpen:r,onToggle:c}=o;return Object(i.createElement)(u.Button,Object(l.a)({},e,{ref:t,icon:n?Fo:Pn.a,"aria-expanded":r,"aria-haspopup":"true",onClick:c,label:Object(s.__)("Tools")}))},position:"bottom right",renderContent:()=>Object(i.createElement)(i.Fragment,null,Object(i.createElement)(u.NavigableMenu,{role:"menu","aria-label":Object(s.__)("Tools")},Object(i.createElement)(u.MenuItemsChoice,{value:n?"select":"edit",onSelect:r,choices:[{value:"edit",label:Object(i.createElement)(i.Fragment,null,Object(i.createElement)(A.a,{icon:Pn.a}),Object(s.__)("Edit"))},{value:"select",label:Object(i.createElement)(i.Fragment,null,Fo,Object(s.__)("Select"))}]})),Object(i.createElement)("div",{className:"block-editor-tool-selector__help"},Object(s.__)("Tools provide different interactions for selecting, navigating, and editing blocks. Toggle between select and edit by pressing Escape and Enter.")))})}));function Ho(e){let{units:t,...n}=e;const o=Object(u.__experimentalUseCustomUnits)({availableUnits:Object(lt.a)("spacing.units")||["%","px","em","rem","vw"],units:t});return Object(i.createElement)(u.__experimentalUnitControl,Object(l.a)({units:o},n))}var Vo=n("Bpkj"),Go=n("cjQ8");class Uo extends i.Component{constructor(){super(...arguments),this.toggle=this.toggle.bind(this),this.submitLink=this.submitLink.bind(this),this.state={expanded:!1}}toggle(){this.setState({expanded:!this.state.expanded})}submitLink(e){e.preventDefault(),this.toggle()}render(){const{url:e,onChange:t}=this.props,{expanded:n}=this.state,o=e?Object(s.__)("Edit link"):Object(s.__)("Insert link");return Object(i.createElement)("div",{className:"block-editor-url-input__button"},Object(i.createElement)(u.Button,{icon:Vo.a,label:o,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!e}),n&&Object(i.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(i.createElement)("div",{className:"block-editor-url-input__button-modal-line"},Object(i.createElement)(u.Button,{className:"block-editor-url-input__back",icon:Go.a,label:Object(s.__)("Close"),onClick:this.toggle}),Object(i.createElement)(gn,{value:e||"",onChange:t}),Object(i.createElement)(u.Button,{icon:un.a,label:Object(s.__)("Submit"),type:"submit"}))))}}var Wo=Uo,qo=n("w95h");const Ko=["noreferrer","noopener"],$o=Object(i.createElement)(u.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(i.createElement)(u.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(i.createElement)(u.Path,{d:"m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"}),Object(i.createElement)(u.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),Yo=e=>{let{linkDestination:t,onChangeUrl:n,url:o,mediaType:r="image",mediaUrl:c,mediaLink:l,linkTarget:d,linkClass:b,rel:p}=e;const[m,f]=Object(i.useState)(!1),h=Object(i.useCallback)(()=>{f(!0)}),[g,O]=Object(i.useState)(!1),[v,j]=Object(i.useState)(null),k=Object(i.useRef)(null),_=Object(i.useCallback)(()=>{"media"!==t&&"attachment"!==t||j(""),O(!0)}),y=Object(i.useCallback)(()=>{O(!1)}),E=Object(i.useCallback)(()=>{j(null),y(),f(!1)}),C=e=>{let t=e;return void 0===e||Object(a.isEmpty)(t)||Object(a.isEmpty)(t)||(Object(a.each)(Ko,e=>{const n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")}),t!==e&&(t=t.trim()),Object(a.isEmpty)(t)&&(t=void 0)),t},S=Object(i.useCallback)(()=>e=>{const t=k.current;t&&t.contains(e.target)||(f(!1),j(null),y())}),w=Object(i.useCallback)(()=>e=>{if(v){var t;const e=(null===(t=B().find(e=>e.url===v))||void 0===t?void 0:t.linkDestination)||"custom";n({href:v,linkDestination:e})}y(),j(null),e.preventDefault()}),I=Object(i.useCallback)(()=>{n({linkDestination:"none",href:""})}),B=()=>{const e=[{linkDestination:"media",title:Object(s.__)("Media File"),url:"image"===r?c:void 0,icon:$o}];return"image"===r&&l&&e.push({linkDestination:"attachment",title:Object(s.__)("Attachment Page"),url:"image"===r?l:void 0,icon:Object(i.createElement)(u.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(i.createElement)(u.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object(i.createElement)(u.Path,{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))}),e},x=Object(i.createElement)(i.Fragment,null,Object(i.createElement)(u.ToggleControl,{label:Object(s.__)("Open in new tab"),onChange:e=>{const t=(e=>{const t=e?"_blank":void 0;let n;return n=t||p?C(p):void 0,{linkTarget:t,rel:n}})(e);n(t)},checked:"_blank"===d}),Object(i.createElement)(u.TextControl,{label:Object(s.__)("Link Rel"),value:C(p)||"",onChange:e=>{n({rel:e})}}),Object(i.createElement)(u.TextControl,{label:Object(s.__)("Link CSS Class"),value:b||"",onChange:e=>{n({linkClass:e})}})),T=null!==v?v:o,P=(Object(a.find)(B(),["linkDestination",t])||{}).title;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(u.ToolbarButton,{icon:Vo.a,className:"components-toolbar__control",label:o?Object(s.__)("Edit link"):Object(s.__)("Insert link"),"aria-expanded":m,onClick:h}),m&&Object(i.createElement)(Jn,{onFocusOutside:S(),onClose:E,renderSettings:()=>x,additionalControls:!T&&Object(i.createElement)(u.NavigableMenu,null,Object(a.map)(B(),e=>Object(i.createElement)(u.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:()=>{j(null),(e=>{const t=B();let o;o=e?(Object(a.find)(t,t=>t.url===e)||{linkDestination:"custom"}).linkDestination:"none",n({linkDestination:o,href:e})})(e.url),y()}},e.title)))},(!o||g)&&Object(i.createElement)(Jn.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:T,onChangeInputValue:j,onSubmit:w(),autocompleteRef:k}),o&&!g&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(Jn.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",url:o,onEditLinkClick:_,urlLabel:P}),Object(i.createElement)(u.Button,{icon:qo.a,label:Object(s.__)("Remove link"),onClick:I}))))};var Xo=n("Jyyd"),Zo=n("mlss");function Qo(e){let{children:t,className:n,isEnabled:o=!0,deviceType:r,setDeviceType:c}=e;if(Object(Q.useViewportMatch)("small","<"))return null;const l={className:V()(n,"block-editor-post-preview__dropdown-content"),position:"bottom left"},a={variant:"tertiary",className:"block-editor-post-preview__button-toggle",disabled:!o,children:Object(s.__)("Preview")};return Object(i.createElement)(u.DropdownMenu,{className:"block-editor-post-preview__dropdown",popoverProps:l,toggleProps:a,icon:null},()=>Object(i.createElement)(i.Fragment,null,Object(i.createElement)(u.MenuGroup,null,Object(i.createElement)(u.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:()=>c("Desktop"),icon:"Desktop"===r&&Xt.a},Object(s.__)("Desktop")),Object(i.createElement)(u.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:()=>c("Tablet"),icon:"Tablet"===r&&Xt.a},Object(s.__)("Tablet")),Object(i.createElement)(u.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:()=>c("Mobile"),icon:"Mobile"===r&&Xt.a},Object(s.__)("Mobile"))),t))}function Jo(e){const[t,n]=Object(i.useState)(window.innerWidth);Object(i.useEffect)(()=>{if("Desktop"===e)return;const t=()=>n(window.innerWidth);return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[e]);const o=e=>{let n;switch(e){case"Tablet":n=780;break;case"Mobile":n=360;break;default:return null}return n<t?n:t};return(e=>{const t="Mobile"===e?"768px":"1024px";switch(e){case"Tablet":case"Mobile":return{width:o(e),margin:(window.innerHeight<800?36:72)+"px auto",height:t,borderRadius:"2px 2px 2px 2px",border:"1px solid #ddd",overflowY:"auto"};default:return null}})(e)}var er=n("PKbb");var tr=Object(_.withSelect)(e=>({selectedBlockClientId:e(S.a).getBlockSelectionStart()}))(e=>{let{selectedBlockClientId:t}=e;const n=Object(er.b)(t);return t?Object(i.createElement)(u.Button,{variant:"secondary",className:"block-editor-skip-to-selected-block",onClick:()=>{n.current.focus()}},Object(s.__)("Skip to the selected block")):null}),nr=n("GvwK"),or=n("7NR9"),rr=n("7fqt"),cr=n("wzfx");var lr=Object(_.withSelect)(e=>{const{getMultiSelectedBlocks:t}=e(S.a);return{blocks:t()}})((function(e){let{blocks:t}=e;const n=Object(rr.count)(Object(j.serialize)(t),"words");return Object(i.createElement)("div",{className:"block-editor-multi-selection-inspector__card"},Object(i.createElement)(C.a,{icon:cr.a,showColors:!0}),Object(i.createElement)("div",{className:"block-editor-multi-selection-inspector__card-content"},Object(i.createElement)("div",{className:"block-editor-multi-selection-inspector__card-title"},Object(s.sprintf)(Object(s._n)("%d block","%d blocks",t.length),t.length)),Object(i.createElement)("div",{className:"block-editor-multi-selection-inspector__card-description"},Object(s.sprintf)(Object(s._n)("%d word","%d words",n),n))))}));function ir(e){let{blockName:t}=e;const{preferredStyle:n,onUpdatePreferredStyleVariations:o,styles:r}=Object(_.useSelect)(e=>{var n,o;const r=e(S.a).getSettings().__experimentalPreferredStyleVariations;return{preferredStyle:null==r||null===(n=r.value)||void 0===n?void 0:n[t],onUpdatePreferredStyleVariations:null!==(o=null==r?void 0:r.onChange)&&void 0!==o?o:null,styles:e(j.store).getBlockStyles(t)}},[t]),c=Object(i.useMemo)(()=>[{label:Object(s.__)("Not set"),value:""},...r.map(e=>{let{label:t,name:n}=e;return{label:t,value:n}})],[r]),l=Object(i.useCallback)(e=>{o(t,e)},[t,o]);return o&&Object(i.createElement)(u.SelectControl,{options:c,value:n||"",label:Object(s.__)("Default Style"),onChange:l})}const ar=e=>{let{clientId:t,blockName:n,hasBlockStyles:o,bubblesVirtually:r}=e;const c=Object(ce.a)(t);return Object(i.createElement)("div",{className:"block-editor-block-inspector"},Object(i.createElement)(nr.a,c),Object(i.createElement)($e,{blockClientId:t}),o&&Object(i.createElement)("div",null,Object(i.createElement)(u.PanelBody,{title:Object(s.__)("Styles")},Object(i.createElement)(or.a,{clientId:t}),Object(j.hasBlockSupport)(n,"defaultStylePicker",!0)&&Object(i.createElement)(ir,{blockName:n}))),Object(i.createElement)(an.b.Slot,{bubblesVirtually:r}),Object(i.createElement)(an.b.Slot,{__experimentalGroup:"typography",bubblesVirtually:r,label:Object(s.__)("Typography")}),Object(i.createElement)(an.b.Slot,{__experimentalGroup:"dimensions",bubblesVirtually:r,label:Object(s.__)("Dimensions")}),Object(i.createElement)("div",null,Object(i.createElement)(sr,{bubblesVirtually:r})),Object(i.createElement)(tr,{key:"back"}))},sr=e=>{let{bubblesVirtually:t}=e;const n=Object(u.__experimentalUseSlot)(an.a.slotName);return Boolean(n.fills&&n.fills.length)?Object(i.createElement)(u.PanelBody,{className:"block-editor-block-inspector__advanced",title:Object(s.__)("Advanced"),initialOpen:!1},Object(i.createElement)(an.b.Slot,{__experimentalGroup:"advanced",bubblesVirtually:t})):null};var ur=e=>{let{showNoBlockSelectedMessage:t=!0,bubblesVirtually:n=!0}=e;const{count:o,hasBlockStyles:r,selectedBlockName:c,selectedBlockClientId:l,blockType:a}=Object(_.useSelect)(e=>{const{getSelectedBlockClientId:t,getSelectedBlockCount:n,getBlockName:o}=e(S.a),{getBlockStyles:r}=e(j.store),c=t(),l=c&&o(c),i=l&&Object(j.getBlockType)(l),a=l&&r(l);return{count:n(),selectedBlockClientId:c,selectedBlockName:l,blockType:i,hasBlockStyles:a&&a.length>0}},[]);if(o>1)return Object(i.createElement)("div",{className:"block-editor-block-inspector"},Object(i.createElement)(lr,null),Object(i.createElement)(an.b.Slot,{bubblesVirtually:n}));const u=c===Object(j.getUnregisteredTypeHandlerName)();return a&&l&&!u?Object(i.createElement)(ar,{clientId:l,blockName:a.name,hasBlockStyles:r,bubblesVirtually:n}):t?Object(i.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},Object(s.__)("No block selected.")):null},dr=n("VyCT"),br=n("nlh6"),pr=n("w8sn"),mr=n("JygI"),fr=n("zQI6"),hr=n("U1WI"),gr=n("pXCJ"),Or=n("+gtr"),vr=n("hF7m"),jr=n("PS/H"),kr=n("xCFn"),_r=n("JUfZ"),yr=n("2z9l");function Er(e){let{children:t,__unstableContentRef:n,...o}=e;const r=Object(Q.useViewportMatch)("medium"),c=Object(_.useSelect)(e=>e(S.a).getSettings().hasFixedToolbar,[]),s=Object(vr.__unstableUseShortcutEventMatch)(),{getSelectedBlockClientIds:d,getBlockRootClientId:b}=Object(_.useSelect)(S.a),{duplicateBlocks:p,removeBlocks:m,insertAfterBlock:f,insertBeforeBlock:h,clearSelectedBlock:g,moveBlocksUp:O,moveBlocksDown:v}=Object(_.useDispatch)(S.a);return Object(i.createElement)("div",Object(l.a)({},o,{onKeyDown:function(e){if(s("core/block-editor/move-up",e)){const t=d();if(t.length){e.preventDefault();const n=b(Object(a.first)(t));O(t,n)}}else if(s("core/block-editor/move-down",e)){const t=d();if(t.length){e.preventDefault();const n=b(Object(a.first)(t));v(t,n)}}else if(s("core/block-editor/duplicate",e)){const t=d();t.length&&(e.preventDefault(),p(t))}else if(s("core/block-editor/remove",e)){const t=d();t.length&&(e.preventDefault(),m(t))}else if(s("core/block-editor/insert-after",e)){const t=d();t.length&&(e.preventDefault(),f(Object(a.last)(t)))}else if(s("core/block-editor/insert-before",e)){const t=d();t.length&&(e.preventDefault(),h(Object(a.first)(t)))}else if(s("core/block-editor/delete-multi-selection",e)){const t=d();t.length>1&&(e.preventDefault(),m(t))}else if(s("core/block-editor/unselect",e)){d().length>1&&(e.preventDefault(),g(),e.target.ownerDocument.defaultView.getSelection().removeAllRanges())}}}),Object(i.createElement)(jr.b,{__unstableContentRef:n},(c||!r)&&Object(i.createElement)(_r.a,{isFixed:!0}),Object(i.createElement)(kr.a,{__unstableContentRef:n}),Object(i.createElement)(u.Popover.Slot,{name:"block-toolbar",ref:Object(yr.a)(n)}),t,Object(i.createElement)(u.Popover.Slot,{name:"__unstable-block-tools-after",ref:Object(yr.a)(n)})))}var Cr=n("+0ps"),Sr=n("5L8O"),wr=n("KyyN"),Ir=n("qrxh"),Br=n("xZzQ");var xr=function(e){let{rootClientId:t,clientId:n,isAppender:o,showInserterHelpPanel:r,showMostUsedBlocks:c=!1,__experimentalInsertionIndex:l,__experimentalFilterValue:s,onSelect:u=a.noop,shouldFocusBlock:d=!1}=e;const b=Object(_.useSelect)(e=>{const{getBlockRootClientId:o}=e(S.a);return t||o(n)||void 0},[n,t]);return Object(i.createElement)(Br.a,{onSelect:u,rootClientId:b,clientId:n,isAppender:o,showInserterHelpPanel:r,showMostUsedBlocks:c,__experimentalInsertionIndex:l,__experimentalFilterValue:s,shouldFocusBlock:d})};function Tr(){return null}Tr.Register=function(){const{registerShortcut:e}=Object(_.useDispatch)(vr.store);return Object(i.useEffect)(()=>{e({name:"core/block-editor/duplicate",category:"block",description:Object(s.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:Object(s.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:Object(s.__)("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:Object(s.__)("Insert a new block after the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"y"}}),e({name:"core/block-editor/delete-multi-selection",category:"block",description:Object(s.__)("Remove multiple selected blocks."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:Object(s.__)("Select all text when typing. Press again to select all blocks."),keyCombination:{modifier:"primary",character:"a"}}),e({name:"core/block-editor/unselect",category:"selection",description:Object(s.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:Object(s.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:Object(s.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:Object(s.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}})},[e]),null};var Pr=Tr;function Rr(){return Xn()("wp.blockEditor.MultiSelectScrollIntoView",{hint:"This behaviour is now built-in."}),null}var Nr=n("GkEL");const Lr=new Set([L.UP,L.RIGHT,L.DOWN,L.LEFT,L.ENTER,L.BACKSPACE]);function Mr(){const e=Object(_.useSelect)(e=>e(S.a).isTyping(),[]),{stopTyping:t}=Object(_.useDispatch)(S.a);return Object(Q.useRefEffect)(n=>{if(!e)return;const{ownerDocument:o}=n;let r,c;function l(e){const{clientX:n,clientY:o}=e;r&&c&&(r!==n||c!==o)&&t(),r=n,c=o}return o.addEventListener("mousemove",l),()=>{o.removeEventListener("mousemove",l)}},[e,t])}function Ar(){const e=Object(_.useSelect)(e=>e(S.a).isTyping()),{startTyping:t,stopTyping:n}=Object(_.useDispatch)(S.a),o=Mr(),r=Object(Q.useRefEffect)(o=>{const{ownerDocument:r}=o,{defaultView:c}=r;if(e){let e;function l(t){const{target:o}=t;e=c.setTimeout(()=>{Object(dn.isTextField)(o)||n()})}function i(e){const{keyCode:t}=e;t!==L.ESCAPE&&t!==L.TAB||n()}function a(){const e=c.getSelection();e.rangeCount>0&&e.getRangeAt(0).collapsed||n()}return o.addEventListener("focus",l),o.addEventListener("keydown",i),r.addEventListener("selectionchange",a),()=>{c.clearTimeout(e),o.removeEventListener("focus",l),o.removeEventListener("keydown",i),r.removeEventListener("selectionchange",a)}}function s(e){const{type:n,target:r}=e;Object(dn.isTextField)(r)&&o.contains(r)&&("keydown"!==n||function(e){const{keyCode:t,shiftKey:n}=e;return!n&&Lr.has(t)}(e))&&t()}return o.addEventListener("keypress",s),o.addEventListener("keydown",s),()=>{o.removeEventListener("keypress",s),o.removeEventListener("keydown",s)}},[e,t,n]);return Object(Q.useMergeRefs)([o,r])}var Dr=function(e){let{children:t}=e;return Object(i.createElement)("div",{ref:Ar()},t)};function Fr(){return Xn()("PreserveScrollInReorder component",{since:"5.4",hint:"This behavior is now built-in the block list"}),null}const zr=-1!==window.navigator.userAgent.indexOf("Trident"),Hr=new Set([L.UP,L.DOWN,L.LEFT,L.RIGHT]);function Vr(){const e=Object(_.useSelect)(e=>e(S.a).hasSelectedBlock(),[]);return Object(Q.useRefEffect)(t=>{if(!e)return;const{ownerDocument:n}=t,{defaultView:o}=n;let r,c,l;function i(){r||(r=o.requestAnimationFrame(()=>{b(),r=null}))}function a(e){c&&o.cancelAnimationFrame(c),c=o.requestAnimationFrame(()=>{s(e),c=null})}function s(e){let{keyCode:r}=e;if(!p())return;const c=Object(dn.computeCaretRect)(o);if(!c)return;if(!l)return void(l=c);if(Hr.has(r))return void(l=c);const i=c.top-l.top;if(0===i)return;const a=Object(dn.getScrollContainer)(t);if(!a)return;const s=a===n.body,u=s?o.scrollY:a.scrollTop,d=s?0:a.getBoundingClientRect().top,b=s?l.top/o.innerHeight:(l.top-d)/(o.innerHeight-d);if(0===u&&b<.75&&function(){const e=t.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===n.activeElement}())return void(l=c);const m=s?o.innerHeight:a.clientHeight;l.top+l.height>d+m||l.top<d?l=c:s?o.scrollBy(0,i):a.scrollTop+=i}function u(){n.addEventListener("selectionchange",d)}function d(){n.removeEventListener("selectionchange",d),b()}function b(){p()&&(l=Object(dn.computeCaretRect)(o))}function p(){return t.contains(n.activeElement)&&n.activeElement.isContentEditable}return o.addEventListener("scroll",i,!0),o.addEventListener("resize",i,!0),t.addEventListener("keydown",a),t.addEventListener("keyup",s),t.addEventListener("mousedown",u),t.addEventListener("touchstart",u),()=>{o.removeEventListener("scroll",i,!0),o.removeEventListener("resize",i,!0),t.removeEventListener("keydown",a),t.removeEventListener("keyup",s),t.removeEventListener("mousedown",u),t.removeEventListener("touchstart",u),n.removeEventListener("selectionchange",d),o.cancelAnimationFrame(r),o.cancelAnimationFrame(c)}},[e])}var Gr=zr?e=>e.children:function(e){let{children:t}=e;return Object(i.createElement)("div",{ref:Vr(),className:"block-editor__typewriter"},t)},Ur=n("Zzu2"),Wr=n("TVFh");const qr=Object(a.overEvery)([dn.isTextField,dn.focus.tabbable.isTabbableIndex]);function Kr(){return Object(Q.useRefEffect)(e=>{function t(t){if(t.target!==e)return;const n=dn.focus.focusable.find(e),o=Object(a.findLast)(n,qr);if(!o)return;const{bottom:r}=o.getBoundingClientRect();t.clientY<r||(Object(dn.placeCaretAtHorizontalEdge)(o,!0),t.preventDefault())}return e.addEventListener("mousedown",t),()=>{e.addEventListener("mousedown",t)}},[])}var $r=n("hHnB");const Yr=Object(i.createContext)({});function Xr(e,t,n){const o={...e,[t]:e[t]?new Set(e[t]):new Set};return o[t].add(n),o}function Zr(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const o=Object(i.useContext)(Yr),{name:r}=Object(k.c)();n=n||r;const c=Boolean(null===(t=o[n])||void 0===t?void 0:t.has(e)),l=Object(i.useMemo)(()=>Xr(o,n,e),[o,n,e]),a=Object(i.useCallback)(e=>{let{children:t}=e;return Object(i.createElement)(Yr.Provider,{value:l},t)},[l]);return[c,a]}var Qr=n("/QNa")},"16Al":function(e,t,n){"use strict";var o=n("WbBG");function r(){}function c(){}c.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,c,l){if(l!==o){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:c,resetWarningCache:r};return n.PropTypes=n,n}},"17x9":function(e,t,n){e.exports=n("16Al")()},"1CF3":function(e,t){e.exports=window.wp.dom},"1K8p":function(e,t,n){"use strict";var o=n("jrfk"),r=n("ez49");function c(e){var t=0,n=0,o=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),o=10*t,r=10*n,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(o=e.deltaX),(o||r)&&e.deltaMode&&(1==e.deltaMode?(o*=40,r*=40):(o*=800,r*=800)),o&&!t&&(t=o<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:o,pixelY:r}}c.getEventType=function(){return o.firefox()?"DOMMouseScroll":r("wheel")?"wheel":"mousewheel"},e.exports=c},"1ZqX":function(e,t){e.exports=window.wp.data},"1eGn":function(e,t,n){"use strict";var o=n("wx14"),r=n("GRId"),c=n("YLtl"),l=n("l3Sj"),i=n("tI+e"),a=n("1ZqX"),s=n("VKE3"),u=n("HSyU"),d=n("hF7m"),b=n("K9lf"),p=n("+0ps"),m=n("BhPs");function f(e){let{clientIds:t,children:n,__experimentalUpdateSelection:o}=e;const{canInsertBlockType:r,getBlockRootClientId:l,getBlocksByClientId:i,canMoveBlocks:s,canRemoveBlocks:d}=Object(a.useSelect)(m.a),{getDefaultBlockName:b,getGroupingBlockName:f}=Object(a.useSelect)(u.store),h=i(t),g=l(t[0]),O=Object(c.every)(h,e=>!!e&&Object(u.hasBlockSupport)(e.name,"multiple",!0)&&r(e.name,g)),v=r(b(),g),j=s(t,g),k=d(t,g),{removeBlocks:_,replaceBlocks:y,duplicateBlocks:E,insertAfterBlock:C,insertBeforeBlock:S,flashBlock:w,setBlockMovingClientId:I,setNavigationMode:B,selectBlock:x}=Object(a.useDispatch)(m.a),T=Object(p.c)();return n({canDuplicate:O,canInsertDefaultBlock:v,canMove:j,canRemove:k,rootClientId:g,blocks:h,onDuplicate:()=>E(t,o),onRemove:()=>_(t,o),onInsertBefore(){S(Object(c.first)(Object(c.castArray)(t)))},onInsertAfter(){C(Object(c.last)(Object(c.castArray)(t)))},onMoveTo(){B(!0),x(t[0]),I(t[0])},onGroup(){if(!h.length)return;const e=f(),n=Object(u.switchToBlockType)(h,e);n&&y(t,n)},onUngroup(){if(!h.length)return;const e=h[0].innerBlocks;e.length&&y(t,e)},onCopy(){const e=h.map(e=>{let{clientId:t}=e;return t});1===h.length&&w(e[0]),T("copy",e)}})}var h=Object(b.compose)([Object(a.withSelect)((e,t)=>{let{clientId:n}=t;const{getBlock:o,getBlockMode:r,getSettings:c}=e(m.a),l=o(n),i=c().codeEditingEnabled;return{mode:r(n),blockType:l?Object(u.getBlockType)(l.name):null,isCodeEditingEnabled:i}}),Object(a.withDispatch)((e,t)=>{let{onToggle:n=c.noop,clientId:o}=t;return{onToggleMode(){e(m.a).toggleBlockMode(o),n()}}})])((function(e){let{blockType:t,mode:n,onToggleMode:o,small:c=!1,isCodeEditingEnabled:a=!0}=e;if(!Object(u.hasBlockSupport)(t,"html",!0)||!a)return null;const s="visual"===n?Object(l.__)("Edit as HTML"):Object(l.__)("Edit visually");return Object(r.createElement)(i.MenuItem,{onClick:o},!c&&s)}));var g=Object(b.compose)(Object(a.withSelect)((e,t)=>{let{clientId:n}=t;const o=e(m.a).getBlock(n);return{block:o,shouldRender:o&&"core/html"===o.name}}),Object(a.withDispatch)((e,t)=>{let{block:n}=t;return{onClick:()=>e(m.a).replaceBlocks(n.clientId,Object(u.rawHandler)({HTML:Object(u.getBlockContent)(n)}))}}))((function(e){let{shouldRender:t,onClick:n,small:o}=e;if(!t)return null;const c=Object(l.__)("Convert to Blocks");return Object(r.createElement)(i.MenuItem,{onClick:n},!o&&c)})),O=n("Jyyd"),v=n("pXCJ");const j={className:"block-editor-block-settings-menu__popover",position:"bottom right",isAlternate:!0};function k(e){let{blocks:t,onCopy:n}=e;const o=Object(b.useCopyToClipboard)(()=>Object(u.serialize)(t),n);return Object(r.createElement)(i.MenuItem,{ref:o},Object(l.__)("Copy"))}t.a=function(e){let{clientIds:t,__experimentalSelectBlock:n,children:b,...p}=e;const _=Object(c.castArray)(t),y=_.length,E=_[0],{onlyBlock:C,title:S}=Object(a.useSelect)(e=>{var t;const{getBlockCount:n,getBlockName:o}=e(m.a),{getBlockType:r}=e(u.store);return{onlyBlock:1===n(),title:null===(t=r(o(E)))||void 0===t?void 0:t.title}},[E]),w=Object(a.useSelect)(e=>{const{getShortcutRepresentation:t}=e(d.store);return{duplicate:t("core/block-editor/duplicate"),remove:t("core/block-editor/remove"),insertAfter:t("core/block-editor/insert-after"),insertBefore:t("core/block-editor/insert-before")}},[]),I=Object(r.useCallback)(n?async e=>{const t=await e;t&&t[0]&&n(t[0])}:c.noop,[n]),B=Object(l.sprintf)(Object(l.__)("Remove %s"),S),x=1===y?B:Object(l.__)("Remove blocks");return Object(r.createElement)(f,{clientIds:t,__experimentalUpdateSelection:!n},e=>{let{canDuplicate:n,canInsertDefaultBlock:a,canMove:u,canRemove:d,onDuplicate:m,onInsertAfter:f,onInsertBefore:_,onRemove:S,onCopy:B,onMoveTo:T,blocks:P}=e;return Object(r.createElement)(i.DropdownMenu,Object(o.a)({icon:s.a,label:Object(l.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:j,noIcons:!0},p),e=>{let{onClose:o}=e;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(i.MenuGroup,null,Object(r.createElement)(O.a.Slot,{fillProps:{onClose:o}}),1===y&&Object(r.createElement)(g,{clientId:E}),Object(r.createElement)(k,{blocks:P,onCopy:B}),n&&Object(r.createElement)(i.MenuItem,{onClick:Object(c.flow)(o,m,I),shortcut:w.duplicate},Object(l.__)("Duplicate")),a&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(i.MenuItem,{onClick:Object(c.flow)(o,_),shortcut:w.insertBefore},Object(l.__)("Insert before")),Object(r.createElement)(i.MenuItem,{onClick:Object(c.flow)(o,f),shortcut:w.insertAfter},Object(l.__)("Insert after"))),u&&!C&&Object(r.createElement)(i.MenuItem,{onClick:Object(c.flow)(o,T)},Object(l.__)("Move to")),1===y&&Object(r.createElement)(h,{clientId:E,onToggle:o})),Object(r.createElement)(v.a.Slot,{fillProps:{onClose:o},clientIds:t}),"function"==typeof b?b({onClose:o}):r.Children.map(e=>Object(r.cloneElement)(e,{onClose:o})),d&&Object(r.createElement)(i.MenuGroup,null,Object(r.createElement)(i.MenuItem,{onClick:Object(c.flow)(o,S,I),shortcut:w.remove},x)))})})}},"1iEr":function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=c},"1oY3":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("wx14"),r=n("GRId"),c=n("NtoT"),l=n("jwne");const i=c.a;i.Slot=l.a;const a=e=>Object(r.createElement)(c.a,Object(o.a)({},e,{__experimentalGroup:"advanced"}));a.Slot=e=>Object(r.createElement)(l.a,Object(o.a)({},e,{__experimentalGroup:"advanced"})),a.slotName="InspectorAdvancedControls",t.b=i},"1uGa":function(e,t,n){"use strict";var o=n("GRId"),r=n("tI+e"),c=n("l3Sj"),l=n("RxS6");t.a=function(e){let{colorPalette:t,duotonePalette:n,disableCustomColors:i,disableCustomDuotone:a,value:s,onChange:u}=e;return Object(o.createElement)(r.Dropdown,{popoverProps:{className:"block-editor-duotone-control__popover",headerTitle:Object(c.__)("Duotone"),isAlternate:!0},renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return Object(o.createElement)(r.ToolbarButton,{showTooltip:!0,onClick:n,"aria-haspopup":"true","aria-expanded":t,onKeyDown:e=>{t||e.keyCode!==l.DOWN||(e.preventDefault(),n())},label:Object(c.__)("Apply duotone filter"),icon:Object(o.createElement)(r.DuotoneSwatch,{values:s})})},renderContent:()=>Object(o.createElement)(r.MenuGroup,{label:Object(c.__)("Duotone")},Object(o.createElement)("div",{className:"block-editor-duotone-control__description"},Object(c.__)("Create a two-tone color effect without losing your original image.")),Object(o.createElement)(r.DuotonePicker,{colorPalette:t,duotonePalette:n,disableCustomColors:i,disableCustomDuotone:a,value:s,onChange:u}))})}},"2YCo":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n("GRId"),r=n("tI+e"),c=n("l3Sj"),l=n("bVTw"),i=n("Tqx9");var a=Object(o.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},Object(o.createElement)(i.Path,{fillRule:"evenodd",d:"M5 11.25h3v1.5H5v-1.5zm5.5 0h3v1.5h-3v-1.5zm8.5 0h-3v1.5h3v-1.5z",clipRule:"evenodd"}));var s=Object(o.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},Object(o.createElement)(i.Path,{fillRule:"evenodd",d:"M5.25 11.25h1.5v1.5h-1.5v-1.5zm3 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5zm1.5 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5z",clipRule:"evenodd"}));const u=[{label:Object(c.__)("Solid"),icon:l.a,value:"solid"},{label:Object(c.__)("Dashed"),icon:a,value:"dashed"},{label:Object(c.__)("Dotted"),icon:s,value:"dotted"}];function d(e){let{onChange:t,value:n}=e;return Object(o.createElement)("fieldset",{className:"components-border-style-control"},Object(o.createElement)("legend",null,Object(c.__)("Style")),Object(o.createElement)("div",{className:"components-border-style-control__buttons"},u.map(e=>Object(o.createElement)(r.Button,{key:e.value,icon:e.icon,isSmall:!0,isPressed:e.value===n,onClick:()=>t(e.value===n?void 0:e.value),"aria-label":e.label}))))}},"2gm7":function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=c},"2z9l":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("K9lf");function r(e){return Object(o.useRefEffect)(t=>{if(!e)return;function n(t){const{deltaX:n,deltaY:o}=t;e.current.scrollBy(n,o)}const o={passive:!0};return t.addEventListener("wheel",n,o),()=>{t.removeEventListener("wheel",n,o)}},[e])}},"5L8O":function(e,t,n){"use strict";var o=n("GRId"),r=n("TSYQ"),c=n.n(r),l=n("l3Sj"),i=n("K9lf"),a=n("HSyU"),s=n("rmEH"),u=n("1ZqX"),d=n("qrxh"),b=n("BhPs");t.a=Object(i.compose)(Object(u.withSelect)((e,t)=>{const{getBlockCount:n,getBlockName:o,isBlockValid:r,getSettings:c,getTemplateLock:l}=e(b.a),i=!n(t.rootClientId),s=o(t.lastBlockClientId)===Object(a.getDefaultBlockName)(),u=r(t.lastBlockClientId),{bodyPlaceholder:d}=c();return{isVisible:i||!s||!u,showPrompt:i,isLocked:!!l(t.rootClientId),placeholder:d}}),Object(u.withDispatch)((e,t)=>{const{insertDefaultBlock:n,startTyping:o}=e(b.a);return{onAppend(){const{rootClientId:e}=t;n(void 0,e),o()}}}))((function(e){let{isLocked:t,isVisible:n,onAppend:r,showPrompt:i,placeholder:a,rootClientId:u}=e;if(t||!n)return null;const b=Object(s.decodeEntities)(a)||Object(l.__)("Type / to choose a block");return Object(o.createElement)("div",{"data-root-client-id":u||"",className:c()("block-editor-default-block-appender",{"has-visible-prompt":i})},Object(o.createElement)("p",{tabIndex:"0",contentEditable:!0,suppressContentEditableWarning:!0,role:"button","aria-label":Object(l.__)("Add block"),className:"block-editor-default-block-appender__content",onFocus:r},i?b:"\ufeff"),Object(o.createElement)(d.a,{rootClientId:u,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0}))}))},"5gPN":function(e,t,n){"use strict";n.d(t,"b",(function(){return o.a})),n.d(t,"c",(function(){return o.b})),n.d(t,"d",(function(){return o.c})),n.d(t,"a",(function(){return b})),n.d(t,"e",(function(){return p}));var o=n("bVpQ"),r=n("wx14"),c=n("GRId"),l=n("YLtl"),i=n("K9lf"),a=n("v5LD");const s=e=>Object(i.createHigherOrderComponent)(t=>n=>Object(c.createElement)(t,Object(r.a)({},n,{colors:e})),"withCustomColorPalette"),u=()=>Object(i.createHigherOrderComponent)(e=>t=>{const{palette:n}=Object(a.a)("color")||{},o=Object(c.useMemo)(()=>[...(null==n?void 0:n.custom)||[],...(null==n?void 0:n.theme)||[],...(null==n?void 0:n.default)||[]],[n]);return Object(c.createElement)(e,Object(r.a)({},t,{colors:o}))},"withEditorColorPalette");function d(e,t){const n=Object(l.reduce)(e,(e,t)=>({...e,...Object(l.isString)(t)?{[t]:Object(l.kebabCase)(t)}:t}),{});return Object(i.compose)([t,e=>class extends c.Component{constructor(e){super(e),this.setters=this.createSetters(),this.colorUtils={getMostReadableColor:this.getMostReadableColor.bind(this)},this.state={}}getMostReadableColor(e){const{colors:t}=this.props;return Object(o.d)(t,e)}createSetters(){return Object(l.reduce)(n,(e,t,n)=>{const o=Object(l.upperFirst)(n),r="custom"+o;return e["set"+o]=this.createSetColor(n,r),e},{})}createSetColor(e,t){return n=>{const r=Object(o.c)(this.props.colors,n);this.props.setAttributes({[e]:r&&r.slug?r.slug:void 0,[t]:r&&r.slug?void 0:n})}}static getDerivedStateFromProps(e,t){let{attributes:r,colors:c}=e;return Object(l.reduce)(n,(e,n,i)=>{const a=Object(o.b)(c,r[i],r["custom"+Object(l.upperFirst)(i)]),s=t[i];return(null==s?void 0:s.color)===a.color&&s?e[i]=s:e[i]={...a,class:Object(o.a)(n,a.slug)},e},{})}render(){return Object(c.createElement)(e,Object(r.a)({},this.props,{colors:void 0},this.state,this.setters,{colorUtils:this.colorUtils}))}}])}function b(e){return function(){const t=s(e);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return Object(i.createHigherOrderComponent)(d(o,t),"withCustomColors")}}function p(){const e=u();for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Object(i.createHigherOrderComponent)(d(n,e),"withColors")}},"6ZVF":function(e,t,n){"use strict";var o=n("GRId"),r=n("HSyU"),c=n("wx14"),l=n("TSYQ"),i=n.n(l),a=n("RxS6"),s=n("7SSY"),u=n("M+co"),d=n("j6zP");function b(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;const{platform:t}=e.navigator;return-1!==t.indexOf("Mac")||["iPad","iPhone"].includes(t)}var p=Object(o.memo)((function(e){let{className:t,isFirst:n,item:l,onSelect:p,onHover:m,isDraggable:f,...h}=e;const g=Object(o.useRef)(!1),O=l.icon?{backgroundColor:l.icon.background,color:l.icon.foreground}:{},v=Object(o.useMemo)(()=>[Object(r.createBlock)(l.name,l.initialAttributes,Object(r.createBlocksFromInnerBlocksTemplate)(l.innerBlocks))],[l.name,l.initialAttributes,l.initialAttributes]);return Object(o.createElement)(d.a,{isEnabled:f&&!l.disabled,blocks:v,icon:l.icon},e=>{let{draggable:r,onDragStart:d,onDragEnd:f}=e;return Object(o.createElement)("div",{className:"block-editor-block-types-list__list-item",draggable:r,onDragStart:e=>{g.current=!0,d&&(m(null),d(e))},onDragEnd:e=>{g.current=!1,f&&f(e)}},Object(o.createElement)(u.a,Object(c.a)({isFirst:n,className:i()("block-editor-block-types-list__item",t),disabled:l.isDisabled,onClick:e=>{e.preventDefault(),p(l,b()?e.metaKey:e.ctrlKey),m(null)},onKeyDown:e=>{const{keyCode:t}=e;t===a.ENTER&&(e.preventDefault(),p(l,b()?e.metaKey:e.ctrlKey),m(null))},onFocus:()=>{g.current||m(l)},onMouseEnter:()=>{g.current||m(l)},onMouseLeave:()=>m(null),onBlur:()=>m(null)},h),Object(o.createElement)("span",{className:"block-editor-block-types-list__item-icon",style:O},Object(o.createElement)(s.a,{icon:l.icon,showColors:!0})),Object(o.createElement)("span",{className:"block-editor-block-types-list__item-title"},l.title)))})})),m=n("xkPd"),f=n("HC45");t.a=function(e){let{items:t=[],onSelect:n,onHover:c=(()=>{}),children:l,label:i,isDraggable:a=!0}=e;return Object(o.createElement)(m.a,{className:"block-editor-block-types-list","aria-label":i},function(e,t){const n=[];for(let o=0,r=e.length;o<r;o+=t)n.push(e.slice(o,o+t));return n}(t,3).map((e,t)=>Object(o.createElement)(f.a,{key:t},e.map((e,l)=>Object(o.createElement)(p,{key:e.id,item:e,className:Object(r.getBlockMenuDefaultClassName)(e.id),onSelect:n,onHover:c,isDraggable:a,isFirst:0===t&&0===l})))),l)}},"6c9H":function(e,t,n){"use strict";var o=n("GRId"),r=n("fHnH"),c=n("abaT"),l=n("7bKH"),i=n("gdqT"),a=n("l3Sj"),s=n("tI+e");function u(e){let{colordBackgroundColor:t,colordTextColor:n,backgroundColor:r,textColor:c}=e;const l=t.brightness()<n.brightness()?Object(a.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter text color."):Object(a.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker text color.");return Object(o.useEffect)(()=>{Object(i.speak)(Object(a.__)("This color combination may be hard for people to read."))},[r,c]),Object(o.createElement)("div",{className:"block-editor-contrast-checker"},Object(o.createElement)(s.Notice,{spokenMessage:null,status:"warning",isDismissible:!1},l))}Object(r.b)([c.a,l.a]),t.a=function(e){let{backgroundColor:t,fallbackBackgroundColor:n,fallbackTextColor:c,fontSize:l,isLargeText:i,textColor:a}=e;if(!t&&!n||!a&&!c)return null;const s=Object(r.a)(t||n),d=Object(r.a)(a||c);return 1!==s.alpha()||1!==d.alpha()||d.isReadable(s,{level:"AA",size:i||!1!==i&&l>=24?"large":"small"})?null:Object(o.createElement)(u,{backgroundColor:t,textColor:a,colordBackgroundColor:s,colordTextColor:d})}},"6jxZ":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("1ZqX"),r=n("K9lf"),c=n("OL6h"),l=n("BhPs");function i(e){const{isBlockSelected:t}=Object(o.useSelect)(l.a),{selectBlock:n,selectionChange:i}=Object(o.useDispatch)(l.a);return Object(r.useRefEffect)(o=>{function r(r){t(e)?r.target.isContentEditable||i(e):Object(c.c)(o,r.target)&&n(e)}return o.addEventListener("focusin",r),()=>{o.removeEventListener("focusin",r)}},[t,n])}},"715p":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("YLtl");const r=e=>{if(!Object(o.isObject)(e)||Array.isArray(e))return e;const t=Object(o.pickBy)(Object(o.mapValues)(e,r),o.identity);return Object(o.isEmpty)(t)?void 0:t}},"7NR9":function(e,t,n){"use strict";var o=n("GRId"),r=n("YLtl"),c=n("TSYQ"),l=n.n(c),i=n("1ZqX"),a=n("RxS6"),s=n("l3Sj"),u=n("HSyU"),d=n("BLeD"),b=n.n(d);var p=n("REKd"),m=n("BhPs");const f={};function h(e){let{genericPreviewBlock:t,viewportWidth:n,style:r,isActive:c,onBlur:i,onHover:s,onSelect:u,styleClassName:d,itemRole:b}=e;const m=Object(o.useMemo)(()=>({...t,attributes:{...t.attributes,className:d}}),[t,d]);return Object(o.createElement)("div",{key:r.name,className:l()("block-editor-block-styles__item",{"is-active":c}),onClick:()=>u(),onKeyDown:e=>{a.ENTER!==e.keyCode&&a.SPACE!==e.keyCode||(e.preventDefault(),u())},onMouseEnter:s,onMouseLeave:i,role:b||"button",tabIndex:"0","aria-label":r.label||r.name},Object(o.createElement)("div",{className:"block-editor-block-styles__item-preview"},Object(o.createElement)(p.a,{viewportWidth:n,blocks:m})),Object(o.createElement)("div",{className:"block-editor-block-styles__item-label"},r.label||r.name))}t.a=function(e){let{clientId:t,onSwitch:n=r.noop,onHoverClassName:c=r.noop,itemRole:l}=e;const{styles:a,block:d,type:p,className:g}=Object(i.useSelect)(e=>{const{getBlock:n}=e(m.a),o=n(t);if(!o)return f;const r=Object(u.getBlockType)(o.name),{getBlockStyles:c}=e(u.store);return{block:o,type:r,styles:c(o.name),className:o.attributes.className||""}},[t]),{updateBlockAttributes:O}=Object(i.useDispatch)(m.a),v=function(e,t){return Object(o.useMemo)(()=>{const n=null==t?void 0:t.example,o=null==t?void 0:t.name;return n&&o?Object(u.getBlockFromExample)(o,{attributes:n.attributes,innerBlocks:n.innerBlocks}):e?Object(u.cloneBlock)(e):void 0},[null!=t&&t.example?null==e?void 0:e.name:e,t])}(d,p);if(!a||0===a.length)return null;const j=Object(r.find)(a,"isDefault")?a:[{name:"default",label:Object(s._x)("Default","block style"),isDefault:!0},...a],k=function(e,t){for(const n of new b.a(t).values()){if(-1===n.indexOf("is-style-"))continue;const t=n.substring(9),o=Object(r.find)(e,{name:t});if(o)return o}return Object(r.find)(e,"isDefault")}(j,g);return Object(o.createElement)("div",{className:"block-editor-block-styles"},j.map(e=>{var r,i;const a=function(e,t,n){const o=new b.a(e);return t&&o.remove("is-style-"+t.name),o.add("is-style-"+n.name),o.value}(g,k,e);return Object(o.createElement)(h,{genericPreviewBlock:v,viewportWidth:null!==(r=null===(i=p.example)||void 0===i?void 0:i.viewportWidth)&&void 0!==r?r:500,className:g,isActive:k===e,key:e.name,onSelect:()=>{O(t,{className:a}),c(null),n()},onBlur:()=>c(null),onHover:()=>c(a),style:e,styleClassName:a,itemRole:l})}))}},"7SSY":function(e,t,n){"use strict";var o=n("GRId"),r=n("TSYQ"),c=n.n(r),l=n("tI+e"),i=n("//Lo");t.a=Object(o.memo)((function(e){var t;let{icon:n,showColors:r=!1,className:a}=e;"block-default"===(null===(t=n)||void 0===t?void 0:t.src)&&(n={src:i.a});const s=Object(o.createElement)(l.Icon,{icon:n&&n.src?n.src:n}),u=r?{backgroundColor:n&&n.background,color:n&&n.foreground}:{};return Object(o.createElement)("span",{style:u,className:c()("block-editor-block-icon",a,{"has-colors":r})},s)}))},"7bKH":function(e,t,n){"use strict";var o=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},r=function(e){return.2126*o(e.r)+.7152*o(e.g)+.0722*o(e.b)};t.a=function(e){e.prototype.luminance=function(){return e=r(this.rgba),void 0===(t=2)&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var n,o,c,l,i,a,s,u=t instanceof e?t:new e(t);return l=this.rgba,i=u.toRgb(),n=(a=r(l))>(s=r(i))?(a+.05)/(s+.05):(s+.05)/(a+.05),void 0===(o=2)&&(o=0),void 0===c&&(c=Math.pow(10,o)),Math.floor(c*n)/c+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(l=void 0===(c=(n=t).size)?"normal":c,"AAA"===(r=void 0===(o=n.level)?"AA":o)&&"normal"===l?7:"AA"===r&&"large"===l?3:4.5);var n,o,r,c,l}}},"7fqt":function(e,t){e.exports=window.wp.wordcount},"8oxB":function(e,t){var n,o,r=e.exports={};function c(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}function i(e){if(n===setTimeout)return setTimeout(e,0);if((n===c||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:c}catch(e){n=c}try{o="function"==typeof clearTimeout?clearTimeout:l}catch(e){o=l}}();var a,s=[],u=!1,d=-1;function b(){u&&a&&(u=!1,a.length?s=a.concat(s):d=-1,s.length&&p())}function p(){if(!u){var e=i(b);u=!0;for(var t=s.length;t;){for(a=s,s=[];++d<t;)a&&a[d].run();d=-1,t=s.length}a=null,u=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===l||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function f(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new m(e,t)),1!==s.length||u||i(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},"9Do8":function(e,t,n){"use strict";e.exports=n("zt9T")},"9Ma0":function(e,t,n){"use strict";n.d(t,"b",(function(){return _})),n.d(t,"a",(function(){return y}));var o=n("wx14"),r=n("GRId"),c=n("TSYQ"),l=n.n(c),i=n("YLtl"),a=n("HSyU"),s=n("tI+e"),u=n("K9lf"),d=n("1ZqX"),b=n("l3Sj"),p=n("1iEr"),m=n("2gm7"),f=n("XgzB"),h=n("NWDH");function g(e,t,n,o,r,c,l){const i=n+1,a=e=>"up"===e?"horizontal"===l?Object(b.isRTL)()?"right":"left":"up":"down"===e?"horizontal"===l?Object(b.isRTL)()?"left":"right":"down":null;if(e>1)return function(e,t,n,o,r){const c=t+1;if(r<0&&n)return Object(b.__)("Blocks cannot be moved up as they are already at the top");if(r>0&&o)return Object(b.__)("Blocks cannot be moved down as they are already at the bottom");if(r<0&&!n)return Object(b.sprintf)(Object(b._n)("Move %1$d block from position %2$d up by one place","Move %1$d blocks from position %2$d up by one place",e),e,c);if(r>0&&!o)return Object(b.sprintf)(Object(b._n)("Move %1$d block from position %2$d down by one place","Move %1$d blocks from position %2$d down by one place",e),e,c)}(e,n,o,r,c);if(o&&r)return Object(b.sprintf)(Object(b.__)("Block %s is the only block, and cannot be moved"),t);if(c>0&&!r){const e=a("down");if("down"===e)return Object(b.sprintf)(Object(b.__)("Move %1$s block from position %2$d down to position %3$d"),t,i,i+1);if("left"===e)return Object(b.sprintf)(Object(b.__)("Move %1$s block from position %2$d left to position %3$d"),t,i,i+1);if("right"===e)return Object(b.sprintf)(Object(b.__)("Move %1$s block from position %2$d right to position %3$d"),t,i,i+1)}if(c>0&&r){const e=a("down");if("down"===e)return Object(b.sprintf)(Object(b.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===e)return Object(b.sprintf)(Object(b.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===e)return Object(b.sprintf)(Object(b.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(c<0&&!o){const e=a("up");if("up"===e)return Object(b.sprintf)(Object(b.__)("Move %1$s block from position %2$d up to position %3$d"),t,i,i-1);if("left"===e)return Object(b.sprintf)(Object(b.__)("Move %1$s block from position %2$d left to position %3$d"),t,i,i-1);if("right"===e)return Object(b.sprintf)(Object(b.__)("Move %1$s block from position %2$d right to position %3$d"),t,i,i-1)}if(c<0&&o){const e=a("up");if("up"===e)return Object(b.sprintf)(Object(b.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===e)return Object(b.sprintf)(Object(b.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===e)return Object(b.sprintf)(Object(b.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}var O=n("BhPs");const v=(e,t)=>"up"===e?"horizontal"===t?Object(b.isRTL)()?p.a:m.a:f.a:"down"===e?"horizontal"===t?Object(b.isRTL)()?m.a:p.a:h.a:null,j=(e,t)=>"up"===e?"horizontal"===t?Object(b.isRTL)()?Object(b.__)("Move right"):Object(b.__)("Move left"):Object(b.__)("Move up"):"down"===e?"horizontal"===t?Object(b.isRTL)()?Object(b.__)("Move left"):Object(b.__)("Move right"):Object(b.__)("Move down"):null,k=Object(r.forwardRef)((e,t)=>{let{clientIds:n,direction:c,orientation:b,...p}=e;const m=Object(u.useInstanceId)(k),f=Object(i.castArray)(n).length,{blockType:h,isDisabled:_,rootClientId:y,isFirst:E,isLast:C,firstIndex:S,orientation:w="vertical"}=Object(d.useSelect)(e=>{const{getBlockIndex:t,getBlockRootClientId:o,getBlockOrder:r,getBlock:l,getBlockListSettings:s}=e(O.a),u=Object(i.castArray)(n),d=Object(i.first)(u),p=o(d),m=t(d,p),f=t(Object(i.last)(u),p),h=r(p),g=l(d),v=0===m,j=f===h.length-1,{orientation:k}=s(p)||{};return{blockType:g?Object(a.getBlockType)(g.name):null,isDisabled:"up"===c?v:j,rootClientId:p,firstIndex:m,isFirst:v,isLast:j,orientation:b||k}},[n,c]),{moveBlocksDown:I,moveBlocksUp:B}=Object(d.useDispatch)(O.a),x="up"===c?B:I,T="block-editor-block-mover-button__description-"+m;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(s.Button,Object(o.a)({ref:t,className:l()("block-editor-block-mover-button",`is-${c}-button`),icon:v(c,w),label:j(c,w),"aria-describedby":T},p,{onClick:_?null:e=>{x(n,y),p.onClick&&p.onClick(e)},"aria-disabled":_})),Object(r.createElement)("span",{id:T,className:"block-editor-block-mover-button__description"},g(f,h&&h.title,S,E,C,"up"===c?-1:1,w)))}),_=Object(r.forwardRef)((e,t)=>Object(r.createElement)(k,Object(o.a)({direction:"up",ref:t},e))),y=Object(r.forwardRef)((e,t)=>Object(r.createElement)(k,Object(o.a)({direction:"down",ref:t},e)))},"9XVa":function(e,t,n){"use strict";n.d(t,"b",(function(){return o.a})),n.d(t,"c",(function(){return o.b})),n.d(t,"d",(function(){return o.c})),n.d(t,"a",(function(){return r.a})),n.d(t,"e",(function(){return d}));var o=n("NMUH"),r=n("QP/w"),c=n("wx14"),l=n("GRId"),i=n("YLtl"),a=n("K9lf"),s=n("v5LD");const u=[];var d=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=Object(i.reduce)(t,(e,t)=>(e[t]="custom"+Object(i.upperFirst)(t),e),{});return Object(a.createHigherOrderComponent)(Object(a.compose)([Object(a.createHigherOrderComponent)(e=>t=>{const n=Object(s.a)("typography.fontSizes")||u;return Object(l.createElement)(e,Object(c.a)({},t,{fontSizes:n}))},"withFontSizes"),e=>class extends l.Component{constructor(e){super(e),this.setters=this.createSetters(),this.state={}}createSetters(){return Object(i.reduce)(r,(e,t,n)=>(e["set"+Object(i.upperFirst)(n)]=this.createSetFontSize(n,t),e),{})}createSetFontSize(e,t){return n=>{const o=Object(i.find)(this.props.fontSizes,{size:Number(n)});this.props.setAttributes({[e]:o&&o.slug?o.slug:void 0,[t]:o&&o.slug?void 0:n})}}static getDerivedStateFromProps(e,t){let{attributes:n,fontSizes:c}=e;const l=(e,o)=>!t[o]||(n[o]?n[o]!==t[o].slug:t[o].size!==n[e]);if(!Object(i.some)(r,l))return null;const a=Object(i.reduce)(Object(i.pickBy)(r,l),(e,t,r)=>{const l=n[r],i=Object(o.a)(c,l,n[t]);return e[r]={...i,class:Object(o.b)(l)},e},{});return{...t,...a}}render(){return Object(l.createElement)(e,Object(c.a)({},this.props,{fontSizes:void 0},this.state,this.setters))}}]),"withFontSizes")}},AHN3:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));const o="core/block-editor"},AORF:function(e,t,n){"use strict";var o=n("YLtl"),r=n("1ZqX"),c=n("HSyU"),l=n("l3Sj"),i=n("gdqT"),a=n("GRId"),s=n("BhPs");t.a=function(e){let{rootClientId:t="",insertionIndex:n,clientId:u,isAppender:d,onSelect:b,shouldFocusBlock:p=!0}=e;const{getSelectedBlock:m}=Object(r.useSelect)(s.a),{destinationRootClientId:f,destinationIndex:h}=Object(r.useSelect)(e=>{const{getSelectedBlockClientId:o,getBlockRootClientId:r,getBlockIndex:c,getBlockOrder:l}=e(s.a),i=o();let a,b=t;return void 0!==n?a=n:u?a=c(u,b):!d&&i?(b=r(i),a=c(i,b)+1):a=l(b).length,{destinationRootClientId:b,destinationIndex:a}},[t,n,u,d]),{replaceBlocks:g,insertBlocks:O,showInsertionPoint:v,hideInsertionPoint:j}=Object(r.useDispatch)(s.a),k=Object(a.useCallback)((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=m();!d&&r&&Object(c.isUnmodifiedDefaultBlock)(r)?g(r.clientId,e,null,p||n?0:null,t):O(e,h,f,!0,p||n?0:null,t);const a=Object(l.sprintf)(Object(l._n)("%d block added.","%d blocks added.",Object(o.castArray)(e).length),Object(o.castArray)(e).length);Object(i.speak)(a),b&&b()}),[d,m,g,O,f,h,b,p]),_=Object(a.useCallback)(e=>{e?v(f,h):j()},[v,j,f,h]);return[f,k,_]}},B9Az:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");var c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=c},BCrt:function(e,t,n){"use strict";n.d(t,"c",(function(){return o.a})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"a",(function(){return i.a})),n.d(t,"b",(function(){return g}));var o=n("vSu0"),r=n("lJLt");function c(e){if(void 0===e)e=r.b.colors;else{const t=e.filter(e=>e.color);0===t.length?e=r.b.colors:t.length<e.length&&(e=t)}return e}function l(e){if(void 0===e)e=r.b.gradients;else{const t=e.filter(e=>e.gradient);0===t.length?e=r.b.gradients:t.length<e.length&&(e=t)}return e}var i=n("Btt3");function a(e){const t=null==e?void 0:e.trim().match(/^(0?[-.]?\d+)(r?e[m|x]|v[h|w|min|max]+|p[x|t|c]|[c|m]m|%|in|ch|Q|lh)$/);return isNaN(e)||isNaN(parseFloat(e))?t?{value:parseFloat(t[1])||t[1],unit:t[2]}:{value:e,unit:void 0}:{value:parseFloat(e),unit:"px"}}function s(e,t){const n=e.split(/[(),]/g).filter(Boolean),o=n.slice(1).map(e=>a(m(e,t)).value).filter(Boolean);switch(n[0]){case"min":return Math.min(...o)+"px";case"max":return Math.max(...o)+"px";case"clamp":return 3!==o.length?null:o[1]<o[0]?o[0]+"px":o[1]>o[2]?o[2]+"px":o[1]+"px";case"calc":return o[0]+"px"}}function u(e){for(;;){const t=e,n=/(max|min|calc|clamp)\(([^()]*)\)/g.exec(e)||[];if(n[0]){const t=s(n[0]);e=e.replace(n[0],t)}if(e===t||parseFloat(e))break}return a(e)}function d(e){for(let t=0;t<e.length;t++)if(["+","-","/","*"].includes(e[t]))return!0;return!1}function b(e){let t=!1;const n=e.split(/[+-/*/]/g).filter(Boolean);for(const o of n){const n=a(m(o));if(!parseFloat(n.value)){t=!0;break}e=e.replace(o,n.value)}return t?null:(o=e,Function(`'use strict'; return (${o})`)()).toFixed(0)+"px";var o}function p(e,t){const n=Object.assign({},{fontSize:16,lineHeight:16,width:375,height:812,type:"font"},t),o={em:n.fontSize,rem:n.fontSize,vh:.01*n.height,vw:.01*n.width,vmin:.01*(n.width<n.height?n.width:n.height),vmax:.01*(n.width>n.height?n.width:n.height),"%":.01*("font"===n.type?n.fontSize:n.width),ch:8,ex:7.15625,lh:n.lineHeight},r={in:96,cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,px:1,Q:96/2.54/40};return o[e.unit]?(o[e.unit]*e.value).toFixed(0)+"px":r[e.unit]?(r[e.unit]*e.value).toFixed(0)+"px":null}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isFinite(e))return e.toFixed(0)+"px";if(void 0===e)return null;let n=a(e);return n.unit||(n=u(e)),d(e)&&!n.unit?b(e):p(n,t)}const f={};function h(e){let t="";return e.hasOwnProperty("fontSize")&&(t=":"+e.width),e.hasOwnProperty("lineHeight")&&(t=":"+e.lineHeight),e.hasOwnProperty("width")&&(t=":"+e.width),e.hasOwnProperty("height")&&(t=":"+e.height),e.hasOwnProperty("type")&&(t=":"+e.type),t}var g=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e+h(t);return f[n]||(f[n]=m(e,t)),f[n]}},BLeD:function(e,t){e.exports=window.wp.tokenList},BhPs:function(e,t,n){"use strict";n.d(t,"b",(function(){return En})),n.d(t,"a",(function(){return Cn}));var o={};n.r(o),n.d(o,"getBlockName",(function(){return S})),n.d(o,"isBlockValid",(function(){return w})),n.d(o,"getBlockAttributes",(function(){return I})),n.d(o,"getBlock",(function(){return B})),n.d(o,"__unstableGetBlockWithoutInnerBlocks",(function(){return x})),n.d(o,"getBlocks",(function(){return T})),n.d(o,"__unstableGetClientIdWithClientIdsTree",(function(){return P})),n.d(o,"__unstableGetClientIdsTree",(function(){return R})),n.d(o,"getClientIdsOfDescendants",(function(){return N})),n.d(o,"getClientIdsWithDescendants",(function(){return L})),n.d(o,"getGlobalBlockCount",(function(){return M})),n.d(o,"getBlocksByClientId",(function(){return A})),n.d(o,"getBlockCount",(function(){return D})),n.d(o,"getSelectionStart",(function(){return F})),n.d(o,"getSelectionEnd",(function(){return z})),n.d(o,"getBlockSelectionStart",(function(){return H})),n.d(o,"getBlockSelectionEnd",(function(){return V})),n.d(o,"getSelectedBlockCount",(function(){return G})),n.d(o,"hasSelectedBlock",(function(){return U})),n.d(o,"getSelectedBlockClientId",(function(){return W})),n.d(o,"getSelectedBlock",(function(){return q})),n.d(o,"getBlockRootClientId",(function(){return K})),n.d(o,"getBlockParents",(function(){return $})),n.d(o,"getBlockParentsByBlockName",(function(){return Y})),n.d(o,"getBlockHierarchyRootClientId",(function(){return X})),n.d(o,"getLowestCommonAncestorWithSelectedBlock",(function(){return Z})),n.d(o,"getAdjacentBlockClientId",(function(){return Q})),n.d(o,"getPreviousBlockClientId",(function(){return J})),n.d(o,"getNextBlockClientId",(function(){return ee})),n.d(o,"getSelectedBlocksInitialCaretPosition",(function(){return te})),n.d(o,"getSelectedBlockClientIds",(function(){return ne})),n.d(o,"getMultiSelectedBlockClientIds",(function(){return oe})),n.d(o,"getMultiSelectedBlocks",(function(){return re})),n.d(o,"getFirstMultiSelectedBlockClientId",(function(){return ce})),n.d(o,"getLastMultiSelectedBlockClientId",(function(){return le})),n.d(o,"isFirstMultiSelectedBlock",(function(){return ie})),n.d(o,"isBlockMultiSelected",(function(){return ae})),n.d(o,"isAncestorMultiSelected",(function(){return se})),n.d(o,"getMultiSelectedBlocksStartClientId",(function(){return ue})),n.d(o,"getMultiSelectedBlocksEndClientId",(function(){return de})),n.d(o,"getBlockOrder",(function(){return be})),n.d(o,"getBlockIndex",(function(){return pe})),n.d(o,"isBlockSelected",(function(){return me})),n.d(o,"hasSelectedInnerBlock",(function(){return fe})),n.d(o,"isBlockWithinSelection",(function(){return he})),n.d(o,"hasMultiSelection",(function(){return ge})),n.d(o,"isMultiSelecting",(function(){return Oe})),n.d(o,"isSelectionEnabled",(function(){return ve})),n.d(o,"getBlockMode",(function(){return je})),n.d(o,"isTyping",(function(){return ke})),n.d(o,"isDraggingBlocks",(function(){return _e})),n.d(o,"getDraggedBlockClientIds",(function(){return ye})),n.d(o,"isBlockBeingDragged",(function(){return Ee})),n.d(o,"isAncestorBeingDragged",(function(){return Ce})),n.d(o,"isCaretWithinFormattedText",(function(){return Se})),n.d(o,"getBlockInsertionPoint",(function(){return we})),n.d(o,"isBlockInsertionPointVisible",(function(){return Ie})),n.d(o,"isValidTemplate",(function(){return Be})),n.d(o,"getTemplate",(function(){return xe})),n.d(o,"getTemplateLock",(function(){return Te})),n.d(o,"canInsertBlockType",(function(){return Ne})),n.d(o,"canInsertBlocks",(function(){return Le})),n.d(o,"canRemoveBlock",(function(){return Me})),n.d(o,"canRemoveBlocks",(function(){return Ae})),n.d(o,"canMoveBlock",(function(){return De})),n.d(o,"canMoveBlocks",(function(){return Fe})),n.d(o,"getInserterItems",(function(){return We})),n.d(o,"getBlockTransformItems",(function(){return qe})),n.d(o,"hasInserterItems",(function(){return Ke})),n.d(o,"__experimentalGetAllowedBlocks",(function(){return $e})),n.d(o,"__experimentalGetDirectInsertBlock",(function(){return Ye})),n.d(o,"__experimentalGetParsedPattern",(function(){return Xe})),n.d(o,"__experimentalGetAllowedPatterns",(function(){return Qe})),n.d(o,"__experimentalGetPatternsByBlockTypes",(function(){return Je})),n.d(o,"__experimentalGetPatternTransformItems",(function(){return et})),n.d(o,"getBlockListSettings",(function(){return tt})),n.d(o,"getSettings",(function(){return nt})),n.d(o,"isLastBlockChangePersistent",(function(){return ot})),n.d(o,"__experimentalGetBlockListSettingsForBlocks",(function(){return rt})),n.d(o,"__experimentalGetReusableBlockTitle",(function(){return ct})),n.d(o,"__unstableIsLastBlockChangeIgnored",(function(){return lt})),n.d(o,"__experimentalGetLastBlockAttributeChanges",(function(){return it})),n.d(o,"isNavigationMode",(function(){return st})),n.d(o,"hasBlockMovingClientId",(function(){return ut})),n.d(o,"didAutomaticChange",(function(){return dt})),n.d(o,"isBlockHighlighted",(function(){return bt})),n.d(o,"areInnerBlocksControlled",(function(){return pt})),n.d(o,"__experimentalGetActiveBlockIdByBlockNames",(function(){return mt})),n.d(o,"wasBlockJustInserted",(function(){return ft}));var r={};n.r(r),n.d(r,"resetBlocks",(function(){return kt})),n.d(r,"validateBlocksToTemplate",(function(){return _t})),n.d(r,"resetSelection",(function(){return yt})),n.d(r,"receiveBlocks",(function(){return Et})),n.d(r,"updateBlockAttributes",(function(){return Ct})),n.d(r,"updateBlock",(function(){return St})),n.d(r,"selectBlock",(function(){return wt})),n.d(r,"selectPreviousBlock",(function(){return It})),n.d(r,"selectNextBlock",(function(){return Bt})),n.d(r,"startMultiSelect",(function(){return xt})),n.d(r,"stopMultiSelect",(function(){return Tt})),n.d(r,"multiSelect",(function(){return Pt})),n.d(r,"clearSelectedBlock",(function(){return Rt})),n.d(r,"toggleSelection",(function(){return Nt})),n.d(r,"replaceBlocks",(function(){return Mt})),n.d(r,"replaceBlock",(function(){return At})),n.d(r,"moveBlocksDown",(function(){return Ft})),n.d(r,"moveBlocksUp",(function(){return zt})),n.d(r,"moveBlocksToPosition",(function(){return Ht})),n.d(r,"moveBlockToPosition",(function(){return Vt})),n.d(r,"insertBlock",(function(){return Gt})),n.d(r,"insertBlocks",(function(){return Ut})),n.d(r,"showInsertionPoint",(function(){return Wt})),n.d(r,"hideInsertionPoint",(function(){return qt})),n.d(r,"setTemplateValidity",(function(){return Kt})),n.d(r,"synchronizeTemplate",(function(){return $t})),n.d(r,"mergeBlocks",(function(){return Yt})),n.d(r,"removeBlocks",(function(){return Xt})),n.d(r,"removeBlock",(function(){return Zt})),n.d(r,"replaceInnerBlocks",(function(){return Qt})),n.d(r,"toggleBlockMode",(function(){return Jt})),n.d(r,"startTyping",(function(){return en})),n.d(r,"stopTyping",(function(){return tn})),n.d(r,"startDraggingBlocks",(function(){return nn})),n.d(r,"stopDraggingBlocks",(function(){return on})),n.d(r,"enterFormattedText",(function(){return rn})),n.d(r,"exitFormattedText",(function(){return cn})),n.d(r,"selectionChange",(function(){return ln})),n.d(r,"insertDefaultBlock",(function(){return an})),n.d(r,"updateBlockListSettings",(function(){return sn})),n.d(r,"updateSettings",(function(){return un})),n.d(r,"__unstableSaveReusableBlock",(function(){return dn})),n.d(r,"__unstableMarkLastChangeAsPersistent",(function(){return bn})),n.d(r,"__unstableMarkNextChangeAsNotPersistent",(function(){return pn})),n.d(r,"__unstableMarkAutomaticChange",(function(){return mn})),n.d(r,"setNavigationMode",(function(){return fn})),n.d(r,"setBlockMovingClientId",(function(){return hn})),n.d(r,"duplicateBlocks",(function(){return gn})),n.d(r,"insertBeforeBlock",(function(){return On})),n.d(r,"insertAfterBlock",(function(){return vn})),n.d(r,"toggleBlockHighlight",(function(){return jn})),n.d(r,"flashBlock",(function(){return kn})),n.d(r,"setHasControlledInnerBlocks",(function(){return _n}));var c=n("1ZqX"),l=n("YLtl"),i=n("HSyU"),a=n("lJLt");function s(e,t,n){return[...e.slice(0,n),...Object(l.castArray)(t),...e.slice(n)]}function u(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const r=[...e];return r.splice(t,o),s(r,e.slice(t,t+o),n)}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n={[t]:[]};return e.forEach(e=>{const{clientId:o,innerBlocks:r}=e;n[t].push(o),Object.assign(n,d(r,o))}),n}function b(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce((e,n)=>Object.assign(e,{[n.clientId]:t},b(n.innerBlocks,n.clientId)),{})}function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.identity;const n={},o=[...e];for(;o.length;){const{innerBlocks:e,...r}=o.shift();o.push(...e),n[r.clientId]=t(r)}return n}function m(e){return p(e,e=>Object(l.omit)(e,"attributes"))}function f(e){return p(e,e=>e.attributes)}function h(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&Object(l.isEqual)(e.clientIds,t.clientIds)&&(n=e.attributes,o=t.attributes,Object(l.isEqual)(Object(l.keys)(n),Object(l.keys)(o)));var n,o}function g(e,t){const n={},o=[...t],r=[...t];for(;o.length;){const e=o.shift();o.push(...e.innerBlocks),r.push(...e.innerBlocks)}for(const e of r)n[e.clientId]={};for(const t of r)n[t.clientId]=Object.assign(n[t.clientId],{...e.byClientId[t.clientId],attributes:e.attributes[t.clientId],innerBlocks:t.innerBlocks.map(e=>n[e.clientId])});return n}function O(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=new Set([]),c=new Set;for(const t of n){let n=o?t:e.parents[t];do{if(e.controlledInnerBlocks[n]){c.add(n);break}r.add(n),n=e.parents[n]}while(void 0!==n)}for(const e of r)t[e]={...t[e]};for(const n of r)t[n].innerBlocks=(e.order[n]||[]).map(e=>t[e]);for(const n of c)t["controlled||"+n]={innerBlocks:(e.order[n]||[]).map(e=>t[e])};return t}const v=Object(l.flow)(c.combineReducers,e=>(t,n)=>{if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){const{id:e,updatedId:o}=n;if(e===o)return t;(t={...t}).attributes=Object(l.mapValues)(t.attributes,(n,r)=>{const{name:c}=t.byClientId[r];return"core/block"===c&&n.ref===e?{...n,ref:o}:n})}return e(t,n)},e=>function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;const o=e(t,n);if(o===t)return t;switch(o.tree=t.tree?t.tree:{},n.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const e=g(o,n.blocks);o.tree=O(o,{...o.tree,...e},n.rootClientId?[n.rootClientId]:[""],!0);break}case"UPDATE_BLOCK":o.tree=O(o,{...o.tree,[n.clientId]:{...o.tree[n.clientId],...o.byClientId[n.clientId],attributes:o.attributes[n.clientId]}},[n.clientId],!1);break;case"UPDATE_BLOCK_ATTRIBUTES":{const e=n.clientIds.reduce((e,t)=>(e[t]={...o.tree[t],attributes:o.attributes[t]},e),{});o.tree=O(o,{...o.tree,...e},n.clientIds,!1);break}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const e=g(o,n.blocks);o.tree=O(o,{...Object(l.omit)(o.tree,n.replacedClientIds.concat(n.replacedClientIds.map(e=>"controlled||"+e))),...e},n.blocks.map(e=>e.clientId),!1);const r=[];for(const e of n.clientIds)void 0===t.parents[e]||""!==t.parents[e]&&!o.byClientId[t.parents[e]]||r.push(t.parents[e]);o.tree=O(o,o.tree,r,!0);break}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":const e=[];for(const r of n.clientIds)void 0===t.parents[r]||""!==t.parents[r]&&!o.byClientId[t.parents[r]]||e.push(t.parents[r]);o.tree=O(o,Object(l.omit)(o.tree,n.removedClientIds.concat(n.removedClientIds.map(e=>"controlled||"+e))),e,!0);break;case"MOVE_BLOCKS_TO_POSITION":{const e=[];n.fromRootClientId&&e.push(n.fromRootClientId),n.toRootClientId&&e.push(n.toRootClientId),n.fromRootClientId&&n.fromRootClientId||e.push(""),o.tree=O(o,o.tree,e,!0);break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{const e=[n.rootClientId?n.rootClientId:""];o.tree=O(o,o.tree,e,!0);break}case"SAVE_REUSABLE_BLOCK_SUCCESS":{const e=Object(l.keys)(Object(l.omitBy)(o.attributes,(e,t)=>"core/block"!==o.byClientId[t].name||e.ref!==n.updatedId));o.tree=O(o,{...o.tree,...e.reduce((e,t)=>(e[t]={...o.byClientId[t],attributes:o.attributes[t],innerBlocks:o.tree[t].innerBlocks},e),{})},e,!1)}}return o},e=>(t,n)=>{const o=e=>{let o=e;for(let r=0;r<o.length;r++)!t.order[o[r]]||n.keepControlledInnerBlocks&&n.keepControlledInnerBlocks[o[r]]||(o===e&&(o=[...o]),o.push(...t.order[o[r]]));return o};if(t)switch(n.type){case"REMOVE_BLOCKS":n={...n,type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:o(n.clientIds)};break;case"REPLACE_BLOCKS":n={...n,type:"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",replacedClientIds:o(n.clientIds)}}return e(t,n)},e=>(t,n)=>{if("REPLACE_INNER_BLOCKS"!==n.type)return e(t,n);const o={};if(Object.keys(t.controlledInnerBlocks).length){const e=[...n.blocks];for(;e.length;){const{innerBlocks:n,...r}=e.shift();e.push(...n),t.controlledInnerBlocks[r.clientId]&&(o[r.clientId]=!0)}}let r=t;t.order[n.rootClientId]&&(r=e(r,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:o,clientIds:t.order[n.rootClientId]}));let c=r;return n.blocks.length&&(c=e(c,{...n,type:"INSERT_BLOCKS",index:0}),c.order={...c.order,...Object(l.reduce)(o,(e,n,o)=>(t.order[o]&&(e[o]=t.order[o]),e),{})}),c},e=>(t,n)=>{if("RESET_BLOCKS"===n.type){var o,r,c;const e=function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(l.reduce)(t[n],(n,r)=>o[r]?n:[...n,r,...e(t,r)],[])}(null!==(o=null==t?void 0:t.order)&&void 0!==o?o:{},"",null!==(r=null==t?void 0:t.controlledInnerBlocks)&&void 0!==r?r:{}),i=Object.keys(Object(l.pickBy)(null!==(c=null==t?void 0:t.controlledInnerBlocks)&&void 0!==c?c:{})),a={...t,byClientId:{...Object(l.omit)(null==t?void 0:t.byClientId,e),...m(n.blocks)},attributes:{...Object(l.omit)(null==t?void 0:t.attributes,e),...f(n.blocks)},order:{...Object(l.omit)(null==t?void 0:t.order,e),...Object(l.omit)(d(n.blocks),i)},parents:{...Object(l.omit)(null==t?void 0:t.parents,e),...b(n.blocks)},controlledInnerBlocks:(null==t?void 0:t.controlledInnerBlocks)||{}},s=g(a,n.blocks);return a.tree={...Object(l.omit)(null==t?void 0:t.tree,e),...s,"":{innerBlocks:n.blocks.map(e=>s[e.clientId])}},a}return e(t,n)},(function(e){let t,n=!1;return(o,r)=>{let c=e(o,r);const l="MARK_LAST_CHANGE_AS_PERSISTENT"===r.type||n;if(o===c&&!l){var i;n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===r.type;const e=null===(i=null==o?void 0:o.isPersistentChange)||void 0===i||i;return o.isPersistentChange===e?o:{...c,isPersistentChange:e}}return c={...c,isPersistentChange:l?!n:!h(r,t)},t=r,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===r.type,c}}),(function(e){const t=new Set(["RECEIVE_BLOCKS"]);return(n,o)=>{const r=e(n,o);return r!==n&&(r.isIgnoredChange=t.has(o.type)),r}}))({byClientId(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return{...e,...m(t.blocks)};case"UPDATE_BLOCK":if(!e[t.clientId])return e;const n=Object(l.omit)(t.updates,"attributes");return Object(l.isEmpty)(n)?e:{...e,[t.clientId]:{...e[t.clientId],...n}};case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?{...Object(l.omit)(e,t.replacedClientIds),...m(t.blocks)}:e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(l.omit)(e,t.removedClientIds)}return e},attributes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return{...e,...f(t.blocks)};case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?{...e,[t.clientId]:{...e[t.clientId],...t.updates.attributes}}:e;case"UPDATE_BLOCK_ATTRIBUTES":{if(t.clientIds.every(t=>!e[t]))return e;const n=t.clientIds.reduce((n,o)=>({...n,[o]:Object(l.reduce)(t.uniqueByBlock?t.attributes[o]:t.attributes,(t,n,r)=>{var c,l;return n!==t[r]&&((t=(c=e[o])===(l=t)?{...c}:l)[r]=n),t},e[o])}),{});return t.clientIds.every(t=>n[t]===e[t])?e:{...e,...n}}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?{...Object(l.omit)(e,t.replacedClientIds),...f(t.blocks)}:e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(l.omit)(e,t.removedClientIds)}return e},order(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":{const n=d(t.blocks);return{...e,...Object(l.omit)(n,""),"":((null==e?void 0:e[""])||[]).concat(n[""])}}case"INSERT_BLOCKS":{const{rootClientId:n=""}=t,o=e[n]||[],r=d(t.blocks,n),{index:c=o.length}=t;return{...e,...r,[n]:s(o,r[n],c)}}case"MOVE_BLOCKS_TO_POSITION":{const{fromRootClientId:n="",toRootClientId:o="",clientIds:r}=t,{index:c=e[o].length}=t;if(n===o){const t=e[o].indexOf(r[0]);return{...e,[o]:u(e[o],t,c,r.length)}}return{...e,[n]:Object(l.without)(e[n],...r),[o]:s(e[o],r,c)}}case"MOVE_BLOCKS_UP":{const{clientIds:n,rootClientId:o=""}=t,r=Object(l.first)(n),c=e[o];if(!c.length||r===Object(l.first)(c))return e;const i=c.indexOf(r);return{...e,[o]:u(c,i,i-1,n.length)}}case"MOVE_BLOCKS_DOWN":{const{clientIds:n,rootClientId:o=""}=t,r=Object(l.first)(n),c=Object(l.last)(n),i=e[o];if(!i.length||c===Object(l.last)(i))return e;const a=i.indexOf(r);return{...e,[o]:u(i,a,a+1,n.length)}}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const{clientIds:n}=t;if(!t.blocks)return e;const o=d(t.blocks);return Object(l.flow)([e=>Object(l.omit)(e,t.replacedClientIds),e=>({...e,...Object(l.omit)(o,"")}),e=>Object(l.mapValues)(e,e=>Object(l.reduce)(e,(e,t)=>t===n[0]?[...e,...o[""]]:(-1===n.indexOf(t)&&e.push(t),e),[]))])(e)}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(l.flow)([e=>Object(l.omit)(e,t.removedClientIds),e=>Object(l.mapValues)(e,e=>Object(l.without)(e,...t.removedClientIds))])(e)}return e},parents(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":return{...e,...b(t.blocks)};case"INSERT_BLOCKS":return{...e,...b(t.blocks,t.rootClientId||"")};case"MOVE_BLOCKS_TO_POSITION":return{...e,...t.clientIds.reduce((e,n)=>(e[n]=t.toRootClientId||"",e),{})};case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return{...Object(l.omit)(e,t.replacedClientIds),...b(t.blocks,e[t.clientIds[0]])};case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(l.omit)(e,t.removedClientIds)}return e},controlledInnerBlocks(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t,clientId:n,hasControlledInnerBlocks:o}=arguments.length>1?arguments[1]:void 0;return"SET_HAS_CONTROLLED_INNER_BLOCKS"===t?{...e,[n]:o}:e}});function j(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection&&t.blocks.length?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":{if(-1===t.clientIds.indexOf(e.clientId))return e;const n=t.blocks[t.indexToSelect]||t.blocks[t.blocks.length-1];return n?n.clientId===e.clientId?e:{clientId:n.clientId}:{}}}return e}var k=Object(c.combineReducers)({blocks:v,isTyping:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},draggedBlocks:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},isCaretWithinFormattedText:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},selection:function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;switch(o.type){case"SELECTION_CHANGE":return{selectionStart:{clientId:o.clientId,attributeKey:o.attributeKey,offset:o.startOffset},selectionEnd:{clientId:o.clientId,attributeKey:o.attributeKey,offset:o.endOffset}};case"RESET_SELECTION":const{selectionStart:r,selectionEnd:c}=o;return{selectionStart:r,selectionEnd:c};case"MULTI_SELECT":const{start:l,end:i}=o;return{selectionStart:{clientId:l},selectionEnd:{clientId:i}};case"RESET_BLOCKS":const a=null==n||null===(e=n.selectionStart)||void 0===e?void 0:e.clientId,s=null==n||null===(t=n.selectionEnd)||void 0===t?void 0:t.clientId;if(!a&&!s)return n;if(!o.blocks.some(e=>e.clientId===a))return{selectionStart:{},selectionEnd:{}};if(!o.blocks.some(e=>e.clientId===s))return{...n,selectionEnd:n.selectionStart}}return{selectionStart:j(n.selectionStart,o),selectionEnd:j(n.selectionEnd,o)}},isMultiSelecting:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOGGLE_SELECTION":return t.isSelectionEnabled}return e},initialPosition:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return"REPLACE_BLOCKS"===t.type&&void 0!==t.initialPosition||["SELECT_BLOCK","RESET_SELECTION","INSERT_BLOCKS","REPLACE_INNER_BLOCKS"].includes(t.type)?t.initialPosition:e},blocksMode:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("TOGGLE_BLOCK_MODE"===t.type){const{clientId:n}=t;return{...e,[n]:e[n]&&"html"===e[n]?"visual":"html"}}return e},blockListSettings:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object(l.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":{const{clientId:n}=t;return t.settings?Object(l.isEqual)(e[n],t.settings)?e:{...e,[n]:t.settings}:e.hasOwnProperty(n)?Object(l.omit)(e,n):e}}return e},insertionPoint:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SHOW_INSERTION_POINT":const{rootClientId:e,index:n,__unstableWithInserter:o}=t;return{rootClientId:e,index:n,__unstableWithInserter:o};case"HIDE_INSERTION_POINT":return null}return e},template:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE_VALIDITY":return{...e,isValid:t.isValid}}return e},settings:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.b,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return{...e,...t.settings}}return e},preferences:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce((e,n)=>{const{attributes:o,name:r}=n,l=Object(c.select)(i.store).getActiveBlockVariation(r,o);let a=null!=l&&l.name?`${r}/${l.name}`:r;const s={name:a};return"core/block"===r&&(s.ref=o.ref,a+="/"+o.ref),{...e,insertUsage:{...e.insertUsage,[a]:{time:t.time,count:e.insertUsage[a]?e.insertUsage[a].count+1:1,insert:s}}}},e)}return e},lastBlockAttributesChange:function(e,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return{[t.clientId]:t.updates.attributes};case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce((e,n)=>({...e,[n]:t.uniqueByBlock?t.attributes[n]:t.attributes}),{})}return null},isNavigationMode:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"INSERT_BLOCKS"!==t.type&&("SET_NAVIGATION_MODE"===t.type?t.isNavigationMode:e)},hasBlockMovingClientId:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return"SET_BLOCK_MOVING_MODE"===t.type?t.hasBlockMovingClientId:"SET_NAVIGATION_MODE"===t.type?null:e},automaticChangeStatus:function(e,t){switch(t.type){case"MARK_AUTOMATIC_CHANGE":return"pending";case"MARK_AUTOMATIC_CHANGE_FINAL":return"pending"===e?"final":void 0;case"SELECTION_CHANGE":return"final"!==e?e:void 0;case"START_TYPING":case"STOP_TYPING":return e}},highlightedBlock:function(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":const{clientId:n,isHighlighted:o}=t;return o?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e},lastBlockInserted:function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case"INSERT_BLOCKS":if(!n.blocks.length)return t;return{clientId:n.blocks[0].clientId,source:null===(e=n.meta)||void 0===e?void 0:e.source};case"RESET_BLOCKS":return{}}return t}}),_=n("pPDe"),y=n("GRId"),E=n("+WrK");const C=[];function S(e,t){const n=e.blocks.byClientId[t];if("web"!==y.Platform.OS&&"core/social-link"===(null==n?void 0:n.name)){const n=e.blocks.attributes[t],{service:o}=n;return o?"core/social-link-"+o:"core/social-link"}return n?n.name:null}function w(e,t){const n=e.blocks.byClientId[t];return!!n&&n.isValid}function I(e,t){return e.blocks.byClientId[t]?e.blocks.attributes[t]:null}function B(e,t){return e.blocks.byClientId[t]?e.blocks.tree[t]:null}const x=Object(_.a)((e,t)=>{const n=e.blocks.byClientId[t];return n?{...n,attributes:I(e,t)}:null},(e,t)=>[e.blocks.byClientId[t],e.blocks.attributes[t]]);function T(e,t){var n;const o=t&&pt(e,t)?"controlled||"+t:t||"";return(null===(n=e.blocks.tree[o])||void 0===n?void 0:n.innerBlocks)||C}const P=Object(_.a)((e,t)=>({clientId:t,innerBlocks:R(e,t)}),e=>[e.blocks.order]),R=Object(_.a)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(l.map)(be(e,t),t=>P(e,t))}),e=>[e.blocks.order]),N=(e,t)=>Object(l.flatMap)(t,t=>{const n=be(e,t);return[...n,...N(e,n)]}),L=Object(_.a)(e=>{const t=be(e);return[...t,...N(e,t)]},e=>[e.blocks.order]),M=Object(_.a)((e,t)=>{const n=L(e);return t?Object(l.reduce)(n,(n,o)=>e.blocks.byClientId[o].name===t?n+1:n,0):n.length},e=>[e.blocks.order,e.blocks.byClientId]),A=Object(_.a)((e,t)=>Object(l.map)(Object(l.castArray)(t),t=>B(e,t)),(e,t)=>Object(l.map)(Object(l.castArray)(t),t=>e.blocks.tree[t]));function D(e,t){return be(e,t).length}function F(e){return e.selection.selectionStart}function z(e){return e.selection.selectionEnd}function H(e){return e.selection.selectionStart.clientId}function V(e){return e.selection.selectionEnd.clientId}function G(e){const t=oe(e).length;return t||(e.selection.selectionStart.clientId?1:0)}function U(e){const{selectionStart:t,selectionEnd:n}=e.selection;return!!t.clientId&&t.clientId===n.clientId}function W(e){const{selectionStart:t,selectionEnd:n}=e.selection,{clientId:o}=t;return o&&o===n.clientId?o:null}function q(e){const t=W(e);return t?B(e,t):null}function K(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}const $=Object(_.a)((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=[];let r=t;for(;e.blocks.parents[r];)r=e.blocks.parents[r],o.push(r);return n?o:o.reverse()}),e=>[e.blocks.parents]),Y=Object(_.a)((function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=$(e,t,o);return Object(l.map)(Object(l.filter)(Object(l.map)(r,t=>({id:t,name:S(e,t)})),e=>{let{name:t}=e;return Array.isArray(n)?n.includes(t):t===n}),e=>{let{id:t}=e;return t})}),e=>[e.blocks.parents]);function X(e,t){let n,o=t;do{n=o,o=e.blocks.parents[o]}while(o);return n}function Z(e,t){const n=W(e),o=[...$(e,t),t],r=[...$(e,n),n];let c;const l=Math.min(o.length,r.length);for(let e=0;e<l&&o[e]===r[e];e++)c=o[e];return c}function Q(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=W(e)),void 0===t&&(t=n<0?ce(e):le(e)),!t)return null;const o=K(e,t);if(null===o)return null;const{order:r}=e.blocks,c=r[o],l=c.indexOf(t),i=l+1*n;return i<0||i===c.length?null:c[i]}function J(e,t){return Q(e,t,-1)}function ee(e,t){return Q(e,t,1)}function te(e){return e.initialPosition}const ne=Object(_.a)(e=>{const{selectionStart:t,selectionEnd:n}=e.selection;if(void 0===t.clientId||void 0===n.clientId)return C;if(t.clientId===n.clientId)return[t.clientId];const o=K(e,t.clientId);if(null===o)return C;const r=be(e,o),c=r.indexOf(t.clientId),l=r.indexOf(n.clientId);return c>l?r.slice(l,c+1):r.slice(c,l+1)},e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]);function oe(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?C:ne(e)}const re=Object(_.a)(e=>{const t=oe(e);return t.length?t.map(t=>B(e,t)):C},e=>[...ne.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]);function ce(e){return Object(l.first)(oe(e))||null}function le(e){return Object(l.last)(oe(e))||null}function ie(e,t){return ce(e)===t}function ae(e,t){return-1!==oe(e).indexOf(t)}const se=Object(_.a)((e,t)=>{let n=t,o=!1;for(;n&&!o;)n=K(e,n),o=ae(e,n);return o},e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]);function ue(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:t.clientId||null}function de(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:n.clientId||null}function be(e,t){return e.blocks.order[t||""]||C}function pe(e,t,n){return be(e,n).indexOf(t)}function me(e,t){const{selectionStart:n,selectionEnd:o}=e.selection;return n.clientId===o.clientId&&n.clientId===t}function fe(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(l.some)(be(e,t),t=>me(e,t)||ae(e,t)||n&&fe(e,t,n))}function he(e,t){if(!t)return!1;const n=oe(e),o=n.indexOf(t);return o>-1&&o<n.length-1}function ge(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId!==n.clientId}function Oe(e){return e.isMultiSelecting}function ve(e){return e.isSelectionEnabled}function je(e,t){return e.blocksMode[t]||"visual"}function ke(e){return e.isTyping}function _e(e){return!!e.draggedBlocks.length}function ye(e){return e.draggedBlocks}function Ee(e,t){return e.draggedBlocks.includes(t)}function Ce(e,t){if(!_e(e))return!1;const n=$(e,t);return Object(l.some)(n,t=>Ee(e,t))}function Se(e){return e.isCaretWithinFormattedText}function we(e){let t,n;const{insertionPoint:o,selection:{selectionEnd:r}}=e;if(null!==o)return o;const{clientId:c}=r;return c?(t=K(e,c)||void 0,n=pe(e,r.clientId,t)+1):n=be(e).length,{rootClientId:t,index:n}}function Ie(e){return null!==e.insertionPoint}function Be(e){return e.template.isValid}function xe(e){return e.settings.template}function Te(e,t){if(!t)return e.settings.templateLock;const n=tt(e,t);return n?n.templateLock:null}const Pe=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object(l.isBoolean)(e)?e:Object(l.isArray)(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n},Re=function(e,t){let n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(t&&"object"==typeof t?(n=t,t=n.name):n=Object(i.getBlockType)(t),!n)return!1;const{allowedBlockTypes:r}=nt(e),c=Pe(r,t,!0);if(!c)return!1;const l=!!Te(e,o);if(l)return!1;const a=tt(e,o);if(o&&void 0===a)return!1;const s=null==a?void 0:a.allowedBlocks,u=Pe(s,t),d=n.parent,b=S(e,o),p=Pe(d,b);return null!==u&&null!==p?u||p:null!==u?u:null===p||p},Ne=Object(_.a)(Re,(e,t,n)=>[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]);function Le(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every(t=>Ne(e,S(e,t),n))}function Me(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const o=I(e,t);if(null===o)return!0;const{lock:r}=o,c=!!Te(e,n);return void 0===r||void 0===(null==r?void 0:r.remove)?!c:!(null!=r&&r.remove)}function Ae(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every(t=>Me(e,t,n))}function De(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const o=I(e,t);if(null===o)return;const{lock:r}=o,c="all"===Te(e,n);return void 0===r||void 0===(null==r?void 0:r.move)?!c:!(null!=r&&r.move)}function Fe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every(t=>De(e,t,n))}function ze(e,t){var n,o;return null!==(n=null===(o=e.preferences.insertUsage)||void 0===o?void 0:o[t])&&void 0!==n?n:null}const He=(e,t,n)=>!!Object(i.hasBlockSupport)(t,"inserter",!0)&&Re(e,t.name,n),Ve=(e,t)=>n=>{const o=`${t.id}/${n.name}`,{time:r,count:c=0}=ze(e,o)||{};return{...t,id:o,icon:n.icon||t.icon,title:n.title||t.title,description:n.description||t.description,category:n.category||t.category,example:n.hasOwnProperty("example")?n.example:t.example,initialAttributes:{...t.initialAttributes,...n.attributes},innerBlocks:n.innerBlocks,keywords:n.keywords||t.keywords,frecency:Ge(r,c)}},Ge=(e,t)=>{if(!e)return t;const n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},Ue=(e,t)=>{let{buildScope:n="inserter"}=t;return t=>{const o=t.name;let r=!1;Object(i.hasBlockSupport)(t.name,"multiple",!0)||(r=Object(l.some)(A(e,L(e)),{name:t.name}));const{time:c,count:a=0}=ze(e,o)||{},s={id:o,name:t.name,title:t.title,icon:t.icon,isDisabled:r,frecency:Ge(c,a)};if("transform"===n)return s;const u=Object(i.getBlockVariations)(t.name,"inserter");return{...s,initialAttributes:{},description:t.description,category:t.category,keywords:t.keywords,variations:u,example:t.example,utility:1}}},We=Object(_.a)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=Ue(e,{buildScope:"inserter"}),o=/^\s*<!--\s+(\/)?wp:([a-z][a-z0-9_-]*\/)?([a-z][a-z0-9_-]*)\s+({(?:(?=([^}]+|}+(?=})|(?!}\s+\/?-->)[^])*)\5|[^]*?)}\s+)?(\/)?-->/,r=t=>{let n=E.a;if("web"===y.Platform.OS){const e=("string"==typeof t.content.raw?t.content.raw:t.content).match(o);if(e){const[,,t="core/",o]=e,r=Object(i.getBlockType)(t+o);r&&(n=r.icon)}}const r="core/block/"+t.id,{time:c,count:l=0}=ze(e,r)||{},a=Ge(c,l);return{id:r,name:"core/block",initialAttributes:{ref:t.id},title:t.title.raw,icon:n,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:a}},c=Object(i.getBlockTypes)().filter(n=>He(e,n,t)).map(n),l=Re(e,"core/block",t)?at(e).map(r):[],a=c.reduce((t,n)=>{const{variations:o=[]}=n;if(o.some(e=>{let{isDefault:t}=e;return t})||t.push(n),o.length){const r=Ve(e,n);t.push(...o.map(r))}return t},[]),s=(e,t)=>{const{core:n,noncore:o}=e;return(t.name.startsWith("core/")?n:o).push(t),e},{core:u,noncore:d}=a.reduce(s,{core:[],noncore:[]}),b=[...u,...d];return[...b,...l]}),(e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,at(e),Object(i.getBlockTypes)()]),qe=Object(_.a)((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const o=Ue(e,{buildScope:"transform"}),r=Object(i.getBlockTypes)().filter(t=>He(e,t,n)).map(o),c=Object(l.mapKeys)(r,e=>{let{name:t}=e;return t}),a=Object(i.getPossibleBlockTransformations)(t).reduce((e,t)=>(c[null==t?void 0:t.name]&&e.push(c[t.name]),e),[]),s=Object(l.orderBy)(a,e=>c[e.name].frecency,"desc");return s}),(e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Object(i.getBlockTypes)()]),Ke=Object(_.a)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=Object(l.some)(Object(i.getBlockTypes)(),n=>He(e,n,t));if(n)return!0;const o=Re(e,"core/block",t)&&at(e).length>0;return o}),(e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,at(e),Object(i.getBlockTypes)()]),$e=Object(_.a)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return Object(l.filter)(Object(i.getBlockTypes)(),n=>He(e,n,t))}),(e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Object(i.getBlockTypes)()]),Ye=Object(_.a)((function(e){var t,n;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!o)return;const r=null===(t=e.blockListSettings[o])||void 0===t?void 0:t.__experimentalDefaultBlock,c=null===(n=e.blockListSettings[o])||void 0===n?void 0:n.__experimentalDirectInsert;return r&&c?"function"==typeof c?c(B(e,o))?r:null:r:void 0}),(e,t)=>[e.blockListSettings[t],e.blocks.tree[t]]),Xe=Object(_.a)((e,t)=>{const n=e.settings.__experimentalBlockPatterns.find(e=>{let{name:n}=e;return n===t});return n?{...n,blocks:Object(i.parse)(n.content)}:null},e=>[e.settings.__experimentalBlockPatterns]),Ze=Object(_.a)(e=>{const t=e.settings.__experimentalBlockPatterns,{allowedBlockTypes:n}=nt(e);return t.filter(e=>{let{inserter:t=!0}=e;return!!t}).map(t=>{let{name:n}=t;return Xe(e,n)}).filter(e=>{let{blocks:t}=e;return((e,t)=>{if(Object(l.isBoolean)(t))return t;const n=[...e];for(;n.length>0;){var o;const e=n.shift();if(!Pe(t,e.name||e.blockName,!0))return!1;null===(o=e.innerBlocks)||void 0===o||o.forEach(e=>{n.push(e)})}return!0})(t,n)})},e=>[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes]),Qe=Object(_.a)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=Ze(e),o=Object(l.filter)(n,n=>{let{blocks:o}=n;return o.every(n=>{let{name:o}=n;return Ne(e,o,t)})});return o}),(e,t)=>[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes,e.settings.templateLock,e.blockListSettings[t],e.blocks.byClientId[t]]),Je=Object(_.a)((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return C;const o=Qe(e,n),r=Array.isArray(t)?t:[t];return o.filter(e=>{var t,n;return null==e||null===(t=e.blockTypes)||void 0===t||null===(n=t.some)||void 0===n?void 0:n.call(t,e=>r.includes(e))})}),(e,t)=>[...Qe.getDependants(e,t)]),et=Object(_.a)((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return C;if(t.some(t=>{let{clientId:n,innerBlocks:o}=t;return o.length||pt(e,n)}))return C;const o=Array.from(new Set(t.map(e=>{let{name:t}=e;return t})));return Je(e,o,n)}),(e,t)=>[...Je.getDependants(e,t)]);function tt(e,t){return e.blockListSettings[t]}function nt(e){return e.settings}function ot(e){return e.blocks.isPersistentChange}const rt=Object(_.a)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.reduce((t,n)=>e.blockListSettings[n]?{...t,[n]:e.blockListSettings[n]}:t,{})}),e=>[e.blockListSettings]),ct=Object(_.a)((e,t)=>{var n;const o=Object(l.find)(at(e),e=>e.id===t);return o?null===(n=o.title)||void 0===n?void 0:n.raw:null},e=>[at(e)]);function lt(e){return e.blocks.isIgnoredChange}function it(e){return e.lastBlockAttributesChange}function at(e){var t,n;return null!==(t=null==e||null===(n=e.settings)||void 0===n?void 0:n.__experimentalReusableBlocks)&&void 0!==t?t:C}function st(e){return e.isNavigationMode}function ut(e){return e.hasBlockMovingClientId}function dt(e){return!!e.automaticChangeStatus}function bt(e,t){return e.highlightedBlock===t}function pt(e,t){return!!e.blocks.controlledInnerBlocks[t]}const mt=Object(_.a)((e,t)=>{if(!t.length)return null;const n=W(e);if(t.includes(S(e,n)))return n;const o=oe(e),r=Y(e,n||o[0],t);return r?Object(l.last)(r):null},(e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]);function ft(e,t,n){const{lastBlockInserted:o}=e;return o.clientId===t&&o.source===n}var ht=n("gdqT"),gt=n("l3Sj"),Ot=n("qRz9"),vt=n("NMb1"),jt=n.n(vt);const kt=e=>t=>{let{dispatch:n}=t;n({type:"RESET_BLOCKS",blocks:e}),n(_t(e))},_t=e=>t=>{let{select:n,dispatch:o}=t;const r=n.getTemplate(),c=n.getTemplateLock(),l=!r||"all"!==c||Object(i.doBlocksMatchTemplate)(e,r);if(l!==n.isValidTemplate())return o.setTemplateValidity(l),l};function yt(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function Et(e){return jt()('wp.data.dispatch( "core/block-editor" ).receiveBlocks',{since:"5.9",alternative:"resetBlocks or insertBlocks"}),{type:"RECEIVE_BLOCKS",blocks:e}}function Ct(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:Object(l.castArray)(e),attributes:t,uniqueByBlock:n}}function St(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function wt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}const It=e=>t=>{let{select:n,dispatch:o}=t;const r=n.getPreviousBlockClientId(e);r&&o.selectBlock(r,-1)},Bt=e=>t=>{let{select:n,dispatch:o}=t;const r=n.getNextBlockClientId(e);r&&o.selectBlock(r)};function xt(){return{type:"START_MULTI_SELECT"}}function Tt(){return{type:"STOP_MULTI_SELECT"}}const Pt=(e,t)=>n=>{let{select:o,dispatch:r}=n;if(o.getBlockRootClientId(e)!==o.getBlockRootClientId(t))return;r({type:"MULTI_SELECT",start:e,end:t});const c=o.getSelectedBlockCount();Object(ht.speak)(Object(gt.sprintf)(Object(gt._n)("%s block selected.","%s blocks selected.",c),c),"assertive")};function Rt(){return{type:"CLEAR_SELECTED_BLOCK"}}function Nt(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function Lt(e,t){var n,o;const r=null!==(n=null==t||null===(o=t.__experimentalPreferredStyleVariations)||void 0===o?void 0:o.value)&&void 0!==n?n:{};return e.map(e=>{var t;const n=e.name;if(!Object(i.hasBlockSupport)(n,"defaultStylePicker",!0))return e;if(!r[n])return e;const o=null===(t=e.attributes)||void 0===t?void 0:t.className;if(null!=o&&o.includes("is-style-"))return e;const{attributes:c={}}=e,l=r[n];return{...e,attributes:{...c,className:`${o||""} is-style-${l}`.trim()}}})}const Mt=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4?arguments[4]:void 0;return c=>{let{select:i,dispatch:a}=c;e=Object(l.castArray)(e),t=Lt(Object(l.castArray)(t),i.getSettings());const s=i.getBlockRootClientId(Object(l.first)(e));for(let e=0;e<t.length;e++){const n=t[e];if(!i.canInsertBlockType(n.name,s))return}a({type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:o,meta:r}),a(e=>{let{select:t,dispatch:n}=e;if(t.getBlockCount()>0)return;const{__unstableHasCustomAppender:o}=t.getSettings();o||n.insertDefaultBlock()})}};function At(e,t){return Mt(e,t)}const Dt=e=>(t,n)=>o=>{let{select:r,dispatch:c}=o;r.canMoveBlocks(t,n)&&c({type:e,clientIds:Object(l.castArray)(t),rootClientId:n})},Ft=Dt("MOVE_BLOCKS_DOWN"),zt=Dt("MOVE_BLOCKS_UP"),Ht=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3?arguments[3]:void 0;return r=>{let{select:c,dispatch:l}=r;if(c.canMoveBlocks(e,t)){if(t!==n){if(!c.canRemoveBlocks(e,t))return;if(!c.canInsertBlocks(e,n))return}l({type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:o})}}};function Vt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3?arguments[3]:void 0;return Ht([e],t,n,o)}function Gt(e,t,n,o,r){return Ut([e],t,n,o,0,r)}const Ut=function(e,t,n){let o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,c=arguments.length>5?arguments[5]:void 0;return i=>{let{select:a,dispatch:s}=i;Object(l.isObject)(r)&&(c=r,r=0,jt()("meta argument in wp.data.dispatch('core/block-editor')",{since:"10.1",plugin:"Gutenberg",hint:"The meta argument is now the 6th argument of the function"})),e=Lt(Object(l.castArray)(e),a.getSettings());const u=[];for(const t of e){a.canInsertBlockType(t.name,n)&&u.push(t)}u.length&&s({type:"INSERT_BLOCKS",blocks:u,index:t,rootClientId:n,time:Date.now(),updateSelection:o,initialPosition:o?r:null,meta:c})}};function Wt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{__unstableWithInserter:o}=n;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:o}}function qt(){return{type:"HIDE_INSERTION_POINT"}}function Kt(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}const $t=()=>e=>{let{select:t,dispatch:n}=e;n({type:"SYNCHRONIZE_TEMPLATE"});const o=t.getBlocks(),r=t.getTemplate(),c=Object(i.synchronizeBlocksWithTemplate)(o,r);n.resetBlocks(c)},Yt=(e,t)=>n=>{let{select:o,dispatch:r}=n;const c=[e,t];r({type:"MERGE_BLOCKS",blocks:c});const[a,s]=c,u=o.getBlock(a),d=Object(i.getBlockType)(u.name);if(d&&!d.merge)return void r.selectBlock(u.clientId);const b=o.getBlock(s),p=Object(i.getBlockType)(b.name),{clientId:m,attributeKey:f,offset:h}=o.getSelectionStart(),g=(m===a?d:p).attributes[f],O=(m===a||m===s)&&void 0!==f&&void 0!==h&&!!g;g||("number"==typeof f?window.console.error("RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was "+typeof f):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));const v=Object(i.cloneBlock)(u),j=Object(i.cloneBlock)(b);if(O){const e=m===a?v:j,t=e.attributes[f],{multiline:n,__unstableMultilineWrapperTags:o,__unstablePreserveWhiteSpace:r}=g,c=Object(Ot.insert)(Object(Ot.create)({html:t,multilineTag:n,multilineWrapperTags:o,preserveWhiteSpace:r}),"†",h,h);e.attributes[f]=Object(Ot.toHTMLString)({value:c,multilineTag:n,preserveWhiteSpace:r})}const k=u.name===b.name?[j]:Object(i.switchToBlockType)(j,u.name);if(!k||!k.length)return;const _=d.merge(v.attributes,k[0].attributes);if(O){const e=Object(l.findKey)(_,e=>"string"==typeof e&&-1!==e.indexOf("†")),t=_[e],{multiline:n,__unstableMultilineWrapperTags:o,__unstablePreserveWhiteSpace:c}=d.attributes[e],i=Object(Ot.create)({html:t,multilineTag:n,multilineWrapperTags:o,preserveWhiteSpace:c}),a=i.text.indexOf("†"),s=Object(Ot.remove)(i,a,a+1),b=Object(Ot.toHTMLString)({value:s,multilineTag:n,preserveWhiteSpace:c});_[e]=b,r.selectionChange(u.clientId,e,a,a)}r.replaceBlocks([u.clientId,b.clientId],[{...u,attributes:{...u.attributes,..._}},...k.slice(1)],0)},Xt=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return n=>{let{select:o,dispatch:r}=n;if(!e||!e.length)return;e=Object(l.castArray)(e);const c=o.getBlockRootClientId(e[0]);o.canRemoveBlocks(e,c)&&(t&&r.selectPreviousBlock(e[0]),r({type:"REMOVE_BLOCKS",clientIds:e}),r(e=>{let{select:t,dispatch:n}=e;if(t.getBlockCount()>0)return;const{__unstableHasCustomAppender:o}=t.getSettings();o||n.insertDefaultBlock()}))}};function Zt(e,t){return Xt([e],t)}function Qt(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,initialPosition:n?o:null,time:Date.now()}}function Jt(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function en(){return{type:"START_TYPING"}}function tn(){return{type:"STOP_TYPING"}}function nn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function on(){return{type:"STOP_DRAGGING_BLOCKS"}}function rn(){return{type:"ENTER_FORMATTED_TEXT"}}function cn(){return{type:"EXIT_FORMATTED_TEXT"}}function ln(e,t,n,o){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:o}}function an(e,t,n){const o=Object(i.getDefaultBlockName)();if(!o)return;return Gt(Object(i.createBlock)(o,e),n,t)}function sn(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function un(e){return{type:"UPDATE_SETTINGS",settings:e}}function dn(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function bn(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function pn(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}const mn=()=>e=>{let{dispatch:t}=e;t({type:"MARK_AUTOMATIC_CHANGE"});const{requestIdleCallback:n=(e=>setTimeout(e,100))}=window;n(()=>{t({type:"MARK_AUTOMATIC_CHANGE_FINAL"})})},fn=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return t=>{let{dispatch:n}=t;n({type:"SET_NAVIGATION_MODE",isNavigationMode:e}),e?Object(ht.speak)(Object(gt.__)("You are currently in navigation mode. Navigate blocks using the Tab key and Arrow keys. Use Left and Right Arrow keys to move between nesting levels. To exit navigation mode and edit the selected block, press Enter.")):Object(ht.speak)(Object(gt.__)("You are currently in edit mode. To return to the navigation mode, press Escape."))}},hn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t=>{let{dispatch:n}=t;n({type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e}),e&&Object(ht.speak)(Object(gt.__)("Use the Tab key and Arrow keys to choose new block location. Use Left and Right Arrow keys to move between nesting levels. Once location is selected press Enter or Space to move the block."))}},gn=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return n=>{let{select:o,dispatch:r}=n;if(!e||!e.length)return;const c=o.getBlocksByClientId(e);if(Object(l.some)(c,e=>!e))return;if(c.map(e=>e.name).some(e=>!Object(i.hasBlockSupport)(e,"multiple",!0)))return;const a=o.getBlockRootClientId(e[0]),s=o.getBlockIndex(Object(l.last)(Object(l.castArray)(e)),a),u=c.map(e=>Object(i.__experimentalCloneSanitizedBlock)(e));return r.insertBlocks(u,s+1,a,t),u.length>1&&t&&r.multiSelect(Object(l.first)(u).clientId,Object(l.last)(u).clientId),u.map(e=>e.clientId)}},On=e=>t=>{let{select:n,dispatch:o}=t;if(!e)return;const r=n.getBlockRootClientId(e);if(n.getTemplateLock(r))return;const c=n.getBlockIndex(e,r);return o.insertDefaultBlock({},r,c)},vn=e=>t=>{let{select:n,dispatch:o}=t;if(!e)return;const r=n.getBlockRootClientId(e);if(n.getTemplateLock(r))return;const c=n.getBlockIndex(e,r);return o.insertDefaultBlock({},r,c+1)};function jn(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}const kn=e=>async t=>{let{dispatch:n}=t;n(jn(e,!0)),await new Promise(e=>setTimeout(e,150)),n(jn(e,!1))};function _n(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}var yn=n("AHN3");const En={reducer:k,selectors:o,actions:r,__experimentalUseThunks:!0},Cn=Object(c.createReduxStore)(yn.a,{...En,persist:["preferences"]});Object(c.registerStore)(yn.a,{...En,persist:["preferences"]})},Bo0k:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var o=n("GRId"),r=n("tI+e"),c=n("l3Sj");const l=[{name:Object(c.__)("Regular"),value:"normal"},{name:Object(c.__)("Italic"),value:"italic"}],i=[{name:Object(c.__)("Thin"),value:"100"},{name:Object(c.__)("Extra Light"),value:"200"},{name:Object(c.__)("Light"),value:"300"},{name:Object(c.__)("Regular"),value:"400"},{name:Object(c.__)("Medium"),value:"500"},{name:Object(c.__)("Semi Bold"),value:"600"},{name:Object(c.__)("Bold"),value:"700"},{name:Object(c.__)("Extra Bold"),value:"800"},{name:Object(c.__)("Black"),value:"900"}],a=(e,t)=>e?t?Object(c.__)("Appearance"):Object(c.__)("Font style"):Object(c.__)("Font weight");function s(e){const{onChange:t,hasFontStyles:n=!0,hasFontWeights:s=!0,value:{fontStyle:u,fontWeight:d}}=e,b=n||s,p=a(n,s),m={key:"default",name:Object(c.__)("Default"),style:{fontStyle:void 0,fontWeight:void 0}},f=Object(o.useMemo)(()=>n&&s?(()=>{const e=[m];return l.forEach(t=>{let{name:n,value:o}=t;i.forEach(t=>{let{name:r,value:l}=t;const i="normal"===o?r:Object(c.sprintf)(Object(c.__)("%1$s %2$s"),r,n);e.push({key:`${o}-${l}`,name:i,style:{fontStyle:o,fontWeight:l}})})}),e})():n?(()=>{const e=[m];return l.forEach(t=>{let{name:n,value:o}=t;e.push({key:o,name:n,style:{fontStyle:o,fontWeight:void 0}})}),e})():(()=>{const e=[m];return i.forEach(t=>{let{name:n,value:o}=t;e.push({key:o,name:n,style:{fontStyle:void 0,fontWeight:o}})}),e})(),[e.options]),h=f.find(e=>e.style.fontStyle===u&&e.style.fontWeight===d)||f[0];return b&&Object(o.createElement)(r.CustomSelectControl,{className:"components-font-appearance-control",label:p,describedBy:h?n?s?Object(c.sprintf)(Object(c.__)("Currently selected font appearance: %s"),h.name):Object(c.sprintf)(Object(c.__)("Currently selected font style: %s"),h.name):Object(c.sprintf)(Object(c.__)("Currently selected font weight: %s"),h.name):Object(c.__)("No selected font appearance"),options:f,value:h,onChange:e=>{let{selectedItem:n}=e;return t(n.style)}})}},Bpkj:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));t.a=c},Btt3:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("YLtl");const r=(e,t)=>{if(!t||!e)return;const n=t.filter(t=>{let{attributes:n}=t;return!(!n||!Object.keys(n).length)&&Object(o.isMatch)(e,n)});return 1===n.length?n[0]:void 0}},CNgt:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},l=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(n[o[r]]=e[o[r]])}return n};t.__esModule=!0;var i=n("cDcd"),a=n("17x9"),s=n("GemG"),u=n("Rk8H"),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&&t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&&t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t}return r(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.maxRows,o=t.async;"number"==typeof n&&this.updateLineHeight(),"number"==typeof n||o?setTimeout((function(){return e.textarea&&s(e.textarea)})):this.textarea&&s(this.textarea),this.textarea&&this.textarea.addEventListener("autosize:resized",this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener("autosize:resized",this.onResize),s.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props,n=(t.onResize,t.maxRows),o=(t.onChange,t.style),r=(t.innerRef,t.children),a=l(t,["onResize","maxRows","onChange","style","innerRef","children"]),s=this.state.lineHeight,u=n&&s?s*n:null;return i.createElement("textarea",c({},a,{onChange:this.onChange,style:u?c({},o,{maxHeight:u}):o,ref:function(t){e.textarea=t,"function"==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&&(e.props.innerRef.current=t)}}),r)},t.prototype.componentDidUpdate=function(){this.textarea&&s.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:a.number,maxRows:a.number,onResize:a.func,innerRef:a.any,async:a.bool},t}(i.Component);t.TextareaAutosize=i.forwardRef((function(e,t){return i.createElement(d,c({},e,{innerRef:t}))}))},Civd:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));t.a=c},Cn0l:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"e",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"d",(function(){return b})),n.d(t,"c",(function(){return p}));var o=n("YLtl"),r=n("GRId"),c=n("1ZqX"),l=n("ur0x"),i=n("v5LD"),a=n("BhPs");function s(e){if(e)return`has-${e}-gradient-background`}function u(e,t){const n=Object(o.find)(e,["slug",t]);return n&&n.gradient}function d(e,t){return Object(o.find)(e,["gradient",t])}function b(e,t){const n=d(e,t);return n&&n.slug}function p(){let{gradientAttribute:e="gradient",customGradientAttribute:t="customGradient"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{clientId:n}=Object(l.c)(),{gradients:o}=Object(i.a)("color")||{},d=Object(r.useMemo)(()=>[...(null==o?void 0:o.custom)||[],...(null==o?void 0:o.theme)||[],...(null==o?void 0:o.default)||[]],[o]),{gradient:p,customGradient:m}=Object(c.useSelect)(o=>{const{getBlockAttributes:r}=o(a.a),c=r(n)||{};return{customGradient:c[t],gradient:c[e]}},[n,e,t]),{updateBlockAttributes:f}=Object(c.useDispatch)(a.a),h=Object(r.useCallback)(o=>{const r=b(d,o);f(n,r?{[e]:r,[t]:void 0}:{[e]:void 0,[t]:o})},[d,n,f]),g=s(p);let O;return O=p?u(d,p):m,{gradientClass:g,gradientValue:O,setGradient:h}}},Crq9:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"}));t.a=c},"DmX/":function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M20 9h-7.2V4h-1.6v5H4v6h7.2v5h1.6v-5H20z"}));t.a=c},ERVc:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n("1ZqX"),r=n("HSyU"),c=n("BhPs");function l(e){return Object(o.useSelect)(t=>{const{getBlockName:n,getBlockAttributes:o}=t(c.a),l=o(e);if(null==l||!l.className)return;const i=Object(r.getBlockType)(n(e));return(null==i?void 0:i.apiVersion)>1?l.className:void 0},[e])}},EpZT:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M7 9v6h10V9H7zM5 19.8h14v-1.5H5v1.5zM5 4.3v1.5h14V4.3H5z"}));t.a=c},Fmc1:function(e,t,n){"use strict";var o=n("wx14"),r=n("GRId"),c=n("tI+e"),l=n("K9lf"),i=n("l3Sj"),a=n("REKd"),s=n("j6zP");function u(e){let{isDraggable:t,pattern:n,onClick:i,composite:d}=e;const{blocks:b,viewportWidth:p}=n,m="block-editor-block-patterns-list__item-description-"+Object(l.useInstanceId)(u);return Object(r.createElement)(s.a,{isEnabled:t,blocks:b},e=>{let{draggable:t,onDragStart:l,onDragEnd:s}=e;return Object(r.createElement)("div",{className:"block-editor-block-patterns-list__list-item","aria-label":n.title,"aria-describedby":n.description?m:void 0,draggable:t,onDragStart:l,onDragEnd:s},Object(r.createElement)(c.__unstableCompositeItem,Object(o.a)({role:"option",as:"div"},d,{className:"block-editor-block-patterns-list__item",onClick:()=>i(n,b)}),Object(r.createElement)(a.a,{blocks:b,viewportWidth:p}),Object(r.createElement)("div",{className:"block-editor-block-patterns-list__item-title"},n.title),!!n.description&&Object(r.createElement)(c.VisuallyHidden,{id:m},n.description)))})}function d(){return Object(r.createElement)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}t.a=function(e){let{isDraggable:t,blockPatterns:n,shownPatterns:l,onClickPattern:a,orientation:s,label:b=Object(i.__)("Block Patterns")}=e;const p=Object(c.__unstableUseCompositeState)({orientation:s});return Object(r.createElement)(c.__unstableComposite,Object(o.a)({},p,{role:"listbox",className:"block-editor-block-patterns-list","aria-label":b}),n.map(e=>l.includes(e)?Object(r.createElement)(u,{key:e.name,pattern:e,onClick:a,isDraggable:t,composite:p}):Object(r.createElement)(d,{key:e.name})))}},FnAh:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"}));t.a=c},G4zt:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n("9Do8"),r=n.n(o),c=n("GRId"),l=n("1ZqX"),i=n("1CF3"),a=n("BhPs");function s(e){const t=Object(c.useRef)(),n=Object(l.useSelect)(t=>{const{isBlockSelected:n,getBlockSelectionEnd:o}=t(a.a);return n(e)||o()===e},[e]);return Object(c.useEffect)(()=>{if(!n)return;const e=t.current;if(!e)return;if(e.contains(e.ownerDocument.activeElement))return;const o=Object(i.getScrollContainer)(e)||e.ownerDocument.defaultView;o&&r()(e,o,{onlyScrollIfNeeded:!0})},[n]),t}},GKUk:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n("wx14"),r=n("GRId"),c=n("YLtl"),l=n("tI+e"),i=n("l3Sj"),a=n("v5LD");function s(e){let{value:t="",onChange:n,fontFamilies:s,...u}=e;const d=Object(a.a)("typography.fontFamilies");if(s||(s=d),Object(c.isEmpty)(s))return null;const b=[{value:"",label:Object(i.__)("Default")},...s.map(e=>{let{fontFamily:t,name:n}=e;return{value:t,label:n||t}})];return Object(r.createElement)(l.SelectControl,Object(o.a)({label:Object(i.__)("Font family"),options:b,value:t,onChange:n,labelPosition:"top"},u))}},GOly:function(e,t,n){"use strict";var o=n("GRId");const r=Object(o.createContext)();t.a=r},GRId:function(e,t){e.exports=window.wp.element},GemG:function(e,t,n){var o,r,c; /*! autosize 4.0.4 license: MIT @@ -23,4 +23,4 @@ this.wp=this.wp||{},this.wp.blockEditor=function(e){var t={};function n(o){if(t[ * @return {boolean} True if the event is supported. * @internal * @license Modernizr 3.0.0pre (Custom Build) | MIT - */,e.exports=function(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,c=n in document;if(!c){var l=document.createElement("div");l.setAttribute(n,"return;"),c="function"==typeof l[n]}return!c&&o&&"wheel"===e&&(c=document.implementation.hasFeature("Events.wheel","3.0")),c}},f8JO:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("YLtl"),r=n("1ZqX"),c=n("HSyU"),l=n("wC17"),i=n("BhPs");function a(e){let{clientId:t}=e;const{attributes:n,name:a,reusableBlockTitle:s}=Object(r.useSelect)(e=>{if(!t)return{};const{getBlockName:n,getBlockAttributes:o,__experimentalGetReusableBlockTitle:r}=e(i.a),l=n(t);if(!l)return{};const a=Object(c.isReusableBlock)(Object(c.getBlockType)(l));return{attributes:o(t),name:l,reusableBlockTitle:a&&r(o(t).ref)}},[t]),u=Object(l.a)(t);if(!a||!u)return null;const d=Object(c.getBlockType)(a),b=d?Object(c.__experimentalGetBlockLabel)(d,n):null,p=s||b;return p&&p!==d.title?Object(o.truncate)(p,{length:35}):u.title}},fHnH:function(e,t,n){"use strict";n.d(t,"a",(function(){return B})),n.d(t,"b",(function(){return T}));var o={grad:.9,turn:360,rad:360/(2*Math.PI)},r=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},c=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},l=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},i=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},a=function(e){return{r:l(e.r,0,255),g:l(e.g,0,255),b:l(e.b,0,255),a:l(e.a)}},s=function(e){return{r:c(e.r),g:c(e.g),b:c(e.b),a:c(e.a,3)}},u=/^#([0-9a-f]{3,8})$/i,d=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},b=function(e){var t=e.r,n=e.g,o=e.b,r=e.a,c=Math.max(t,n,o),l=c-Math.min(t,n,o),i=l?c===t?(n-o)/l:c===n?2+(o-t)/l:4+(t-n)/l:0;return{h:60*(i<0?i+6:i),s:c?l/c*100:0,v:c/255*100,a:r}},p=function(e){var t=e.h,n=e.s,o=e.v,r=e.a;t=t/360*6,n/=100,o/=100;var c=Math.floor(t),l=o*(1-n),i=o*(1-(t-c)*n),a=o*(1-(1-t+c)*n),s=c%6;return{r:255*[o,i,l,l,a,o][s],g:255*[a,o,o,i,l,l][s],b:255*[l,l,a,o,o,i][s],a:r}},m=function(e){return{h:i(e.h),s:l(e.s,0,100),l:l(e.l,0,100),a:l(e.a)}},f=function(e){return{h:c(e.h),s:c(e.s),l:c(e.l),a:c(e.a,3)}},h=function(e){return p((n=(t=e).s,{h:t.h,s:(n*=((o=t.l)<50?o:100-o)/100)>0?2*n/(o+n)*100:0,v:o+n,a:t.a}));var t,n,o},g=function(e){return{h:(t=b(e)).h,s:(r=(200-(n=t.s))*(o=t.v)/100)>0&&r<200?n*o/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,n,o,r},O=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,v=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,j=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,k=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,_={string:[[function(e){var t=u.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?c(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?c(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=j.exec(e)||k.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:a({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=O.exec(e)||v.exec(e);if(!t)return null;var n,r,c=m({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(o[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return h(c)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,o=e.b,c=e.a,l=void 0===c?1:c;return r(t)&&r(n)&&r(o)?a({r:Number(t),g:Number(n),b:Number(o),a:Number(l)}):null},"rgb"],[function(e){var t=e.h,n=e.s,o=e.l,c=e.a,l=void 0===c?1:c;if(!r(t)||!r(n)||!r(o))return null;var i=m({h:Number(t),s:Number(n),l:Number(o),a:Number(l)});return h(i)},"hsl"],[function(e){var t=e.h,n=e.s,o=e.v,c=e.a,a=void 0===c?1:c;if(!r(t)||!r(n)||!r(o))return null;var s=function(e){return{h:i(e.h),s:l(e.s,0,100),v:l(e.v,0,100),a:l(e.a)}}({h:Number(t),s:Number(n),v:Number(o),a:Number(a)});return p(s)},"hsv"]]},y=function(e,t){for(var n=0;n<t.length;n++){var o=t[n][0](e);if(o)return[o,t[n][1]]}return[null,void 0]},E=function(e){return"string"==typeof e?y(e.trim(),_.string):"object"==typeof e&&null!==e?y(e,_.object):[null,void 0]},C=function(e,t){var n=g(e);return{h:n.h,s:l(n.s+100*t,0,100),l:n.l,a:n.a}},S=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},w=function(e,t){var n=g(e);return{h:n.h,s:n.s,l:l(n.l+100*t,0,100),a:n.a}},I=function(){function e(e){this.parsed=E(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return c(S(this.rgba),2)},e.prototype.isDark=function(){return S(this.rgba)<.5},e.prototype.isLight=function(){return S(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=s(this.rgba)).r,n=e.g,o=e.b,l=(r=e.a)<1?d(c(255*r)):"","#"+d(t)+d(n)+d(o)+l;var e,t,n,o,r,l},e.prototype.toRgb=function(){return s(this.rgba)},e.prototype.toRgbString=function(){return t=(e=s(this.rgba)).r,n=e.g,o=e.b,(r=e.a)<1?"rgba("+t+", "+n+", "+o+", "+r+")":"rgb("+t+", "+n+", "+o+")";var e,t,n,o,r},e.prototype.toHsl=function(){return f(g(this.rgba))},e.prototype.toHslString=function(){return t=(e=f(g(this.rgba))).h,n=e.s,o=e.l,(r=e.a)<1?"hsla("+t+", "+n+"%, "+o+"%, "+r+")":"hsl("+t+", "+n+"%, "+o+"%)";var e,t,n,o,r},e.prototype.toHsv=function(){return e=b(this.rgba),{h:c(e.h),s:c(e.s),v:c(e.v),a:c(e.a,3)};var e},e.prototype.invert=function(){return B({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),B(C(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),B(C(this.rgba,-e))},e.prototype.grayscale=function(){return B(C(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),B(w(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),B(w(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?B({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):c(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=g(this.rgba);return"number"==typeof e?B({h:e,s:t.s,l:t.l,a:t.a}):c(t.h)},e.prototype.isEqual=function(e){return this.toHex()===B(e).toHex()},e}(),B=function(e){return e instanceof I?e:new I(e)},x=[],T=function(e){e.forEach((function(e){x.indexOf(e)<0&&(e(I,_),x.push(e))}))}},fOYa:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o=n("wx14"),r=n("GRId"),c=n("YLtl"),l=n("tI+e"),i=n("HSyU"),a=n("1ZqX");var s={default:Object(l.createSlotFill)("BlockControls"),block:Object(l.createSlotFill)("BlockControlsBlock"),inline:Object(l.createSlotFill)("BlockFormatControls"),other:Object(l.createSlotFill)("BlockControlsOther"),parent:Object(l.createSlotFill)("BlockControlsParent")},u=n("BhPs"),d=n("ur0x"),b=n("HgtZ");function p(e){let{group:t="default",controls:n,children:o,__experimentalShareWithChildBlocks:p=!1}=e;const m=function(e,t){const n=Object(b.a)(),{clientId:o}=Object(d.c)(),r=Object(a.useSelect)(e=>{const{getBlockName:n,hasSelectedInnerBlock:r}=e(u.a),{hasBlockSupport:c}=e(i.store);return t&&c(n(o),"__experimentalExposeControlsToChildren",!1)&&r(o)},[t,o]);var c;return n?null===(c=s[e])||void 0===c?void 0:c.Fill:r?s.parent.Fill:null}(t,p);return m?Object(r.createElement)(l.__experimentalStyleProvider,{document:document},Object(r.createElement)(m,null,e=>{const i=Object(c.isEmpty)(e)?null:e;return Object(r.createElement)(l.__experimentalToolbarContext.Provider,{value:i},"default"===t&&Object(r.createElement)(l.ToolbarGroup,{controls:n}),o)})):null}function m(e){let{group:t="default",...n}=e;const c=Object(r.useContext)(l.__experimentalToolbarContext),i=s[t].Slot,a=Object(l.__experimentalUseSlot)(i.__unstableName);return Boolean(a.fills&&a.fills.length)?"default"===t?Object(r.createElement)(i,Object(o.a)({},n,{bubblesVirtually:!0,fillProps:c})):Object(r.createElement)(l.ToolbarGroup,null,Object(r.createElement)(i,Object(o.a)({},n,{bubblesVirtually:!0,fillProps:c}))):null}const f=p;f.Slot=m;const h=e=>Object(r.createElement)(p,Object(o.a)({group:"inline"},e));h.Slot=e=>Object(r.createElement)(m,Object(o.a)({group:"inline"},e));t.b=f},fPbg:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=c},faye:function(e,t){e.exports=window.ReactDOM},felP:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("1CF3"),r=n("RxS6"),c=n("1ZqX"),l=n("K9lf"),i=n("BhPs");function a(e){const t=Object(c.useSelect)(t=>t(i.a).isBlockSelected(e),[e]),{getBlockRootClientId:n,getBlockIndex:a}=Object(c.useSelect)(i.a),{insertDefaultBlock:s,removeBlock:u}=Object(c.useDispatch)(i.a);return Object(l.useRefEffect)(c=>{if(t)return c.addEventListener("keydown",l),c.addEventListener("dragstart",i),()=>{c.removeEventListener("keydown",l),c.removeEventListener("dragstart",i)};function l(t){const{keyCode:l,target:i}=t;l!==r.ENTER&&l!==r.BACKSPACE&&l!==r.DELETE||i!==c||Object(o.isTextField)(i)||(t.preventDefault(),l===r.ENTER?s({},n(e),a(e)+1):u(e))}function i(e){e.preventDefault()}},[e,t,n,a,s,u])}},g56x:function(e,t){e.exports=window.wp.hooks},gdqT:function(e,t){e.exports=window.wp.a11y},hF7m:function(e,t){e.exports=window.wp.keyboardShortcuts},hHnB:function(e,t,n){"use strict";var o=n("wx14"),r=n("GRId"),c=n("TSYQ"),l=n.n(c),i=n("l3Sj"),a=n("K9lf"),s=n("tI+e"),u=n("zQI6"),d=n("TVFh");function b(e){return Object(r.useMemo)(()=>{const t=document.implementation.createHTMLDocument("");return t.body.innerHTML=e,Array.from(t.body.children)},[e])}t.a=Object(r.forwardRef)((function(e,t){var n,c;let{contentRef:p,children:m,head:f,tabIndex:h=0,...g}=e;const[,O]=Object(r.useReducer)(()=>({})),[v,j]=Object(r.useState)(),[k,_]=Object(r.useState)([]),y=b(null===(n=window.__editorAssets)||void 0===n?void 0:n.styles),E=b(null===(c=window.__editorAssets)||void 0===c?void 0:c.scripts),C=Object(u.b)(),[S,w,I]=Object(d.b)(),B=Object(a.useRefEffect)(e=>{function t(){const{contentDocument:t,ownerDocument:n}=e,{readyState:o,documentElement:r}=t;return("interactive"===o||"complete"===o)&&(function(e){const{defaultView:t}=e,{frameElement:n}=t;function o(e){const o=Object.getPrototypeOf(e).constructor.name,r=window[o],c={};for(const t in e)c[t]=e[t];if(e instanceof t.MouseEvent){const e=n.getBoundingClientRect();c.clientX+=e.left,c.clientY+=e.top}const l=new r(e.type,c);!n.dispatchEvent(l)&&e.preventDefault()}const r=["dragover"];for(const t of r)e.addEventListener(t,o)}(t),j(t),C(r),_(Array.from(n.body.classList).filter(e=>e.startsWith("admin-color-")||"wp-embed-responsive"===e)),t.dir=n.dir,r.removeChild(t.head),r.removeChild(t.body),!0)}t()||e.addEventListener("load",()=>{t()})},[]),x=Object(a.useRefEffect)(e=>{E.reduce((t,n)=>t.then(()=>async function(e,t){let{id:n,src:o}=t;return new Promise((t,r)=>{const c=e.ownerDocument.createElement("script");c.id=n,o?(c.src=o,c.onload=()=>t(),c.onerror=()=>r()):t(),e.appendChild(c)})}(e,n)),Promise.resolve()).finally(()=>{O()})},[]),T=Object(a.useMergeRefs)([p,C,w]);return Object(r.useEffect)(()=>{var e;v&&(e=v,Array.from(document.styleSheets).forEach(t=>{try{t.cssRules}catch(e){return}const{ownerNode:n,cssRules:o}=t;if(o&&"LINK"===n.tagName&&"wp-reset-editor-styles-css"!==n.id&&Array.from(o).find(e=>{let{selectorText:t}=e;return t&&(t.includes(".editor-styles-wrapper")||t.includes(".wp-block"))})&&!e.getElementById(n.id)){console.warn(`Stylesheet ${n.id} was not properly added.\nFor blocks, use the block API's style (https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#style) or editorStyle (https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#editor-style).\nFor themes, use add_editor_style (https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-support/#editor-styles).`,n.outerHTML),e.head.appendChild(n.cloneNode(!0));const t=n.id.replace("-css","-inline-css"),o=document.getElementById(t);o&&e.head.appendChild(o.cloneNode(!0))}}))},[v]),f=Object(r.createElement)(r.Fragment,null,Object(r.createElement)("style",null,"body{margin:0}"),y.map(e=>{let{tagName:t,href:n,id:o,rel:c,media:l,textContent:i}=e;const a=t.toLowerCase();return"style"===a?Object(r.createElement)(a,{id:o,key:o},i):Object(r.createElement)(a,{href:n,id:o,rel:c,media:l,key:o})}),f),Object(r.createElement)(r.Fragment,null,h>=0&&S,Object(r.createElement)("iframe",Object(o.a)({},g,{ref:Object(a.useMergeRefs)([t,B]),tabIndex:h,title:Object(i.__)("Editor canvas")}),v&&Object(r.createPortal)(Object(r.createElement)(r.Fragment,null,Object(r.createElement)("head",{ref:x},f),Object(r.createElement)("body",{ref:T,className:l()("editor-styles-wrapper",...k)},Object(r.createElement)(s.__experimentalStyleProvider,{document:v},m))),v.documentElement)),h>=0&&I)}))},hMaJ:function(e,t,n){"use strict";var o=n("wx14"),r=n("GRId"),c=n("TSYQ"),l=n.n(c),i=n("YLtl"),a=n("tI+e"),s=n("l3Sj"),u=n("v5LD");const d=["colors","disableCustomColors","gradients","disableCustomGradients"];function b(e){let{colors:t,gradients:n,disableCustomColors:o,disableCustomGradients:c,__experimentalHasMultipleOrigins:u,className:d,label:b,onColorChange:p,onGradientChange:m,colorValue:f,gradientValue:h,clearable:g,showTitle:O=!0}=e;const v=p&&(!Object(i.isEmpty)(t)||!o),j=m&&(!Object(i.isEmpty)(n)||!c),[k,_]=Object(r.useState)(h?"gradient":!!v&&"color");return v||j?Object(r.createElement)(a.BaseControl,{className:l()("block-editor-color-gradient-control",d)},Object(r.createElement)("fieldset",null,Object(r.createElement)(a.__experimentalVStack,{spacing:1},O&&Object(r.createElement)("legend",null,Object(r.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},Object(r.createElement)(a.BaseControl.VisualLabel,null,b))),v&&j&&Object(r.createElement)(a.__experimentalToggleGroupControl,{value:k,onChange:_,label:Object(s.__)("Select color type"),hideLabelFromVision:!0,isBlock:!0},Object(r.createElement)(a.__experimentalToggleGroupControlOption,{value:"color",label:Object(s.__)("Solid")}),Object(r.createElement)(a.__experimentalToggleGroupControlOption,{value:"gradient",label:Object(s.__)("Gradient")})),("color"===k||!j)&&Object(r.createElement)(a.ColorPalette,{value:f,onChange:j?e=>{p(e),m()}:p,colors:t,disableCustomColors:o,__experimentalHasMultipleOrigins:u,clearable:g}),("gradient"===k||!v)&&Object(r.createElement)(a.GradientPicker,{value:h,onChange:v?e=>{m(e),p()}:m,gradients:n,disableCustomGradients:c,__experimentalHasMultipleOrigins:u,clearable:g})))):null}function p(e){const t={};return t.colors=Object(u.a)("color.palette"),t.gradients=Object(u.a)("color.gradients"),t.disableCustomColors=!Object(u.a)("color.custom"),t.disableCustomGradients=!Object(u.a)("color.customGradient"),Object(r.createElement)(b,Object(o.a)({},t,e))}t.a=function(e){return Object(i.every)(d,t=>e.hasOwnProperty(t))?Object(r.createElement)(b,e):Object(r.createElement)(p,e)}},hw9B:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("1ZqX"),r=n("K9lf"),c=n("BhPs"),l=n("OL6h");function i(e,t){Array.from(e.closest(".is-root-container").querySelectorAll(".rich-text")).forEach(e=>{t?e.setAttribute("contenteditable",!0):e.removeAttribute("contenteditable")})}function a(e){const{startMultiSelect:t,stopMultiSelect:n,multiSelect:a,selectBlock:s}=Object(o.useDispatch)(c.a),{isSelectionEnabled:u,isBlockSelected:d,getBlockParents:b,getBlockSelectionStart:p,hasMultiSelection:m}=Object(o.useSelect)(c.a);return Object(r.useRefEffect)(o=>{const{ownerDocument:r}=o,{defaultView:c}=r;let f,h;function g(t){let{isSelectionEnd:n}=t;const r=c.getSelection();if(!r.rangeCount||r.isCollapsed)return void i(o,!0);const u=Object(l.a)(r.focusNode);if(e===u){if(s(e),n&&(i(o,!0),r.rangeCount)){const{commonAncestorContainer:e}=r.getRangeAt(0);f.contains(e)&&f.focus()}}else{const t=[...b(e),e],n=[...b(u),u],o=Math.min(t.length,n.length)-1;a(t[o],n[o])}}function O(){r.removeEventListener("selectionchange",g),c.removeEventListener("mouseup",O),h=c.requestAnimationFrame(()=>{g({isSelectionEnd:!0}),n()})}function v(n){let{buttons:l}=n;1===l&&u()&&d(e)&&(f=r.activeElement,t(),r.addEventListener("selectionchange",g),c.addEventListener("mouseup",O),i(o,!1))}function j(t){if(u()&&0===t.button)if(t.shiftKey){const n=p(),r=b(n);if(n&&n!==e&&(null==r||!r.includes(e))){const c=[...r,n],l=[...b(e),e],s=Math.min(c.length,l.length)-1,u=c[s],d=l[s];u!==d&&(i(o,!1),a(u,d),t.preventDefault())}}else m()&&s(e)}return o.addEventListener("mousedown",j),o.addEventListener("mouseleave",v),()=>{o.removeEventListener("mousedown",j),o.removeEventListener("mouseleave",v),r.removeEventListener("selectionchange",g),c.removeEventListener("mouseup",O),c.cancelAnimationFrame(h)}},[e,t,n,a,s,u,d,b])}},iA5R:function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.diffChars=function(e,t,n){return r.diff(e,t,n)},t.characterDiff=void 0;var r=new(((o=n("smQA"))&&o.__esModule?o:{default:o}).default);t.characterDiff=r},iClF:function(e,t,n){"use strict";var o=n("GRId");t.a=function(e){let{icon:t,size:n=24,...r}=e;return Object(o.cloneElement)(t,{width:n,height:n,...r})}},j6zP:function(e,t,n){"use strict";var o=n("GRId"),r=n("tI+e"),c=n("q3tz");t.a=e=>{let{isEnabled:t,blocks:n,icon:l,children:i}=e;const a={type:"inserter",blocks:n};return Object(o.createElement)(r.Draggable,{__experimentalTransferDataType:"wp-blocks",transferData:a,__experimentalDragComponent:Object(o.createElement)(c.a,{count:n.length,icon:l})},e=>{let{onDraggableStart:n,onDraggableEnd:o}=e;return i({draggable:t,onDragStart:t?n:void 0,onDragEnd:t?o:void 0})})}},jB5C:function(e,t,n){"use strict";var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function c(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],o="scroll"+(t?"Top":"Left");if("number"!=typeof n){var r=e.document;"number"!=typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}function l(e){return c(e)}function i(e){return c(e,!0)}function a(e){var t=function(e){var t,n=void 0,o=void 0,r=e.ownerDocument,c=r.body,l=r&&r.documentElement;return n=(t=e.getBoundingClientRect()).left,o=t.top,{left:n-=l.clientLeft||c.clientLeft||0,top:o-=l.clientTop||c.clientTop||0}}(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=l(o),t.top+=i(o),t}var s=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),u=/^(top|right|bottom|left)$/,d="left";var b=void 0;function p(e,t){for(var n=0;n<e.length;n++)t(e[n])}function m(e){return"border-box"===b(e,"boxSizing")}"undefined"!=typeof window&&(b=window.getComputedStyle?function(e,t,n){var o="",r=e.ownerDocument,c=n||r.defaultView.getComputedStyle(e,null);return c&&(o=c.getPropertyValue(t)||c[t]),o}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(s.test(n)&&!u.test(t)){var o=e.style,r=o[d],c=e.runtimeStyle[d];e.runtimeStyle[d]=e.currentStyle[d],o[d]="fontSize"===t?"1em":n||0,n=o.pixelLeft+"px",o[d]=r,e.runtimeStyle[d]=c}return""===n?"auto":n});var f=["margin","border","padding"];function h(e,t,n){var o={},r=e.style,c=void 0;for(c in t)t.hasOwnProperty(c)&&(o[c]=r[c],r[c]=t[c]);for(c in n.call(e),t)t.hasOwnProperty(c)&&(r[c]=o[c])}function g(e,t,n){var o=0,r=void 0,c=void 0,l=void 0;for(c=0;c<t.length;c++)if(r=t[c])for(l=0;l<n.length;l++){var i=void 0;i="border"===r?r+n[l]+"Width":r+n[l],o+=parseFloat(b(e,i))||0}return o}function O(e){return null!=e&&e==e.window}var v={};function j(e,t,n){if(O(e))return"width"===t?v.viewportWidth(e):v.viewportHeight(e);if(9===e.nodeType)return"width"===t?v.docWidth(e):v.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],r="width"===t?e.offsetWidth:e.offsetHeight,c=(b(e),m(e)),l=0;(null==r||r<=0)&&(r=void 0,(null==(l=b(e,t))||Number(l)<0)&&(l=e.style[t]||0),l=parseFloat(l)||0),void 0===n&&(n=c?1:-1);var i=void 0!==r||c,a=r||l;if(-1===n)return i?a-g(e,["border","padding"],o):l;if(i){var s=2===n?-g(e,["border"],o):g(e,["margin"],o);return a+(1===n?0:s)}return l+g(e,f.slice(n),o)}p(["Width","Height"],(function(e){v["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],v["viewport"+e](n))},v["viewport"+e]=function(t){var n="client"+e,o=t.document,r=o.body,c=o.documentElement[n];return"CSS1Compat"===o.compatMode&&c||r&&r[n]||c}}));var k={position:"absolute",visibility:"hidden",display:"block"};function _(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=j.apply(void 0,n):h(e,k,(function(){t=j.apply(void 0,n)})),t}function y(e,t,n){var o=n;if("object"!==(void 0===t?"undefined":r(t)))return void 0!==o?("number"==typeof o&&(o+="px"),void(e.style[t]=o)):b(e,t);for(var c in t)t.hasOwnProperty(c)&&y(e,c,t[c])}p(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);v["outer"+t]=function(t,n){return t&&_(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];v[e]=function(t,o){if(void 0===o)return t&&_(t,e,-1);if(t){b(t);return m(t)&&(o+=g(t,["padding","border"],n)),y(t,e,o)}}})),e.exports=o({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return a(e);!function(e,t){"static"===y(e,"position")&&(e.style.position="relative");var n=a(e),o={},r=void 0,c=void 0;for(c in t)t.hasOwnProperty(c)&&(r=parseFloat(y(e,c))||0,o[c]=r+t[c]-n[c]);y(e,o)}(e,t)},isWindow:O,each:p,css:y,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(O(e)){if(void 0===t)return l(e);window.scrollTo(t,i(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(O(e)){if(void 0===t)return i(e);window.scrollTo(l(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},v)},jBNB:function(e,t,n){"use strict";n.d(t,"a",(function(){return B}));var o=n("GRId"),r=n("TSYQ"),c=n.n(r),l=n("YLtl"),i=n("HSyU"),a=n("tI+e"),s=n("1ZqX"),u=n("K9lf"),d=n("1CF3"),b=n("JRTi"),p=n("l3Sj"),m=n("Zzu2"),f=n("iA5R");function h(e){let{title:t,rawContent:n,renderedContent:r,action:c,actionText:l,className:i}=e;return Object(o.createElement)("div",{className:i},Object(o.createElement)("div",{className:"block-editor-block-compare__content"},Object(o.createElement)("h2",{className:"block-editor-block-compare__heading"},t),Object(o.createElement)("div",{className:"block-editor-block-compare__html"},n),Object(o.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},Object(o.createElement)(o.RawHTML,null,Object(d.safeHTML)(r)))),Object(o.createElement)("div",{className:"block-editor-block-compare__action"},Object(o.createElement)(a.Button,{variant:"secondary",tabIndex:"0",onClick:c},l)))}var g=function(e){let{block:t,onKeep:n,onConvert:r,convertor:a,convertButtonText:s}=e;const u=(d=a(t),Object(l.castArray)(d).map(e=>Object(i.getSaveContent)(e.name,e.attributes,e.innerBlocks)).join(""));var d;const b=(m=t.originalContent,g=u,Object(f.diffChars)(m,g).map((e,t)=>{const n=c()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return Object(o.createElement)("span",{key:t,className:n},e.value)}));var m,g;return Object(o.createElement)("div",{className:"block-editor-block-compare__wrapper"},Object(o.createElement)(h,{title:Object(p.__)("Current"),className:"block-editor-block-compare__current",action:n,actionText:Object(p.__)("Convert to HTML"),rawContent:t.originalContent,renderedContent:t.originalContent}),Object(o.createElement)(h,{title:Object(p.__)("After Conversion"),className:"block-editor-block-compare__converted",action:r,actionText:s,rawContent:b,renderedContent:u}))},O=n("BhPs");const v=e=>Object(i.rawHandler)({HTML:e.originalContent});var j=Object(u.compose)([Object(s.withSelect)((e,t)=>{let{clientId:n}=t;return{block:e(O.a).getBlock(n)}}),Object(s.withDispatch)((e,t)=>{let{block:n}=t;const{replaceBlock:o}=e(O.a);return{convertToClassic(){o(n.clientId,(e=>Object(i.createBlock)("core/freeform",{content:e.originalContent}))(n))},convertToHTML(){o(n.clientId,(e=>Object(i.createBlock)("core/html",{content:e.originalContent}))(n))},convertToBlocks(){o(n.clientId,v(n))},attemptBlockRecovery(){o(n.clientId,(e=>{let{name:t,attributes:n,innerBlocks:o}=e;return Object(i.createBlock)(t,n,o)})(n))}}})])((function(e){let{convertToHTML:t,convertToBlocks:n,convertToClassic:r,attemptBlockRecovery:c,block:l}=e;const s=!!Object(i.getBlockType)("core/html"),[u,d]=Object(o.useState)(!1),b=Object(o.useCallback)(()=>d(!0),[]),f=Object(o.useCallback)(()=>d(!1),[]),h=Object(o.useMemo)(()=>[{title:Object(p._x)("Resolve","imperative verb"),onClick:b},s&&{title:Object(p.__)("Convert to HTML"),onClick:t},{title:Object(p.__)("Convert to Classic Block"),onClick:r}].filter(Boolean),[b,t,r]);return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(m.a,{actions:[Object(o.createElement)(a.Button,{key:"recover",onClick:c,variant:"primary"},Object(p.__)("Attempt Block Recovery"))],secondaryActions:h},Object(p.__)("This block contains unexpected or invalid content.")),u&&Object(o.createElement)(a.Modal,{title:Object(p.__)("Resolve Block"),onRequestClose:f,className:"block-editor-block-compare"},Object(o.createElement)(g,{block:l,onKeep:t,onConvert:n,convertor:v,convertButtonText:Object(p.__)("Convert to Blocks")})))}));const k=Object(o.createElement)(m.a,{className:"block-editor-block-list__block-crash-warning"},Object(p.__)("This block has encountered an error and cannot be previewed."));var _=()=>k;class y extends o.Component{constructor(){super(...arguments),this.state={hasError:!1}}componentDidCatch(){this.setState({hasError:!0})}render(){return this.state.hasError?this.props.fallback:this.props.children}}var E=y,C=n("O6Fj"),S=n.n(C);var w=function(e){let{clientId:t}=e;const[n,r]=Object(o.useState)(""),c=Object(s.useSelect)(e=>e(O.a).getBlock(t),[t]),{updateBlock:l}=Object(s.useDispatch)(O.a);return Object(o.useEffect)(()=>{r(Object(i.getBlockContent)(c))},[c]),Object(o.createElement)(S.a,{className:"block-editor-block-list__block-html-textarea",value:n,onBlur:()=>{const e=Object(i.getBlockType)(c.name);if(!e)return;const o=Object(i.getBlockAttributes)(e,n,c.attributes),a=n||Object(i.getSaveContent)(e,o),s=!n||Object(i.isValidBlockContent)(e,o,a);l(t,{attributes:o,originalContent:a,isValid:s}),n||r({content:a})},onChange:e=>r(e.target.value)})},I=n("nlh6");const B=Object(o.createContext)();function x(e){let{children:t,isHtml:n,...r}=e;return Object(o.createElement)("div",Object(I.a)(r,{__unstableIsHtml:n}),t)}const T=Object(s.withSelect)((e,t)=>{let{clientId:n,rootClientId:o}=t;const{isBlockSelected:r,getBlockMode:c,isSelectionEnabled:l,getTemplateLock:i,__unstableGetBlockWithoutInnerBlocks:a,canRemoveBlock:s,canMoveBlock:u}=e(O.a),d=a(n),b=r(n),p=i(o),m=s(n,o),f=u(n,o),{name:h,attributes:g,isValid:v}=d||{};return{mode:c(n),isSelectionEnabled:l(),isLocked:!!p,canRemove:m,canMove:f,block:d,name:h,attributes:g,isValid:v,isSelected:b}}),P=Object(s.withDispatch)((e,t,n)=>{let{select:o}=n;const{updateBlockAttributes:r,insertBlocks:c,mergeBlocks:l,replaceBlocks:a,toggleSelection:s,__unstableMarkLastChangeAsPersistent:u}=e(O.a);return{setAttributes(e){const{getMultiSelectedBlockClientIds:n}=o(O.a),c=n(),{clientId:l}=t,i=c.length?c:[l];r(i,e)},onInsertBlocks(e,n){const{rootClientId:o}=t;c(e,n,o)},onInsertBlocksAfter(e){const{clientId:n,rootClientId:r}=t,{getBlockIndex:l}=o(O.a),i=l(n,r);c(e,i+1,r)},onMerge(e){const{clientId:n}=t,{getPreviousBlockClientId:r,getNextBlockClientId:c}=o(O.a);if(e){const e=c(n);e&&l(n,e)}else{const e=r(n);e&&l(e,n)}},onReplace(e,n,o){e.length&&!Object(i.isUnmodifiedDefaultBlock)(e[e.length-1])&&u(),a([t.clientId],e,n,o)},toggleSelection(e){s(e)}}});t.b=Object(u.compose)(u.pure,T,P,Object(u.ifCondition)(e=>{let{block:t}=e;return!!t}),Object(a.withFilters)("editor.BlockListBlock"))((function(e){let{mode:t,isLocked:n,canRemove:r,clientId:a,isSelected:u,isSelectionEnabled:p,className:m,name:f,isValid:h,attributes:g,wrapperProps:v,setAttributes:k,onReplace:y,onInsertBlocksAfter:C,onMerge:S,toggleSelection:I}=e;const{removeBlock:T}=Object(s.useDispatch)(O.a),P=Object(o.useCallback)(()=>T(a),[a]);let R=Object(o.createElement)(b.a,{name:f,isSelected:u,attributes:g,setAttributes:k,insertBlocksAfter:n?void 0:C,onReplace:r?y:void 0,onRemove:r?P:void 0,mergeBlocks:r?S:void 0,clientId:a,isSelectionEnabled:p,toggleSelection:I});const N=Object(i.getBlockType)(f);null!=N&&N.getEditWrapperProps&&(v=function(e,t){const n={...e,...t};return e&&t&&e.className&&t.className&&(n.className=c()(e.className,t.className)),e&&t&&e.style&&t.style&&(n.style={...e.style,...t.style}),n}(v,N.getEditWrapperProps(g)));const L=v&&!!v["data-align"];let M;if(L&&(R=Object(o.createElement)("div",{className:"wp-block","data-align":v["data-align"]},R)),h)M="html"===t?Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{style:{display:"none"}},R),Object(o.createElement)(x,{isHtml:!0},Object(o.createElement)(w,{clientId:a}))):(null==N?void 0:N.apiVersion)>1?R:Object(o.createElement)(x,v,R);else{const e=Object(i.getSaveContent)(N,g);M=Object(o.createElement)(x,{className:"has-warning"},Object(o.createElement)(j,{clientId:a}),Object(o.createElement)(o.RawHTML,null,Object(d.safeHTML)(e)))}const A={clientId:a,className:m,wrapperProps:Object(l.omit)(v,["data-align"]),isAligned:L},D=Object(o.useMemo)(()=>A,Object.values(A));return Object(o.createElement)(B.Provider,{value:D},Object(o.createElement)(E,{fallback:Object(o.createElement)(x,{className:"has-warning"},Object(o.createElement)(_,null))},M))}))},jTPX:function(e,t){e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},jrfk:function(e,t){var n,o,r,c,l,i,a,s,u,d,b,p,m,f,h,g=!1;function O(){if(!g){g=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),O=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(p=/\b(iPhone|iP[ao]d)/.exec(e),m=/\b(iP[ao]d)/.exec(e),d=/Android/i.exec(e),f=/FBAN\/\w+;/i.exec(e),h=/Mobile/i.exec(e),b=!!/Win64/.exec(e),t){(n=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN)&&document&&document.documentMode&&(n=document.documentMode);var v=/(?:Trident\/(\d+.\d+))/.exec(e);i=v?parseFloat(v[1])+4:n,o=t[2]?parseFloat(t[2]):NaN,r=t[3]?parseFloat(t[3]):NaN,(c=t[4]?parseFloat(t[4]):NaN)?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),l=t&&t[1]?parseFloat(t[1]):NaN):l=NaN}else n=o=r=l=c=NaN;if(O){if(O[1]){var j=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);a=!j||parseFloat(j[1].replace("_","."))}else a=!1;s=!!O[2],u=!!O[3]}else a=s=u=!1}}var v={ie:function(){return O()||n},ieCompatibilityMode:function(){return O()||i>n},ie64:function(){return v.ie()&&b},firefox:function(){return O()||o},opera:function(){return O()||r},webkit:function(){return O()||c},safari:function(){return v.webkit()},chrome:function(){return O()||l},windows:function(){return O()||s},osx:function(){return O()||a},linux:function(){return O()||u},iphone:function(){return O()||p},mobile:function(){return O()||p||m||d||h},nativeApp:function(){return O()||f},android:function(){return O()||d},ipad:function(){return O()||m}};e.exports=v},jwne:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s}));var o=n("wx14"),r=n("GRId"),c=n("tI+e"),l=(n("Z23Y"),n("c1Zz")),i=n("asom"),a=n("VrEk");function s(t){var n;let{__experimentalGroup:s="default",bubblesVirtually:u=!0,label:d,...b}=t;const p=null===(n=a.a[s])||void 0===n?void 0:n.Slot,m=Object(c.__experimentalUseSlot)(null==p?void 0:p.__unstableName);if(!p||!m)return void 0!==e&&e.env,null;return Boolean(m.fills&&m.fills.length)?d?Object(r.createElement)(l.a,{group:s,label:d},Object(r.createElement)(i.a,Object(o.a)({},b,{bubblesVirtually:u,Slot:p}))):Object(r.createElement)(p,Object(o.a)({},b,{bubblesVirtually:u})):null}}).call(this,n("8oxB"))},kBLm:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("1ZqX"),r=n("K9lf"),c=n("BhPs");function l(e){if(e.defaultPrevented)return;const t="mouseover"===e.type?"add":"remove";e.preventDefault(),e.currentTarget.classList[t]("is-hovered")}function i(){const e=Object(o.useSelect)(e=>{const{isNavigationMode:t,getSettings:n}=e(c.a);return t()||n().outlineMode},[]);return Object(r.useRefEffect)(t=>{if(e)return t.addEventListener("mouseout",l),t.addEventListener("mouseover",l),()=>{t.removeEventListener("mouseout",l),t.removeEventListener("mouseover",l),t.classList.remove("is-hovered")}},[e])}},kVRd:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n("GRId"),r=n("tI+e"),c=n("Tqx9");var l=Object(o.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(c.Path,{d:"M7 18v1h10v-1H7zm5-2c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V5H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V5H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"})),i=n("Crq9"),a=n("l3Sj");const s=[{name:Object(a.__)("Underline"),value:"underline",icon:l},{name:Object(a.__)("Strikethrough"),value:"line-through",icon:i.a}];function u(e){let{value:t,onChange:n}=e;return Object(o.createElement)("fieldset",{className:"block-editor-text-decoration-control"},Object(o.createElement)("legend",null,Object(a.__)("Decoration")),Object(o.createElement)("div",{className:"block-editor-text-decoration-control__buttons"},s.map(e=>Object(o.createElement)(r.Button,{key:e.value,icon:e.icon,isSmall:!0,isPressed:e.value===t,onClick:()=>n(e.value===t?void 0:e.value),"aria-label":e.name}))))}},kWXm:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"}));t.a=c},kaUp:function(e,t){},kmrn:function(e,t,n){"use strict";n.d(t,"useSpring",(function(){return he}));var o=n("nEW0");n.d(t,"Globals",(function(){return o.b}));var r=n("cDcd"),c=n("dfZa");n("kaUp"),n("v8Ku");function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function i(e,...t){return o.s.fun(e)?e(...t):e}const a=(e,t)=>!0===e||!!(t&&e&&(o.s.fun(e)?e(t):Object(o.y)(e).includes(t))),s=(e,t)=>o.s.obj(e)?t&&e[t]:e,u=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,d=e=>e,b=(e,t=d)=>{let n=p;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const c of n){const n=t(e[c],c);o.s.und(n)||(r[c]=n)}return r},p=["config","onProps","onStart","onChange","onPause","onResume","onRest"],m={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function f(e){const t=function(e){const t={};let n=0;if(Object(o.l)(e,(e,o)=>{m[o]||(t[o]=e,n++)}),n)return t}(e);if(t){const n={to:t};return Object(o.l)(e,(e,o)=>o in t||(n[o]=e)),n}return l({},e)}function h(e){return e=Object(o.q)(e),o.s.arr(e)?e.map(h):Object(o.t)(e)?o.b.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function g(e){for(const t in e)return!0;return!1}function O(e){return o.s.fun(e)||o.s.arr(e)&&o.s.obj(e[0])}function v(e,t){var n;null==(n=e.ref)||n.delete(e),null==t||t.delete(e)}function j(e,t){var n;t&&e.ref!==t&&(null==(n=e.ref)||n.delete(e),t.add(e),e.ref=t)}const k=l({},{tension:170,friction:26},{mass:1,damping:1,easing:e=>e,clamp:!1});class _{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,k)}}function y(e,t){if(o.s.und(t.decay)){const n=!o.s.und(t.tension)||!o.s.und(t.friction);!n&&o.s.und(t.frequency)&&o.s.und(t.damping)&&o.s.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}const E=[];class C{constructor(){this.changed=!1,this.values=E,this.toValues=null,this.fromValues=E,this.to=void 0,this.from=void 0,this.config=new _,this.immediate=!1}}function S(e,{key:t,props:n,defaultProps:r,state:c,actions:s}){return new Promise((u,d)=>{var b;let p,m,f=a(null!=(b=n.cancel)?b:null==r?void 0:r.cancel,t);if(f)O();else{o.s.und(n.pause)||(c.paused=a(n.pause,t));let e=null==r?void 0:r.pause;!0!==e&&(e=c.paused||a(e,t)),p=i(n.delay||0,t),e?(c.resumeQueue.add(g),s.pause()):(s.resume(),g())}function h(){c.resumeQueue.add(g),c.timeouts.delete(m),m.cancel(),p=m.time-o.w.now()}function g(){p>0?(m=o.w.setTimeout(O,p),c.pauseQueue.add(h),c.timeouts.add(m)):O()}function O(){c.pauseQueue.delete(h),c.timeouts.delete(m),e<=(c.cancelId||0)&&(f=!0);try{s.start(l({},n,{callId:e,cancel:f}),u)}catch(e){d(e)}}})}const w=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?x(e.get()):t.every(e=>e.noop)?I(e.get()):B(e.get(),t.every(e=>e.finished)),I=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),B=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),x=e=>({value:e,cancelled:!0,finished:!1});function T(e,t,n,r){const{callId:c,parentId:i,onRest:a}=t,{asyncTo:s,promise:u}=n;return i||e!==s||t.reset?n.promise=(async()=>{n.asyncId=c,n.asyncTo=e;const d=b(t,(e,t)=>"onRest"===t?void 0:e);let p,m;const f=new Promise((e,t)=>(p=e,m=t)),h=e=>{const t=c<=(n.cancelId||0)&&x(r)||c!==n.asyncId&&B(r,!1);if(t)throw e.result=t,m(e),e},g=(e,t)=>{const i=new R,a=new N;return(async()=>{if(o.b.skipAnimation)throw P(n),a.result=B(r,!1),m(a),a;h(i);const s=o.s.obj(e)?l({},e):l({},t,{to:e});s.parentId=c,Object(o.l)(d,(e,t)=>{o.s.und(s[t])&&(s[t]=e)});const u=await r.start(s);return h(i),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),u})()};let O;if(o.b.skipAnimation)return P(n),B(r,!1);try{let t;t=o.s.arr(e)?(async e=>{for(const t of e)await g(t)})(e):Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([t.then(p),f]),O=B(r.get(),!0,!1)}catch(e){if(e instanceof R)O=e.result;else{if(!(e instanceof N))throw e;O=e.result}}finally{c==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?u:void 0)}return o.s.fun(a)&&o.w.batchedUpdates(()=>{a(O,r,r.item)}),O})():u}function P(e,t){Object(o.m)(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class R extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class N extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const L=e=>e instanceof A;let M=1;class A extends o.a{constructor(...e){super(...e),this.id=M++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Object(c.e)(this);return e&&e.getValue()}to(...e){return o.b.to(this,e)}interpolate(...e){return Object(o.j)(),o.b.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Object(o.d)(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||o.o.sort(this),Object(o.d)(this,{type:"priority",parent:this,priority:e})}}const D=Symbol.for("SpringPhase"),F=e=>(1&e[D])>0,z=e=>(2&e[D])>0,H=e=>(4&e[D])>0,V=(e,t)=>t?e[D]|=3:e[D]&=-3,G=(e,t)=>t?e[D]|=4:e[D]&=-5;class U extends A{constructor(e,t){if(super(),this.key=void 0,this.animation=new C,this.queue=void 0,this.defaultProps={},this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!o.s.und(e)||!o.s.und(t)){const n=o.s.obj(e)?l({},e):l({},t,{from:e});o.s.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(z(this)||this._state.asyncTo)||H(this)}get goal(){return Object(o.q)(this.animation.to)}get velocity(){const e=Object(c.e)(this);return e instanceof c.c?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return F(this)}get isAnimating(){return z(this)}get isPaused(){return H(this)}advance(e){let t=!0,n=!1;const r=this.animation;let{config:l,toValues:i}=r;const a=Object(c.g)(r.to);!a&&Object(o.r)(r.to)&&(i=Object(o.y)(Object(o.q)(r.to))),r.values.forEach((s,u)=>{if(s.done)return;const d=s.constructor==c.b?1:a?a[u].lastPosition:i[u];let b=r.immediate,p=d;if(!b){if(p=s.lastPosition,l.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[u],c=null!=s.v0?s.v0:s.v0=o.s.arr(l.velocity)?l.velocity[u]:l.velocity;let i;if(o.s.und(l.duration))if(l.decay){const e=!0===l.decay?.998:l.decay,o=Math.exp(-(1-e)*t);p=n+c/(1-e)*(1-o),b=Math.abs(s.lastPosition-p)<.1,i=c*o}else{i=null==s.lastVelocity?c:s.lastVelocity;const t=l.precision||(n==d?.005:Math.min(1,.001*Math.abs(d-n))),r=l.restVelocity||t/10,a=l.clamp?0:l.bounce,u=!o.s.und(a),m=n==d?s.v0>0:n<d;let f,h=!1;const g=1,O=Math.ceil(e/g);for(let e=0;e<O&&(f=Math.abs(i)>r,f||(b=Math.abs(d-p)<=t,!b));++e){u&&(h=p==d||p>d==m,h&&(i=-i*a,p=d));i+=(1e-6*-l.tension*(p-d)+.001*-l.friction*i)/l.mass*g,p+=i*g}}else{let o=1;l.duration>0&&(this._memoizedDuration!==l.duration&&(this._memoizedDuration=l.duration,s.durationProgress>0&&(s.elapsedTime=l.duration*s.durationProgress,t=s.elapsedTime+=e)),o=(l.progress||0)+t/this._memoizedDuration,o=o>1?1:o<0?0:o,s.durationProgress=o),p=n+l.easing(o)*(d-n),i=(p-s.lastPosition)/e,b=1==o}s.lastVelocity=i,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),b=!0)}a&&!a[u].done&&(b=!1),b?s.done=!0:t=!1,s.setValue(p,l.round)&&(n=!0)});const s=Object(c.e)(this),u=s.getValue();if(t){const e=Object(o.q)(r.to);u===e&&!n||l.decay?n&&l.decay&&this._onChange(u):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(u)}set(e){return o.w.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(z(this)){const{to:e,config:t}=this.animation;o.w.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return o.s.und(e)?(n=this.queue||[],this.queue=[]):n=[o.s.obj(e)?e:l({},t,{to:e})],Promise.all(n.map(e=>this._update(e))).then(e=>w(this,e))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),P(this._state,e&&this._lastCallId),o.w.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=o.s.obj(n)?n[t]:n,(null==n||O(n))&&(n=void 0),r=o.s.obj(r)?r[t]:r,null==r&&(r=void 0);const l={to:n,from:r};return F(this)||(e.reverse&&([n,r]=[r,n]),r=Object(o.q)(r),o.s.und(r)?Object(c.e)(this)||this._set(n):this._set(r)),l}_update(e,t){let n=l({},e);const{key:r,defaultProps:c}=this;n.default&&Object.assign(c,b(n,(e,t)=>/^on/.test(t)?s(e,r):e)),Z(this,n,"onProps"),Q(this,"onProps",n,this);const i=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return S(++this._lastCallId,{key:r,props:n,defaultProps:c,state:a,actions:{pause:()=>{H(this)||(G(this,!0),Object(o.n)(a.pauseQueue),Q(this,"onPause",B(this,W(this,this.animation.to)),this))},resume:()=>{H(this)&&(G(this,!1),z(this)&&this._resume(),Object(o.n)(a.resumeQueue),Q(this,"onResume",B(this,W(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(e=>{if(n.loop&&e.finished&&(!t||!e.noop)){const e=q(n);if(e)return this._update(e,!0)}return e})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(x(this));const r=!o.s.und(e.to),s=!o.s.und(e.from);if(r||s){if(!(t.callId>this._lastToId))return n(x(this));this._lastToId=t.callId}const{key:u,defaultProps:d,animation:b}=this,{to:p,from:m}=b;let{to:f=p,from:g=m}=e;!s||r||t.default&&!o.s.und(f)||(f=g),t.reverse&&([f,g]=[g,f]);const v=!Object(o.u)(g,m);v&&(b.from=g),g=Object(o.q)(g);const j=!Object(o.u)(f,p);j&&this._focus(f);const _=O(t.to),{config:E}=b,{decay:C,velocity:S}=E;(r||s)&&(E.velocity=0),t.config&&!_&&function(e,t,n){n&&(y(n=l({},n),t),t=l({},n,t)),y(e,t),Object.assign(e,t);for(const t in k)null==e[t]&&(e[t]=k[t]);let{mass:r,frequency:c,damping:i}=e;o.s.und(c)||(c<.01&&(c=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/c,2)*r,e.friction=4*Math.PI*i*r/c)}(E,i(t.config,u),t.config!==d.config?i(d.config,u):void 0);let w=Object(c.e)(this);if(!w||o.s.und(f))return n(B(this,!0));const P=o.s.und(t.reset)?s&&!t.default:!o.s.und(g)&&a(t.reset,u),R=P?g:this.get(),N=h(f),L=o.s.num(N)||o.s.arr(N)||Object(o.t)(N),M=!_&&(!L||a(d.immediate||t.immediate,u));if(j){const e=Object(c.f)(f);if(e!==w.constructor){if(!M)throw Error(`Cannot animate between ${w.constructor.name} and ${e.name}, as the "to" prop suggests`);w=this._set(N)}}const A=w.constructor;let D=Object(o.r)(f),H=!1;if(!D){const e=P||!F(this)&&v;(j||e)&&(H=Object(o.u)(h(R),N),D=!H),(Object(o.u)(b.immediate,M)||M)&&Object(o.u)(E.decay,C)&&Object(o.u)(E.velocity,S)||(D=!0)}if(H&&z(this)&&(b.changed&&!P?D=!0:D||this._stop(p)),!_&&((D||Object(o.r)(p))&&(b.values=w.getPayload(),b.toValues=Object(o.r)(f)?null:A==c.b?[1]:Object(o.y)(N)),b.immediate!=M&&(b.immediate=M,M||P||this._set(p)),D)){const{onRest:e}=b;Object(o.k)(X,e=>Z(this,t,e));const r=B(this,W(this,p));Object(o.n)(this._pendingCalls,r),this._pendingCalls.add(n),b.changed&&o.w.batchedUpdates(()=>{b.changed=!P,null==e||e(r,this),P?i(d.onRest,r):null==b.onStart||b.onStart(r,this)})}P&&this._set(R),_?n(T(t.to,t,this._state,this)):D?this._start():z(this)&&!j?this._pendingCalls.add(n):n(I(R))}_focus(e){const t=this.animation;e!==t.to&&(Object(o.p)(this)&&this._detach(),t.to=e,Object(o.p)(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Object(o.r)(t)&&(Object(o.c)(t,this),L(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Object(o.r)(e)&&Object(o.x)(e,this)}_set(e,t=!0){const n=Object(o.q)(e);if(!o.s.und(n)){const e=Object(c.e)(this);if(!e||!Object(o.u)(n,e.getValue())){const r=Object(c.f)(n);e&&e.constructor==r?e.setValue(n):Object(c.h)(this,r.create(n)),e&&o.w.batchedUpdates(()=>{this._onChange(n,t)})}}return Object(c.e)(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Q(this,"onStart",B(this,W(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),i(this.animation.onChange,e,this)),i(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Object(c.e)(this).reset(Object(o.q)(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),z(this)||(V(this,!0),H(this)||this._resume())}_resume(){o.b.skipAnimation?this.finish():o.o.start(this)}_stop(e,t){if(z(this)){V(this,!1);const n=this.animation;Object(o.k)(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Object(o.d)(this,{type:"idle",parent:this});const r=t?x(this.get()):B(this.get(),W(this,null!=e?e:n.to));Object(o.n)(this._pendingCalls,r),n.changed&&(n.changed=!1,Q(this,"onRest",r,this))}}}function W(e,t){const n=h(t),r=h(e.get());return Object(o.u)(r,n)}function q(e,t=e.loop,n=e.to){let o=i(t);if(o){const r=!0!==o&&f(o),c=(r||e).reverse,i=!r||r.reset;return K(l({},e,{loop:t,default:!1,pause:void 0,to:!c||O(n)?n:void 0,from:i?e.from:void 0,reset:i},r))}}function K(e){const{to:t,from:n}=e=f(e),r=new Set;return o.s.obj(t)&&Y(t,r),o.s.obj(n)&&Y(n,r),e.keys=r.size?Array.from(r):null,e}function $(e){const t=K(e);return o.s.und(t.default)&&(t.default=b(t)),t}function Y(e,t){Object(o.l)(e,(e,n)=>null!=e&&t.add(n))}const X=["onStart","onRest","onChange","onPause","onResume"];function Z(e,t,n){e.animation[n]=t[n]!==u(t,n)?s(t[n],e.key):void 0}function Q(e,t,...n){var o,r,c,l;null==(o=(r=e.animation)[t])||o.call(r,...n),null==(c=(l=e.defaultProps)[t])||c.call(l,...n)}const J=["onStart","onChange","onRest"];let ee=1;class te{constructor(e,t){this.id=ee++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start(l({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];o.s.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(K(e)),this}start(e){let{queue:t}=this;return e?t=Object(o.y)(e).map(K):this.queue=[],this._flush?this._flush(this,t):(ie(this,t),ne(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Object(o.k)(Object(o.y)(t),t=>n[t].stop(!!e))}else P(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(o.s.und(e))this.start({pause:!0});else{const t=this.springs;Object(o.k)(Object(o.y)(e),e=>t[e].pause())}return this}resume(e){if(o.s.und(e))this.start({pause:!1});else{const t=this.springs;Object(o.k)(Object(o.y)(e),e=>t[e].resume())}return this}each(e){Object(o.l)(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,c=this._changed.size>0;(r&&!this._started||c&&!this._started)&&(this._started=!0,Object(o.m)(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));const l=!r&&this._started,i=c||l&&n.size?this.get():null;c&&t.size&&Object(o.m)(t,([e,t])=>{t.value=i,e(t,this,this._item)}),l&&(this._started=!1,Object(o.m)(n,([e,t])=>{t.value=i,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}o.w.onFrame(this._onFrame)}}function ne(e,t){return Promise.all(t.map(t=>async function e(t,n,r){const{keys:c,to:l,from:i,loop:a,onRest:s,onResolve:d}=n,b=o.s.obj(n.default)&&n.default;a&&(n.loop=!1);!1===l&&(n.to=null);!1===i&&(n.from=null);const p=o.s.arr(l)||o.s.fun(l)?l:void 0;p?(n.to=void 0,n.onRest=void 0,b&&(b.onRest=void 0)):Object(o.k)(J,e=>{const r=n[e];if(o.s.fun(r)){const o=t._events[e];n[e]=({finished:e,cancelled:t})=>{const n=o.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):o.set(r,{value:null,finished:e||!1,cancelled:t||!1})},b&&(b[e]=n[e])}});const m=t._state;n.pause===!m.paused?(m.paused=n.pause,Object(o.n)(n.pause?m.pauseQueue:m.resumeQueue)):m.paused&&(n.pause=!0);const f=(c||Object.keys(t.springs)).map(e=>t.springs[e].start(n)),h=!0===n.cancel||!0===u(n,"cancel");(p||h&&m.asyncId)&&f.push(S(++t._lastAsyncId,{props:n,state:m,actions:{pause:o.v,resume:o.v,start(e,n){h?(P(m,t._lastAsyncId),n(x(t))):(e.onRest=s,n(T(p,e,m,t)))}}}));m.paused&&await new Promise(e=>{m.resumeQueue.add(e)});const g=w(t,await Promise.all(f));if(a&&g.finished&&(!r||!g.noop)){const o=q(n,a,l);if(o)return ie(t,[o]),e(t,o,!0)}d&&o.w.batchedUpdates(()=>d(g,t,t.item));return g}(e,t))).then(t=>w(e,t))}function oe(e,t){const n=l({},e.springs);return t&&Object(o.k)(Object(o.y)(t),e=>{o.s.und(e.keys)&&(e=K(e)),o.s.obj(e.to)||(e=l({},e,{to:void 0})),le(n,e,e=>ce(e))}),re(e,n),n}function re(e,t){Object(o.l)(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,Object(o.c)(t,e))})}function ce(e,t){const n=new U;return n.key=e,t&&Object(o.c)(n,t),n}function le(e,t,n){t.keys&&Object(o.k)(t.keys,o=>{(e[o]||(e[o]=n(o)))._prepareNode(t)})}function ie(e,t){Object(o.k)(t,t=>{le(e.springs,t,t=>ce(t,e))})}function ae(e,t){if(null==e)return{};var n,o,r={},c=Object.keys(e);for(o=0;o<c.length;o++)n=c[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}const se=["children"],ue=e=>{let{children:t}=e,n=ae(e,se);const c=Object(r.useContext)(de),l=n.pause||!!c.pause,i=n.immediate||!!c.immediate;n=Object(o.B)(()=>({pause:l,immediate:i}),[l,i]);const{Provider:a}=de;return r.createElement(a,{value:n},t)},de=(be=ue,pe={},Object.assign(be,r.createContext(pe)),be.Provider._context=be,be.Consumer._context=be,be);var be,pe;ue.Provider=de.Provider,ue.Consumer=de.Consumer;const me=()=>{const e=[],t=function(t){Object(o.i)();const r=[];return Object(o.k)(e,(e,c)=>{if(o.s.und(t))r.push(e.start());else{const o=n(t,e,c);o&&r.push(e.start(o))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return Object(o.k)(e,e=>e.pause(...arguments)),this},t.resume=function(){return Object(o.k)(e,e=>e.resume(...arguments)),this},t.set=function(t){Object(o.k)(e,e=>e.set(t))},t.start=function(t){const n=[];return Object(o.k)(e,(e,r)=>{if(o.s.und(t))n.push(e.start());else{const o=this._getProps(t,e,r);o&&n.push(e.start(o))}}),n},t.stop=function(){return Object(o.k)(e,e=>e.stop(...arguments)),this},t.update=function(t){return Object(o.k)(e,(e,n)=>e.update(this._getProps(t,e,n))),this};const n=function(e,t,n){return o.s.fun(e)?e(n,t):e};return t._getProps=n,t};function fe(e,t,n){const c=o.s.fun(t)&&t;c&&!n&&(n=[]);const i=Object(r.useMemo)(()=>c||3==arguments.length?me():void 0,[]),a=Object(r.useRef)(0),s=Object(o.z)(),u=Object(r.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){const n=oe(e,t);return a.current>0&&!u.queue.length&&!Object.keys(n).some(t=>!e.springs[t])?ne(e,t):new Promise(o=>{re(e,n),u.queue.push(()=>{o(ne(e,t))}),s()})}}),[]),d=Object(r.useRef)([...u.ctrls]),b=[],p=Object(o.D)(e)||0;function m(e,n){for(let o=e;o<n;o++){const e=d.current[o]||(d.current[o]=new te(null,u.flush)),n=c?c(o,e):t[o];n&&(b[o]=$(n))}}Object(r.useMemo)(()=>{Object(o.k)(d.current.slice(e,p),e=>{v(e,i),e.stop(!0)}),d.current.length=e,m(p,e)},[e]),Object(r.useMemo)(()=>{m(0,Math.min(p,e))},n);const f=d.current.map((e,t)=>oe(e,b[t])),h=Object(r.useContext)(ue),O=Object(o.D)(h),k=h!==O&&g(h);Object(o.A)(()=>{a.current++,u.ctrls=d.current;const{queue:e}=u;e.length&&(u.queue=[],Object(o.k)(e,e=>e())),Object(o.k)(d.current,(e,t)=>{null==i||i.add(e),k&&e.start({default:h});const n=b[t];n&&(j(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),Object(o.C)(()=>()=>{Object(o.k)(u.ctrls,e=>e.stop(!0))});const _=f.map(e=>l({},e));return i?[_,i]:_}function he(e,t){const n=o.s.fun(e),[[r],c]=fe(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,c]:r}let ge;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(ge||(ge={}));class Oe extends A{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=Object(o.f)(...t);const n=this._get(),r=Object(c.f)(n);Object(c.h)(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Object(o.u)(t,n)||(Object(c.e)(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&je(this._active)&&ke(this)}_get(){const e=o.s.arr(this.source)?this.source.map(o.q):Object(o.y)(Object(o.q)(this.source));return this.calc(...e)}_start(){this.idle&&!je(this._active)&&(this.idle=!1,Object(o.k)(Object(c.g)(this),e=>{e.done=!1}),o.b.skipAnimation?(o.w.batchedUpdates(()=>this.advance()),ke(this)):o.o.start(this))}_attach(){let e=1;Object(o.k)(Object(o.y)(this.source),t=>{Object(o.r)(t)&&Object(o.c)(t,this),L(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Object(o.k)(Object(o.y)(this.source),e=>{Object(o.r)(e)&&Object(o.x)(e,this)}),this._active.clear(),ke(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=Object(o.y)(this.source).reduce((e,t)=>Math.max(e,(L(t)?t.priority:0)+1),0))}}function ve(e){return!1!==e.idle}function je(e){return!e.size||Array.from(e).every(ve)}function ke(e){e.idle||(e.idle=!0,Object(o.k)(Object(c.g)(e),e=>{e.done=!0}),Object(o.d)(e,{type:"idle",parent:e}))}o.b.assign({createStringInterpolator:o.g,to:(e,t)=>new Oe(e,t)});o.o.advance},l3Sj:function(e,t){e.exports=window.wp.i18n},lJLt:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return c}));var o=n("l3Sj");const r={insertUsage:{}},c={alignWide:!1,supportsLayout:!0,colors:[{name:Object(o.__)("Black"),slug:"black",color:"#000000"},{name:Object(o.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(o.__)("White"),slug:"white",color:"#ffffff"},{name:Object(o.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(o.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(o.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(o.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(o.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(o.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(o.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(o.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(o.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:Object(o._x)("Small","font size name"),size:13,slug:"small"},{name:Object(o._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(o._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(o._x)("Large","font size name"),size:36,slug:"large"},{name:Object(o._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:Object(o.__)("Thumbnail")},{slug:"medium",name:Object(o.__)("Medium")},{slug:"large",name:Object(o.__)("Large")},{slug:"full",name:Object(o.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__experimentalSpotlightEntityBlocks:[],__unstableGalleryWithImageBlocks:!1,gradients:[{name:Object(o.__)("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:Object(o.__)("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:Object(o.__)("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:Object(o.__)("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:Object(o.__)("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:Object(o.__)("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:Object(o.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Object(o.__)("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:Object(o.__)("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:Object(o.__)("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:Object(o.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Object(o.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}]}},mdLt:function(e,t,n){"use strict";var o=n("GRId"),r=n("tI+e");t.a=function(e){let{title:t,icon:n,children:c}=e;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"block-editor-inserter__panel-header"},Object(o.createElement)("h2",{className:"block-editor-inserter__panel-title"},t),Object(o.createElement)(r.Icon,{icon:n})),Object(o.createElement)("div",{className:"block-editor-inserter__panel-content"},c))}},mlss:function(e,t,n){"use strict";var o=n("tI+e");const{Fill:r,Slot:c}=Object(o.createSlotFill)("__unstableInserterMenuExtension");r.Slot=c,t.a=r},nEW0:function(e,t,n){"use strict";n.d(t,"w",(function(){return r})),n.d(t,"a",(function(){return Oe})),n.d(t,"b",(function(){return M})),n.d(t,"c",(function(){return je})),n.d(t,"d",(function(){return ge})),n.d(t,"e",(function(){return q})),n.d(t,"f",(function(){return ue})),n.d(t,"g",(function(){return Be})),n.d(t,"h",(function(){return y})),n.d(t,"i",(function(){return Le})),n.d(t,"j",(function(){return Re})),n.d(t,"k",(function(){return S})),n.d(t,"l",(function(){return w})),n.d(t,"m",(function(){return B})),n.d(t,"n",(function(){return x})),n.d(t,"o",(function(){return H})),n.d(t,"p",(function(){return he})),n.d(t,"q",(function(){return fe})),n.d(t,"r",(function(){return me})),n.d(t,"s",(function(){return E})),n.d(t,"t",(function(){return Me})),n.d(t,"u",(function(){return C})),n.d(t,"v",(function(){return _})),n.d(t,"x",(function(){return ke})),n.d(t,"y",(function(){return I})),n.d(t,"z",(function(){return Fe})),n.d(t,"A",(function(){return Ge})),n.d(t,"B",(function(){return He})),n.d(t,"C",(function(){return Ae})),n.d(t,"D",(function(){return Ve}));let o=O();const r=e=>m(e,o);let c=O();r.write=e=>m(e,c);let l=O();r.onStart=e=>m(e,l);let i=O();r.onFrame=e=>m(e,i);let a=O();r.onFinish=e=>m(e,a);let s=[];r.setTimeout=(e,t)=>{let n=r.now()+t,o=()=>{let e=s.findIndex(e=>e.cancel==o);~e&&s.splice(e,1),j.count-=~e?1:0},c={time:n,handler:e,cancel:o};return s.splice(u(n),0,c),j.count+=1,f(),c};let u=e=>~(~s.findIndex(t=>t.time>e)||~s.length);r.cancel=e=>{o.delete(e),c.delete(e)},r.sync=e=>{p=!0,r.batchedUpdates(e),p=!1},r.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function o(...e){t=e,r.onStart(n)}return o.handler=e,o.cancel=()=>{l.delete(n),t=null},o};let d="undefined"!=typeof window?window.requestAnimationFrame:()=>{};r.use=e=>d=e,r.now="undefined"!=typeof performance?()=>performance.now():Date.now,r.batchedUpdates=e=>e(),r.catch=console.error,r.frameLoop="always",r.advance=()=>{"demand"!==r.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):g()};let b=-1,p=!1;function m(e,t){p?(t.delete(e),e(0)):(t.add(e),f())}function f(){b<0&&(b=0,"demand"!==r.frameLoop&&d(h))}function h(){~b&&(d(h),r.batchedUpdates(g))}function g(){let e=b;b=r.now();let t=u(b);t&&(v(s.splice(0,t),e=>e.handler()),j.count-=t),l.flush(),o.flush(e?Math.min(64,b-e):16.667),i.flush(),c.flush(),a.flush()}function O(){let e=new Set,t=e;return{add(n){j.count+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(j.count-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,j.count-=t.size,v(t,t=>t(n)&&e.add(t)),j.count+=e.size,t=e)}}}function v(e,t){e.forEach(e=>{try{t(e)}catch(e){r.catch(e)}})}const j={count:0,clear(){b=-1,s=[],l=O(),o=O(),i=O(),c=O(),a=O(),j.count=0}};var k=n("cDcd");function _(){}const y=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),E={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function C(e,t){if(E.arr(e)){if(!E.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}const S=(e,t)=>e.forEach(t);function w(e,t,n){if(E.arr(e))for(let o=0;o<e.length;o++)t.call(n,e[o],""+o);else for(const o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o)}const I=e=>E.und(e)?[]:E.arr(e)?e:[e];function B(e,t){if(e.size){const n=Array.from(e);e.clear(),S(n,t)}}const x=(e,...t)=>B(e,e=>e(...t));let T,P,R=null,N=!1,L=_;var M=Object.freeze({__proto__:null,get createStringInterpolator(){return T},get to(){return P},get colors(){return R},get skipAnimation(){return N},get willAdvance(){return L},assign:e=>{e.to&&(P=e.to),e.now&&(r.now=e.now),void 0!==e.colors&&(R=e.colors),null!=e.skipAnimation&&(N=e.skipAnimation),e.createStringInterpolator&&(T=e.createStringInterpolator),e.requestAnimationFrame&&r.use(e.requestAnimationFrame),e.batchedUpdates&&(r.batchedUpdates=e.batchedUpdates),e.willAdvance&&(L=e.willAdvance),e.frameLoop&&(r.frameLoop=e.frameLoop)}});const A=new Set;let D=[],F=[],z=0;const H={get idle(){return!A.size&&!D.length},start(e){z>e.priority?(A.add(e),r.onStart(V)):(G(e),r(W))},advance:W,sort(e){if(z)r.onFrame(()=>H.sort(e));else{const t=D.indexOf(e);~t&&(D.splice(t,1),U(e))}},clear(){D=[],A.clear()}};function V(){A.forEach(G),A.clear(),r(W)}function G(e){D.includes(e)||U(e)}function U(e){D.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(D,t=>t.priority>e.priority),0,e)}function W(e){const t=F;for(let n=0;n<D.length;n++){const o=D[n];z=o.priority,o.idle||(L(o),o.advance(e),o.idle||t.push(o))}return z=0,F=D,F.length=0,D=t,D.length>0}const q={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},K="[-+]?\\d*\\.?\\d+";function $(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const Y=new RegExp("rgb"+$(K,K,K)),X=new RegExp("rgba"+$(K,K,K,K)),Z=new RegExp("hsl"+$(K,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),Q=new RegExp("hsla"+$(K,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",K)),J=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ee=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,te=/^#([0-9a-fA-F]{6})$/,ne=/^#([0-9a-fA-F]{8})$/;function oe(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function re(e,t,n){const o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,c=oe(r,o,e+1/3),l=oe(r,o,e),i=oe(r,o,e-1/3);return Math.round(255*c)<<24|Math.round(255*l)<<16|Math.round(255*i)<<8}function ce(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function le(e){return(parseFloat(e)%360+360)%360/360}function ie(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ae(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function se(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=te.exec(e))?parseInt(t[1]+"ff",16)>>>0:R&&void 0!==R[e]?R[e]:(t=Y.exec(e))?(ce(t[1])<<24|ce(t[2])<<16|ce(t[3])<<8|255)>>>0:(t=X.exec(e))?(ce(t[1])<<24|ce(t[2])<<16|ce(t[3])<<8|ie(t[4]))>>>0:(t=J.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ne.exec(e))?parseInt(t[1],16)>>>0:(t=ee.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Z.exec(e))?(255|re(le(t[1]),ae(t[2]),ae(t[3])))>>>0:(t=Q.exec(e))?(re(le(t[1]),ae(t[2]),ae(t[3]))|ie(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const ue=(e,t,n)=>{if(E.fun(e))return e;if(E.arr(e))return ue({range:e,output:t,extrapolate:n});if(E.str(e.output[0]))return T(e);const o=e,r=o.output,c=o.range||[0,1],l=o.extrapolateLeft||o.extrapolate||"extend",i=o.extrapolateRight||o.extrapolate||"extend",a=o.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,c);return function(e,t,n,o,r,c,l,i,a){let s=a?a(e):e;if(s<t){if("identity"===l)return s;"clamp"===l&&(s=t)}if(s>n){if("identity"===i)return s;"clamp"===i&&(s=n)}if(o===r)return o;if(t===n)return e<=t?o:r;t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t);s=c(s),o===-1/0?s=-s:r===1/0?s+=o:s=s*(r-o)+o;return s}(e,c[t],c[t+1],r[t],r[t+1],a,l,i,o.map)}};function de(){return(de=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}const be=Symbol.for("FluidValue.get"),pe=Symbol.for("FluidValue.observers"),me=e=>Boolean(e&&e[be]),fe=e=>e&&e[be]?e[be]():e,he=e=>e[pe]||null;function ge(e,t){let n=e[pe];n&&n.forEach(e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)})}class Oe{constructor(e){if(this[be]=void 0,this[pe]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");ve(this,e)}}const ve=(e,t)=>_e(e,be,t);function je(e,t){if(e[be]){let n=e[pe];n||_e(e,pe,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function ke(e,t){let n=e[pe];if(n&&n.has(t)){const o=n.size-1;o?n.delete(t):e[pe]=null,e.observerRemoved&&e.observerRemoved(o,t)}}const _e=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ye=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ee=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ce=new RegExp(`(${ye.source})(%|[a-z]+)`,"i");let Se;const we=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ie=(e,t,n,o,r)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(o)}, ${r})`,Be=e=>{Se||(Se=R?new RegExp(`(${Object.keys(R).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(e=>fe(e).replace(Ee,se).replace(Se,se)),n=t.map(e=>e.match(ye).map(Number)),o=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>ue(de({},e,{output:t})));return e=>{var n;const r=!Ce.test(t[0])&&(null==(n=t.find(e=>Ce.test(e)))?void 0:n.replace(ye,""));let c=0;return t[0].replace(ye,()=>`${o[c++](e)}${r||""}`).replace(we,Ie)}},xe="react-spring: ",Te=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(xe+"once requires a function parameter");return(...e)=>{n||(t(...e),n=!0)}},Pe=Te(console.warn);function Re(){Pe(xe+'The "interpolate" function is deprecated in v9 (use "to" instead)')}const Ne=Te(console.warn);function Le(){Ne(xe+'Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions')}function Me(e){return E.str(e)&&("#"==e[0]||/\d/.test(e)||e in(R||{}))}const Ae=e=>Object(k.useEffect)(e,De),De=[];function Fe(){const e=Object(k.useState)()[1],t=Object(k.useState)(ze)[0];return Ae(t.unmount),()=>{t.current&&e({})}}function ze(){const e={current:!0,unmount:()=>()=>{e.current=!1}};return e}function He(e,t){const[n]=Object(k.useState)(()=>({inputs:t,result:e()})),o=Object(k.useRef)(),r=o.current;let c=r;if(c){Boolean(t&&c.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,c.inputs))||(c={inputs:t,result:e()})}else c=n;return Object(k.useEffect)(()=>{o.current=c,r==n&&(n.inputs=n.result=void 0)},[c]),c.result}function Ve(e){const t=Object(k.useRef)();return Object(k.useEffect)(()=>{t.current=e}),t.current}const Ge="undefined"!=typeof window&&window.document&&window.document.createElement?k.useLayoutEffect:k.useEffect},nQUx:function(e,t,n){"use strict";var o=n("YLtl"),r=n("GRId"),c=n("HSyU"),l=n("1ZqX"),i=n("l3Sj"),a=n("onLe"),s=n("BhPs");t.a=(e,t)=>{const{patternCategories:n,patterns:u}=Object(l.useSelect)(e=>{const{__experimentalGetAllowedPatterns:n,getSettings:o}=e(s.a);return{patterns:n(t),patternCategories:o().__experimentalBlockPatternCategories}},[t]),{createSuccessNotice:d}=Object(l.useDispatch)(a.store);return[u,n,Object(r.useCallback)((t,n)=>{e(Object(o.map)(n,e=>Object(c.cloneBlock)(e)),t.name),d(Object(i.sprintf)(Object(i.__)('Block pattern "%s" inserted.'),t.title),{type:"snackbar"})},[])]}},nlh6:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return w}));var o=n("TSYQ"),r=n.n(o),c=n("GRId"),l=n("l3Sj"),i=n("HSyU"),a=n("K9lf"),s=n("1ZqX"),u=(n("Z23Y"),n("Xkls")),d=n("jBNB"),b=n("z+q2"),p=n("kBLm"),m=n("ur0x"),f=n("Q2Xw"),h=n("YZt4"),g=n("ERVc"),O=n("+6d5"),v=n("6jxZ"),j=n("felP"),k=n("JDWi"),_=n("G4zt"),y=n("PKbb"),E=n("hw9B"),C=n("rHRV"),S=n("BhPs");function w(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{__unstableIsHtml:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{clientId:o,className:w,wrapperProps:I={},isAligned:B}=Object(c.useContext)(d.a),{index:x,mode:T,name:P,blockApiVersion:R,blockTitle:N,isPartOfSelection:L,adjustScrolling:M,enableAnimation:A}=Object(s.useSelect)(e=>{const{getBlockRootClientId:t,getBlockIndex:n,getBlockMode:r,getBlockName:c,isTyping:l,getGlobalBlockCount:a,isBlockSelected:s,isBlockMultiSelected:u,isAncestorMultiSelected:d,isFirstMultiSelectedBlock:b}=e(S.a),p=s(o),m=u(o)||d(o),f=c(o),h=t(o),g=Object(i.getBlockType)(f);return{index:n(o,h),mode:r(o),name:f,blockApiVersion:(null==g?void 0:g.apiVersion)||1,blockTitle:null==g?void 0:g.title,isPartOfSelection:p||m,adjustScrolling:p||b(o),enableAnimation:!l()&&a()<=200}},[o]),D=Object(l.sprintf)(Object(l.__)("Block: %s"),N),F="html"!==T||n?"":"-visual",z=Object(a.useMergeRefs)([t.ref,Object(b.a)(o),Object(_.a)(o),Object(y.c)(o),Object(v.a)(o),Object(E.a)(o),Object(j.a)(o),Object(k.a)(o),Object(p.a)(),Object(C.a)(),Object(u.a)({isSelected:L,adjustScrolling:M,enableAnimation:A,triggerAnimationOnChange:x})]),H=Object(m.c)();return R<2&&o===H.clientId&&void 0!==e&&e.env,{...I,...t,ref:z,id:`block-${o}${F}`,tabIndex:0,role:"document","aria-label":D,"data-block":o,"data-type":P,"data-title":N,className:r()(r()("block-editor-block-list__block",{"wp-block":!B}),w,t.className,I.className,Object(f.a)(o),Object(h.a)(o),Object(g.a)(o),Object(O.a)(o)),style:{...I.style,...t.style}}}w.save=i.__unstableGetBlockProps}).call(this,n("8oxB"))},o97j:function(e,t,n){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen,isInWorker:!o};e.exports=r},onLe:function(e,t){e.exports=window.wp.notices},p3NJ:function(e,t,n){"use strict";n.d(t,"b",(function(){return R}));var o=n("wx14"),r=n("GRId"),c=n("TSYQ"),l=n.n(c),i=n("K9lf"),a=n("1ZqX"),s=n("HSyU"),u=n("I5Hl"),d=n("ur0x");var b=Object(i.createHigherOrderComponent)(e=>t=>{const{clientId:n}=Object(d.c)();return Object(r.createElement)(e,Object(o.a)({},t,{clientId:n}))},"withClientId");var p=b(e=>{let{clientId:t,showSeparator:n,isFloating:o,onAddBlock:c,isToggle:i}=e;return Object(r.createElement)(u.b,{className:l()({"block-list-appender__toggle":i}),rootClientId:t,showSeparator:n,isFloating:o,onAddBlock:c})}),m=n("YLtl"),f=n("5L8O"),h=n("BhPs");var g=Object(i.compose)([b,Object(a.withSelect)((e,t)=>{let{clientId:n}=t;const{getBlockOrder:o}=e(h.a),r=o(n);return{lastBlockClientId:Object(m.last)(r)}})])(e=>{let{clientId:t,lastBlockClientId:n}=e;return Object(r.createElement)(f.a,{rootClientId:t,lastBlockClientId:n})}),O=n("rl8x"),v=n.n(O),j=n("PPMp");const k=new WeakMap;var _=n("VyCT"),y=n("uoCR"),E=n("JGYp"),C=n("l3Sj"),S=n("/lNF"),w=n("vIlp");function I(e,t,n){const o="horizontal"===n?["left","right"]:["top","bottom"],r=Object(C.isRTL)();let c,l;return e.forEach((e,n)=>{const i=e.getBoundingClientRect(),[a,s]=Object(w.a)(t,i,o);if(void 0===l||a<l){l=a,c=n+("bottom"===s||!r&&"right"===s||r&&"left"===s?1:0)}}),c}function B(){let{rootClientId:e=""}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[t,n]=Object(r.useState)(null),o=Object(a.useSelect)(t=>{const{getTemplateLock:n}=t(h.a);return"all"===n(e)},[e]),{getBlockListSettings:c}=Object(a.useSelect)(h.a),{showInsertionPoint:l,hideInsertionPoint:s}=Object(a.useDispatch)(h.a),u=Object(S.a)(e,t),d=Object(i.useThrottle)(Object(r.useCallback)((t,o)=>{var r;const i=I(Array.from(o.children).filter(e=>e.classList.contains("wp-block")),{x:t.clientX,y:t.clientY},null===(r=c(e))||void 0===r?void 0:r.orientation);n(void 0===i?0:i),null!==i&&l(e,i)},[]),200);return Object(i.__experimentalUseDropZone)({isDisabled:o,onDrop:u,onDragOver(e){d(e,e.currentTarget)},onDragLeave(){d.cancel(),s(),n(null)},onDragEnd(){d.cancel(),s(),n(null)}})}function x(e){const{clientId:t,allowedBlocks:n,__experimentalDefaultBlock:o,__experimentalDirectInsert:c,template:l,templateLock:i,wrapperRef:u,templateInsertUpdatesSelection:d,__experimentalCaptureToolbars:b,__experimentalAppenderTagName:p,renderAppender:f,orientation:g,placeholder:O,__experimentalLayout:E}=e;!function(e,t,n,o,c,l,i,s){const{updateBlockListSettings:u}=Object(a.useDispatch)(h.a),{blockListSettings:d,parentLock:b}=Object(a.useSelect)(t=>{const n=t(h.a).getBlockRootClientId(e);return{blockListSettings:t(h.a).getBlockListSettings(e),parentLock:t(h.a).getTemplateLock(n)}},[e]),p=Object(r.useMemo)(()=>t,t);Object(r.useLayoutEffect)(()=>{const t={allowedBlocks:p,templateLock:void 0===c?b:c};if(void 0!==l&&(t.__experimentalCaptureToolbars=l),void 0!==i)t.orientation=i;else{const e=Object(j.a)(null==s?void 0:s.type);t.orientation=e.getOrientation(s)}void 0!==n&&(t.__experimentalDefaultBlock=n),void 0!==o&&(t.__experimentalDirectInsert=o),v()(d,t)||u(e,t)},[e,d,p,n,o,c,b,l,i,u,s])}(t,n,o,c,i,b,g,E),function(e,t,n,o){const{getSelectedBlocksInitialCaretPosition:c}=Object(a.useSelect)(h.a),{replaceInnerBlocks:l}=Object(a.useDispatch)(h.a),i=Object(a.useSelect)(t=>t(h.a).getBlocks(e),[e]),u=Object(r.useRef)(null);Object(r.useLayoutEffect)(()=>{if(0===i.length||"all"===n){if(!Object(m.isEqual)(t,u.current)){u.current=t;const n=Object(s.synchronizeBlocksWithTemplate)(i,t);Object(m.isEqual)(n,i)||l(e,n,0===i.length&&o&&0!==n.length,c())}}},[i,t,n,e])}(t,l,i,d);const C=Object(a.useSelect)(e=>{const n=e(h.a).getBlock(t),o=Object(s.getBlockType)(n.name);if(o&&o.providesContext)return function(e,t){k.has(t)||k.set(t,new WeakMap);const n=k.get(t);if(!n.has(e)){const o=Object(m.mapValues)(t.providesContext,t=>e[t]);n.set(e,o)}return n.get(e)}(n.attributes,o)},[t]);return Object(r.createElement)(y.a,{value:C},Object(r.createElement)(_.a,{rootClientId:t,renderAppender:f,__experimentalAppenderTagName:p,__experimentalLayout:E,wrapperRef:u,placeholder:O}))}function T(e){return Object(E.a)(e),Object(r.createElement)(x,e)}const P=Object(r.forwardRef)((e,t)=>{const n=R({ref:t},e);return Object(r.createElement)("div",{className:"block-editor-inner-blocks"},Object(r.createElement)("div",n))});function R(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{clientId:n}=Object(d.c)(),c=Object(i.useViewportMatch)("medium","<"),{__experimentalCaptureToolbars:u,hasOverlay:b}=Object(a.useSelect)(e=>{if(!n)return{};const{getBlockName:t,isBlockSelected:o,hasSelectedInnerBlock:r,isNavigationMode:l}=e(h.a),i=t(n),a=l()||c;return{__experimentalCaptureToolbars:e(s.store).hasBlockSupport(i,"__experimentalExposeControlsToChildren",!1),hasOverlay:"core/template"!==i&&!o(n)&&!r(n,!0)&&a}},[n,c]),p=Object(i.useMergeRefs)([e.ref,B({rootClientId:n})]),m={__experimentalCaptureToolbars:u,...t},f=m.value&&m.onChange?T:x;return{...e,ref:p,className:l()(e.className,"block-editor-block-list__layout",{"has-overlay":b}),children:n?Object(r.createElement)(f,Object(o.a)({},m,{clientId:n})):Object(r.createElement)(_.a,t)}}R.save=s.__unstableGetInnerBlocksProps,P.DefaultBlockAppender=g,P.ButtonBlockAppender=p,P.Content=()=>R.save().children;t.a=P},pOGT:function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return m}));var o=n("YLtl");const r=e=>e.name||"",c=e=>e.title,l=e=>e.description||"",i=e=>e.keywords||[],a=e=>e.category,s=()=>null;function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=Object(o.deburr)(e),e=e.replace(/^\//,""),e=e.toLowerCase(),e}const d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Object(o.words)(u(e))},b=(e,t)=>Object(o.differenceWith)(e,d(t),(e,t)=>t.includes(e)),p=(e,t,n,r)=>{if(0===d(r).length)return e;return m(e,r,{getCategory:e=>{var n;return null===(n=Object(o.find)(t,{slug:e.category}))||void 0===n?void 0:n.title},getCollection:e=>{var t;return null===(t=n[e.name.split("/")[0]])||void 0===t?void 0:t.title}})},m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=d(t);if(0===o.length)return e;const r=e.map(e=>[e,f(e,t,n)]).filter(e=>{let[,t]=e;return t>0});return r.sort((e,t)=>{let[,n]=e,[,o]=t;return o-n}),r.map(e=>{let[t]=e;return t})};function f(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{getName:d=r,getTitle:p=c,getDescription:m=l,getKeywords:f=i,getCategory:h=a,getCollection:g=s}=n,O=d(e),v=p(e),j=m(e),k=f(e),_=h(e),y=g(e),E=u(t),C=u(v);let S=0;if(E===C)S+=30;else if(C.startsWith(E))S+=20;else{const e=[O,v,j,...k,_,y].join(" "),t=Object(o.words)(E);0===b(t,e).length&&(S+=10)}return 0!==S&&O.startsWith("core/")&&S++,S}},pPDe:function(e,t,n){"use strict";var o,r;function c(e){return[e]}function l(){var e={clear:function(){e.head=null}};return e}function i(e,t,n){var o;if(e.length!==t.length)return!1;for(o=n;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}o={},r="undefined"!=typeof WeakMap,t.a=function(e,t){var n,a;function s(){n=r?new WeakMap:l()}function u(){var n,o,r,c,l,s=arguments.length;for(c=new Array(s),r=0;r<s;r++)c[r]=arguments[r];for(l=t.apply(null,c),(n=a(l)).isUniqueByDependants||(n.lastDependants&&!i(l,n.lastDependants,0)&&n.clear(),n.lastDependants=l),o=n.head;o;){if(i(o.args,c,1))return o!==n.head&&(o.prev.next=o.next,o.next&&(o.next.prev=o.prev),o.next=n.head,o.prev=null,n.head.prev=o,n.head=o),o.val;o=o.next}return o={val:e.apply(null,c)},c[0]=null,o.args=c,n.head&&(n.head.prev=o,o.next=n.head),n.head=o,o.val}return t||(t=c),a=r?function(e){var t,r,c,i,a,s=n,u=!0;for(t=0;t<e.length;t++){if(r=e[t],!(a=r)||"object"!=typeof a){u=!1;break}s.has(r)?s=s.get(r):(c=new WeakMap,s.set(r,c),s=c)}return s.has(o)||((i=l()).isUniqueByDependants=u,s.set(o,i)),s.get(o)}:function(){return n},u.getDependants=t,u.clear=s,s(),u}},pXCJ:function(e,t,n){"use strict";var o=n("wx14"),r=n("GRId"),c=n("YLtl"),l=n("tI+e"),i=n("1ZqX"),a=n("HSyU"),s=n("BhPs");var u=n("l3Sj");function d(e){let{clientIds:t,isGroupable:n,isUngroupable:o,blocksSelection:c,groupingBlockName:d,onClose:b=(()=>{})}=e;const{replaceBlocks:p}=Object(i.useDispatch)(s.a);return n||o?Object(r.createElement)(r.Fragment,null,n&&Object(r.createElement)(l.MenuItem,{onClick:()=>{(()=>{const e=Object(a.switchToBlockType)(c,d);e&&p(t,e)})(),b()}},Object(u._x)("Group","verb")),o&&Object(r.createElement)(l.MenuItem,{onClick:()=>{(()=>{const e=c[0].innerBlocks;e.length&&p(t,e)})(),b()}},Object(u._x)("Ungroup","Ungrouping blocks from within a Group block back into individual blocks within the Editor "))):null}const{Fill:b,Slot:p}=Object(l.createSlotFill)("BlockSettingsMenuControls");function m(e){let{...t}=e;return Object(r.createElement)(l.__experimentalStyleProvider,{document:document},Object(r.createElement)(b,t))}m.Slot=e=>{let{fillProps:t,clientIds:n=null}=e;const{selectedBlocks:u,selectedClientIds:b}=Object(i.useSelect)(e=>{const{getBlocksByClientId:t,getSelectedBlockClientIds:o}=e(s.a),r=null!==n?n:o();return{selectedBlocks:Object(c.map)(Object(c.compact)(t(r)),e=>e.name),selectedClientIds:r}},[n]),m=function(){const{clientIds:e,isGroupable:t,isUngroupable:n,blocksSelection:o,groupingBlockName:r}=Object(i.useSelect)(e=>{var t;const{getBlockRootClientId:n,getBlocksByClientId:o,canInsertBlockType:r,getSelectedBlockClientIds:c}=e(s.a),{getGroupingBlockName:l}=e(a.store),i=c(),u=l(),d=r(u,null!=i&&i.length?n(i[0]):void 0),b=o(i),p=1===b.length&&(null===(t=b[0])||void 0===t?void 0:t.name)===u;return{clientIds:i,isGroupable:d&&b.length&&!p,isUngroupable:p&&!!b[0].innerBlocks.length,blocksSelection:b,groupingBlockName:u}},[]);return{clientIds:e,isGroupable:t,isUngroupable:n,blocksSelection:o,groupingBlockName:r}}(),{isGroupable:f,isUngroupable:h}=m,g=f||h;return Object(r.createElement)(p,{fillProps:{...t,selectedBlocks:u,selectedClientIds:b}},e=>{if((null==e?void 0:e.length)>0||g)return Object(r.createElement)(l.MenuGroup,null,e,Object(r.createElement)(d,Object(o.a)({},m,{onClose:null==t?void 0:t.onClose})))})};t.a=m},plpT:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"}));t.a=c},q3tz:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("GRId"),r=n("l3Sj"),c=n("tI+e"),l=n("xN+R"),i=n("7SSY");function a(e){let{count:t,icon:n}=e;return Object(o.createElement)("div",{className:"block-editor-block-draggable-chip-wrapper"},Object(o.createElement)("div",{className:"block-editor-block-draggable-chip"},Object(o.createElement)(c.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content"},Object(o.createElement)(c.FlexItem,null,n?Object(o.createElement)(i.a,{icon:n}):Object(r.sprintf)(Object(r._n)("%d block","%d blocks",t),t)),Object(o.createElement)(c.FlexItem,null,Object(o.createElement)(i.a,{icon:l.a})))))}},qRz9:function(e,t){e.exports=window.wp.richText},qrxh:function(e,t,n){"use strict";var o=n("wx14"),r=n("GRId"),c=n("YLtl"),l=n("TSYQ"),i=n.n(l),a=n("gdqT"),s=n("l3Sj"),u=n("tI+e"),d=n("1ZqX"),b=n("K9lf"),p=n("HSyU"),m=n("Q4Sy"),f=n("xZzQ"),h=n("Wg7J"),g=n("AORF"),O=n("nQUx"),v=n("+G0a"),j=n("BhPs");function k(e){let{onSelect:t,rootClientId:n,clientId:o,isAppender:c}=e;const[l,a]=Object(r.useState)(""),[b,p]=Object(g.a)({onSelect:t,rootClientId:n,clientId:o,isAppender:c}),[m]=Object(v.a)(b,p),[f]=Object(O.a)(p,b),k=f.length&&!!l,_=k&&f.length>6||m.length>6,{setInserterIsOpened:y,insertionIndex:E}=Object(d.useSelect)(e=>{const{getSettings:t,getBlockIndex:r,getBlockCount:c}=e(j.a),l=r(o,n);return{setInserterIsOpened:t().__experimentalSetIsInserterOpened,insertionIndex:-1===l?c():l}},[o,n]);Object(r.useEffect)(()=>{y&&y(!1)},[y]);return Object(r.createElement)("div",{className:i()("block-editor-inserter__quick-inserter",{"has-search":_,"has-expand":y})},_&&Object(r.createElement)(u.SearchControl,{className:"block-editor-inserter__search",value:l,onChange:e=>{a(e)},label:Object(s.__)("Search for blocks and patterns"),placeholder:Object(s.__)("Search")}),Object(r.createElement)("div",{className:"block-editor-inserter__quick-inserter-results"},Object(r.createElement)(h.a,{filterValue:l,onSelect:t,rootClientId:n,clientId:o,isAppender:c,maxBlockPatterns:k?2:0,maxBlockTypes:6,isDraggable:!1})),y&&Object(r.createElement)(u.Button,{className:"block-editor-inserter__quick-inserter-expand",onClick:()=>{y({rootClientId:n,insertionIndex:E,filterValue:l})},"aria-label":Object(s.__)("Browse all. This will open the main inserter panel in the editor toolbar.")},Object(s.__)("Browse all")))}const _=e=>{let t,{onToggle:n,disabled:c,isOpen:l,blockTitle:i,hasSingleBlockType:a,toggleProps:d={}}=e;t=a?Object(s.sprintf)(Object(s._x)("Add %s","directly add the only allowed block"),i):Object(s._x)("Add block","Generic label for block inserter button");const{onClick:b,...p}=d;return Object(r.createElement)(u.Button,Object(o.a)({icon:m.a,label:t,tooltipPosition:"bottom",onClick:function(e){n&&n(e),b&&b(e)},className:"block-editor-inserter__toggle","aria-haspopup":!a&&"true","aria-expanded":!a&&l,disabled:c},p))};class y extends r.Component{constructor(){super(...arguments),this.onToggle=this.onToggle.bind(this),this.renderToggle=this.renderToggle.bind(this),this.renderContent=this.renderContent.bind(this)}onToggle(e){const{onToggle:t}=this.props;t&&t(e)}renderToggle(e){let{onToggle:t,isOpen:n}=e;const{disabled:o,blockTitle:r,hasSingleBlockType:c,directInsertBlock:l,toggleProps:i,hasItems:a,renderToggle:s=_}=this.props;return s({onToggle:t,isOpen:n,disabled:o||!a,blockTitle:r,hasSingleBlockType:c,directInsertBlock:l,toggleProps:i})}renderContent(e){let{onClose:t}=e;const{rootClientId:n,clientId:o,isAppender:c,showInserterHelpPanel:l,__experimentalIsQuick:i}=this.props;return i?Object(r.createElement)(k,{onSelect:()=>{t()},rootClientId:n,clientId:o,isAppender:c}):Object(r.createElement)(f.a,{onSelect:()=>{t()},rootClientId:n,clientId:o,isAppender:c,showInserterHelpPanel:l})}render(){const{position:e,hasSingleBlockType:t,directInsertBlock:n,insertOnlyAllowedBlock:o,__experimentalIsQuick:c,onSelectOrClose:l}=this.props;return t||null!=n&&n.length?this.renderToggle({onToggle:o}):Object(r.createElement)(u.Dropdown,{className:"block-editor-inserter",contentClassName:i()("block-editor-inserter__popover",{"is-quick":c}),position:e,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(s.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent,onClose:l})}}t.a=Object(b.compose)([Object(d.withSelect)((e,t)=>{let{clientId:n,rootClientId:o}=t;const{getBlockRootClientId:r,hasInserterItems:l,__experimentalGetAllowedBlocks:i,__experimentalGetDirectInsertBlock:a}=e(j.a),{getBlockVariations:s}=e(p.store);o=o||r(n)||void 0;const u=i(o),d=a(o),b=1===Object(c.size)(u)&&0===Object(c.size)(s(u[0].name,"inserter"));let m=!1;return b&&(m=u[0]),{hasItems:l(o),hasSingleBlockType:b,blockTitle:m?m.title:"",allowedBlockType:m,directInsertBlock:d,rootClientId:o}}),Object(d.withDispatch)((e,t,n)=>{let{select:o}=n;return{insertOnlyAllowedBlock(){const{rootClientId:n,clientId:r,isAppender:c,hasSingleBlockType:l,allowedBlockType:i,directInsertBlock:u,onSelectOrClose:d}=t;if(!(l||null!=u&&u.length))return;const{insertBlock:b}=e(j.a);b(null!=u&&u.length?Object(p.createBlock)(...u):Object(p.createBlock)(i.name),function(){const{getBlockIndex:e,getBlockSelectionEnd:t,getBlockOrder:l,getBlockRootClientId:i}=o(j.a);if(r)return e(r,n);const a=t();return!c&&a&&i(a)===n?e(a,n)+1:l(n).length}(),n),d&&d();const m=Object(s.sprintf)(Object(s.__)("%s block added"),i.title);Object(a.speak)(m)}}}),Object(b.ifCondition)(e=>{let{hasItems:t,isAppender:n,rootClientId:o,clientId:r}=e;return t||!n&&!o&&!r})])(y)},rH4q:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"}));t.a=c},rHRV:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n("K9lf"),r=n("GRId"),c=n("VyCT");function l(){const e=Object(r.useContext)(c.b);return Object(o.useRefEffect)(t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}},[e])}},rl8x:function(e,t){e.exports=window.wp.isShallowEqual},rmEH:function(e,t){e.exports=window.wp.htmlEntities},smQA:function(e,t,n){"use strict";function o(){}function r(e,t,n,o,r){for(var c=0,l=t.length,i=0,a=0;c<l;c++){var s=t[c];if(s.removed){if(s.value=e.join(o.slice(a,a+s.count)),a+=s.count,c&&t[c-1].added){var u=t[c-1];t[c-1]=t[c],t[c]=u}}else{if(!s.added&&r){var d=n.slice(i,i+s.count);d=d.map((function(e,t){var n=o[a+t];return n.length>e.length?n:e})),s.value=e.join(d)}else s.value=e.join(n.slice(i,i+s.count));i+=s.count,s.added||(a+=s.count)}}var b=t[l-1];return l>1&&"string"==typeof b.value&&(b.added||b.removed)&&e.equals("",b.value)&&(t[l-2].value+=b.value,t.pop()),t}function c(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o,o.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.callback;"function"==typeof n&&(o=n,n={}),this.options=n;var l=this;function i(e){return o?(setTimeout((function(){o(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var a=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,d=a+s,b=[{newPos:-1,components:[]}],p=this.extractCommon(b[0],t,e,0);if(b[0].newPos+1>=a&&p+1>=s)return i([{value:this.join(t),count:t.length}]);function m(){for(var n=-1*u;n<=u;n+=2){var o=void 0,d=b[n-1],p=b[n+1],m=(p?p.newPos:0)-n;d&&(b[n-1]=void 0);var f=d&&d.newPos+1<a,h=p&&0<=m&&m<s;if(f||h){if(!f||h&&d.newPos<p.newPos?(o=c(p),l.pushComponent(o.components,void 0,!0)):((o=d).newPos++,l.pushComponent(o.components,!0,void 0)),m=l.extractCommon(o,t,e,n),o.newPos+1>=a&&m+1>=s)return i(r(l,o.components,t,e,l.useLongestToken));b[n]=o}else b[n]=void 0}u++}if(o)!function e(){setTimeout((function(){if(u>d)return o();m()||e()}),0)}();else for(;u<=d;){var f=m();if(f)return f}},pushComponent:function(e,t,n){var o=e[e.length-1];o&&o.added===t&&o.removed===n?e[e.length-1]={count:o.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,o){for(var r=t.length,c=n.length,l=e.newPos,i=l-o,a=0;l+1<r&&i+1<c&&this.equals(t[l+1],n[i+1]);)l++,i++,a++;return a&&e.components.push({count:a}),e.newPos=l,i},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}},suLj:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"}));t.a=c},"tI+e":function(e,t){e.exports=window.wp.components},tr0p:function(e,t,n){"use strict";n.r(t),n.d(t,"__experimentalGetBorderClassesAndStyles",(function(){return St})),n.d(t,"__experimentalUseBorderProps",(function(){return wt})),n.d(t,"__experimentalGetColorClassesAndStyles",(function(){return Bt})),n.d(t,"__experimentalUseColorProps",(function(){return xt})),n.d(t,"__experimentalUseCustomSides",(function(){return Xe})),n.d(t,"__experimentalGetSpacingClassesAndStyles",(function(){return Tt})),n.d(t,"useCachedTruthy",(function(){return Pt})),n.d(t,"getColorClassName",(function(){return Rt.gc})),n.d(t,"getColorObjectByAttributeValues",(function(){return Rt.hc})),n.d(t,"getColorObjectByColorValue",(function(){return Rt.ic})),n.d(t,"createCustomColorsHOC",(function(){return Rt.fc})),n.d(t,"withColors",(function(){return Rt.uc})),n.d(t,"__experimentalGetGradientClass",(function(){return Rt.xb})),n.d(t,"getGradientValueBySlug",(function(){return Rt.nc})),n.d(t,"__experimentalGetGradientObjectByGradientValue",(function(){return Rt.yb})),n.d(t,"getGradientSlugByValue",(function(){return Rt.mc})),n.d(t,"__experimentalUseGradient",(function(){return Rt.Rb})),n.d(t,"getFontSize",(function(){return Rt.jc})),n.d(t,"getFontSizeClass",(function(){return Rt.kc})),n.d(t,"getFontSizeObjectByValue",(function(){return Rt.lc})),n.d(t,"FontSizePicker",(function(){return Rt.I})),n.d(t,"withFontSizes",(function(){return Rt.vc})),n.d(t,"AlignmentControl",(function(){return Rt.a})),n.d(t,"AlignmentToolbar",(function(){return Rt.b})),n.d(t,"Autocomplete",(function(){return Rt.c})),n.d(t,"BlockAlignmentControl",(function(){return Rt.d})),n.d(t,"BlockAlignmentToolbar",(function(){return Rt.e})),n.d(t,"__experimentalBlockFullHeightAligmentControl",(function(){return Rt.nb})),n.d(t,"__experimentalBlockAlignmentMatrixControl",(function(){return Rt.lb})),n.d(t,"BlockBreadcrumb",(function(){return Rt.f})),n.d(t,"__experimentalBlockContentOverlay",(function(){return Rt.mb})),n.d(t,"BlockContextProvider",(function(){return Rt.h})),n.d(t,"BlockControls",(function(){return Rt.i})),n.d(t,"BlockFormatControls",(function(){return Rt.m})),n.d(t,"BlockColorsStyleSelector",(function(){return Rt.g})),n.d(t,"BlockEdit",(function(){return Rt.j})),n.d(t,"useBlockEditContext",(function(){return Rt.pc})),n.d(t,"BlockIcon",(function(){return Rt.n})),n.d(t,"BlockNavigationDropdown",(function(){return Rt.r})),n.d(t,"__experimentalBlockVariationPicker",(function(){return Rt.pb})),n.d(t,"__experimentalBlockPatternSetup",(function(){return Rt.ob})),n.d(t,"__experimentalBlockVariationTransforms",(function(){return Rt.qb})),n.d(t,"BlockVerticalAlignmentToolbar",(function(){return Rt.A})),n.d(t,"BlockVerticalAlignmentControl",(function(){return Rt.z})),n.d(t,"__experimentalBorderRadiusControl",(function(){return Rt.rb})),n.d(t,"__experimentalBorderStyleControl",(function(){return Rt.sb})),n.d(t,"ButtonBlockerAppender",(function(){return Rt.C})),n.d(t,"ButtonBlockAppender",(function(){return Rt.B})),n.d(t,"ColorPalette",(function(){return Rt.D})),n.d(t,"ColorPaletteControl",(function(){return Rt.E})),n.d(t,"ContrastChecker",(function(){return Rt.F})),n.d(t,"__experimentalDuotoneControl",(function(){return Rt.ub})),n.d(t,"__experimentalFontAppearanceControl",(function(){return Rt.vb})),n.d(t,"__experimentalFontFamilyControl",(function(){return Rt.wb})),n.d(t,"__experimentalLetterSpacingControl",(function(){return Rt.Eb})),n.d(t,"__experimentalTextDecorationControl",(function(){return Rt.Ob})),n.d(t,"__experimentalTextTransformControl",(function(){return Rt.Pb})),n.d(t,"__experimentalColorGradientControl",(function(){return Rt.tb})),n.d(t,"__experimentalPanelColorGradientSettings",(function(){return Rt.Lb})),n.d(t,"__experimentalImageEditor",(function(){return Rt.Ab})),n.d(t,"__experimentalImageEditingProvider",(function(){return Rt.zb})),n.d(t,"__experimentalImageSizeControl",(function(){return Rt.Bb})),n.d(t,"InnerBlocks",(function(){return Rt.J})),n.d(t,"useInnerBlocksProps",(function(){return Rt.rc})),n.d(t,"InspectorControls",(function(){return Rt.M})),n.d(t,"InspectorAdvancedControls",(function(){return Rt.L})),n.d(t,"JustifyToolbar",(function(){return Rt.O})),n.d(t,"JustifyContentControl",(function(){return Rt.N})),n.d(t,"__experimentalLinkControl",(function(){return Rt.Gb})),n.d(t,"__experimentalLinkControlSearchInput",(function(){return Rt.Hb})),n.d(t,"__experimentalLinkControlSearchResults",(function(){return Rt.Jb})),n.d(t,"__experimentalLinkControlSearchItem",(function(){return Rt.Ib})),n.d(t,"LineHeightControl",(function(){return Rt.P})),n.d(t,"__experimentalListView",(function(){return Rt.Kb})),n.d(t,"MediaReplaceFlow",(function(){return Rt.R})),n.d(t,"MediaPlaceholder",(function(){return Rt.Q})),n.d(t,"MediaUpload",(function(){return Rt.S})),n.d(t,"MediaUploadCheck",(function(){return Rt.T})),n.d(t,"PanelColorSettings",(function(){return Rt.X})),n.d(t,"PlainText",(function(){return Rt.Y})),n.d(t,"__experimentalResponsiveBlockControl",(function(){return Rt.Nb})),n.d(t,"RichText",(function(){return Rt.ab})),n.d(t,"RichTextShortcut",(function(){return Rt.bb})),n.d(t,"RichTextToolbarButton",(function(){return Rt.cb})),n.d(t,"__unstableRichTextInputEvent",(function(){return Rt.Yb})),n.d(t,"ToolSelector",(function(){return Rt.eb})),n.d(t,"__experimentalUnitControl",(function(){return Rt.Qb})),n.d(t,"URLInput",(function(){return Rt.gb})),n.d(t,"URLInputButton",(function(){return Rt.hb})),n.d(t,"URLPopover",(function(){return Rt.ib})),n.d(t,"__experimentalImageURLInputUI",(function(){return Rt.Cb})),n.d(t,"withColorContext",(function(){return Rt.tc})),n.d(t,"__unstableBlockSettingsMenuFirstItem",(function(){return Rt.Ub})),n.d(t,"__unstableInserterMenuExtension",(function(){return Rt.Xb})),n.d(t,"__experimentalPreviewOptions",(function(){return Rt.Mb})),n.d(t,"__experimentalUseResizeCanvas",(function(){return Rt.Tb})),n.d(t,"BlockInspector",(function(){return Rt.o})),n.d(t,"BlockList",(function(){return Rt.p})),n.d(t,"useBlockProps",(function(){return Rt.qc})),n.d(t,"__experimentalLayoutStyle",(function(){return Rt.Db})),n.d(t,"BlockMover",(function(){return Rt.q})),n.d(t,"BlockPreview",(function(){return Rt.s})),n.d(t,"BlockSelectionClearer",(function(){return Rt.t})),n.d(t,"__unstableUseBlockSelectionClearer",(function(){return Rt.Zb})),n.d(t,"BlockSettingsMenu",(function(){return Rt.u})),n.d(t,"BlockSettingsMenuControls",(function(){return Rt.v})),n.d(t,"BlockTitle",(function(){return Rt.w})),n.d(t,"BlockToolbar",(function(){return Rt.x})),n.d(t,"BlockTools",(function(){return Rt.y})),n.d(t,"CopyHandler",(function(){return Rt.G})),n.d(t,"__unstableUseClipboardHandler",(function(){return Rt.bc})),n.d(t,"DefaultBlockAppender",(function(){return Rt.H})),n.d(t,"__unstableEditorStyles",(function(){return Rt.Vb})),n.d(t,"Inserter",(function(){return Rt.K})),n.d(t,"__experimentalLibrary",(function(){return Rt.Fb})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return Rt.k})),n.d(t,"MultiSelectScrollIntoView",(function(){return Rt.U})),n.d(t,"NavigableToolbar",(function(){return Rt.V})),n.d(t,"ObserveTyping",(function(){return Rt.W})),n.d(t,"__unstableUseTypingObserver",(function(){return Rt.ec})),n.d(t,"__unstableUseMouseMoveTypingReset",(function(){return Rt.cc})),n.d(t,"PreserveScrollInReorder",(function(){return Rt.Z})),n.d(t,"SkipToSelectedBlock",(function(){return Rt.db})),n.d(t,"Typewriter",(function(){return Rt.fb})),n.d(t,"__unstableUseTypewriter",(function(){return Rt.dc})),n.d(t,"Warning",(function(){return Rt.jb})),n.d(t,"WritingFlow",(function(){return Rt.kb})),n.d(t,"__unstableUseCanvasClickRedirect",(function(){return Rt.ac})),n.d(t,"useBlockDisplayInformation",(function(){return Rt.oc})),n.d(t,"__unstableIframe",(function(){return Rt.Wb})),n.d(t,"__experimentalUseNoRecursiveRenders",(function(){return Rt.Sb})),n.d(t,"BlockEditorProvider",(function(){return Rt.l})),n.d(t,"useSetting",(function(){return Rt.sc})),n.d(t,"transformStyles",(function(){return Nt.c})),n.d(t,"validateThemeColors",(function(){return Nt.d})),n.d(t,"validateThemeGradients",(function(){return Nt.e})),n.d(t,"__experimentalGetMatchingVariation",(function(){return Nt.a})),n.d(t,"getPxFromCssUnit",(function(){return Nt.b})),n.d(t,"storeConfig",(function(){return Ot.b})),n.d(t,"store",(function(){return Ot.a})),n.d(t,"SETTINGS_DEFAULTS",(function(){return Lt.b}));var o=n("HSyU"),r=n("g56x");Object(r.addFilter)("blocks.registerBlockType","core/compat/migrateLightBlockWrapper",(function(e){const{apiVersion:t=1}=e;return t<2&&Object(o.hasBlockSupport)(e,"lightBlockWrapper",!1)&&(e.apiVersion=2),e}));var c=n("wx14"),l=n("GRId"),i=n("TSYQ"),a=n.n(i),s=n("YLtl"),u=n("K9lf"),d=n("fOYa"),b=n("vtO0"),p=n("K/rC");const m=["left","center","right","wide","full"],f=["wide","full"];function h(e){let t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?m.filter(t=>e.includes(t)):!0===e?[...m]:[],!o||!0===e&&!n?Object(s.without)(t,...f):t}const g=Object(u.createHigherOrderComponent)(e=>t=>{const{name:n}=t,r=h(Object(o.getBlockSupport)(n,"align"),Object(o.hasBlockSupport)(n,"alignWide",!0)),c=Object(p.a)(r).map(e=>{let{name:t}=e;return t});return Object(l.createElement)(l.Fragment,null,!!c.length&&Object(l.createElement)(d.b,{group:"block",__experimentalShareWithChildBlocks:!0},Object(l.createElement)(b.a,{value:t.attributes.align,onChange:e=>{if(!e){var n,r;const c=Object(o.getBlockType)(t.name);(null==c||null===(n=c.attributes)||void 0===n||null===(r=n.align)||void 0===r?void 0:r.default)&&(e="")}t.setAttributes({align:e})},controls:c})),Object(l.createElement)(e,t))},"withToolbarControls"),O=Object(u.createHigherOrderComponent)(e=>t=>{const{name:n,attributes:r}=t,{align:i}=r,a=h(Object(o.getBlockSupport)(n,"align"),Object(o.hasBlockSupport)(n,"alignWide",!0)),s=Object(p.a)(a);if(void 0===i)return Object(l.createElement)(e,t);let u=t.wrapperProps;return s.some(e=>e.name===i)&&(u={...u,"data-align":i}),Object(l.createElement)(e,Object(c.a)({},t,{wrapperProps:u}))});Object(r.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(s.has)(e.attributes,["align","type"])||Object(o.hasBlockSupport)(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...m,""]}}),e})),Object(r.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",O),Object(r.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",g),Object(r.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){const{align:r}=n;return h(Object(o.getBlockSupport)(t,"align"),Object(o.hasBlockSupport)(t,"alignWide",!0)).includes(r)&&(e.className=a()("align"+r,e.className)),e})),Object(r.addFilter)("blocks.registerBlockType","core/lock/addAttribute",(function(e){return Object(s.has)(e.attributes,["lock","type"])||(e.attributes={...e.attributes,lock:{type:"object"}}),e}));var v=n("tI+e"),j=n("l3Sj"),k=n("1oY3");const _=/[\s#]/g;const y=Object(u.createHigherOrderComponent)(e=>t=>{if(Object(o.hasBlockSupport)(t.name,"anchor")&&t.isSelected){const n="web"===l.Platform.OS,o=Object(l.createElement)(v.TextControl,{className:"html-anchor-control",label:Object(j.__)("HTML anchor"),help:Object(l.createElement)(l.Fragment,null,Object(j.__)("Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor.” Then, you’ll be able to link directly to this section of your page."),n&&Object(l.createElement)(v.ExternalLink,{href:Object(j.__)("https://wordpress.org/support/article/page-jumps/")},Object(j.__)("Learn more about anchors"))),value:t.attributes.anchor||"",placeholder:n?null:Object(j.__)("Add an anchor"),onChange:e=>{e=e.replace(_,"-"),t.setAttributes({anchor:e})},autoCapitalize:"none",autoComplete:"off"});return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(e,t),n&&Object(l.createElement)(k.b,{__experimentalGroup:"advanced"},o),!n&&"core/heading"===t.name&&Object(l.createElement)(k.b,null,Object(l.createElement)(v.PanelBody,{title:Object(j.__)("Heading settings")},o)))}return Object(l.createElement)(e,t)},"withInspectorControl");Object(r.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return Object(s.has)(e.attributes,["anchor","type"])||Object(o.hasBlockSupport)(e,"anchor")&&(e.attributes={...e.attributes,anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}}),e})),Object(r.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",y),Object(r.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return Object(o.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));const E=Object(u.createHigherOrderComponent)(e=>t=>Object(o.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?Object(l.createElement)(l.Fragment,null,Object(l.createElement)(e,t),Object(l.createElement)(k.b,{__experimentalGroup:"advanced"},Object(l.createElement)(v.TextControl,{autoComplete:"off",label:Object(j.__)("Additional CSS class(es)"),value:t.attributes.className||"",onChange:e=>{t.setAttributes({className:""!==e?e:void 0})},help:Object(j.__)("Separate multiple classes with spaces.")}))):Object(l.createElement)(e,t),"withInspectorControl");Object(r.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(o.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e})),Object(r.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",E),Object(r.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Object(o.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=a()(e.className,n.className)),e})),Object(r.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Object(o.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(s.uniq)([Object(o.getBlockDefaultClassName)(t.name),...e.className.split(" ")]).join(" ").trim():e.className=Object(o.getBlockDefaultClassName)(t.name)),e}));var C=n("VyCT"),S=n("v5LD"),w=n("hMaJ"),I=n("bVpQ"),B=n("715p");const x=[];function T(e){const{attributes:{borderColor:t,style:n},setAttributes:o}=e,r=Object(S.a)("color.palette")||x,c=!Object(S.a)("color.custom"),i=!Object(S.a)("color.customGradient"),[a,s]=Object(l.useState)(()=>{var e,o;return null===(e=Object(I.b)(r,t,null==n||null===(o=n.border)||void 0===o?void 0:o.color))||void 0===e?void 0:e.color});return Object(l.createElement)(w.a,{label:Object(j.__)("Color"),colorValue:a,colors:r,gradients:void 0,disableCustomColors:c,disableCustomGradients:i,onColorChange:e=>{s(e);const t=Object(I.c)(r,e),c={...n,border:{...null==n?void 0:n.border,color:null!=t&&t.slug?void 0:e}},l=null!=t&&t.slug?t.slug:void 0;o({style:Object(B.a)(c),borderColor:l})}})}function P(e,t,n){var o;if(!z(t,"color")||H(t))return e;const{borderColor:r,style:c}=n,l=Object(I.a)("border-color",r),i=a()(e.className,{"has-border-color":r||(null==c||null===(o=c.border)||void 0===o?void 0:o.color),[l]:!!l});return e.className=i||void 0,e}const R=Object(u.createHigherOrderComponent)(e=>t=>{var n,o;const{name:r,attributes:i}=t,{borderColor:a}=i,s=Object(S.a)("color.palette")||x;if(!z(r,"color")||H(r))return Object(l.createElement)(e,t);const u={borderColor:a?null===(n=Object(I.b)(s,a))||void 0===n?void 0:n.color:void 0};let d=t.wrapperProps;return d={...t.wrapperProps,style:{...u,...null===(o=t.wrapperProps)||void 0===o?void 0:o.style}},Object(l.createElement)(e,Object(c.a)({},t,{wrapperProps:d}))});Object(r.addFilter)("blocks.registerBlockType","core/border/addAttributes",(function(e){return z(e,"color")?e.attributes.borderColor?e:{...e,attributes:{...e.attributes,borderColor:{type:"string"}}}:e})),Object(r.addFilter)("blocks.getSaveContent.extraProps","core/border/addSaveProps",P),Object(r.addFilter)("blocks.registerBlockType","core/border/addEditProps",(function(e){if(!z(e,"color")||H(e))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),P(o,e,n)},e})),Object(r.addFilter)("editor.BlockListBlock","core/border/with-border-color-palette-styles",R);var N=n("Wy3j");function L(e){var t;const{attributes:{style:n},setAttributes:o}=e;return Object(l.createElement)(N.a,{values:null==n||null===(t=n.border)||void 0===t?void 0:t.radius,onChange:e=>{let t={...n,border:{...null==n?void 0:n.border,radius:e}};void 0!==e&&""!==e||(t=Object(B.a)(t)),o({style:t})}})}var M=n("2YCo");const A=e=>{var t;const{attributes:{style:n},setAttributes:o}=e;return Object(l.createElement)(M.a,{value:null==n||null===(t=n.border)||void 0===t?void 0:t.style,onChange:e=>{const t={...n,border:{...null==n?void 0:n.border,style:e}};o({style:Object(B.a)(t)})}})},D=e=>{const{attributes:{borderColor:t,style:n},setAttributes:o}=e,{width:r,color:c,style:i}=(null==n?void 0:n.border)||{},[a,s]=Object(l.useState)(),[u,d]=Object(l.useState)();Object(l.useEffect)(()=>{"none"!==i&&s(i)},[i]),Object(l.useEffect)(()=>{(t||c)&&d({name:t||void 0,color:c||void 0})},[t,c]);const b=Object(v.__experimentalUseCustomUnits)({availableUnits:Object(S.a)("spacing.units")||["px","em","rem"]});return Object(l.createElement)(v.__experimentalUnitControl,{value:r,label:Object(j.__)("Width"),min:0,onChange:e=>{let r={...n,border:{...null==n?void 0:n.border,width:e}},c=t;const l=0===parseFloat(e);l&&(c=void 0,r.border.color=void 0,r.border.style="none"),l||"none"!==i||(r.border.style=a),l||void 0!==t||(c=null==u?void 0:u.name,r.border.color=null==u?void 0:u.color),void 0!==e&&""!==e||(r=Object(B.a)(r)),o({borderColor:c,style:r})},units:b})};function F(e){const t=V(e),n=z(e.name),o=Object(S.a)("border.color")&&z(e.name,"color"),r=Object(S.a)("border.radius")&&z(e.name,"radius"),c=Object(S.a)("border.style")&&z(e.name,"style"),i=Object(S.a)("border.width")&&z(e.name,"width");return t||!n?null:Object(l.createElement)(k.b,null,Object(l.createElement)(v.PanelBody,{className:"block-editor-hooks__border-controls",title:Object(j.__)("Border"),initialOpen:!1},(i||c)&&Object(l.createElement)("div",{className:"block-editor-hooks__border-controls-row"},i&&Object(l.createElement)(D,e),c&&Object(l.createElement)(A,e)),o&&Object(l.createElement)(T,e),r&&Object(l.createElement)(L,e)))}function z(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"any";if("web"!==l.Platform.OS)return!1;const n=Object(o.getBlockSupport)(e,"__experimentalBorder");return!0===n||("any"===t?!!(null!=n&&n.color||null!=n&&n.radius||null!=n&&n.width||null!=n&&n.style):!(null==n||!n[t]))}function H(e){const t=Object(o.getBlockSupport)(e,"__experimentalBorder");return null==t?void 0:t.__experimentalSkipSerialization}const V=()=>[!Object(S.a)("border.color"),!Object(S.a)("border.radius"),!Object(S.a)("border.style"),!Object(S.a)("border.width")].every(Boolean);var G=n("Cn0l"),U=n("yU1v"),W=n("6c9H"),q=n("PKbb");function K(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function $(e){let{settings:t,clientId:n,enableContrastChecking:o=!0,showTitle:r=!0}=e;const[c,i]=Object(l.useState)(),[a,s]=Object(l.useState)(),u=Object(q.b)(n);return Object(l.useEffect)(()=>{if(!o)return;if(!u.current)return;s(K(u.current).color);let e=u.current,t=K(e).backgroundColor;for(;"rgba(0, 0, 0, 0)"===t&&e.parentNode&&e.parentNode.nodeType===e.parentNode.ELEMENT_NODE;)e=e.parentNode,t=K(e).backgroundColor;i(t)}),Object(l.createElement)(k.b,null,Object(l.createElement)(U.a,{title:Object(j.__)("Color"),initialOpen:!1,settings:t,showTitle:r,__experimentalHasMultipleOrigins:!0},o&&Object(l.createElement)(W.a,{backgroundColor:c,textColor:a})))}const Y=[],X=e=>{const t=Object(o.getBlockSupport)(e,"color");return t&&(!0===t.link||!0===t.gradient||!1!==t.background||!1!==t.text)},Z=e=>{const t=Object(o.getBlockSupport)(e,"color");return null==t?void 0:t.__experimentalSkipSerialization},Q=e=>{const t=Object(o.getBlockSupport)(e,"color");return Object(s.isObject)(t)&&!!t.gradients};function J(e,t,n){var o,r,c,l,i,s;if(!X(t)||Z(t))return e;const u=Q(t),{backgroundColor:d,textColor:b,gradient:p,style:m}=n,f=Object(I.a)("background-color",d),h=Object(G.a)(p),g=Object(I.a)("color",b),O=a()(e.className,g,h,{[f]:!(u&&null!=m&&null!==(o=m.color)&&void 0!==o&&o.gradient||!f),"has-text-color":b||(null==m||null===(r=m.color)||void 0===r?void 0:r.text),"has-background":d||(null==m||null===(c=m.color)||void 0===c?void 0:c.background)||u&&(p||(null==m||null===(l=m.color)||void 0===l?void 0:l.gradient)),"has-link-color":null==m||null===(i=m.elements)||void 0===i||null===(s=i.link)||void 0===s?void 0:s.color});return e.className=O||void 0,e}const ee=(e,t)=>{const n=/var:preset\|color\|(.+)/.exec(t);return n&&n[1]?Object(I.b)(e,n[1]).color:t};function te(e){var t,n,r,c,i,a,u,d,b;const{name:p,attributes:m}=e,f=Object(S.a)("color.palette")||Y,h=Object(S.a)("color.gradients")||Y,g=Object(S.a)("color.custom"),O=Object(S.a)("color.customGradient"),v=Object(S.a)("color.link"),k=Object(S.a)("color.text"),_=Object(S.a)("color.background"),y=Object(l.useRef)(m);if(Object(l.useEffect)(()=>{y.current=m},[m]),!X(p))return null;const E=(e=>{if("web"!==l.Platform.OS)return!1;const t=Object(o.getBlockSupport)(e,"color");return Object(s.isObject)(t)&&!!t.link})(p)&&v&&(f.length>0||g),C=(e=>{const t=Object(o.getBlockSupport)(e,"color");return t&&!1!==t.text})(p)&&k&&(f.length>0||g),w=(e=>{const t=Object(o.getBlockSupport)(e,"color");return t&&!1!==t.background})(p)&&_&&(f.length>0||g),x=Q(p)&&(h.length>0||O);if(!(E||C||w||x))return null;const{style:T,textColor:P,backgroundColor:R,gradient:N}=m;let L;if(x&&N)L=Object(G.e)(h,N);else if(x){var M;L=null==T||null===(M=T.color)||void 0===M?void 0:M.gradient}const A=t=>n=>{var o,r;const c=Object(I.c)(f,n),l=t+"Color",i={...y.current.style,color:{...null===(o=y.current)||void 0===o||null===(r=o.style)||void 0===r?void 0:r.color,[t]:null!=c&&c.slug?void 0:n}},a=null!=c&&c.slug?c.slug:void 0,s={style:Object(B.a)(i),[l]:a};e.setAttributes(s),y.current={...y.current,...s}};return Object(l.createElement)($,{enableContrastChecking:!("web"!==l.Platform.OS||N||null!=T&&null!==(t=T.color)&&void 0!==t&&t.gradient),clientId:e.clientId,settings:[...C?[{label:Object(j.__)("Text color"),onColorChange:A("text"),colorValue:Object(I.b)(f,P,null==T||null===(n=T.color)||void 0===n?void 0:n.text).color}]:[],...w||x?[{label:Object(j.__)("Background color"),onColorChange:w?A("background"):void 0,colorValue:Object(I.b)(f,R,null==T||null===(r=T.color)||void 0===r?void 0:r.background).color,gradientValue:L,onGradientChange:x?t=>{const n=Object(G.d)(h,t);let o;if(n){var r,c,l;const e={...null===(r=y.current)||void 0===r?void 0:r.style,color:{...null===(c=y.current)||void 0===c||null===(l=c.style)||void 0===l?void 0:l.color,gradient:void 0}};o={style:Object(B.a)(e),gradient:n}}else{var i,a,s;const e={...null===(i=y.current)||void 0===i?void 0:i.style,color:{...null===(a=y.current)||void 0===a||null===(s=a.style)||void 0===s?void 0:s.color,gradient:t}};o={style:Object(B.a)(e),gradient:void 0}}e.setAttributes(o),y.current={...y.current,...o}}:void 0}]:[],...E?[{label:Object(j.__)("Link Color"),onColorChange:t=>{const n=Object(I.c)(f,t),o=null!=n&&n.slug?"var:preset|color|"+n.slug:t,r=Object(B.a)(function(e,t,n){return Object(s.setWith)(e?Object(s.clone)(e):{},t,n,s.clone)}(T,["elements","link","color","text"],o));e.setAttributes({style:r})},colorValue:ee(f,null==T||null===(c=T.elements)||void 0===c||null===(i=c.link)||void 0===i||null===(a=i.color)||void 0===a?void 0:a.text),clearable:!(null==T||null===(u=T.elements)||void 0===u||null===(d=u.link)||void 0===d||null===(b=d.color)||void 0===b||!b.text)}]:[]]})}const ne=Object(u.createHigherOrderComponent)(e=>t=>{var n,o,r;const{name:i,attributes:a}=t,{backgroundColor:s,textColor:u}=a,d=Object(S.a)("color.palette")||Y;if(!X(i)||Z(i))return Object(l.createElement)(e,t);const b={color:u?null===(n=Object(I.b)(d,u))||void 0===n?void 0:n.color:void 0,backgroundColor:s?null===(o=Object(I.b)(d,s))||void 0===o?void 0:o.color:void 0};let p=t.wrapperProps;return p={...t.wrapperProps,style:{...b,...null===(r=t.wrapperProps)||void 0===r?void 0:r.style}},Object(l.createElement)(e,Object(c.a)({},t,{wrapperProps:p}))});Object(r.addFilter)("blocks.registerBlockType","core/color/addAttribute",(function(e){return X(e)?(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),Q(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}}),e):e})),Object(r.addFilter)("blocks.getSaveContent.extraProps","core/color/addSaveProps",J),Object(r.addFilter)("blocks.registerBlockType","core/color/addEditProps",(function(e){if(!X(e)||Z(e))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),J(o,e,n)},e})),Object(r.addFilter)("editor.BlockListBlock","core/color/with-color-palette-styles",ne);var oe=n("Bo0k"),re=n("weEX");function ce(e){var t;const{attributes:{style:n},setAttributes:o}=e;return Object(l.createElement)(re.a,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.lineHeight,onChange:e=>{const t={...n,typography:{...null==n?void 0:n.typography,lineHeight:e}};o({style:Object(B.a)(t)})}})}function le(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!Object(S.a)("typography.lineHeight");return!Object(o.hasBlockSupport)(e,"typography.lineHeight")||t}function ie(e){var t,n;const{attributes:{style:o},setAttributes:r}=e,c=!ae(e),i=!se(e),a=null==o||null===(t=o.typography)||void 0===t?void 0:t.fontStyle,s=null==o||null===(n=o.typography)||void 0===n?void 0:n.fontWeight;return Object(l.createElement)(oe.a,{onChange:e=>{r({style:Object(B.a)({...o,typography:{...null==o?void 0:o.typography,fontStyle:e.fontStyle,fontWeight:e.fontWeight}})})},hasFontStyles:c,hasFontWeights:i,value:{fontStyle:a,fontWeight:s}})}function ae(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Object(o.hasBlockSupport)(e,"typography.__experimentalFontStyle"),n=Object(S.a)("typography.fontStyle");return!t||!n}function se(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Object(o.hasBlockSupport)(e,"typography.__experimentalFontWeight"),n=Object(S.a)("typography.fontWeight");return!t||!n}function ue(e){const t=ae(e),n=se(e);return t&&n}var de=n("BLeD"),be=n.n(de),pe=n("GKUk");const me="typography.__experimentalFontFamily";function fe(e,t,n){if(!Object(o.hasBlockSupport)(t,me))return e;if(Object(o.hasBlockSupport)(t,"typography.__experimentalSkipSerialization"))return e;if(null==n||!n.fontFamily)return e;const r=new be.a(e.className);r.add(`has-${Object(s.kebabCase)(null==n?void 0:n.fontFamily)}-font-family`);const c=r.value;return e.className=c||void 0,e}function he(e){var t;let{setAttributes:n,attributes:{fontFamily:o}}=e;const r=Object(S.a)("typography.fontFamilies"),c=null===(t=Object(s.find)(r,e=>{let{slug:t}=e;return o===t}))||void 0===t?void 0:t.fontFamily;return Object(l.createElement)(pe.a,{className:"block-editor-hooks-font-family-control",fontFamilies:r,value:c,onChange:function(e){const t=Object(s.find)(r,t=>{let{fontFamily:n}=t;return n===e});n({fontFamily:null==t?void 0:t.slug})}})}function ge(e){let{name:t}=e;const n=Object(S.a)("typography.fontFamilies");return!n||0===n.length||!Object(o.hasBlockSupport)(t,me)}Object(r.addFilter)("blocks.registerBlockType","core/fontFamily/addAttribute",(function(e){return Object(o.hasBlockSupport)(e,me)?(e.attributes.fontFamily||Object.assign(e.attributes,{fontFamily:{type:"string"}}),e):e})),Object(r.addFilter)("blocks.getSaveContent.extraProps","core/fontFamily/addSaveProps",fe),Object(r.addFilter)("blocks.registerBlockType","core/fontFamily/addEditProps",(function(e){if(!Object(o.hasBlockSupport)(e,me))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),fe(o,e,n)},e}));var Oe=n("NMUH"),ve=n("QP/w");function je(e,t,n){if(!Object(o.hasBlockSupport)(t,"typography.fontSize"))return e;if(Object(o.hasBlockSupport)(t,"typography.__experimentalSkipSerialization"))return e;const r=new be.a(e.className);r.add(Object(Oe.b)(n.fontSize));const c=r.value;return e.className=c||void 0,e}function ke(e){var t,n;const{attributes:{fontSize:o,style:r},setAttributes:c}=e,i=Object(S.a)("typography.fontSizes"),a=Object(Oe.a)(i,o,null==r||null===(t=r.typography)||void 0===t?void 0:t.fontSize),s=(null==a?void 0:a.size)||(null==r||null===(n=r.typography)||void 0===n?void 0:n.fontSize)||o;return Object(l.createElement)(ve.a,{onChange:e=>{const t=Object(Oe.c)(i,e).slug;c({style:Object(B.a)({...r,typography:{...null==r?void 0:r.typography,fontSize:t?void 0:e}}),fontSize:t})},value:s,withReset:!1})}function _e(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Object(S.a)("typography.fontSizes"),n=!(null==t||!t.length);return!Object(o.hasBlockSupport)(e,"typography.fontSize")||!n}const ye=Object(u.createHigherOrderComponent)(e=>t=>{var n,r;const c=Object(S.a)("typography.fontSizes"),{name:i,attributes:{fontSize:a,style:s},wrapperProps:u}=t;if(!Object(o.hasBlockSupport)(i,"typography.fontSize")||Object(o.hasBlockSupport)(i,"typography.__experimentalSkipSerialization")||!a||null!=s&&null!==(n=s.typography)&&void 0!==n&&n.fontSize)return Object(l.createElement)(e,t);const d=Object(Oe.a)(c,a,null==s||null===(r=s.typography)||void 0===r?void 0:r.fontSize).size,b={...t,wrapperProps:{...u,style:{fontSize:d,...null==u?void 0:u.style}}};return Object(l.createElement)(e,b)},"withFontSizeInlineStyles");Object(r.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return Object(o.hasBlockSupport)(e,"typography.fontSize")?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),Object(r.addFilter)("blocks.getSaveContent.extraProps","core/font/addSaveProps",je),Object(r.addFilter)("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!Object(o.hasBlockSupport)(e,"typography.fontSize"))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),je(o,e,n)},e})),Object(r.addFilter)("editor.BlockListBlock","core/font-size/with-font-size-inline-styles",ye);var Ee=n("kVRd");function Ce(e){var t;const{attributes:{style:n},setAttributes:o}=e;return Object(l.createElement)(Ee.a,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.textDecoration,onChange:function(e){o({style:Object(B.a)({...n,typography:{...null==n?void 0:n.typography,textDecoration:e}})})}})}function Se(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!Object(o.hasBlockSupport)(e,"typography.__experimentalTextDecoration"),n=Object(S.a)("typography.textDecoration");return t||!n}var we=n("/Hvg");function Ie(e){var t;const{attributes:{style:n},setAttributes:o}=e;return Object(l.createElement)(we.a,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.textTransform,onChange:function(e){o({style:Object(B.a)({...n,typography:{...null==n?void 0:n.typography,textTransform:e}})})}})}function Be(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!Object(o.hasBlockSupport)(e,"typography.__experimentalTextTransform"),n=Object(S.a)("typography.textTransform");return t||!n}var xe=n("xBDm");function Te(e){var t;const{attributes:{style:n},setAttributes:o}=e;return Object(l.createElement)(xe.a,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.letterSpacing,onChange:function(e){o({style:Object(B.a)({...n,typography:{...null==n?void 0:n.typography,letterSpacing:e}})})},__unstableInputWidth:!1})}function Pe(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!Object(o.hasBlockSupport)(e,"typography.__experimentalLetterSpacing"),n=Object(S.a)("typography.letterSpacing");return t||!n}const Re=["typography.lineHeight","typography.fontSize","typography.__experimentalFontStyle","typography.__experimentalFontWeight",me,"typography.__experimentalTextDecoration","typography.__experimentalTextTransform","typography.__experimentalLetterSpacing"];function Ne(e){const{clientId:t}=e,n=ge(e),r=_e(e),c=ue(e),i=le(e),a=Se(e),s=Be(e),u=Pe(e),d=!ae(e),b=!se(e),p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=[ue(e),_e(e),le(e),ge(e),Se(e),Be(e),Pe(e)];return t.filter(Boolean).length===t.length}(e),m=Le(e.name);if(p||!m)return null;const f=Object(o.getBlockSupport)(e.name,["typography","__experimentalDefaultControls"]),h=e=>t=>{var n;return{...t,style:{...t.style,typography:{...null===(n=t.style)||void 0===n?void 0:n.typography,[e]:void 0}}}};return Object(l.createElement)(k.b,{__experimentalGroup:"typography"},!n&&Object(l.createElement)(v.__experimentalToolsPanelItem,{hasValue:()=>function(e){return!!e.attributes.fontFamily}(e),label:Object(j.__)("Font family"),onDeselect:()=>function(e){let{setAttributes:t}=e;t({fontFamily:void 0})}(e),isShownByDefault:null==f?void 0:f.fontFamily,resetAllFilter:e=>({...e,fontFamily:void 0}),panelId:t},Object(l.createElement)(he,e)),!r&&Object(l.createElement)(v.__experimentalToolsPanelItem,{hasValue:()=>function(e){var t;const{fontSize:n,style:o}=e.attributes;return!!n||!(null==o||null===(t=o.typography)||void 0===t||!t.fontSize)}(e),label:Object(j.__)("Font size"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({fontSize:void 0,style:Object(B.a)({...o,typography:{...null==o?void 0:o.typography,fontSize:void 0}})})}(e),isShownByDefault:null==f?void 0:f.fontSize,resetAllFilter:e=>{var t;return{...e,fontSize:void 0,style:{...e.style,typography:{...null===(t=e.style)||void 0===t?void 0:t.typography,fontSize:void 0}}}},panelId:t},Object(l.createElement)(ke,e)),!c&&Object(l.createElement)(v.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>function(e){var t;const{fontStyle:n,fontWeight:o}=(null===(t=e.attributes.style)||void 0===t?void 0:t.typography)||{};return!!n||!!o}(e),label:Object(oe.b)(d,b),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:Object(B.a)({...o,typography:{...null==o?void 0:o.typography,fontStyle:void 0,fontWeight:void 0}})})}(e),isShownByDefault:null==f?void 0:f.fontAppearance,resetAllFilter:e=>{var t;return{...e,style:{...e.style,typography:{...null===(t=e.style)||void 0===t?void 0:t.typography,fontStyle:void 0,fontWeight:void 0}}}},panelId:t},Object(l.createElement)(ie,e)),!i&&Object(l.createElement)(v.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>function(e){var t,n;return!(null===(t=e.attributes.style)||void 0===t||null===(n=t.typography)||void 0===n||!n.lineHeight)}(e),label:Object(j.__)("Line height"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:Object(B.a)({...o,typography:{...null==o?void 0:o.typography,lineHeight:void 0}})})}(e),isShownByDefault:null==f?void 0:f.lineHeight,resetAllFilter:h("lineHeight"),panelId:t},Object(l.createElement)(ce,e)),!a&&Object(l.createElement)(v.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>function(e){var t,n;return!(null===(t=e.attributes.style)||void 0===t||null===(n=t.typography)||void 0===n||!n.textDecoration)}(e),label:Object(j.__)("Decoration"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:Object(B.a)({...o,typography:{...null==o?void 0:o.typography,textDecoration:void 0}})})}(e),isShownByDefault:null==f?void 0:f.textDecoration,resetAllFilter:h("textDecoration"),panelId:t},Object(l.createElement)(Ce,e)),!s&&Object(l.createElement)(v.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>function(e){var t,n;return!(null===(t=e.attributes.style)||void 0===t||null===(n=t.typography)||void 0===n||!n.textTransform)}(e),label:Object(j.__)("Letter case"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:Object(B.a)({...o,typography:{...null==o?void 0:o.typography,textTransform:void 0}})})}(e),isShownByDefault:null==f?void 0:f.textTransform,resetAllFilter:h("textTransform"),panelId:t},Object(l.createElement)(Ie,e)),!u&&Object(l.createElement)(v.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>function(e){var t,n;return!(null===(t=e.attributes.style)||void 0===t||null===(n=t.typography)||void 0===n||!n.letterSpacing)}(e),label:Object(j.__)("Letter-spacing"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:Object(B.a)({...o,typography:{...null==o?void 0:o.typography,letterSpacing:void 0}})})}(e),isShownByDefault:null==f?void 0:f.letterSpacing,resetAllFilter:h("letterSpacing"),panelId:t},Object(l.createElement)(Te,e)))}const Le=e=>Re.some(t=>Object(o.hasBlockSupport)(e,t));function Me(e){const t=Object(o.getBlockSupport)(e,We);return!!(!0===t||null!=t&&t.blockGap)}function Ae(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!Object(S.a)("spacing.blockGap");return!Me(e)||t}function De(e){var t;const{clientId:n,attributes:{style:o},setAttributes:r}=e,c=Object(v.__experimentalUseCustomUnits)({availableUnits:Object(S.a)("spacing.units")||["%","px","em","rem","vw"]}),i=Object(q.b)(n);if(Ae(e))return null;return l.Platform.select({web:Object(l.createElement)(l.Fragment,null,Object(l.createElement)(v.__experimentalUnitControl,{label:Object(j.__)("Block spacing"),__unstableInputWidth:"80px",min:0,onChange:e=>{var t;const n={...o,spacing:{...null==o?void 0:o.spacing,blockGap:e}};r({style:Object(B.a)(n)});const c=(null===(t=window)||void 0===t?void 0:t.navigator.userAgent)&&window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome ")&&!window.navigator.userAgent.includes("Chromium ");var l;i.current&&c&&(null===(l=i.current.parentNode)||void 0===l||l.replaceChild(i.current,i.current))},units:c,value:null==o||null===(t=o.spacing)||void 0===t?void 0:t.blockGap})),native:null})}function Fe(e){const t=Object(o.getBlockSupport)(e,We);return!!(!0===t||null!=t&&t.margin)}function ze(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!Object(S.a)("spacing.margin"),n=!Ze(e,"margin");return!Fe(e)||t||n}function He(e){var t;const{name:n,attributes:{style:o},setAttributes:r}=e,c=Object(v.__experimentalUseCustomUnits)({availableUnits:Object(S.a)("spacing.units")||["%","px","em","rem","vw"]}),i=Xe(n,"margin"),a=i&&i.some(e=>Ke.includes(e));if(ze(e))return null;return l.Platform.select({web:Object(l.createElement)(l.Fragment,null,Object(l.createElement)(v.__experimentalBoxControl,{values:null==o||null===(t=o.spacing)||void 0===t?void 0:t.margin,onChange:e=>{const t={...o,spacing:{...null==o?void 0:o.spacing,margin:e}};r({style:Object(B.a)(t)})},onChangeShowVisualizer:e=>{const t={...o,visualizers:{margin:e}};r({style:Object(B.a)(t)})},label:Object(j.__)("Margin"),sides:i,units:c,allowReset:!1,splitOnAxis:a})),native:null})}function Ve(e){const t=Object(o.getBlockSupport)(e,We);return!!(!0===t||null!=t&&t.padding)}function Ge(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!Object(S.a)("spacing.padding"),n=!Ze(e,"padding");return!Ve(e)||t||n}function Ue(e){var t;const{name:n,attributes:{style:o},setAttributes:r}=e,c=Object(v.__experimentalUseCustomUnits)({availableUnits:Object(S.a)("spacing.units")||["%","px","em","rem","vw"]}),i=Xe(n,"padding"),a=i&&i.some(e=>Ke.includes(e));if(Ge(e))return null;return l.Platform.select({web:Object(l.createElement)(l.Fragment,null,Object(l.createElement)(v.__experimentalBoxControl,{values:null==o||null===(t=o.spacing)||void 0===t?void 0:t.padding,onChange:e=>{const t={...o,spacing:{...null==o?void 0:o.spacing,padding:e}};r({style:Object(B.a)(t)})},onChangeShowVisualizer:e=>{const t={...o,visualizers:{padding:e}};r({style:Object(B.a)(t)})},label:Object(j.__)("Padding"),sides:i,units:c,allowReset:!1,splitOnAxis:a})),native:null})}const We="spacing",qe=["top","right","bottom","left"],Ke=["vertical","horizontal"];function $e(e){const t=Ae(e),n=Ge(e),r=ze(e),c=Ye(e),i=function(e){if("web"!==l.Platform.OS)return!1;return Me(e)||Ve(e)||Fe(e)}(e.name);if(c||!i)return null;const a=Object(o.getBlockSupport)(e.name,[We,"__experimentalDefaultControls"]),s=e=>t=>{var n;return{...t,style:{...t.style,spacing:{...null===(n=t.style)||void 0===n?void 0:n.spacing,[e]:void 0}}}};return Object(l.createElement)(k.b,{__experimentalGroup:"dimensions"},!n&&Object(l.createElement)(v.__experimentalToolsPanelItem,{hasValue:()=>function(e){var t,n;return void 0!==(null===(t=e.attributes.style)||void 0===t||null===(n=t.spacing)||void 0===n?void 0:n.padding)}(e),label:Object(j.__)("Padding"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:Object(B.a)({...o,spacing:{...null==o?void 0:o.spacing,padding:void 0}})})}(e),resetAllFilter:s("padding"),isShownByDefault:null==a?void 0:a.padding,panelId:e.clientId},Object(l.createElement)(Ue,e)),!r&&Object(l.createElement)(v.__experimentalToolsPanelItem,{hasValue:()=>function(e){var t,n;return void 0!==(null===(t=e.attributes.style)||void 0===t||null===(n=t.spacing)||void 0===n?void 0:n.margin)}(e),label:Object(j.__)("Margin"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:Object(B.a)({...o,spacing:{...null==o?void 0:o.spacing,margin:void 0}})})}(e),resetAllFilter:s("margin"),isShownByDefault:null==a?void 0:a.margin,panelId:e.clientId},Object(l.createElement)(He,e)),!t&&Object(l.createElement)(v.__experimentalToolsPanelItem,{hasValue:()=>function(e){var t,n;return void 0!==(null===(t=e.attributes.style)||void 0===t||null===(n=t.spacing)||void 0===n?void 0:n.blockGap)}(e),label:Object(j.__)("Block spacing"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:{...o,spacing:{...null==o?void 0:o.spacing,blockGap:void 0}}})}(e),resetAllFilter:s("blockGap"),isShownByDefault:null==a?void 0:a.blockGap,panelId:e.clientId},Object(l.createElement)(De,e)))}const Ye=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Ae(e),n=Ge(e),o=ze(e);return t&&n&&o};function Xe(e,t){const n=Object(o.getBlockSupport)(e,We);if(n&&"boolean"!=typeof n[t])return n[t]}function Ze(e,t){const n=Xe(e,t);return!(n&&n.some(e=>qe.includes(e))&&n.some(e=>Ke.includes(e)))||(console.warn(`The ${t} support for the "${e}" block can not be configured to support both axial and arbitrary sides.`),!1)}var Qe=n("HgtZ");const Je=[...Re,"__experimentalBorder","color",We],et=e=>Je.some(t=>Object(o.hasBlockSupport)(e,t));function tt(e){if(Object(s.startsWith)(e,"var:")){return`var(--wp--${e.slice("var:".length).split("|").join("--")})`}return e}function nt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={};return Object.keys(o.__EXPERIMENTAL_STYLE_PROPERTY).forEach(n=>{const r=o.__EXPERIMENTAL_STYLE_PROPERTY[n].value,c=o.__EXPERIMENTAL_STYLE_PROPERTY[n].properties;if(Object(s.has)(e,r)&&"elements"!==Object(s.first)(r)){const o=Object(s.get)(e,r);c&&!Object(s.isString)(o)?Object.entries(c).forEach(e=>{const[n,r]=e,c=Object(s.get)(o,[r]);c&&(t[n]=tt(c))}):t[n]=tt(Object(s.get)(e,r))}}),t}const ot={"__experimentalBorder.__experimentalSkipSerialization":["border"],"color.__experimentalSkipSerialization":["color"],"typography.__experimentalSkipSerialization":["typography"],[We+".__experimentalSkipSerialization"]:["spacing"]},rt={...ot,[""+We]:["spacing.blockGap"]};function ct(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:rt;if(!et(t))return e;let{style:c}=n;return Object(s.forEach)(r,(e,n)=>{Object(o.getBlockSupport)(t,n)&&(c=Object(s.omit)(c,e))}),e.style={...nt(c),...e.style},e}const lt=Object(u.createHigherOrderComponent)(e=>t=>{const n=Object(Qe.a)();return Object(l.createElement)(l.Fragment,null,n&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(te,t),Object(l.createElement)(Ne,t),Object(l.createElement)(F,t),Object(l.createElement)($e,t)),Object(l.createElement)(e,t))},"withToolbarControls"),it=Object(u.createHigherOrderComponent)(e=>t=>{var n,r;const i=null===(n=t.attributes.style)||void 0===n?void 0:n.elements,d="wp-elements-"+Object(u.useInstanceId)(e),b=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(s.map)(t,(t,n)=>{const r=nt(t);return Object(s.isEmpty)(r)?"":[`.${e} ${o.__EXPERIMENTAL_ELEMENTS[n]}{`,...Object(s.map)(r,(e,t)=>`\t${Object(s.kebabCase)(t)}: ${e};`),"}"].join("\n")}).join("\n")}(d,null===(r=t.attributes.style)||void 0===r?void 0:r.elements),p=Object(l.useContext)(C.c.__unstableElementContext);return Object(l.createElement)(l.Fragment,null,i&&p&&Object(l.createPortal)(Object(l.createElement)("style",{dangerouslySetInnerHTML:{__html:b}}),p),Object(l.createElement)(e,Object(c.a)({},t,{className:i?a()(t.className,d):t.className})))});Object(r.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return et(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(r.addFilter)("blocks.getSaveContent.extraProps","core/style/addSaveProps",ct),Object(r.addFilter)("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!et(e))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),ct(o,e,n,ot)},e})),Object(r.addFilter)("editor.BlockEdit","core/style/with-block-controls",lt),Object(r.addFilter)("editor.BlockListBlock","core/editor/with-elements-styles",it);var at=n("fHnH"),st=n("abaT"),ut=n("1uGa");const dt=[];function bt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t={r:[],g:[],b:[],a:[]};return e.forEach(e=>{const n=Object(at.a)(e).toRgb();t.r.push(n.r/255),t.g.push(n.g/255),t.b.push(n.b/255),t.a.push(n.a)}),t}function pt(e){let{selector:t,id:n,values:o}=e;const r=`\n${t} {\n\tfilter: url( #${n} );\n}\n`;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(v.SVG,{xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 0 0",width:"0",height:"0",focusable:"false",role:"none",style:{visibility:"hidden",position:"absolute",left:"-9999px",overflow:"hidden"}},Object(l.createElement)("defs",null,Object(l.createElement)("filter",{id:n},Object(l.createElement)("feColorMatrix",{colorInterpolationFilters:"sRGB",type:"matrix",values:" .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 "}),Object(l.createElement)("feComponentTransfer",{colorInterpolationFilters:"sRGB"},Object(l.createElement)("feFuncR",{type:"table",tableValues:o.r.join(" ")}),Object(l.createElement)("feFuncG",{type:"table",tableValues:o.g.join(" ")}),Object(l.createElement)("feFuncB",{type:"table",tableValues:o.b.join(" ")}),Object(l.createElement)("feFuncA",{type:"table",tableValues:o.a.join(" ")})),Object(l.createElement)("feComposite",{in2:"SourceGraphic",operator:"in"})))),Object(l.createElement)("style",{dangerouslySetInnerHTML:{__html:r}}))}function mt(e){var t;let{attributes:n,setAttributes:o}=e;const r=null==n?void 0:n.style,c=null==r||null===(t=r.color)||void 0===t?void 0:t.duotone,i=Object(S.a)("color.duotone")||dt,a=Object(S.a)("color.palette")||dt,s=!Object(S.a)("color.custom"),u=!Object(S.a)("color.customDuotone")||0===(null==a?void 0:a.length)&&s;return 0===(null==i?void 0:i.length)&&u?null:Object(l.createElement)(d.b,{group:"block",__experimentalShareWithChildBlocks:!0},Object(l.createElement)(ut.a,{duotonePalette:i,colorPalette:a,disableCustomDuotone:u,disableCustomColors:s,value:c,onChange:e=>{const t={...r,color:{...null==r?void 0:r.color,duotone:e}};o({style:t})}}))}Object(at.b)([st.a]);const ft=Object(u.createHigherOrderComponent)(e=>t=>{const n=Object(o.hasBlockSupport)(t.name,"color.__experimentalDuotone");return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(e,t),n&&Object(l.createElement)(mt,t))},"withDuotoneControls");const ht=Object(u.createHigherOrderComponent)(e=>t=>{var n,r,i;const s=Object(o.getBlockSupport)(t.name,"color.__experimentalDuotone"),d=null==t||null===(n=t.attributes)||void 0===n||null===(r=n.style)||void 0===r||null===(i=r.color)||void 0===i?void 0:i.duotone;if(!s||!d)return Object(l.createElement)(e,t);const b="wp-duotone-"+Object(u.useInstanceId)(e),p=function(e,t){const n=e.split(","),o=t.split(","),r=[];return n.forEach(e=>{o.forEach(t=>{r.push(`${e.trim()} ${t.trim()}`)})}),r.join(", ")}(".editor-styles-wrapper ."+b,s),m=a()(null==t?void 0:t.className,b),f=Object(l.useContext)(C.c.__unstableElementContext);return Object(l.createElement)(l.Fragment,null,f&&Object(l.createPortal)(Object(l.createElement)(pt,{selector:p,id:b,values:bt(d)}),f),Object(l.createElement)(e,Object(c.a)({},t,{className:m})))},"withDuotoneStyles");Object(r.addFilter)("blocks.registerBlockType","core/editor/duotone/add-attributes",(function(e){return Object(o.hasBlockSupport)(e,"color.__experimentalDuotone")?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(r.addFilter)("editor.BlockEdit","core/editor/duotone/with-editor-controls",ft),Object(r.addFilter)("editor.BlockListBlock","core/editor/duotone/with-styles",ht);var gt=n("1ZqX"),Ot=n("BhPs"),vt=n("w8sn"),jt=n("PPMp");function kt(e){let{setAttributes:t,attributes:n,name:r}=e;const{layout:c}=n,i=Object(S.a)("layout"),a=Object(gt.useSelect)(e=>{const{getSettings:t}=e(Ot.a);return t().supportsLayout},[]),s=Object(o.getBlockSupport)(r,"__experimentalLayout",{}),{allowSwitching:u,allowEditing:d=!0,allowInheriting:b=!0,default:p}=s;if(!d)return null;const m=c||p||{},{inherit:f=!1,type:h="default"}=m;if("default"===h&&!a)return null;const g=Object(jt.a)(h),O=e=>t({layout:e});return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(k.b,null,Object(l.createElement)(v.PanelBody,{title:Object(j.__)("Layout")},b&&!!i&&Object(l.createElement)(v.ToggleControl,{label:Object(j.__)("Inherit default layout"),checked:!!f,onChange:()=>t({layout:{inherit:!f}})}),!f&&u&&Object(l.createElement)(_t,{type:h,onChange:e=>t({layout:{type:e}})}),!f&&g&&Object(l.createElement)(g.inspectorControls,{layout:m,onChange:O,layoutBlockSupport:s}))),!f&&g&&Object(l.createElement)(g.toolBarControls,{layout:m,onChange:O,layoutBlockSupport:s}))}function _t(e){let{type:t,onChange:n}=e;return Object(l.createElement)(v.ButtonGroup,null,Object(jt.b)().map(e=>{let{name:o,label:r}=e;return Object(l.createElement)(v.Button,{key:o,isPressed:t===o,onClick:()=>n(o)},r)}))}const yt=Object(u.createHigherOrderComponent)(e=>t=>{const{name:n}=t;return[Object(o.hasBlockSupport)(n,"__experimentalLayout")&&Object(l.createElement)(kt,Object(c.a)({key:"layout"},t)),Object(l.createElement)(e,Object(c.a)({key:"edit"},t))]},"withInspectorControls"),Et=Object(u.createHigherOrderComponent)(e=>t=>{const{name:n,attributes:r}=t,i=Object(o.hasBlockSupport)(n,"__experimentalLayout"),s=Object(u.useInstanceId)(e),d=Object(S.a)("layout")||{},b=Object(l.useContext)(C.c.__unstableElementContext),{layout:p}=r,{default:m}=Object(o.getBlockSupport)(n,"__experimentalLayout")||{},f=null!=p&&p.inherit?d:p||m||{},h=a()(null==t?void 0:t.className,{["wp-container-"+s]:i});return Object(l.createElement)(l.Fragment,null,i&&b&&Object(l.createPortal)(Object(l.createElement)(vt.b,{selector:".wp-container-"+s,layout:f}),b),Object(l.createElement)(e,Object(c.a)({},t,{className:h})))});Object(r.addFilter)("blocks.registerBlockType","core/layout/addAttribute",(function(e){return Object(s.has)(e.attributes,["layout","type"])||Object(o.hasBlockSupport)(e,"__experimentalLayout")&&(e.attributes={...e.attributes,layout:{type:"object"}}),e})),Object(r.addFilter)("editor.BlockListBlock","core/editor/layout/with-layout-styles",Et),Object(r.addFilter)("editor.BlockEdit","core/editor/layout/with-inspector-controls",yt);const Ct=[];function St(e){var t;let{borderColor:n,style:o}=e;const r=(null==o?void 0:o.border)||{},c=Object(I.a)("border-color",n);return{className:a()({[c]:!!c,"has-border-color":n||(null==o||null===(t=o.border)||void 0===t?void 0:t.color)})||void 0,style:nt({border:r})}}function wt(e){const t=Object(S.a)("color.palette")||Ct,n=St(e);if(e.borderColor){const o=Object(I.b)(t,e.borderColor);n.style.borderColor=o.color}return n}const It=[];function Bt(e){var t,n,o,r,c,l;const{backgroundColor:i,textColor:s,gradient:u,style:d}=e,b=Object(I.a)("background-color",i),p=Object(I.a)("color",s),m=Object(G.a)(u),f=m||(null==d||null===(t=d.color)||void 0===t?void 0:t.gradient);return{className:a()(p,m,{[b]:!f&&!!b,"has-text-color":s||(null==d||null===(n=d.color)||void 0===n?void 0:n.text),"has-background":i||(null==d||null===(o=d.color)||void 0===o?void 0:o.background)||u||(null==d||null===(r=d.color)||void 0===r?void 0:r.gradient),"has-link-color":null==d||null===(c=d.elements)||void 0===c||null===(l=c.link)||void 0===l?void 0:l.color})||void 0,style:nt({color:(null==d?void 0:d.color)||{}})}}function xt(e){const{backgroundColor:t,textColor:n,gradient:o}=e,r=Object(S.a)("color.palette")||It,c=Object(S.a)("color.gradients")||It,l=Bt(e);if(t){const e=Object(I.b)(r,t);l.style.backgroundColor=e.color}if(o&&(l.style.background=Object(G.e)(c,o)),n){const e=Object(I.b)(r,n);l.style.color=e.color}return l}function Tt(e){const{style:t}=e;return{style:nt({spacing:(null==t?void 0:t.spacing)||{}})}}function Pt(e){const[t,n]=Object(l.useState)(e);return Object(l.useEffect)(()=>{e&&n(e)},[e]),t}var Rt=n("14PQ"),Nt=n("BCrt"),Lt=n("lJLt")},uoCR:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n("GRId");const r=Object(o.createContext)({});function c(e){let{value:t,children:n}=e;const c=Object(o.useContext)(r),l=Object(o.useMemo)(()=>({...c,...t}),[c,t]);return Object(o.createElement)(r.Provider,{value:l,children:n})}t.b=r},ur0x:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return i}));var o=n("GRId");const r={name:"",isSelected:!1},c=Object(o.createContext)(r),{Provider:l}=c;function i(){return Object(o.useContext)(c)}},v5LD:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n("YLtl"),r=n("1ZqX"),c=n("HSyU"),l=n("ur0x"),i=n("BhPs");const a={"color.palette":e=>void 0===e.colors?void 0:e.colors,"color.gradients":e=>void 0===e.gradients?void 0:e.gradients,"color.custom":e=>void 0===e.disableCustomColors?void 0:!e.disableCustomColors,"color.customGradient":e=>void 0===e.disableCustomGradients?void 0:!e.disableCustomGradients,"typography.fontSizes":e=>void 0===e.fontSizes?void 0:e.fontSizes,"typography.customFontSize":e=>void 0===e.disableCustomFontSizes?void 0:!e.disableCustomFontSizes,"typography.lineHeight":e=>e.enableCustomLineHeight,"spacing.units":e=>{if(void 0!==e.enableCustomUnits)return!0===e.enableCustomUnits?["px","em","rem","vh","vw","%"]:e.enableCustomUnits},"spacing.padding":e=>e.enableCustomSpacing},s={"border.customColor":"border.color","border.customStyle":"border.style","border.customWidth":"border.width","typography.customFontStyle":"typography.fontStyle","typography.customFontWeight":"typography.fontWeight","typography.customLetterSpacing":"typography.letterSpacing","typography.customTextDecorations":"typography.textDecoration","typography.customTextTransforms":"typography.textTransform","border.customRadius":"border.radius","spacing.customMargin":"spacing.margin","spacing.customPadding":"spacing.padding","typography.customLineHeight":"typography.lineHeight"};function u(e){const{name:t}=Object(l.c)();return Object(r.useSelect)(n=>{var r;const l=n(i.a).getSettings(),u=(e=>s[e]||e)(e),d="__experimentalFeatures."+u,b=`__experimentalFeatures.blocks.${t}.${u}`,p=null!==(r=Object(o.get)(l,b))&&void 0!==r?r:Object(o.get)(l,d);var m,f;if(void 0!==p)return c.__EXPERIMENTAL_PATHS_WITH_MERGE[u]?null!==(m=null!==(f=p.user)&&void 0!==f?f:p.theme)&&void 0!==m?m:p.default:p;const h=a[u]?a[u](l):void 0;return void 0!==h?h:"typography.dropCap"===u||void 0},[t,e])}},v8Ku:function(e,t){},vIlp:function(e,t,n){"use strict";function o(e,t,n){const o="top"===n||"bottom"===n,{x:r,y:c}=e,l=o?r:c,i=o?c:r,a=o?t.left:t.top,s=o?t.right:t.bottom,u=t[n];let d;return d=l>=a&&l<=s?l:l<s?a:s,Math.sqrt((l-d)**2+(i-u)**2)}function r(e,t){let n,r,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["top","bottom","left","right"];return c.forEach(c=>{const l=o(e,t,c);(void 0===n||l<n)&&(n=l,r=c)}),[n,r]}n.d(t,"a",(function(){return r}))},vSu0:function(e,t,n){"use strict";var o=n("YLtl"),r=n("K9lf"),c=n("eGrx"),l=n.n(c);const i=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;var a=function(e,t){t=t||{};let n=1,o=1;function r(e){const t=e.match(/\n/g);t&&(n+=t.length);const r=e.lastIndexOf("\n");o=~r?e.length-r:o+e.length}function c(){const e={line:n,column:o};return function(t){return t.position=new l(e),f(),t}}function l(e){this.start=e,this.end={line:n,column:o},this.source=t.source}l.prototype.content=e;const a=[];function u(r){const c=new Error(t.source+":"+n+":"+o+": "+r);if(c.reason=r,c.filename=t.source,c.line=n,c.column=o,c.source=e,!t.silent)throw c;a.push(c)}function d(){return m(/^{\s*/)}function b(){return m(/^}/)}function p(){let t;const n=[];for(f(),h(n);e.length&&"}"!==e.charAt(0)&&(t=S()||w());)!1!==t&&(n.push(t),h(n));return n}function m(t){const n=t.exec(e);if(!n)return;const o=n[0];return r(o),e=e.slice(o.length),n}function f(){m(/^\s*/)}function h(e){let t;for(e=e||[];t=g();)!1!==t&&e.push(t);return e}function g(){const t=c();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return;let n=2;for(;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return u("End of comment missing");const l=e.slice(2,n-2);return o+=2,r(l),e=e.slice(n),o+=2,t({type:"comment",comment:l})}function O(){const e=m(/^([^{]+)/);if(e)return s(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"‌")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function v(){const e=c();let t=m(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!t)return;if(t=s(t[0]),!m(/^:\s*/))return u("property missing ':'");const n=m(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),o=e({type:"declaration",property:t.replace(i,""),value:n?s(n[0]).replace(i,""):""});return m(/^[;\s]*/),o}function j(){const e=[];if(!d())return u("missing '{'");let t;for(h(e);t=v();)!1!==t&&(e.push(t),h(e));return b()?e:u("missing '}'")}function k(){let e;const t=[],n=c();for(;e=m(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),m(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:j()})}const _=C("import"),y=C("charset"),E=C("namespace");function C(e){const t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){const n=c(),o=m(t);if(!o)return;const r={type:e};return r[e]=o[1].trim(),n(r)}}function S(){if("@"===e[0])return function(){const e=c();let t=m(/^@([-\w]+)?keyframes\s*/);if(!t)return;const n=t[1];if(t=m(/^([-\w]+)\s*/),!t)return u("@keyframes missing name");const o=t[1];if(!d())return u("@keyframes missing '{'");let r,l=h();for(;r=k();)l.push(r),l=l.concat(h());return b()?e({type:"keyframes",name:o,vendor:n,keyframes:l}):u("@keyframes missing '}'")}()||function(){const e=c(),t=m(/^@media *([^{]+)/);if(!t)return;const n=s(t[1]);if(!d())return u("@media missing '{'");const o=h().concat(p());return b()?e({type:"media",media:n,rules:o}):u("@media missing '}'")}()||function(){const e=c(),t=m(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:s(t[1]),media:s(t[2])})}()||function(){const e=c(),t=m(/^@supports *([^{]+)/);if(!t)return;const n=s(t[1]);if(!d())return u("@supports missing '{'");const o=h().concat(p());return b()?e({type:"supports",supports:n,rules:o}):u("@supports missing '}'")}()||_()||y()||E()||function(){const e=c(),t=m(/^@([-\w]+)?document *([^{]+)/);if(!t)return;const n=s(t[1]),o=s(t[2]);if(!d())return u("@document missing '{'");const r=h().concat(p());return b()?e({type:"document",document:o,vendor:n,rules:r}):u("@document missing '}'")}()||function(){const e=c();if(!m(/^@page */))return;const t=O()||[];if(!d())return u("@page missing '{'");let n,o=h();for(;n=v();)o.push(n),o=o.concat(h());return b()?e({type:"page",selectors:t,declarations:o}):u("@page missing '}'")}()||function(){const e=c();if(!m(/^@host\s*/))return;if(!d())return u("@host missing '{'");const t=h().concat(p());return b()?e({type:"host",rules:t}):u("@host missing '}'")}()||function(){const e=c();if(!m(/^@font-face\s*/))return;if(!d())return u("@font-face missing '{'");let t,n=h();for(;t=v();)n.push(t),n=n.concat(h());return b()?e({type:"font-face",declarations:n}):u("@font-face missing '}'")}()}function w(){const e=c(),t=O();return t?(h(),e({type:"rule",selectors:t,declarations:j()})):u("selector missing")}return function e(t,n){const o=t&&"string"==typeof t.type,r=o?t:n;for(const n in t){const o=t[n];Array.isArray(o)?o.forEach((function(t){e(t,r)})):o&&"object"==typeof o&&e(o,r)}o&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return t}(function(){const e=p();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:a}}}())};function s(e){return e?e.replace(/^\s+|\s+$/g,""):""}var u=n("P7XM"),d=n.n(u),b=p;function p(e){this.options=e||{}}p.prototype.emit=function(e){return e},p.prototype.visit=function(e){return this[e.type](e)},p.prototype.mapVisit=function(e,t){let n="";t=t||"";for(let o=0,r=e.length;o<r;o++)n+=this.visit(e[o]),t&&o<r-1&&(n+=this.emit(t));return n};var m=f;function f(e){b.call(this,e)}d()(f,b),f.prototype.compile=function(e){return e.stylesheet.rules.map(this.visit,this).join("")},f.prototype.comment=function(e){return this.emit("",e.position)},f.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},f.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},f.prototype.document=function(e){const t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},f.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},f.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},f.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},f.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit("{")+this.mapVisit(e.keyframes)+this.emit("}")},f.prototype.keyframe=function(e){const t=e.declarations;return this.emit(e.values.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}")},f.prototype.page=function(e){const t=e.selectors.length?e.selectors.join(", "):"";return this.emit("@page "+t,e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},f.prototype["font-face"]=function(e){return this.emit("@font-face",e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},f.prototype.host=function(e){return this.emit("@host",e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},f.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},f.prototype.rule=function(e){const t=e.declarations;return t.length?this.emit(e.selectors.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}"):""},f.prototype.declaration=function(e){return this.emit(e.property+":"+e.value,e.position)+this.emit(";")};var h=g;function g(e){e=e||{},b.call(this,e),this.indentation=e.indent}d()(g,b),g.prototype.compile=function(e){return this.stylesheet(e)},g.prototype.stylesheet=function(e){return this.mapVisit(e.stylesheet.rules,"\n\n")},g.prototype.comment=function(e){return this.emit(this.indent()+"/*"+e.comment+"*/",e.position)},g.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},g.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},g.prototype.document=function(e){const t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},g.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},g.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},g.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},g.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.keyframes,"\n")+this.emit(this.indent(-1)+"}")},g.prototype.keyframe=function(e){const t=e.declarations;return this.emit(this.indent())+this.emit(e.values.join(", "),e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(t,"\n")+this.emit(this.indent(-1)+"\n"+this.indent()+"}\n")},g.prototype.page=function(e){const t=e.selectors.length?e.selectors.join(", ")+" ":"";return this.emit("@page "+t,e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},g.prototype["font-face"]=function(e){return this.emit("@font-face ",e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},g.prototype.host=function(e){return this.emit("@host",e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},g.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},g.prototype.rule=function(e){const t=this.indent(),n=e.declarations;return n.length?this.emit(e.selectors.map((function(e){return t+e})).join(",\n"),e.position)+this.emit(" {\n")+this.emit(this.indent(1))+this.mapVisit(n,"\n")+this.emit(this.indent(-1))+this.emit("\n"+this.indent()+"}"):""},g.prototype.declaration=function(e){return this.emit(this.indent())+this.emit(e.property+": "+e.value,e.position)+this.emit(";")},g.prototype.indent=function(e){return this.level=this.level||1,null!==e?(this.level+=e,""):Array(this.level).join(this.indentation||" ")};var O=function(e,t){try{const r=a(e),c=l.a.map(r,(function(e){if(!e)return e;const n=t(e);return this.update(n)}));return n=c,((o=o||{}).compress?new m(o):new h(o)).compile(n)}catch(e){return console.warn("Error while traversing the CSS: "+e),null}var n,o};function v(e){return 0!==e.value.indexOf("data:")&&0!==e.value.indexOf("#")&&(t=e.value,!/^\/(?!\/)/.test(t)&&!function(e){return/^(?:https?:)?\/\//.test(e)}(e.value));var t}function j(e,t){return new URL(e,t).toString()}var k=e=>t=>{if("declaration"===t.type){const c=function(e){const t=/url\((\s*)(['"]?)(.+?)\2(\s*)\)/g;let n;const o=[];for(;null!==(n=t.exec(e));){const e={source:n[0],before:n[1],quote:n[2],value:n[3],after:n[4]};v(e)&&o.push(e)}return o}(t.value).map((r=e,e=>({...e,newUrl:"url("+e.before+e.quote+j(e.value,r)+e.quote+e.after+")"})));return{...t,value:(n=t.value,o=c,o.forEach(e=>{n=n.replace(e.source,e.newUrl)}),n)}}var n,o,r;return t};const _=/^(body|html|:root).*$/;var y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return n=>{const o=n=>t.includes(n.trim())?n:n.match(_)?n.replace(/^(body|html|:root)/,e):e+" "+n;return"rule"===n.type?{...n,selectors:n.selectors.map(o)}:n}};t.a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(o.map)(e,e=>{let{css:n,baseURL:o,__experimentalNoWrapper:c=!1}=e;const l=[];return t&&!c&&l.push(y(t)),o&&l.push(k(o)),l.length?O(n,Object(r.compose)(l)):n})}},vtO0:function(e,t,n){"use strict";n.d(t,"a",(function(){return j})),n.d(t,"b",(function(){return k}));var o=n("wx14"),r=n("GRId"),c=n("TSYQ"),l=n.n(c),i=n("l3Sj"),a=n("tI+e"),s=n("Tqx9");var u=Object(r.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(s.Path,{d:"M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"}));var d=Object(r.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(s.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),b=n("EpZT");var p=Object(r.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(s.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"})),m=n("beZb"),f=n("XNw2"),h=n("K/rC");const g={none:{icon:u,title:Object(i.__)("None")},left:{icon:d,title:Object(i.__)("Align left")},center:{icon:b.a,title:Object(i.__)("Align center")},right:{icon:p,title:Object(i.__)("Align right")},wide:{icon:m.a,title:Object(i.__)("Wide width")},full:{icon:f.a,title:Object(i.__)("Full width")}},O={isAlternate:!0};var v=function(e){let{value:t,onChange:n,controls:c,isToolbar:s,isCollapsed:u=!0}=e;const d=Object(h.a)(c);if(!!!d.length)return null;function b(e){n([t,"none"].includes(e)?void 0:e)}const p=g[t],m=g.none,f=s?a.ToolbarGroup:a.ToolbarDropdownMenu,v={popoverProps:O,icon:p?p.icon:m.icon,label:Object(i.__)("Align"),toggleProps:{describedBy:Object(i.__)("Change alignment")}},j=s||r.Platform.isNative?{isCollapsed:s?u:void 0,controls:d.map(e=>{let{name:n}=e;return{...g[n],isActive:t===n||!t&&"none"===n,role:u?"menuitemradio":void 0,onClick:()=>b(n)}})}:{children:e=>{let{onClose:n}=e;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(a.MenuGroup,{className:"block-editor-block-alignment-control__menu-group"},d.map(e=>{let{name:o,info:c}=e;const{icon:i,title:s}=g[o],u=o===t||!t&&"none"===o;return Object(r.createElement)(a.MenuItem,{key:o,icon:i,iconPosition:"left",className:l()("components-dropdown-menu__menu-item",{"is-active":u}),isSelected:u,onClick:()=>{b(o),n()},role:"menuitemradio",info:c},s)})))}};return Object(r.createElement)(f,Object(o.a)({},v,j))};function j(e){return Object(r.createElement)(v,Object(o.a)({},e,{isToolbar:!1}))}function k(e){return Object(r.createElement)(v,Object(o.a)({},e,{isToolbar:!0}))}},w8sn:function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return u}));var o=n("wx14"),r=n("GRId"),c=n("PPMp");const l={type:"default"},i=Object(r.createContext)(l),a=i.Provider;function s(){return Object(r.useContext)(i)}function u(e){let{layout:t={},...n}=e;const l=Object(c.a)(t.type);return l?Object(r.createElement)(l.save,Object(o.a)({layout:t},n)):null}},w95h:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=c},wC17:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n("1ZqX"),r=n("HSyU"),c=n("BhPs");function l(e){return Object(o.useSelect)(t=>{if(!e)return null;const{getBlockName:n,getBlockAttributes:o}=t(c.a),{getBlockType:l,getActiveBlockVariation:i}=t(r.store),a=n(e),s=l(a);if(!s)return null;const u=o(e),d=i(a,u),b={title:s.title,icon:s.icon,description:s.description,anchor:null==u?void 0:u.anchor};return d?{title:d.title||s.title,icon:d.icon||s.icon,description:d.description||s.description}:b},[e])}},wJiJ:function(e,t,n){e.exports=n("1K8p")},weEX:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("GRId"),r=n("l3Sj"),c=n("tI+e"),l=n("RxS6");function i(e){let{value:t,onChange:n}=e;const i=function(e){return void 0!==e&&""!==e}(t),a=i?t:"";return Object(o.createElement)("div",{className:"block-editor-line-height-control"},Object(o.createElement)(c.TextControl,{autoComplete:"off",onKeyDown:e=>{const{keyCode:t}=e;t!==l.ZERO||i||(e.preventDefault(),n("0"))},onChange:e=>{if(i)return void n(e);let t=e;switch(e){case"0.1":t=1.6;break;case"0":t=1.4}n(t)},label:Object(r.__)("Line height"),placeholder:1.5,step:.1,type:"number",value:a,min:0}))}},"wiT/":function(e,t,n){"use strict";var o=n("GRId"),r=n("tI+e"),c=n("GOly");t.a=function(e){let{children:t}=e;const n=Object(r.__unstableUseCompositeState)({shift:!0,wrap:"horizontal"});return Object(o.createElement)(c.a.Provider,{value:n},t)}},wx14:function(e,t,n){"use strict";function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return o}))},wzfx:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"}));t.a=c},xBDm:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("GRId"),r=n("tI+e"),c=n("l3Sj"),l=n("v5LD");function i(e){let{value:t,onChange:n,__unstableInputWidth:i="60px"}=e;const a=Object(r.__experimentalUseCustomUnits)({availableUnits:Object(l.a)("spacing.units")||["px","em","rem"],defaultValues:{px:"2",em:".2",rem:".2"}});return Object(o.createElement)(r.__experimentalUnitControl,{label:Object(c.__)("Letter-spacing"),value:t,__unstableInputWidth:i,units:a,onChange:n})}},xCFn:function(e,t,n){"use strict";n.d(t,"a",(function(){return T}));var o=n("GRId"),r=n("YLtl"),c=n("TSYQ"),l=n.n(c),i=n("HSyU"),a=n("tI+e"),s=n("1ZqX"),u=n("hF7m"),d=n("K9lf"),b=n("1CF3"),p=n("wx14"),m=n("xN+R"),f=n("RxS6"),h=n("gdqT"),g=n("l3Sj"),O=n("f8JO"),v=n("7SSY"),j=n("BhPs"),k=n("ZAjO"),_=n("wC17");var y=function(e){let{clientId:t,rootClientId:n,blockElement:r}=e;const c=Object(_.a)(t),u=Object(s.useSelect)(e=>{var o;const{getBlock:r,getBlockIndex:c,hasBlockMovingClientId:l,getBlockListSettings:i}=e(j.a),a=c(t,n),{name:s,attributes:u}=r(t);return{index:a,name:s,attributes:u,blockMovingMode:l(),orientation:null===(o=i(n))||void 0===o?void 0:o.orientation}},[t,n]),{index:d,name:y,attributes:E,blockMovingMode:C,orientation:S}=u,{setNavigationMode:w,removeBlock:I}=Object(s.useDispatch)(j.a),B=Object(o.useRef)(),x=Object(i.getBlockType)(y),T=Object(i.__experimentalGetAccessibleBlockLabel)(x,E,d+1,S);Object(o.useEffect)(()=>{B.current.focus(),Object(h.speak)(T)},[T]);const{hasBlockMovingClientId:P,getBlockIndex:R,getBlockRootClientId:N,getClientIdsOfDescendants:L,getSelectedBlockClientId:M,getMultiSelectedBlocksEndClientId:A,getPreviousBlockClientId:D,getNextBlockClientId:F}=Object(s.useSelect)(j.a),{selectBlock:z,clearSelectedBlock:H,setBlockMovingClientId:V,moveBlockToPosition:G}=Object(s.useDispatch)(j.a),U=l()("block-editor-block-list__block-selection-button",{"is-block-moving-mode":!!C}),W=Object(g.__)("Drag");return Object(o.createElement)("div",{className:U},Object(o.createElement)(a.Flex,{justify:"center",className:"block-editor-block-list__block-selection-button__content"},Object(o.createElement)(a.FlexItem,null,Object(o.createElement)(v.a,{icon:null==c?void 0:c.icon,showColors:!0})),Object(o.createElement)(a.FlexItem,null,Object(o.createElement)(k.a,{clientIds:[t]},e=>Object(o.createElement)(a.Button,Object(p.a)({icon:m.a,className:"block-selection-button_drag-handle","aria-hidden":"true",label:W,tabIndex:"-1"},e)))),Object(o.createElement)(a.FlexItem,null,Object(o.createElement)(a.Button,{ref:B,onClick:()=>w(!1),onKeyDown:function(e){const{keyCode:n}=e,o=n===f.UP,c=n===f.DOWN,l=n===f.LEFT,i=n===f.RIGHT,a=n===f.TAB,s=n===f.ESCAPE,u=n===f.ENTER,d=n===f.SPACE,p=e.shiftKey;if(n===f.BACKSPACE||n===f.DELETE)return I(t),void e.preventDefault();const m=M(),h=A(),g=D(h||m),O=F(h||m),v=a&&p||o,j=a&&!p||c,k=l,_=i;let y;if(v)y=g;else if(j)y=O;else if(k){var E;y=null!==(E=N(m))&&void 0!==E?E:m}else if(_){var C;y=null!==(C=L([m])[0])&&void 0!==C?C:m}const S=P();if(s&&S&&!e.defaultPrevented&&(V(null),e.preventDefault()),(u||d)&&S){const e=N(S),t=N(m),n=R(S,e);let o=R(m,t);n<o&&e===t&&(o-=1),G(S,e,t,o),z(S),V(null)}if(j||v||k||_)if(y)e.preventDefault(),z(y);else if(a&&m){let t;j?(t=b.focus.tabbable.findNext(r),t||(t=r.ownerDocument.defaultView.frameElement,t=b.focus.tabbable.findNext(t))):t=b.focus.tabbable.findPrevious(r),t&&(e.preventDefault(),t.focus(),H())}},label:T,className:"block-selection-button_select-button"},Object(o.createElement)(O.a,{clientId:t})))))},E=n("JUfZ"),C=n("qrxh"),S=n("PKbb"),w=n("2z9l");function I(e){const{isNavigationMode:t,isMultiSelecting:n,hasMultiSelection:o,isTyping:r,isCaretWithinFormattedText:c,getSettings:l,getLastMultiSelectedBlockClientId:i}=e(j.a);return{isNavigationMode:t(),isMultiSelecting:n(),isTyping:r(),isCaretWithinFormattedText:c(),hasMultiSelection:o(),hasFixedToolbar:l().hasFixedToolbar,lastClientId:i()}}function B(e){let{clientId:t,rootClientId:n,isValid:r,isEmptyDefaultBlock:c,capturingClientId:i,__unstablePopoverSlot:p,__unstableContentRef:m}=e;const{isNavigationMode:f,isMultiSelecting:h,isTyping:g,isCaretWithinFormattedText:O,hasMultiSelection:v,hasFixedToolbar:k,lastClientId:_}=Object(s.useSelect)(I,[]),B=Object(s.useSelect)(e=>{const{isBlockInsertionPointVisible:n,getBlockInsertionPoint:o,getBlockOrder:r}=e(j.a);if(!n())return!1;const c=o();return r(c.rootClientId)[c.index]===t},[t]),x=Object(d.useViewportMatch)("medium"),[T,P]=Object(o.useState)(!1),[R,N]=Object(o.useState)(!1),{stopTyping:L}=Object(s.useDispatch)(j.a),M=!g&&!f&&c&&r,A=f,D=!f&&!k&&x&&!M&&!h&&(!g||O),F=!(f||D||k||c);Object(u.useShortcut)("core/block-editor/focus-toolbar",()=>{P(!0),L(!0)},{isDisabled:!F}),Object(o.useEffect)(()=>{D||P(!1)},[D]);const z=Object(o.useRef)(),H=Object(S.a)(t),V=Object(S.a)(_),G=Object(S.a)(i),U=Object(w.a)(m);if(!(A||D||T||M))return null;let W=H;if(!W)return null;i&&(W=G);let q=W;if(v){if(!V)return null;q={top:W,bottom:V}}const K=M?"top left right":"top right left",{ownerDocument:$}=W,Y=M?void 0:$.defaultView.frameElement||Object(b.getScrollContainer)(W)||$.body;return Object(o.createElement)(a.Popover,{ref:U,noArrow:!0,animate:!1,position:K,focusOnMount:!1,anchorRef:q,className:l()("block-editor-block-list__block-popover",{"is-insertion-point-visible":B}),__unstableStickyBoundaryElement:Y,__unstableSlotName:p||null,__unstableBoundaryParent:!0,__unstableObserveElement:W,shouldAnchorIncludePadding:!0,__unstableEditorCanvasWrapper:null==m?void 0:m.current},(D||T)&&Object(o.createElement)("div",{onFocus:function(){N(!0)},onBlur:function(){N(!1)},tabIndex:-1,className:l()("block-editor-block-list__block-popover-inserter",{"is-visible":R})},Object(o.createElement)(C.a,{clientId:t,rootClientId:n,__experimentalIsQuick:!0})),(D||T)&&Object(o.createElement)(E.a,{focusOnMount:T,__experimentalInitialIndex:z.current,__experimentalOnIndexChange:e=>{z.current=e},key:t}),A&&Object(o.createElement)(y,{clientId:t,rootClientId:n,blockElement:W}),M&&Object(o.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},Object(o.createElement)(C.a,{position:"bottom right",rootClientId:n,clientId:t,__experimentalIsQuick:!0})))}function x(e){const{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:n,getBlockRootClientId:o,getBlock:c,getBlockParents:l,__experimentalGetBlockListSettingsForBlocks:a}=e(j.a),s=t()||n();if(!s)return;const{name:u,attributes:d={},isValid:b}=c(s)||{},p=l(s),m=a(p),f=Object(r.find)(p,e=>{var t;return null===(t=m[e])||void 0===t?void 0:t.__experimentalCaptureToolbars});return{clientId:s,rootClientId:o(s),name:u,isValid:b,isEmptyDefaultBlock:u&&Object(i.isUnmodifiedDefaultBlock)({name:u,attributes:d}),capturingClientId:f}}function T(e){let{__unstablePopoverSlot:t,__unstableContentRef:n}=e;const r=Object(s.useSelect)(x,[]);if(!r)return null;const{clientId:c,rootClientId:l,name:i,isValid:a,isEmptyDefaultBlock:u,capturingClientId:d}=r;return i?Object(o.createElement)(B,{clientId:c,rootClientId:l,isValid:a,isEmptyDefaultBlock:u,capturingClientId:d,__unstablePopoverSlot:t,__unstableContentRef:n}):null}},"xN+R":function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(o.createElement)(r.Path,{d:"M5 4h2V2H5v2zm6-2v2h2V2h-2zm-6 8h2V8H5v2zm6 0h2V8h-2v2zm-6 6h2v-2H5v2zm6 0h2v-2h-2v2z"}));t.a=c},xTGt:function(e,t){e.exports=window.wp.blob},xZzQ:function(e,t,n){"use strict";var o=n("GRId"),r=n("tI+e"),c=n("l3Sj"),l=n("1ZqX");const i=[Object(o.createInterpolateElement)(Object(c.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:Object(o.createElement)("kbd",null)}),Object(o.createInterpolateElement)(Object(c.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:Object(o.createElement)("kbd",null)}),Object(o.createInterpolateElement)(Object(c.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:Object(o.createElement)("kbd",null)}),Object(c.__)("Drag files into the editor to automatically insert media blocks."),Object(c.__)("Change a block's type by pressing the block icon on the toolbar.")];var a=function(){const[e]=Object(o.useState)(Math.floor(Math.random()*i.length));return Object(o.createElement)(r.Tip,null,i[e])},s=n("HSyU"),u=n("GvwK"),d=n("REKd");var b=function(e){var t,n;let{item:r}=e;const{name:l,title:i,icon:a,description:b,initialAttributes:p}=r,m=Object(s.getBlockType)(l),f=Object(s.isReusableBlock)(r);return Object(o.createElement)("div",{className:"block-editor-inserter__preview-container"},Object(o.createElement)("div",{className:"block-editor-inserter__preview"},f||null!=m&&m.example?Object(o.createElement)("div",{className:"block-editor-inserter__preview-content"},Object(o.createElement)(d.a,{__experimentalPadding:16,viewportWidth:null!==(t=null===(n=m.example)||void 0===n?void 0:n.viewportWidth)&&void 0!==t?t:500,blocks:m.example?Object(s.getBlockFromExample)(r.name,{attributes:{...m.example.attributes,...p},innerBlocks:m.example.innerBlocks}):Object(s.createBlock)(l,p)})):Object(o.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},Object(c.__)("No Preview Available."))),!f&&Object(o.createElement)(u.a,{title:i,icon:a,description:b}))},p=n("YLtl"),m=n("K9lf"),f=n("6ZVF"),h=n("mdLt"),g=n("+G0a"),O=n("wiT/");const v=[];var j=function(e){let{rootClientId:t,onInsert:n,onHover:r,showMostUsedBlocks:l}=e;const[i,a,s,u]=Object(g.a)(t,n),d=Object(o.useMemo)(()=>Object(p.orderBy)(i,["frecency"],["desc"]).slice(0,6),[i]),b=Object(o.useMemo)(()=>i.filter(e=>!e.category),[i]),j=Object(o.useMemo)(()=>Object(p.flow)(e=>e.filter(e=>e.category&&"reusable"!==e.category),e=>Object(p.groupBy)(e,"category"))(i),[i]),k=Object(o.useMemo)(()=>{const e={...s};return Object.keys(s).forEach(t=>{e[t]=i.filter(e=>(e=>e.name.split("/")[0])(e)===t),0===e[t].length&&delete e[t]}),e},[i,s]);Object(o.useEffect)(()=>()=>r(null),[]);const _=Object(m.useAsyncList)(a),y=a.length===_.length,E=Object(o.useMemo)(()=>Object.entries(s),[s]),C=Object(m.useAsyncList)(y?E:v);return Object(o.createElement)(O.a,null,Object(o.createElement)("div",null,l&&!!d.length&&Object(o.createElement)(h.a,{title:Object(c._x)("Most used","blocks")},Object(o.createElement)(f.a,{items:d,onSelect:u,onHover:r,label:Object(c._x)("Most used","blocks")})),Object(p.map)(_,e=>{const t=j[e.slug];return t&&t.length?Object(o.createElement)(h.a,{key:e.slug,title:e.title,icon:e.icon},Object(o.createElement)(f.a,{items:t,onSelect:u,onHover:r,label:e.title})):null}),y&&b.length>0&&Object(o.createElement)(h.a,{className:"block-editor-inserter__uncategorized-blocks-panel",title:Object(c.__)("Uncategorized")},Object(o.createElement)(f.a,{items:b,onSelect:u,onHover:r,label:Object(c.__)("Uncategorized")})),Object(p.map)(C,e=>{let[t,n]=e;const c=k[t];return c&&c.length?Object(o.createElement)(h.a,{key:t,title:n.title,icon:n.icon},Object(o.createElement)(f.a,{items:c,onSelect:u,onHover:r,label:n.title})):null})))},k=n("TSYQ"),_=n.n(k);var y=function(e){let{selectedCategory:t,patternCategories:n,onClickCategory:l,openPatternExplorer:i}=e;const a=Object(m.useViewportMatch)("medium","<"),s=_()("block-editor-inserter__panel-header","block-editor-inserter__panel-header-patterns");return Object(o.createElement)(r.Flex,{justify:"space-between",align:"start",gap:"4",className:s},Object(o.createElement)(r.FlexItem,{isBlock:!0},Object(o.createElement)(r.SelectControl,{className:"block-editor-inserter__panel-dropdown",label:Object(c.__)("Filter patterns"),hideLabelFromVision:!0,value:t.name,onChange:e=>{l(n.find(t=>e===t.name))},onBlur:e=>{null!=e&&e.relatedTarget||e.stopPropagation()},options:(()=>{const e=[];return n.map(t=>e.push({value:t.name,label:t.label})),e})()})),!a&&Object(o.createElement)(r.FlexItem,null,Object(o.createElement)(r.Button,{variant:"secondary",className:"block-editor-inserter__patterns-explorer-expand",label:Object(c.__)("Explore all patterns"),onClick:()=>i()},Object(c._x)("Explore","Label for showing all block patterns"))))},E=n("nQUx"),C=n("Fmc1");function S(e){let{selectedCategory:t,patternCategories:n,onClickCategory:c}=e;const l="block-editor-block-patterns-explorer__sidebar";return Object(o.createElement)("div",{className:l+"__categories-list"},n.map(e=>{let{name:n,label:i}=e;return Object(o.createElement)(r.Button,{key:n,label:i,className:l+"__categories-list__item",isPressed:t===n,onClick:()=>{c(n)}},i)}))}function w(e){let{filterValue:t,setFilterValue:n}=e;return Object(o.createElement)("div",{className:"block-editor-block-patterns-explorer__search"},Object(o.createElement)(r.SearchControl,{onChange:n,value:t,label:Object(c.__)("Search for patterns"),placeholder:Object(c.__)("Search")}))}var I=function(e){let{selectedCategory:t,patternCategories:n,onClickCategory:r,filterValue:c,setFilterValue:l}=e;return Object(o.createElement)("div",{className:"block-editor-block-patterns-explorer__sidebar"},Object(o.createElement)(w,{filterValue:c,setFilterValue:l}),!c&&Object(o.createElement)(S,{selectedCategory:t,patternCategories:n,onClickCategory:r}))},B=n("gdqT"),x=n("LolH"),T=n("AORF"),P=n("pOGT");function R(e){let{filterValue:t,filteredBlockPatternsLength:n}=e;return t?Object(o.createElement)(r.__experimentalHeading,{level:2,lineHeight:"48px",className:"block-editor-block-patterns-explorer__search-results-count"},Object(c.sprintf)(Object(c._n)('%1$d pattern found for "%2$s"','%1$d patterns found for "%2$s"',n),n,t)):null}var N=function(e){let{filterValue:t,selectedCategory:n,patternCategories:r}=e;const l=Object(m.useDebounce)(B.speak,500),[i,a]=Object(T.a)({shouldFocusBlock:!0}),[s,,u]=Object(E.a)(a,i),d=Object(o.useMemo)(()=>r.map(e=>e.name),[r]),b=Object(o.useMemo)(()=>t?Object(P.b)(s,t):s.filter(e=>{var t,o;return"uncategorized"===n?!(null!==(t=e.categories)&&void 0!==t&&t.length)||e.categories.every(e=>!d.includes(e)):null===(o=e.categories)||void 0===o?void 0:o.includes(n)}),[t,n,s]);Object(o.useEffect)(()=>{if(!t)return;const e=b.length,n=Object(c.sprintf)(Object(c._n)("%d result found.","%d results found.",e),e);l(n)},[t,l]);const p=Object(m.useAsyncList)(b,{step:2}),f=!(null==b||!b.length);return Object(o.createElement)("div",{className:"block-editor-block-patterns-explorer__list"},f&&Object(o.createElement)(R,{filterValue:t,filteredBlockPatternsLength:b.length}),Object(o.createElement)(O.a,null,!f&&Object(o.createElement)(x.a,null),f&&Object(o.createElement)(C.a,{shownPatterns:p,blockPatterns:b,onClickPattern:u,isDraggable:!1})))};function L(e){let{initialCategory:t,patternCategories:n}=e;const[r,c]=Object(o.useState)(""),[l,i]=Object(o.useState)(null==t?void 0:t.name);return Object(o.createElement)("div",{className:"block-editor-block-patterns-explorer"},Object(o.createElement)(I,{selectedCategory:l,patternCategories:n,onClickCategory:i,filterValue:r,setFilterValue:c}),Object(o.createElement)(N,{filterValue:r,selectedCategory:l,patternCategories:n}))}var M=function(e){let{onModalClose:t,...n}=e;return Object(o.createElement)(r.Modal,{title:Object(c.__)("Patterns"),closeLabel:Object(c.__)("Close"),onRequestClose:t,isFullScreen:!0},Object(o.createElement)(L,n))};function A(e){let{rootClientId:t,onInsert:n,selectedCategory:r,populatedCategories:c}=e;const[l,,i]=Object(E.a)(n,t),a=Object(o.useCallback)(e=>{var t;if(null===(t=e.categories)||void 0===t||!t.length)return 1/0;const n=c.reduce((e,t,n)=>{let{name:o}=t;return e[o]=n,e},{});return Math.min(...e.categories.map(e=>void 0!==n[e]?n[e]:1/0))},[c]),s=Object(o.useMemo)(()=>l.filter(e=>{var t;return"uncategorized"===r.name?a(e)===1/0:null===(t=e.categories)||void 0===t?void 0:t.includes(r.name)}),[l,r]),u=Object(o.useMemo)(()=>s.sort((e,t)=>a(e)-a(t)),[s,a]),d=Object(m.useAsyncList)(u);return s.length?Object(o.createElement)("div",{className:"block-editor-inserter__panel-content"},Object(o.createElement)(C.a,{shownPatterns:d,blockPatterns:s,onClickPattern:i,label:r.label,orientation:"vertical",isDraggable:!0})):null}var D=function(e){let{rootClientId:t,onInsert:n,onClickCategory:r,selectedCategory:l}=e;const[i,a]=Object(o.useState)(!1),[s,u]=Object(E.a)(),d=Object(o.useCallback)(e=>!(!e.categories||!e.categories.length)&&e.categories.some(e=>u.some(t=>t.name===e)),[u]),b=Object(o.useMemo)(()=>{const e=u.filter(e=>s.some(t=>{var n;return null===(n=t.categories)||void 0===n?void 0:n.includes(e.name)})).sort((e,t)=>{let{name:n}=e,{name:o}=t;return[n,o].includes("featured")?"featured"===n?-1:1:0});return s.some(e=>!d(e))&&!e.find(e=>"uncategorized"===e.name)&&e.push({name:"uncategorized",label:Object(c._x)("Uncategorized")}),e},[s,u]),p=l||b[0];return Object(o.createElement)(o.Fragment,null,!i&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)(y,{selectedCategory:p,patternCategories:b,onClickCategory:r,openPatternExplorer:()=>a(!0)}),Object(o.createElement)(A,{rootClientId:t,onInsert:n,selectedCategory:p,populatedCategories:b})),i&&Object(o.createElement)(M,{initialCategory:p,patternCategories:b,onModalClose:()=>a(!1)}))},F=n("Mmq9");function z(e){let{onHover:t,onInsert:n,rootClientId:r}=e;const[l,,,i]=Object(g.a)(r,n),a=Object(o.useMemo)(()=>l.filter(e=>{let{category:t}=e;return"reusable"===t}),[l]);return 0===a.length?Object(o.createElement)(x.a,null):Object(o.createElement)(h.a,{title:Object(c.__)("Reusable blocks")},Object(o.createElement)(f.a,{items:a,onSelect:i,onHover:t,label:Object(c.__)("Reusable blocks")}))}var H=function(e){let{rootClientId:t,onInsert:n,onHover:r}=e;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(z,{onHover:r,onInsert:n,rootClientId:t}),Object(o.createElement)("div",{className:"block-editor-inserter__manage-reusable-blocks-container"},Object(o.createElement)("a",{className:"block-editor-inserter__manage-reusable-blocks",href:Object(F.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(c.__)("Manage Reusable blocks"))))},V=n("Wg7J");const G={name:"blocks",title:Object(c.__)("Blocks")},U={name:"patterns",title:Object(c.__)("Patterns")},W={name:"reusable",title:Object(c.__)("Reusable")};var q=function(e){let{children:t,showPatterns:n=!1,showReusableBlocks:c=!1,onSelect:l}=e;const i=Object(o.useMemo)(()=>{const e=[G];return n&&e.push(U),c&&e.push(W),e},[G,n,U,c,W]);return Object(o.createElement)(r.TabPanel,{className:"block-editor-inserter__tabs",tabs:i,onSelect:l},t)},K=n("BhPs");t.a=function(e){let{rootClientId:t,clientId:n,isAppender:i,__experimentalInsertionIndex:s,onSelect:u,showInserterHelpPanel:d,showMostUsedBlocks:p,__experimentalFilterValue:m="",shouldFocusBlock:f=!0}=e;const[h,g]=Object(o.useState)(m),[O,v]=Object(o.useState)(null),[k,_]=Object(o.useState)(null),[y,E,C]=Object(T.a)({rootClientId:t,clientId:n,isAppender:i,insertionIndex:s,shouldFocusBlock:f}),{showPatterns:S,hasReusableBlocks:w}=Object(l.useSelect)(e=>{var t;const{__experimentalGetAllowedPatterns:n,getSettings:o}=e(K.a);return{showPatterns:!!n(y).length,hasReusableBlocks:!(null===(t=o().__experimentalReusableBlocks)||void 0===t||!t.length)}},[y]),I=Object(o.useCallback)((e,t,n)=>{E(e,t,n),u()},[E,u]),B=Object(o.useCallback)((e,t)=>{E(e,{patternName:t}),u()},[E,u]),x=Object(o.useCallback)(e=>{C(!!e),v(e)},[C,v]),P=Object(o.useCallback)(e=>{_(e)},[_]),R=Object(o.useMemo)(()=>Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"block-editor-inserter__block-list"},Object(o.createElement)(j,{rootClientId:y,onInsert:I,onHover:x,showMostUsedBlocks:p})),d&&Object(o.createElement)("div",{className:"block-editor-inserter__tips"},Object(o.createElement)(r.VisuallyHidden,{as:"h2"},Object(c.__)("A tip for using the block editor")),Object(o.createElement)(a,null))),[y,I,x,h,p,d]),N=Object(o.useMemo)(()=>Object(o.createElement)(D,{rootClientId:y,onInsert:B,onClickCategory:P,selectedCategory:k}),[y,B,P,k]),L=Object(o.useMemo)(()=>Object(o.createElement)(H,{rootClientId:y,onInsert:I,onHover:x}),[y,I,x]),M=Object(o.useCallback)(e=>"blocks"===e.name?R:"patterns"===e.name?N:L,[R,N,L]);return Object(o.createElement)("div",{className:"block-editor-inserter__menu"},Object(o.createElement)("div",{className:"block-editor-inserter__main-area"},Object(o.createElement)("div",{className:"block-editor-inserter__content"},Object(o.createElement)(r.SearchControl,{className:"block-editor-inserter__search",onChange:e=>{O&&v(null),g(e)},value:h,label:Object(c.__)("Search for blocks and patterns"),placeholder:Object(c.__)("Search")}),!!h&&Object(o.createElement)(V.a,{filterValue:h,onSelect:u,onHover:x,rootClientId:t,clientId:n,isAppender:i,__experimentalInsertionIndex:s,showBlockDirectory:!0,shouldFocusBlock:f}),!h&&(S||w)&&Object(o.createElement)(q,{showPatterns:S,showReusableBlocks:w},M),!h&&!S&&!w&&R)),d&&O&&Object(o.createElement)(b,{item:O}))}},xkPd:function(e,t,n){"use strict";var o=n("wx14"),r=n("GRId"),c=n("l3Sj"),l=n("gdqT");t.a=Object(r.forwardRef)((function(e,t){const[n,i]=Object(r.useState)(!1);return Object(r.useEffect)(()=>{n&&Object(l.speak)(Object(c.__)("Use left and right arrow keys to move through blocks"))},[n]),Object(r.createElement)("div",Object(o.a)({ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:()=>{i(!0)},onBlur:e=>{!e.currentTarget.contains(e.relatedTarget)&&i(!1)}},e))}))},yU1v:function(e,t,n){"use strict";var o=n("wx14"),r=n("GRId"),c=n("TSYQ"),l=n.n(c),i=n("YLtl"),a=n("tI+e"),s=n("l3Sj"),u=n("hMaJ"),d=n("bVpQ"),b=n("Cn0l"),p=n("v5LD");const m=Object(s.__)("(%s: color %s)"),f=Object(s.__)("(%s: gradient %s)"),h=["colors","disableCustomColors","gradients","disableCustomGradients"],g=e=>{let{colors:t,gradients:n,settings:o}=e;return o.map((e,o)=>{let c,{colorValue:l,gradientValue:i,label:u,colors:p,gradients:h}=e;if(!l&&!i)return null;if(l){const e=Object(d.c)(p||t,l);c=Object(s.sprintf)(m,u.toLowerCase(),e&&e.name||l)}else{const e=Object(b.b)(h||n,l);c=Object(s.sprintf)(f,u.toLowerCase(),e&&e.name||i)}return Object(r.createElement)(a.ColorIndicator,{key:o,colorValue:l||i,"aria-label":c})})},O=e=>{let{className:t,colors:n,gradients:c,disableCustomColors:s,disableCustomGradients:d,children:b,settings:p,title:m,showTitle:f=!0,__experimentalHasMultipleOrigins:h,...O}=e;if(Object(i.isEmpty)(n)&&Object(i.isEmpty)(c)&&s&&d&&Object(i.every)(p,e=>Object(i.isEmpty)(e.colors)&&Object(i.isEmpty)(e.gradients)&&(void 0===e.disableCustomColors||e.disableCustomColors)&&(void 0===e.disableCustomGradients||e.disableCustomGradients)))return null;const v=Object(r.createElement)("span",{className:"block-editor-panel-color-gradient-settings__panel-title"},m,Object(r.createElement)(g,{colors:n,gradients:c,settings:p}));return Object(r.createElement)(a.PanelBody,Object(o.a)({className:l()("block-editor-panel-color-gradient-settings",t),title:f?v:void 0},O),p.map((e,t)=>Object(r.createElement)(u.a,Object(o.a)({showTitle:f,key:t,colors:n,gradients:c,disableCustomColors:s,disableCustomGradients:d,__experimentalHasMultipleOrigins:h},e))),b)};function v(){return{disableCustomColors:!Object(p.a)("color.custom"),disableCustomGradients:!Object(p.a)("color.customGradient")}}const j=e=>{const t=v();return t.colors=Object(p.a)("color.palette"),t.gradients=Object(p.a)("color.gradients"),Object(r.createElement)(O,Object(o.a)({},t,e))},k=e=>{const t=v(),n=Object(p.a)("color.palette.user"),c=Object(p.a)("color.palette.theme"),l=Object(p.a)("color.palette.default"),i=Object(p.a)("color.defaultPalette");t.colors=Object(r.useMemo)(()=>{const e=[];return c&&c.length&&e.push({name:Object(s._x)("Theme","Indicates this palette comes from the theme."),colors:c}),i&&l&&l.length&&e.push({name:Object(s._x)("Default","Indicates this palette comes from WordPress."),colors:l}),n&&n.length&&e.push({name:Object(s._x)("Custom","Indicates this palette comes from the theme."),colors:n}),e},[l,c,n]);const a=Object(p.a)("color.gradients.user"),u=Object(p.a)("color.gradients.theme"),d=Object(p.a)("color.gradients.default"),b=Object(p.a)("color.defaultGradients");return t.gradients=Object(r.useMemo)(()=>{const e=[];return u&&u.length&&e.push({name:Object(s._x)("Theme","Indicates this palette comes from the theme."),gradients:u}),b&&d&&d.length&&e.push({name:Object(s._x)("Default","Indicates this palette comes from WordPress."),gradients:d}),a&&a.length&&e.push({name:Object(s._x)("Custom","Indicates this palette is created by the user."),gradients:a}),e},[a,u,d]),Object(r.createElement)(O,Object(o.a)({},t,e))};t.a=e=>Object(i.every)(h,t=>e.hasOwnProperty(t))?Object(r.createElement)(O,e):e.__experimentalHasMultipleOrigins?Object(r.createElement)(k,e):Object(r.createElement)(j,e)},ywyh:function(e,t){e.exports=window.wp.apiFetch},"z+q2":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n("YLtl"),r=n("GRId"),c=n("1CF3"),l=n("1ZqX"),i=n("OL6h"),a=n("BhPs");function s(e){const t=Object(r.useRef)(),n=function(e){return Object(l.useSelect)(t=>{const{getSelectedBlocksInitialCaretPosition:n,isMultiSelecting:o,isNavigationMode:r,isBlockSelected:c}=t(a.a);if(c(e)&&!o()&&!r())return n()},[e])}(e);return Object(r.useEffect)(()=>{if(null==n)return;if(!t.current)return;const{ownerDocument:e}=t.current;if(t.current.contains(e.activeElement))return;const r=c.focus.tabbable.find(t.current).filter(e=>Object(c.isTextField)(e)),l=-1===n,a=(l?o.last:o.first)(r)||t.current;Object(i.c)(t.current,a)?Object(c.placeCaretAtHorizontalEdge)(a,l):t.current.focus()},[n]),t}},zQI6:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var o=n("wx14"),r=n("GRId"),c=n("1ZqX"),l=n("K9lf"),i=n("BhPs");function a(){const{hasSelectedBlock:e,hasMultiSelection:t}=Object(c.useSelect)(i.a),{clearSelectedBlock:n}=Object(c.useDispatch)(i.a);return Object(l.useRefEffect)(o=>{function r(r){(e()||t())&&r.target===o&&n()}return o.addEventListener("mousedown",r),()=>{o.removeEventListener("mousedown",r)}},[e,t,n])}function s(e){return Object(r.createElement)("div",Object(o.a)({ref:a()},e))}},ziDm:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"}));t.a=c},zmSX:function(e,t,n){"use strict";var o=n("Cn0l");n.d(t,"a",(function(){return o.a})),n.d(t,"b",(function(){return o.b})),n.d(t,"c",(function(){return o.c})),n.d(t,"d",(function(){return o.d})),n.d(t,"e",(function(){return o.e}))},zt9T:function(e,t,n){"use strict";var o=n("jB5C");e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=o.getWindow(t));var r=n.allowHorizontalScroll,c=n.onlyScrollIfNeeded,l=n.alignWithTop,i=n.alignWithLeft,a=n.offsetTop||0,s=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;r=void 0===r||r;var b=o.isWindow(t),p=o.offset(e),m=o.outerHeight(e),f=o.outerWidth(e),h=void 0,g=void 0,O=void 0,v=void 0,j=void 0,k=void 0,_=void 0,y=void 0,E=void 0,C=void 0;b?(_=t,C=o.height(_),E=o.width(_),y={left:o.scrollLeft(_),top:o.scrollTop(_)},j={left:p.left-y.left-s,top:p.top-y.top-a},k={left:p.left+f-(y.left+E)+d,top:p.top+m-(y.top+C)+u},v=y):(h=o.offset(t),g=t.clientHeight,O=t.clientWidth,v={left:t.scrollLeft,top:t.scrollTop},j={left:p.left-(h.left+(parseFloat(o.css(t,"borderLeftWidth"))||0))-s,top:p.top-(h.top+(parseFloat(o.css(t,"borderTopWidth"))||0))-a},k={left:p.left+f-(h.left+O+(parseFloat(o.css(t,"borderRightWidth"))||0))+d,top:p.top+m-(h.top+g+(parseFloat(o.css(t,"borderBottomWidth"))||0))+u}),j.top<0||k.top>0?!0===l?o.scrollTop(t,v.top+j.top):!1===l?o.scrollTop(t,v.top+k.top):j.top<0?o.scrollTop(t,v.top+j.top):o.scrollTop(t,v.top+k.top):c||((l=void 0===l||!!l)?o.scrollTop(t,v.top+j.top):o.scrollTop(t,v.top+k.top)),r&&(j.left<0||k.left>0?!0===i?o.scrollLeft(t,v.left+j.left):!1===i?o.scrollLeft(t,v.left+k.left):j.left<0?o.scrollLeft(t,v.left+j.left):o.scrollLeft(t,v.left+k.left):c||((i=void 0===i||!!i)?o.scrollLeft(t,v.left+j.left):o.scrollLeft(t,v.left+k.left)))}}}); \ No newline at end of file + */,e.exports=function(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,c=n in document;if(!c){var l=document.createElement("div");l.setAttribute(n,"return;"),c="function"==typeof l[n]}return!c&&o&&"wheel"===e&&(c=document.implementation.hasFeature("Events.wheel","3.0")),c}},f8JO:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("YLtl"),r=n("1ZqX"),c=n("HSyU"),l=n("wC17"),i=n("BhPs");function a(e){let{clientId:t}=e;const{attributes:n,name:a,reusableBlockTitle:s}=Object(r.useSelect)(e=>{if(!t)return{};const{getBlockName:n,getBlockAttributes:o,__experimentalGetReusableBlockTitle:r}=e(i.a),l=n(t);if(!l)return{};const a=Object(c.isReusableBlock)(Object(c.getBlockType)(l));return{attributes:o(t),name:l,reusableBlockTitle:a&&r(o(t).ref)}},[t]),u=Object(l.a)(t);if(!a||!u)return null;const d=Object(c.getBlockType)(a),b=d?Object(c.__experimentalGetBlockLabel)(d,n):null,p=s||b;return p&&p!==d.title?Object(o.truncate)(p,{length:35}):u.title}},fHnH:function(e,t,n){"use strict";n.d(t,"a",(function(){return B})),n.d(t,"b",(function(){return T}));var o={grad:.9,turn:360,rad:360/(2*Math.PI)},r=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},c=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},l=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},i=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},a=function(e){return{r:l(e.r,0,255),g:l(e.g,0,255),b:l(e.b,0,255),a:l(e.a)}},s=function(e){return{r:c(e.r),g:c(e.g),b:c(e.b),a:c(e.a,3)}},u=/^#([0-9a-f]{3,8})$/i,d=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},b=function(e){var t=e.r,n=e.g,o=e.b,r=e.a,c=Math.max(t,n,o),l=c-Math.min(t,n,o),i=l?c===t?(n-o)/l:c===n?2+(o-t)/l:4+(t-n)/l:0;return{h:60*(i<0?i+6:i),s:c?l/c*100:0,v:c/255*100,a:r}},p=function(e){var t=e.h,n=e.s,o=e.v,r=e.a;t=t/360*6,n/=100,o/=100;var c=Math.floor(t),l=o*(1-n),i=o*(1-(t-c)*n),a=o*(1-(1-t+c)*n),s=c%6;return{r:255*[o,i,l,l,a,o][s],g:255*[a,o,o,i,l,l][s],b:255*[l,l,a,o,o,i][s],a:r}},m=function(e){return{h:i(e.h),s:l(e.s,0,100),l:l(e.l,0,100),a:l(e.a)}},f=function(e){return{h:c(e.h),s:c(e.s),l:c(e.l),a:c(e.a,3)}},h=function(e){return p((n=(t=e).s,{h:t.h,s:(n*=((o=t.l)<50?o:100-o)/100)>0?2*n/(o+n)*100:0,v:o+n,a:t.a}));var t,n,o},g=function(e){return{h:(t=b(e)).h,s:(r=(200-(n=t.s))*(o=t.v)/100)>0&&r<200?n*o/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,n,o,r},O=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,v=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,j=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,k=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,_={string:[[function(e){var t=u.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?c(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?c(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=j.exec(e)||k.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:a({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=O.exec(e)||v.exec(e);if(!t)return null;var n,r,c=m({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(o[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return h(c)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,o=e.b,c=e.a,l=void 0===c?1:c;return r(t)&&r(n)&&r(o)?a({r:Number(t),g:Number(n),b:Number(o),a:Number(l)}):null},"rgb"],[function(e){var t=e.h,n=e.s,o=e.l,c=e.a,l=void 0===c?1:c;if(!r(t)||!r(n)||!r(o))return null;var i=m({h:Number(t),s:Number(n),l:Number(o),a:Number(l)});return h(i)},"hsl"],[function(e){var t=e.h,n=e.s,o=e.v,c=e.a,a=void 0===c?1:c;if(!r(t)||!r(n)||!r(o))return null;var s=function(e){return{h:i(e.h),s:l(e.s,0,100),v:l(e.v,0,100),a:l(e.a)}}({h:Number(t),s:Number(n),v:Number(o),a:Number(a)});return p(s)},"hsv"]]},y=function(e,t){for(var n=0;n<t.length;n++){var o=t[n][0](e);if(o)return[o,t[n][1]]}return[null,void 0]},E=function(e){return"string"==typeof e?y(e.trim(),_.string):"object"==typeof e&&null!==e?y(e,_.object):[null,void 0]},C=function(e,t){var n=g(e);return{h:n.h,s:l(n.s+100*t,0,100),l:n.l,a:n.a}},S=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},w=function(e,t){var n=g(e);return{h:n.h,s:n.s,l:l(n.l+100*t,0,100),a:n.a}},I=function(){function e(e){this.parsed=E(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return c(S(this.rgba),2)},e.prototype.isDark=function(){return S(this.rgba)<.5},e.prototype.isLight=function(){return S(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=s(this.rgba)).r,n=e.g,o=e.b,l=(r=e.a)<1?d(c(255*r)):"","#"+d(t)+d(n)+d(o)+l;var e,t,n,o,r,l},e.prototype.toRgb=function(){return s(this.rgba)},e.prototype.toRgbString=function(){return t=(e=s(this.rgba)).r,n=e.g,o=e.b,(r=e.a)<1?"rgba("+t+", "+n+", "+o+", "+r+")":"rgb("+t+", "+n+", "+o+")";var e,t,n,o,r},e.prototype.toHsl=function(){return f(g(this.rgba))},e.prototype.toHslString=function(){return t=(e=f(g(this.rgba))).h,n=e.s,o=e.l,(r=e.a)<1?"hsla("+t+", "+n+"%, "+o+"%, "+r+")":"hsl("+t+", "+n+"%, "+o+"%)";var e,t,n,o,r},e.prototype.toHsv=function(){return e=b(this.rgba),{h:c(e.h),s:c(e.s),v:c(e.v),a:c(e.a,3)};var e},e.prototype.invert=function(){return B({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),B(C(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),B(C(this.rgba,-e))},e.prototype.grayscale=function(){return B(C(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),B(w(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),B(w(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?B({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):c(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=g(this.rgba);return"number"==typeof e?B({h:e,s:t.s,l:t.l,a:t.a}):c(t.h)},e.prototype.isEqual=function(e){return this.toHex()===B(e).toHex()},e}(),B=function(e){return e instanceof I?e:new I(e)},x=[],T=function(e){e.forEach((function(e){x.indexOf(e)<0&&(e(I,_),x.push(e))}))}},fOYa:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o=n("wx14"),r=n("GRId"),c=n("YLtl"),l=n("tI+e"),i=n("HSyU"),a=n("1ZqX");var s={default:Object(l.createSlotFill)("BlockControls"),block:Object(l.createSlotFill)("BlockControlsBlock"),inline:Object(l.createSlotFill)("BlockFormatControls"),other:Object(l.createSlotFill)("BlockControlsOther"),parent:Object(l.createSlotFill)("BlockControlsParent")},u=n("BhPs"),d=n("ur0x"),b=n("HgtZ");function p(e){let{group:t="default",controls:n,children:o,__experimentalShareWithChildBlocks:p=!1}=e;const m=function(e,t){const n=Object(b.a)(),{clientId:o}=Object(d.c)(),r=Object(a.useSelect)(e=>{const{getBlockName:n,hasSelectedInnerBlock:r}=e(u.a),{hasBlockSupport:c}=e(i.store);return t&&c(n(o),"__experimentalExposeControlsToChildren",!1)&&r(o)},[t,o]);var c;return n?null===(c=s[e])||void 0===c?void 0:c.Fill:r?s.parent.Fill:null}(t,p);return m?Object(r.createElement)(l.__experimentalStyleProvider,{document:document},Object(r.createElement)(m,null,e=>{const i=Object(c.isEmpty)(e)?null:e;return Object(r.createElement)(l.__experimentalToolbarContext.Provider,{value:i},"default"===t&&Object(r.createElement)(l.ToolbarGroup,{controls:n}),o)})):null}function m(e){let{group:t="default",...n}=e;const c=Object(r.useContext)(l.__experimentalToolbarContext),i=s[t].Slot,a=Object(l.__experimentalUseSlot)(i.__unstableName);return Boolean(a.fills&&a.fills.length)?"default"===t?Object(r.createElement)(i,Object(o.a)({},n,{bubblesVirtually:!0,fillProps:c})):Object(r.createElement)(l.ToolbarGroup,null,Object(r.createElement)(i,Object(o.a)({},n,{bubblesVirtually:!0,fillProps:c}))):null}const f=p;f.Slot=m;const h=e=>Object(r.createElement)(p,Object(o.a)({group:"inline"},e));h.Slot=e=>Object(r.createElement)(m,Object(o.a)({group:"inline"},e));t.b=f},fPbg:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=c},faye:function(e,t){e.exports=window.ReactDOM},felP:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("1CF3"),r=n("RxS6"),c=n("1ZqX"),l=n("K9lf"),i=n("BhPs");function a(e){const t=Object(c.useSelect)(t=>t(i.a).isBlockSelected(e),[e]),{getBlockRootClientId:n,getBlockIndex:a}=Object(c.useSelect)(i.a),{insertDefaultBlock:s,removeBlock:u}=Object(c.useDispatch)(i.a);return Object(l.useRefEffect)(c=>{if(t)return c.addEventListener("keydown",l),c.addEventListener("dragstart",i),()=>{c.removeEventListener("keydown",l),c.removeEventListener("dragstart",i)};function l(t){const{keyCode:l,target:i}=t;l!==r.ENTER&&l!==r.BACKSPACE&&l!==r.DELETE||i!==c||Object(o.isTextField)(i)||(t.preventDefault(),l===r.ENTER?s({},n(e),a(e)+1):u(e))}function i(e){e.preventDefault()}},[e,t,n,a,s,u])}},g56x:function(e,t){e.exports=window.wp.hooks},gdqT:function(e,t){e.exports=window.wp.a11y},hF7m:function(e,t){e.exports=window.wp.keyboardShortcuts},hHnB:function(e,t,n){"use strict";var o=n("wx14"),r=n("GRId"),c=n("TSYQ"),l=n.n(c),i=n("l3Sj"),a=n("K9lf"),s=n("tI+e"),u=n("zQI6"),d=n("TVFh");function b(e){return Object(r.useMemo)(()=>{const t=document.implementation.createHTMLDocument("");return t.body.innerHTML=e,Array.from(t.body.children)},[e])}t.a=Object(r.forwardRef)((function(e,t){var n,c;let{contentRef:p,children:m,head:f,tabIndex:h=0,...g}=e;const[,O]=Object(r.useReducer)(()=>({})),[v,j]=Object(r.useState)(),[k,_]=Object(r.useState)([]),y=b(null===(n=window.__editorAssets)||void 0===n?void 0:n.styles),E=b(null===(c=window.__editorAssets)||void 0===c?void 0:c.scripts),C=Object(u.b)(),[S,w,I]=Object(d.b)(),B=Object(a.useRefEffect)(e=>{function t(){const{contentDocument:t,ownerDocument:n}=e,{readyState:o,documentElement:r}=t;return("interactive"===o||"complete"===o)&&(function(e){const{defaultView:t}=e,{frameElement:n}=t;function o(e){const o=Object.getPrototypeOf(e).constructor.name,r=window[o],c={};for(const t in e)c[t]=e[t];if(e instanceof t.MouseEvent){const e=n.getBoundingClientRect();c.clientX+=e.left,c.clientY+=e.top}const l=new r(e.type,c);!n.dispatchEvent(l)&&e.preventDefault()}const r=["dragover"];for(const t of r)e.addEventListener(t,o)}(t),j(t),C(r),_(Array.from(n.body.classList).filter(e=>e.startsWith("admin-color-")||"wp-embed-responsive"===e)),t.dir=n.dir,r.removeChild(t.head),r.removeChild(t.body),!0)}t()||e.addEventListener("load",()=>{t()})},[]),x=Object(a.useRefEffect)(e=>{E.reduce((t,n)=>t.then(()=>async function(e,t){let{id:n,src:o}=t;return new Promise((t,r)=>{const c=e.ownerDocument.createElement("script");c.id=n,o?(c.src=o,c.onload=()=>t(),c.onerror=()=>r()):t(),e.appendChild(c)})}(e,n)),Promise.resolve()).finally(()=>{O()})},[]),T=Object(a.useMergeRefs)([p,C,w]);return Object(r.useEffect)(()=>{var e;v&&(e=v,Array.from(document.styleSheets).forEach(t=>{try{t.cssRules}catch(e){return}const{ownerNode:n,cssRules:o}=t;if(o&&"LINK"===n.tagName&&"wp-reset-editor-styles-css"!==n.id&&Array.from(o).find(e=>{let{selectorText:t}=e;return t&&(t.includes(".editor-styles-wrapper")||t.includes(".wp-block"))})&&!e.getElementById(n.id)){console.warn(`Stylesheet ${n.id} was not properly added.\nFor blocks, use the block API's style (https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#style) or editorStyle (https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#editor-style).\nFor themes, use add_editor_style (https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-support/#editor-styles).`,n.outerHTML),e.head.appendChild(n.cloneNode(!0));const t=n.id.replace("-css","-inline-css"),o=document.getElementById(t);o&&e.head.appendChild(o.cloneNode(!0))}}))},[v]),f=Object(r.createElement)(r.Fragment,null,Object(r.createElement)("style",null,"body{margin:0}"),y.map(e=>{let{tagName:t,href:n,id:o,rel:c,media:l,textContent:i}=e;const a=t.toLowerCase();return"style"===a?Object(r.createElement)(a,{id:o,key:o},i):Object(r.createElement)(a,{href:n,id:o,rel:c,media:l,key:o})}),f),Object(r.createElement)(r.Fragment,null,h>=0&&S,Object(r.createElement)("iframe",Object(o.a)({},g,{ref:Object(a.useMergeRefs)([t,B]),tabIndex:h,title:Object(i.__)("Editor canvas")}),v&&Object(r.createPortal)(Object(r.createElement)(r.Fragment,null,Object(r.createElement)("head",{ref:x},f),Object(r.createElement)("body",{ref:T,className:l()("editor-styles-wrapper",...k)},Object(r.createElement)(s.__experimentalStyleProvider,{document:v},m))),v.documentElement)),h>=0&&I)}))},hMaJ:function(e,t,n){"use strict";var o=n("wx14"),r=n("GRId"),c=n("TSYQ"),l=n.n(c),i=n("YLtl"),a=n("tI+e"),s=n("l3Sj"),u=n("v5LD");const d=["colors","disableCustomColors","gradients","disableCustomGradients"];function b(e){let{colors:t,gradients:n,disableCustomColors:o,disableCustomGradients:c,__experimentalHasMultipleOrigins:u,className:d,label:b,onColorChange:p,onGradientChange:m,colorValue:f,gradientValue:h,clearable:g,showTitle:O=!0,enableAlpha:v}=e;const j=p&&(!Object(i.isEmpty)(t)||!o),k=m&&(!Object(i.isEmpty)(n)||!c),[_,y]=Object(r.useState)(h?"gradient":!!j&&"color");return j||k?Object(r.createElement)(a.BaseControl,{className:l()("block-editor-color-gradient-control",d)},Object(r.createElement)("fieldset",null,Object(r.createElement)(a.__experimentalVStack,{spacing:1},O&&Object(r.createElement)("legend",null,Object(r.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},Object(r.createElement)(a.BaseControl.VisualLabel,null,b))),j&&k&&Object(r.createElement)(a.__experimentalToggleGroupControl,{value:_,onChange:y,label:Object(s.__)("Select color type"),hideLabelFromVision:!0,isBlock:!0},Object(r.createElement)(a.__experimentalToggleGroupControlOption,{value:"color",label:Object(s.__)("Solid")}),Object(r.createElement)(a.__experimentalToggleGroupControlOption,{value:"gradient",label:Object(s.__)("Gradient")})),("color"===_||!k)&&Object(r.createElement)(a.ColorPalette,{value:f,onChange:k?e=>{p(e),m()}:p,colors:t,disableCustomColors:o,__experimentalHasMultipleOrigins:u,clearable:g,enableAlpha:v}),("gradient"===_||!j)&&Object(r.createElement)(a.GradientPicker,{value:h,onChange:j?e=>{m(e),p()}:m,gradients:n,disableCustomGradients:c,__experimentalHasMultipleOrigins:u,clearable:g})))):null}function p(e){const t={};return t.colors=Object(u.a)("color.palette"),t.gradients=Object(u.a)("color.gradients"),t.disableCustomColors=!Object(u.a)("color.custom"),t.disableCustomGradients=!Object(u.a)("color.customGradient"),Object(r.createElement)(b,Object(o.a)({},t,e))}t.a=function(e){return Object(i.every)(d,t=>e.hasOwnProperty(t))?Object(r.createElement)(b,e):Object(r.createElement)(p,e)}},hw9B:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("1ZqX"),r=n("K9lf"),c=n("BhPs"),l=n("OL6h");function i(e,t){Array.from(e.closest(".is-root-container").querySelectorAll(".rich-text")).forEach(e=>{t?e.setAttribute("contenteditable",!0):e.removeAttribute("contenteditable")})}function a(e){const{startMultiSelect:t,stopMultiSelect:n,multiSelect:a,selectBlock:s}=Object(o.useDispatch)(c.a),{isSelectionEnabled:u,isBlockSelected:d,getBlockParents:b,getBlockSelectionStart:p,hasMultiSelection:m}=Object(o.useSelect)(c.a);return Object(r.useRefEffect)(o=>{const{ownerDocument:r}=o,{defaultView:c}=r;let f,h;function g(t){let{isSelectionEnd:n}=t;const r=c.getSelection();if(!r.rangeCount||r.isCollapsed)return void i(o,!0);const u=Object(l.a)(r.focusNode);if(e===u){if(s(e),n&&(i(o,!0),r.rangeCount)){const{commonAncestorContainer:e}=r.getRangeAt(0);f.contains(e)&&f.focus()}}else{const t=[...b(e),e],n=[...b(u),u],o=Math.min(t.length,n.length)-1;a(t[o],n[o])}}function O(){r.removeEventListener("selectionchange",g),c.removeEventListener("mouseup",O),h=c.requestAnimationFrame(()=>{g({isSelectionEnd:!0}),n()})}function v(n){let{buttons:l}=n;1===l&&u()&&d(e)&&(f=r.activeElement,t(),r.addEventListener("selectionchange",g),c.addEventListener("mouseup",O),i(o,!1))}function j(t){if(u()&&0===t.button)if(t.shiftKey){const n=p(),r=b(n);if(n&&n!==e&&(null==r||!r.includes(e))){const c=[...r,n],l=[...b(e),e],s=Math.min(c.length,l.length)-1,u=c[s],d=l[s];u!==d&&(i(o,!1),a(u,d),t.preventDefault())}}else m()&&s(e)}return o.addEventListener("mousedown",j),o.addEventListener("mouseleave",v),()=>{o.removeEventListener("mousedown",j),o.removeEventListener("mouseleave",v),r.removeEventListener("selectionchange",g),c.removeEventListener("mouseup",O),c.cancelAnimationFrame(h)}},[e,t,n,a,s,u,d,b])}},iA5R:function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.diffChars=function(e,t,n){return r.diff(e,t,n)},t.characterDiff=void 0;var r=new(((o=n("smQA"))&&o.__esModule?o:{default:o}).default);t.characterDiff=r},iClF:function(e,t,n){"use strict";var o=n("GRId");t.a=function(e){let{icon:t,size:n=24,...r}=e;return Object(o.cloneElement)(t,{width:n,height:n,...r})}},j6zP:function(e,t,n){"use strict";var o=n("GRId"),r=n("tI+e"),c=n("q3tz");t.a=e=>{let{isEnabled:t,blocks:n,icon:l,children:i}=e;const a={type:"inserter",blocks:n};return Object(o.createElement)(r.Draggable,{__experimentalTransferDataType:"wp-blocks",transferData:a,__experimentalDragComponent:Object(o.createElement)(c.a,{count:n.length,icon:l})},e=>{let{onDraggableStart:n,onDraggableEnd:o}=e;return i({draggable:t,onDragStart:t?n:void 0,onDragEnd:t?o:void 0})})}},jB5C:function(e,t,n){"use strict";var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function c(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],o="scroll"+(t?"Top":"Left");if("number"!=typeof n){var r=e.document;"number"!=typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}function l(e){return c(e)}function i(e){return c(e,!0)}function a(e){var t=function(e){var t,n=void 0,o=void 0,r=e.ownerDocument,c=r.body,l=r&&r.documentElement;return n=(t=e.getBoundingClientRect()).left,o=t.top,{left:n-=l.clientLeft||c.clientLeft||0,top:o-=l.clientTop||c.clientTop||0}}(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=l(o),t.top+=i(o),t}var s=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),u=/^(top|right|bottom|left)$/,d="left";var b=void 0;function p(e,t){for(var n=0;n<e.length;n++)t(e[n])}function m(e){return"border-box"===b(e,"boxSizing")}"undefined"!=typeof window&&(b=window.getComputedStyle?function(e,t,n){var o="",r=e.ownerDocument,c=n||r.defaultView.getComputedStyle(e,null);return c&&(o=c.getPropertyValue(t)||c[t]),o}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(s.test(n)&&!u.test(t)){var o=e.style,r=o[d],c=e.runtimeStyle[d];e.runtimeStyle[d]=e.currentStyle[d],o[d]="fontSize"===t?"1em":n||0,n=o.pixelLeft+"px",o[d]=r,e.runtimeStyle[d]=c}return""===n?"auto":n});var f=["margin","border","padding"];function h(e,t,n){var o={},r=e.style,c=void 0;for(c in t)t.hasOwnProperty(c)&&(o[c]=r[c],r[c]=t[c]);for(c in n.call(e),t)t.hasOwnProperty(c)&&(r[c]=o[c])}function g(e,t,n){var o=0,r=void 0,c=void 0,l=void 0;for(c=0;c<t.length;c++)if(r=t[c])for(l=0;l<n.length;l++){var i=void 0;i="border"===r?r+n[l]+"Width":r+n[l],o+=parseFloat(b(e,i))||0}return o}function O(e){return null!=e&&e==e.window}var v={};function j(e,t,n){if(O(e))return"width"===t?v.viewportWidth(e):v.viewportHeight(e);if(9===e.nodeType)return"width"===t?v.docWidth(e):v.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],r="width"===t?e.offsetWidth:e.offsetHeight,c=(b(e),m(e)),l=0;(null==r||r<=0)&&(r=void 0,(null==(l=b(e,t))||Number(l)<0)&&(l=e.style[t]||0),l=parseFloat(l)||0),void 0===n&&(n=c?1:-1);var i=void 0!==r||c,a=r||l;if(-1===n)return i?a-g(e,["border","padding"],o):l;if(i){var s=2===n?-g(e,["border"],o):g(e,["margin"],o);return a+(1===n?0:s)}return l+g(e,f.slice(n),o)}p(["Width","Height"],(function(e){v["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],v["viewport"+e](n))},v["viewport"+e]=function(t){var n="client"+e,o=t.document,r=o.body,c=o.documentElement[n];return"CSS1Compat"===o.compatMode&&c||r&&r[n]||c}}));var k={position:"absolute",visibility:"hidden",display:"block"};function _(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=j.apply(void 0,n):h(e,k,(function(){t=j.apply(void 0,n)})),t}function y(e,t,n){var o=n;if("object"!==(void 0===t?"undefined":r(t)))return void 0!==o?("number"==typeof o&&(o+="px"),void(e.style[t]=o)):b(e,t);for(var c in t)t.hasOwnProperty(c)&&y(e,c,t[c])}p(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);v["outer"+t]=function(t,n){return t&&_(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];v[e]=function(t,o){if(void 0===o)return t&&_(t,e,-1);if(t){b(t);return m(t)&&(o+=g(t,["padding","border"],n)),y(t,e,o)}}})),e.exports=o({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return a(e);!function(e,t){"static"===y(e,"position")&&(e.style.position="relative");var n=a(e),o={},r=void 0,c=void 0;for(c in t)t.hasOwnProperty(c)&&(r=parseFloat(y(e,c))||0,o[c]=r+t[c]-n[c]);y(e,o)}(e,t)},isWindow:O,each:p,css:y,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(O(e)){if(void 0===t)return l(e);window.scrollTo(t,i(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(O(e)){if(void 0===t)return i(e);window.scrollTo(l(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},v)},jBNB:function(e,t,n){"use strict";n.d(t,"a",(function(){return B}));var o=n("GRId"),r=n("TSYQ"),c=n.n(r),l=n("YLtl"),i=n("HSyU"),a=n("tI+e"),s=n("1ZqX"),u=n("K9lf"),d=n("1CF3"),b=n("JRTi"),p=n("l3Sj"),m=n("Zzu2"),f=n("iA5R");function h(e){let{title:t,rawContent:n,renderedContent:r,action:c,actionText:l,className:i}=e;return Object(o.createElement)("div",{className:i},Object(o.createElement)("div",{className:"block-editor-block-compare__content"},Object(o.createElement)("h2",{className:"block-editor-block-compare__heading"},t),Object(o.createElement)("div",{className:"block-editor-block-compare__html"},n),Object(o.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},Object(o.createElement)(o.RawHTML,null,Object(d.safeHTML)(r)))),Object(o.createElement)("div",{className:"block-editor-block-compare__action"},Object(o.createElement)(a.Button,{variant:"secondary",tabIndex:"0",onClick:c},l)))}var g=function(e){let{block:t,onKeep:n,onConvert:r,convertor:a,convertButtonText:s}=e;const u=(d=a(t),Object(l.castArray)(d).map(e=>Object(i.getSaveContent)(e.name,e.attributes,e.innerBlocks)).join(""));var d;const b=(m=t.originalContent,g=u,Object(f.diffChars)(m,g).map((e,t)=>{const n=c()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return Object(o.createElement)("span",{key:t,className:n},e.value)}));var m,g;return Object(o.createElement)("div",{className:"block-editor-block-compare__wrapper"},Object(o.createElement)(h,{title:Object(p.__)("Current"),className:"block-editor-block-compare__current",action:n,actionText:Object(p.__)("Convert to HTML"),rawContent:t.originalContent,renderedContent:t.originalContent}),Object(o.createElement)(h,{title:Object(p.__)("After Conversion"),className:"block-editor-block-compare__converted",action:r,actionText:s,rawContent:b,renderedContent:u}))},O=n("BhPs");const v=e=>Object(i.rawHandler)({HTML:e.originalContent});var j=Object(u.compose)([Object(s.withSelect)((e,t)=>{let{clientId:n}=t;return{block:e(O.a).getBlock(n)}}),Object(s.withDispatch)((e,t)=>{let{block:n}=t;const{replaceBlock:o}=e(O.a);return{convertToClassic(){o(n.clientId,(e=>Object(i.createBlock)("core/freeform",{content:e.originalContent}))(n))},convertToHTML(){o(n.clientId,(e=>Object(i.createBlock)("core/html",{content:e.originalContent}))(n))},convertToBlocks(){o(n.clientId,v(n))},attemptBlockRecovery(){o(n.clientId,(e=>{let{name:t,attributes:n,innerBlocks:o}=e;return Object(i.createBlock)(t,n,o)})(n))}}})])((function(e){let{convertToHTML:t,convertToBlocks:n,convertToClassic:r,attemptBlockRecovery:c,block:l}=e;const s=!!Object(i.getBlockType)("core/html"),[u,d]=Object(o.useState)(!1),b=Object(o.useCallback)(()=>d(!0),[]),f=Object(o.useCallback)(()=>d(!1),[]),h=Object(o.useMemo)(()=>[{title:Object(p._x)("Resolve","imperative verb"),onClick:b},s&&{title:Object(p.__)("Convert to HTML"),onClick:t},{title:Object(p.__)("Convert to Classic Block"),onClick:r}].filter(Boolean),[b,t,r]);return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(m.a,{actions:[Object(o.createElement)(a.Button,{key:"recover",onClick:c,variant:"primary"},Object(p.__)("Attempt Block Recovery"))],secondaryActions:h},Object(p.__)("This block contains unexpected or invalid content.")),u&&Object(o.createElement)(a.Modal,{title:Object(p.__)("Resolve Block"),onRequestClose:f,className:"block-editor-block-compare"},Object(o.createElement)(g,{block:l,onKeep:t,onConvert:n,convertor:v,convertButtonText:Object(p.__)("Convert to Blocks")})))}));const k=Object(o.createElement)(m.a,{className:"block-editor-block-list__block-crash-warning"},Object(p.__)("This block has encountered an error and cannot be previewed."));var _=()=>k;class y extends o.Component{constructor(){super(...arguments),this.state={hasError:!1}}componentDidCatch(){this.setState({hasError:!0})}render(){return this.state.hasError?this.props.fallback:this.props.children}}var E=y,C=n("O6Fj"),S=n.n(C);var w=function(e){let{clientId:t}=e;const[n,r]=Object(o.useState)(""),c=Object(s.useSelect)(e=>e(O.a).getBlock(t),[t]),{updateBlock:l}=Object(s.useDispatch)(O.a);return Object(o.useEffect)(()=>{r(Object(i.getBlockContent)(c))},[c]),Object(o.createElement)(S.a,{className:"block-editor-block-list__block-html-textarea",value:n,onBlur:()=>{const e=Object(i.getBlockType)(c.name);if(!e)return;const o=Object(i.getBlockAttributes)(e,n,c.attributes),a=n||Object(i.getSaveContent)(e,o),s=!n||Object(i.isValidBlockContent)(e,o,a);l(t,{attributes:o,originalContent:a,isValid:s}),n||r({content:a})},onChange:e=>r(e.target.value)})},I=n("nlh6");const B=Object(o.createContext)();function x(e){let{children:t,isHtml:n,...r}=e;return Object(o.createElement)("div",Object(I.a)(r,{__unstableIsHtml:n}),t)}const T=Object(s.withSelect)((e,t)=>{let{clientId:n,rootClientId:o}=t;const{isBlockSelected:r,getBlockMode:c,isSelectionEnabled:l,getTemplateLock:i,__unstableGetBlockWithoutInnerBlocks:a,canRemoveBlock:s,canMoveBlock:u}=e(O.a),d=a(n),b=r(n),p=i(o),m=s(n,o),f=u(n,o),{name:h,attributes:g,isValid:v}=d||{};return{mode:c(n),isSelectionEnabled:l(),isLocked:!!p,canRemove:m,canMove:f,block:d,name:h,attributes:g,isValid:v,isSelected:b}}),P=Object(s.withDispatch)((e,t,n)=>{let{select:o}=n;const{updateBlockAttributes:r,insertBlocks:c,mergeBlocks:l,replaceBlocks:a,toggleSelection:s,__unstableMarkLastChangeAsPersistent:u}=e(O.a);return{setAttributes(e){const{getMultiSelectedBlockClientIds:n}=o(O.a),c=n(),{clientId:l}=t,i=c.length?c:[l];r(i,e)},onInsertBlocks(e,n){const{rootClientId:o}=t;c(e,n,o)},onInsertBlocksAfter(e){const{clientId:n,rootClientId:r}=t,{getBlockIndex:l}=o(O.a),i=l(n,r);c(e,i+1,r)},onMerge(e){const{clientId:n}=t,{getPreviousBlockClientId:r,getNextBlockClientId:c}=o(O.a);if(e){const e=c(n);e&&l(n,e)}else{const e=r(n);e&&l(e,n)}},onReplace(e,n,o){e.length&&!Object(i.isUnmodifiedDefaultBlock)(e[e.length-1])&&u(),a([t.clientId],e,n,o)},toggleSelection(e){s(e)}}});t.b=Object(u.compose)(u.pure,T,P,Object(u.ifCondition)(e=>{let{block:t}=e;return!!t}),Object(a.withFilters)("editor.BlockListBlock"))((function(e){let{mode:t,isLocked:n,canRemove:r,clientId:a,isSelected:u,isSelectionEnabled:p,className:m,name:f,isValid:h,attributes:g,wrapperProps:v,setAttributes:k,onReplace:y,onInsertBlocksAfter:C,onMerge:S,toggleSelection:I}=e;const{removeBlock:T}=Object(s.useDispatch)(O.a),P=Object(o.useCallback)(()=>T(a),[a]);let R=Object(o.createElement)(b.a,{name:f,isSelected:u,attributes:g,setAttributes:k,insertBlocksAfter:n?void 0:C,onReplace:r?y:void 0,onRemove:r?P:void 0,mergeBlocks:r?S:void 0,clientId:a,isSelectionEnabled:p,toggleSelection:I});const N=Object(i.getBlockType)(f);null!=N&&N.getEditWrapperProps&&(v=function(e,t){const n={...e,...t};return e&&t&&e.className&&t.className&&(n.className=c()(e.className,t.className)),e&&t&&e.style&&t.style&&(n.style={...e.style,...t.style}),n}(v,N.getEditWrapperProps(g)));const L=v&&!!v["data-align"];let M;if(L&&(R=Object(o.createElement)("div",{className:"wp-block","data-align":v["data-align"]},R)),h)M="html"===t?Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{style:{display:"none"}},R),Object(o.createElement)(x,{isHtml:!0},Object(o.createElement)(w,{clientId:a}))):(null==N?void 0:N.apiVersion)>1?R:Object(o.createElement)(x,v,R);else{const e=Object(i.getSaveContent)(N,g);M=Object(o.createElement)(x,{className:"has-warning"},Object(o.createElement)(j,{clientId:a}),Object(o.createElement)(o.RawHTML,null,Object(d.safeHTML)(e)))}const A={clientId:a,className:m,wrapperProps:Object(l.omit)(v,["data-align"]),isAligned:L},D=Object(o.useMemo)(()=>A,Object.values(A));return Object(o.createElement)(B.Provider,{value:D},Object(o.createElement)(E,{fallback:Object(o.createElement)(x,{className:"has-warning"},Object(o.createElement)(_,null))},M))}))},jTPX:function(e,t){e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},jrfk:function(e,t){var n,o,r,c,l,i,a,s,u,d,b,p,m,f,h,g=!1;function O(){if(!g){g=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),O=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(p=/\b(iPhone|iP[ao]d)/.exec(e),m=/\b(iP[ao]d)/.exec(e),d=/Android/i.exec(e),f=/FBAN\/\w+;/i.exec(e),h=/Mobile/i.exec(e),b=!!/Win64/.exec(e),t){(n=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN)&&document&&document.documentMode&&(n=document.documentMode);var v=/(?:Trident\/(\d+.\d+))/.exec(e);i=v?parseFloat(v[1])+4:n,o=t[2]?parseFloat(t[2]):NaN,r=t[3]?parseFloat(t[3]):NaN,(c=t[4]?parseFloat(t[4]):NaN)?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),l=t&&t[1]?parseFloat(t[1]):NaN):l=NaN}else n=o=r=l=c=NaN;if(O){if(O[1]){var j=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);a=!j||parseFloat(j[1].replace("_","."))}else a=!1;s=!!O[2],u=!!O[3]}else a=s=u=!1}}var v={ie:function(){return O()||n},ieCompatibilityMode:function(){return O()||i>n},ie64:function(){return v.ie()&&b},firefox:function(){return O()||o},opera:function(){return O()||r},webkit:function(){return O()||c},safari:function(){return v.webkit()},chrome:function(){return O()||l},windows:function(){return O()||s},osx:function(){return O()||a},linux:function(){return O()||u},iphone:function(){return O()||p},mobile:function(){return O()||p||m||d||h},nativeApp:function(){return O()||f},android:function(){return O()||d},ipad:function(){return O()||m}};e.exports=v},jwne:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s}));var o=n("wx14"),r=n("GRId"),c=n("tI+e"),l=(n("Z23Y"),n("c1Zz")),i=n("asom"),a=n("VrEk");function s(t){var n;let{__experimentalGroup:s="default",bubblesVirtually:u=!0,label:d,...b}=t;const p=null===(n=a.a[s])||void 0===n?void 0:n.Slot,m=Object(c.__experimentalUseSlot)(null==p?void 0:p.__unstableName);if(!p||!m)return void 0!==e&&e.env,null;return Boolean(m.fills&&m.fills.length)?d?Object(r.createElement)(l.a,{group:s,label:d},Object(r.createElement)(i.a,Object(o.a)({},b,{bubblesVirtually:u,Slot:p}))):Object(r.createElement)(p,Object(o.a)({},b,{bubblesVirtually:u})):null}}).call(this,n("8oxB"))},kBLm:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("1ZqX"),r=n("K9lf"),c=n("BhPs");function l(e){if(e.defaultPrevented)return;const t="mouseover"===e.type?"add":"remove";e.preventDefault(),e.currentTarget.classList[t]("is-hovered")}function i(){const e=Object(o.useSelect)(e=>{const{isNavigationMode:t,getSettings:n}=e(c.a);return t()||n().outlineMode},[]);return Object(r.useRefEffect)(t=>{if(e)return t.addEventListener("mouseout",l),t.addEventListener("mouseover",l),()=>{t.removeEventListener("mouseout",l),t.removeEventListener("mouseover",l),t.classList.remove("is-hovered")}},[e])}},kVRd:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n("GRId"),r=n("tI+e"),c=n("Tqx9");var l=Object(o.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(c.Path,{d:"M7 18v1h10v-1H7zm5-2c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V5H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V5H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"})),i=n("Crq9"),a=n("l3Sj");const s=[{name:Object(a.__)("Underline"),value:"underline",icon:l},{name:Object(a.__)("Strikethrough"),value:"line-through",icon:i.a}];function u(e){let{value:t,onChange:n}=e;return Object(o.createElement)("fieldset",{className:"block-editor-text-decoration-control"},Object(o.createElement)("legend",null,Object(a.__)("Decoration")),Object(o.createElement)("div",{className:"block-editor-text-decoration-control__buttons"},s.map(e=>Object(o.createElement)(r.Button,{key:e.value,icon:e.icon,isSmall:!0,isPressed:e.value===t,onClick:()=>n(e.value===t?void 0:e.value),"aria-label":e.name}))))}},kWXm:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"}));t.a=c},kaUp:function(e,t){},kmrn:function(e,t,n){"use strict";n.d(t,"useSpring",(function(){return he}));var o=n("nEW0");n.d(t,"Globals",(function(){return o.b}));var r=n("cDcd"),c=n("dfZa");n("kaUp"),n("v8Ku");function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function i(e,...t){return o.s.fun(e)?e(...t):e}const a=(e,t)=>!0===e||!!(t&&e&&(o.s.fun(e)?e(t):Object(o.y)(e).includes(t))),s=(e,t)=>o.s.obj(e)?t&&e[t]:e,u=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,d=e=>e,b=(e,t=d)=>{let n=p;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const c of n){const n=t(e[c],c);o.s.und(n)||(r[c]=n)}return r},p=["config","onProps","onStart","onChange","onPause","onResume","onRest"],m={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function f(e){const t=function(e){const t={};let n=0;if(Object(o.l)(e,(e,o)=>{m[o]||(t[o]=e,n++)}),n)return t}(e);if(t){const n={to:t};return Object(o.l)(e,(e,o)=>o in t||(n[o]=e)),n}return l({},e)}function h(e){return e=Object(o.q)(e),o.s.arr(e)?e.map(h):Object(o.t)(e)?o.b.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function g(e){for(const t in e)return!0;return!1}function O(e){return o.s.fun(e)||o.s.arr(e)&&o.s.obj(e[0])}function v(e,t){var n;null==(n=e.ref)||n.delete(e),null==t||t.delete(e)}function j(e,t){var n;t&&e.ref!==t&&(null==(n=e.ref)||n.delete(e),t.add(e),e.ref=t)}const k=l({},{tension:170,friction:26},{mass:1,damping:1,easing:e=>e,clamp:!1});class _{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,k)}}function y(e,t){if(o.s.und(t.decay)){const n=!o.s.und(t.tension)||!o.s.und(t.friction);!n&&o.s.und(t.frequency)&&o.s.und(t.damping)&&o.s.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}const E=[];class C{constructor(){this.changed=!1,this.values=E,this.toValues=null,this.fromValues=E,this.to=void 0,this.from=void 0,this.config=new _,this.immediate=!1}}function S(e,{key:t,props:n,defaultProps:r,state:c,actions:s}){return new Promise((u,d)=>{var b;let p,m,f=a(null!=(b=n.cancel)?b:null==r?void 0:r.cancel,t);if(f)O();else{o.s.und(n.pause)||(c.paused=a(n.pause,t));let e=null==r?void 0:r.pause;!0!==e&&(e=c.paused||a(e,t)),p=i(n.delay||0,t),e?(c.resumeQueue.add(g),s.pause()):(s.resume(),g())}function h(){c.resumeQueue.add(g),c.timeouts.delete(m),m.cancel(),p=m.time-o.w.now()}function g(){p>0?(m=o.w.setTimeout(O,p),c.pauseQueue.add(h),c.timeouts.add(m)):O()}function O(){c.pauseQueue.delete(h),c.timeouts.delete(m),e<=(c.cancelId||0)&&(f=!0);try{s.start(l({},n,{callId:e,cancel:f}),u)}catch(e){d(e)}}})}const w=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?x(e.get()):t.every(e=>e.noop)?I(e.get()):B(e.get(),t.every(e=>e.finished)),I=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),B=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),x=e=>({value:e,cancelled:!0,finished:!1});function T(e,t,n,r){const{callId:c,parentId:i,onRest:a}=t,{asyncTo:s,promise:u}=n;return i||e!==s||t.reset?n.promise=(async()=>{n.asyncId=c,n.asyncTo=e;const d=b(t,(e,t)=>"onRest"===t?void 0:e);let p,m;const f=new Promise((e,t)=>(p=e,m=t)),h=e=>{const t=c<=(n.cancelId||0)&&x(r)||c!==n.asyncId&&B(r,!1);if(t)throw e.result=t,m(e),e},g=(e,t)=>{const i=new R,a=new N;return(async()=>{if(o.b.skipAnimation)throw P(n),a.result=B(r,!1),m(a),a;h(i);const s=o.s.obj(e)?l({},e):l({},t,{to:e});s.parentId=c,Object(o.l)(d,(e,t)=>{o.s.und(s[t])&&(s[t]=e)});const u=await r.start(s);return h(i),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),u})()};let O;if(o.b.skipAnimation)return P(n),B(r,!1);try{let t;t=o.s.arr(e)?(async e=>{for(const t of e)await g(t)})(e):Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([t.then(p),f]),O=B(r.get(),!0,!1)}catch(e){if(e instanceof R)O=e.result;else{if(!(e instanceof N))throw e;O=e.result}}finally{c==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?u:void 0)}return o.s.fun(a)&&o.w.batchedUpdates(()=>{a(O,r,r.item)}),O})():u}function P(e,t){Object(o.m)(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class R extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class N extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const L=e=>e instanceof A;let M=1;class A extends o.a{constructor(...e){super(...e),this.id=M++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Object(c.e)(this);return e&&e.getValue()}to(...e){return o.b.to(this,e)}interpolate(...e){return Object(o.j)(),o.b.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Object(o.d)(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||o.o.sort(this),Object(o.d)(this,{type:"priority",parent:this,priority:e})}}const D=Symbol.for("SpringPhase"),F=e=>(1&e[D])>0,z=e=>(2&e[D])>0,H=e=>(4&e[D])>0,V=(e,t)=>t?e[D]|=3:e[D]&=-3,G=(e,t)=>t?e[D]|=4:e[D]&=-5;class U extends A{constructor(e,t){if(super(),this.key=void 0,this.animation=new C,this.queue=void 0,this.defaultProps={},this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!o.s.und(e)||!o.s.und(t)){const n=o.s.obj(e)?l({},e):l({},t,{from:e});o.s.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(z(this)||this._state.asyncTo)||H(this)}get goal(){return Object(o.q)(this.animation.to)}get velocity(){const e=Object(c.e)(this);return e instanceof c.c?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return F(this)}get isAnimating(){return z(this)}get isPaused(){return H(this)}advance(e){let t=!0,n=!1;const r=this.animation;let{config:l,toValues:i}=r;const a=Object(c.g)(r.to);!a&&Object(o.r)(r.to)&&(i=Object(o.y)(Object(o.q)(r.to))),r.values.forEach((s,u)=>{if(s.done)return;const d=s.constructor==c.b?1:a?a[u].lastPosition:i[u];let b=r.immediate,p=d;if(!b){if(p=s.lastPosition,l.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[u],c=null!=s.v0?s.v0:s.v0=o.s.arr(l.velocity)?l.velocity[u]:l.velocity;let i;if(o.s.und(l.duration))if(l.decay){const e=!0===l.decay?.998:l.decay,o=Math.exp(-(1-e)*t);p=n+c/(1-e)*(1-o),b=Math.abs(s.lastPosition-p)<.1,i=c*o}else{i=null==s.lastVelocity?c:s.lastVelocity;const t=l.precision||(n==d?.005:Math.min(1,.001*Math.abs(d-n))),r=l.restVelocity||t/10,a=l.clamp?0:l.bounce,u=!o.s.und(a),m=n==d?s.v0>0:n<d;let f,h=!1;const g=1,O=Math.ceil(e/g);for(let e=0;e<O&&(f=Math.abs(i)>r,f||(b=Math.abs(d-p)<=t,!b));++e){u&&(h=p==d||p>d==m,h&&(i=-i*a,p=d));i+=(1e-6*-l.tension*(p-d)+.001*-l.friction*i)/l.mass*g,p+=i*g}}else{let o=1;l.duration>0&&(this._memoizedDuration!==l.duration&&(this._memoizedDuration=l.duration,s.durationProgress>0&&(s.elapsedTime=l.duration*s.durationProgress,t=s.elapsedTime+=e)),o=(l.progress||0)+t/this._memoizedDuration,o=o>1?1:o<0?0:o,s.durationProgress=o),p=n+l.easing(o)*(d-n),i=(p-s.lastPosition)/e,b=1==o}s.lastVelocity=i,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),b=!0)}a&&!a[u].done&&(b=!1),b?s.done=!0:t=!1,s.setValue(p,l.round)&&(n=!0)});const s=Object(c.e)(this),u=s.getValue();if(t){const e=Object(o.q)(r.to);u===e&&!n||l.decay?n&&l.decay&&this._onChange(u):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(u)}set(e){return o.w.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(z(this)){const{to:e,config:t}=this.animation;o.w.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return o.s.und(e)?(n=this.queue||[],this.queue=[]):n=[o.s.obj(e)?e:l({},t,{to:e})],Promise.all(n.map(e=>this._update(e))).then(e=>w(this,e))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),P(this._state,e&&this._lastCallId),o.w.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=o.s.obj(n)?n[t]:n,(null==n||O(n))&&(n=void 0),r=o.s.obj(r)?r[t]:r,null==r&&(r=void 0);const l={to:n,from:r};return F(this)||(e.reverse&&([n,r]=[r,n]),r=Object(o.q)(r),o.s.und(r)?Object(c.e)(this)||this._set(n):this._set(r)),l}_update(e,t){let n=l({},e);const{key:r,defaultProps:c}=this;n.default&&Object.assign(c,b(n,(e,t)=>/^on/.test(t)?s(e,r):e)),Z(this,n,"onProps"),Q(this,"onProps",n,this);const i=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return S(++this._lastCallId,{key:r,props:n,defaultProps:c,state:a,actions:{pause:()=>{H(this)||(G(this,!0),Object(o.n)(a.pauseQueue),Q(this,"onPause",B(this,W(this,this.animation.to)),this))},resume:()=>{H(this)&&(G(this,!1),z(this)&&this._resume(),Object(o.n)(a.resumeQueue),Q(this,"onResume",B(this,W(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(e=>{if(n.loop&&e.finished&&(!t||!e.noop)){const e=q(n);if(e)return this._update(e,!0)}return e})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(x(this));const r=!o.s.und(e.to),s=!o.s.und(e.from);if(r||s){if(!(t.callId>this._lastToId))return n(x(this));this._lastToId=t.callId}const{key:u,defaultProps:d,animation:b}=this,{to:p,from:m}=b;let{to:f=p,from:g=m}=e;!s||r||t.default&&!o.s.und(f)||(f=g),t.reverse&&([f,g]=[g,f]);const v=!Object(o.u)(g,m);v&&(b.from=g),g=Object(o.q)(g);const j=!Object(o.u)(f,p);j&&this._focus(f);const _=O(t.to),{config:E}=b,{decay:C,velocity:S}=E;(r||s)&&(E.velocity=0),t.config&&!_&&function(e,t,n){n&&(y(n=l({},n),t),t=l({},n,t)),y(e,t),Object.assign(e,t);for(const t in k)null==e[t]&&(e[t]=k[t]);let{mass:r,frequency:c,damping:i}=e;o.s.und(c)||(c<.01&&(c=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/c,2)*r,e.friction=4*Math.PI*i*r/c)}(E,i(t.config,u),t.config!==d.config?i(d.config,u):void 0);let w=Object(c.e)(this);if(!w||o.s.und(f))return n(B(this,!0));const P=o.s.und(t.reset)?s&&!t.default:!o.s.und(g)&&a(t.reset,u),R=P?g:this.get(),N=h(f),L=o.s.num(N)||o.s.arr(N)||Object(o.t)(N),M=!_&&(!L||a(d.immediate||t.immediate,u));if(j){const e=Object(c.f)(f);if(e!==w.constructor){if(!M)throw Error(`Cannot animate between ${w.constructor.name} and ${e.name}, as the "to" prop suggests`);w=this._set(N)}}const A=w.constructor;let D=Object(o.r)(f),H=!1;if(!D){const e=P||!F(this)&&v;(j||e)&&(H=Object(o.u)(h(R),N),D=!H),(Object(o.u)(b.immediate,M)||M)&&Object(o.u)(E.decay,C)&&Object(o.u)(E.velocity,S)||(D=!0)}if(H&&z(this)&&(b.changed&&!P?D=!0:D||this._stop(p)),!_&&((D||Object(o.r)(p))&&(b.values=w.getPayload(),b.toValues=Object(o.r)(f)?null:A==c.b?[1]:Object(o.y)(N)),b.immediate!=M&&(b.immediate=M,M||P||this._set(p)),D)){const{onRest:e}=b;Object(o.k)(X,e=>Z(this,t,e));const r=B(this,W(this,p));Object(o.n)(this._pendingCalls,r),this._pendingCalls.add(n),b.changed&&o.w.batchedUpdates(()=>{b.changed=!P,null==e||e(r,this),P?i(d.onRest,r):null==b.onStart||b.onStart(r,this)})}P&&this._set(R),_?n(T(t.to,t,this._state,this)):D?this._start():z(this)&&!j?this._pendingCalls.add(n):n(I(R))}_focus(e){const t=this.animation;e!==t.to&&(Object(o.p)(this)&&this._detach(),t.to=e,Object(o.p)(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Object(o.r)(t)&&(Object(o.c)(t,this),L(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Object(o.r)(e)&&Object(o.x)(e,this)}_set(e,t=!0){const n=Object(o.q)(e);if(!o.s.und(n)){const e=Object(c.e)(this);if(!e||!Object(o.u)(n,e.getValue())){const r=Object(c.f)(n);e&&e.constructor==r?e.setValue(n):Object(c.h)(this,r.create(n)),e&&o.w.batchedUpdates(()=>{this._onChange(n,t)})}}return Object(c.e)(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Q(this,"onStart",B(this,W(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),i(this.animation.onChange,e,this)),i(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Object(c.e)(this).reset(Object(o.q)(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),z(this)||(V(this,!0),H(this)||this._resume())}_resume(){o.b.skipAnimation?this.finish():o.o.start(this)}_stop(e,t){if(z(this)){V(this,!1);const n=this.animation;Object(o.k)(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Object(o.d)(this,{type:"idle",parent:this});const r=t?x(this.get()):B(this.get(),W(this,null!=e?e:n.to));Object(o.n)(this._pendingCalls,r),n.changed&&(n.changed=!1,Q(this,"onRest",r,this))}}}function W(e,t){const n=h(t),r=h(e.get());return Object(o.u)(r,n)}function q(e,t=e.loop,n=e.to){let o=i(t);if(o){const r=!0!==o&&f(o),c=(r||e).reverse,i=!r||r.reset;return K(l({},e,{loop:t,default:!1,pause:void 0,to:!c||O(n)?n:void 0,from:i?e.from:void 0,reset:i},r))}}function K(e){const{to:t,from:n}=e=f(e),r=new Set;return o.s.obj(t)&&Y(t,r),o.s.obj(n)&&Y(n,r),e.keys=r.size?Array.from(r):null,e}function $(e){const t=K(e);return o.s.und(t.default)&&(t.default=b(t)),t}function Y(e,t){Object(o.l)(e,(e,n)=>null!=e&&t.add(n))}const X=["onStart","onRest","onChange","onPause","onResume"];function Z(e,t,n){e.animation[n]=t[n]!==u(t,n)?s(t[n],e.key):void 0}function Q(e,t,...n){var o,r,c,l;null==(o=(r=e.animation)[t])||o.call(r,...n),null==(c=(l=e.defaultProps)[t])||c.call(l,...n)}const J=["onStart","onChange","onRest"];let ee=1;class te{constructor(e,t){this.id=ee++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start(l({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];o.s.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(K(e)),this}start(e){let{queue:t}=this;return e?t=Object(o.y)(e).map(K):this.queue=[],this._flush?this._flush(this,t):(ie(this,t),ne(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Object(o.k)(Object(o.y)(t),t=>n[t].stop(!!e))}else P(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(o.s.und(e))this.start({pause:!0});else{const t=this.springs;Object(o.k)(Object(o.y)(e),e=>t[e].pause())}return this}resume(e){if(o.s.und(e))this.start({pause:!1});else{const t=this.springs;Object(o.k)(Object(o.y)(e),e=>t[e].resume())}return this}each(e){Object(o.l)(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,c=this._changed.size>0;(r&&!this._started||c&&!this._started)&&(this._started=!0,Object(o.m)(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));const l=!r&&this._started,i=c||l&&n.size?this.get():null;c&&t.size&&Object(o.m)(t,([e,t])=>{t.value=i,e(t,this,this._item)}),l&&(this._started=!1,Object(o.m)(n,([e,t])=>{t.value=i,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}o.w.onFrame(this._onFrame)}}function ne(e,t){return Promise.all(t.map(t=>async function e(t,n,r){const{keys:c,to:l,from:i,loop:a,onRest:s,onResolve:d}=n,b=o.s.obj(n.default)&&n.default;a&&(n.loop=!1);!1===l&&(n.to=null);!1===i&&(n.from=null);const p=o.s.arr(l)||o.s.fun(l)?l:void 0;p?(n.to=void 0,n.onRest=void 0,b&&(b.onRest=void 0)):Object(o.k)(J,e=>{const r=n[e];if(o.s.fun(r)){const o=t._events[e];n[e]=({finished:e,cancelled:t})=>{const n=o.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):o.set(r,{value:null,finished:e||!1,cancelled:t||!1})},b&&(b[e]=n[e])}});const m=t._state;n.pause===!m.paused?(m.paused=n.pause,Object(o.n)(n.pause?m.pauseQueue:m.resumeQueue)):m.paused&&(n.pause=!0);const f=(c||Object.keys(t.springs)).map(e=>t.springs[e].start(n)),h=!0===n.cancel||!0===u(n,"cancel");(p||h&&m.asyncId)&&f.push(S(++t._lastAsyncId,{props:n,state:m,actions:{pause:o.v,resume:o.v,start(e,n){h?(P(m,t._lastAsyncId),n(x(t))):(e.onRest=s,n(T(p,e,m,t)))}}}));m.paused&&await new Promise(e=>{m.resumeQueue.add(e)});const g=w(t,await Promise.all(f));if(a&&g.finished&&(!r||!g.noop)){const o=q(n,a,l);if(o)return ie(t,[o]),e(t,o,!0)}d&&o.w.batchedUpdates(()=>d(g,t,t.item));return g}(e,t))).then(t=>w(e,t))}function oe(e,t){const n=l({},e.springs);return t&&Object(o.k)(Object(o.y)(t),e=>{o.s.und(e.keys)&&(e=K(e)),o.s.obj(e.to)||(e=l({},e,{to:void 0})),le(n,e,e=>ce(e))}),re(e,n),n}function re(e,t){Object(o.l)(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,Object(o.c)(t,e))})}function ce(e,t){const n=new U;return n.key=e,t&&Object(o.c)(n,t),n}function le(e,t,n){t.keys&&Object(o.k)(t.keys,o=>{(e[o]||(e[o]=n(o)))._prepareNode(t)})}function ie(e,t){Object(o.k)(t,t=>{le(e.springs,t,t=>ce(t,e))})}function ae(e,t){if(null==e)return{};var n,o,r={},c=Object.keys(e);for(o=0;o<c.length;o++)n=c[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}const se=["children"],ue=e=>{let{children:t}=e,n=ae(e,se);const c=Object(r.useContext)(de),l=n.pause||!!c.pause,i=n.immediate||!!c.immediate;n=Object(o.B)(()=>({pause:l,immediate:i}),[l,i]);const{Provider:a}=de;return r.createElement(a,{value:n},t)},de=(be=ue,pe={},Object.assign(be,r.createContext(pe)),be.Provider._context=be,be.Consumer._context=be,be);var be,pe;ue.Provider=de.Provider,ue.Consumer=de.Consumer;const me=()=>{const e=[],t=function(t){Object(o.i)();const r=[];return Object(o.k)(e,(e,c)=>{if(o.s.und(t))r.push(e.start());else{const o=n(t,e,c);o&&r.push(e.start(o))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return Object(o.k)(e,e=>e.pause(...arguments)),this},t.resume=function(){return Object(o.k)(e,e=>e.resume(...arguments)),this},t.set=function(t){Object(o.k)(e,e=>e.set(t))},t.start=function(t){const n=[];return Object(o.k)(e,(e,r)=>{if(o.s.und(t))n.push(e.start());else{const o=this._getProps(t,e,r);o&&n.push(e.start(o))}}),n},t.stop=function(){return Object(o.k)(e,e=>e.stop(...arguments)),this},t.update=function(t){return Object(o.k)(e,(e,n)=>e.update(this._getProps(t,e,n))),this};const n=function(e,t,n){return o.s.fun(e)?e(n,t):e};return t._getProps=n,t};function fe(e,t,n){const c=o.s.fun(t)&&t;c&&!n&&(n=[]);const i=Object(r.useMemo)(()=>c||3==arguments.length?me():void 0,[]),a=Object(r.useRef)(0),s=Object(o.z)(),u=Object(r.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){const n=oe(e,t);return a.current>0&&!u.queue.length&&!Object.keys(n).some(t=>!e.springs[t])?ne(e,t):new Promise(o=>{re(e,n),u.queue.push(()=>{o(ne(e,t))}),s()})}}),[]),d=Object(r.useRef)([...u.ctrls]),b=[],p=Object(o.D)(e)||0;function m(e,n){for(let o=e;o<n;o++){const e=d.current[o]||(d.current[o]=new te(null,u.flush)),n=c?c(o,e):t[o];n&&(b[o]=$(n))}}Object(r.useMemo)(()=>{Object(o.k)(d.current.slice(e,p),e=>{v(e,i),e.stop(!0)}),d.current.length=e,m(p,e)},[e]),Object(r.useMemo)(()=>{m(0,Math.min(p,e))},n);const f=d.current.map((e,t)=>oe(e,b[t])),h=Object(r.useContext)(ue),O=Object(o.D)(h),k=h!==O&&g(h);Object(o.A)(()=>{a.current++,u.ctrls=d.current;const{queue:e}=u;e.length&&(u.queue=[],Object(o.k)(e,e=>e())),Object(o.k)(d.current,(e,t)=>{null==i||i.add(e),k&&e.start({default:h});const n=b[t];n&&(j(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),Object(o.C)(()=>()=>{Object(o.k)(u.ctrls,e=>e.stop(!0))});const _=f.map(e=>l({},e));return i?[_,i]:_}function he(e,t){const n=o.s.fun(e),[[r],c]=fe(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,c]:r}let ge;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(ge||(ge={}));class Oe extends A{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=Object(o.f)(...t);const n=this._get(),r=Object(c.f)(n);Object(c.h)(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Object(o.u)(t,n)||(Object(c.e)(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&je(this._active)&&ke(this)}_get(){const e=o.s.arr(this.source)?this.source.map(o.q):Object(o.y)(Object(o.q)(this.source));return this.calc(...e)}_start(){this.idle&&!je(this._active)&&(this.idle=!1,Object(o.k)(Object(c.g)(this),e=>{e.done=!1}),o.b.skipAnimation?(o.w.batchedUpdates(()=>this.advance()),ke(this)):o.o.start(this))}_attach(){let e=1;Object(o.k)(Object(o.y)(this.source),t=>{Object(o.r)(t)&&Object(o.c)(t,this),L(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Object(o.k)(Object(o.y)(this.source),e=>{Object(o.r)(e)&&Object(o.x)(e,this)}),this._active.clear(),ke(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=Object(o.y)(this.source).reduce((e,t)=>Math.max(e,(L(t)?t.priority:0)+1),0))}}function ve(e){return!1!==e.idle}function je(e){return!e.size||Array.from(e).every(ve)}function ke(e){e.idle||(e.idle=!0,Object(o.k)(Object(c.g)(e),e=>{e.done=!0}),Object(o.d)(e,{type:"idle",parent:e}))}o.b.assign({createStringInterpolator:o.g,to:(e,t)=>new Oe(e,t)});o.o.advance},l3Sj:function(e,t){e.exports=window.wp.i18n},lJLt:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return c}));var o=n("l3Sj");const r={insertUsage:{}},c={alignWide:!1,supportsLayout:!0,colors:[{name:Object(o.__)("Black"),slug:"black",color:"#000000"},{name:Object(o.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(o.__)("White"),slug:"white",color:"#ffffff"},{name:Object(o.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(o.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(o.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(o.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(o.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(o.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(o.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(o.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(o.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:Object(o._x)("Small","font size name"),size:13,slug:"small"},{name:Object(o._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(o._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(o._x)("Large","font size name"),size:36,slug:"large"},{name:Object(o._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:Object(o.__)("Thumbnail")},{slug:"medium",name:Object(o.__)("Medium")},{slug:"large",name:Object(o.__)("Large")},{slug:"full",name:Object(o.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__experimentalSpotlightEntityBlocks:[],__unstableGalleryWithImageBlocks:!1,gradients:[{name:Object(o.__)("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:Object(o.__)("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:Object(o.__)("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:Object(o.__)("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:Object(o.__)("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:Object(o.__)("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:Object(o.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Object(o.__)("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:Object(o.__)("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:Object(o.__)("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:Object(o.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Object(o.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}]}},mdLt:function(e,t,n){"use strict";var o=n("GRId"),r=n("tI+e");t.a=function(e){let{title:t,icon:n,children:c}=e;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"block-editor-inserter__panel-header"},Object(o.createElement)("h2",{className:"block-editor-inserter__panel-title"},t),Object(o.createElement)(r.Icon,{icon:n})),Object(o.createElement)("div",{className:"block-editor-inserter__panel-content"},c))}},mlss:function(e,t,n){"use strict";var o=n("tI+e");const{Fill:r,Slot:c}=Object(o.createSlotFill)("__unstableInserterMenuExtension");r.Slot=c,t.a=r},nEW0:function(e,t,n){"use strict";n.d(t,"w",(function(){return r})),n.d(t,"a",(function(){return Oe})),n.d(t,"b",(function(){return M})),n.d(t,"c",(function(){return je})),n.d(t,"d",(function(){return ge})),n.d(t,"e",(function(){return q})),n.d(t,"f",(function(){return ue})),n.d(t,"g",(function(){return Be})),n.d(t,"h",(function(){return y})),n.d(t,"i",(function(){return Le})),n.d(t,"j",(function(){return Re})),n.d(t,"k",(function(){return S})),n.d(t,"l",(function(){return w})),n.d(t,"m",(function(){return B})),n.d(t,"n",(function(){return x})),n.d(t,"o",(function(){return H})),n.d(t,"p",(function(){return he})),n.d(t,"q",(function(){return fe})),n.d(t,"r",(function(){return me})),n.d(t,"s",(function(){return E})),n.d(t,"t",(function(){return Me})),n.d(t,"u",(function(){return C})),n.d(t,"v",(function(){return _})),n.d(t,"x",(function(){return ke})),n.d(t,"y",(function(){return I})),n.d(t,"z",(function(){return Fe})),n.d(t,"A",(function(){return Ge})),n.d(t,"B",(function(){return He})),n.d(t,"C",(function(){return Ae})),n.d(t,"D",(function(){return Ve}));let o=O();const r=e=>m(e,o);let c=O();r.write=e=>m(e,c);let l=O();r.onStart=e=>m(e,l);let i=O();r.onFrame=e=>m(e,i);let a=O();r.onFinish=e=>m(e,a);let s=[];r.setTimeout=(e,t)=>{let n=r.now()+t,o=()=>{let e=s.findIndex(e=>e.cancel==o);~e&&s.splice(e,1),j.count-=~e?1:0},c={time:n,handler:e,cancel:o};return s.splice(u(n),0,c),j.count+=1,f(),c};let u=e=>~(~s.findIndex(t=>t.time>e)||~s.length);r.cancel=e=>{o.delete(e),c.delete(e)},r.sync=e=>{p=!0,r.batchedUpdates(e),p=!1},r.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function o(...e){t=e,r.onStart(n)}return o.handler=e,o.cancel=()=>{l.delete(n),t=null},o};let d="undefined"!=typeof window?window.requestAnimationFrame:()=>{};r.use=e=>d=e,r.now="undefined"!=typeof performance?()=>performance.now():Date.now,r.batchedUpdates=e=>e(),r.catch=console.error,r.frameLoop="always",r.advance=()=>{"demand"!==r.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):g()};let b=-1,p=!1;function m(e,t){p?(t.delete(e),e(0)):(t.add(e),f())}function f(){b<0&&(b=0,"demand"!==r.frameLoop&&d(h))}function h(){~b&&(d(h),r.batchedUpdates(g))}function g(){let e=b;b=r.now();let t=u(b);t&&(v(s.splice(0,t),e=>e.handler()),j.count-=t),l.flush(),o.flush(e?Math.min(64,b-e):16.667),i.flush(),c.flush(),a.flush()}function O(){let e=new Set,t=e;return{add(n){j.count+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(j.count-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,j.count-=t.size,v(t,t=>t(n)&&e.add(t)),j.count+=e.size,t=e)}}}function v(e,t){e.forEach(e=>{try{t(e)}catch(e){r.catch(e)}})}const j={count:0,clear(){b=-1,s=[],l=O(),o=O(),i=O(),c=O(),a=O(),j.count=0}};var k=n("cDcd");function _(){}const y=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),E={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function C(e,t){if(E.arr(e)){if(!E.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}const S=(e,t)=>e.forEach(t);function w(e,t,n){if(E.arr(e))for(let o=0;o<e.length;o++)t.call(n,e[o],""+o);else for(const o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o)}const I=e=>E.und(e)?[]:E.arr(e)?e:[e];function B(e,t){if(e.size){const n=Array.from(e);e.clear(),S(n,t)}}const x=(e,...t)=>B(e,e=>e(...t));let T,P,R=null,N=!1,L=_;var M=Object.freeze({__proto__:null,get createStringInterpolator(){return T},get to(){return P},get colors(){return R},get skipAnimation(){return N},get willAdvance(){return L},assign:e=>{e.to&&(P=e.to),e.now&&(r.now=e.now),void 0!==e.colors&&(R=e.colors),null!=e.skipAnimation&&(N=e.skipAnimation),e.createStringInterpolator&&(T=e.createStringInterpolator),e.requestAnimationFrame&&r.use(e.requestAnimationFrame),e.batchedUpdates&&(r.batchedUpdates=e.batchedUpdates),e.willAdvance&&(L=e.willAdvance),e.frameLoop&&(r.frameLoop=e.frameLoop)}});const A=new Set;let D=[],F=[],z=0;const H={get idle(){return!A.size&&!D.length},start(e){z>e.priority?(A.add(e),r.onStart(V)):(G(e),r(W))},advance:W,sort(e){if(z)r.onFrame(()=>H.sort(e));else{const t=D.indexOf(e);~t&&(D.splice(t,1),U(e))}},clear(){D=[],A.clear()}};function V(){A.forEach(G),A.clear(),r(W)}function G(e){D.includes(e)||U(e)}function U(e){D.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(D,t=>t.priority>e.priority),0,e)}function W(e){const t=F;for(let n=0;n<D.length;n++){const o=D[n];z=o.priority,o.idle||(L(o),o.advance(e),o.idle||t.push(o))}return z=0,F=D,F.length=0,D=t,D.length>0}const q={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},K="[-+]?\\d*\\.?\\d+";function $(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const Y=new RegExp("rgb"+$(K,K,K)),X=new RegExp("rgba"+$(K,K,K,K)),Z=new RegExp("hsl"+$(K,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),Q=new RegExp("hsla"+$(K,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",K)),J=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ee=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,te=/^#([0-9a-fA-F]{6})$/,ne=/^#([0-9a-fA-F]{8})$/;function oe(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function re(e,t,n){const o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,c=oe(r,o,e+1/3),l=oe(r,o,e),i=oe(r,o,e-1/3);return Math.round(255*c)<<24|Math.round(255*l)<<16|Math.round(255*i)<<8}function ce(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function le(e){return(parseFloat(e)%360+360)%360/360}function ie(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ae(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function se(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=te.exec(e))?parseInt(t[1]+"ff",16)>>>0:R&&void 0!==R[e]?R[e]:(t=Y.exec(e))?(ce(t[1])<<24|ce(t[2])<<16|ce(t[3])<<8|255)>>>0:(t=X.exec(e))?(ce(t[1])<<24|ce(t[2])<<16|ce(t[3])<<8|ie(t[4]))>>>0:(t=J.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ne.exec(e))?parseInt(t[1],16)>>>0:(t=ee.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Z.exec(e))?(255|re(le(t[1]),ae(t[2]),ae(t[3])))>>>0:(t=Q.exec(e))?(re(le(t[1]),ae(t[2]),ae(t[3]))|ie(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const ue=(e,t,n)=>{if(E.fun(e))return e;if(E.arr(e))return ue({range:e,output:t,extrapolate:n});if(E.str(e.output[0]))return T(e);const o=e,r=o.output,c=o.range||[0,1],l=o.extrapolateLeft||o.extrapolate||"extend",i=o.extrapolateRight||o.extrapolate||"extend",a=o.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,c);return function(e,t,n,o,r,c,l,i,a){let s=a?a(e):e;if(s<t){if("identity"===l)return s;"clamp"===l&&(s=t)}if(s>n){if("identity"===i)return s;"clamp"===i&&(s=n)}if(o===r)return o;if(t===n)return e<=t?o:r;t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t);s=c(s),o===-1/0?s=-s:r===1/0?s+=o:s=s*(r-o)+o;return s}(e,c[t],c[t+1],r[t],r[t+1],a,l,i,o.map)}};function de(){return(de=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}const be=Symbol.for("FluidValue.get"),pe=Symbol.for("FluidValue.observers"),me=e=>Boolean(e&&e[be]),fe=e=>e&&e[be]?e[be]():e,he=e=>e[pe]||null;function ge(e,t){let n=e[pe];n&&n.forEach(e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)})}class Oe{constructor(e){if(this[be]=void 0,this[pe]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");ve(this,e)}}const ve=(e,t)=>_e(e,be,t);function je(e,t){if(e[be]){let n=e[pe];n||_e(e,pe,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function ke(e,t){let n=e[pe];if(n&&n.has(t)){const o=n.size-1;o?n.delete(t):e[pe]=null,e.observerRemoved&&e.observerRemoved(o,t)}}const _e=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ye=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ee=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ce=new RegExp(`(${ye.source})(%|[a-z]+)`,"i");let Se;const we=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ie=(e,t,n,o,r)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(o)}, ${r})`,Be=e=>{Se||(Se=R?new RegExp(`(${Object.keys(R).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(e=>fe(e).replace(Ee,se).replace(Se,se)),n=t.map(e=>e.match(ye).map(Number)),o=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>ue(de({},e,{output:t})));return e=>{var n;const r=!Ce.test(t[0])&&(null==(n=t.find(e=>Ce.test(e)))?void 0:n.replace(ye,""));let c=0;return t[0].replace(ye,()=>`${o[c++](e)}${r||""}`).replace(we,Ie)}},xe="react-spring: ",Te=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(xe+"once requires a function parameter");return(...e)=>{n||(t(...e),n=!0)}},Pe=Te(console.warn);function Re(){Pe(xe+'The "interpolate" function is deprecated in v9 (use "to" instead)')}const Ne=Te(console.warn);function Le(){Ne(xe+'Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions')}function Me(e){return E.str(e)&&("#"==e[0]||/\d/.test(e)||e in(R||{}))}const Ae=e=>Object(k.useEffect)(e,De),De=[];function Fe(){const e=Object(k.useState)()[1],t=Object(k.useState)(ze)[0];return Ae(t.unmount),()=>{t.current&&e({})}}function ze(){const e={current:!0,unmount:()=>()=>{e.current=!1}};return e}function He(e,t){const[n]=Object(k.useState)(()=>({inputs:t,result:e()})),o=Object(k.useRef)(),r=o.current;let c=r;if(c){Boolean(t&&c.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,c.inputs))||(c={inputs:t,result:e()})}else c=n;return Object(k.useEffect)(()=>{o.current=c,r==n&&(n.inputs=n.result=void 0)},[c]),c.result}function Ve(e){const t=Object(k.useRef)();return Object(k.useEffect)(()=>{t.current=e}),t.current}const Ge="undefined"!=typeof window&&window.document&&window.document.createElement?k.useLayoutEffect:k.useEffect},nQUx:function(e,t,n){"use strict";var o=n("YLtl"),r=n("GRId"),c=n("HSyU"),l=n("1ZqX"),i=n("l3Sj"),a=n("onLe"),s=n("BhPs");t.a=(e,t)=>{const{patternCategories:n,patterns:u}=Object(l.useSelect)(e=>{const{__experimentalGetAllowedPatterns:n,getSettings:o}=e(s.a);return{patterns:n(t),patternCategories:o().__experimentalBlockPatternCategories}},[t]),{createSuccessNotice:d}=Object(l.useDispatch)(a.store);return[u,n,Object(r.useCallback)((t,n)=>{e(Object(o.map)(n,e=>Object(c.cloneBlock)(e)),t.name),d(Object(i.sprintf)(Object(i.__)('Block pattern "%s" inserted.'),t.title),{type:"snackbar"})},[])]}},nlh6:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return w}));var o=n("TSYQ"),r=n.n(o),c=n("GRId"),l=n("l3Sj"),i=n("HSyU"),a=n("K9lf"),s=n("1ZqX"),u=(n("Z23Y"),n("Xkls")),d=n("jBNB"),b=n("z+q2"),p=n("kBLm"),m=n("ur0x"),f=n("Q2Xw"),h=n("YZt4"),g=n("ERVc"),O=n("+6d5"),v=n("6jxZ"),j=n("felP"),k=n("JDWi"),_=n("G4zt"),y=n("PKbb"),E=n("hw9B"),C=n("rHRV"),S=n("BhPs");function w(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{__unstableIsHtml:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{clientId:o,className:w,wrapperProps:I={},isAligned:B}=Object(c.useContext)(d.a),{index:x,mode:T,name:P,blockApiVersion:R,blockTitle:N,isPartOfSelection:L,adjustScrolling:M,enableAnimation:A}=Object(s.useSelect)(e=>{const{getBlockRootClientId:t,getBlockIndex:n,getBlockMode:r,getBlockName:c,isTyping:l,getGlobalBlockCount:a,isBlockSelected:s,isBlockMultiSelected:u,isAncestorMultiSelected:d,isFirstMultiSelectedBlock:b}=e(S.a),p=s(o),m=u(o)||d(o),f=c(o),h=t(o),g=Object(i.getBlockType)(f);return{index:n(o,h),mode:r(o),name:f,blockApiVersion:(null==g?void 0:g.apiVersion)||1,blockTitle:null==g?void 0:g.title,isPartOfSelection:p||m,adjustScrolling:p||b(o),enableAnimation:!l()&&a()<=200}},[o]),D=Object(l.sprintf)(Object(l.__)("Block: %s"),N),F="html"!==T||n?"":"-visual",z=Object(a.useMergeRefs)([t.ref,Object(b.a)(o),Object(_.a)(o),Object(y.c)(o),Object(v.a)(o),Object(E.a)(o),Object(j.a)(o),Object(k.a)(o),Object(p.a)(),Object(C.a)(),Object(u.a)({isSelected:L,adjustScrolling:M,enableAnimation:A,triggerAnimationOnChange:x})]),H=Object(m.c)();return R<2&&o===H.clientId&&void 0!==e&&e.env,{...I,...t,ref:z,id:`block-${o}${F}`,tabIndex:0,role:"document","aria-label":D,"data-block":o,"data-type":P,"data-title":N,className:r()(r()("block-editor-block-list__block",{"wp-block":!B}),w,t.className,I.className,Object(f.a)(o),Object(h.a)(o),Object(g.a)(o),Object(O.a)(o)),style:{...I.style,...t.style}}}w.save=i.__unstableGetBlockProps}).call(this,n("8oxB"))},o97j:function(e,t,n){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen,isInWorker:!o};e.exports=r},onLe:function(e,t){e.exports=window.wp.notices},p3NJ:function(e,t,n){"use strict";n.d(t,"b",(function(){return R}));var o=n("wx14"),r=n("GRId"),c=n("TSYQ"),l=n.n(c),i=n("K9lf"),a=n("1ZqX"),s=n("HSyU"),u=n("I5Hl"),d=n("ur0x");var b=Object(i.createHigherOrderComponent)(e=>t=>{const{clientId:n}=Object(d.c)();return Object(r.createElement)(e,Object(o.a)({},t,{clientId:n}))},"withClientId");var p=b(e=>{let{clientId:t,showSeparator:n,isFloating:o,onAddBlock:c,isToggle:i}=e;return Object(r.createElement)(u.b,{className:l()({"block-list-appender__toggle":i}),rootClientId:t,showSeparator:n,isFloating:o,onAddBlock:c})}),m=n("YLtl"),f=n("5L8O"),h=n("BhPs");var g=Object(i.compose)([b,Object(a.withSelect)((e,t)=>{let{clientId:n}=t;const{getBlockOrder:o}=e(h.a),r=o(n);return{lastBlockClientId:Object(m.last)(r)}})])(e=>{let{clientId:t,lastBlockClientId:n}=e;return Object(r.createElement)(f.a,{rootClientId:t,lastBlockClientId:n})}),O=n("rl8x"),v=n.n(O),j=n("PPMp");const k=new WeakMap;var _=n("VyCT"),y=n("uoCR"),E=n("JGYp"),C=n("l3Sj"),S=n("/lNF"),w=n("vIlp");function I(e,t,n){const o="horizontal"===n?["left","right"]:["top","bottom"],r=Object(C.isRTL)();let c,l;return e.forEach((e,n)=>{const i=e.getBoundingClientRect(),[a,s]=Object(w.a)(t,i,o);if(void 0===l||a<l){l=a,c=n+("bottom"===s||!r&&"right"===s||r&&"left"===s?1:0)}}),c}function B(){let{rootClientId:e=""}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[t,n]=Object(r.useState)(null),o=Object(a.useSelect)(t=>{const{getTemplateLock:n}=t(h.a);return"all"===n(e)},[e]),{getBlockListSettings:c}=Object(a.useSelect)(h.a),{showInsertionPoint:l,hideInsertionPoint:s}=Object(a.useDispatch)(h.a),u=Object(S.a)(e,t),d=Object(i.useThrottle)(Object(r.useCallback)((t,o)=>{var r;const i=I(Array.from(o.children).filter(e=>e.classList.contains("wp-block")),{x:t.clientX,y:t.clientY},null===(r=c(e))||void 0===r?void 0:r.orientation);n(void 0===i?0:i),null!==i&&l(e,i)},[]),200);return Object(i.__experimentalUseDropZone)({isDisabled:o,onDrop:u,onDragOver(e){d(e,e.currentTarget)},onDragLeave(){d.cancel(),s(),n(null)},onDragEnd(){d.cancel(),s(),n(null)}})}function x(e){const{clientId:t,allowedBlocks:n,__experimentalDefaultBlock:o,__experimentalDirectInsert:c,template:l,templateLock:i,wrapperRef:u,templateInsertUpdatesSelection:d,__experimentalCaptureToolbars:b,__experimentalAppenderTagName:p,renderAppender:f,orientation:g,placeholder:O,__experimentalLayout:E}=e;!function(e,t,n,o,c,l,i,s){const{updateBlockListSettings:u}=Object(a.useDispatch)(h.a),{blockListSettings:d,parentLock:b}=Object(a.useSelect)(t=>{const n=t(h.a).getBlockRootClientId(e);return{blockListSettings:t(h.a).getBlockListSettings(e),parentLock:t(h.a).getTemplateLock(n)}},[e]),p=Object(r.useMemo)(()=>t,t);Object(r.useLayoutEffect)(()=>{const t={allowedBlocks:p,templateLock:void 0===c?b:c};if(void 0!==l&&(t.__experimentalCaptureToolbars=l),void 0!==i)t.orientation=i;else{const e=Object(j.a)(null==s?void 0:s.type);t.orientation=e.getOrientation(s)}void 0!==n&&(t.__experimentalDefaultBlock=n),void 0!==o&&(t.__experimentalDirectInsert=o),v()(d,t)||u(e,t)},[e,d,p,n,o,c,b,l,i,u,s])}(t,n,o,c,i,b,g,E),function(e,t,n,o){const{getSelectedBlocksInitialCaretPosition:c}=Object(a.useSelect)(h.a),{replaceInnerBlocks:l}=Object(a.useDispatch)(h.a),i=Object(a.useSelect)(t=>t(h.a).getBlocks(e),[e]),u=Object(r.useRef)(null);Object(r.useLayoutEffect)(()=>{if(0===i.length||"all"===n){if(!Object(m.isEqual)(t,u.current)){u.current=t;const n=Object(s.synchronizeBlocksWithTemplate)(i,t);Object(m.isEqual)(n,i)||l(e,n,0===i.length&&o&&0!==n.length,c())}}},[i,t,n,e])}(t,l,i,d);const C=Object(a.useSelect)(e=>{const n=e(h.a).getBlock(t),o=Object(s.getBlockType)(n.name);if(o&&o.providesContext)return function(e,t){k.has(t)||k.set(t,new WeakMap);const n=k.get(t);if(!n.has(e)){const o=Object(m.mapValues)(t.providesContext,t=>e[t]);n.set(e,o)}return n.get(e)}(n.attributes,o)},[t]);return Object(r.createElement)(y.a,{value:C},Object(r.createElement)(_.a,{rootClientId:t,renderAppender:f,__experimentalAppenderTagName:p,__experimentalLayout:E,wrapperRef:u,placeholder:O}))}function T(e){return Object(E.a)(e),Object(r.createElement)(x,e)}const P=Object(r.forwardRef)((e,t)=>{const n=R({ref:t},e);return Object(r.createElement)("div",{className:"block-editor-inner-blocks"},Object(r.createElement)("div",n))});function R(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{clientId:n}=Object(d.c)(),c=Object(i.useViewportMatch)("medium","<"),{__experimentalCaptureToolbars:u,hasOverlay:b}=Object(a.useSelect)(e=>{if(!n)return{};const{getBlockName:t,isBlockSelected:o,hasSelectedInnerBlock:r,isNavigationMode:l}=e(h.a),i=t(n),a=l()||c;return{__experimentalCaptureToolbars:e(s.store).hasBlockSupport(i,"__experimentalExposeControlsToChildren",!1),hasOverlay:"core/template"!==i&&!o(n)&&!r(n,!0)&&a}},[n,c]),p=Object(i.useMergeRefs)([e.ref,B({rootClientId:n})]),m={__experimentalCaptureToolbars:u,...t},f=m.value&&m.onChange?T:x;return{...e,ref:p,className:l()(e.className,"block-editor-block-list__layout",{"has-overlay":b}),children:n?Object(r.createElement)(f,Object(o.a)({},m,{clientId:n})):Object(r.createElement)(_.a,t)}}R.save=s.__unstableGetInnerBlocksProps,P.DefaultBlockAppender=g,P.ButtonBlockAppender=p,P.Content=()=>R.save().children;t.a=P},pOGT:function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return m}));var o=n("YLtl");const r=e=>e.name||"",c=e=>e.title,l=e=>e.description||"",i=e=>e.keywords||[],a=e=>e.category,s=()=>null;function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=Object(o.deburr)(e),e=e.replace(/^\//,""),e=e.toLowerCase(),e}const d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Object(o.words)(u(e))},b=(e,t)=>Object(o.differenceWith)(e,d(t),(e,t)=>t.includes(e)),p=(e,t,n,r)=>{if(0===d(r).length)return e;return m(e,r,{getCategory:e=>{var n;return null===(n=Object(o.find)(t,{slug:e.category}))||void 0===n?void 0:n.title},getCollection:e=>{var t;return null===(t=n[e.name.split("/")[0]])||void 0===t?void 0:t.title}})},m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=d(t);if(0===o.length)return e;const r=e.map(e=>[e,f(e,t,n)]).filter(e=>{let[,t]=e;return t>0});return r.sort((e,t)=>{let[,n]=e,[,o]=t;return o-n}),r.map(e=>{let[t]=e;return t})};function f(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{getName:d=r,getTitle:p=c,getDescription:m=l,getKeywords:f=i,getCategory:h=a,getCollection:g=s}=n,O=d(e),v=p(e),j=m(e),k=f(e),_=h(e),y=g(e),E=u(t),C=u(v);let S=0;if(E===C)S+=30;else if(C.startsWith(E))S+=20;else{const e=[O,v,j,...k,_,y].join(" "),t=Object(o.words)(E);0===b(t,e).length&&(S+=10)}return 0!==S&&O.startsWith("core/")&&S++,S}},pPDe:function(e,t,n){"use strict";var o,r;function c(e){return[e]}function l(){var e={clear:function(){e.head=null}};return e}function i(e,t,n){var o;if(e.length!==t.length)return!1;for(o=n;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}o={},r="undefined"!=typeof WeakMap,t.a=function(e,t){var n,a;function s(){n=r?new WeakMap:l()}function u(){var n,o,r,c,l,s=arguments.length;for(c=new Array(s),r=0;r<s;r++)c[r]=arguments[r];for(l=t.apply(null,c),(n=a(l)).isUniqueByDependants||(n.lastDependants&&!i(l,n.lastDependants,0)&&n.clear(),n.lastDependants=l),o=n.head;o;){if(i(o.args,c,1))return o!==n.head&&(o.prev.next=o.next,o.next&&(o.next.prev=o.prev),o.next=n.head,o.prev=null,n.head.prev=o,n.head=o),o.val;o=o.next}return o={val:e.apply(null,c)},c[0]=null,o.args=c,n.head&&(n.head.prev=o,o.next=n.head),n.head=o,o.val}return t||(t=c),a=r?function(e){var t,r,c,i,a,s=n,u=!0;for(t=0;t<e.length;t++){if(r=e[t],!(a=r)||"object"!=typeof a){u=!1;break}s.has(r)?s=s.get(r):(c=new WeakMap,s.set(r,c),s=c)}return s.has(o)||((i=l()).isUniqueByDependants=u,s.set(o,i)),s.get(o)}:function(){return n},u.getDependants=t,u.clear=s,s(),u}},pXCJ:function(e,t,n){"use strict";var o=n("wx14"),r=n("GRId"),c=n("YLtl"),l=n("tI+e"),i=n("1ZqX"),a=n("HSyU"),s=n("BhPs");var u=n("l3Sj");function d(e){let{clientIds:t,isGroupable:n,isUngroupable:o,blocksSelection:c,groupingBlockName:d,onClose:b=(()=>{})}=e;const{replaceBlocks:p}=Object(i.useDispatch)(s.a);return n||o?Object(r.createElement)(r.Fragment,null,n&&Object(r.createElement)(l.MenuItem,{onClick:()=>{(()=>{const e=Object(a.switchToBlockType)(c,d);e&&p(t,e)})(),b()}},Object(u._x)("Group","verb")),o&&Object(r.createElement)(l.MenuItem,{onClick:()=>{(()=>{const e=c[0].innerBlocks;e.length&&p(t,e)})(),b()}},Object(u._x)("Ungroup","Ungrouping blocks from within a Group block back into individual blocks within the Editor "))):null}const{Fill:b,Slot:p}=Object(l.createSlotFill)("BlockSettingsMenuControls");function m(e){let{...t}=e;return Object(r.createElement)(l.__experimentalStyleProvider,{document:document},Object(r.createElement)(b,t))}m.Slot=e=>{let{fillProps:t,clientIds:n=null}=e;const{selectedBlocks:u,selectedClientIds:b}=Object(i.useSelect)(e=>{const{getBlocksByClientId:t,getSelectedBlockClientIds:o}=e(s.a),r=null!==n?n:o();return{selectedBlocks:Object(c.map)(Object(c.compact)(t(r)),e=>e.name),selectedClientIds:r}},[n]),m=function(){const{clientIds:e,isGroupable:t,isUngroupable:n,blocksSelection:o,groupingBlockName:r}=Object(i.useSelect)(e=>{var t;const{getBlockRootClientId:n,getBlocksByClientId:o,canInsertBlockType:r,getSelectedBlockClientIds:c}=e(s.a),{getGroupingBlockName:l}=e(a.store),i=c(),u=l(),d=r(u,null!=i&&i.length?n(i[0]):void 0),b=o(i),p=1===b.length&&(null===(t=b[0])||void 0===t?void 0:t.name)===u;return{clientIds:i,isGroupable:d&&b.length&&!p,isUngroupable:p&&!!b[0].innerBlocks.length,blocksSelection:b,groupingBlockName:u}},[]);return{clientIds:e,isGroupable:t,isUngroupable:n,blocksSelection:o,groupingBlockName:r}}(),{isGroupable:f,isUngroupable:h}=m,g=f||h;return Object(r.createElement)(p,{fillProps:{...t,selectedBlocks:u,selectedClientIds:b}},e=>{if((null==e?void 0:e.length)>0||g)return Object(r.createElement)(l.MenuGroup,null,e,Object(r.createElement)(d,Object(o.a)({},m,{onClose:null==t?void 0:t.onClose})))})};t.a=m},plpT:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"}));t.a=c},q3tz:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("GRId"),r=n("l3Sj"),c=n("tI+e"),l=n("xN+R"),i=n("7SSY");function a(e){let{count:t,icon:n}=e;return Object(o.createElement)("div",{className:"block-editor-block-draggable-chip-wrapper"},Object(o.createElement)("div",{className:"block-editor-block-draggable-chip"},Object(o.createElement)(c.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content"},Object(o.createElement)(c.FlexItem,null,n?Object(o.createElement)(i.a,{icon:n}):Object(r.sprintf)(Object(r._n)("%d block","%d blocks",t),t)),Object(o.createElement)(c.FlexItem,null,Object(o.createElement)(i.a,{icon:l.a})))))}},qRz9:function(e,t){e.exports=window.wp.richText},qrxh:function(e,t,n){"use strict";var o=n("wx14"),r=n("GRId"),c=n("YLtl"),l=n("TSYQ"),i=n.n(l),a=n("gdqT"),s=n("l3Sj"),u=n("tI+e"),d=n("1ZqX"),b=n("K9lf"),p=n("HSyU"),m=n("Q4Sy"),f=n("xZzQ"),h=n("Wg7J"),g=n("AORF"),O=n("nQUx"),v=n("+G0a"),j=n("BhPs");function k(e){let{onSelect:t,rootClientId:n,clientId:o,isAppender:c}=e;const[l,a]=Object(r.useState)(""),[b,p]=Object(g.a)({onSelect:t,rootClientId:n,clientId:o,isAppender:c}),[m]=Object(v.a)(b,p),[f]=Object(O.a)(p,b),k=f.length&&!!l,_=k&&f.length>6||m.length>6,{setInserterIsOpened:y,insertionIndex:E}=Object(d.useSelect)(e=>{const{getSettings:t,getBlockIndex:r,getBlockCount:c}=e(j.a),l=r(o,n);return{setInserterIsOpened:t().__experimentalSetIsInserterOpened,insertionIndex:-1===l?c():l}},[o,n]);Object(r.useEffect)(()=>{y&&y(!1)},[y]);return Object(r.createElement)("div",{className:i()("block-editor-inserter__quick-inserter",{"has-search":_,"has-expand":y})},_&&Object(r.createElement)(u.SearchControl,{className:"block-editor-inserter__search",value:l,onChange:e=>{a(e)},label:Object(s.__)("Search for blocks and patterns"),placeholder:Object(s.__)("Search")}),Object(r.createElement)("div",{className:"block-editor-inserter__quick-inserter-results"},Object(r.createElement)(h.a,{filterValue:l,onSelect:t,rootClientId:n,clientId:o,isAppender:c,maxBlockPatterns:k?2:0,maxBlockTypes:6,isDraggable:!1})),y&&Object(r.createElement)(u.Button,{className:"block-editor-inserter__quick-inserter-expand",onClick:()=>{y({rootClientId:n,insertionIndex:E,filterValue:l})},"aria-label":Object(s.__)("Browse all. This will open the main inserter panel in the editor toolbar.")},Object(s.__)("Browse all")))}const _=e=>{let t,{onToggle:n,disabled:c,isOpen:l,blockTitle:i,hasSingleBlockType:a,toggleProps:d={}}=e;t=a?Object(s.sprintf)(Object(s._x)("Add %s","directly add the only allowed block"),i):Object(s._x)("Add block","Generic label for block inserter button");const{onClick:b,...p}=d;return Object(r.createElement)(u.Button,Object(o.a)({icon:m.a,label:t,tooltipPosition:"bottom",onClick:function(e){n&&n(e),b&&b(e)},className:"block-editor-inserter__toggle","aria-haspopup":!a&&"true","aria-expanded":!a&&l,disabled:c},p))};class y extends r.Component{constructor(){super(...arguments),this.onToggle=this.onToggle.bind(this),this.renderToggle=this.renderToggle.bind(this),this.renderContent=this.renderContent.bind(this)}onToggle(e){const{onToggle:t}=this.props;t&&t(e)}renderToggle(e){let{onToggle:t,isOpen:n}=e;const{disabled:o,blockTitle:r,hasSingleBlockType:c,directInsertBlock:l,toggleProps:i,hasItems:a,renderToggle:s=_}=this.props;return s({onToggle:t,isOpen:n,disabled:o||!a,blockTitle:r,hasSingleBlockType:c,directInsertBlock:l,toggleProps:i})}renderContent(e){let{onClose:t}=e;const{rootClientId:n,clientId:o,isAppender:c,showInserterHelpPanel:l,__experimentalIsQuick:i}=this.props;return i?Object(r.createElement)(k,{onSelect:()=>{t()},rootClientId:n,clientId:o,isAppender:c}):Object(r.createElement)(f.a,{onSelect:()=>{t()},rootClientId:n,clientId:o,isAppender:c,showInserterHelpPanel:l})}render(){const{position:e,hasSingleBlockType:t,directInsertBlock:n,insertOnlyAllowedBlock:o,__experimentalIsQuick:c,onSelectOrClose:l}=this.props;return t||null!=n&&n.length?this.renderToggle({onToggle:o}):Object(r.createElement)(u.Dropdown,{className:"block-editor-inserter",contentClassName:i()("block-editor-inserter__popover",{"is-quick":c}),position:e,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(s.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent,onClose:l})}}t.a=Object(b.compose)([Object(d.withSelect)((e,t)=>{let{clientId:n,rootClientId:o}=t;const{getBlockRootClientId:r,hasInserterItems:l,__experimentalGetAllowedBlocks:i,__experimentalGetDirectInsertBlock:a}=e(j.a),{getBlockVariations:s}=e(p.store);o=o||r(n)||void 0;const u=i(o),d=a(o),b=1===Object(c.size)(u)&&0===Object(c.size)(s(u[0].name,"inserter"));let m=!1;return b&&(m=u[0]),{hasItems:l(o),hasSingleBlockType:b,blockTitle:m?m.title:"",allowedBlockType:m,directInsertBlock:d,rootClientId:o}}),Object(d.withDispatch)((e,t,n)=>{let{select:o}=n;return{insertOnlyAllowedBlock(){const{rootClientId:n,clientId:r,isAppender:c,hasSingleBlockType:l,allowedBlockType:i,directInsertBlock:u,onSelectOrClose:d}=t;if(!(l||null!=u&&u.length))return;const{insertBlock:b}=e(j.a);b(null!=u&&u.length?Object(p.createBlock)(...u):Object(p.createBlock)(i.name),function(){const{getBlockIndex:e,getBlockSelectionEnd:t,getBlockOrder:l,getBlockRootClientId:i}=o(j.a);if(r)return e(r,n);const a=t();return!c&&a&&i(a)===n?e(a,n)+1:l(n).length}(),n),d&&d();const m=Object(s.sprintf)(Object(s.__)("%s block added"),i.title);Object(a.speak)(m)}}}),Object(b.ifCondition)(e=>{let{hasItems:t,isAppender:n,rootClientId:o,clientId:r}=e;return t||!n&&!o&&!r})])(y)},rH4q:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"}));t.a=c},rHRV:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n("K9lf"),r=n("GRId"),c=n("VyCT");function l(){const e=Object(r.useContext)(c.b);return Object(o.useRefEffect)(t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}},[e])}},rl8x:function(e,t){e.exports=window.wp.isShallowEqual},rmEH:function(e,t){e.exports=window.wp.htmlEntities},smQA:function(e,t,n){"use strict";function o(){}function r(e,t,n,o,r){for(var c=0,l=t.length,i=0,a=0;c<l;c++){var s=t[c];if(s.removed){if(s.value=e.join(o.slice(a,a+s.count)),a+=s.count,c&&t[c-1].added){var u=t[c-1];t[c-1]=t[c],t[c]=u}}else{if(!s.added&&r){var d=n.slice(i,i+s.count);d=d.map((function(e,t){var n=o[a+t];return n.length>e.length?n:e})),s.value=e.join(d)}else s.value=e.join(n.slice(i,i+s.count));i+=s.count,s.added||(a+=s.count)}}var b=t[l-1];return l>1&&"string"==typeof b.value&&(b.added||b.removed)&&e.equals("",b.value)&&(t[l-2].value+=b.value,t.pop()),t}function c(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o,o.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.callback;"function"==typeof n&&(o=n,n={}),this.options=n;var l=this;function i(e){return o?(setTimeout((function(){o(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var a=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,d=a+s,b=[{newPos:-1,components:[]}],p=this.extractCommon(b[0],t,e,0);if(b[0].newPos+1>=a&&p+1>=s)return i([{value:this.join(t),count:t.length}]);function m(){for(var n=-1*u;n<=u;n+=2){var o=void 0,d=b[n-1],p=b[n+1],m=(p?p.newPos:0)-n;d&&(b[n-1]=void 0);var f=d&&d.newPos+1<a,h=p&&0<=m&&m<s;if(f||h){if(!f||h&&d.newPos<p.newPos?(o=c(p),l.pushComponent(o.components,void 0,!0)):((o=d).newPos++,l.pushComponent(o.components,!0,void 0)),m=l.extractCommon(o,t,e,n),o.newPos+1>=a&&m+1>=s)return i(r(l,o.components,t,e,l.useLongestToken));b[n]=o}else b[n]=void 0}u++}if(o)!function e(){setTimeout((function(){if(u>d)return o();m()||e()}),0)}();else for(;u<=d;){var f=m();if(f)return f}},pushComponent:function(e,t,n){var o=e[e.length-1];o&&o.added===t&&o.removed===n?e[e.length-1]={count:o.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,o){for(var r=t.length,c=n.length,l=e.newPos,i=l-o,a=0;l+1<r&&i+1<c&&this.equals(t[l+1],n[i+1]);)l++,i++,a++;return a&&e.components.push({count:a}),e.newPos=l,i},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}},suLj:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"}));t.a=c},"tI+e":function(e,t){e.exports=window.wp.components},tr0p:function(e,t,n){"use strict";n.r(t),n.d(t,"__experimentalGetBorderClassesAndStyles",(function(){return Ct})),n.d(t,"__experimentalUseBorderProps",(function(){return St})),n.d(t,"__experimentalGetColorClassesAndStyles",(function(){return wt})),n.d(t,"__experimentalUseColorProps",(function(){return It})),n.d(t,"__experimentalUseCustomSides",(function(){return Ye})),n.d(t,"__experimentalGetSpacingClassesAndStyles",(function(){return Bt})),n.d(t,"useCachedTruthy",(function(){return xt})),n.d(t,"getColorClassName",(function(){return Tt.gc})),n.d(t,"getColorObjectByAttributeValues",(function(){return Tt.hc})),n.d(t,"getColorObjectByColorValue",(function(){return Tt.ic})),n.d(t,"createCustomColorsHOC",(function(){return Tt.fc})),n.d(t,"withColors",(function(){return Tt.uc})),n.d(t,"__experimentalGetGradientClass",(function(){return Tt.xb})),n.d(t,"getGradientValueBySlug",(function(){return Tt.nc})),n.d(t,"__experimentalGetGradientObjectByGradientValue",(function(){return Tt.yb})),n.d(t,"getGradientSlugByValue",(function(){return Tt.mc})),n.d(t,"__experimentalUseGradient",(function(){return Tt.Rb})),n.d(t,"getFontSize",(function(){return Tt.jc})),n.d(t,"getFontSizeClass",(function(){return Tt.kc})),n.d(t,"getFontSizeObjectByValue",(function(){return Tt.lc})),n.d(t,"FontSizePicker",(function(){return Tt.I})),n.d(t,"withFontSizes",(function(){return Tt.vc})),n.d(t,"AlignmentControl",(function(){return Tt.a})),n.d(t,"AlignmentToolbar",(function(){return Tt.b})),n.d(t,"Autocomplete",(function(){return Tt.c})),n.d(t,"BlockAlignmentControl",(function(){return Tt.d})),n.d(t,"BlockAlignmentToolbar",(function(){return Tt.e})),n.d(t,"__experimentalBlockFullHeightAligmentControl",(function(){return Tt.nb})),n.d(t,"__experimentalBlockAlignmentMatrixControl",(function(){return Tt.lb})),n.d(t,"BlockBreadcrumb",(function(){return Tt.f})),n.d(t,"__experimentalBlockContentOverlay",(function(){return Tt.mb})),n.d(t,"BlockContextProvider",(function(){return Tt.h})),n.d(t,"BlockControls",(function(){return Tt.i})),n.d(t,"BlockFormatControls",(function(){return Tt.m})),n.d(t,"BlockColorsStyleSelector",(function(){return Tt.g})),n.d(t,"BlockEdit",(function(){return Tt.j})),n.d(t,"useBlockEditContext",(function(){return Tt.pc})),n.d(t,"BlockIcon",(function(){return Tt.n})),n.d(t,"BlockNavigationDropdown",(function(){return Tt.r})),n.d(t,"__experimentalBlockVariationPicker",(function(){return Tt.pb})),n.d(t,"__experimentalBlockPatternSetup",(function(){return Tt.ob})),n.d(t,"__experimentalBlockVariationTransforms",(function(){return Tt.qb})),n.d(t,"BlockVerticalAlignmentToolbar",(function(){return Tt.A})),n.d(t,"BlockVerticalAlignmentControl",(function(){return Tt.z})),n.d(t,"__experimentalBorderRadiusControl",(function(){return Tt.rb})),n.d(t,"__experimentalBorderStyleControl",(function(){return Tt.sb})),n.d(t,"ButtonBlockerAppender",(function(){return Tt.C})),n.d(t,"ButtonBlockAppender",(function(){return Tt.B})),n.d(t,"ColorPalette",(function(){return Tt.D})),n.d(t,"ColorPaletteControl",(function(){return Tt.E})),n.d(t,"ContrastChecker",(function(){return Tt.F})),n.d(t,"__experimentalDuotoneControl",(function(){return Tt.ub})),n.d(t,"__experimentalFontAppearanceControl",(function(){return Tt.vb})),n.d(t,"__experimentalFontFamilyControl",(function(){return Tt.wb})),n.d(t,"__experimentalLetterSpacingControl",(function(){return Tt.Eb})),n.d(t,"__experimentalTextDecorationControl",(function(){return Tt.Ob})),n.d(t,"__experimentalTextTransformControl",(function(){return Tt.Pb})),n.d(t,"__experimentalColorGradientControl",(function(){return Tt.tb})),n.d(t,"__experimentalPanelColorGradientSettings",(function(){return Tt.Lb})),n.d(t,"__experimentalImageEditor",(function(){return Tt.Ab})),n.d(t,"__experimentalImageEditingProvider",(function(){return Tt.zb})),n.d(t,"__experimentalImageSizeControl",(function(){return Tt.Bb})),n.d(t,"InnerBlocks",(function(){return Tt.J})),n.d(t,"useInnerBlocksProps",(function(){return Tt.rc})),n.d(t,"InspectorControls",(function(){return Tt.M})),n.d(t,"InspectorAdvancedControls",(function(){return Tt.L})),n.d(t,"JustifyToolbar",(function(){return Tt.O})),n.d(t,"JustifyContentControl",(function(){return Tt.N})),n.d(t,"__experimentalLinkControl",(function(){return Tt.Gb})),n.d(t,"__experimentalLinkControlSearchInput",(function(){return Tt.Hb})),n.d(t,"__experimentalLinkControlSearchResults",(function(){return Tt.Jb})),n.d(t,"__experimentalLinkControlSearchItem",(function(){return Tt.Ib})),n.d(t,"LineHeightControl",(function(){return Tt.P})),n.d(t,"__experimentalListView",(function(){return Tt.Kb})),n.d(t,"MediaReplaceFlow",(function(){return Tt.R})),n.d(t,"MediaPlaceholder",(function(){return Tt.Q})),n.d(t,"MediaUpload",(function(){return Tt.S})),n.d(t,"MediaUploadCheck",(function(){return Tt.T})),n.d(t,"PanelColorSettings",(function(){return Tt.X})),n.d(t,"PlainText",(function(){return Tt.Y})),n.d(t,"__experimentalResponsiveBlockControl",(function(){return Tt.Nb})),n.d(t,"RichText",(function(){return Tt.ab})),n.d(t,"RichTextShortcut",(function(){return Tt.bb})),n.d(t,"RichTextToolbarButton",(function(){return Tt.cb})),n.d(t,"__unstableRichTextInputEvent",(function(){return Tt.Yb})),n.d(t,"ToolSelector",(function(){return Tt.eb})),n.d(t,"__experimentalUnitControl",(function(){return Tt.Qb})),n.d(t,"URLInput",(function(){return Tt.gb})),n.d(t,"URLInputButton",(function(){return Tt.hb})),n.d(t,"URLPopover",(function(){return Tt.ib})),n.d(t,"__experimentalImageURLInputUI",(function(){return Tt.Cb})),n.d(t,"withColorContext",(function(){return Tt.tc})),n.d(t,"__unstableBlockSettingsMenuFirstItem",(function(){return Tt.Ub})),n.d(t,"__unstableInserterMenuExtension",(function(){return Tt.Xb})),n.d(t,"__experimentalPreviewOptions",(function(){return Tt.Mb})),n.d(t,"__experimentalUseResizeCanvas",(function(){return Tt.Tb})),n.d(t,"BlockInspector",(function(){return Tt.o})),n.d(t,"BlockList",(function(){return Tt.p})),n.d(t,"useBlockProps",(function(){return Tt.qc})),n.d(t,"__experimentalLayoutStyle",(function(){return Tt.Db})),n.d(t,"BlockMover",(function(){return Tt.q})),n.d(t,"BlockPreview",(function(){return Tt.s})),n.d(t,"BlockSelectionClearer",(function(){return Tt.t})),n.d(t,"__unstableUseBlockSelectionClearer",(function(){return Tt.Zb})),n.d(t,"BlockSettingsMenu",(function(){return Tt.u})),n.d(t,"BlockSettingsMenuControls",(function(){return Tt.v})),n.d(t,"BlockTitle",(function(){return Tt.w})),n.d(t,"BlockToolbar",(function(){return Tt.x})),n.d(t,"BlockTools",(function(){return Tt.y})),n.d(t,"CopyHandler",(function(){return Tt.G})),n.d(t,"__unstableUseClipboardHandler",(function(){return Tt.bc})),n.d(t,"DefaultBlockAppender",(function(){return Tt.H})),n.d(t,"__unstableEditorStyles",(function(){return Tt.Vb})),n.d(t,"Inserter",(function(){return Tt.K})),n.d(t,"__experimentalLibrary",(function(){return Tt.Fb})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return Tt.k})),n.d(t,"MultiSelectScrollIntoView",(function(){return Tt.U})),n.d(t,"NavigableToolbar",(function(){return Tt.V})),n.d(t,"ObserveTyping",(function(){return Tt.W})),n.d(t,"__unstableUseTypingObserver",(function(){return Tt.ec})),n.d(t,"__unstableUseMouseMoveTypingReset",(function(){return Tt.cc})),n.d(t,"PreserveScrollInReorder",(function(){return Tt.Z})),n.d(t,"SkipToSelectedBlock",(function(){return Tt.db})),n.d(t,"Typewriter",(function(){return Tt.fb})),n.d(t,"__unstableUseTypewriter",(function(){return Tt.dc})),n.d(t,"Warning",(function(){return Tt.jb})),n.d(t,"WritingFlow",(function(){return Tt.kb})),n.d(t,"__unstableUseCanvasClickRedirect",(function(){return Tt.ac})),n.d(t,"useBlockDisplayInformation",(function(){return Tt.oc})),n.d(t,"__unstableIframe",(function(){return Tt.Wb})),n.d(t,"__experimentalUseNoRecursiveRenders",(function(){return Tt.Sb})),n.d(t,"BlockEditorProvider",(function(){return Tt.l})),n.d(t,"useSetting",(function(){return Tt.sc})),n.d(t,"transformStyles",(function(){return Pt.c})),n.d(t,"validateThemeColors",(function(){return Pt.d})),n.d(t,"validateThemeGradients",(function(){return Pt.e})),n.d(t,"__experimentalGetMatchingVariation",(function(){return Pt.a})),n.d(t,"getPxFromCssUnit",(function(){return Pt.b})),n.d(t,"storeConfig",(function(){return gt.b})),n.d(t,"store",(function(){return gt.a})),n.d(t,"SETTINGS_DEFAULTS",(function(){return Rt.b}));var o=n("HSyU"),r=n("g56x");Object(r.addFilter)("blocks.registerBlockType","core/compat/migrateLightBlockWrapper",(function(e){const{apiVersion:t=1}=e;return t<2&&Object(o.hasBlockSupport)(e,"lightBlockWrapper",!1)&&(e.apiVersion=2),e}));var c=n("wx14"),l=n("GRId"),i=n("TSYQ"),a=n.n(i),s=n("YLtl"),u=n("K9lf"),d=n("fOYa"),b=n("vtO0"),p=n("K/rC");const m=["left","center","right","wide","full"],f=["wide","full"];function h(e){let t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?m.filter(t=>e.includes(t)):!0===e?[...m]:[],!o||!0===e&&!n?Object(s.without)(t,...f):t}const g=Object(u.createHigherOrderComponent)(e=>t=>{const{name:n}=t,r=h(Object(o.getBlockSupport)(n,"align"),Object(o.hasBlockSupport)(n,"alignWide",!0)),c=Object(p.a)(r).map(e=>{let{name:t}=e;return t});return Object(l.createElement)(l.Fragment,null,!!c.length&&Object(l.createElement)(d.b,{group:"block",__experimentalShareWithChildBlocks:!0},Object(l.createElement)(b.a,{value:t.attributes.align,onChange:e=>{if(!e){var n,r;const c=Object(o.getBlockType)(t.name);(null==c||null===(n=c.attributes)||void 0===n||null===(r=n.align)||void 0===r?void 0:r.default)&&(e="")}t.setAttributes({align:e})},controls:c})),Object(l.createElement)(e,t))},"withToolbarControls"),O=Object(u.createHigherOrderComponent)(e=>t=>{const{name:n,attributes:r}=t,{align:i}=r,a=h(Object(o.getBlockSupport)(n,"align"),Object(o.hasBlockSupport)(n,"alignWide",!0)),s=Object(p.a)(a);if(void 0===i)return Object(l.createElement)(e,t);let u=t.wrapperProps;return s.some(e=>e.name===i)&&(u={...u,"data-align":i}),Object(l.createElement)(e,Object(c.a)({},t,{wrapperProps:u}))});Object(r.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(s.has)(e.attributes,["align","type"])||Object(o.hasBlockSupport)(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...m,""]}}),e})),Object(r.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",O),Object(r.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",g),Object(r.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){const{align:r}=n;return h(Object(o.getBlockSupport)(t,"align"),Object(o.hasBlockSupport)(t,"alignWide",!0)).includes(r)&&(e.className=a()("align"+r,e.className)),e})),Object(r.addFilter)("blocks.registerBlockType","core/lock/addAttribute",(function(e){return Object(s.has)(e.attributes,["lock","type"])||(e.attributes={...e.attributes,lock:{type:"object"}}),e}));var v=n("tI+e"),j=n("l3Sj"),k=n("1oY3");const _=/[\s#]/g;const y=Object(u.createHigherOrderComponent)(e=>t=>{if(Object(o.hasBlockSupport)(t.name,"anchor")&&t.isSelected){const n="web"===l.Platform.OS,o=Object(l.createElement)(v.TextControl,{className:"html-anchor-control",label:Object(j.__)("HTML anchor"),help:Object(l.createElement)(l.Fragment,null,Object(j.__)("Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor.” Then, you’ll be able to link directly to this section of your page."),n&&Object(l.createElement)(v.ExternalLink,{href:Object(j.__)("https://wordpress.org/support/article/page-jumps/")},Object(j.__)("Learn more about anchors"))),value:t.attributes.anchor||"",placeholder:n?null:Object(j.__)("Add an anchor"),onChange:e=>{e=e.replace(_,"-"),t.setAttributes({anchor:e})},autoCapitalize:"none",autoComplete:"off"});return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(e,t),n&&Object(l.createElement)(k.b,{__experimentalGroup:"advanced"},o),!n&&"core/heading"===t.name&&Object(l.createElement)(k.b,null,Object(l.createElement)(v.PanelBody,{title:Object(j.__)("Heading settings")},o)))}return Object(l.createElement)(e,t)},"withInspectorControl");Object(r.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return Object(s.has)(e.attributes,["anchor","type"])||Object(o.hasBlockSupport)(e,"anchor")&&(e.attributes={...e.attributes,anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}}),e})),Object(r.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",y),Object(r.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return Object(o.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));const E=Object(u.createHigherOrderComponent)(e=>t=>Object(o.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?Object(l.createElement)(l.Fragment,null,Object(l.createElement)(e,t),Object(l.createElement)(k.b,{__experimentalGroup:"advanced"},Object(l.createElement)(v.TextControl,{autoComplete:"off",label:Object(j.__)("Additional CSS class(es)"),value:t.attributes.className||"",onChange:e=>{t.setAttributes({className:""!==e?e:void 0})},help:Object(j.__)("Separate multiple classes with spaces.")}))):Object(l.createElement)(e,t),"withInspectorControl");Object(r.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(o.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e})),Object(r.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",E),Object(r.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Object(o.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=a()(e.className,n.className)),e})),Object(r.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Object(o.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(s.uniq)([Object(o.getBlockDefaultClassName)(t.name),...e.className.split(" ")]).join(" ").trim():e.className=Object(o.getBlockDefaultClassName)(t.name)),e}));var C=n("VyCT"),S=n("v5LD"),w=n("hMaJ"),I=n("bVpQ"),B=n("715p");const x=[];function T(e){const{attributes:{borderColor:t,style:n},setAttributes:o}=e,r=Object(S.a)("color.palette")||x,c=!Object(S.a)("color.custom"),i=!Object(S.a)("color.customGradient"),[a,s]=Object(l.useState)(()=>{var e,o;return null===(e=Object(I.b)(r,t,null==n||null===(o=n.border)||void 0===o?void 0:o.color))||void 0===e?void 0:e.color});return Object(l.createElement)(w.a,{label:Object(j.__)("Color"),colorValue:a,colors:r,gradients:void 0,disableCustomColors:c,disableCustomGradients:i,onColorChange:e=>{s(e);const t=Object(I.c)(r,e),c={...n,border:{...null==n?void 0:n.border,color:null!=t&&t.slug?void 0:e}},l=null!=t&&t.slug?t.slug:void 0;o({style:Object(B.a)(c),borderColor:l})}})}function P(e,t,n){var o;if(!z(t,"color")||H(t))return e;const{borderColor:r,style:c}=n,l=Object(I.a)("border-color",r),i=a()(e.className,{"has-border-color":r||(null==c||null===(o=c.border)||void 0===o?void 0:o.color),[l]:!!l});return e.className=i||void 0,e}const R=Object(u.createHigherOrderComponent)(e=>t=>{var n,o;const{name:r,attributes:i}=t,{borderColor:a}=i,s=Object(S.a)("color.palette")||x;if(!z(r,"color")||H(r))return Object(l.createElement)(e,t);const u={borderColor:a?null===(n=Object(I.b)(s,a))||void 0===n?void 0:n.color:void 0};let d=t.wrapperProps;return d={...t.wrapperProps,style:{...u,...null===(o=t.wrapperProps)||void 0===o?void 0:o.style}},Object(l.createElement)(e,Object(c.a)({},t,{wrapperProps:d}))});Object(r.addFilter)("blocks.registerBlockType","core/border/addAttributes",(function(e){return z(e,"color")?e.attributes.borderColor?e:{...e,attributes:{...e.attributes,borderColor:{type:"string"}}}:e})),Object(r.addFilter)("blocks.getSaveContent.extraProps","core/border/addSaveProps",P),Object(r.addFilter)("blocks.registerBlockType","core/border/addEditProps",(function(e){if(!z(e,"color")||H(e))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),P(o,e,n)},e})),Object(r.addFilter)("editor.BlockListBlock","core/border/with-border-color-palette-styles",R);var N=n("Wy3j");function L(e){var t;const{attributes:{style:n},setAttributes:o}=e;return Object(l.createElement)(N.a,{values:null==n||null===(t=n.border)||void 0===t?void 0:t.radius,onChange:e=>{let t={...n,border:{...null==n?void 0:n.border,radius:e}};void 0!==e&&""!==e||(t=Object(B.a)(t)),o({style:t})}})}var M=n("2YCo");const A=e=>{var t;const{attributes:{style:n},setAttributes:o}=e;return Object(l.createElement)(M.a,{value:null==n||null===(t=n.border)||void 0===t?void 0:t.style,onChange:e=>{const t={...n,border:{...null==n?void 0:n.border,style:e}};o({style:Object(B.a)(t)})}})},D=e=>{const{attributes:{borderColor:t,style:n},setAttributes:o}=e,{width:r,color:c,style:i}=(null==n?void 0:n.border)||{},[a,s]=Object(l.useState)(),[u,d]=Object(l.useState)();Object(l.useEffect)(()=>{"none"!==i&&s(i)},[i]),Object(l.useEffect)(()=>{(t||c)&&d({name:t||void 0,color:c||void 0})},[t,c]);const b=Object(v.__experimentalUseCustomUnits)({availableUnits:Object(S.a)("spacing.units")||["px","em","rem"]});return Object(l.createElement)(v.__experimentalUnitControl,{value:r,label:Object(j.__)("Width"),min:0,onChange:e=>{let r={...n,border:{...null==n?void 0:n.border,width:e}},c=t;const l=0===parseFloat(e);l&&(c=void 0,r.border.color=void 0,r.border.style="none"),l||"none"!==i||(r.border.style=a),l||void 0!==t||(c=null==u?void 0:u.name,r.border.color=null==u?void 0:u.color),void 0!==e&&""!==e||(r=Object(B.a)(r)),o({borderColor:c,style:r})},units:b})};function F(e){const t=V(e),n=z(e.name),o=Object(S.a)("border.color")&&z(e.name,"color"),r=Object(S.a)("border.radius")&&z(e.name,"radius"),c=Object(S.a)("border.style")&&z(e.name,"style"),i=Object(S.a)("border.width")&&z(e.name,"width");return t||!n?null:Object(l.createElement)(k.b,null,Object(l.createElement)(v.PanelBody,{className:"block-editor-hooks__border-controls",title:Object(j.__)("Border"),initialOpen:!1},(i||c)&&Object(l.createElement)("div",{className:"block-editor-hooks__border-controls-row"},i&&Object(l.createElement)(D,e),c&&Object(l.createElement)(A,e)),o&&Object(l.createElement)(T,e),r&&Object(l.createElement)(L,e)))}function z(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"any";if("web"!==l.Platform.OS)return!1;const n=Object(o.getBlockSupport)(e,"__experimentalBorder");return!0===n||("any"===t?!!(null!=n&&n.color||null!=n&&n.radius||null!=n&&n.width||null!=n&&n.style):!(null==n||!n[t]))}function H(e){const t=Object(o.getBlockSupport)(e,"__experimentalBorder");return null==t?void 0:t.__experimentalSkipSerialization}const V=()=>[!Object(S.a)("border.color"),!Object(S.a)("border.radius"),!Object(S.a)("border.style"),!Object(S.a)("border.width")].every(Boolean);var G=n("Cn0l"),U=n("yU1v"),W=n("6c9H"),q=n("PKbb");function K(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function $(e){let{settings:t,clientId:n,enableContrastChecking:o=!0,showTitle:r=!0}=e;const[c,i]=Object(l.useState)(),[a,s]=Object(l.useState)(),u=Object(q.b)(n);return Object(l.useEffect)(()=>{if(!o)return;if(!u.current)return;s(K(u.current).color);let e=u.current,t=K(e).backgroundColor;for(;"rgba(0, 0, 0, 0)"===t&&e.parentNode&&e.parentNode.nodeType===e.parentNode.ELEMENT_NODE;)e=e.parentNode,t=K(e).backgroundColor;i(t)}),Object(l.createElement)(k.b,null,Object(l.createElement)(U.a,{title:Object(j.__)("Color"),initialOpen:!1,settings:t,showTitle:r,__experimentalHasMultipleOrigins:!0},o&&Object(l.createElement)(W.a,{backgroundColor:c,textColor:a})))}const Y=e=>{const t=Object(o.getBlockSupport)(e,"color");return t&&(!0===t.link||!0===t.gradient||!1!==t.background||!1!==t.text)},X=e=>{const t=Object(o.getBlockSupport)(e,"color");return null==t?void 0:t.__experimentalSkipSerialization},Z=e=>{const t=Object(o.getBlockSupport)(e,"color");return Object(s.isObject)(t)&&!!t.gradients};function Q(e,t,n){var o,r,c,l,i,s;if(!Y(t)||X(t))return e;const u=Z(t),{backgroundColor:d,textColor:b,gradient:p,style:m}=n,f=Object(I.a)("background-color",d),h=Object(G.a)(p),g=Object(I.a)("color",b),O=a()(e.className,g,h,{[f]:!(u&&null!=m&&null!==(o=m.color)&&void 0!==o&&o.gradient||!f),"has-text-color":b||(null==m||null===(r=m.color)||void 0===r?void 0:r.text),"has-background":d||(null==m||null===(c=m.color)||void 0===c?void 0:c.background)||u&&(p||(null==m||null===(l=m.color)||void 0===l?void 0:l.gradient)),"has-link-color":null==m||null===(i=m.elements)||void 0===i||null===(s=i.link)||void 0===s?void 0:s.color});return e.className=O||void 0,e}const J=(e,t)=>{const n=/var:preset\|color\|(.+)/.exec(t);return n&&n[1]?Object(I.b)(e,n[1]).color:t};function ee(e){var t,n,r,c,i,a,u,d,b,p,m;const{name:f,attributes:h}=e,{palette:g,gradients:O,customGradient:v,custom:k,text:_,background:y,link:E}=Object(S.a)("color")||{},C=k||!(null!=g&&g.theme)||(null==g||null===(t=g.theme)||void 0===t?void 0:t.length)>0,w=v||!(null!=O&&O.theme)||(null==O||null===(n=O.theme)||void 0===n?void 0:n.length)>0,x=Object(l.useMemo)(()=>[...(null==g?void 0:g.custom)||[],...(null==g?void 0:g.theme)||[],...(null==g?void 0:g.default)||[]],[g]),T=Object(l.useMemo)(()=>[...(null==O?void 0:O.custom)||[],...(null==O?void 0:O.theme)||[],...(null==O?void 0:O.default)||[]],[O]),P=Object(l.useRef)(h);if(Object(l.useEffect)(()=>{P.current=h},[h]),!Y(f))return null;const R=(e=>{if("web"!==l.Platform.OS)return!1;const t=Object(o.getBlockSupport)(e,"color");return Object(s.isObject)(t)&&!!t.link})(f)&&E&&C,N=(e=>{const t=Object(o.getBlockSupport)(e,"color");return t&&!1!==t.text})(f)&&_&&C,L=(e=>{const t=Object(o.getBlockSupport)(e,"color");return t&&!1!==t.background})(f)&&y&&C,M=Z(f)&&w;if(!(R||N||L||M))return null;const{style:A,textColor:D,backgroundColor:F,gradient:z}=h;let H;if(M&&z)H=Object(G.e)(T,z);else if(M){var V;H=null==A||null===(V=A.color)||void 0===V?void 0:V.gradient}const U=t=>n=>{var o,r;const c=Object(I.c)(x,n),l=t+"Color",i={...P.current.style,color:{...null===(o=P.current)||void 0===o||null===(r=o.style)||void 0===r?void 0:r.color,[t]:null!=c&&c.slug?void 0:n}},a=null!=c&&c.slug?c.slug:void 0,s={style:Object(B.a)(i),[l]:a};e.setAttributes(s),P.current={...P.current,...s}};return Object(l.createElement)($,{enableContrastChecking:!("web"!==l.Platform.OS||z||null!=A&&null!==(r=A.color)&&void 0!==r&&r.gradient),clientId:e.clientId,settings:[...N?[{label:Object(j.__)("Text color"),onColorChange:U("text"),colorValue:Object(I.b)(x,D,null==A||null===(c=A.color)||void 0===c?void 0:c.text).color}]:[],...L||M?[{label:Object(j.__)("Background color"),onColorChange:L?U("background"):void 0,colorValue:Object(I.b)(x,F,null==A||null===(i=A.color)||void 0===i?void 0:i.background).color,gradientValue:H,onGradientChange:M?t=>{const n=Object(G.d)(T,t);let o;if(n){var r,c,l;const e={...null===(r=P.current)||void 0===r?void 0:r.style,color:{...null===(c=P.current)||void 0===c||null===(l=c.style)||void 0===l?void 0:l.color,gradient:void 0}};o={style:Object(B.a)(e),gradient:n}}else{var i,a,s;const e={...null===(i=P.current)||void 0===i?void 0:i.style,color:{...null===(a=P.current)||void 0===a||null===(s=a.style)||void 0===s?void 0:s.color,gradient:t}};o={style:Object(B.a)(e),gradient:void 0}}e.setAttributes(o),P.current={...P.current,...o}}:void 0}]:[],...R?[{label:Object(j.__)("Link Color"),onColorChange:t=>{const n=Object(I.c)(x,t),o=null!=n&&n.slug?"var:preset|color|"+n.slug:t,r=Object(B.a)(function(e,t,n){return Object(s.setWith)(e?Object(s.clone)(e):{},t,n,s.clone)}(A,["elements","link","color","text"],o));e.setAttributes({style:r})},colorValue:J(x,null==A||null===(a=A.elements)||void 0===a||null===(u=a.link)||void 0===u||null===(d=u.color)||void 0===d?void 0:d.text),clearable:!(null==A||null===(b=A.elements)||void 0===b||null===(p=b.link)||void 0===p||null===(m=p.color)||void 0===m||!m.text)}]:[]]})}const te=Object(u.createHigherOrderComponent)(e=>t=>{var n,o,r;const{name:i,attributes:a}=t,{backgroundColor:s,textColor:u}=a,{palette:d}=Object(S.a)("color")||{},b=Object(l.useMemo)(()=>[...(null==d?void 0:d.custom)||[],...(null==d?void 0:d.theme)||[],...(null==d?void 0:d.default)||[]],[d]);if(!Y(i)||X(i))return Object(l.createElement)(e,t);const p={color:u?null===(n=Object(I.b)(b,u))||void 0===n?void 0:n.color:void 0,backgroundColor:s?null===(o=Object(I.b)(b,s))||void 0===o?void 0:o.color:void 0};let m=t.wrapperProps;return m={...t.wrapperProps,style:{...p,...null===(r=t.wrapperProps)||void 0===r?void 0:r.style}},Object(l.createElement)(e,Object(c.a)({},t,{wrapperProps:m}))});Object(r.addFilter)("blocks.registerBlockType","core/color/addAttribute",(function(e){return Y(e)?(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),Z(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}}),e):e})),Object(r.addFilter)("blocks.getSaveContent.extraProps","core/color/addSaveProps",Q),Object(r.addFilter)("blocks.registerBlockType","core/color/addEditProps",(function(e){if(!Y(e)||X(e))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),Q(o,e,n)},e})),Object(r.addFilter)("editor.BlockListBlock","core/color/with-color-palette-styles",te);var ne=n("Bo0k"),oe=n("weEX");function re(e){var t;const{attributes:{style:n},setAttributes:o}=e;return Object(l.createElement)(oe.a,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.lineHeight,onChange:e=>{const t={...n,typography:{...null==n?void 0:n.typography,lineHeight:e}};o({style:Object(B.a)(t)})}})}function ce(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!Object(S.a)("typography.lineHeight");return!Object(o.hasBlockSupport)(e,"typography.lineHeight")||t}function le(e){var t,n;const{attributes:{style:o},setAttributes:r}=e,c=!ie(e),i=!ae(e),a=null==o||null===(t=o.typography)||void 0===t?void 0:t.fontStyle,s=null==o||null===(n=o.typography)||void 0===n?void 0:n.fontWeight;return Object(l.createElement)(ne.a,{onChange:e=>{r({style:Object(B.a)({...o,typography:{...null==o?void 0:o.typography,fontStyle:e.fontStyle,fontWeight:e.fontWeight}})})},hasFontStyles:c,hasFontWeights:i,value:{fontStyle:a,fontWeight:s}})}function ie(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Object(o.hasBlockSupport)(e,"typography.__experimentalFontStyle"),n=Object(S.a)("typography.fontStyle");return!t||!n}function ae(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Object(o.hasBlockSupport)(e,"typography.__experimentalFontWeight"),n=Object(S.a)("typography.fontWeight");return!t||!n}function se(e){const t=ie(e),n=ae(e);return t&&n}var ue=n("BLeD"),de=n.n(ue),be=n("GKUk");const pe="typography.__experimentalFontFamily";function me(e,t,n){if(!Object(o.hasBlockSupport)(t,pe))return e;if(Object(o.hasBlockSupport)(t,"typography.__experimentalSkipSerialization"))return e;if(null==n||!n.fontFamily)return e;const r=new de.a(e.className);r.add(`has-${Object(s.kebabCase)(null==n?void 0:n.fontFamily)}-font-family`);const c=r.value;return e.className=c||void 0,e}function fe(e){var t;let{setAttributes:n,attributes:{fontFamily:o}}=e;const r=Object(S.a)("typography.fontFamilies"),c=null===(t=Object(s.find)(r,e=>{let{slug:t}=e;return o===t}))||void 0===t?void 0:t.fontFamily;return Object(l.createElement)(be.a,{className:"block-editor-hooks-font-family-control",fontFamilies:r,value:c,onChange:function(e){const t=Object(s.find)(r,t=>{let{fontFamily:n}=t;return n===e});n({fontFamily:null==t?void 0:t.slug})}})}function he(e){let{name:t}=e;const n=Object(S.a)("typography.fontFamilies");return!n||0===n.length||!Object(o.hasBlockSupport)(t,pe)}Object(r.addFilter)("blocks.registerBlockType","core/fontFamily/addAttribute",(function(e){return Object(o.hasBlockSupport)(e,pe)?(e.attributes.fontFamily||Object.assign(e.attributes,{fontFamily:{type:"string"}}),e):e})),Object(r.addFilter)("blocks.getSaveContent.extraProps","core/fontFamily/addSaveProps",me),Object(r.addFilter)("blocks.registerBlockType","core/fontFamily/addEditProps",(function(e){if(!Object(o.hasBlockSupport)(e,pe))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),me(o,e,n)},e}));var ge=n("NMUH"),Oe=n("QP/w");function ve(e,t,n){if(!Object(o.hasBlockSupport)(t,"typography.fontSize"))return e;if(Object(o.hasBlockSupport)(t,"typography.__experimentalSkipSerialization"))return e;const r=new de.a(e.className);r.add(Object(ge.b)(n.fontSize));const c=r.value;return e.className=c||void 0,e}function je(e){var t,n;const{attributes:{fontSize:o,style:r},setAttributes:c}=e,i=Object(S.a)("typography.fontSizes"),a=Object(ge.a)(i,o,null==r||null===(t=r.typography)||void 0===t?void 0:t.fontSize),s=(null==a?void 0:a.size)||(null==r||null===(n=r.typography)||void 0===n?void 0:n.fontSize)||o;return Object(l.createElement)(Oe.a,{onChange:e=>{const t=Object(ge.c)(i,e).slug;c({style:Object(B.a)({...r,typography:{...null==r?void 0:r.typography,fontSize:t?void 0:e}}),fontSize:t})},value:s,withReset:!1})}function ke(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Object(S.a)("typography.fontSizes"),n=!(null==t||!t.length);return!Object(o.hasBlockSupport)(e,"typography.fontSize")||!n}const _e=Object(u.createHigherOrderComponent)(e=>t=>{var n,r;const c=Object(S.a)("typography.fontSizes"),{name:i,attributes:{fontSize:a,style:s},wrapperProps:u}=t;if(!Object(o.hasBlockSupport)(i,"typography.fontSize")||Object(o.hasBlockSupport)(i,"typography.__experimentalSkipSerialization")||!a||null!=s&&null!==(n=s.typography)&&void 0!==n&&n.fontSize)return Object(l.createElement)(e,t);const d=Object(ge.a)(c,a,null==s||null===(r=s.typography)||void 0===r?void 0:r.fontSize).size,b={...t,wrapperProps:{...u,style:{fontSize:d,...null==u?void 0:u.style}}};return Object(l.createElement)(e,b)},"withFontSizeInlineStyles");Object(r.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return Object(o.hasBlockSupport)(e,"typography.fontSize")?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),Object(r.addFilter)("blocks.getSaveContent.extraProps","core/font/addSaveProps",ve),Object(r.addFilter)("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!Object(o.hasBlockSupport)(e,"typography.fontSize"))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),ve(o,e,n)},e})),Object(r.addFilter)("editor.BlockListBlock","core/font-size/with-font-size-inline-styles",_e);var ye=n("kVRd");function Ee(e){var t;const{attributes:{style:n},setAttributes:o}=e;return Object(l.createElement)(ye.a,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.textDecoration,onChange:function(e){o({style:Object(B.a)({...n,typography:{...null==n?void 0:n.typography,textDecoration:e}})})}})}function Ce(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!Object(o.hasBlockSupport)(e,"typography.__experimentalTextDecoration"),n=Object(S.a)("typography.textDecoration");return t||!n}var Se=n("/Hvg");function we(e){var t;const{attributes:{style:n},setAttributes:o}=e;return Object(l.createElement)(Se.a,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.textTransform,onChange:function(e){o({style:Object(B.a)({...n,typography:{...null==n?void 0:n.typography,textTransform:e}})})}})}function Ie(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!Object(o.hasBlockSupport)(e,"typography.__experimentalTextTransform"),n=Object(S.a)("typography.textTransform");return t||!n}var Be=n("xBDm");function xe(e){var t;const{attributes:{style:n},setAttributes:o}=e;return Object(l.createElement)(Be.a,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.letterSpacing,onChange:function(e){o({style:Object(B.a)({...n,typography:{...null==n?void 0:n.typography,letterSpacing:e}})})},__unstableInputWidth:!1})}function Te(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!Object(o.hasBlockSupport)(e,"typography.__experimentalLetterSpacing"),n=Object(S.a)("typography.letterSpacing");return t||!n}const Pe=["typography.lineHeight","typography.fontSize","typography.__experimentalFontStyle","typography.__experimentalFontWeight",pe,"typography.__experimentalTextDecoration","typography.__experimentalTextTransform","typography.__experimentalLetterSpacing"];function Re(e){const{clientId:t}=e,n=he(e),r=ke(e),c=se(e),i=ce(e),a=Ce(e),s=Ie(e),u=Te(e),d=!ie(e),b=!ae(e),p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=[se(e),ke(e),ce(e),he(e),Ce(e),Ie(e),Te(e)];return t.filter(Boolean).length===t.length}(e),m=Ne(e.name);if(p||!m)return null;const f=Object(o.getBlockSupport)(e.name,["typography","__experimentalDefaultControls"]),h=e=>t=>{var n;return{...t,style:{...t.style,typography:{...null===(n=t.style)||void 0===n?void 0:n.typography,[e]:void 0}}}};return Object(l.createElement)(k.b,{__experimentalGroup:"typography"},!n&&Object(l.createElement)(v.__experimentalToolsPanelItem,{hasValue:()=>function(e){return!!e.attributes.fontFamily}(e),label:Object(j.__)("Font family"),onDeselect:()=>function(e){let{setAttributes:t}=e;t({fontFamily:void 0})}(e),isShownByDefault:null==f?void 0:f.fontFamily,resetAllFilter:e=>({...e,fontFamily:void 0}),panelId:t},Object(l.createElement)(fe,e)),!r&&Object(l.createElement)(v.__experimentalToolsPanelItem,{hasValue:()=>function(e){var t;const{fontSize:n,style:o}=e.attributes;return!!n||!(null==o||null===(t=o.typography)||void 0===t||!t.fontSize)}(e),label:Object(j.__)("Font size"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({fontSize:void 0,style:Object(B.a)({...o,typography:{...null==o?void 0:o.typography,fontSize:void 0}})})}(e),isShownByDefault:null==f?void 0:f.fontSize,resetAllFilter:e=>{var t;return{...e,fontSize:void 0,style:{...e.style,typography:{...null===(t=e.style)||void 0===t?void 0:t.typography,fontSize:void 0}}}},panelId:t},Object(l.createElement)(je,e)),!c&&Object(l.createElement)(v.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>function(e){var t;const{fontStyle:n,fontWeight:o}=(null===(t=e.attributes.style)||void 0===t?void 0:t.typography)||{};return!!n||!!o}(e),label:Object(ne.b)(d,b),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:Object(B.a)({...o,typography:{...null==o?void 0:o.typography,fontStyle:void 0,fontWeight:void 0}})})}(e),isShownByDefault:null==f?void 0:f.fontAppearance,resetAllFilter:e=>{var t;return{...e,style:{...e.style,typography:{...null===(t=e.style)||void 0===t?void 0:t.typography,fontStyle:void 0,fontWeight:void 0}}}},panelId:t},Object(l.createElement)(le,e)),!i&&Object(l.createElement)(v.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>function(e){var t,n;return!(null===(t=e.attributes.style)||void 0===t||null===(n=t.typography)||void 0===n||!n.lineHeight)}(e),label:Object(j.__)("Line height"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:Object(B.a)({...o,typography:{...null==o?void 0:o.typography,lineHeight:void 0}})})}(e),isShownByDefault:null==f?void 0:f.lineHeight,resetAllFilter:h("lineHeight"),panelId:t},Object(l.createElement)(re,e)),!a&&Object(l.createElement)(v.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>function(e){var t,n;return!(null===(t=e.attributes.style)||void 0===t||null===(n=t.typography)||void 0===n||!n.textDecoration)}(e),label:Object(j.__)("Decoration"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:Object(B.a)({...o,typography:{...null==o?void 0:o.typography,textDecoration:void 0}})})}(e),isShownByDefault:null==f?void 0:f.textDecoration,resetAllFilter:h("textDecoration"),panelId:t},Object(l.createElement)(Ee,e)),!s&&Object(l.createElement)(v.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>function(e){var t,n;return!(null===(t=e.attributes.style)||void 0===t||null===(n=t.typography)||void 0===n||!n.textTransform)}(e),label:Object(j.__)("Letter case"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:Object(B.a)({...o,typography:{...null==o?void 0:o.typography,textTransform:void 0}})})}(e),isShownByDefault:null==f?void 0:f.textTransform,resetAllFilter:h("textTransform"),panelId:t},Object(l.createElement)(we,e)),!u&&Object(l.createElement)(v.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>function(e){var t,n;return!(null===(t=e.attributes.style)||void 0===t||null===(n=t.typography)||void 0===n||!n.letterSpacing)}(e),label:Object(j.__)("Letter-spacing"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:Object(B.a)({...o,typography:{...null==o?void 0:o.typography,letterSpacing:void 0}})})}(e),isShownByDefault:null==f?void 0:f.letterSpacing,resetAllFilter:h("letterSpacing"),panelId:t},Object(l.createElement)(xe,e)))}const Ne=e=>Pe.some(t=>Object(o.hasBlockSupport)(e,t));function Le(e){const t=Object(o.getBlockSupport)(e,Ue);return!!(!0===t||null!=t&&t.blockGap)}function Me(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!Object(S.a)("spacing.blockGap");return!Le(e)||t}function Ae(e){var t;const{clientId:n,attributes:{style:o},setAttributes:r}=e,c=Object(v.__experimentalUseCustomUnits)({availableUnits:Object(S.a)("spacing.units")||["%","px","em","rem","vw"]}),i=Object(q.b)(n);if(Me(e))return null;return l.Platform.select({web:Object(l.createElement)(l.Fragment,null,Object(l.createElement)(v.__experimentalUnitControl,{label:Object(j.__)("Block spacing"),__unstableInputWidth:"80px",min:0,onChange:e=>{var t;const n={...o,spacing:{...null==o?void 0:o.spacing,blockGap:e}};r({style:Object(B.a)(n)});const c=(null===(t=window)||void 0===t?void 0:t.navigator.userAgent)&&window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome ")&&!window.navigator.userAgent.includes("Chromium ");var l;i.current&&c&&(null===(l=i.current.parentNode)||void 0===l||l.replaceChild(i.current,i.current))},units:c,value:null==o||null===(t=o.spacing)||void 0===t?void 0:t.blockGap})),native:null})}function De(e){const t=Object(o.getBlockSupport)(e,Ue);return!!(!0===t||null!=t&&t.margin)}function Fe(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!Object(S.a)("spacing.margin"),n=!Xe(e,"margin");return!De(e)||t||n}function ze(e){var t;const{name:n,attributes:{style:o},setAttributes:r}=e,c=Object(v.__experimentalUseCustomUnits)({availableUnits:Object(S.a)("spacing.units")||["%","px","em","rem","vw"]}),i=Ye(n,"margin"),a=i&&i.some(e=>qe.includes(e));if(Fe(e))return null;return l.Platform.select({web:Object(l.createElement)(l.Fragment,null,Object(l.createElement)(v.__experimentalBoxControl,{values:null==o||null===(t=o.spacing)||void 0===t?void 0:t.margin,onChange:e=>{const t={...o,spacing:{...null==o?void 0:o.spacing,margin:e}};r({style:Object(B.a)(t)})},onChangeShowVisualizer:e=>{const t={...o,visualizers:{margin:e}};r({style:Object(B.a)(t)})},label:Object(j.__)("Margin"),sides:i,units:c,allowReset:!1,splitOnAxis:a})),native:null})}function He(e){const t=Object(o.getBlockSupport)(e,Ue);return!!(!0===t||null!=t&&t.padding)}function Ve(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!Object(S.a)("spacing.padding"),n=!Xe(e,"padding");return!He(e)||t||n}function Ge(e){var t;const{name:n,attributes:{style:o},setAttributes:r}=e,c=Object(v.__experimentalUseCustomUnits)({availableUnits:Object(S.a)("spacing.units")||["%","px","em","rem","vw"]}),i=Ye(n,"padding"),a=i&&i.some(e=>qe.includes(e));if(Ve(e))return null;return l.Platform.select({web:Object(l.createElement)(l.Fragment,null,Object(l.createElement)(v.__experimentalBoxControl,{values:null==o||null===(t=o.spacing)||void 0===t?void 0:t.padding,onChange:e=>{const t={...o,spacing:{...null==o?void 0:o.spacing,padding:e}};r({style:Object(B.a)(t)})},onChangeShowVisualizer:e=>{const t={...o,visualizers:{padding:e}};r({style:Object(B.a)(t)})},label:Object(j.__)("Padding"),sides:i,units:c,allowReset:!1,splitOnAxis:a})),native:null})}const Ue="spacing",We=["top","right","bottom","left"],qe=["vertical","horizontal"];function Ke(e){const t=Me(e),n=Ve(e),r=Fe(e),c=$e(e),i=function(e){if("web"!==l.Platform.OS)return!1;return Le(e)||He(e)||De(e)}(e.name);if(c||!i)return null;const a=Object(o.getBlockSupport)(e.name,[Ue,"__experimentalDefaultControls"]),s=e=>t=>{var n;return{...t,style:{...t.style,spacing:{...null===(n=t.style)||void 0===n?void 0:n.spacing,[e]:void 0}}}};return Object(l.createElement)(k.b,{__experimentalGroup:"dimensions"},!n&&Object(l.createElement)(v.__experimentalToolsPanelItem,{hasValue:()=>function(e){var t,n;return void 0!==(null===(t=e.attributes.style)||void 0===t||null===(n=t.spacing)||void 0===n?void 0:n.padding)}(e),label:Object(j.__)("Padding"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:Object(B.a)({...o,spacing:{...null==o?void 0:o.spacing,padding:void 0}})})}(e),resetAllFilter:s("padding"),isShownByDefault:null==a?void 0:a.padding,panelId:e.clientId},Object(l.createElement)(Ge,e)),!r&&Object(l.createElement)(v.__experimentalToolsPanelItem,{hasValue:()=>function(e){var t,n;return void 0!==(null===(t=e.attributes.style)||void 0===t||null===(n=t.spacing)||void 0===n?void 0:n.margin)}(e),label:Object(j.__)("Margin"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:Object(B.a)({...o,spacing:{...null==o?void 0:o.spacing,margin:void 0}})})}(e),resetAllFilter:s("margin"),isShownByDefault:null==a?void 0:a.margin,panelId:e.clientId},Object(l.createElement)(ze,e)),!t&&Object(l.createElement)(v.__experimentalToolsPanelItem,{hasValue:()=>function(e){var t,n;return void 0!==(null===(t=e.attributes.style)||void 0===t||null===(n=t.spacing)||void 0===n?void 0:n.blockGap)}(e),label:Object(j.__)("Block spacing"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:o}=t;n({style:{...o,spacing:{...null==o?void 0:o.spacing,blockGap:void 0}}})}(e),resetAllFilter:s("blockGap"),isShownByDefault:null==a?void 0:a.blockGap,panelId:e.clientId},Object(l.createElement)(Ae,e)))}const $e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Me(e),n=Ve(e),o=Fe(e);return t&&n&&o};function Ye(e,t){const n=Object(o.getBlockSupport)(e,Ue);if(n&&"boolean"!=typeof n[t])return n[t]}function Xe(e,t){const n=Ye(e,t);return!(n&&n.some(e=>We.includes(e))&&n.some(e=>qe.includes(e)))||(console.warn(`The ${t} support for the "${e}" block can not be configured to support both axial and arbitrary sides.`),!1)}var Ze=n("HgtZ");const Qe=[...Pe,"__experimentalBorder","color",Ue],Je=e=>Qe.some(t=>Object(o.hasBlockSupport)(e,t));function et(e){if(Object(s.startsWith)(e,"var:")){return`var(--wp--${e.slice("var:".length).split("|").join("--")})`}return e}function tt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={};return Object.keys(o.__EXPERIMENTAL_STYLE_PROPERTY).forEach(n=>{const r=o.__EXPERIMENTAL_STYLE_PROPERTY[n].value,c=o.__EXPERIMENTAL_STYLE_PROPERTY[n].properties;if(Object(s.has)(e,r)&&"elements"!==Object(s.first)(r)){const o=Object(s.get)(e,r);c&&!Object(s.isString)(o)?Object.entries(c).forEach(e=>{const[n,r]=e,c=Object(s.get)(o,[r]);c&&(t[n]=et(c))}):t[n]=et(Object(s.get)(e,r))}}),t}const nt={"__experimentalBorder.__experimentalSkipSerialization":["border"],"color.__experimentalSkipSerialization":["color"],"typography.__experimentalSkipSerialization":["typography"],[Ue+".__experimentalSkipSerialization"]:["spacing"]},ot={...nt,[""+Ue]:["spacing.blockGap"]};function rt(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ot;if(!Je(t))return e;let{style:c}=n;return Object(s.forEach)(r,(e,n)=>{Object(o.getBlockSupport)(t,n)&&(c=Object(s.omit)(c,e))}),e.style={...tt(c),...e.style},e}const ct=Object(u.createHigherOrderComponent)(e=>t=>{const n=Object(Ze.a)();return Object(l.createElement)(l.Fragment,null,n&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ee,t),Object(l.createElement)(Re,t),Object(l.createElement)(F,t),Object(l.createElement)(Ke,t)),Object(l.createElement)(e,t))},"withToolbarControls"),lt=Object(u.createHigherOrderComponent)(e=>t=>{var n,r;const i=null===(n=t.attributes.style)||void 0===n?void 0:n.elements,d="wp-elements-"+Object(u.useInstanceId)(e),b=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(s.map)(t,(t,n)=>{const r=tt(t);return Object(s.isEmpty)(r)?"":[`.${e} ${o.__EXPERIMENTAL_ELEMENTS[n]}{`,...Object(s.map)(r,(e,t)=>`\t${Object(s.kebabCase)(t)}: ${e};`),"}"].join("\n")}).join("\n")}(d,null===(r=t.attributes.style)||void 0===r?void 0:r.elements),p=Object(l.useContext)(C.c.__unstableElementContext);return Object(l.createElement)(l.Fragment,null,i&&p&&Object(l.createPortal)(Object(l.createElement)("style",{dangerouslySetInnerHTML:{__html:b}}),p),Object(l.createElement)(e,Object(c.a)({},t,{className:i?a()(t.className,d):t.className})))});Object(r.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return Je(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(r.addFilter)("blocks.getSaveContent.extraProps","core/style/addSaveProps",rt),Object(r.addFilter)("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!Je(e))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),rt(o,e,n,nt)},e})),Object(r.addFilter)("editor.BlockEdit","core/style/with-block-controls",ct),Object(r.addFilter)("editor.BlockListBlock","core/editor/with-elements-styles",lt);var it=n("fHnH"),at=n("abaT"),st=n("1uGa");const ut=[];function dt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t={r:[],g:[],b:[],a:[]};return e.forEach(e=>{const n=Object(it.a)(e).toRgb();t.r.push(n.r/255),t.g.push(n.g/255),t.b.push(n.b/255),t.a.push(n.a)}),t}function bt(e){let{selector:t,id:n,values:o}=e;const r=`\n${t} {\n\tfilter: url( #${n} );\n}\n`;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(v.SVG,{xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 0 0",width:"0",height:"0",focusable:"false",role:"none",style:{visibility:"hidden",position:"absolute",left:"-9999px",overflow:"hidden"}},Object(l.createElement)("defs",null,Object(l.createElement)("filter",{id:n},Object(l.createElement)("feColorMatrix",{colorInterpolationFilters:"sRGB",type:"matrix",values:" .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 "}),Object(l.createElement)("feComponentTransfer",{colorInterpolationFilters:"sRGB"},Object(l.createElement)("feFuncR",{type:"table",tableValues:o.r.join(" ")}),Object(l.createElement)("feFuncG",{type:"table",tableValues:o.g.join(" ")}),Object(l.createElement)("feFuncB",{type:"table",tableValues:o.b.join(" ")}),Object(l.createElement)("feFuncA",{type:"table",tableValues:o.a.join(" ")})),Object(l.createElement)("feComposite",{in2:"SourceGraphic",operator:"in"})))),Object(l.createElement)("style",{dangerouslySetInnerHTML:{__html:r}}))}function pt(e){var t;let{attributes:n,setAttributes:o}=e;const r=null==n?void 0:n.style,c=null==r||null===(t=r.color)||void 0===t?void 0:t.duotone,i=Object(S.a)("color.duotone")||ut,a=Object(S.a)("color.palette")||ut,s=!Object(S.a)("color.custom"),u=!Object(S.a)("color.customDuotone")||0===(null==a?void 0:a.length)&&s;return 0===(null==i?void 0:i.length)&&u?null:Object(l.createElement)(d.b,{group:"block",__experimentalShareWithChildBlocks:!0},Object(l.createElement)(st.a,{duotonePalette:i,colorPalette:a,disableCustomDuotone:u,disableCustomColors:s,value:c,onChange:e=>{const t={...r,color:{...null==r?void 0:r.color,duotone:e}};o({style:t})}}))}Object(it.b)([at.a]);const mt=Object(u.createHigherOrderComponent)(e=>t=>{const n=Object(o.hasBlockSupport)(t.name,"color.__experimentalDuotone");return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(e,t),n&&Object(l.createElement)(pt,t))},"withDuotoneControls");const ft=Object(u.createHigherOrderComponent)(e=>t=>{var n,r,i;const s=Object(o.getBlockSupport)(t.name,"color.__experimentalDuotone"),d=null==t||null===(n=t.attributes)||void 0===n||null===(r=n.style)||void 0===r||null===(i=r.color)||void 0===i?void 0:i.duotone;if(!s||!d)return Object(l.createElement)(e,t);const b="wp-duotone-"+Object(u.useInstanceId)(e),p=function(e,t){const n=e.split(","),o=t.split(","),r=[];return n.forEach(e=>{o.forEach(t=>{r.push(`${e.trim()} ${t.trim()}`)})}),r.join(", ")}(".editor-styles-wrapper ."+b,s),m=a()(null==t?void 0:t.className,b),f=Object(l.useContext)(C.c.__unstableElementContext);return Object(l.createElement)(l.Fragment,null,f&&Object(l.createPortal)(Object(l.createElement)(bt,{selector:p,id:b,values:dt(d)}),f),Object(l.createElement)(e,Object(c.a)({},t,{className:m})))},"withDuotoneStyles");Object(r.addFilter)("blocks.registerBlockType","core/editor/duotone/add-attributes",(function(e){return Object(o.hasBlockSupport)(e,"color.__experimentalDuotone")?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(r.addFilter)("editor.BlockEdit","core/editor/duotone/with-editor-controls",mt),Object(r.addFilter)("editor.BlockListBlock","core/editor/duotone/with-styles",ft);var ht=n("1ZqX"),gt=n("BhPs"),Ot=n("w8sn"),vt=n("PPMp");function jt(e){let{setAttributes:t,attributes:n,name:r}=e;const{layout:c}=n,i=Object(S.a)("layout"),a=Object(ht.useSelect)(e=>{const{getSettings:t}=e(gt.a);return t().supportsLayout},[]),s=Object(o.getBlockSupport)(r,"__experimentalLayout",{}),{allowSwitching:u,allowEditing:d=!0,allowInheriting:b=!0,default:p}=s;if(!d)return null;const m=c||p||{},{inherit:f=!1,type:h="default"}=m;if("default"===h&&!a)return null;const g=Object(vt.a)(h),O=e=>t({layout:e});return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(k.b,null,Object(l.createElement)(v.PanelBody,{title:Object(j.__)("Layout")},b&&!!i&&Object(l.createElement)(v.ToggleControl,{label:Object(j.__)("Inherit default layout"),checked:!!f,onChange:()=>t({layout:{inherit:!f}})}),!f&&u&&Object(l.createElement)(kt,{type:h,onChange:e=>t({layout:{type:e}})}),!f&&g&&Object(l.createElement)(g.inspectorControls,{layout:m,onChange:O,layoutBlockSupport:s}))),!f&&g&&Object(l.createElement)(g.toolBarControls,{layout:m,onChange:O,layoutBlockSupport:s}))}function kt(e){let{type:t,onChange:n}=e;return Object(l.createElement)(v.ButtonGroup,null,Object(vt.b)().map(e=>{let{name:o,label:r}=e;return Object(l.createElement)(v.Button,{key:o,isPressed:t===o,onClick:()=>n(o)},r)}))}const _t=Object(u.createHigherOrderComponent)(e=>t=>{const{name:n}=t;return[Object(o.hasBlockSupport)(n,"__experimentalLayout")&&Object(l.createElement)(jt,Object(c.a)({key:"layout"},t)),Object(l.createElement)(e,Object(c.a)({key:"edit"},t))]},"withInspectorControls"),yt=Object(u.createHigherOrderComponent)(e=>t=>{const{name:n,attributes:r}=t,i=Object(o.hasBlockSupport)(n,"__experimentalLayout"),s=Object(u.useInstanceId)(e),d=Object(S.a)("layout")||{},b=Object(l.useContext)(C.c.__unstableElementContext),{layout:p}=r,{default:m}=Object(o.getBlockSupport)(n,"__experimentalLayout")||{},f=null!=p&&p.inherit?d:p||m||{},h=a()(null==t?void 0:t.className,{["wp-container-"+s]:i});return Object(l.createElement)(l.Fragment,null,i&&b&&Object(l.createPortal)(Object(l.createElement)(Ot.b,{selector:".wp-container-"+s,layout:f}),b),Object(l.createElement)(e,Object(c.a)({},t,{className:h})))});Object(r.addFilter)("blocks.registerBlockType","core/layout/addAttribute",(function(e){return Object(s.has)(e.attributes,["layout","type"])||Object(o.hasBlockSupport)(e,"__experimentalLayout")&&(e.attributes={...e.attributes,layout:{type:"object"}}),e})),Object(r.addFilter)("editor.BlockListBlock","core/editor/layout/with-layout-styles",yt),Object(r.addFilter)("editor.BlockEdit","core/editor/layout/with-inspector-controls",_t);const Et=[];function Ct(e){var t;let{borderColor:n,style:o}=e;const r=(null==o?void 0:o.border)||{},c=Object(I.a)("border-color",n);return{className:a()({[c]:!!c,"has-border-color":n||(null==o||null===(t=o.border)||void 0===t?void 0:t.color)})||void 0,style:tt({border:r})}}function St(e){const t=Object(S.a)("color.palette")||Et,n=Ct(e);if(e.borderColor){const o=Object(I.b)(t,e.borderColor);n.style.borderColor=o.color}return n}function wt(e){var t,n,o,r,c,l;const{backgroundColor:i,textColor:s,gradient:u,style:d}=e,b=Object(I.a)("background-color",i),p=Object(I.a)("color",s),m=Object(G.a)(u),f=m||(null==d||null===(t=d.color)||void 0===t?void 0:t.gradient);return{className:a()(p,m,{[b]:!f&&!!b,"has-text-color":s||(null==d||null===(n=d.color)||void 0===n?void 0:n.text),"has-background":i||(null==d||null===(o=d.color)||void 0===o?void 0:o.background)||u||(null==d||null===(r=d.color)||void 0===r?void 0:r.gradient),"has-link-color":null==d||null===(c=d.elements)||void 0===c||null===(l=c.link)||void 0===l?void 0:l.color})||void 0,style:tt({color:(null==d?void 0:d.color)||{}})}}function It(e){const{backgroundColor:t,textColor:n,gradient:o}=e,{palette:r,gradients:c}=Object(S.a)("color")||{},i=Object(l.useMemo)(()=>[...(null==r?void 0:r.custom)||[],...(null==r?void 0:r.theme)||[],...(null==r?void 0:r.default)||[]],[r]),a=Object(l.useMemo)(()=>[...(null==c?void 0:c.custom)||[],...(null==c?void 0:c.theme)||[],...(null==c?void 0:c.default)||[]],[c]),s=wt(e);if(t){const e=Object(I.b)(i,t);s.style.backgroundColor=e.color}if(o&&(s.style.background=Object(G.e)(a,o)),n){const e=Object(I.b)(i,n);s.style.color=e.color}return s}function Bt(e){const{style:t}=e;return{style:tt({spacing:(null==t?void 0:t.spacing)||{}})}}function xt(e){const[t,n]=Object(l.useState)(e);return Object(l.useEffect)(()=>{e&&n(e)},[e]),t}var Tt=n("14PQ"),Pt=n("BCrt"),Rt=n("lJLt")},uoCR:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n("GRId");const r=Object(o.createContext)({});function c(e){let{value:t,children:n}=e;const c=Object(o.useContext)(r),l=Object(o.useMemo)(()=>({...c,...t}),[c,t]);return Object(o.createElement)(r.Provider,{value:l,children:n})}t.b=r},ur0x:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return i}));var o=n("GRId");const r={name:"",isSelected:!1},c=Object(o.createContext)(r),{Provider:l}=c;function i(){return Object(o.useContext)(c)}},v5LD:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n("YLtl"),r=n("1ZqX"),c=n("HSyU"),l=n("ur0x"),i=n("BhPs");const a={"color.palette":e=>void 0===e.colors?void 0:e.colors,"color.gradients":e=>void 0===e.gradients?void 0:e.gradients,"color.custom":e=>void 0===e.disableCustomColors?void 0:!e.disableCustomColors,"color.customGradient":e=>void 0===e.disableCustomGradients?void 0:!e.disableCustomGradients,"typography.fontSizes":e=>void 0===e.fontSizes?void 0:e.fontSizes,"typography.customFontSize":e=>void 0===e.disableCustomFontSizes?void 0:!e.disableCustomFontSizes,"typography.lineHeight":e=>e.enableCustomLineHeight,"spacing.units":e=>{if(void 0!==e.enableCustomUnits)return!0===e.enableCustomUnits?["px","em","rem","vh","vw","%"]:e.enableCustomUnits},"spacing.padding":e=>e.enableCustomSpacing},s={"border.customColor":"border.color","border.customStyle":"border.style","border.customWidth":"border.width","typography.customFontStyle":"typography.fontStyle","typography.customFontWeight":"typography.fontWeight","typography.customLetterSpacing":"typography.letterSpacing","typography.customTextDecorations":"typography.textDecoration","typography.customTextTransforms":"typography.textTransform","border.customRadius":"border.radius","spacing.customMargin":"spacing.margin","spacing.customPadding":"spacing.padding","typography.customLineHeight":"typography.lineHeight"};function u(e){const{name:t}=Object(l.c)();return Object(r.useSelect)(n=>{var r;const l=n(i.a).getSettings(),u=(e=>s[e]||e)(e),d="__experimentalFeatures."+u,b=`__experimentalFeatures.blocks.${t}.${u}`,p=null!==(r=Object(o.get)(l,b))&&void 0!==r?r:Object(o.get)(l,d);var m,f;if(void 0!==p)return c.__EXPERIMENTAL_PATHS_WITH_MERGE[u]?null!==(m=null!==(f=p.custom)&&void 0!==f?f:p.theme)&&void 0!==m?m:p.default:p;const h=a[u]?a[u](l):void 0;return void 0!==h?h:"typography.dropCap"===u||void 0},[t,e])}},v8Ku:function(e,t){},vIlp:function(e,t,n){"use strict";function o(e,t,n){const o="top"===n||"bottom"===n,{x:r,y:c}=e,l=o?r:c,i=o?c:r,a=o?t.left:t.top,s=o?t.right:t.bottom,u=t[n];let d;return d=l>=a&&l<=s?l:l<s?a:s,Math.sqrt((l-d)**2+(i-u)**2)}function r(e,t){let n,r,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["top","bottom","left","right"];return c.forEach(c=>{const l=o(e,t,c);(void 0===n||l<n)&&(n=l,r=c)}),[n,r]}n.d(t,"a",(function(){return r}))},vSu0:function(e,t,n){"use strict";var o=n("YLtl"),r=n("K9lf"),c=n("eGrx"),l=n.n(c);const i=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;var a=function(e,t){t=t||{};let n=1,o=1;function r(e){const t=e.match(/\n/g);t&&(n+=t.length);const r=e.lastIndexOf("\n");o=~r?e.length-r:o+e.length}function c(){const e={line:n,column:o};return function(t){return t.position=new l(e),f(),t}}function l(e){this.start=e,this.end={line:n,column:o},this.source=t.source}l.prototype.content=e;const a=[];function u(r){const c=new Error(t.source+":"+n+":"+o+": "+r);if(c.reason=r,c.filename=t.source,c.line=n,c.column=o,c.source=e,!t.silent)throw c;a.push(c)}function d(){return m(/^{\s*/)}function b(){return m(/^}/)}function p(){let t;const n=[];for(f(),h(n);e.length&&"}"!==e.charAt(0)&&(t=S()||w());)!1!==t&&(n.push(t),h(n));return n}function m(t){const n=t.exec(e);if(!n)return;const o=n[0];return r(o),e=e.slice(o.length),n}function f(){m(/^\s*/)}function h(e){let t;for(e=e||[];t=g();)!1!==t&&e.push(t);return e}function g(){const t=c();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return;let n=2;for(;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return u("End of comment missing");const l=e.slice(2,n-2);return o+=2,r(l),e=e.slice(n),o+=2,t({type:"comment",comment:l})}function O(){const e=m(/^([^{]+)/);if(e)return s(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"‌")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function v(){const e=c();let t=m(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!t)return;if(t=s(t[0]),!m(/^:\s*/))return u("property missing ':'");const n=m(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),o=e({type:"declaration",property:t.replace(i,""),value:n?s(n[0]).replace(i,""):""});return m(/^[;\s]*/),o}function j(){const e=[];if(!d())return u("missing '{'");let t;for(h(e);t=v();)!1!==t&&(e.push(t),h(e));return b()?e:u("missing '}'")}function k(){let e;const t=[],n=c();for(;e=m(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),m(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:j()})}const _=C("import"),y=C("charset"),E=C("namespace");function C(e){const t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){const n=c(),o=m(t);if(!o)return;const r={type:e};return r[e]=o[1].trim(),n(r)}}function S(){if("@"===e[0])return function(){const e=c();let t=m(/^@([-\w]+)?keyframes\s*/);if(!t)return;const n=t[1];if(t=m(/^([-\w]+)\s*/),!t)return u("@keyframes missing name");const o=t[1];if(!d())return u("@keyframes missing '{'");let r,l=h();for(;r=k();)l.push(r),l=l.concat(h());return b()?e({type:"keyframes",name:o,vendor:n,keyframes:l}):u("@keyframes missing '}'")}()||function(){const e=c(),t=m(/^@media *([^{]+)/);if(!t)return;const n=s(t[1]);if(!d())return u("@media missing '{'");const o=h().concat(p());return b()?e({type:"media",media:n,rules:o}):u("@media missing '}'")}()||function(){const e=c(),t=m(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:s(t[1]),media:s(t[2])})}()||function(){const e=c(),t=m(/^@supports *([^{]+)/);if(!t)return;const n=s(t[1]);if(!d())return u("@supports missing '{'");const o=h().concat(p());return b()?e({type:"supports",supports:n,rules:o}):u("@supports missing '}'")}()||_()||y()||E()||function(){const e=c(),t=m(/^@([-\w]+)?document *([^{]+)/);if(!t)return;const n=s(t[1]),o=s(t[2]);if(!d())return u("@document missing '{'");const r=h().concat(p());return b()?e({type:"document",document:o,vendor:n,rules:r}):u("@document missing '}'")}()||function(){const e=c();if(!m(/^@page */))return;const t=O()||[];if(!d())return u("@page missing '{'");let n,o=h();for(;n=v();)o.push(n),o=o.concat(h());return b()?e({type:"page",selectors:t,declarations:o}):u("@page missing '}'")}()||function(){const e=c();if(!m(/^@host\s*/))return;if(!d())return u("@host missing '{'");const t=h().concat(p());return b()?e({type:"host",rules:t}):u("@host missing '}'")}()||function(){const e=c();if(!m(/^@font-face\s*/))return;if(!d())return u("@font-face missing '{'");let t,n=h();for(;t=v();)n.push(t),n=n.concat(h());return b()?e({type:"font-face",declarations:n}):u("@font-face missing '}'")}()}function w(){const e=c(),t=O();return t?(h(),e({type:"rule",selectors:t,declarations:j()})):u("selector missing")}return function e(t,n){const o=t&&"string"==typeof t.type,r=o?t:n;for(const n in t){const o=t[n];Array.isArray(o)?o.forEach((function(t){e(t,r)})):o&&"object"==typeof o&&e(o,r)}o&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return t}(function(){const e=p();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:a}}}())};function s(e){return e?e.replace(/^\s+|\s+$/g,""):""}var u=n("P7XM"),d=n.n(u),b=p;function p(e){this.options=e||{}}p.prototype.emit=function(e){return e},p.prototype.visit=function(e){return this[e.type](e)},p.prototype.mapVisit=function(e,t){let n="";t=t||"";for(let o=0,r=e.length;o<r;o++)n+=this.visit(e[o]),t&&o<r-1&&(n+=this.emit(t));return n};var m=f;function f(e){b.call(this,e)}d()(f,b),f.prototype.compile=function(e){return e.stylesheet.rules.map(this.visit,this).join("")},f.prototype.comment=function(e){return this.emit("",e.position)},f.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},f.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},f.prototype.document=function(e){const t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},f.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},f.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},f.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},f.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit("{")+this.mapVisit(e.keyframes)+this.emit("}")},f.prototype.keyframe=function(e){const t=e.declarations;return this.emit(e.values.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}")},f.prototype.page=function(e){const t=e.selectors.length?e.selectors.join(", "):"";return this.emit("@page "+t,e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},f.prototype["font-face"]=function(e){return this.emit("@font-face",e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},f.prototype.host=function(e){return this.emit("@host",e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},f.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},f.prototype.rule=function(e){const t=e.declarations;return t.length?this.emit(e.selectors.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}"):""},f.prototype.declaration=function(e){return this.emit(e.property+":"+e.value,e.position)+this.emit(";")};var h=g;function g(e){e=e||{},b.call(this,e),this.indentation=e.indent}d()(g,b),g.prototype.compile=function(e){return this.stylesheet(e)},g.prototype.stylesheet=function(e){return this.mapVisit(e.stylesheet.rules,"\n\n")},g.prototype.comment=function(e){return this.emit(this.indent()+"/*"+e.comment+"*/",e.position)},g.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},g.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},g.prototype.document=function(e){const t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},g.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},g.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},g.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},g.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.keyframes,"\n")+this.emit(this.indent(-1)+"}")},g.prototype.keyframe=function(e){const t=e.declarations;return this.emit(this.indent())+this.emit(e.values.join(", "),e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(t,"\n")+this.emit(this.indent(-1)+"\n"+this.indent()+"}\n")},g.prototype.page=function(e){const t=e.selectors.length?e.selectors.join(", ")+" ":"";return this.emit("@page "+t,e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},g.prototype["font-face"]=function(e){return this.emit("@font-face ",e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},g.prototype.host=function(e){return this.emit("@host",e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},g.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},g.prototype.rule=function(e){const t=this.indent(),n=e.declarations;return n.length?this.emit(e.selectors.map((function(e){return t+e})).join(",\n"),e.position)+this.emit(" {\n")+this.emit(this.indent(1))+this.mapVisit(n,"\n")+this.emit(this.indent(-1))+this.emit("\n"+this.indent()+"}"):""},g.prototype.declaration=function(e){return this.emit(this.indent())+this.emit(e.property+": "+e.value,e.position)+this.emit(";")},g.prototype.indent=function(e){return this.level=this.level||1,null!==e?(this.level+=e,""):Array(this.level).join(this.indentation||" ")};var O=function(e,t){try{const r=a(e),c=l.a.map(r,(function(e){if(!e)return e;const n=t(e);return this.update(n)}));return n=c,((o=o||{}).compress?new m(o):new h(o)).compile(n)}catch(e){return console.warn("Error while traversing the CSS: "+e),null}var n,o};function v(e){return 0!==e.value.indexOf("data:")&&0!==e.value.indexOf("#")&&(t=e.value,!/^\/(?!\/)/.test(t)&&!function(e){return/^(?:https?:)?\/\//.test(e)}(e.value));var t}function j(e,t){return new URL(e,t).toString()}var k=e=>t=>{if("declaration"===t.type){const c=function(e){const t=/url\((\s*)(['"]?)(.+?)\2(\s*)\)/g;let n;const o=[];for(;null!==(n=t.exec(e));){const e={source:n[0],before:n[1],quote:n[2],value:n[3],after:n[4]};v(e)&&o.push(e)}return o}(t.value).map((r=e,e=>({...e,newUrl:"url("+e.before+e.quote+j(e.value,r)+e.quote+e.after+")"})));return{...t,value:(n=t.value,o=c,o.forEach(e=>{n=n.replace(e.source,e.newUrl)}),n)}}var n,o,r;return t};const _=/^(body|html|:root).*$/;var y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return n=>{const o=n=>t.includes(n.trim())?n:n.match(_)?n.replace(/^(body|html|:root)/,e):e+" "+n;return"rule"===n.type?{...n,selectors:n.selectors.map(o)}:n}};t.a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(o.map)(e,e=>{let{css:n,baseURL:o,__experimentalNoWrapper:c=!1}=e;const l=[];return t&&!c&&l.push(y(t)),o&&l.push(k(o)),l.length?O(n,Object(r.compose)(l)):n})}},vtO0:function(e,t,n){"use strict";n.d(t,"a",(function(){return j})),n.d(t,"b",(function(){return k}));var o=n("wx14"),r=n("GRId"),c=n("TSYQ"),l=n.n(c),i=n("l3Sj"),a=n("tI+e"),s=n("Tqx9");var u=Object(r.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(s.Path,{d:"M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"}));var d=Object(r.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(s.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),b=n("EpZT");var p=Object(r.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(s.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"})),m=n("beZb"),f=n("XNw2"),h=n("K/rC");const g={none:{icon:u,title:Object(i.__)("None")},left:{icon:d,title:Object(i.__)("Align left")},center:{icon:b.a,title:Object(i.__)("Align center")},right:{icon:p,title:Object(i.__)("Align right")},wide:{icon:m.a,title:Object(i.__)("Wide width")},full:{icon:f.a,title:Object(i.__)("Full width")}},O={isAlternate:!0};var v=function(e){let{value:t,onChange:n,controls:c,isToolbar:s,isCollapsed:u=!0}=e;const d=Object(h.a)(c);if(!!!d.length)return null;function b(e){n([t,"none"].includes(e)?void 0:e)}const p=g[t],m=g.none,f=s?a.ToolbarGroup:a.ToolbarDropdownMenu,v={popoverProps:O,icon:p?p.icon:m.icon,label:Object(i.__)("Align"),toggleProps:{describedBy:Object(i.__)("Change alignment")}},j=s||r.Platform.isNative?{isCollapsed:s?u:void 0,controls:d.map(e=>{let{name:n}=e;return{...g[n],isActive:t===n||!t&&"none"===n,role:u?"menuitemradio":void 0,onClick:()=>b(n)}})}:{children:e=>{let{onClose:n}=e;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(a.MenuGroup,{className:"block-editor-block-alignment-control__menu-group"},d.map(e=>{let{name:o,info:c}=e;const{icon:i,title:s}=g[o],u=o===t||!t&&"none"===o;return Object(r.createElement)(a.MenuItem,{key:o,icon:i,iconPosition:"left",className:l()("components-dropdown-menu__menu-item",{"is-active":u}),isSelected:u,onClick:()=>{b(o),n()},role:"menuitemradio",info:c},s)})))}};return Object(r.createElement)(f,Object(o.a)({},v,j))};function j(e){return Object(r.createElement)(v,Object(o.a)({},e,{isToolbar:!1}))}function k(e){return Object(r.createElement)(v,Object(o.a)({},e,{isToolbar:!0}))}},w8sn:function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return u}));var o=n("wx14"),r=n("GRId"),c=n("PPMp");const l={type:"default"},i=Object(r.createContext)(l),a=i.Provider;function s(){return Object(r.useContext)(i)}function u(e){let{layout:t={},...n}=e;const l=Object(c.a)(t.type);return l?Object(r.createElement)(l.save,Object(o.a)({layout:t},n)):null}},w95h:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=c},wC17:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n("1ZqX"),r=n("HSyU"),c=n("BhPs");function l(e){return Object(o.useSelect)(t=>{if(!e)return null;const{getBlockName:n,getBlockAttributes:o}=t(c.a),{getBlockType:l,getActiveBlockVariation:i}=t(r.store),a=n(e),s=l(a);if(!s)return null;const u=o(e),d=i(a,u),b={title:s.title,icon:s.icon,description:s.description,anchor:null==u?void 0:u.anchor};return d?{title:d.title||s.title,icon:d.icon||s.icon,description:d.description||s.description}:b},[e])}},wJiJ:function(e,t,n){e.exports=n("1K8p")},weEX:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("GRId"),r=n("l3Sj"),c=n("tI+e"),l=n("RxS6");function i(e){let{value:t,onChange:n}=e;const i=function(e){return void 0!==e&&""!==e}(t),a=i?t:"";return Object(o.createElement)("div",{className:"block-editor-line-height-control"},Object(o.createElement)(c.TextControl,{autoComplete:"off",onKeyDown:e=>{const{keyCode:t}=e;t!==l.ZERO||i||(e.preventDefault(),n("0"))},onChange:e=>{if(i)return void n(e);let t=e;switch(e){case"0.1":t=1.6;break;case"0":t=1.4}n(t)},label:Object(r.__)("Line height"),placeholder:1.5,step:.1,type:"number",value:a,min:0}))}},"wiT/":function(e,t,n){"use strict";var o=n("GRId"),r=n("tI+e"),c=n("GOly");t.a=function(e){let{children:t}=e;const n=Object(r.__unstableUseCompositeState)({shift:!0,wrap:"horizontal"});return Object(o.createElement)(c.a.Provider,{value:n},t)}},wx14:function(e,t,n){"use strict";function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return o}))},wzfx:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"}));t.a=c},xBDm:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("GRId"),r=n("tI+e"),c=n("l3Sj"),l=n("v5LD");function i(e){let{value:t,onChange:n,__unstableInputWidth:i="60px"}=e;const a=Object(r.__experimentalUseCustomUnits)({availableUnits:Object(l.a)("spacing.units")||["px","em","rem"],defaultValues:{px:"2",em:".2",rem:".2"}});return Object(o.createElement)(r.__experimentalUnitControl,{label:Object(c.__)("Letter-spacing"),value:t,__unstableInputWidth:i,units:a,onChange:n})}},xCFn:function(e,t,n){"use strict";n.d(t,"a",(function(){return T}));var o=n("GRId"),r=n("YLtl"),c=n("TSYQ"),l=n.n(c),i=n("HSyU"),a=n("tI+e"),s=n("1ZqX"),u=n("hF7m"),d=n("K9lf"),b=n("1CF3"),p=n("wx14"),m=n("xN+R"),f=n("RxS6"),h=n("gdqT"),g=n("l3Sj"),O=n("f8JO"),v=n("7SSY"),j=n("BhPs"),k=n("ZAjO"),_=n("wC17");var y=function(e){let{clientId:t,rootClientId:n,blockElement:r}=e;const c=Object(_.a)(t),u=Object(s.useSelect)(e=>{var o;const{getBlock:r,getBlockIndex:c,hasBlockMovingClientId:l,getBlockListSettings:i}=e(j.a),a=c(t,n),{name:s,attributes:u}=r(t);return{index:a,name:s,attributes:u,blockMovingMode:l(),orientation:null===(o=i(n))||void 0===o?void 0:o.orientation}},[t,n]),{index:d,name:y,attributes:E,blockMovingMode:C,orientation:S}=u,{setNavigationMode:w,removeBlock:I}=Object(s.useDispatch)(j.a),B=Object(o.useRef)(),x=Object(i.getBlockType)(y),T=Object(i.__experimentalGetAccessibleBlockLabel)(x,E,d+1,S);Object(o.useEffect)(()=>{B.current.focus(),Object(h.speak)(T)},[T]);const{hasBlockMovingClientId:P,getBlockIndex:R,getBlockRootClientId:N,getClientIdsOfDescendants:L,getSelectedBlockClientId:M,getMultiSelectedBlocksEndClientId:A,getPreviousBlockClientId:D,getNextBlockClientId:F}=Object(s.useSelect)(j.a),{selectBlock:z,clearSelectedBlock:H,setBlockMovingClientId:V,moveBlockToPosition:G}=Object(s.useDispatch)(j.a),U=l()("block-editor-block-list__block-selection-button",{"is-block-moving-mode":!!C}),W=Object(g.__)("Drag");return Object(o.createElement)("div",{className:U},Object(o.createElement)(a.Flex,{justify:"center",className:"block-editor-block-list__block-selection-button__content"},Object(o.createElement)(a.FlexItem,null,Object(o.createElement)(v.a,{icon:null==c?void 0:c.icon,showColors:!0})),Object(o.createElement)(a.FlexItem,null,Object(o.createElement)(k.a,{clientIds:[t]},e=>Object(o.createElement)(a.Button,Object(p.a)({icon:m.a,className:"block-selection-button_drag-handle","aria-hidden":"true",label:W,tabIndex:"-1"},e)))),Object(o.createElement)(a.FlexItem,null,Object(o.createElement)(a.Button,{ref:B,onClick:()=>w(!1),onKeyDown:function(e){const{keyCode:n}=e,o=n===f.UP,c=n===f.DOWN,l=n===f.LEFT,i=n===f.RIGHT,a=n===f.TAB,s=n===f.ESCAPE,u=n===f.ENTER,d=n===f.SPACE,p=e.shiftKey;if(n===f.BACKSPACE||n===f.DELETE)return I(t),void e.preventDefault();const m=M(),h=A(),g=D(h||m),O=F(h||m),v=a&&p||o,j=a&&!p||c,k=l,_=i;let y;if(v)y=g;else if(j)y=O;else if(k){var E;y=null!==(E=N(m))&&void 0!==E?E:m}else if(_){var C;y=null!==(C=L([m])[0])&&void 0!==C?C:m}const S=P();if(s&&S&&!e.defaultPrevented&&(V(null),e.preventDefault()),(u||d)&&S){const e=N(S),t=N(m),n=R(S,e);let o=R(m,t);n<o&&e===t&&(o-=1),G(S,e,t,o),z(S),V(null)}if(j||v||k||_)if(y)e.preventDefault(),z(y);else if(a&&m){let t;j?(t=b.focus.tabbable.findNext(r),t||(t=r.ownerDocument.defaultView.frameElement,t=b.focus.tabbable.findNext(t))):t=b.focus.tabbable.findPrevious(r),t&&(e.preventDefault(),t.focus(),H())}},label:T,className:"block-selection-button_select-button"},Object(o.createElement)(O.a,{clientId:t})))))},E=n("JUfZ"),C=n("qrxh"),S=n("PKbb"),w=n("2z9l");function I(e){const{isNavigationMode:t,isMultiSelecting:n,hasMultiSelection:o,isTyping:r,isCaretWithinFormattedText:c,getSettings:l,getLastMultiSelectedBlockClientId:i}=e(j.a);return{isNavigationMode:t(),isMultiSelecting:n(),isTyping:r(),isCaretWithinFormattedText:c(),hasMultiSelection:o(),hasFixedToolbar:l().hasFixedToolbar,lastClientId:i()}}function B(e){let{clientId:t,rootClientId:n,isValid:r,isEmptyDefaultBlock:c,capturingClientId:i,__unstablePopoverSlot:p,__unstableContentRef:m}=e;const{isNavigationMode:f,isMultiSelecting:h,isTyping:g,isCaretWithinFormattedText:O,hasMultiSelection:v,hasFixedToolbar:k,lastClientId:_}=Object(s.useSelect)(I,[]),B=Object(s.useSelect)(e=>{const{isBlockInsertionPointVisible:n,getBlockInsertionPoint:o,getBlockOrder:r}=e(j.a);if(!n())return!1;const c=o();return r(c.rootClientId)[c.index]===t},[t]),x=Object(d.useViewportMatch)("medium"),[T,P]=Object(o.useState)(!1),[R,N]=Object(o.useState)(!1),{stopTyping:L}=Object(s.useDispatch)(j.a),M=!g&&!f&&c&&r,A=f,D=!f&&!k&&x&&!M&&!h&&(!g||O),F=!(f||D||k||c);Object(u.useShortcut)("core/block-editor/focus-toolbar",()=>{P(!0),L(!0)},{isDisabled:!F}),Object(o.useEffect)(()=>{D||P(!1)},[D]);const z=Object(o.useRef)(),H=Object(S.a)(t),V=Object(S.a)(_),G=Object(S.a)(i),U=Object(w.a)(m);if(!(A||D||T||M))return null;let W=H;if(!W)return null;i&&(W=G);let q=W;if(v){if(!V)return null;q={top:W,bottom:V}}const K=M?"top left right":"top right left",{ownerDocument:$}=W,Y=M?void 0:$.defaultView.frameElement||Object(b.getScrollContainer)(W)||$.body;return Object(o.createElement)(a.Popover,{ref:U,noArrow:!0,animate:!1,position:K,focusOnMount:!1,anchorRef:q,className:l()("block-editor-block-list__block-popover",{"is-insertion-point-visible":B}),__unstableStickyBoundaryElement:Y,__unstableSlotName:p||null,__unstableBoundaryParent:!0,__unstableObserveElement:W,shouldAnchorIncludePadding:!0,__unstableEditorCanvasWrapper:null==m?void 0:m.current},(D||T)&&Object(o.createElement)("div",{onFocus:function(){N(!0)},onBlur:function(){N(!1)},tabIndex:-1,className:l()("block-editor-block-list__block-popover-inserter",{"is-visible":R})},Object(o.createElement)(C.a,{clientId:t,rootClientId:n,__experimentalIsQuick:!0})),(D||T)&&Object(o.createElement)(E.a,{focusOnMount:T,__experimentalInitialIndex:z.current,__experimentalOnIndexChange:e=>{z.current=e},key:t}),A&&Object(o.createElement)(y,{clientId:t,rootClientId:n,blockElement:W}),M&&Object(o.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},Object(o.createElement)(C.a,{position:"bottom right",rootClientId:n,clientId:t,__experimentalIsQuick:!0})))}function x(e){const{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:n,getBlockRootClientId:o,getBlock:c,getBlockParents:l,__experimentalGetBlockListSettingsForBlocks:a}=e(j.a),s=t()||n();if(!s)return;const{name:u,attributes:d={},isValid:b}=c(s)||{},p=l(s),m=a(p),f=Object(r.find)(p,e=>{var t;return null===(t=m[e])||void 0===t?void 0:t.__experimentalCaptureToolbars});return{clientId:s,rootClientId:o(s),name:u,isValid:b,isEmptyDefaultBlock:u&&Object(i.isUnmodifiedDefaultBlock)({name:u,attributes:d}),capturingClientId:f}}function T(e){let{__unstablePopoverSlot:t,__unstableContentRef:n}=e;const r=Object(s.useSelect)(x,[]);if(!r)return null;const{clientId:c,rootClientId:l,name:i,isValid:a,isEmptyDefaultBlock:u,capturingClientId:d}=r;return i?Object(o.createElement)(B,{clientId:c,rootClientId:l,isValid:a,isEmptyDefaultBlock:u,capturingClientId:d,__unstablePopoverSlot:t,__unstableContentRef:n}):null}},"xN+R":function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(o.createElement)(r.Path,{d:"M5 4h2V2H5v2zm6-2v2h2V2h-2zm-6 8h2V8H5v2zm6 0h2V8h-2v2zm-6 6h2v-2H5v2zm6 0h2v-2h-2v2z"}));t.a=c},xTGt:function(e,t){e.exports=window.wp.blob},xZzQ:function(e,t,n){"use strict";var o=n("GRId"),r=n("tI+e"),c=n("l3Sj"),l=n("1ZqX");const i=[Object(o.createInterpolateElement)(Object(c.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:Object(o.createElement)("kbd",null)}),Object(o.createInterpolateElement)(Object(c.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:Object(o.createElement)("kbd",null)}),Object(o.createInterpolateElement)(Object(c.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:Object(o.createElement)("kbd",null)}),Object(c.__)("Drag files into the editor to automatically insert media blocks."),Object(c.__)("Change a block's type by pressing the block icon on the toolbar.")];var a=function(){const[e]=Object(o.useState)(Math.floor(Math.random()*i.length));return Object(o.createElement)(r.Tip,null,i[e])},s=n("HSyU"),u=n("GvwK"),d=n("REKd");var b=function(e){var t,n;let{item:r}=e;const{name:l,title:i,icon:a,description:b,initialAttributes:p}=r,m=Object(s.getBlockType)(l),f=Object(s.isReusableBlock)(r);return Object(o.createElement)("div",{className:"block-editor-inserter__preview-container"},Object(o.createElement)("div",{className:"block-editor-inserter__preview"},f||null!=m&&m.example?Object(o.createElement)("div",{className:"block-editor-inserter__preview-content"},Object(o.createElement)(d.a,{__experimentalPadding:16,viewportWidth:null!==(t=null===(n=m.example)||void 0===n?void 0:n.viewportWidth)&&void 0!==t?t:500,blocks:m.example?Object(s.getBlockFromExample)(r.name,{attributes:{...m.example.attributes,...p},innerBlocks:m.example.innerBlocks}):Object(s.createBlock)(l,p)})):Object(o.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},Object(c.__)("No Preview Available."))),!f&&Object(o.createElement)(u.a,{title:i,icon:a,description:b}))},p=n("YLtl"),m=n("K9lf"),f=n("6ZVF"),h=n("mdLt"),g=n("+G0a"),O=n("wiT/");const v=[];var j=function(e){let{rootClientId:t,onInsert:n,onHover:r,showMostUsedBlocks:l}=e;const[i,a,s,u]=Object(g.a)(t,n),d=Object(o.useMemo)(()=>Object(p.orderBy)(i,["frecency"],["desc"]).slice(0,6),[i]),b=Object(o.useMemo)(()=>i.filter(e=>!e.category),[i]),j=Object(o.useMemo)(()=>Object(p.flow)(e=>e.filter(e=>e.category&&"reusable"!==e.category),e=>Object(p.groupBy)(e,"category"))(i),[i]),k=Object(o.useMemo)(()=>{const e={...s};return Object.keys(s).forEach(t=>{e[t]=i.filter(e=>(e=>e.name.split("/")[0])(e)===t),0===e[t].length&&delete e[t]}),e},[i,s]);Object(o.useEffect)(()=>()=>r(null),[]);const _=Object(m.useAsyncList)(a),y=a.length===_.length,E=Object(o.useMemo)(()=>Object.entries(s),[s]),C=Object(m.useAsyncList)(y?E:v);return Object(o.createElement)(O.a,null,Object(o.createElement)("div",null,l&&!!d.length&&Object(o.createElement)(h.a,{title:Object(c._x)("Most used","blocks")},Object(o.createElement)(f.a,{items:d,onSelect:u,onHover:r,label:Object(c._x)("Most used","blocks")})),Object(p.map)(_,e=>{const t=j[e.slug];return t&&t.length?Object(o.createElement)(h.a,{key:e.slug,title:e.title,icon:e.icon},Object(o.createElement)(f.a,{items:t,onSelect:u,onHover:r,label:e.title})):null}),y&&b.length>0&&Object(o.createElement)(h.a,{className:"block-editor-inserter__uncategorized-blocks-panel",title:Object(c.__)("Uncategorized")},Object(o.createElement)(f.a,{items:b,onSelect:u,onHover:r,label:Object(c.__)("Uncategorized")})),Object(p.map)(C,e=>{let[t,n]=e;const c=k[t];return c&&c.length?Object(o.createElement)(h.a,{key:t,title:n.title,icon:n.icon},Object(o.createElement)(f.a,{items:c,onSelect:u,onHover:r,label:n.title})):null})))},k=n("TSYQ"),_=n.n(k);var y=function(e){let{selectedCategory:t,patternCategories:n,onClickCategory:l,openPatternExplorer:i}=e;const a=Object(m.useViewportMatch)("medium","<"),s=_()("block-editor-inserter__panel-header","block-editor-inserter__panel-header-patterns");return Object(o.createElement)(r.Flex,{justify:"space-between",align:"start",gap:"4",className:s},Object(o.createElement)(r.FlexItem,{isBlock:!0},Object(o.createElement)(r.SelectControl,{className:"block-editor-inserter__panel-dropdown",label:Object(c.__)("Filter patterns"),hideLabelFromVision:!0,value:t.name,onChange:e=>{l(n.find(t=>e===t.name))},onBlur:e=>{null!=e&&e.relatedTarget||e.stopPropagation()},options:(()=>{const e=[];return n.map(t=>e.push({value:t.name,label:t.label})),e})()})),!a&&Object(o.createElement)(r.FlexItem,null,Object(o.createElement)(r.Button,{variant:"secondary",className:"block-editor-inserter__patterns-explorer-expand",label:Object(c.__)("Explore all patterns"),onClick:()=>i()},Object(c._x)("Explore","Label for showing all block patterns"))))},E=n("nQUx"),C=n("Fmc1");function S(e){let{selectedCategory:t,patternCategories:n,onClickCategory:c}=e;const l="block-editor-block-patterns-explorer__sidebar";return Object(o.createElement)("div",{className:l+"__categories-list"},n.map(e=>{let{name:n,label:i}=e;return Object(o.createElement)(r.Button,{key:n,label:i,className:l+"__categories-list__item",isPressed:t===n,onClick:()=>{c(n)}},i)}))}function w(e){let{filterValue:t,setFilterValue:n}=e;return Object(o.createElement)("div",{className:"block-editor-block-patterns-explorer__search"},Object(o.createElement)(r.SearchControl,{onChange:n,value:t,label:Object(c.__)("Search for patterns"),placeholder:Object(c.__)("Search")}))}var I=function(e){let{selectedCategory:t,patternCategories:n,onClickCategory:r,filterValue:c,setFilterValue:l}=e;return Object(o.createElement)("div",{className:"block-editor-block-patterns-explorer__sidebar"},Object(o.createElement)(w,{filterValue:c,setFilterValue:l}),!c&&Object(o.createElement)(S,{selectedCategory:t,patternCategories:n,onClickCategory:r}))},B=n("gdqT"),x=n("LolH"),T=n("AORF"),P=n("pOGT");function R(e){let{filterValue:t,filteredBlockPatternsLength:n}=e;return t?Object(o.createElement)(r.__experimentalHeading,{level:2,lineHeight:"48px",className:"block-editor-block-patterns-explorer__search-results-count"},Object(c.sprintf)(Object(c._n)('%1$d pattern found for "%2$s"','%1$d patterns found for "%2$s"',n),n,t)):null}var N=function(e){let{filterValue:t,selectedCategory:n,patternCategories:r}=e;const l=Object(m.useDebounce)(B.speak,500),[i,a]=Object(T.a)({shouldFocusBlock:!0}),[s,,u]=Object(E.a)(a,i),d=Object(o.useMemo)(()=>r.map(e=>e.name),[r]),b=Object(o.useMemo)(()=>t?Object(P.b)(s,t):s.filter(e=>{var t,o;return"uncategorized"===n?!(null!==(t=e.categories)&&void 0!==t&&t.length)||e.categories.every(e=>!d.includes(e)):null===(o=e.categories)||void 0===o?void 0:o.includes(n)}),[t,n,s]);Object(o.useEffect)(()=>{if(!t)return;const e=b.length,n=Object(c.sprintf)(Object(c._n)("%d result found.","%d results found.",e),e);l(n)},[t,l]);const p=Object(m.useAsyncList)(b,{step:2}),f=!(null==b||!b.length);return Object(o.createElement)("div",{className:"block-editor-block-patterns-explorer__list"},f&&Object(o.createElement)(R,{filterValue:t,filteredBlockPatternsLength:b.length}),Object(o.createElement)(O.a,null,!f&&Object(o.createElement)(x.a,null),f&&Object(o.createElement)(C.a,{shownPatterns:p,blockPatterns:b,onClickPattern:u,isDraggable:!1})))};function L(e){let{initialCategory:t,patternCategories:n}=e;const[r,c]=Object(o.useState)(""),[l,i]=Object(o.useState)(null==t?void 0:t.name);return Object(o.createElement)("div",{className:"block-editor-block-patterns-explorer"},Object(o.createElement)(I,{selectedCategory:l,patternCategories:n,onClickCategory:i,filterValue:r,setFilterValue:c}),Object(o.createElement)(N,{filterValue:r,selectedCategory:l,patternCategories:n}))}var M=function(e){let{onModalClose:t,...n}=e;return Object(o.createElement)(r.Modal,{title:Object(c.__)("Patterns"),closeLabel:Object(c.__)("Close"),onRequestClose:t,isFullScreen:!0},Object(o.createElement)(L,n))};function A(e){let{rootClientId:t,onInsert:n,selectedCategory:r,populatedCategories:c}=e;const[l,,i]=Object(E.a)(n,t),a=Object(o.useCallback)(e=>{var t;if(null===(t=e.categories)||void 0===t||!t.length)return 1/0;const n=c.reduce((e,t,n)=>{let{name:o}=t;return e[o]=n,e},{});return Math.min(...e.categories.map(e=>void 0!==n[e]?n[e]:1/0))},[c]),s=Object(o.useMemo)(()=>l.filter(e=>{var t;return"uncategorized"===r.name?a(e)===1/0:null===(t=e.categories)||void 0===t?void 0:t.includes(r.name)}),[l,r]),u=Object(o.useMemo)(()=>s.sort((e,t)=>a(e)-a(t)),[s,a]),d=Object(m.useAsyncList)(u);return s.length?Object(o.createElement)("div",{className:"block-editor-inserter__panel-content"},Object(o.createElement)(C.a,{shownPatterns:d,blockPatterns:s,onClickPattern:i,label:r.label,orientation:"vertical",isDraggable:!0})):null}var D=function(e){let{rootClientId:t,onInsert:n,onClickCategory:r,selectedCategory:l}=e;const[i,a]=Object(o.useState)(!1),[s,u]=Object(E.a)(),d=Object(o.useCallback)(e=>!(!e.categories||!e.categories.length)&&e.categories.some(e=>u.some(t=>t.name===e)),[u]),b=Object(o.useMemo)(()=>{const e=u.filter(e=>s.some(t=>{var n;return null===(n=t.categories)||void 0===n?void 0:n.includes(e.name)})).sort((e,t)=>{let{name:n}=e,{name:o}=t;return[n,o].includes("featured")?"featured"===n?-1:1:0});return s.some(e=>!d(e))&&!e.find(e=>"uncategorized"===e.name)&&e.push({name:"uncategorized",label:Object(c._x)("Uncategorized")}),e},[s,u]),p=l||b[0];return Object(o.createElement)(o.Fragment,null,!i&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)(y,{selectedCategory:p,patternCategories:b,onClickCategory:r,openPatternExplorer:()=>a(!0)}),Object(o.createElement)(A,{rootClientId:t,onInsert:n,selectedCategory:p,populatedCategories:b})),i&&Object(o.createElement)(M,{initialCategory:p,patternCategories:b,onModalClose:()=>a(!1)}))},F=n("Mmq9");function z(e){let{onHover:t,onInsert:n,rootClientId:r}=e;const[l,,,i]=Object(g.a)(r,n),a=Object(o.useMemo)(()=>l.filter(e=>{let{category:t}=e;return"reusable"===t}),[l]);return 0===a.length?Object(o.createElement)(x.a,null):Object(o.createElement)(h.a,{title:Object(c.__)("Reusable blocks")},Object(o.createElement)(f.a,{items:a,onSelect:i,onHover:t,label:Object(c.__)("Reusable blocks")}))}var H=function(e){let{rootClientId:t,onInsert:n,onHover:r}=e;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(z,{onHover:r,onInsert:n,rootClientId:t}),Object(o.createElement)("div",{className:"block-editor-inserter__manage-reusable-blocks-container"},Object(o.createElement)("a",{className:"block-editor-inserter__manage-reusable-blocks",href:Object(F.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(c.__)("Manage Reusable blocks"))))},V=n("Wg7J");const G={name:"blocks",title:Object(c.__)("Blocks")},U={name:"patterns",title:Object(c.__)("Patterns")},W={name:"reusable",title:Object(c.__)("Reusable")};var q=function(e){let{children:t,showPatterns:n=!1,showReusableBlocks:c=!1,onSelect:l}=e;const i=Object(o.useMemo)(()=>{const e=[G];return n&&e.push(U),c&&e.push(W),e},[G,n,U,c,W]);return Object(o.createElement)(r.TabPanel,{className:"block-editor-inserter__tabs",tabs:i,onSelect:l},t)},K=n("BhPs");t.a=function(e){let{rootClientId:t,clientId:n,isAppender:i,__experimentalInsertionIndex:s,onSelect:u,showInserterHelpPanel:d,showMostUsedBlocks:p,__experimentalFilterValue:m="",shouldFocusBlock:f=!0}=e;const[h,g]=Object(o.useState)(m),[O,v]=Object(o.useState)(null),[k,_]=Object(o.useState)(null),[y,E,C]=Object(T.a)({rootClientId:t,clientId:n,isAppender:i,insertionIndex:s,shouldFocusBlock:f}),{showPatterns:S,hasReusableBlocks:w}=Object(l.useSelect)(e=>{var t;const{__experimentalGetAllowedPatterns:n,getSettings:o}=e(K.a);return{showPatterns:!!n(y).length,hasReusableBlocks:!(null===(t=o().__experimentalReusableBlocks)||void 0===t||!t.length)}},[y]),I=Object(o.useCallback)((e,t,n)=>{E(e,t,n),u()},[E,u]),B=Object(o.useCallback)((e,t)=>{E(e,{patternName:t}),u()},[E,u]),x=Object(o.useCallback)(e=>{C(!!e),v(e)},[C,v]),P=Object(o.useCallback)(e=>{_(e)},[_]),R=Object(o.useMemo)(()=>Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"block-editor-inserter__block-list"},Object(o.createElement)(j,{rootClientId:y,onInsert:I,onHover:x,showMostUsedBlocks:p})),d&&Object(o.createElement)("div",{className:"block-editor-inserter__tips"},Object(o.createElement)(r.VisuallyHidden,{as:"h2"},Object(c.__)("A tip for using the block editor")),Object(o.createElement)(a,null))),[y,I,x,h,p,d]),N=Object(o.useMemo)(()=>Object(o.createElement)(D,{rootClientId:y,onInsert:B,onClickCategory:P,selectedCategory:k}),[y,B,P,k]),L=Object(o.useMemo)(()=>Object(o.createElement)(H,{rootClientId:y,onInsert:I,onHover:x}),[y,I,x]),M=Object(o.useCallback)(e=>"blocks"===e.name?R:"patterns"===e.name?N:L,[R,N,L]);return Object(o.createElement)("div",{className:"block-editor-inserter__menu"},Object(o.createElement)("div",{className:"block-editor-inserter__main-area"},Object(o.createElement)("div",{className:"block-editor-inserter__content"},Object(o.createElement)(r.SearchControl,{className:"block-editor-inserter__search",onChange:e=>{O&&v(null),g(e)},value:h,label:Object(c.__)("Search for blocks and patterns"),placeholder:Object(c.__)("Search")}),!!h&&Object(o.createElement)(V.a,{filterValue:h,onSelect:u,onHover:x,rootClientId:t,clientId:n,isAppender:i,__experimentalInsertionIndex:s,showBlockDirectory:!0,shouldFocusBlock:f}),!h&&(S||w)&&Object(o.createElement)(q,{showPatterns:S,showReusableBlocks:w},M),!h&&!S&&!w&&R)),d&&O&&Object(o.createElement)(b,{item:O}))}},xkPd:function(e,t,n){"use strict";var o=n("wx14"),r=n("GRId"),c=n("l3Sj"),l=n("gdqT");t.a=Object(r.forwardRef)((function(e,t){const[n,i]=Object(r.useState)(!1);return Object(r.useEffect)(()=>{n&&Object(l.speak)(Object(c.__)("Use left and right arrow keys to move through blocks"))},[n]),Object(r.createElement)("div",Object(o.a)({ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:()=>{i(!0)},onBlur:e=>{!e.currentTarget.contains(e.relatedTarget)&&i(!1)}},e))}))},yU1v:function(e,t,n){"use strict";var o=n("wx14"),r=n("GRId"),c=n("TSYQ"),l=n.n(c),i=n("YLtl"),a=n("tI+e"),s=n("l3Sj"),u=n("hMaJ"),d=n("bVpQ"),b=n("Cn0l"),p=n("v5LD");const m=Object(s.__)("(%s: color %s)"),f=Object(s.__)("(%s: gradient %s)"),h=["colors","disableCustomColors","gradients","disableCustomGradients"],g=e=>{let{colors:t,gradients:n,settings:o}=e;return o.map((e,o)=>{let c,{colorValue:l,gradientValue:i,label:u,colors:p,gradients:h}=e;if(!l&&!i)return null;if(l){const e=Object(d.c)(p||t,l);c=Object(s.sprintf)(m,u.toLowerCase(),e&&e.name||l)}else{const e=Object(b.b)(h||n,l);c=Object(s.sprintf)(f,u.toLowerCase(),e&&e.name||i)}return Object(r.createElement)(a.ColorIndicator,{key:o,colorValue:l||i,"aria-label":c})})},O=e=>{let{className:t,colors:n,gradients:c,disableCustomColors:s,disableCustomGradients:d,children:b,settings:p,title:m,showTitle:f=!0,__experimentalHasMultipleOrigins:h,enableAlpha:O,...v}=e;if(Object(i.isEmpty)(n)&&Object(i.isEmpty)(c)&&s&&d&&Object(i.every)(p,e=>Object(i.isEmpty)(e.colors)&&Object(i.isEmpty)(e.gradients)&&(void 0===e.disableCustomColors||e.disableCustomColors)&&(void 0===e.disableCustomGradients||e.disableCustomGradients)))return null;const j=Object(r.createElement)("span",{className:"block-editor-panel-color-gradient-settings__panel-title"},m,Object(r.createElement)(g,{colors:n,gradients:c,settings:p}));return Object(r.createElement)(a.PanelBody,Object(o.a)({className:l()("block-editor-panel-color-gradient-settings",t),title:f?j:void 0},v),p.map((e,t)=>Object(r.createElement)(u.a,Object(o.a)({showTitle:f,key:t,colors:n,gradients:c,disableCustomColors:s,disableCustomGradients:d,__experimentalHasMultipleOrigins:h,enableAlpha:O},e))),b)};function v(){return{disableCustomColors:!Object(p.a)("color.custom"),disableCustomGradients:!Object(p.a)("color.customGradient")}}const j=e=>{const t=v();return t.colors=Object(p.a)("color.palette"),t.gradients=Object(p.a)("color.gradients"),Object(r.createElement)(O,Object(o.a)({},t,e))},k=e=>{const t=v(),n=Object(p.a)("color.palette.custom"),c=Object(p.a)("color.palette.theme"),l=Object(p.a)("color.palette.default"),i=Object(p.a)("color.defaultPalette");t.colors=Object(r.useMemo)(()=>{const e=[];return c&&c.length&&e.push({name:Object(s._x)("Theme","Indicates this palette comes from the theme."),colors:c}),i&&l&&l.length&&e.push({name:Object(s._x)("Default","Indicates this palette comes from WordPress."),colors:l}),n&&n.length&&e.push({name:Object(s._x)("Custom","Indicates this palette comes from the theme."),colors:n}),e},[l,c,n]);const a=Object(p.a)("color.gradients.custom"),u=Object(p.a)("color.gradients.theme"),d=Object(p.a)("color.gradients.default"),b=Object(p.a)("color.defaultGradients");return t.gradients=Object(r.useMemo)(()=>{const e=[];return u&&u.length&&e.push({name:Object(s._x)("Theme","Indicates this palette comes from the theme."),gradients:u}),b&&d&&d.length&&e.push({name:Object(s._x)("Default","Indicates this palette comes from WordPress."),gradients:d}),a&&a.length&&e.push({name:Object(s._x)("Custom","Indicates this palette is created by the user."),gradients:a}),e},[a,u,d]),Object(r.createElement)(O,Object(o.a)({},t,e))};t.a=e=>Object(i.every)(h,t=>e.hasOwnProperty(t))?Object(r.createElement)(O,e):e.__experimentalHasMultipleOrigins?Object(r.createElement)(k,e):Object(r.createElement)(j,e)},ywyh:function(e,t){e.exports=window.wp.apiFetch},"z+q2":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n("YLtl"),r=n("GRId"),c=n("1CF3"),l=n("1ZqX"),i=n("OL6h"),a=n("BhPs");function s(e){const t=Object(r.useRef)(),n=function(e){return Object(l.useSelect)(t=>{const{getSelectedBlocksInitialCaretPosition:n,isMultiSelecting:o,isNavigationMode:r,isBlockSelected:c}=t(a.a);if(c(e)&&!o()&&!r())return n()},[e])}(e);return Object(r.useEffect)(()=>{if(null==n)return;if(!t.current)return;const{ownerDocument:e}=t.current;if(t.current.contains(e.activeElement))return;const r=c.focus.tabbable.find(t.current).filter(e=>Object(c.isTextField)(e)),l=-1===n,a=(l?o.last:o.first)(r)||t.current;Object(i.c)(t.current,a)?Object(c.placeCaretAtHorizontalEdge)(a,l):t.current.focus()},[n]),t}},zQI6:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var o=n("wx14"),r=n("GRId"),c=n("1ZqX"),l=n("K9lf"),i=n("BhPs");function a(){const{hasSelectedBlock:e,hasMultiSelection:t}=Object(c.useSelect)(i.a),{clearSelectedBlock:n}=Object(c.useDispatch)(i.a);return Object(l.useRefEffect)(o=>{function r(r){(e()||t())&&r.target===o&&n()}return o.addEventListener("mousedown",r),()=>{o.removeEventListener("mousedown",r)}},[e,t,n])}function s(e){return Object(r.createElement)("div",Object(o.a)({ref:a()},e))}},ziDm:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"}));t.a=c},zmSX:function(e,t,n){"use strict";var o=n("Cn0l");n.d(t,"a",(function(){return o.a})),n.d(t,"b",(function(){return o.b})),n.d(t,"c",(function(){return o.c})),n.d(t,"d",(function(){return o.d})),n.d(t,"e",(function(){return o.e}))},zt9T:function(e,t,n){"use strict";var o=n("jB5C");e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=o.getWindow(t));var r=n.allowHorizontalScroll,c=n.onlyScrollIfNeeded,l=n.alignWithTop,i=n.alignWithLeft,a=n.offsetTop||0,s=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;r=void 0===r||r;var b=o.isWindow(t),p=o.offset(e),m=o.outerHeight(e),f=o.outerWidth(e),h=void 0,g=void 0,O=void 0,v=void 0,j=void 0,k=void 0,_=void 0,y=void 0,E=void 0,C=void 0;b?(_=t,C=o.height(_),E=o.width(_),y={left:o.scrollLeft(_),top:o.scrollTop(_)},j={left:p.left-y.left-s,top:p.top-y.top-a},k={left:p.left+f-(y.left+E)+d,top:p.top+m-(y.top+C)+u},v=y):(h=o.offset(t),g=t.clientHeight,O=t.clientWidth,v={left:t.scrollLeft,top:t.scrollTop},j={left:p.left-(h.left+(parseFloat(o.css(t,"borderLeftWidth"))||0))-s,top:p.top-(h.top+(parseFloat(o.css(t,"borderTopWidth"))||0))-a},k={left:p.left+f-(h.left+O+(parseFloat(o.css(t,"borderRightWidth"))||0))+d,top:p.top+m-(h.top+g+(parseFloat(o.css(t,"borderBottomWidth"))||0))+u}),j.top<0||k.top>0?!0===l?o.scrollTop(t,v.top+j.top):!1===l?o.scrollTop(t,v.top+k.top):j.top<0?o.scrollTop(t,v.top+j.top):o.scrollTop(t,v.top+k.top):c||((l=void 0===l||!!l)?o.scrollTop(t,v.top+j.top):o.scrollTop(t,v.top+k.top)),r&&(j.left<0||k.left>0?!0===i?o.scrollLeft(t,v.left+j.left):!1===i?o.scrollLeft(t,v.left+k.left):j.left<0?o.scrollLeft(t,v.left+j.left):o.scrollLeft(t,v.left+k.left):c||((i=void 0===i||!!i)?o.scrollLeft(t,v.left+j.left):o.scrollLeft(t,v.left+k.left)))}}}); \ 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 313f000579..b8003a2e0b 100644 --- a/wp-includes/js/dist/block-library.js +++ b/wp-includes/js/dist/block-library.js @@ -7689,7 +7689,8 @@ function CoverEdit(_ref5) { overlayColor, setAttributes, setOverlayColor, - toggleSelection + toggleSelection, + markNextChangeAsNotPersistent } = _ref5; const { contentPosition, @@ -7765,6 +7766,8 @@ function CoverEdit(_ref5) { const isDarkElement = Object(external_wp_element_["useRef"])(); const isCoverDark = useCoverIsDark(url, dimRatio, overlayColor.color, isDarkElement); Object(external_wp_element_["useEffect"])(() => { + // This side-effect should not create an undo level. + markNextChangeAsNotPersistent(); setAttributes({ isDark: isCoverDark }); @@ -8026,10 +8029,12 @@ function CoverEdit(_ref5) { /* harmony default export */ var cover_edit = (Object(external_wp_compose_["compose"])([Object(external_wp_data_["withDispatch"])(dispatch => { const { - toggleSelection + toggleSelection, + __unstableMarkNextChangeAsNotPersistent } = dispatch(external_wp_blockEditor_["store"]); return { - toggleSelection + toggleSelection, + markNextChangeAsNotPersistent: __unstableMarkNextChangeAsNotPersistent }; }), Object(external_wp_blockEditor_["withColors"])({ overlayColor: 'background-color' @@ -12341,7 +12346,7 @@ function GalleryEdit(props) { options: imageSizeOptions, onChange: updateImagesSize, hideCancelButton: true - }), external_wp_element_["Platform"].isWeb && !imageSizeOptions && Object(external_wp_element_["createElement"])(external_wp_components_["BaseControl"], { + }), external_wp_element_["Platform"].isWeb && !imageSizeOptions && hasImageIds && Object(external_wp_element_["createElement"])(external_wp_components_["BaseControl"], { className: 'gallery-image-sizes' }, Object(external_wp_element_["createElement"])(external_wp_components_["BaseControl"].VisualLabel, null, Object(external_wp_i18n_["__"])('Image size')), Object(external_wp_element_["createElement"])(external_wp_primitives_["View"], { className: 'gallery-image-sizes__loading' @@ -12828,7 +12833,7 @@ const updateGallery = _ref => { } const innerBlocks = images.map(image => Object(external_wp_blocks_["createBlock"])('core/image', { - id: parseInt(image.id, 10), + id: image.id ? parseInt(image.id, 10) : null, url: image.url, alt: image.alt, caption: image.caption, @@ -20511,30 +20516,41 @@ function useListViewModal(clientId, __experimentalFeatures) { */ -function useNavigationMenu(navigationMenuId) { +function useNavigationMenu(ref) { return Object(external_wp_data_["useSelect"])(select => { + var _navigationMenu; + const { + getEntityRecord, getEditedEntityRecord, getEntityRecords, hasFinishedResolution } = select(external_wp_coreData_["store"]); - const navigationMenuSingleArgs = ['postType', 'wp_navigation', navigationMenuId]; - const navigationMenu = navigationMenuId ? getEditedEntityRecord(...navigationMenuSingleArgs) : null; - const hasResolvedNavigationMenu = navigationMenuId ? hasFinishedResolution('getEditedEntityRecord', navigationMenuSingleArgs) : false; + const navigationMenuSingleArgs = ['postType', 'wp_navigation', ref]; + const rawNavigationMenu = ref ? getEntityRecord(...navigationMenuSingleArgs) : null; + let navigationMenu = ref ? getEditedEntityRecord(...navigationMenuSingleArgs) : null; // getEditedEntityRecord will return the post regardless of status. + // Therefore if the found post is not published then we should ignore it. + + if (((_navigationMenu = navigationMenu) === null || _navigationMenu === void 0 ? void 0 : _navigationMenu.status) !== 'publish') { + navigationMenu = null; + } + + const hasResolvedNavigationMenu = ref ? hasFinishedResolution('getEditedEntityRecord', navigationMenuSingleArgs) : false; const navigationMenuMultipleArgs = ['postType', 'wp_navigation', { - per_page: -1 + per_page: -1, + status: 'publish' }]; const navigationMenus = getEntityRecords(...navigationMenuMultipleArgs); - const canSwitchNavigationMenu = navigationMenuId ? (navigationMenus === null || navigationMenus === void 0 ? void 0 : navigationMenus.length) > 1 : (navigationMenus === null || navigationMenus === void 0 ? void 0 : navigationMenus.length) > 0; + const canSwitchNavigationMenu = ref ? (navigationMenus === null || navigationMenus === void 0 ? void 0 : navigationMenus.length) > 1 : (navigationMenus === null || navigationMenus === void 0 ? void 0 : navigationMenus.length) > 0; return { isNavigationMenuResolved: hasResolvedNavigationMenu, - isNavigationMenuMissing: !navigationMenuId || hasResolvedNavigationMenu && !navigationMenu, + isNavigationMenuMissing: !ref || hasResolvedNavigationMenu && !rawNavigationMenu, canSwitchNavigationMenu, hasResolvedNavigationMenus: hasFinishedResolution('getEntityRecords', navigationMenuMultipleArgs), navigationMenu, navigationMenus }; - }, [navigationMenuId]); + }, [ref]); } // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js @@ -20900,52 +20916,175 @@ function createDataTree(dataset) { return dataTree; } -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/edit/navigation-menu-name-modal.js - +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/template-part/edit/utils/create-template-part-id.js +/** + * Generates a template part Id based on slug and theme inputs. + * + * @param {string} theme the template part's theme. + * @param {string} slug the template part's slug + * @return {string|null} the template part's Id. + */ +function createTemplatePartId(theme, slug) { + return theme && slug ? theme + '//' + slug : null; +} +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/use-template-part-area-label.js /** * WordPress dependencies */ -function NavigationMenuNameModal(_ref) { - let { - title, - finishButtonText = Object(external_wp_i18n_["__"])('Create'), - onFinish, - onRequestClose, - value = '' - } = _ref; - const [name, setName] = Object(external_wp_element_["useState"])(value); - return Object(external_wp_element_["createElement"])(external_wp_components_["Modal"], { - title: title, - closeLabel: Object(external_wp_i18n_["__"])('Cancel'), - onRequestClose: onRequestClose, - overlayClassName: "wp-block-template-part__placeholder-create-new__title-form" - }, Object(external_wp_element_["createElement"])("form", { - onSubmit: event => { - event.preventDefault(); - onFinish(name); +/** + * Internal dependencies + */ +// TODO: this util should perhaps be refactored somewhere like core-data. + + +function useTemplatePartAreaLabel(clientId) { + return Object(external_wp_data_["useSelect"])(select => { + // Use the lack of a clientId as an opportunity to bypass the rest + // of this hook. + if (!clientId) { + return; } - }, Object(external_wp_element_["createElement"])(external_wp_components_["TextControl"], { - label: Object(external_wp_i18n_["__"])('Name'), - value: name, - onChange: setName - }), Object(external_wp_element_["createElement"])(external_wp_components_["Flex"], { - className: "wp-block-template-part__placeholder-create-new__title-form-actions", - justify: "flex-end" - }, Object(external_wp_element_["createElement"])(external_wp_components_["FlexItem"], null, Object(external_wp_element_["createElement"])(external_wp_components_["Button"], { - variant: "secondary", - onClick: () => { - onRequestClose(); + + const { + getBlock, + getBlockParentsByBlockName + } = select(external_wp_blockEditor_["store"]); + const withAscendingResults = true; + const parentTemplatePartClientIds = getBlockParentsByBlockName(clientId, 'core/template-part', withAscendingResults); + + if (!(parentTemplatePartClientIds !== null && parentTemplatePartClientIds !== void 0 && parentTemplatePartClientIds.length)) { + return; + } // FIXME: @wordpress/block-library should not depend on @wordpress/editor. + // Blocks can be loaded into a *non-post* block editor. + // This code is lifted from this file: + // packages/block-library/src/template-part/edit/advanced-controls.js + // eslint-disable-next-line @wordpress/data-no-store-string-literals + + + const definedAreas = select('core/editor').__experimentalGetDefaultTemplatePartAreas(); + + const { + getEditedEntityRecord + } = select(external_wp_coreData_["store"]); + + for (const templatePartClientId of parentTemplatePartClientIds) { + const templatePartBlock = getBlock(templatePartClientId); // The 'area' usually isn't stored on the block, but instead + // on the entity. + + const { + theme, + slug + } = templatePartBlock.attributes; + const templatePartEntityId = createTemplatePartId(theme, slug); + const templatePartEntity = getEditedEntityRecord('postType', 'wp_template_part', templatePartEntityId); // Look up the `label` for the area in the defined areas so + // that an internationalized label can be used. + + if (templatePartEntity !== null && templatePartEntity !== void 0 && templatePartEntity.area) { + var _definedAreas$find; + + return (_definedAreas$find = definedAreas.find(definedArea => definedArea.area !== 'uncategorized' && definedArea.area === templatePartEntity.area)) === null || _definedAreas$find === void 0 ? void 0 : _definedAreas$find.label; + } } - }, Object(external_wp_i18n_["__"])('Cancel'))), Object(external_wp_element_["createElement"])(external_wp_components_["FlexItem"], null, Object(external_wp_element_["createElement"])(external_wp_components_["Button"], { - variant: "primary", - type: "submit", - disabled: !name.length, - "aria-disabled": !name.length - }, finishButtonText))))); + }, [clientId]); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/edit/use-generate-default-navigation-title.js +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + +const DRAFT_MENU_PARAMS = ['postType', 'wp_navigation', { + status: 'draft', + per_page: -1 +}]; +const PUBLISHED_MENU_PARAMS = ['postType', 'wp_navigation', { + per_page: -1, + status: 'publish' +}]; +function useGenerateDefaultNavigationTitle(clientId) { + // The block will be disabled in a block preview, use this as a way of + // avoiding the side-effects of this component for block previews. + const isDisabled = Object(external_wp_element_["useContext"])(external_wp_components_["Disabled"].Context); // Because we can't conditionally call hooks, pass an undefined client id + // arg to bypass the expensive `useTemplateArea` code. The hook will return + // early. + + const area = useTemplatePartAreaLabel(isDisabled ? undefined : clientId); + const registry = Object(external_wp_data_["useRegistry"])(); + return Object(external_wp_element_["useCallback"])(async () => { + // Ensure other navigation menus have loaded so an + // accurate name can be created. + if (isDisabled) { + return ''; + } + + const { + getEntityRecords + } = registry.resolveSelect(external_wp_coreData_["store"]); + const [draftNavigationMenus, navigationMenus] = await Promise.all([getEntityRecords(...DRAFT_MENU_PARAMS), getEntityRecords(...PUBLISHED_MENU_PARAMS)]); + const title = area ? Object(external_wp_i18n_["sprintf"])( // translators: %s: the name of a menu (e.g. Header navigation). + Object(external_wp_i18n_["__"])('%s navigation'), area) : // translators: 'navigation' as in website navigation. + Object(external_wp_i18n_["__"])('Navigation'); // Determine how many menus start with the automatic title. + + const matchingMenuTitleCount = [...draftNavigationMenus, ...navigationMenus].reduce((count, menu) => { + var _menu$title, _menu$title$raw; + + return menu !== null && menu !== void 0 && (_menu$title = menu.title) !== null && _menu$title !== void 0 && (_menu$title$raw = _menu$title.raw) !== null && _menu$title$raw !== void 0 && _menu$title$raw.startsWith(title) ? count + 1 : count; + }, 0); // Append a number to the end of the title if a menu with + // the same name exists. + + const titleWithCount = matchingMenuTitleCount > 0 ? `${title} ${matchingMenuTitleCount + 1}` : title; + return titleWithCount || ''; + }, [isDisabled, area]); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/edit/use-create-navigation-menu.js +/** + * WordPress dependencies + */ + + + + +/** + * Internal dependencies + */ + + +function useCreateNavigationMenu(clientId) { + const { + saveEntityRecord + } = Object(external_wp_data_["useDispatch"])(external_wp_coreData_["store"]); + const generateDefaultTitle = useGenerateDefaultNavigationTitle(clientId); // This callback uses data from the two placeholder steps and only creates + // a new navigation menu when the user completes the final step. + + return Object(external_wp_element_["useCallback"])(async function () { + let title = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + let blocks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; + + if (!title) { + title = await generateDefaultTitle(); + } + + const record = { + title, + content: Object(external_wp_blocks_["serialize"])(blocks), + status: 'publish' + }; + return await saveEntityRecord('postType', 'wp_navigation', record); + }, [external_wp_blocks_["serialize"], saveEntityRecord]); } // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/edit/placeholder/index.js @@ -20960,8 +21099,6 @@ function NavigationMenuNameModal(_ref) { - - /** * Internal dependencies */ @@ -21025,6 +21162,7 @@ const ExistingMenusDropdown = _ref => { function NavigationPlaceholder(_ref3) { let { + clientId, onFinish, canSwitchNavigationMenu, hasResolvedNavigationMenus @@ -21032,28 +21170,12 @@ function NavigationPlaceholder(_ref3) { const [selectedMenu, setSelectedMenu] = Object(external_wp_element_["useState"])(); const [isCreatingFromMenu, setIsCreatingFromMenu] = Object(external_wp_element_["useState"])(false); const [menuName, setMenuName] = Object(external_wp_element_["useState"])(''); - const [isNewMenuModalVisible, setIsNewMenuModalVisible] = Object(external_wp_element_["useState"])(false); - const [createEmpty, setCreateEmpty] = Object(external_wp_element_["useState"])(false); - const { - saveEntityRecord - } = Object(external_wp_data_["useDispatch"])(external_wp_coreData_["store"]); // This callback uses data from the two placeholder steps and only creates - // a new navigation menu when the user completes the final step. + const createNavigationMenu = useCreateNavigationMenu(clientId); - const createNavigationMenu = Object(external_wp_element_["useCallback"])(async function () { - let title = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Object(external_wp_i18n_["__"])('Untitled Navigation Menu'); - let blocks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; - const record = { - title, - content: Object(external_wp_blocks_["serialize"])(blocks), - status: 'publish' - }; - const navigationMenu = await saveEntityRecord('postType', 'wp_navigation', record); - return navigationMenu; - }, [external_wp_blocks_["serialize"], saveEntityRecord]); - - const onFinishMenuCreation = async (navigationMenuTitle, blocks) => { + const onFinishMenuCreation = async function (blocks) { + let navigationMenuTitle = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; const navigationMenu = await createNavigationMenu(navigationMenuTitle, blocks); - onFinish(navigationMenu); + onFinish(navigationMenu, blocks); }; const { @@ -21070,7 +21192,7 @@ function NavigationPlaceholder(_ref3) { const { innerBlocks: blocks } = menuItemsToBlocks(menuItems); - onFinishMenuCreation(name, blocks); + onFinishMenuCreation(blocks, name); }, [menuItems, menuItemsToBlocks, onFinish]); const onCreateFromMenu = name => { @@ -21086,14 +21208,13 @@ function NavigationPlaceholder(_ref3) { setMenuName(name); }; - const onCreateEmptyMenu = name => { - onFinishMenuCreation(name, []); + const onCreateEmptyMenu = () => { + onFinishMenuCreation([]); }; - const onCreateAllPages = name => { + const onCreateAllPages = () => { const block = [Object(external_wp_blocks_["createBlock"])('core/page-list')]; - onFinishMenuCreation(name, block); - setIsNewMenuModalVisible(true); + onFinishMenuCreation(block); }; Object(external_wp_element_["useEffect"])(() => { @@ -21128,23 +21249,11 @@ function NavigationPlaceholder(_ref3) { onCreateFromMenu: onCreateFromMenu }), Object(external_wp_element_["createElement"])("hr", null)) : undefined, hasPages ? Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(external_wp_components_["Button"], { variant: "tertiary", - onClick: () => { - setIsNewMenuModalVisible(true); - setCreateEmpty(false); - } + onClick: onCreateAllPages }, Object(external_wp_i18n_["__"])('Add all pages')), Object(external_wp_element_["createElement"])("hr", null)) : undefined, Object(external_wp_element_["createElement"])(external_wp_components_["Button"], { variant: "tertiary", - onClick: () => { - setIsNewMenuModalVisible(true); - setCreateEmpty(true); - } - }, Object(external_wp_i18n_["__"])('Start empty'))))), isNewMenuModalVisible && Object(external_wp_element_["createElement"])(NavigationMenuNameModal, { - title: Object(external_wp_i18n_["__"])('Create your new navigation menu'), - onRequestClose: () => { - setIsNewMenuModalVisible(false); - }, - onFinish: createEmpty ? onCreateEmptyMenu : onCreateAllPages - })); + onClick: onCreateEmptyMenu + }, Object(external_wp_i18n_["__"])('Start empty')))))); } // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js @@ -21352,9 +21461,9 @@ function NavigationMenuSelector(_ref) { const { navigationMenus } = useNavigationMenu(); - const navigationMenuId = Object(external_wp_coreData_["useEntityId"])('postType', 'wp_navigation'); + const ref = Object(external_wp_coreData_["useEntityId"])('postType', 'wp_navigation'); return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(external_wp_components_["MenuGroup"], null, Object(external_wp_element_["createElement"])(external_wp_components_["MenuItemsChoice"], { - value: navigationMenuId, + value: ref, onSelect: selectedId => onSelect(navigationMenus.find(post => post.id === selectedId)), choices: navigationMenus.map(_ref2 => { let { @@ -21393,123 +21502,6 @@ function NavigationMenuNameControl() { }); } -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/edit/navigation-menu-publish-button.js - - -/** - * WordPress dependencies - */ - - - - - -/** - * Internal dependencies - */ - - -function NavigationMenuPublishButton() { - const [isNameModalVisible, setIsNameModalVisible] = Object(external_wp_element_["useState"])(false); - const id = Object(external_wp_coreData_["useEntityId"])('postType', 'wp_navigation'); - const [navigationMenuTitle] = Object(external_wp_coreData_["useEntityProp"])('postType', 'wp_navigation', 'title'); - const { - editEntityRecord, - saveEditedEntityRecord - } = Object(external_wp_data_["useDispatch"])(external_wp_coreData_["store"]); - return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(external_wp_components_["ToolbarButton"], { - onClick: () => setIsNameModalVisible(true) - }, Object(external_wp_i18n_["__"])('Save as')), isNameModalVisible && Object(external_wp_element_["createElement"])(NavigationMenuNameModal, { - title: Object(external_wp_i18n_["__"])('Save your new navigation menu'), - value: navigationMenuTitle, - onRequestClose: () => setIsNameModalVisible(false), - finishButtonText: Object(external_wp_i18n_["__"])('Save'), - onFinish: updatedTitle => { - editEntityRecord('postType', 'wp_navigation', id, { - title: updatedTitle, - status: 'publish' - }); - saveEditedEntityRecord('postType', 'wp_navigation', id); - } - })); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/template-part/edit/utils/create-template-part-id.js -/** - * Generates a template part Id based on slug and theme inputs. - * - * @param {string} theme the template part's theme. - * @param {string} slug the template part's slug - * @return {string|null} the template part's Id. - */ -function createTemplatePartId(theme, slug) { - return theme && slug ? theme + '//' + slug : null; -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/use-template-part-area-label.js -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ -// TODO: this util should perhaps be refactored somewhere like core-data. - - -function useTemplatePartAreaLabel(clientId) { - return Object(external_wp_data_["useSelect"])(select => { - // Use the lack of a clientId as an opportunity to bypass the rest - // of this hook. - if (!clientId) { - return; - } - - const { - getBlock, - getBlockParentsByBlockName - } = select(external_wp_blockEditor_["store"]); - const withAscendingResults = true; - const parentTemplatePartClientIds = getBlockParentsByBlockName(clientId, 'core/template-part', withAscendingResults); - - if (!(parentTemplatePartClientIds !== null && parentTemplatePartClientIds !== void 0 && parentTemplatePartClientIds.length)) { - return; - } // FIXME: @wordpress/block-library should not depend on @wordpress/editor. - // Blocks can be loaded into a *non-post* block editor. - // This code is lifted from this file: - // packages/block-library/src/template-part/edit/advanced-controls.js - // eslint-disable-next-line @wordpress/data-no-store-string-literals - - - const definedAreas = select('core/editor').__experimentalGetDefaultTemplatePartAreas(); - - const { - getEditedEntityRecord - } = select(external_wp_coreData_["store"]); - - for (const templatePartClientId of parentTemplatePartClientIds) { - const templatePartBlock = getBlock(templatePartClientId); // The 'area' usually isn't stored on the block, but instead - // on the entity. - - const { - theme, - slug - } = templatePartBlock.attributes; - const templatePartEntityId = createTemplatePartId(theme, slug); - const templatePartEntity = getEditedEntityRecord('postType', 'wp_template_part', templatePartEntityId); // Look up the `label` for the area in the defined areas so - // that an internationalized label can be used. - - if (templatePartEntity !== null && templatePartEntity !== void 0 && templatePartEntity.area) { - var _definedAreas$find; - - return (_definedAreas$find = definedAreas.find(definedArea => definedArea.area !== 'uncategorized' && definedArea.area === templatePartEntity.area)) === null || _definedAreas$find === void 0 ? void 0 : _definedAreas$find.label; - } - } - }, [clientId]); -} - // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/navigation/edit/unsaved-inner-blocks.js @@ -21526,8 +21518,6 @@ function useTemplatePartAreaLabel(clientId) { - - /** * Internal dependencies */ @@ -21538,7 +21528,7 @@ function useTemplatePartAreaLabel(clientId) { const NOOP = () => {}; const EMPTY_OBJECT = {}; -const DRAFT_MENU_PARAMS = ['postType', 'wp_navigation', { +const unsaved_inner_blocks_DRAFT_MENU_PARAMS = ['postType', 'wp_navigation', { status: 'draft', per_page: -1 }]; @@ -21564,9 +21554,6 @@ function UnsavedInnerBlocks(_ref) { onChange: NOOP, onInput: NOOP }); - const { - saveEntityRecord - } = Object(external_wp_data_["useDispatch"])(external_wp_coreData_["store"]); const { isSaving, draftNavigationMenus, @@ -21583,27 +21570,15 @@ function UnsavedInnerBlocks(_ref) { } = select(external_wp_coreData_["store"]); return { isSaving: isSavingEntityRecord('postType', 'wp_navigation'), - draftNavigationMenus: getEntityRecords(...DRAFT_MENU_PARAMS), - hasResolvedDraftNavigationMenus: hasFinishedResolution('getEntityRecords', DRAFT_MENU_PARAMS) + draftNavigationMenus: getEntityRecords(...unsaved_inner_blocks_DRAFT_MENU_PARAMS), + hasResolvedDraftNavigationMenus: hasFinishedResolution('getEntityRecords', unsaved_inner_blocks_DRAFT_MENU_PARAMS) }; }, [isDisabled]); const { hasResolvedNavigationMenus, navigationMenus } = useNavigationMenu(); - const createNavigationMenu = Object(external_wp_element_["useCallback"])(async title => { - const record = { - title, - content: Object(external_wp_blocks_["serialize"])(blocks), - status: 'draft' - }; - const navigationMenu = await saveEntityRecord('postType', 'wp_navigation', record); - return navigationMenu; - }, [blocks, external_wp_blocks_["serialize"], saveEntityRecord]); // Because we can't conditionally call hooks, pass an undefined client id - // arg to bypass the expensive `useTemplateArea` code. The hook will return - // early. - - const area = useTemplatePartAreaLabel(isDisabled ? undefined : clientId); // Automatically save the uncontrolled blocks. + const createNavigationMenu = useCreateNavigationMenu(clientId); // Automatically save the uncontrolled blocks. Object(external_wp_element_["useEffect"])(async () => { // The block will be disabled when used in a BlockPreview. @@ -21623,22 +21598,10 @@ function UnsavedInnerBlocks(_ref) { } savingLock.current = true; - const title = area ? Object(external_wp_i18n_["sprintf"])( // translators: %s: the name of a menu (e.g. Header navigation). - Object(external_wp_i18n_["__"])('%s navigation'), area) : // translators: 'navigation' as in website navigation. - Object(external_wp_i18n_["__"])('Navigation'); // Determine how many menus start with the automatic title. - - const matchingMenuTitleCount = [...draftNavigationMenus, ...navigationMenus].reduce((count, menu) => { - var _menu$title, _menu$title$raw; - - return menu !== null && menu !== void 0 && (_menu$title = menu.title) !== null && _menu$title !== void 0 && (_menu$title$raw = _menu$title.raw) !== null && _menu$title$raw !== void 0 && _menu$title$raw.startsWith(title) ? count + 1 : count; - }, 0); // Append a number to the end of the title if a menu with - // the same name exists. - - const titleWithCount = matchingMenuTitleCount > 0 ? `${title} ${matchingMenuTitleCount + 1}` : title; - const menu = await createNavigationMenu(titleWithCount); + const menu = await createNavigationMenu(null, blocks); onSave(menu); savingLock.current = false; - }, [isDisabled, isSaving, hasResolvedDraftNavigationMenus, hasResolvedNavigationMenus, draftNavigationMenus, navigationMenus, hasSelection, createNavigationMenu, area]); + }, [isDisabled, isSaving, hasResolvedDraftNavigationMenus, hasResolvedNavigationMenus, draftNavigationMenus, navigationMenus, hasSelection, createNavigationMenu, blocks]); return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])("nav", blockProps, Object(external_wp_element_["createElement"])("div", { className: "wp-block-navigation__unsaved-changes" }, Object(external_wp_element_["createElement"])(external_wp_components_["Disabled"], { @@ -21732,7 +21695,6 @@ function NavigationMenuDeleteControl(_ref) { - function getComputedStyle(node) { return node.ownerDocument.defaultView.getComputedStyle(node); } @@ -21790,17 +21752,17 @@ function Navigation(_ref) { } = attributes; const [areaMenu, setAreaMenu] = Object(external_wp_coreData_["useEntityProp"])('root', 'navigationArea', 'navigation', navigationArea); const navigationAreaMenu = areaMenu === 0 ? undefined : areaMenu; - const navigationMenuId = navigationArea ? navigationAreaMenu : attributes.navigationMenuId; - const setNavigationMenuId = Object(external_wp_element_["useCallback"])(postId => { + const ref = navigationArea ? navigationAreaMenu : attributes.ref; + const setRef = Object(external_wp_element_["useCallback"])(postId => { setAttributes({ - navigationMenuId: postId + ref: postId }); if (navigationArea) { setAreaMenu(postId); } }, [navigationArea]); - const [hasAlreadyRendered, RecursionProvider] = Object(external_wp_blockEditor_["__experimentalUseNoRecursiveRenders"])(`navigationMenu/${navigationMenuId}`); + const [hasAlreadyRendered, RecursionProvider] = Object(external_wp_blockEditor_["__experimentalUseNoRecursiveRenders"])(`navigationMenu/${ref}`); const { innerBlocks, isInnerBlockSelected @@ -21821,7 +21783,7 @@ function Navigation(_ref) { __unstableMarkNextChangeAsNotPersistent } = Object(external_wp_data_["useDispatch"])(external_wp_blockEditor_["store"]); const [hasSavedUnsavedInnerBlocks, setHasSavedUnsavedInnerBlocks] = Object(external_wp_element_["useState"])(false); - const isWithinUnassignedArea = navigationArea && !navigationMenuId; + const isWithinUnassignedArea = navigationArea && !ref; const [isPlaceholderShown, setIsPlaceholderShown] = Object(external_wp_element_["useState"])(!hasExistingNavItems || isWithinUnassignedArea); const [isResponsiveMenuOpen, setResponsiveMenuVisibility] = Object(external_wp_element_["useState"])(false); const { @@ -21831,7 +21793,7 @@ function Navigation(_ref) { hasResolvedNavigationMenus, navigationMenus, navigationMenu - } = useNavigationMenu(navigationMenuId); + } = useNavigationMenu(ref); const navRef = Object(external_wp_element_["useRef"])(); const isDraftNavigationMenu = (navigationMenu === null || navigationMenu === void 0 ? void 0 : navigationMenu.status) === 'draft'; const { @@ -21897,7 +21859,26 @@ function Navigation(_ref) { Object(external_wp_element_["useEffect"])(() => { setIsPlaceholderShown(!isEntityAvailable); - }, [isEntityAvailable]); // If the block has inner blocks, but no menu id, this was an older + }, [isEntityAvailable]); // If the ref no longer exists the reset the inner blocks + // to provide a clean slate. + + Object(external_wp_element_["useEffect"])(() => { + if (ref === undefined && innerBlocks.length > 0) { + replaceInnerBlocks(clientId, []); + } // innerBlocks are intentionally not listed as deps. This function is only concerned + // with the snapshot from the time when ref became undefined. + + }, [clientId, ref, innerBlocks]); + const startWithEmptyMenu = Object(external_wp_element_["useCallback"])(() => { + if (navigationArea) { + setAreaMenu(0); + } + + setAttributes({ + ref: undefined + }); + setIsPlaceholderShown(true); + }, [clientId]); // If the block has inner blocks, but no menu id, this was an older // navigation block added before the block used a wp_navigation entity. // Either this block was saved in the content or inserted by a pattern. // Consider this 'unsaved'. Offer an uncontrolled version of inner blocks, @@ -21916,15 +21897,18 @@ function Navigation(_ref) { onSave: post => { setHasSavedUnsavedInnerBlocks(true); // Switch to using the wp_navigation entity. - setNavigationMenuId(post.id); + setRef(post.id); } }); } // Show a warning if the selected menu is no longer available. // TODO - the user should be able to select a new one? - if (navigationMenuId && isNavigationMenuMissing) { - return Object(external_wp_element_["createElement"])("div", blockProps, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["Warning"], null, Object(external_wp_i18n_["__"])('Navigation menu has been deleted or is unavailable'))); + if (ref && isNavigationMenuMissing) { + return Object(external_wp_element_["createElement"])("div", blockProps, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["Warning"], null, Object(external_wp_i18n_["__"])('Navigation menu has been deleted or is unavailable. '), Object(external_wp_element_["createElement"])(external_wp_components_["Button"], { + onClick: startWithEmptyMenu, + variant: "link" + }, Object(external_wp_i18n_["__"])('Create a new menu?')))); } if (isEntityAvailable && hasAlreadyRendered) { @@ -21935,7 +21919,7 @@ function Navigation(_ref) { return Object(external_wp_element_["createElement"])(external_wp_coreData_["EntityProvider"], { kind: "postType", type: "wp_navigation", - id: navigationMenuId + id: ref }, Object(external_wp_element_["createElement"])(RecursionProvider, null, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockControls"], null, !isDraftNavigationMenu && isEntityAvailable && Object(external_wp_element_["createElement"])(external_wp_components_["ToolbarGroup"], null, Object(external_wp_element_["createElement"])(external_wp_components_["ToolbarDropdownMenu"], { label: Object(external_wp_i18n_["__"])('Select Menu'), text: Object(external_wp_i18n_["__"])('Select Menu'), @@ -21949,21 +21933,12 @@ function Navigation(_ref) { let { id } = _ref3; - setNavigationMenuId(id); + setRef(id); onClose(); }, - onCreateNew: () => { - if (navigationArea) { - setAreaMenu(0); - } - - setAttributes({ - navigationMenuId: undefined - }); - setIsPlaceholderShown(true); - } + onCreateNew: startWithEmptyMenu }); - })), Object(external_wp_element_["createElement"])(external_wp_components_["ToolbarGroup"], null, listViewToolbarButton), isDraftNavigationMenu && Object(external_wp_element_["createElement"])(external_wp_components_["ToolbarGroup"], null, Object(external_wp_element_["createElement"])(NavigationMenuPublishButton, null))), listViewModal, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["InspectorControls"], null, hasSubmenuIndicatorSetting && Object(external_wp_element_["createElement"])(external_wp_components_["PanelBody"], { + })), Object(external_wp_element_["createElement"])(external_wp_components_["ToolbarGroup"], null, listViewToolbarButton)), listViewModal, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["InspectorControls"], null, hasSubmenuIndicatorSetting && Object(external_wp_element_["createElement"])(external_wp_components_["PanelBody"], { title: Object(external_wp_i18n_["__"])('Display') }, Object(external_wp_element_["createElement"])("h3", null, Object(external_wp_i18n_["__"])('Overlay Menu')), Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalToggleGroupControl"], { label: Object(external_wp_i18n_["__"])('Configure overlay menu'), @@ -22030,25 +22005,28 @@ function Navigation(_ref) { __experimentalGroup: "advanced" }, Object(external_wp_element_["createElement"])(NavigationMenuNameControl, null), Object(external_wp_element_["createElement"])(NavigationMenuDeleteControl, { onDelete: () => { - replaceInnerBlocks(clientId, []); - if (navigationArea) { setAreaMenu(0); } setAttributes({ - navigationMenuId: undefined + ref: undefined }); setIsPlaceholderShown(true); } - })), Object(external_wp_element_["createElement"])("nav", blockProps, !isEntityAvailable && isPlaceholderShown && Object(external_wp_element_["createElement"])(PlaceholderComponent, { + })), Object(external_wp_element_["createElement"])("nav", blockProps, isPlaceholderShown && Object(external_wp_element_["createElement"])(PlaceholderComponent, { onFinish: post => { setIsPlaceholderShown(false); - setNavigationMenuId(post.id); + + if (post) { + setRef(post.id); + } + selectBlock(clientId); }, canSwitchNavigationMenu: canSwitchNavigationMenu, - hasResolvedNavigationMenus: hasResolvedNavigationMenus + hasResolvedNavigationMenus: hasResolvedNavigationMenus, + clientId: clientId }), !isEntityAvailable && !isPlaceholderShown && Object(external_wp_element_["createElement"])(placeholder_preview, { isLoading: true }), !isPlaceholderShown && Object(external_wp_element_["createElement"])(ResponsiveWrapper, { @@ -22090,8 +22068,8 @@ function navigation_save_save(_ref) { attributes } = _ref; - if (attributes.navigationMenuId) { - // Avoid rendering inner blocks when a navigationMenuId is defined. + if (attributes.ref) { + // Avoid rendering inner blocks when a ref is defined. // When this id is defined the inner blocks are loaded from the // `wp_navigation` entity rather than the hard-coded block html. return; @@ -22125,6 +22103,16 @@ const TYPOGRAPHY_PRESET_DEPRECATION_MAP = { textTransform: 'var:preset|text-transform|' }; +const migrateIdToRef = _ref => { + let { + navigationMenuId, + ...attributes + } = _ref; + return { ...attributes, + ref: navigationMenuId + }; +}; + const deprecated_migrateWithLayout = attributes => { if (!!attributes.layout) { return attributes; @@ -22152,6 +22140,103 @@ const deprecated_migrateWithLayout = attributes => { return updatedAttributes; }; +const deprecated_v6 = { + attributes: { + navigationMenuId: { + type: 'number' + }, + textColor: { + type: 'string' + }, + customTextColor: { + type: 'string' + }, + rgbTextColor: { + type: 'string' + }, + backgroundColor: { + type: 'string' + }, + customBackgroundColor: { + type: 'string' + }, + rgbBackgroundColor: { + type: 'string' + }, + showSubmenuIcon: { + type: 'boolean', + default: true + }, + openSubmenusOnClick: { + type: 'boolean', + default: false + }, + overlayMenu: { + type: 'string', + default: 'mobile' + }, + __unstableLocation: { + type: 'string' + }, + overlayBackgroundColor: { + type: 'string' + }, + customOverlayBackgroundColor: { + type: 'string' + }, + overlayTextColor: { + type: 'string' + }, + customOverlayTextColor: { + type: 'string' + } + }, + supports: { + align: ['wide', 'full'], + anchor: true, + html: false, + inserter: true, + typography: { + fontSize: true, + lineHeight: true, + __experimentalFontStyle: true, + __experimentalFontWeight: true, + __experimentalTextTransform: true, + __experimentalFontFamily: true, + __experimentalTextDecoration: true, + __experimentalDefaultControls: { + fontSize: true + } + }, + spacing: { + blockGap: true, + units: ['px', 'em', 'rem', 'vh', 'vw'], + __experimentalDefaultControls: { + blockGap: true + } + }, + __experimentalLayout: { + allowSwitching: false, + allowInheriting: false, + default: { + type: 'flex', + setCascadingProperties: true + } + } + }, + + save() { + return Object(external_wp_element_["createElement"])(external_wp_blockEditor_["InnerBlocks"].Content, null); + }, + + isEligible: _ref2 => { + let { + navigationMenuId + } = _ref2; + return !!navigationMenuId; + }, + migrate: migrateIdToRef +}; const deprecated_v5 = { attributes: { navigationMenuId: { @@ -22240,14 +22325,14 @@ const deprecated_v5 = { return Object(external_wp_element_["createElement"])(external_wp_blockEditor_["InnerBlocks"].Content, null); }, - isEligible: _ref => { + isEligible: _ref3 => { let { itemsJustification, orientation - } = _ref; + } = _ref3; return !!itemsJustification || !!orientation; }, - migrate: deprecated_migrateWithLayout + migrate: Object(external_wp_compose_["compose"])(migrateIdToRef, deprecated_migrateWithLayout) }; const deprecated_v4 = { attributes: { @@ -22331,14 +22416,14 @@ const deprecated_v4 = { return Object(external_wp_element_["createElement"])(external_wp_blockEditor_["InnerBlocks"].Content, null); }, - migrate: Object(external_wp_compose_["compose"])(deprecated_migrateWithLayout, migrate_font_family), + migrate: Object(external_wp_compose_["compose"])(migrateIdToRef, deprecated_migrateWithLayout, migrate_font_family), - isEligible(_ref2) { + isEligible(_ref4) { var _style$typography; let { style - } = _ref2; + } = _ref4; return style === null || style === void 0 ? void 0 : (_style$typography = style.typography) === null || _style$typography === void 0 ? void 0 : _style$typography.fontFamily; } @@ -22373,7 +22458,7 @@ const migrateTypographyPresets = function (attributes) { }; }; -const navigation_deprecated_deprecated = [deprecated_v5, deprecated_v4, // Remove `isResponsive` attribute. +const navigation_deprecated_deprecated = [deprecated_v6, deprecated_v5, deprecated_v4, // Remove `isResponsive` attribute. { attributes: { orientation: { @@ -22449,7 +22534,7 @@ const navigation_deprecated_deprecated = [deprecated_v5, deprecated_v4, // Remov return attributes.isResponsive; }, - migrate: Object(external_wp_compose_["compose"])(deprecated_migrateWithLayout, migrate_font_family, migrateIsResponsive), + migrate: Object(external_wp_compose_["compose"])(migrateIdToRef, deprecated_migrateWithLayout, migrate_font_family, migrateIsResponsive), save() { return Object(external_wp_element_["createElement"])(external_wp_blockEditor_["InnerBlocks"].Content, null); @@ -22520,7 +22605,7 @@ const navigation_deprecated_deprecated = [deprecated_v5, deprecated_v4, // Remov return false; }, - migrate: Object(external_wp_compose_["compose"])(deprecated_migrateWithLayout, migrate_font_family, migrateTypographyPresets) + migrate: Object(external_wp_compose_["compose"])(migrateIdToRef, deprecated_migrateWithLayout, migrate_font_family, migrateTypographyPresets) }, { attributes: { className: { @@ -22562,13 +22647,12 @@ const navigation_deprecated_deprecated = [deprecated_v5, deprecated_v4, // Remov html: false, inserter: true }, - - migrate(attributes) { + migrate: Object(external_wp_compose_["compose"])(migrateIdToRef, attributes => { return { ...Object(external_lodash_["omit"])(attributes, ['rgbTextColor', 'rgbBackgroundColor']), customTextColor: attributes.textColor ? undefined : attributes.rgbTextColor, customBackgroundColor: attributes.backgroundColor ? undefined : attributes.rgbBackgroundColor }; - }, + }), save() { return Object(external_wp_element_["createElement"])(external_wp_blockEditor_["InnerBlocks"].Content, null); @@ -22596,7 +22680,7 @@ const navigation_metadata = { keywords: ["menu", "navigation", "links"], textdomain: "default", attributes: { - navigationMenuId: { + ref: { type: "number" }, textColor: { @@ -24901,7 +24985,7 @@ const pattern_metadata = { apiVersion: 2, name: "core/pattern", title: "Pattern", - category: "design", + category: "theme", description: "Show a block pattern.", supports: { html: false, @@ -27193,11 +27277,10 @@ const placeholderIllustration = Object(external_wp_element_["createElement"])(ex fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 60 60", - preserveAspectRatio: "xMidYMid slice" // @todo: "slice" matches the "cover" behavior, "meet" could be used for "container" and "fill" values. - + preserveAspectRatio: "none" }, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], { vectorEffect: "non-scaling-stroke", - d: "m61 32.622-13.555-9.137-15.888 9.859a5 5 0 0 1-5.386-.073l-9.095-5.989L1 37.5" + d: "M60 60 0 0" })); const post_featured_image_edit_ALLOWED_MEDIA_TYPES = ['image']; const placeholderChip = Object(external_wp_element_["createElement"])("div", { @@ -28008,7 +28091,7 @@ const post_terms_metadata = { apiVersion: 2, name: "core/post-terms", title: "Post Terms", - category: "design", + category: "theme", description: "Post terms.", textdomain: "default", attributes: { @@ -28115,7 +28198,7 @@ function PostTitleEdit(_ref) { __experimentalVersion: 2 }, blockProps)) : Object(external_wp_element_["createElement"])(TagName, blockProps, Object(external_wp_element_["createElement"])(external_wp_element_["RawHTML"], { key: "html" - }, fullTitle.rendered)); + }, fullTitle === null || fullTitle === void 0 ? void 0 : fullTitle.rendered)); } if (isLink && postType && postId) { @@ -28135,7 +28218,7 @@ function PostTitleEdit(_ref) { onClick: event => event.preventDefault() }, Object(external_wp_element_["createElement"])(external_wp_element_["RawHTML"], { key: "html" - }, fullTitle.rendered))); + }, fullTitle === null || fullTitle === void 0 ? void 0 : fullTitle.rendered))); } return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockControls"], { @@ -31219,7 +31302,7 @@ const query_title_metadata = { apiVersion: 2, name: "core/query-title", title: "Query Title", - category: "design", + category: "theme", description: "Display the query title.", textdomain: "default", attributes: { @@ -33648,7 +33731,7 @@ const site_logo_metadata = { apiVersion: 2, name: "core/site-logo", title: "Site Logo", - category: "layout", + category: "theme", description: "Display a graphic to represent this site. Update the block, and the changes apply everywhere it\u2019s used. This is different than the site icon, which is the smaller image visible in your dashboard, browser tabs, etc used to help others recognize this site.", textdomain: "default", attributes: { @@ -33852,7 +33935,7 @@ const site_tagline_metadata = { apiVersion: 2, name: "core/site-tagline", title: "Site Tagline", - category: "design", + category: "theme", description: "Describe in a few words what the website is about. The tagline can be used in search results or when sharing on social networks even if it's not displayed in the theme design.", keywords: ["description"], textdomain: "default", @@ -34174,7 +34257,7 @@ const site_title_metadata = { apiVersion: 2, name: "core/site-title", title: "Site Title", - category: "design", + category: "theme", description: "Displays the name of this site. Update the block, and the changes apply everywhere it\u2019s used. This will also appear in the browser title bar and in search results.", textdomain: "default", attributes: { @@ -38567,7 +38650,7 @@ function TemplatePartPlaceholder(_ref) { // block attributes. const record = { title, - slug: 'template-part', + slug: Object(external_lodash_["kebabCase"])(title), content: Object(external_wp_blocks_["serialize"])(startingBlocks), // `area` is filterable on the server and defaults to `UNCATEGORIZED` // if provided value is not allowed. @@ -39094,7 +39177,8 @@ const template_part_metadata = { spacing: { padding: true }, - __experimentalLayout: true + __experimentalLayout: true, + reusable: false }, editorStyle: "wp-block-template-part-editor" }; @@ -40823,8 +40907,9 @@ const __experimentalGetCoreBlocks = () => [// Common blocks are grouped at the t // in various contexts — like the inserter and auto-complete components. build_module_paragraph_namespaceObject, build_module_image_namespaceObject, build_module_heading_namespaceObject, build_module_gallery_namespaceObject, build_module_list_namespaceObject, build_module_quote_namespaceObject, // Register all remaining core blocks. archives_namespaceObject, build_module_audio_namespaceObject, button_namespaceObject, build_module_buttons_namespaceObject, build_module_calendar_namespaceObject, categories_namespaceObject, window.wp && window.wp.oldEditor ? freeform_namespaceObject : null, // Only add the classic block in WP Context -code_namespaceObject, build_module_column_namespaceObject, build_module_columns_namespaceObject, build_module_cover_namespaceObject, embed_namespaceObject, build_module_file_namespaceObject, group_namespaceObject, build_module_html_namespaceObject, latest_comments_namespaceObject, latest_posts_namespaceObject, loginout_namespaceObject, media_text_namespaceObject, missing_namespaceObject, build_module_more_namespaceObject, build_module_navigation_namespaceObject, navigation_link_namespaceObject, navigation_submenu_namespaceObject, nextpage_namespaceObject, page_list_namespaceObject, pattern_namespaceObject, build_module_post_author_namespaceObject, build_module_post_comments_namespaceObject, build_module_post_content_namespaceObject, build_module_post_date_namespaceObject, build_module_post_excerpt_namespaceObject, build_module_post_featured_image_namespaceObject, post_navigation_link_namespaceObject, post_template_namespaceObject, post_terms_namespaceObject, build_module_post_title_namespaceObject, build_module_preformatted_namespaceObject, build_module_pullquote_namespaceObject, query_namespaceObject, build_module_query_pagination_namespaceObject, build_module_query_pagination_next_namespaceObject, build_module_query_pagination_numbers_namespaceObject, build_module_query_pagination_previous_namespaceObject, query_title_namespaceObject, block_namespaceObject, build_module_rss_namespaceObject, search_namespaceObject, build_module_separator_namespaceObject, build_module_shortcode_namespaceObject, build_module_site_logo_namespaceObject, site_tagline_namespaceObject, site_title_namespaceObject, social_link_namespaceObject, social_links_namespaceObject, spacer_namespaceObject, build_module_table_namespaceObject, // tableOfContents, -tag_cloud_namespaceObject, template_part_namespaceObject, build_module_term_description_namespaceObject, text_columns_namespaceObject, build_module_verse_namespaceObject, build_module_video_namespaceObject]; +code_namespaceObject, build_module_column_namespaceObject, build_module_columns_namespaceObject, build_module_cover_namespaceObject, embed_namespaceObject, build_module_file_namespaceObject, group_namespaceObject, build_module_html_namespaceObject, latest_comments_namespaceObject, latest_posts_namespaceObject, media_text_namespaceObject, missing_namespaceObject, build_module_more_namespaceObject, nextpage_namespaceObject, page_list_namespaceObject, pattern_namespaceObject, build_module_preformatted_namespaceObject, build_module_pullquote_namespaceObject, block_namespaceObject, build_module_rss_namespaceObject, search_namespaceObject, build_module_separator_namespaceObject, build_module_shortcode_namespaceObject, social_link_namespaceObject, social_links_namespaceObject, spacer_namespaceObject, build_module_table_namespaceObject, // tableOfContents, +tag_cloud_namespaceObject, text_columns_namespaceObject, build_module_verse_namespaceObject, build_module_video_namespaceObject, // theme blocks +build_module_navigation_namespaceObject, navigation_link_namespaceObject, navigation_submenu_namespaceObject, build_module_site_logo_namespaceObject, site_title_namespaceObject, site_tagline_namespaceObject, query_namespaceObject, template_part_namespaceObject, build_module_post_title_namespaceObject, build_module_post_excerpt_namespaceObject, build_module_post_featured_image_namespaceObject, build_module_post_content_namespaceObject, build_module_post_author_namespaceObject, build_module_post_date_namespaceObject, post_terms_namespaceObject, post_navigation_link_namespaceObject, post_template_namespaceObject, build_module_query_pagination_namespaceObject, build_module_query_pagination_next_namespaceObject, build_module_query_pagination_numbers_namespaceObject, build_module_query_pagination_previous_namespaceObject, build_module_post_comments_namespaceObject, loginout_namespaceObject, build_module_term_description_namespaceObject, query_title_namespaceObject]; /** * Function to register core blocks provided by the block editor. * diff --git a/wp-includes/js/dist/block-library.min.js b/wp-includes/js/dist/block-library.min.js index b39aa1b1f6..6e484ab8f9 100644 --- a/wp-includes/js/dist/block-library.min.js +++ b/wp-includes/js/dist/block-library.min.js @@ -6,7 +6,7 @@ this.wp=this.wp||{},this.wp.blockLibrary=function(e){var t={};function n(r){if(t http://jedwatson.github.io/classnames */!function(){"use strict";var n=function(){function e(){}function t(e,t){for(var n=t.length,r=0;r<n;++r)o(e,t[r])}e.prototype=Object.create(null);var n={}.hasOwnProperty;var r=/\s+/;function o(e,o){if(o){var a=typeof o;"string"===a?function(e,t){for(var n=t.split(r),o=n.length,a=0;a<o;++a)e[n[a]]=!0}(e,o):Array.isArray(o)?t(e,o):"object"===a?function(e,t){if(t.toString===Object.prototype.toString)for(var r in t)n.call(t,r)&&(e[r]=!!t[r]);else e[t.toString()]=!0}(e,o):"number"===a&&function(e,t){e[t]=!0}(e,o)}}return function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var a=new e;t(a,r);var l=[];for(var c in a)a[c]&&l.push(c);return l.join(" ")}}();e.exports?(n.default=n,e.exports=n):void 0===(r=function(){return n}.apply(t,[]))||(e.exports=r)}()},B9Az:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");var a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=a},Bpkj:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));t.a=a},Civd:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));t.a=a},FEKF:function(e,t,n){ /*! Fast Average Color | © 2019 Denis Seleznev | MIT License | https://github.com/hcodes/fast-average-color/ */ -e.exports=function(){"use strict";function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var l,c=e[Symbol.iterator]();!(r=(l=c.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}return function(){function n(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n)}var r,o,a;return r=n,(o=[{key:"getColorAsync",value:function(e,t,n){e.complete?t.call(e,this.getColor(e,n),n&&n.data):this._bindImageEvents(e,t,n)}},{key:"getColor",value:function(e,t){t=t||{};var n=this._getDefaultColor(t),r=this._getOriginalSize(e),o=this._prepareSizeAndPosition(r,t),a=null,l=n;if(!(o.srcWidth&&o.srcHeight&&o.destWidth&&o.destHeight))return this._prepareResult(n,new Error("FastAverageColor: Incorrect sizes."));if(!this._ctx&&(this._canvas=this._makeCanvas(),this._ctx=this._canvas.getContext&&this._canvas.getContext("2d"),!this._ctx))return this._prepareResult(n,new Error("FastAverageColor: Canvas Context 2D is not supported in this browser."));this._canvas.width=o.destWidth,this._canvas.height=o.destHeight;try{this._ctx.clearRect(0,0,o.destWidth,o.destHeight),this._ctx.drawImage(e,o.srcLeft,o.srcTop,o.srcWidth,o.srcHeight,0,0,o.destWidth,o.destHeight);var c=this._ctx.getImageData(0,0,o.destWidth,o.destHeight).data;l=this.getColorFromArray4(c,t)}catch(e){a=e}return this._prepareResult(l,a)}},{key:"getColorFromArray4",value:function(e,t){t=t||{};var n=e.length;if(n<4)return this._getDefaultColor(t);var r=n-n%4,o=4*(t.step||1),a="_"+(t.algorithm||"sqrt")+"Algorithm";if("function"!=typeof this[a])throw new Error("FastAverageColor: ".concat(t.algorithm," is unknown algorithm."));return this[a](e,r,o)}},{key:"destroy",value:function(){delete this._canvas,delete this._ctx}},{key:"_getDefaultColor",value:function(e){return this._getOption(e,"defaultColor",[255,255,255,255])}},{key:"_getOption",value:function(e,t,n){return void 0===e[t]?n:e[t]}},{key:"_prepareSizeAndPosition",value:function(e,t){var n,r=this._getOption(t,"left",0),o=this._getOption(t,"top",0),a=this._getOption(t,"width",e.width),l=this._getOption(t,"height",e.height),c=a,i=l;return"precision"===t.mode||(a>l?(n=a/l,c=100,i=Math.round(c/n)):(n=l/a,i=100,c=Math.round(i/n)),(c>a||i>l||c<10||i<10)&&(c=a,i=l)),{srcLeft:r,srcTop:o,srcWidth:a,srcHeight:l,destWidth:c,destHeight:i}}},{key:"_simpleAlgorithm",value:function(e,t,n){for(var r=0,o=0,a=0,l=0,c=0,i=0;i<t;i+=n){var s=e[i+3];r+=e[i]*s,o+=e[i+1]*s,a+=e[i+2]*s,l+=s,c++}return l?[Math.round(r/l),Math.round(o/l),Math.round(a/l),Math.round(l/c)]:[0,0,0,0]}},{key:"_sqrtAlgorithm",value:function(e,t,n){for(var r=0,o=0,a=0,l=0,c=0,i=0;i<t;i+=n){var s=e[i],u=e[i+1],m=e[i+2],d=e[i+3];r+=s*s*d,o+=u*u*d,a+=m*m*d,l+=d,c++}return l?[Math.round(Math.sqrt(r/l)),Math.round(Math.sqrt(o/l)),Math.round(Math.sqrt(a/l)),Math.round(l/c)]:[0,0,0,0]}},{key:"_dominantAlgorithm",value:function(e,n,r){for(var o={},a=0;a<n;a+=r){var l=e[a],c=e[a+1],i=e[a+2],s=e[a+3],u=Math.round(l/24)+","+Math.round(c/24)+","+Math.round(i/24);o[u]?o[u]=[o[u][0]+l*s,o[u][1]+c*s,o[u][2]+i*s,o[u][3]+s,o[u][4]+1]:o[u]=[l*s,c*s,i*s,s,1]}var m=t(Object.keys(o).map((function(e){return o[e]})).sort((function(e,t){var n=e[4],r=t[4];return n>r?-1:n===r?0:1}))[0],5),d=m[0],b=m[1],p=m[2],g=m[3],h=m[4];return g?[Math.round(d/g),Math.round(b/g),Math.round(p/g),Math.round(g/h)]:[0,0,0,0]}},{key:"_bindImageEvents",value:function(e,t,n){var r=this,o=(n=n||{})&&n.data,a=this._getDefaultColor(n),l=function(){s(),t.call(e,r.getColor(e,n),o)},c=function(){s(),t.call(e,r._prepareResult(a,new Error("Image error")),o)},i=function(){s(),t.call(e,r._prepareResult(a,new Error("Image abort")),o)},s=function(){e.removeEventListener("load",l),e.removeEventListener("error",c),e.removeEventListener("abort",i)};e.addEventListener("load",l),e.addEventListener("error",c),e.addEventListener("abort",i)}},{key:"_prepareResult",value:function(e,t){var n=e.slice(0,3),r=[].concat(n,e[3]/255),o=this._isDark(e);return{error:t,value:e,rgb:"rgb("+n.join(",")+")",rgba:"rgba("+r.join(",")+")",hex:this._arrayToHex(n),hexa:this._arrayToHex(e),isDark:o,isLight:!o}}},{key:"_getOriginalSize",value:function(e){return e instanceof HTMLImageElement?{width:e.naturalWidth,height:e.naturalHeight}:e instanceof HTMLVideoElement?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}},{key:"_toHex",value:function(e){var t=e.toString(16);return 1===t.length?"0"+t:t}},{key:"_arrayToHex",value:function(e){return"#"+e.map(this._toHex).join("")}},{key:"_isDark",value:function(e){return(299*e[0]+587*e[1]+114*e[2])/1e3<128}},{key:"_makeCanvas",value:function(){return"undefined"==typeof window?new OffscreenCanvas(1,1):document.createElement("canvas")}}])&&e(r.prototype,o),a&&e(r,a),n}()}()},FqII:function(e,t){e.exports=window.wp.date},G8mJ:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));t.a=a},GRId:function(e,t){e.exports=window.wp.element},HSyU:function(e,t){e.exports=window.wp.blocks},JREk:function(e,t){e.exports=window.wp.serverSideRender},K51g:function(e,t,n){"use strict";n.r(t),n.d(t,"__experimentalGetCoreBlocks",(function(){return Cp})),n.d(t,"registerCoreBlocks",(function(){return xp})),n.d(t,"__experimentalRegisterExperimentalCoreBlocks",(function(){return Sp}));var r={};n.r(r),n.d(r,"metadata",(function(){return xe})),n.d(r,"name",(function(){return Se})),n.d(r,"settings",(function(){return Be}));var o={};n.r(o),n.d(o,"metadata",(function(){return Je})),n.d(o,"name",(function(){return Qe})),n.d(o,"settings",(function(){return Ye}));var a={};n.r(a),n.d(a,"metadata",(function(){return vt})),n.d(a,"name",(function(){return Ot})),n.d(a,"settings",(function(){return jt}));var l={};n.r(l),n.d(l,"metadata",(function(){return St})),n.d(l,"name",(function(){return Bt})),n.d(l,"settings",(function(){return Tt}));var c={};n.r(c),n.d(c,"metadata",(function(){return Rt})),n.d(c,"name",(function(){return Lt})),n.d(c,"settings",(function(){return Vt}));var i={};n.r(i),n.d(i,"metadata",(function(){return Ft})),n.d(i,"name",(function(){return Dt})),n.d(i,"settings",(function(){return Gt}));var s={};n.r(s),n.d(s,"metadata",(function(){return $t})),n.d(s,"name",(function(){return Zt})),n.d(s,"settings",(function(){return Kt}));var u={};n.r(u),n.d(u,"metadata",(function(){return en})),n.d(u,"name",(function(){return tn})),n.d(u,"settings",(function(){return nn}));var m={};n.r(m),n.d(m,"metadata",(function(){return ln})),n.d(m,"name",(function(){return cn})),n.d(m,"settings",(function(){return sn}));var d={};n.r(d),n.d(d,"metadata",(function(){return En})),n.d(d,"name",(function(){return Cn})),n.d(d,"settings",(function(){return xn}));var b={};n.r(b),n.d(b,"metadata",(function(){return Yn})),n.d(b,"name",(function(){return Xn})),n.d(b,"settings",(function(){return er}));var p={};n.r(p),n.d(p,"metadata",(function(){return Rr})),n.d(p,"name",(function(){return Lr})),n.d(p,"settings",(function(){return Vr}));var g={};n.r(g),n.d(g,"metadata",(function(){return Qr})),n.d(g,"name",(function(){return Yr})),n.d(g,"settings",(function(){return Xr}));var h={};n.r(h),n.d(h,"metadata",(function(){return Fo})),n.d(h,"name",(function(){return Do})),n.d(h,"settings",(function(){return Go}));var v={};n.r(v),n.d(v,"metadata",(function(){return Jo})),n.d(v,"name",(function(){return Qo})),n.d(v,"settings",(function(){return Yo}));var O={};n.r(O),n.d(O,"metadata",(function(){return va})),n.d(O,"name",(function(){return Oa})),n.d(O,"settings",(function(){return ja}));var j={};n.r(j),n.d(j,"metadata",(function(){return _a})),n.d(j,"name",(function(){return ka})),n.d(j,"settings",(function(){return wa}));var y={};n.r(y),n.d(y,"metadata",(function(){return La})),n.d(y,"name",(function(){return Va})),n.d(y,"settings",(function(){return Aa}));var f={};n.r(f),n.d(f,"metadata",(function(){return Fa})),n.d(f,"name",(function(){return Da})),n.d(f,"settings",(function(){return Ga}));var _={};n.r(_),n.d(_,"metadata",(function(){return Ya})),n.d(_,"name",(function(){return Xa})),n.d(_,"settings",(function(){return el}));var k={};n.r(k),n.d(k,"metadata",(function(){return bl})),n.d(k,"name",(function(){return pl})),n.d(k,"settings",(function(){return gl}));var w={};n.r(w),n.d(w,"metadata",(function(){return vl})),n.d(w,"name",(function(){return Ol})),n.d(w,"settings",(function(){return jl}));var E={};n.r(E),n.d(E,"metadata",(function(){return Vl})),n.d(E,"name",(function(){return Al})),n.d(E,"settings",(function(){return Hl}));var C={};n.r(C),n.d(C,"metadata",(function(){return Gl})),n.d(C,"name",(function(){return ql})),n.d(C,"settings",(function(){return Ul}));var x={};n.r(x),n.d(x,"metadata",(function(){return Kl})),n.d(x,"name",(function(){return Jl})),n.d(x,"settings",(function(){return Ql}));var S={};n.r(S),n.d(S,"metadata",(function(){return Ic})),n.d(S,"name",(function(){return Mc})),n.d(S,"settings",(function(){return Rc}));var B={};n.r(B),n.d(B,"metadata",(function(){return Qc})),n.d(B,"name",(function(){return Yc})),n.d(B,"settings",(function(){return Xc}));var T={};n.r(T),n.d(T,"metadata",(function(){return ii})),n.d(T,"name",(function(){return si})),n.d(T,"settings",(function(){return ui}));var N={};n.r(N),n.d(N,"metadata",(function(){return bi})),n.d(N,"name",(function(){return pi})),n.d(N,"settings",(function(){return gi}));var P={};n.r(P),n.d(P,"metadata",(function(){return vi})),n.d(P,"name",(function(){return Oi})),n.d(P,"settings",(function(){return ji}));var z={};n.r(z),n.d(z,"metadata",(function(){return xi})),n.d(z,"name",(function(){return Si})),n.d(z,"settings",(function(){return Bi}));var I={};n.r(I),n.d(I,"metadata",(function(){return Hi})),n.d(I,"name",(function(){return Fi})),n.d(I,"settings",(function(){return Di}));var M={};n.r(M),n.d(M,"metadata",(function(){return Ui})),n.d(M,"name",(function(){return Wi})),n.d(M,"settings",(function(){return $i}));var R={};n.r(R),n.d(R,"metadata",(function(){return Ji})),n.d(R,"name",(function(){return Qi})),n.d(R,"settings",(function(){return Yi}));var L={};n.r(L),n.d(L,"metadata",(function(){return ls})),n.d(L,"name",(function(){return cs})),n.d(L,"settings",(function(){return is}));var V={};n.r(V),n.d(V,"metadata",(function(){return ms})),n.d(V,"name",(function(){return ds})),n.d(V,"settings",(function(){return bs}));var A={};n.r(A),n.d(A,"metadata",(function(){return gs})),n.d(A,"name",(function(){return hs})),n.d(A,"settings",(function(){return vs}));var H={};n.r(H),n.d(H,"metadata",(function(){return Cs})),n.d(H,"name",(function(){return xs})),n.d(H,"settings",(function(){return Ss}));var F={};n.r(F),n.d(F,"metadata",(function(){return zs})),n.d(F,"name",(function(){return Is})),n.d(F,"settings",(function(){return Ms}));var D={};n.r(D),n.d(D,"metadata",(function(){return As})),n.d(D,"name",(function(){return Hs})),n.d(D,"settings",(function(){return Fs}));var G={};n.r(G),n.d(G,"metadata",(function(){return qs})),n.d(G,"name",(function(){return Us})),n.d(G,"settings",(function(){return Ws}));var q={};n.r(q),n.d(q,"metadata",(function(){return Zs})),n.d(q,"name",(function(){return Ks})),n.d(q,"settings",(function(){return Js}));var U={};n.r(U),n.d(U,"metadata",(function(){return Xs})),n.d(U,"name",(function(){return eu})),n.d(U,"settings",(function(){return tu}));var W={};n.r(W),n.d(W,"metadata",(function(){return iu})),n.d(W,"name",(function(){return su})),n.d(W,"settings",(function(){return uu}));var $={};n.r($),n.d($,"metadata",(function(){return Nu})),n.d($,"name",(function(){return Pu})),n.d($,"settings",(function(){return zu}));var Z={};n.r(Z),n.d(Z,"metadata",(function(){return Vu})),n.d(Z,"name",(function(){return Au})),n.d(Z,"settings",(function(){return Hu}));var K={};n.r(K),n.d(K,"metadata",(function(){return Gu})),n.d(K,"name",(function(){return qu})),n.d(K,"settings",(function(){return Uu}));var J={};n.r(J),n.d(J,"metadata",(function(){return Zu})),n.d(J,"name",(function(){return Ku})),n.d(J,"settings",(function(){return Ju}));var Q={};n.r(Q),n.d(Q,"metadata",(function(){return Xu})),n.d(Q,"name",(function(){return em})),n.d(Q,"settings",(function(){return tm}));var Y={};n.r(Y),n.d(Y,"metadata",(function(){return cm})),n.d(Y,"name",(function(){return im})),n.d(Y,"settings",(function(){return sm}));var X={};n.r(X),n.d(X,"metadata",(function(){return gm})),n.d(X,"name",(function(){return hm})),n.d(X,"settings",(function(){return vm}));var ee={};n.r(ee),n.d(ee,"metadata",(function(){return fm})),n.d(ee,"name",(function(){return _m})),n.d(ee,"settings",(function(){return km}));var te={};n.r(te),n.d(te,"metadata",(function(){return Em})),n.d(te,"name",(function(){return Cm})),n.d(te,"settings",(function(){return xm}));var ne={};n.r(ne),n.d(ne,"metadata",(function(){return Mm})),n.d(ne,"name",(function(){return Rm})),n.d(ne,"settings",(function(){return Lm}));var re={};n.r(re),n.d(re,"metadata",(function(){return Dm})),n.d(re,"name",(function(){return Gm})),n.d(re,"settings",(function(){return qm}));var oe={};n.r(oe),n.d(oe,"metadata",(function(){return Zm})),n.d(oe,"name",(function(){return Km})),n.d(oe,"settings",(function(){return Jm}));var ae={};n.r(ae),n.d(ae,"metadata",(function(){return ed})),n.d(ae,"name",(function(){return td})),n.d(ae,"settings",(function(){return nd}));var le={};n.r(le),n.d(le,"metadata",(function(){return ad})),n.d(le,"name",(function(){return ld})),n.d(le,"settings",(function(){return cd}));var ce={};n.r(ce),n.d(ce,"metadata",(function(){return dd})),n.d(ce,"name",(function(){return bd})),n.d(ce,"settings",(function(){return pd}));var ie={};n.r(ie),n.d(ie,"metadata",(function(){return _d})),n.d(ie,"name",(function(){return kd})),n.d(ie,"settings",(function(){return wd}));var se={};n.r(se),n.d(se,"metadata",(function(){return Nd})),n.d(se,"name",(function(){return Pd})),n.d(se,"settings",(function(){return zd}));var ue={};n.r(ue),n.d(ue,"metadata",(function(){return Rd})),n.d(ue,"name",(function(){return Ld})),n.d(ue,"settings",(function(){return Vd}));var me={};n.r(me),n.d(me,"metadata",(function(){return db})),n.d(me,"name",(function(){return bb})),n.d(me,"settings",(function(){return pb}));var de={};n.r(de),n.d(de,"metadata",(function(){return hb})),n.d(de,"name",(function(){return vb})),n.d(de,"settings",(function(){return Ob}));var be={};n.r(be),n.d(be,"metadata",(function(){return Hb})),n.d(be,"name",(function(){return Fb})),n.d(be,"settings",(function(){return Db}));var pe={};n.r(pe),n.d(pe,"metadata",(function(){return qb})),n.d(pe,"name",(function(){return Ub})),n.d(pe,"settings",(function(){return Wb}));var ge={};n.r(ge),n.d(ge,"metadata",(function(){return Jb})),n.d(ge,"name",(function(){return Qb})),n.d(ge,"settings",(function(){return Yb}));var he={};n.r(he),n.d(he,"metadata",(function(){return np})),n.d(he,"name",(function(){return rp})),n.d(he,"settings",(function(){return op}));var ve={};n.r(ve),n.d(ve,"metadata",(function(){return fp})),n.d(ve,"name",(function(){return _p})),n.d(ve,"settings",(function(){return kp}));var Oe=n("HSyU"),je=n("GRId"),ye=n("Tqx9");var fe=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5zM8 12.8h8v-1.5H8v1.5zm0 3h8v-1.5H8v1.5z"})),_e=n("tI+e"),ke=n("l3Sj"),we=n("axFQ"),Ee=n("JREk"),Ce=n.n(Ee);const xe={apiVersion:2,name:"core/archives",title:"Archives",category:"widgets",description:"Display a monthly archive of your posts.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,html:!1},editorStyle:"wp-block-archives-editor"},{name:Se}=xe,Be={icon:fe,example:{},edit:function(e){let{attributes:t,setAttributes:n}=e;const{showPostCounts:r,displayAsDropdown:o}=t;return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Archives settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Display as dropdown"),checked:o,onChange:()=>n({displayAsDropdown:!o})}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Show post counts"),checked:r,onChange:()=>n({showPostCounts:!r})}))),Object(je.createElement)("div",Object(we.useBlockProps)(),Object(je.createElement)(_e.Disabled,null,Object(je.createElement)(Ce.a,{block:"core/archives",attributes:t}))))}};var Te=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.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"})),Ne=[{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(e){let{attributes:t}=e;const{autoplay:n,caption:r,loop:o,preload:a,src:l}=t;return Object(je.createElement)("figure",null,Object(je.createElement)("audio",{controls:"controls",src:l,autoPlay:n,loop:o,preload:a}),!we.RichText.isEmpty(r)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",value:r}))}}],Pe=n("xTGt"),ze=n("1ZqX");const Ie=[{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"}];var Me=n("YLtl"),Re=n("A/WM"),Le=n.n(Re),Ve=n("4eJC"),Ae=n.n(Ve);const{name:He}={apiVersion:2,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1},previewable:{type:"boolean",default:!0}},supports:{align:!0},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},Fe=e=>{var t;return null===(t=Object(Oe.getBlockVariations)(He))||void 0===t?void 0:t.find(t=>{let{patterns:n}=t;return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.some(t=>e.match(t))}(e,n)})},De=e=>e&&e.includes('class="wp-embedded-content"'),Ge=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{preview:r,attributes:o={}}=e,{url:a,providerNameSlug:l,type:c,...i}=o;if(!a||!Object(Oe.getBlockType)(He))return;const s=Fe(a),u="wordpress"===l||"wp-embed"===c,m=!u&&s&&(s.attributes.providerNameSlug!==l||!l);if(m)return Object(Oe.createBlock)(He,{url:a,...i,...s.attributes});const d=null===(t=Object(Oe.getBlockVariations)(He))||void 0===t?void 0:t.find(e=>{let{name:t}=e;return"wordpress"===t});return d&&r&&De(r.html)&&!u?Object(Oe.createBlock)(He,{url:a,...d.attributes,...n}):void 0},qe=e=>{if(!e)return e;const t=Ie.reduce((e,t)=>{let{className:n}=t;return e[n]=!1,e},{"wp-has-aspect-ratio":!1});return Le()(e,t)};function Ue(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!n)return qe(t);const r=document.implementation.createHTMLDocument("");r.body.innerHTML=e;const o=r.body.querySelector("iframe");if(o&&o.height&&o.width){const e=(o.width/o.height).toFixed(2);for(let n=0;n<Ie.length;n++){const r=Ie[n];if(e>=r.ratio){return e-r.ratio>.1?qe(t):Le()(qe(t),r.className,"wp-has-aspect-ratio")}}}return t}const We=Ae()((function(e,t,n,r){let o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!e)return{};const a={};let{type:l="rich"}=e;const{html:c,provider_name:i}=e,s=Object(Me.kebabCase)((i||t).toLowerCase());return De(c)&&(l="wp-embed"),(c||"photo"===l)&&(a.type=l,a.providerNameSlug=s),a.className=Ue(c,n,r&&o),a})),$e=["audio"];var Ze=Object(_e.withNotices)((function(e){let{attributes:t,noticeOperations:n,setAttributes:r,onReplace:o,isSelected:a,noticeUI:l,insertBlocksAfter:c}=e;const{id:i,autoplay:s,caption:u,loop:m,preload:d,src:b}=t,p=Object(we.useBlockProps)(),g=Object(ze.useSelect)(e=>{const{getSettings:t}=e(we.store);return t().mediaUpload},[]);function h(e){return t=>{r({[e]:t})}}function v(e){if(e!==b){const t=Ge({attributes:{url:e}});if(void 0!==t)return void o(t);r({src:e,id:void 0})}}function O(e){n.removeAllNotices(),n.createErrorNotice(e)}function j(e){e&&e.url?r({src:e.url,id:e.id}):r({src:void 0,id:void 0})}return Object(je.useEffect)(()=>{if(!i&&Object(Pe.isBlobURL)(b)){const e=Object(Pe.getBlobByURL)(b);e&&g({filesList:[e],onFileChange:e=>{let[{id:t,url:n}]=e;r({id:t,src:n})},onError:e=>{r({src:void 0,id:void 0}),n.createErrorNotice(e)},allowedTypes:$e})}},[]),b?Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"other"},Object(je.createElement)(we.MediaReplaceFlow,{mediaId:i,mediaURL:b,allowedTypes:$e,accept:"audio/*",onSelect:j,onSelectURL:v,onError:O})),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Audio settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Autoplay"),onChange:h("autoplay"),checked:s,help:function(e){return e?Object(ke.__)("Autoplay may cause usability issues for some users."):null}}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Loop"),onChange:h("loop"),checked:m}),Object(je.createElement)(_e.SelectControl,{label:Object(ke._x)("Preload","noun; Audio block parameter"),value:d||"",onChange:e=>r({preload:e||void 0}),options:[{value:"",label:Object(ke.__)("Browser default")},{value:"auto",label:Object(ke.__)("Auto")},{value:"metadata",label:Object(ke.__)("Metadata")},{value:"none",label:Object(ke._x)("None",'"Preload" value')}]}))),Object(je.createElement)("figure",p,Object(je.createElement)(_e.Disabled,{isDisabled:!a},Object(je.createElement)("audio",{controls:"controls",src:b})),(!we.RichText.isEmpty(u)||a)&&Object(je.createElement)(we.RichText,{tagName:"figcaption","aria-label":Object(ke.__)("Audio caption text"),placeholder:Object(ke.__)("Add caption"),value:u,onChange:e=>r({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>c(Object(Oe.createBlock)("core/paragraph"))}))):Object(je.createElement)("div",p,Object(je.createElement)(we.MediaPlaceholder,{icon:Object(je.createElement)(we.BlockIcon,{icon:Te}),onSelect:j,onSelectURL:v,accept:"audio/*",allowedTypes:$e,value:t,notices:l,onError:O}))}));var Ke={from:[{type:"files",isMatch:e=>1===e.length&&0===e[0].type.indexOf("audio/"),transform(e){const t=e[0];return Object(Oe.createBlock)("core/audio",{src:Object(Pe.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:e=>{let{named:{src:t,mp3:n,m4a:r,ogg:o,wav:a,wma:l}}=e;return t||n||r||o||a||l}},loop:{type:"string",shortcode:e=>{let{named:{loop:t}}=e;return t}},autoplay:{type:"string",shortcode:e=>{let{named:{autoplay:t}}=e;return t}},preload:{type:"string",shortcode:e=>{let{named:{preload:t}}=e;return t}}}}]};const Je={apiVersion:2,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"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{anchor:!0,align:!0},editorStyle:"wp-block-audio-editor",style:"wp-block-audio"},{name:Qe}=Je,Ye={icon:Te,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"}},transforms:Ke,deprecated:Ne,edit:Ze,save:function(e){let{attributes:t}=e;const{autoplay:n,caption:r,loop:o,preload:a,src:l}=t;return l&&Object(je.createElement)("figure",we.useBlockProps.save(),Object(je.createElement)("audio",{controls:"controls",src:l,autoPlay:n,loop:o,preload:a}),!we.RichText.isEmpty(r)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",value:r}))}};var Xe=n("oMoS"),et=n("TSYQ"),tt=n.n(et),nt=n("K9lf");const rt=e=>{if(!Object(Me.isObject)(e)||Array.isArray(e))return e;const t=Object(Me.pickBy)(Object(Me.mapValues)(e,rt),Me.identity);return Object(Me.isEmpty)(t)?void 0:t};var ot=rt,at=function(e){var t,n;if(null==e||null===(t=e.style)||void 0===t||null===(n=t.typography)||void 0===n||!n.fontFamily)return e;const r=Object(Me.cloneDeep)(e),o=r.style.typography.fontFamily.split("|").pop();return delete r.style.typography.fontFamily,r.style=ot(r.style),{...r,fontFamily:o}};const lt=e=>{var t,n,r;const{borderRadius:o,...a}=e,l=[o,null===(t=a.style)||void 0===t||null===(n=t.border)||void 0===n?void 0:n.radius].find(e=>"number"==typeof e&&0!==e);return l?{...a,style:{...a.style,border:{...null===(r=a.style)||void 0===r?void 0:r.border,radius:l+"px"}}}:a},ct=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;const t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient),{...Object(Me.omit)(e,["customTextColor","customBackgroundColor","customGradient"]),style:t}},it=e=>ct(Object(Me.omit)({...e,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0},["color","textColor"])),st={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"}};var ut=[{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(e){var t,n;let{attributes:r,className:o}=e;const{fontSize:a,linkTarget:l,rel:c,style:i,text:s,title:u,url:m,width:d}=r;if(!s)return null;const b=Object(we.__experimentalGetBorderClassesAndStyles)(r),p=Object(we.__experimentalGetColorClassesAndStyles)(r),g=Object(we.__experimentalGetSpacingClassesAndStyles)(r),h=tt()("wp-block-button__link",p.className,b.className,{"no-border-radius":0===(null==i||null===(t=i.border)||void 0===t?void 0:t.radius)}),v={...b.style,...p.style,...g.style},O=tt()(o,{["has-custom-width wp-block-button__width-"+d]:d,"has-custom-font-size":a||(null==i||null===(n=i.typography)||void 0===n?void 0:n.fontSize)});return Object(je.createElement)("div",we.useBlockProps.save({className:O}),Object(je.createElement)(we.RichText.Content,{tagName:"a",className:h,href:m,title:u,style:v,value:s,target:l,rel:c}))},migrate:at,isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}},{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:{...st,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(e){var t;let{style:n}=e;return"number"==typeof(null==n||null===(t=n.border)||void 0===t?void 0:t.radius)},save(e){var t,n,r;let{attributes:o,className:a}=e;const{fontSize:l,linkTarget:c,rel:i,style:s,text:u,title:m,url:d,width:b}=o;if(!u)return null;const p=null==s||null===(t=s.border)||void 0===t?void 0:t.radius,g=Object(we.__experimentalGetColorClassesAndStyles)(o),h=tt()("wp-block-button__link",g.className,{"no-border-radius":0===(null==s||null===(n=s.border)||void 0===n?void 0:n.radius)}),v={borderRadius:p||void 0,...g.style},O=tt()(a,{["has-custom-width wp-block-button__width-"+b]:b,"has-custom-font-size":l||(null==s||null===(r=s.typography)||void 0===r?void 0:r.fontSize)});return Object(je.createElement)("div",we.useBlockProps.save({className:O}),Object(je.createElement)(we.RichText.Content,{tagName:"a",className:h,href:d,title:m,style:v,value:u,target:c,rel:i}))},migrate:Object(nt.compose)(at,lt)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...st,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(e){let{attributes:t,className:n}=e;const{borderRadius:r,linkTarget:o,rel:a,text:l,title:c,url:i,width:s}=t,u=Object(we.__experimentalGetColorClassesAndStyles)(t),m=tt()("wp-block-button__link",u.className,{"no-border-radius":0===r}),d={borderRadius:r?r+"px":void 0,...u.style},b=tt()(n,{["has-custom-width wp-block-button__width-"+s]:s});return Object(je.createElement)("div",we.useBlockProps.save({className:b}),Object(je.createElement)(we.RichText.Content,{tagName:"a",className:m,href:i,title:c,style:d,value:l,target:o,rel:a}))},migrate:Object(nt.compose)(at,lt)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...st,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(e){let{attributes:t,className:n}=e;const{borderRadius:r,linkTarget:o,rel:a,text:l,title:c,url:i,width:s}=t,u=Object(we.__experimentalGetColorClassesAndStyles)(t),m=tt()("wp-block-button__link",u.className,{"no-border-radius":0===r}),d={borderRadius:r?r+"px":void 0,...u.style},b=tt()(n,{["has-custom-width wp-block-button__width-"+s]:s});return Object(je.createElement)("div",we.useBlockProps.save({className:b}),Object(je.createElement)(we.RichText.Content,{tagName:"a",className:m,href:i,title:c,style:d,value:l,target:o,rel:a}))},migrate:Object(nt.compose)(at,lt)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...st,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(e){let{attributes:t}=e;const{borderRadius:n,linkTarget:r,rel:o,text:a,title:l,url:c}=t,i=tt()("wp-block-button__link",{"no-border-radius":0===n}),s={borderRadius:n?n+"px":void 0};return Object(je.createElement)(we.RichText.Content,{tagName:"a",className:i,href:c,title:l,style:s,value:a,target:r,rel:o})},migrate:lt},{supports:{align:!0,alignWide:!1},attributes:{...st,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,migrate:Object(nt.compose)(lt,ct),save(e){let{attributes:t}=e;const{backgroundColor:n,borderRadius:r,customBackgroundColor:o,customTextColor:a,customGradient:l,linkTarget:c,gradient:i,rel:s,text:u,textColor:m,title:d,url:b}=t,p=Object(we.getColorClassName)("color",m),g=!l&&Object(we.getColorClassName)("background-color",n),h=Object(we.__experimentalGetGradientClass)(i),v=tt()("wp-block-button__link",{"has-text-color":m||a,[p]:p,"has-background":n||o||l||i,[g]:g,"no-border-radius":0===r,[h]:h}),O={background:l||void 0,backgroundColor:g||l||i?void 0:o,color:p?void 0:a,borderRadius:r?r+"px":void 0};return Object(je.createElement)("div",null,Object(je.createElement)(we.RichText.Content,{tagName:"a",className:v,href:b,title:d,style:O,value:u,target:c,rel:s}))}},{attributes:{...st,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=>e.className&&e.className.includes("is-style-squared"),migrate(e){let t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),lt(ct({...e,className:t||void 0,borderRadius:0}))},save(e){let{attributes:t}=e;const{backgroundColor:n,customBackgroundColor:r,customTextColor:o,linkTarget:a,rel:l,text:c,textColor:i,title:s,url:u}=t,m=Object(we.getColorClassName)("color",i),d=Object(we.getColorClassName)("background-color",n),b=tt()("wp-block-button__link",{"has-text-color":i||o,[m]:m,"has-background":n||r,[d]:d}),p={backgroundColor:d?void 0:r,color:m?void 0:o};return Object(je.createElement)("div",null,Object(je.createElement)(we.RichText.Content,{tagName:"a",className:b,href:u,title:s,style:p,value:c,target:a,rel:l}))}},{attributes:{...st,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:it,save(e){let{attributes:t}=e;const{url:n,text:r,title:o,backgroundColor:a,textColor:l,customBackgroundColor:c,customTextColor:i}=t,s=Object(we.getColorClassName)("color",l),u=Object(we.getColorClassName)("background-color",a),m=tt()("wp-block-button__link",{"has-text-color":l||i,[s]:s,"has-background":a||c,[u]:u}),d={backgroundColor:u?void 0:c,color:s?void 0:i};return Object(je.createElement)("div",null,Object(je.createElement)(we.RichText.Content,{tagName:"a",className:m,href:n,title:o,style:d,value:r}))}},{attributes:{...st,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save(e){let{attributes:t}=e;const{url:n,text:r,title:o,align:a,color:l,textColor:c}=t,i={backgroundColor:l,color:c};return Object(je.createElement)("div",{className:"align"+a},Object(je.createElement)(we.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:n,title:o,style:i,value:r}))},migrate:it},{attributes:{...st,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save(e){let{attributes:t}=e;const{url:n,text:r,title:o,align:a,color:l,textColor:c}=t;return Object(je.createElement)("div",{className:"align"+a,style:{backgroundColor:l}},Object(je.createElement)(we.RichText.Content,{tagName:"a",href:n,title:o,style:{color:c},value:r}))},migrate:it}],mt=n("wx14"),dt=n("RxS6"),bt=n("Bpkj"),pt=n("Mp0b");function gt(e){let{selectedWidth:t,setAttributes:n}=e;return Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Width settings")},Object(je.createElement)(_e.ButtonGroup,{"aria-label":Object(ke.__)("Button width")},[25,50,75,100].map(e=>Object(je.createElement)(_e.Button,{key:e,isSmall:!0,variant:e===t?"primary":void 0,onClick:()=>{var r;n({width:t===(r=e)?void 0:r})}},e,"%"))))}var ht=function(e){var t;const{attributes:n,setAttributes:r,className:o,isSelected:a,onReplace:l,mergeBlocks:c}=e,{linkTarget:i,placeholder:s,rel:u,style:m,text:d,url:b,width:p}=n,g=Object(je.useCallback)(e=>{r({rel:e})},[r]),h=Object(we.__experimentalUseBorderProps)(n),v=Object(we.__experimentalUseColorProps)(n),O=Object(we.__experimentalGetSpacingClassesAndStyles)(n),j=Object(je.useRef)(),y=Object(je.useRef)(),f=Object(we.useBlockProps)({ref:j,onKeyDown:function(e){if(dt.isKeyboardEvent.primary(e,"k"))C(e);else if(dt.isKeyboardEvent.primaryShift(e,"k")){var t;x(),null===(t=y.current)||void 0===t||t.focus()}}}),[_,k]=Object(je.useState)(!1),w=!!b,E="_blank"===i;function C(e){e.preventDefault(),k(!0)}function x(){r({url:void 0,linkTarget:void 0,rel:void 0}),k(!1)}return Object(je.useEffect)(()=>{a||k(!1)},[a]),Object(je.createElement)(je.Fragment,null,Object(je.createElement)("div",Object(mt.a)({},f,{className:tt()(f.className,{["has-custom-width wp-block-button__width-"+p]:p,"has-custom-font-size":f.style.fontSize})}),Object(je.createElement)(we.RichText,{ref:y,"aria-label":Object(ke.__)("Button text"),placeholder:s||Object(ke.__)("Add text…"),value:d,onChange:e=>{r({text:e.replace(/<\/?a[^>]*>/g,"")})},withoutInteractiveFormatting:!0,className:tt()(o,"wp-block-button__link",v.className,h.className,{"no-border-radius":0===(null==m||null===(t=m.border)||void 0===t?void 0:t.radius)}),style:{...h.style,...v.style,...O.style},onSplit:e=>Object(Oe.createBlock)("core/button",{...n,text:e}),onReplace:l,onMerge:c,identifier:"text"})),Object(je.createElement)(we.BlockControls,{group:"block"},!w&&Object(je.createElement)(_e.ToolbarButton,{name:"link",icon:bt.a,title:Object(ke.__)("Link"),shortcut:dt.displayShortcut.primary("k"),onClick:C}),w&&Object(je.createElement)(_e.ToolbarButton,{name:"link",icon:pt.a,title:Object(ke.__)("Unlink"),shortcut:dt.displayShortcut.primaryShift("k"),onClick:x,isActive:!0})),a&&(_||w)&&Object(je.createElement)(_e.Popover,{position:"bottom center",onClose:()=>{var e;k(!1),null===(e=y.current)||void 0===e||e.focus()},anchorRef:null==j?void 0:j.current,focusOnMount:!!_&&"firstElement"},Object(je.createElement)(we.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:{url:b,opensInNewTab:E},onChange:e=>{let{url:t="",opensInNewTab:n}=e;r({url:t}),E!==n&&function(e){const t=e?"_blank":void 0;let n=u;t&&!u?n="noreferrer noopener":t||"noreferrer noopener"!==u||(n=void 0),r({linkTarget:t,rel:n})}(n)},onRemove:()=>{var e;x(),null===(e=y.current)||void 0===e||e.focus()},forceIsEditingLink:_})),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(gt,{selectedWidth:p,setAttributes:r})),Object(je.createElement)(we.InspectorControls,{__experimentalGroup:"advanced"},Object(je.createElement)(_e.TextControl,{label:Object(ke.__)("Link rel"),value:u||"",onChange:g})))};const vt={apiVersion:2,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:{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,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".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:Ot}=vt,jt={icon:Xe.a,example:{attributes:{className:"is-style-fill",text:Object(ke.__)("Call to Action")}},edit:ht,save:function(e){var t,n;let{attributes:r,className:o}=e;const{fontSize:a,linkTarget:l,rel:c,style:i,text:s,title:u,url:m,width:d}=r;if(!s)return null;const b=Object(we.__experimentalGetBorderClassesAndStyles)(r),p=Object(we.__experimentalGetColorClassesAndStyles)(r),g=Object(we.__experimentalGetSpacingClassesAndStyles)(r),h=tt()("wp-block-button__link",p.className,b.className,{"no-border-radius":0===(null==i||null===(t=i.border)||void 0===t?void 0:t.radius)}),v={...b.style,...p.style,...g.style},O=tt()(o,{["has-custom-width wp-block-button__width-"+d]:d,"has-custom-font-size":a||(null==i||null===(n=i.typography)||void 0===n?void 0:n.fontSize)});return Object(je.createElement)("div",we.useBlockProps.save({className:O}),Object(je.createElement)(we.RichText.Content,{tagName:"a",className:h,href:m,title:u,style:v,value:s,target:l,rel:c}))},deprecated:ut,merge:(e,t)=>{let{text:n=""}=t;return{...e,text:(e.text||"")+n}}};var yt=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M17 3H7c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V5c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4zm-8-1.2h5V6.2h-5v1.6zM17 13H7c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4zm-8-1.2h5v-1.5h-5v1.5z"}));const ft=e=>{if(e.layout)return e;const{contentJustification:t,orientation:n,...r}=e;return(t||n)&&Object.assign(r,{layout:{type:"flex",...t&&{justifyContent:t},...n&&{orientation:n}}}),r};var _t=[{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:e=>{let{contentJustification:t,orientation:n}=e;return!!t||!!n},migrate:ft,save(e){let{attributes:{contentJustification:t,orientation:n}}=e;return Object(je.createElement)("div",we.useBlockProps.save({className:tt()({["is-content-justification-"+t]:t,"is-vertical":"vertical"===n})}),Object(je.createElement)(we.InnerBlocks.Content,null))}},{supports:{align:["center","left","right"],anchor:!0},save:()=>Object(je.createElement)("div",null,Object(je.createElement)(we.InnerBlocks.Content,null)),isEligible(e){let{align:t}=e;return t&&["center","left","right"].includes(t)},migrate:e=>ft({...e,align:void 0,contentJustification:e.align})}],kt=n("qRz9");const{name:wt}={apiVersion:2,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"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},__experimentalLayout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"};var Et={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>Object(Oe.createBlock)(wt,{},e.map(e=>Object(Oe.createBlock)("core/button",e)))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>Object(Oe.createBlock)(wt,{},e.map(e=>{const t=Object(kt.__unstableCreateElement)(document,e.content),n=t.innerText||"",r=t.querySelector("a"),o=null==r?void 0:r.getAttribute("href");return Object(Oe.createBlock)("core/button",{text:n,url:o})})),isMatch:e=>e.every(e=>{const t=Object(kt.__unstableCreateElement)(document,e.content),n=t.innerText||"",r=t.querySelectorAll("a");return n.length<=30&&r.length<=1})}]};const Ct=[Ot];var xt=function(e){let{attributes:{layout:t={}}}=e;const n=Object(we.useBlockProps)(),r=Object(ze.useSelect)(e=>{var t;const n=e(we.store).getSettings().__experimentalPreferredStyleVariations;return null==n||null===(t=n.value)||void 0===t?void 0:t[Ot]},[]),o=Object(we.useInnerBlocksProps)(n,{allowedBlocks:Ct,template:[[Ot,{className:r&&"is-style-"+r}]],__experimentalLayout:t,templateInsertUpdatesSelection:!0});return Object(je.createElement)(je.Fragment,null,Object(je.createElement)("div",o))};const St={apiVersion:2,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"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},__experimentalLayout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},{name:Bt}=St,Tt={icon:yt,example:{innerBlocks:[{name:"core/button",attributes:{text:Object(ke.__)("Find out more")}},{name:"core/button",attributes:{text:Object(ke.__)("Contact us")}}]},deprecated:_t,transforms:Et,edit:xt,save:function(){const e=we.useInnerBlocksProps.save(we.useBlockProps.save());return Object(je.createElement)("div",e)}};var Nt=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.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"})),Pt=n("wy2R"),zt=n.n(Pt),It=n("jZUy");const Mt=Ae()(e=>{if(!e)return{};const t=zt()(e);return{year:t.year(),month:t.month()+1}});const Rt={apiVersion:2,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},style:"wp-block-calendar"},{name:Lt}=Rt,Vt={icon:Nt,example:{},edit:function(e){let{attributes:t}=e;const n=Object(we.useBlockProps)(),{date:r,hasPosts:o,hasPostsResolved:a}=Object(ze.useSelect)(e=>{const{getEntityRecords:t,hasFinishedResolution:n}=e(It.store),r={status:"publish",per_page:1},o=t("postType","post",r),a=n("getEntityRecords",["postType","post",r]);let l;const c=e("core/editor");if(c){"post"===c.getEditedPostAttribute("type")&&(l=c.getEditedPostAttribute("date"))}return{date:l,hasPostsResolved:a,hasPosts:a&&1===(null==o?void 0:o.length)}},[]);return o?Object(je.createElement)("div",n,Object(je.createElement)(_e.Disabled,null,Object(je.createElement)(Ce.a,{block:"core/calendar",attributes:{...t,...Mt(r)}}))):Object(je.createElement)("div",n,Object(je.createElement)(_e.Placeholder,{icon:Nt,label:Object(ke.__)("Calendar")},a?Object(ke.__)("No published posts found."):Object(je.createElement)(_e.Spinner,null)))}};var At=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.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"}));var Ht=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(je.createElement)(ye.Path,{d:"M10.44 3.02l1.82-1.82 6.36 6.35-1.83 1.82c-1.05-.68-2.48-.57-3.41.36l-.75.75c-.92.93-1.04 2.35-.35 3.41l-1.83 1.82-2.41-2.41-2.8 2.79c-.42.42-3.38 2.71-3.8 2.29s1.86-3.39 2.28-3.81l2.79-2.79L4.1 9.36l1.83-1.82c1.05.69 2.48.57 3.4-.36l.75-.75c.93-.92 1.05-2.35.36-3.41z"}));const Ft={apiVersion:2,name:"core/categories",title:"Categories",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}},supports:{align:!0,html:!1},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"},{name:Dt}=Ft,Gt={icon:At,example:{},edit:function e(t){let{attributes:{displayAsDropdown:n,showHierarchy:r,showPostCounts:o,showOnlyTopLevel:a},setAttributes:l}=t;const c=Object(nt.useInstanceId)(e,"blocks-category-select"),{categories:i,isRequesting:s}=Object(ze.useSelect)(e=>{const{getEntityRecords:t,isResolving:n}=e(It.store),r={per_page:-1,hide_empty:!0,context:"view"};return a&&(r.parent=0),{categories:t("taxonomy","category",r),isRequesting:n("getEntityRecords",["taxonomy","category",r])}},[a]),u=e=>null!=i&&i.length?null===e?i:i.filter(t=>{let{parent:n}=t;return n===e}):[],m=e=>"wp-block-categories__list wp-block-categories__list-level-"+e,d=e=>t=>l({[e]:t}),b=e=>e?Object(Me.unescape)(e).trim():Object(ke.__)("(Untitled)"),p=(e,t)=>{const n=u(e.id),{id:a,link:l,count:c,name:i}=e;return Object(je.createElement)("li",{key:a},Object(je.createElement)("a",{href:l,target:"_blank",rel:"noreferrer noopener"},b(i)),o&&Object(je.createElement)("span",{className:"wp-block-categories__post-count"},` (${c})`),r&&!!n.length&&Object(je.createElement)("ul",{className:m(t+1)},n.map(e=>p(e,t+1))))},g=(e,t)=>{const{id:n,count:a,name:l}=e,c=u(n);return[Object(je.createElement)("option",{key:n},Object(Me.times)(3*t,()=>" "),b(l),o&&` (${a})`),r&&!!c.length&&c.map(e=>g(e,t+1))]};return Object(je.createElement)("div",Object(we.useBlockProps)(),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Categories settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Display as dropdown"),checked:n,onChange:d("displayAsDropdown")}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Show post counts"),checked:o,onChange:d("showPostCounts")}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Show only top level categories"),checked:a,onChange:d("showOnlyTopLevel")}),!a&&Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Show hierarchy"),checked:r,onChange:d("showHierarchy")}))),s&&Object(je.createElement)(_e.Placeholder,{icon:Ht,label:Object(ke.__)("Categories")},Object(je.createElement)(_e.Spinner,null)),!s&&0===(null==i?void 0:i.length)&&Object(je.createElement)("p",null,Object(ke.__)("Your site does not have any posts, so there is nothing to display here at the moment.")),!s&&(null==i?void 0:i.length)>0&&(n?(()=>{const e=u(r?0:null);return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.VisuallyHidden,{as:"label",htmlFor:c},Object(ke.__)("Categories")),Object(je.createElement)("select",{id:c,className:"wp-block-categories__dropdown"},e.map(e=>g(e,0))))})():(()=>{const e=u(r?0:null);return Object(je.createElement)("ul",{className:m(0)},e.map(e=>p(e,0)))})()))}};var qt=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.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 Ut=e=>{let{clientId:t}=e;const{replaceBlocks:n}=Object(ze.useDispatch)(we.store),r=Object(ze.useSelect)(e=>e(we.store).getBlock(t),[t]);return Object(je.createElement)(_e.ToolbarButton,{onClick:()=>n(r.clientId,Object(Oe.rawHandler)({HTML:Object(Oe.serialize)(r)}))},Object(ke.__)("Convert to blocks"))};const{wp:Wt}=window;const $t={apiVersion:2,name:"core/freeform",title:"Classic",category:"text",description:"Use the classic WordPress editor.",textdomain:"default",attributes:{content:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,reusable:!1},editorStyle:"wp-block-freeform-editor"},{name:Zt}=$t,Kt={icon:qt,edit:function(e){let{clientId:t,attributes:{content:n},setAttributes:r,onReplace:o}=e;const{getMultiSelectedBlockClientIds:a}=Object(ze.useSelect)(we.store),l=Object(je.useRef)(!1);return Object(je.useEffect)(()=>{if(!l.current)return;const e=window.tinymce.get("editor-"+t);(null==e?void 0:e.getContent())!==n&&e.setContent(n||"")},[n]),Object(je.useEffect)(()=>{const{baseURL:e,suffix:c}=window.wpEditorL10n.tinymce;function i(e){let t;n&&e.on("loadContent",()=>e.setContent(n)),e.on("blur",()=>{var n;t=e.selection.getBookmark(2,!0);const o=document.querySelector(".interface-interface-skeleton__content"),l=o.scrollTop;return null!==(n=a())&&void 0!==n&&n.length||r({content:e.getContent()}),e.once("focus",()=>{t&&(e.selection.moveToBookmark(t),o.scrollTop!==l&&(o.scrollTop=l))}),!1}),e.on("mousedown touchstart",()=>{t=null});const l=Object(Me.debounce)(()=>{const t=e.getContent();t!==e._lastChange&&(e._lastChange=t,r({content:t}))},250);e.on("Paste Change input Undo Redo",l),e.on("remove",l.cancel),e.on("keydown",t=>{dt.isKeyboardEvent.primary(t,"z")&&t.stopPropagation(),t.keyCode!==dt.BACKSPACE&&t.keyCode!==dt.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===dt.F10&&t.stopPropagation()}),e.on("init",()=>{const t=e.getBody();t.ownerDocument.activeElement===t&&(t.blur(),e.focus())})}function s(){const{settings:e}=window.wpEditorL10n.tinymce;Wt.oldEditor.initialize("editor-"+t,{tinymce:{...e,inline:!0,content_css:!1,fixed_toolbar_container:"#toolbar-"+t,setup:i}})}function u(){"complete"===document.readyState&&s()}return l.current=!0,window.tinymce.EditorManager.overrideDefaults({base_url:e,suffix:c}),"complete"===document.readyState?s():document.addEventListener("readystatechange",u),()=>{document.removeEventListener("readystatechange",u),Wt.oldEditor.remove("editor-"+t)}},[]),Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(_e.ToolbarGroup,null,Object(je.createElement)(Ut,{clientId:t}))),Object(je.createElement)("div",Object(we.useBlockProps)(),Object(je.createElement)("div",{key:"toolbar",id:"toolbar-"+t,className:"block-library-classic__toolbar",onClick:function(){const e=window.tinymce.get("editor-"+t);e&&e.focus()},"data-placeholder":Object(ke.__)("Classic"),onKeyDown:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}}),Object(je.createElement)("div",{key:"editor",id:"editor-"+t,className:"wp-block-freeform block-library-rich-text__tinymce"})))},save:function(e){let{attributes:t}=e;const{content:n}=t;return Object(je.createElement)(je.RawHTML,null,n)}};var Jt=n("1Yn1");function Qt(e){return e.replace(/\[/g,"[")}function Yt(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}var Xt={from:[{type:"enter",regExp:/^```$/,transform:()=>Object(Oe.createBlock)("core/code")},{type:"block",blocks:["core/html"],transform:e=>{let{content:t}=e;return Object(Oe.createBlock)("core/code",{content:t})}},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName,schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]};const en={apiVersion:2,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:{anchor:!0,__experimentalSelector:".wp-block-code > code",typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:["top","bottom"],padding:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},color:{text:!0,background:!0,gradients:!0}},style:"wp-block-code"},{name:tn}=en,nn={icon:Jt.a,example:{attributes:{content:Object(ke.__)('// 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:Xt,edit:function(e){let{attributes:t,setAttributes:n,onRemove:r}=e;const o=Object(we.useBlockProps)();return Object(je.createElement)("pre",o,Object(je.createElement)(we.RichText,{tagName:"code",value:t.content,onChange:e=>n({content:e}),onRemove:r,placeholder:Object(ke.__)("Write code…"),"aria-label":Object(ke.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0}))},save:function(e){let{attributes:t}=e;return Object(je.createElement)("pre",we.useBlockProps.save(),Object(je.createElement)(we.RichText.Content,{tagName:"code",value:(n=t.content,Object(Me.flow)(Qt,Yt)(n||""))}));var n}};var rn=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"}));var on=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},isEligible(e){let{width:t}=e;return isFinite(t)},migrate:e=>({...e,width:e.width+"%"}),save(e){let{attributes:t}=e;const{verticalAlignment:n,width:r}=t,o=tt()({["is-vertically-aligned-"+n]:n}),a={flexBasis:r+"%"};return Object(je.createElement)("div",{className:o,style:a},Object(je.createElement)(we.InnerBlocks.Content,null))}}];var an=function(e){let{attributes:{verticalAlignment:t,width:n,templateLock:r=!1,allowedBlocks:o},setAttributes:a,clientId:l}=e;const c=tt()("block-core-columns",{["is-vertically-aligned-"+t]:t}),i=Object(_e.__experimentalUseCustomUnits)({availableUnits:Object(we.useSetting)("spacing.units")||["%","px","em","rem","vw"]}),{columnsIds:s,hasChildBlocks:u,rootClientId:m}=Object(ze.useSelect)(e=>{const{getBlockOrder:t,getBlockRootClientId:n}=e(we.store),r=n(l);return{hasChildBlocks:t(l).length>0,rootClientId:r,columnsIds:t(r)}},[l]),{updateBlockAttributes:d}=Object(ze.useDispatch)(we.store),b=Number.isFinite(n)?n+"%":n,p=Object(we.useBlockProps)({className:c,style:b?{flexBasis:b}:void 0}),g=s.length,h=s.indexOf(l)+1,v=Object(ke.sprintf)(Object(ke.__)("%1$s (%2$d of %3$d)"),p["aria-label"],h,g),O=Object(we.useInnerBlocksProps)({...p,"aria-label":v},{templateLock:r,allowedBlocks:o,renderAppender:u?void 0:we.InnerBlocks.ButtonBlockAppender});return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(we.BlockVerticalAlignmentToolbar,{onChange:e=>{a({verticalAlignment:e}),d(m,{verticalAlignment:null})},value:t})),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Column settings")},Object(je.createElement)(_e.__experimentalUnitControl,{label:Object(ke.__)("Width"),labelPosition:"edge",__unstableInputWidth:"80px",value:n||"",onChange:e=>{e=0>parseFloat(e)?"0":e,a({width:e})},units:i}))),Object(je.createElement)("div",O))};const ln={apiVersion:2,name:"core/column",title:"Column",category:"text",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",!1]}},supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}}}},{name:cn}=ln,sn={icon:rn,edit:an,save:function(e){let{attributes:t}=e;const{verticalAlignment:n,width:r}=t,o=tt()({["is-vertically-aligned-"+n]:n});let a;if(r&&/\d/.test(r)){let e=Number.isFinite(r)?r+"%":r;if(!Number.isFinite(r)&&null!=r&&r.endsWith("%")){const t=1e12;e=Math.round(Number.parseFloat(r)*t)/t+"%"}a={flexBasis:e}}const l=we.useBlockProps.save({className:o,style:a}),c=we.useInnerBlocksProps.save(l);return Object(je.createElement)("div",c)},deprecated:on};var un=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.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 mn(e){let t,{doc:n}=mn;n||(n=document.implementation.createHTMLDocument(""),mn.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 dn=[{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:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),{...Object(Me.omit)(e,["customTextColor","customBackgroundColor"]),style:t,isStackedOnMobile:!0}},save(e){let{attributes:t}=e;const{verticalAlignment:n,backgroundColor:r,customBackgroundColor:o,textColor:a,customTextColor:l}=t,c=Object(we.getColorClassName)("background-color",r),i=Object(we.getColorClassName)("color",a),s=tt()({"has-background":r||o,"has-text-color":a||l,[c]:c,[i]:i,["are-vertically-aligned-"+n]:n}),u={backgroundColor:c?void 0:o,color:i?void 0:l};return Object(je.createElement)("div",{className:s||void 0,style:u},Object(je.createElement)(we.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},isEligible:(e,t)=>!!t.some(e=>/layout-column-\d+/.test(e.originalContent))&&t.some(e=>void 0!==mn(e.originalContent)),migrate(e,t){const n=t.reduce((e,t)=>{const{originalContent:n}=t;let r=mn(n);return void 0===r&&(r=0),e[r]||(e[r]=[]),e[r].push(t),e},[]).map(e=>Object(Oe.createBlock)("core/column",{},e));return[{...Object(Me.omit)(e,["columns"]),isStackedOnMobile:!0},n]},save(e){let{attributes:t}=e;const{columns:n}=t;return Object(je.createElement)("div",{className:`has-${n}-columns`},Object(je.createElement)(we.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},migrate:(e,t)=>[e={...Object(Me.omit)(e,["columns"]),isStackedOnMobile:!0},t],save(e){let{attributes:t}=e;const{verticalAlignment:n,columns:r}=t,o=tt()(`has-${r}-columns`,{["are-vertically-aligned-"+n]:n});return Object(je.createElement)("div",{className:o},Object(je.createElement)(we.InnerBlocks.Content,null))}}];const bn=e=>{const t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function pn(e,t){const{width:n=100/t}=e.attributes;return bn(n)}function gn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return Object(Me.sumBy)(e,e=>pn(e,t))}function hn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return e.reduce((e,n)=>{const r=pn(n,t);return Object.assign(e,{[n.clientId]:r})},{})}function vn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;const r=gn(e,n);return Object(Me.mapValues)(hn(e,n),e=>bn(t*e/r))}function On(e,t){return e.map(e=>Object(Me.merge)({},e,{attributes:{width:t[e.clientId]+"%"}}))}const jn=["core/column"];const yn=Object(ze.withDispatch)((e,t,n)=>({updateAlignment(r){const{clientId:o,setAttributes:a}=t,{updateBlockAttributes:l}=e(we.store),{getBlockOrder:c}=n.select(we.store);a({verticalAlignment:r});c(o).forEach(e=>{l(e,{verticalAlignment:r})})},updateColumns(r,o){const{clientId:a}=t,{replaceInnerBlocks:l}=e(we.store),{getBlocks:c}=n.select(we.store);let i=c(a);const s=i.every(e=>{var t;const n=e.attributes.width;return Number.isFinite(null!=n&&null!==(t=n.endsWith)&&void 0!==t&&t.call(n,"%")?parseFloat(n):n)});const u=o>r;if(u&&s){const e=bn(100/o);i=[...On(i,vn(i,100-e)),...Object(Me.times)(o-r,()=>Object(Oe.createBlock)("core/column",{width:e+"%"}))]}else if(u)i=[...i,...Object(Me.times)(o-r,()=>Object(Oe.createBlock)("core/column"))];else if(i=Object(Me.dropRight)(i,r-o),s){i=On(i,vn(i,100))}l(a,i)}}))((function(e){let{attributes:t,setAttributes:n,updateAlignment:r,updateColumns:o,clientId:a}=e;const{isStackedOnMobile:l,verticalAlignment:c}=t,{count:i}=Object(ze.useSelect)(e=>({count:e(we.store).getBlockCount(a)}),[a]),s=tt()({["are-vertically-aligned-"+c]:c,"is-not-stacked-on-mobile":!l}),u=Object(we.useBlockProps)({className:s}),m=Object(we.useInnerBlocksProps)(u,{allowedBlocks:jn,orientation:"horizontal",renderAppender:!1});return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(we.BlockVerticalAlignmentToolbar,{onChange:r,value:c})),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,null,Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Columns"),value:i,onChange:e=>o(i,e),min:1,max:Math.max(6,i)}),i>6&&Object(je.createElement)(_e.Notice,{status:"warning",isDismissible:!1},Object(ke.__)("This column count exceeds the recommended amount and may cause visual breakage.")),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Stack on mobile"),checked:l,onChange:()=>n({isStackedOnMobile:!l})}))),Object(je.createElement)("div",m))}));function fn(e){let{clientId:t,name:n,setAttributes:r}=e;const{blockType:o,defaultVariation:a,variations:l}=Object(ze.useSelect)(e=>{const{getBlockVariations:t,getBlockType:r,getDefaultBlockVariation:o}=e(Oe.store);return{blockType:r(n),defaultVariation:o(n,"block"),variations:t(n,"block")}},[n]),{replaceInnerBlocks:c}=Object(ze.useDispatch)(we.store),i=Object(we.useBlockProps)();return Object(je.createElement)("div",i,Object(je.createElement)(we.__experimentalBlockVariationPicker,{icon:Object(Me.get)(o,["icon","src"]),label:Object(Me.get)(o,["title"]),variations:l,onSelect:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;e.attributes&&r(e.attributes),e.innerBlocks&&c(t,Object(Oe.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!0)},allowSkip:!0}))}var _n=e=>{const{clientId:t}=e,n=Object(ze.useSelect)(e=>e(we.store).getBlocks(t).length>0,[t])?yn:fn;return Object(je.createElement)(n,e)};var kn=[{name:"one-column-full",title:Object(ke.__)("100"),description:Object(ke.__)("One column"),icon:Object(je.createElement)(_e.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(_e.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m39.0625 14h-30.0625v20.0938h30.0625zm-30.0625-2c-1.10457 0-2 .8954-2 2v20.0938c0 1.1045.89543 2 2 2h30.0625c1.1046 0 2-.8955 2-2v-20.0938c0-1.1046-.8954-2-2-2z"})),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:Object(ke.__)("50 / 50"),description:Object(ke.__)("Two columns; equal split"),icon:Object(je.createElement)(_e.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(_e.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z"})),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:Object(ke.__)("30 / 70"),description:Object(ke.__)("Two columns; one-third, two-thirds split"),icon:Object(je.createElement)(_e.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(_e.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"})),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:Object(ke.__)("70 / 30"),description:Object(ke.__)("Two columns; two-thirds, one-third split"),icon:Object(je.createElement)(_e.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(_e.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"})),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:Object(ke.__)("33 / 33 / 33"),description:Object(ke.__)("Three columns; equal split"),icon:Object(je.createElement)(_e.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(_e.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"})),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:Object(ke.__)("25 / 50 / 25"),description:Object(ke.__)("Three columns; wide center column"),icon:Object(je.createElement)(_e.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(_e.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"]}];var wn={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{const t=+(100/e.length).toFixed(2),n=e.map(e=>{let{name:n,attributes:r,innerBlocks:o}=e;return["core/column",{width:t+"%"},[[n,{...r},o]]]});return Object(Oe.createBlock)("core/columns",{},Object(Oe.createBlocksFromInnerBlocksTemplate)(n))},isMatch:e=>{let{length:t}=e;return t&&t<=6}},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{const{align:n,backgroundColor:r,textColor:o,style:a,mediaAlt:l,mediaId:c,mediaPosition:i,mediaSizeSlug:s,mediaType:u,mediaUrl:m,mediaWidth:d,verticalAlignment:b}=e;let p;if("image"!==u&&u)p=["core/video",{id:c,src:m}];else{p=["core/image",{...{id:c,alt:l,url:m,sizeSlug:s},...{href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel}}]}const g=[["core/column",{width:d+"%"},[p]],["core/column",{width:100-d+"%"},t]];return"right"===i&&g.reverse(),Object(Oe.createBlock)("core/columns",{align:n,backgroundColor:r,textColor:o,style:a,verticalAlignment:b},Object(Oe.createBlocksFromInnerBlocksTemplate)(g))}}]};const En={apiVersion:2,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}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{blockGap:!0,margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{blockGap:!0}}},editorStyle:"wp-block-columns-editor",style:"wp-block-columns"},{name:Cn}=En,xn={icon:un,variations:kn,example:{viewportWidth:600,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(ke.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:Object(ke.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(ke.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:Object(ke.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:dn,edit:_n,save:function(e){let{attributes:t}=e;const{isStackedOnMobile:n,verticalAlignment:r}=t,o=tt()({["are-vertically-aligned-"+r]:r,"is-not-stacked-on-mobile":!n}),a=we.useBlockProps.save({className:o}),l=we.useInnerBlocksProps.save(a);return Object(je.createElement)("div",l)},transforms:wn};var Sn=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"}));const Bn={"top left":"is-position-top-left","top center":"is-position-top-center","top right":"is-position-top-right","center left":"is-position-center-left","center center":"is-position-center-center",center:"is-position-center-center","center right":"is-position-center-right","bottom left":"is-position-bottom-left","bottom center":"is-position-bottom-center","bottom right":"is-position-bottom-right"};function Tn(e){return e?{backgroundImage:`url(${e})`}:{}}const Nn=["image","video"];function Pn(e){return 50===e||void 0===!e?null:"has-background-dim-"+10*Math.round(e/10)}function zn(e){return!e||"center center"===e||"center"===e}function In(e){return zn(e)?"":Bn[e]}function Mn(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function Rn(e){return{...e,dimRatio:e.url?e.dimRatio:100}}const Ln={url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"}};var Vn=[{attributes:{...Ln,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""}},supports:{anchor:!0,align:!0,html:!1,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",text:!1,background:!1}},save(e){let{attributes:t}=e;const{backgroundType:n,gradient:r,contentPosition:o,customGradient:a,customOverlayColor:l,dimRatio:c,focalPoint:i,hasParallax:s,isRepeated:u,overlayColor:m,url:d,alt:b,id:p,minHeight:g,minHeightUnit:h}=t,v=Object(we.getColorClassName)("background-color",m),O=Object(we.__experimentalGetGradientClass)(r),j=h?`${g}${h}`:g,y="image"===n,f="video"===n,_=!(s||u),k={...y&&!_?Tn(d):{},backgroundColor:v?void 0:l,background:a&&!d?a:void 0,minHeight:j||void 0},w=i&&_?`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`:void 0,E=tt()(Mn(c),v,{"has-background-dim":0!==c,"has-parallax":s,"is-repeated":u,"has-background-gradient":r||a,[O]:!d&&O,"has-custom-content-position":!zn(o)},In(o));return Object(je.createElement)("div",we.useBlockProps.save({className:E,style:k}),d&&(r||a)&&0!==c&&Object(je.createElement)("span",{"aria-hidden":"true",className:tt()("wp-block-cover__gradient-background",O),style:a?{background:a}:void 0}),y&&_&&d&&Object(je.createElement)("img",{className:tt()("wp-block-cover__image-background",p?"wp-image-"+p:null),alt:b,src:d,style:{objectPosition:w},"data-object-fit":"cover","data-object-position":w}),f&&d&&Object(je.createElement)("video",{className:tt()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:w},"data-object-fit":"cover","data-object-position":w}),Object(je.createElement)("div",{className:"wp-block-cover__inner-container"},Object(je.createElement)(we.InnerBlocks.Content,null)))},migrate:Rn},{attributes:{...Ln,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{align:!0},save(e){let{attributes:t}=e;const{backgroundType:n,gradient:r,contentPosition:o,customGradient:a,customOverlayColor:l,dimRatio:c,focalPoint:i,hasParallax:s,isRepeated:u,overlayColor:m,url:d,minHeight:b,minHeightUnit:p}=t,g=Object(we.getColorClassName)("background-color",m),h=Object(we.__experimentalGetGradientClass)(r),v=p?`${b}${p}`:b,O="image"===n,j="video"===n,y=O?Tn(d):{},f={};let _;g||(y.backgroundColor=l),a&&!d&&(y.background=a),y.minHeight=v||void 0,i&&(_=`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`,O&&!s&&(y.backgroundPosition=_),j&&(f.objectPosition=_));const k=tt()(Mn(c),g,{"has-background-dim":0!==c,"has-parallax":s,"is-repeated":u,"has-background-gradient":r||a,[h]:!d&&h,"has-custom-content-position":!zn(o)},In(o));return Object(je.createElement)("div",we.useBlockProps.save({className:k,style:y}),d&&(r||a)&&0!==c&&Object(je.createElement)("span",{"aria-hidden":"true",className:tt()("wp-block-cover__gradient-background",h),style:a?{background:a}:void 0}),j&&d&&Object(je.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:f}),Object(je.createElement)("div",{className:"wp-block-cover__inner-container"},Object(je.createElement)(we.InnerBlocks.Content,null)))},migrate:Rn},{attributes:{...Ln,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save(e){let{attributes:t}=e;const{backgroundType:n,gradient:r,customGradient:o,customOverlayColor:a,dimRatio:l,focalPoint:c,hasParallax:i,overlayColor:s,url:u,minHeight:m}=t,d=Object(we.getColorClassName)("background-color",s),b=Object(we.__experimentalGetGradientClass)(r),p="image"===n?Tn(u):{};d||(p.backgroundColor=a),c&&!i&&(p.backgroundPosition=`${Math.round(100*c.x)}% ${Math.round(100*c.y)}%`),o&&!u&&(p.background=o),p.minHeight=m||void 0;const g=tt()(Mn(l),d,{"has-background-dim":0!==l,"has-parallax":i,"has-background-gradient":o,[b]:!u&&b});return Object(je.createElement)("div",{className:g,style:p},u&&(r||o)&&0!==l&&Object(je.createElement)("span",{"aria-hidden":"true",className:tt()("wp-block-cover__gradient-background",b),style:o?{background:o}:void 0}),"video"===n&&u&&Object(je.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),Object(je.createElement)("div",{className:"wp-block-cover__inner-container"},Object(je.createElement)(we.InnerBlocks.Content,null)))},migrate:Rn},{attributes:{...Ln,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save(e){let{attributes:t}=e;const{backgroundType:n,gradient:r,customGradient:o,customOverlayColor:a,dimRatio:l,focalPoint:c,hasParallax:i,overlayColor:s,url:u,minHeight:m}=t,d=Object(we.getColorClassName)("background-color",s),b=Object(we.__experimentalGetGradientClass)(r),p="image"===n?Tn(u):{};d||(p.backgroundColor=a),c&&!i&&(p.backgroundPosition=`${100*c.x}% ${100*c.y}%`),o&&!u&&(p.background=o),p.minHeight=m||void 0;const g=tt()(Mn(l),d,{"has-background-dim":0!==l,"has-parallax":i,"has-background-gradient":o,[b]:!u&&b});return Object(je.createElement)("div",{className:g,style:p},u&&(r||o)&&0!==l&&Object(je.createElement)("span",{"aria-hidden":"true",className:tt()("wp-block-cover__gradient-background",b),style:o?{background:o}:void 0}),"video"===n&&u&&Object(je.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),Object(je.createElement)("div",{className:"wp-block-cover__inner-container"},Object(je.createElement)(we.InnerBlocks.Content,null)))},migrate:Rn},{attributes:{...Ln,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}},supports:{align:!0},save(e){let{attributes:t}=e;const{backgroundType:n,contentAlign:r,customOverlayColor:o,dimRatio:a,focalPoint:l,hasParallax:c,overlayColor:i,title:s,url:u}=t,m=Object(we.getColorClassName)("background-color",i),d="image"===n?Tn(u):{};m||(d.backgroundColor=o),l&&!c&&(d.backgroundPosition=`${100*l.x}% ${100*l.y}%`);const b=tt()(Mn(a),m,{"has-background-dim":0!==a,"has-parallax":c,[`has-${r}-content`]:"center"!==r});return Object(je.createElement)("div",{className:b,style:d},"video"===n&&u&&Object(je.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),!we.RichText.isEmpty(s)&&Object(je.createElement)(we.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:s}))},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100};return[Object(Me.omit)(t,["title","contentAlign"]),[Object(Oe.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(ke.__)("Write title…")})]]}},{attributes:{...Ln,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},align:{type:"string"}},supports:{className:!1},save(e){let{attributes:t}=e;const{url:n,title:r,hasParallax:o,dimRatio:a,align:l,contentAlign:c,overlayColor:i,customOverlayColor:s}=t,u=Object(we.getColorClassName)("background-color",i),m=Tn(n);u||(m.backgroundColor=s);const d=tt()("wp-block-cover-image",Mn(a),u,{"has-background-dim":0!==a,"has-parallax":o,[`has-${c}-content`]:"center"!==c},l?"align"+l:null);return Object(je.createElement)("div",{className:d,style:m},!we.RichText.isEmpty(r)&&Object(je.createElement)(we.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:r}))},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100};return[Object(Me.omit)(t,["title","contentAlign","align"]),[Object(Oe.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(ke.__)("Write title…")})]]}},{attributes:{...Ln,title:{type:"string",source:"html",selector:"h2"},align:{type:"string"},contentAlign:{type:"string",default:"center"}},supports:{className:!1},save(e){let{attributes:t}=e;const{url:n,title:r,hasParallax:o,dimRatio:a,align:l}=t,c=Tn(n),i=tt()("wp-block-cover-image",Mn(a),{"has-background-dim":0!==a,"has-parallax":o},l?"align"+l:null);return Object(je.createElement)("section",{className:i,style:c},Object(je.createElement)(we.RichText.Content,{tagName:"h2",value:r}))},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100};return[Object(Me.omit)(t,["title","contentAlign","align"]),[Object(Oe.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(ke.__)("Write title…")})]]}}],An=n("FEKF"),Hn=n.n(An),Fn=n("fHnH"),Dn=n("abaT");Object(Fn.b)([Dn.a]);const{__Visualizer:Gn}=_e.__experimentalBoxControl;function qn(){return qn.fastAverageColor||(qn.fastAverageColor=new Hn.a),qn.fastAverageColor}function Un(e){let{onChange:t,onUnitChange:n,unit:r="px",value:o=""}=e;const[a,l]=Object(je.useState)(null),c="block-cover-height-input-"+Object(nt.useInstanceId)(we.__experimentalUnitControl),i="px"===r,s=Object(_e.__experimentalUseCustomUnits)({availableUnits:Object(we.useSetting)("spacing.units")||["px","em","rem","vw","vh"],defaultValues:{px:"430",em:"20",rem:"20",vw:"20",vh:"50"}}),u=null!==a?a:o,m=i?50:0;return Object(je.createElement)(_e.BaseControl,{label:Object(ke.__)("Minimum height of cover"),id:c},Object(je.createElement)(we.__experimentalUnitControl,{id:c,isResetValueOnUnitChange:!0,min:m,onBlur:()=>{null!==a&&l(null)},onChange:e=>{const r=""!==e?parseFloat(e):void 0;isNaN(r)&&void 0!==r?l(e):(l(null),t(r),void 0===r&&n())},onUnitChange:n,style:{maxWidth:80},unit:r,units:s,value:u}))}const Wn={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1};function $n(e){let{className:t,onResizeStart:n,onResize:r,onResizeStop:o,...a}=e;const[l,c]=Object(je.useState)(!1);return Object(je.createElement)(_e.ResizableBox,Object(mt.a)({className:tt()(t,{"is-resizing":l}),enable:Wn,onResizeStart:(e,t,o)=>{n(o.clientHeight),r(o.clientHeight)},onResize:(e,t,n)=>{r(n.clientHeight),l||c(!0)},onResizeStop:(e,t,n)=>{o(n.clientHeight),c(!1)}},a))}function Zn(e){let{x:t,y:n}=e;return`${Math.round(100*t)}% ${Math.round(100*n)}%`}function Kn(e){let{disableMediaButtons:t=!1,children:n,noticeUI:r,noticeOperations:o,onSelectMedia:a,style:l}=e;const{removeAllNotices:c,createErrorNotice:i}=o;return Object(je.createElement)(we.MediaPlaceholder,{icon:Object(je.createElement)(we.BlockIcon,{icon:Sn}),labels:{title:Object(ke.__)("Cover"),instructions:Object(ke.__)("Drag and drop onto this block, upload, or select existing media from your library.")},onSelect:a,accept:"image/*,video/*",allowedTypes:Nn,notices:r,disableMediaButtons:t,onError:e=>{c(),i(e)},style:l},n)}var Jn=Object(nt.compose)([Object(ze.withDispatch)(e=>{const{toggleSelection:t}=e(we.store);return{toggleSelection:t}}),Object(we.withColors)({overlayColor:"background-color"}),_e.withNotices,nt.withInstanceId])((function(e){var t,n,r;let{attributes:o,clientId:a,isSelected:l,noticeUI:c,noticeOperations:i,overlayColor:s,setAttributes:u,setOverlayColor:m,toggleSelection:d}=e;const{contentPosition:b,id:p,backgroundType:g,dimRatio:h,focalPoint:v,hasParallax:O,isDark:j,isRepeated:y,minHeight:f,minHeightUnit:_,style:k,url:w,alt:E,allowedBlocks:C,templateLock:x}=o,{gradientClass:S,gradientValue:B,setGradient:T}=Object(we.__experimentalUseGradient)(),N=function(e,t){return n=>{if(!n||!n.url)return void e({url:void 0,id:void 0});let r;if(Object(Pe.isBlobURL)(n.url)&&(n.type=Object(Pe.getBlobTypeByURL)(n.url)),n.media_type)r="image"===n.media_type?"image":"video";else{if("image"!==n.type&&"video"!==n.type)return;r=n.type}e({dimRatio:100===t?50:t,url:n.url,id:n.id,alt:null==n?void 0:n.alt,backgroundType:r,..."video"===r?{focalPoint:void 0,hasParallax:void 0}:{}})}}(u,h),P=((e,t)=>!e&&Object(Pe.isBlobURL)(t))(p,w),[z,I]=Object(je.useState)(f),[M,R]=Object(je.useState)(_),L="vh"===_&&100===f,V=Object(je.useRef)(),A=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;const[o,a]=Object(je.useState)(!1);return Object(je.useEffect)(()=>{e&&t<=50&&r.current&&qn().getColorAsync(r.current,e=>{a(e.isDark)})},[e,e&&t<=50&&r.current,a]),Object(je.useEffect)(()=>{if(t>50||!e){if(!n)return void a(!0);a(Object(Fn.a)(n).isDark())}},[n,t>50||!e,a]),Object(je.useEffect)(()=>{e||n||a(!1)},[!e&&!n,a]),o}(w,h,s.color,V);Object(je.useEffect)(()=>{u({isDark:A})},[A]);const H="image"===g,F="video"===g,[D,G]=Object(je.useState)(null),q=_?`${f}${_}`:f,U=!(O||y),W={...H&&!U?Tn(w):void 0,minHeight:D||q||void 0},$={backgroundColor:s.color},Z={objectPosition:v&&U?Zn(v):void 0},K=!!(w||s.color||B),J=F||H&&(!O||y),Q=e=>{const[t,n]=V.current?[V.current.style,"objectPosition"]:[ee.current.style,"backgroundPosition"];t[n]=Zn(e)},Y=Object(ze.useSelect)(e=>e(we.store).getBlock(a).innerBlocks.length>0,[a]),X=Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(we.__experimentalBlockAlignmentMatrixControl,{label:Object(ke.__)("Change content position"),value:b,onChange:e=>u({contentPosition:e}),isDisabled:!Y}),Object(je.createElement)(we.__experimentalBlockFullHeightAligmentControl,{isActive:L,onToggle:()=>L?u("vh"===M&&100===z?{minHeight:void 0,minHeightUnit:void 0}:{minHeight:z,minHeightUnit:M}):(I(f),R(_),u({minHeight:100,minHeightUnit:"vh"})),isDisabled:!Y})),Object(je.createElement)(we.BlockControls,{group:"other"},Object(je.createElement)(we.MediaReplaceFlow,{mediaId:p,mediaURL:w,allowedTypes:Nn,accept:"image/*,video/*",onSelect:N,name:w?Object(ke.__)("Replace"):Object(ke.__)("Add Media")})),Object(je.createElement)(we.InspectorControls,null,!!w&&Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Media settings")},H&&Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Fixed background"),checked:O,onChange:()=>{u({hasParallax:!O,...O?{}:{focalPoint:void 0}})}}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Repeated background"),checked:y,onChange:()=>{u({isRepeated:!y})}})),J&&Object(je.createElement)(_e.FocalPointPicker,{label:Object(ke.__)("Focal point picker"),url:w,value:v,onDragStart:Q,onDrag:Q,onChange:e=>u({focalPoint:e})}),w&&H&&U&&Object(je.createElement)(_e.TextareaControl,{label:Object(ke.__)("Alt text (alternative text)"),value:E,onChange:e=>u({alt:e}),help:Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(ke.__)("Describe the purpose of the image")),Object(ke.__)("Leave empty if the image is purely decorative."))}),Object(je.createElement)(_e.PanelRow,null,Object(je.createElement)(_e.Button,{variant:"secondary",isSmall:!0,className:"block-library-cover__reset-button",onClick:()=>u({url:void 0,id:void 0,backgroundType:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0})},Object(ke.__)("Clear Media")))),Object(je.createElement)(we.__experimentalPanelColorGradientSettings,{__experimentalHasMultipleOrigins:!0,title:Object(ke.__)("Overlay"),initialOpen:!0,settings:[{colorValue:s.color,gradientValue:B,onColorChange:m,onGradientChange:T,label:Object(ke.__)("Color")}]},Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Opacity"),value:h,onChange:e=>u({dimRatio:e}),min:0,max:100,step:10,required:!0}))),Object(je.createElement)(we.InspectorControls,{__experimentalGroup:"dimensions"},Object(je.createElement)(_e.__experimentalToolsPanelItem,{hasValue:()=>!!f,label:Object(ke.__)("Minimum height"),onDeselect:()=>u({minHeight:void 0,minHeightUnit:void 0}),resetAllFilter:()=>({minHeight:void 0,minHeightUnit:void 0}),isShownByDefault:!0,panelId:a},Object(je.createElement)(Un,{value:D||f,unit:_,onChange:e=>u({minHeight:e}),onUnitChange:e=>u({minHeightUnit:e})})))),ee=Object(je.useRef)(),te=Object(we.useBlockProps)({ref:ee}),ne=function(e){return[["core/paragraph",{align:"center",placeholder:Object(ke.__)("Write title…"),...e}]]}({fontSize:!(null===(t=Object(we.useSetting)("typography.fontSizes"))||void 0===t||!t.length)?"large":void 0}),re=Object(we.useInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:ne,templateInsertUpdatesSelection:!0,allowedBlocks:C,templateLock:x});if(!Y&&!K)return Object(je.createElement)(je.Fragment,null,X,Object(je.createElement)("div",Object(mt.a)({},te,{className:tt()("is-placeholder",te.className)}),Object(je.createElement)(Kn,{noticeUI:c,onSelectMedia:N,noticeOperations:i,style:{minHeight:D||q||void 0}},Object(je.createElement)("div",{className:"wp-block-cover__placeholder-background-options"},Object(je.createElement)(we.ColorPalette,{disableCustomColors:!0,value:s.color,onChange:m,clearable:!1}))),Object(je.createElement)($n,{className:"block-library-cover__resize-container",onResizeStart:()=>{u({minHeightUnit:"px"}),d(!1)},onResize:G,onResizeStop:e=>{d(!0),u({minHeight:e}),G(null)},showHandle:l})));const oe=tt()({"is-dark-theme":j,"is-light":!j,"is-transient":P,"has-parallax":O,"is-repeated":y,"has-custom-content-position":!zn(b)},In(b));return Object(je.createElement)(je.Fragment,null,X,Object(je.createElement)("div",Object(mt.a)({},te,{className:tt()(oe,te.className),style:{...W,...te.style},"data-url":w}),Object(je.createElement)(Gn,{values:null==k||null===(n=k.spacing)||void 0===n?void 0:n.padding,showValues:null==k||null===(r=k.visualizers)||void 0===r?void 0:r.padding}),Object(je.createElement)($n,{className:"block-library-cover__resize-container",onResizeStart:()=>{u({minHeightUnit:"px"}),d(!1)},onResize:G,onResizeStop:e=>{d(!0),u({minHeight:e}),G(null)},showHandle:l}),Object(je.createElement)("span",{"aria-hidden":"true",className:tt()(Pn(h),{[s.class]:s.class},"wp-block-cover__gradient-background",S,{"has-background-dim":void 0!==h,"has-background-gradient":B,[S]:!w&&S}),style:{backgroundImage:B,...$}}),w&&H&&U&&Object(je.createElement)("img",{ref:V,className:"wp-block-cover__image-background",alt:E,src:w,style:Z}),w&&F&&Object(je.createElement)("video",{ref:V,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:w,style:Z}),P&&Object(je.createElement)(_e.Spinner,null),Object(je.createElement)(Kn,{disableMediaButtons:!0,noticeUI:c,onSelectMedia:N,noticeOperations:i}),Object(je.createElement)("div",re)))}));var Qn={from:[{type:"block",blocks:["core/image"],transform:e=>{var t;let{caption:n,url:r,alt:o,align:a,id:l,anchor:c,style:i}=e;return Object(Oe.createBlock)("core/cover",{dimRatio:50,url:r,alt:o,align:a,id:l,anchor:c,style:{color:{duotone:null==i||null===(t=i.color)||void 0===t?void 0:t.duotone}}},[Object(Oe.createBlock)("core/paragraph",{content:n,fontSize:"large"})])}},{type:"block",blocks:["core/video"],transform:e=>{let{caption:t,src:n,align:r,id:o,anchor:a}=e;return Object(Oe.createBlock)("core/cover",{dimRatio:50,url:n,align:r,id:o,backgroundType:"video",anchor:a},[Object(Oe.createBlock)("core/paragraph",{content:t,fontSize:"large"})])}},{type:"block",blocks:["core/group"],isMatch:e=>{var t,n;let{backgroundColor:r,gradient:o,style:a}=e;return r||(null==a||null===(t=a.color)||void 0===t?void 0:t.background)||(null==a||null===(n=a.color)||void 0===n?void 0:n.gradient)||o},transform:(e,t)=>{var n,r;let{align:o,anchor:a,backgroundColor:l,gradient:c,style:i}=e;return Object(Oe.createBlock)("core/cover",{align:o,anchor:a,overlayColor:l,customOverlayColor:null==i||null===(n=i.color)||void 0===n?void 0:n.background,gradient:c,customGradient:null==i||null===(r=i.color)||void 0===r?void 0:r.gradient},t)}}],to:[{type:"block",blocks:["core/image"],isMatch:e=>{let{backgroundType:t,url:n,overlayColor:r,customOverlayColor:o,gradient:a,customGradient:l}=e;return n?"image"===t:!(r||o||a||l)},transform:e=>{var t;let{title:n,url:r,alt:o,align:a,id:l,anchor:c,style:i}=e;return Object(Oe.createBlock)("core/image",{caption:n,url:r,alt:o,align:a,id:l,anchor:c,style:{color:{duotone:null==i||null===(t=i.color)||void 0===t?void 0:t.duotone}}})}},{type:"block",blocks:["core/video"],isMatch:e=>{let{backgroundType:t,url:n,overlayColor:r,customOverlayColor:o,gradient:a,customGradient:l}=e;return n?"video"===t:!(r||o||a||l)},transform:e=>{let{title:t,url:n,align:r,id:o,anchor:a}=e;return Object(Oe.createBlock)("core/video",{caption:t,src:n,id:o,align:r,anchor:a})}}]};const Yn={apiVersion:2,name:"core/cover",title:"Cover",category:"media",description:"Add an image or video with a text overlay — great for headers.",textdomain:"default",attributes:{url:{type:"string"},id:{type:"number"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:100},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},isDark:{type:"boolean",default:!0},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{anchor:!0,align:!0,html:!1,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",text:!1,background:!1}},editorStyle:"wp-block-cover-editor",style:"wp-block-cover"},{name:Xn}=Yn,er={icon:Sn,example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{customFontSize:48,content:Object(ke.__)("<strong>Snow Patrol</strong>"),align:"center"}}]},transforms:Qn,save:function(e){let{attributes:t}=e;const{backgroundType:n,gradient:r,contentPosition:o,customGradient:a,customOverlayColor:l,dimRatio:c,focalPoint:i,hasParallax:s,isDark:u,isRepeated:m,overlayColor:d,url:b,alt:p,id:g,minHeight:h,minHeightUnit:v}=t,O=Object(we.getColorClassName)("background-color",d),j=Object(we.__experimentalGetGradientClass)(r),y=v?`${h}${v}`:h,f="image"===n,_="video"===n,k=!(s||m),w={...f&&!k?Tn(b):{},minHeight:y||void 0},E={backgroundColor:O?void 0:l,background:a||void 0},C=i&&k?`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`:void 0,x=tt()({"is-light":!u,"has-parallax":s,"is-repeated":m,"has-custom-content-position":!zn(o)},In(o));return Object(je.createElement)("div",we.useBlockProps.save({className:x,style:w}),Object(je.createElement)("span",{"aria-hidden":"true",className:tt()(O,Pn(c),"wp-block-cover__gradient-background",j,{"has-background-dim":void 0!==c,"has-background-gradient":r||a,[j]:!b&&j}),style:E}),f&&k&&b&&Object(je.createElement)("img",{className:tt()("wp-block-cover__image-background",g?"wp-image-"+g:null),alt:p,src:b,style:{objectPosition:C},"data-object-fit":"cover","data-object-position":C}),_&&b&&Object(je.createElement)("video",{className:tt()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:b,style:{objectPosition:C},"data-object-fit":"cover","data-object-position":C}),Object(je.createElement)("div",we.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})))},edit:Jn,deprecated:Vn};var tr=n("B9Az");function nr(e){return e?Object(ke.__)("This embed will preserve its aspect ratio when the browser is resized."):Object(ke.__)("This embed may not preserve its aspect ratio when the browser is resized.")}var rr=e=>{let{blockSupportsResponsive:t,showEditButton:n,themeSupportsResponsive:r,allowResponsive:o,toggleResponsive:a,switchBackToURLInput:l}=e;return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(_e.ToolbarGroup,null,n&&Object(je.createElement)(_e.ToolbarButton,{className:"components-toolbar__control",label:Object(ke.__)("Edit URL"),icon:tr.a,onClick:l}))),r&&t&&Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Media settings"),className:"blocks-responsive"},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Resize for smaller devices"),checked:o,help:nr,onChange:a}))))};const or=Object(je.createElement)(_e.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(_e.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z"})),ar=Object(je.createElement)(_e.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(_e.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM13.2 7.7c-.4.4-.7 1.1-.7 1.9v3.7c-.4-.3-.8-.4-1.3-.4-1.2 0-2.2 1-2.2 2.2 0 1.2 1 2.2 2.2 2.2.5 0 1-.2 1.4-.5.9-.6 1.4-1.6 1.4-2.6V9.6c0-.4.1-.6.2-.8.3-.3 1-.3 1.6-.3h.2V7h-.2c-.7 0-1.8 0-2.6.7z"})),lr=Object(je.createElement)(_e.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(_e.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9.2 4.5H19c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V9.8l4.6-5.3zm9.8 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),cr=Object(je.createElement)(_e.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(_e.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM10 15l5-3-5-3v6z"})),ir={foreground:"#1da1f2",src:Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(_e.G,null,Object(je.createElement)(_e.Path,{d:"M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z"})))},sr={foreground:"#ff0000",src:Object(je.createElement)(_e.SVG,{viewBox:"0 0 24 24"},Object(je.createElement)(_e.Path,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"}))},ur={foreground:"#3b5998",src:Object(je.createElement)(_e.SVG,{viewBox:"0 0 24 24"},Object(je.createElement)(_e.Path,{d:"M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z"}))},mr=Object(je.createElement)(_e.SVG,{viewBox:"0 0 24 24"},Object(je.createElement)(_e.G,null,Object(je.createElement)(_e.Path,{d:"M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z"}))),dr={foreground:"#0073AA",src:Object(je.createElement)(_e.SVG,{viewBox:"0 0 24 24"},Object(je.createElement)(_e.G,null,Object(je.createElement)(_e.Path,{d:"M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z"})))},br={foreground:"#1db954",src:Object(je.createElement)(_e.SVG,{viewBox:"0 0 24 24"},Object(je.createElement)(_e.Path,{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325"}))},pr=Object(je.createElement)(_e.SVG,{viewBox:"0 0 24 24"},Object(je.createElement)(_e.Path,{d:"m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z"})),gr={foreground:"#1ab7ea",src:Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(_e.G,null,Object(je.createElement)(_e.Path,{d:"M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z"})))},hr=Object(je.createElement)(_e.SVG,{viewBox:"0 0 24 24"},Object(je.createElement)(_e.Path,{d:"M22 11.816c0-1.256-1.02-2.277-2.277-2.277-.593 0-1.122.24-1.526.613-1.48-.965-3.455-1.594-5.647-1.69l1.17-3.702 3.18.75c.01 1.027.847 1.86 1.877 1.86 1.035 0 1.877-.84 1.877-1.877 0-1.035-.842-1.877-1.877-1.877-.77 0-1.43.466-1.72 1.13L13.55 3.92c-.204-.047-.4.067-.46.26l-1.35 4.27c-2.317.037-4.412.67-5.97 1.67-.402-.355-.917-.58-1.493-.58C3.02 9.54 2 10.56 2 11.815c0 .814.433 1.523 1.078 1.925-.037.222-.06.445-.06.673 0 3.292 4.01 5.97 8.94 5.97s8.94-2.678 8.94-5.97c0-.214-.02-.424-.052-.632.687-.39 1.154-1.12 1.154-1.964zm-3.224-7.422c.606 0 1.1.493 1.1 1.1s-.493 1.1-1.1 1.1-1.1-.494-1.1-1.1.493-1.1 1.1-1.1zm-16 7.422c0-.827.673-1.5 1.5-1.5.313 0 .598.103.838.27-.85.675-1.477 1.478-1.812 2.36-.32-.274-.525-.676-.525-1.13zm9.183 7.79c-4.502 0-8.165-2.33-8.165-5.193S7.457 9.22 11.96 9.22s8.163 2.33 8.163 5.193-3.663 5.193-8.164 5.193zM20.635 13c-.326-.89-.948-1.7-1.797-2.383.247-.186.55-.3.882-.3.827 0 1.5.672 1.5 1.5 0 .482-.23.91-.586 1.184zm-11.64 1.704c-.76 0-1.397-.616-1.397-1.376 0-.76.636-1.397 1.396-1.397.76 0 1.376.638 1.376 1.398 0 .76-.616 1.376-1.376 1.376zm7.405-1.376c0 .76-.615 1.376-1.375 1.376s-1.4-.616-1.4-1.376c0-.76.64-1.397 1.4-1.397.76 0 1.376.638 1.376 1.398zm-1.17 3.38c.15.152.15.398 0 .55-.675.674-1.728 1.002-3.22 1.002l-.01-.002-.012.002c-1.492 0-2.544-.328-3.218-1.002-.152-.152-.152-.398 0-.55.152-.152.4-.15.55 0 .52.52 1.394.775 2.67.775l.01.002.01-.002c1.276 0 2.15-.253 2.67-.775.15-.152.398-.152.55 0z"})),vr={foreground:"#35465c",src:Object(je.createElement)(_e.SVG,{viewBox:"0 0 24 24"},Object(je.createElement)(_e.Path,{d:"M19 3H5a2 2 0 00-2 2v14c0 1.1.9 2 2 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-5.69 14.66c-2.72 0-3.1-1.9-3.1-3.16v-3.56H8.49V8.99c1.7-.62 2.54-1.99 2.64-2.87 0-.06.06-.41.06-.58h1.9v3.1h2.17v2.3h-2.18v3.1c0 .47.13 1.3 1.2 1.26h1.1v2.36c-1.01.02-2.07 0-2.07 0z"}))},Or=Object(je.createElement)(_e.SVG,{viewBox:"0 0 24 24"},Object(je.createElement)(_e.Path,{d:"M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z"}),Object(je.createElement)(_e.Path,{d:"M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z"}),Object(je.createElement)(_e.Path,{d:"M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z"})),jr=Object(je.createElement)(_e.SVG,{viewBox:"0 0 24 24"},Object(je.createElement)(_e.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),Object(je.createElement)(_e.Path,{d:"m23.7254 19.0205-10.1074-17.18468c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418h22.5655c1.279 0 1.8019-.8905 1.1599-1.9795z",fill:"#d4cdcb"}),Object(je.createElement)(_e.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),Object(je.createElement)(_e.Path,{d:"m13.618 1.83582c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418 15.2646-16.38573z",fill:"#e4ecb0"}),Object(je.createElement)(_e.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),Object(je.createElement)(_e.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})),yr=Object(je.createElement)(_e.SVG,{viewBox:"0 0 24 24"},Object(je.createElement)(_e.Path,{d:"m12.1479 18.5957c-2.4949 0-4.28131-1.7558-4.28131-4.0658 0-2.2176 1.78641-4.0965 4.09651-4.0965 2.2793 0 4.0349 1.7864 4.0349 4.1581 0 2.2794-1.7556 4.0042-3.8501 4.0042zm8.3521-18.5957-4.5329 1v7c-1.1088-1.41691-2.8028-1.8787-4.8049-1.8787-2.09443 0-3.97329.76993-5.5133 2.27917-1.72483 1.66323-2.6489 3.78863-2.6489 6.16033 0 2.5873.98562 4.8049 2.89526 6.499 1.44763 1.2936 3.17251 1.9402 5.17454 1.9402 1.9713 0 3.4498-.5236 4.8973-1.9402v1.9402h4.5329c0-7.6359 0-15.3641 0-23z",fill:"#333436"})),fr=Object(je.createElement)(_e.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(_e.Path,{d:"M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"})),_r=Object(je.createElement)(_e.SVG,{viewBox:"0 0 44 44"},Object(je.createElement)(_e.Path,{d:"M32.59521,22.001l4.31885-4.84473-6.34131-1.38379.646-6.459-5.94336,2.61035L22,6.31934l-3.27344,5.60351L12.78418,9.3125l.645,6.458L7.08643,17.15234,11.40479,21.999,7.08594,26.84375l6.34131,1.38379-.64551,6.458,5.94287-2.60938L22,37.68066l3.27344-5.60351,5.94287,2.61035-.64551-6.458,6.34277-1.38183Zm.44385,2.75244L30.772,23.97827l-1.59558-2.07391,1.97888.735Zm-8.82147,6.1579L22.75,33.424V30.88977l1.52228-2.22168ZM18.56226,13.48816,19.819,15.09534l-2.49219-.88642L15.94037,12.337Zm6.87719.00116,2.62043-1.15027-1.38654,1.86981L24.183,15.0946Zm3.59357,2.6029-1.22546,1.7381.07525-2.73486,1.44507-1.94867ZM22,29.33008l-2.16406-3.15686L22,23.23688l2.16406,2.93634Zm-4.25458-9.582-.10528-3.836,3.60986,1.284v3.73242Zm5.00458-2.552,3.60986-1.284-.10528,3.836L22.75,20.92853Zm-7.78174-1.10559-.29352-2.94263,1.44245,1.94739.07519,2.73321Zm2.30982,5.08319,3.50817,1.18164-2.16247,2.9342-3.678-1.08447Zm2.4486,7.49285L21.25,30.88977v2.53485L19.78052,30.91Zm3.48707-6.31121,3.50817-1.18164,2.33228,3.03137-3.678,1.08447Zm10.87219-4.28113-2.714,3.04529L28.16418,19.928l1.92176-2.72565ZM24.06036,12.81769l-2.06012,2.6322-2.059-2.63318L22,9.292ZM9.91455,18.07227l4.00079-.87195,1.921,2.72735-3.20794,1.19019Zm2.93024,4.565,1.9801-.73462L13.228,23.97827l-2.26838.77429Zm-1.55591,3.58819L13.701,25.4021l2.64935.78058-2.14447.67853Zm3.64868,1.977L18.19,27.17334l.08313,3.46332L14.52979,32.2793Zm10.7876,2.43549.08447-3.464,3.25165,1.03052.407,4.07684Zm4.06824-3.77478-2.14545-.68,2.65063-.781,2.41266.825Z"}));var kr=()=>Object(je.createElement)("div",{className:"wp-block-embed is-loading"},Object(je.createElement)(_e.Spinner,null),Object(je.createElement)("p",null,Object(ke.__)("Embedding…")));var wr=e=>{let{icon:t,label:n,value:r,onSubmit:o,onChange:a,cannotEmbed:l,fallback:c,tryAgain:i}=e;return Object(je.createElement)(_e.Placeholder,{icon:Object(je.createElement)(we.BlockIcon,{icon:t,showColors:!0}),label:n,className:"wp-block-embed",instructions:Object(ke.__)("Paste a link to the content you want to display on your site.")},Object(je.createElement)("form",{onSubmit:o},Object(je.createElement)("input",{type:"url",value:r||"",className:"components-placeholder__input","aria-label":n,placeholder:Object(ke.__)("Enter URL to embed here…"),onChange:a}),Object(je.createElement)(_e.Button,{variant:"primary",type:"submit"},Object(ke._x)("Embed","button label"))),Object(je.createElement)("div",{className:"components-placeholder__learn-more"},Object(je.createElement)(_e.ExternalLink,{href:Object(ke.__)("https://wordpress.org/support/article/embeds/")},Object(ke.__)("Learn more about embeds"))),l&&Object(je.createElement)("div",{className:"components-placeholder__error"},Object(je.createElement)("div",{className:"components-placeholder__instructions"},Object(ke.__)("Sorry, this content could not be embedded.")),Object(je.createElement)(_e.Button,{variant:"secondary",onClick:i},Object(ke._x)("Try again","button label"))," ",Object(je.createElement)(_e.Button,{variant:"secondary",onClick:c},Object(ke._x)("Convert to link","button label"))))};const Er={class:"className",frameborder:"frameBorder",marginheight:"marginHeight",marginwidth:"marginWidth"};function Cr(e){let{html:t}=e;const n=Object(je.useRef)(),r=Object(je.useMemo)(()=>{const e=(new window.DOMParser).parseFromString(t,"text/html").querySelector("iframe"),n={};return e?(Array.from(e.attributes).forEach(e=>{let{name:t,value:r}=e;"style"!==t&&(n[Er[t]||t]=r)}),n):n},[t]);return Object(je.useEffect)(()=>{const{ownerDocument:e}=n.current,{defaultView:t}=e;function o(e){let{data:{secret:t,message:o,value:a}={}}=e;"height"===o&&t===r["data-secret"]&&(n.current.height=a)}return t.addEventListener("message",o),()=>{t.removeEventListener("message",o)}},[]),Object(je.createElement)("div",{className:"wp-block-embed__wrapper"},Object(je.createElement)("iframe",Object(mt.a)({ref:Object(nt.useMergeRefs)([n,Object(nt.useFocusableIframe)()]),title:r.title},r)))}class xr extends je.Component{constructor(){super(...arguments),this.hideOverlay=this.hideOverlay.bind(this),this.state={interactive:!1}}static getDerivedStateFromProps(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}hideOverlay(){this.setState({interactive:!0})}render(){const{preview:e,previewable:t,url:n,type:r,caption:o,onCaptionChange:a,isSelected:l,className:c,icon:i,label:s,insertBlocksAfter:u}=this.props,{scripts:m}=e,{interactive:d}=this.state,b="photo"===r?(e=>{const t=e.thumbnail_url||e.url,n=Object(je.createElement)("p",null,Object(je.createElement)("img",{src:t,alt:e.title,width:"100%"}));return Object(je.renderToString)(n)})(e):e.html,p=new URL(n).host.split("."),g=p.splice(p.length-2,p.length-1).join("."),h=Object(ke.sprintf)(Object(ke.__)("Embedded content from %s"),g),v=Le()(r,c,"wp-block-embed__wrapper"),O="wp-embed"===r?Object(je.createElement)(Cr,{html:b}):Object(je.createElement)("div",{className:"wp-block-embed__wrapper"},Object(je.createElement)(_e.SandBox,{html:b,scripts:m,title:h,type:v,onFocus:this.hideOverlay}),!d&&Object(je.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object(je.createElement)("figure",{className:Le()(c,"wp-block-embed",{"is-type-video":"video"===r})},t?O:Object(je.createElement)(_e.Placeholder,{icon:Object(je.createElement)(we.BlockIcon,{icon:i,showColors:!0}),label:s},Object(je.createElement)("p",{className:"components-placeholder__error"},Object(je.createElement)("a",{href:n},n)),Object(je.createElement)("p",{className:"components-placeholder__error"},Object(ke.sprintf)(Object(ke.__)("Embedded content from %s can't be previewed in the editor."),g))),(!we.RichText.isEmpty(o)||l)&&Object(je.createElement)(we.RichText,{tagName:"figcaption",placeholder:Object(ke.__)("Add caption"),value:o,onChange:a,inlineToolbar:!0,__unstableOnSplitAtEnd:()=>u(Object(Oe.createBlock)("core/paragraph"))}))}}var Sr=xr;var Br=e=>{const{attributes:{providerNameSlug:t,previewable:n,responsive:r,url:o},attributes:a,isSelected:l,onReplace:c,setAttributes:i,insertBlocksAfter:s,onFocus:u}=e,m={title:Object(ke._x)("Embed","block title"),icon:or},{icon:d,title:b}=(p=t,(null===(g=Object(Oe.getBlockVariations)(He))||void 0===g?void 0:g.find(e=>{let{name:t}=e;return t===p}))||m);var p,g;const[h,v]=Object(je.useState)(o),[O,j]=Object(je.useState)(!1),{invalidateResolution:y}=Object(ze.useDispatch)(It.store),{preview:f,fetching:_,themeSupportsResponsive:k,cannotEmbed:w}=Object(ze.useSelect)(e=>{var t;const{getEmbedPreview:n,isPreviewEmbedFallback:r,isRequestingEmbedPreview:a,getThemeSupports:l}=e(It.store);if(!o)return{fetching:!1,cannotEmbed:!1};const c=n(o),i=r(o),s=!1===(null==c?void 0:c.html)&&void 0===(null==c?void 0:c.type),u=404===(null==c||null===(t=c.data)||void 0===t?void 0:t.status),m=!!c&&!s&&!u;return{preview:m?c:void 0,fetching:a(o),themeSupportsResponsive:l()["responsive-embeds"],cannotEmbed:!m||i}},[o]),E=()=>{const{allowResponsive:e,className:t}=a;return{...a,...We(f,b,t,r,e)}};Object(je.useEffect)(()=>{if(null==f||!f.html||!w||_)return;const e=o.replace(/\/$/,"");v(e),j(!1),i({url:e})},[null==f?void 0:f.html,o]),Object(je.useEffect)(()=>{if(f&&!O&&(i(E()),c)){const t=Ge(e,E());t&&c(t)}},[f,O]);const C=Object(we.useBlockProps)();if(_)return Object(je.createElement)(ye.View,C,Object(je.createElement)(kr,null));const x=Object(ke.sprintf)(Object(ke.__)("%s URL"),b);if(!f||w||O)return Object(je.createElement)(ye.View,C,Object(je.createElement)(wr,{icon:d,label:x,onFocus:u,onSubmit:e=>{e&&e.preventDefault(),j(!1),i({url:h})},value:h,cannotEmbed:w,onChange:e=>v(e.target.value),fallback:()=>function(e,t){const n=Object(je.createElement)("a",{href:e},e);t(Object(Oe.createBlock)("core/paragraph",{content:Object(je.renderToString)(n)}))}(h,c),tryAgain:()=>{y("getEmbedPreview",[h])}}));const{caption:S,type:B,allowResponsive:T,className:N}=E(),P=tt()(N,e.className);return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(rr,{showEditButton:f&&!w,themeSupportsResponsive:k,blockSupportsResponsive:r,allowResponsive:T,toggleResponsive:()=>{const{allowResponsive:e,className:t}=a,{html:n}=f,o=!e;i({allowResponsive:o,className:Ue(n,t,r&&o)})},switchBackToURLInput:()=>j(!0)}),Object(je.createElement)(ye.View,C,Object(je.createElement)(Sr,{preview:f,previewable:n,className:P,url:h,type:B,caption:S,onCaptionChange:e=>i({caption:e}),isSelected:l,icon:d,label:x,insertBlocksAfter:s})))};const{name:Tr}={apiVersion:2,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1},previewable:{type:"boolean",default:!0}},supports:{align:!0},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"};var Nr={from:[{type:"raw",isMatch:e=>{var t,n;return"P"===e.nodeName&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)&&1===(null===(t=e.textContent)||void 0===t||null===(n=t.match(/https/gi))||void 0===n?void 0:n.length)},transform:e=>Object(Oe.createBlock)(Tr,{url:e.textContent.trim()})}],to:[{type:"block",blocks:["core/paragraph"],isMatch:e=>{let{url:t}=e;return!!t},transform:e=>{let{url:t,caption:n}=e,r=`<a href="${t}">${t}</a>`;return null!=n&&n.trim()&&(r+="<br />"+n),Object(Oe.createBlock)("core/paragraph",{content:r})}}]};const Pr=[{name:"twitter",title:"Twitter",icon:ir,keywords:["tweet",Object(ke.__)("social")],description:Object(ke.__)("Embed a tweet."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:"YouTube",icon:sr,keywords:[Object(ke.__)("music"),Object(ke.__)("video")],description:Object(ke.__)("Embed a YouTube video."),patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i],attributes:{providerNameSlug:"youtube",responsive:!0}},{name:"facebook",title:"Facebook",icon:ur,keywords:[Object(ke.__)("social")],description:Object(ke.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:"Instagram",icon:mr,keywords:[Object(ke.__)("image"),Object(ke.__)("social")],description:Object(ke.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:"WordPress",icon:dr,keywords:[Object(ke.__)("post"),Object(ke.__)("blog")],description:Object(ke.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:"SoundCloud",icon:ar,keywords:[Object(ke.__)("music"),Object(ke.__)("audio")],description:Object(ke.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:"Spotify",icon:br,keywords:[Object(ke.__)("music"),Object(ke.__)("audio")],description:Object(ke.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:"Flickr",icon:pr,keywords:[Object(ke.__)("image")],description:Object(ke.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:"Vimeo",icon:gr,keywords:[Object(ke.__)("video")],description:Object(ke.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:"Animoto",icon:jr,description:Object(ke.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:"Cloudup",icon:or,description:Object(ke.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:"CollegeHumor",icon:cr,description:Object(ke.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:"Crowdsignal",icon:or,keywords:["polldaddy",Object(ke.__)("survey")],description:Object(ke.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:"Dailymotion",icon:yr,keywords:[Object(ke.__)("video")],description:Object(ke.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:"Imgur",icon:lr,description:Object(ke.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:"Issuu",icon:or,description:Object(ke.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:"Kickstarter",icon:or,description:Object(ke.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"mixcloud",title:"Mixcloud",icon:ar,keywords:[Object(ke.__)("music"),Object(ke.__)("audio")],description:Object(ke.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"reddit",title:"Reddit",icon:hr,description:Object(ke.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:"ReverbNation",icon:ar,description:Object(ke.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"screencast",title:"Screencast",icon:cr,description:Object(ke.__)("Embed Screencast content."),patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i],attributes:{providerNameSlug:"screencast",responsive:!0}},{name:"scribd",title:"Scribd",icon:or,description:Object(ke.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"slideshare",title:"Slideshare",icon:or,description:Object(ke.__)("Embed Slideshare content."),patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i],attributes:{providerNameSlug:"slideshare",responsive:!0}},{name:"smugmug",title:"SmugMug",icon:lr,description:Object(ke.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:"Speaker Deck",icon:or,description:Object(ke.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:"TikTok",icon:cr,keywords:[Object(ke.__)("video")],description:Object(ke.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:"TED",icon:cr,description:Object(ke.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:"Tumblr",icon:vr,keywords:[Object(ke.__)("social")],description:Object(ke.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(www\.)?tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:"VideoPress",icon:cr,keywords:[Object(ke.__)("video")],description:Object(ke.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:"WordPress.tv",icon:cr,description:Object(ke.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:"Amazon Kindle",icon:Or,keywords:[Object(ke.__)("ebook")],description:Object(ke.__)("Embed Amazon Kindle content."),patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i],attributes:{providerNameSlug:"amazon-kindle"}},{name:"pinterest",title:"Pinterest",icon:fr,keywords:[Object(ke.__)("social"),Object(ke.__)("bookmark")],description:Object(ke.__)("Embed Pinterest pins, boards, and profiles."),patterns:[/^https?:\/\/([a-z]{2}|www)\.pinterest\.com(\.(au|mx))?\/.*/i],attributes:{providerNameSlug:"pinterest"}},{name:"wolfram-cloud",title:"Wolfram Cloud",icon:_r,description:Object(ke.__)("Embed Wolfram Cloud notebook content."),patterns:[/^https?:\/\/(www\.)?wolframcloud\.com\/obj\/.+/i],attributes:{providerNameSlug:"wolfram-cloud",responsive:!0}}];Pr.forEach(e=>{e.isActive||(e.isActive=(e,t)=>e.providerNameSlug===t.providerNameSlug)});var zr=Pr;const{attributes:Ir}={apiVersion:2,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1},previewable:{type:"boolean",default:!0}},supports:{align:!0},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"};var Mr=[{attributes:Ir,save(e){let{attributes:{url:t,caption:n,type:r,providerNameSlug:o}}=e;if(!t)return null;const a=tt()("wp-block-embed",{["is-type-"+r]:r,["is-provider-"+o]:o});return Object(je.createElement)("figure",{className:a},`\n${t}\n`,!we.RichText.isEmpty(n)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",value:n}))}}];const Rr={apiVersion:2,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1},previewable:{type:"boolean",default:!0}},supports:{align:!0},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},{name:Lr}=Rr,Vr={icon:or,edit:Br,save:function(e){let{attributes:t}=e;const{url:n,caption:r,type:o,providerNameSlug:a}=t;if(!n)return null;const l=Le()("wp-block-embed",{["is-type-"+o]:o,["is-provider-"+a]:a,["wp-block-embed-"+a]:a});return Object(je.createElement)("figure",we.useBlockProps.save({className:l}),Object(je.createElement)("div",{className:"wp-block-embed__wrapper"},`\n${n}\n`),!we.RichText.isEmpty(r)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",value:r}))},transforms:Nr,variations:zr,deprecated:Mr};var Ar=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5z"}));var Hr=[{attributes:{id:{type:"number"},href:{type:"string"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save(e){let{attributes:t}=e;const{href:n,fileName:r,textLinkHref:o,textLinkTarget:a,showDownloadButton:l,downloadButtonText:c,displayPreview:i,previewHeight:s}=t,u=we.RichText.isEmpty(r)?Object(ke.__)("PDF embed"):Object(ke.sprintf)(Object(ke.__)("Embed of %s."),r);return n&&Object(je.createElement)("div",we.useBlockProps.save(),i&&Object(je.createElement)(je.Fragment,null,Object(je.createElement)("object",{className:"wp-block-file__embed",data:n,type:"application/pdf",style:{width:"100%",height:s+"px"},"aria-label":u})),!we.RichText.isEmpty(r)&&Object(je.createElement)("a",{href:o,target:a,rel:a?"noreferrer noopener":void 0},Object(je.createElement)(we.RichText.Content,{value:r})),l&&Object(je.createElement)("a",{href:n,className:"wp-block-file__button",download:!0},Object(je.createElement)(we.RichText.Content,{value:c})))}}],Fr=n("onLe");function Dr(e){let{hrefs:t,openInNewWindow:n,showDownloadButton:r,changeLinkDestinationOption:o,changeOpenInNewWindow:a,changeShowDownloadButton:l,displayPreview:c,changeDisplayPreview:i,previewHeight:s,changePreviewHeight:u}=e;const{href:m,textLinkHref:d,attachmentPage:b}=t;let p=[{value:m,label:Object(ke.__)("URL")}];return b&&(p=[{value:m,label:Object(ke.__)("Media file")},{value:b,label:Object(ke.__)("Attachment page")}]),Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.InspectorControls,null,m.endsWith(".pdf")&&Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("PDF settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Show inline embed"),help:c?Object(ke.__)("Note: Most phone and tablet browsers won't display embedded PDFs."):null,checked:!!c,onChange:i}),c&&Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Height in pixels"),min:Ur,max:Math.max(Wr,s),value:s,onChange:u})),Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Text link settings")},Object(je.createElement)(_e.SelectControl,{label:Object(ke.__)("Link to"),value:d,options:p,onChange:o}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Open in new tab"),checked:n,onChange:a})),Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Download button settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Show download button"),checked:r,onChange:l}))))}const Gr=()=>!(window.navigator.userAgent.indexOf("Mobi")>-1)&&(!(window.navigator.userAgent.indexOf("Android")>-1)&&(!(window.navigator.userAgent.indexOf("Macintosh")>-1&&window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>2)&&!((window.ActiveXObject||"ActiveXObject"in window)&&!qr("AcroPDF.PDF")&&!qr("PDF.PdfCtrl")))),qr=e=>{let t;try{t=new window.ActiveXObject(e)}catch(e){t=void 0}return t},Ur=200,Wr=2e3;function $r(e){let{text:t,disabled:n}=e;const{createNotice:r}=Object(ze.useDispatch)(Fr.store),o=Object(nt.useCopyToClipboard)(t,()=>{r("info",Object(ke.__)("Copied URL to clipboard."),{isDismissible:!0,type:"snackbar"})});return Object(je.createElement)(_e.ToolbarButton,{className:"components-clipboard-toolbar-button",ref:o,disabled:n},Object(ke.__)("Copy URL"))}var Zr=Object(_e.withNotices)((function(e){let{attributes:t,isSelected:n,setAttributes:r,noticeUI:o,noticeOperations:a,clientId:l}=e;const{id:c,fileName:i,href:s,textLinkHref:u,textLinkTarget:m,showDownloadButton:d,downloadButtonText:b,displayPreview:p,previewHeight:g}=t,[h,v]=Object(je.useState)(!1),{media:O,mediaUpload:j}=Object(ze.useSelect)(e=>({media:void 0===c?void 0:e(It.store).getMedia(c),mediaUpload:e(we.store).getSettings().mediaUpload}),[c]),{toggleSelection:y}=Object(ze.useDispatch)(we.store);function f(e){if(e&&e.url){v(!1);const t=e.url.endsWith(".pdf");r({href:e.url,fileName:e.title,textLinkHref:e.url,id:e.id,displayPreview:!!t||void 0,previewHeight:t?600:void 0})}}function _(e){v(!0),a.removeAllNotices(),a.createErrorNotice(e)}function k(e){r({downloadButtonText:e.replace(/<\/?a[^>]*>/g,"")})}Object(je.useEffect)(()=>{if(Object(Pe.isBlobURL)(s)){const e=Object(Pe.getBlobByURL)(s);j({filesList:[e],onFileChange:e=>{let[t]=e;return f(t)},onError:e=>{v(!0),a.createErrorNotice(e)}}),Object(Pe.revokeBlobURL)(s)}void 0===b&&k(Object(ke._x)("Download","button label"))},[]),Object(je.useEffect)(()=>{r({fileId:"wp-block-file--media-"+l})},[l]);const w=O&&O.link,E=Object(we.useBlockProps)({className:tt()(Object(Pe.isBlobURL)(s)&&Object(_e.__unstableGetAnimateClassName)({type:"loading"}),{"is-transient":Object(Pe.isBlobURL)(s)})}),C=Gr()&&p;return!s||h?Object(je.createElement)("div",E,Object(je.createElement)(we.MediaPlaceholder,{icon:Object(je.createElement)(we.BlockIcon,{icon:Ar}),labels:{title:Object(ke.__)("File"),instructions:Object(ke.__)("Upload a file or pick one from your media library.")},onSelect:f,notices:o,onError:_,accept:"*"})):Object(je.createElement)(je.Fragment,null,Object(je.createElement)(Dr,{hrefs:{href:s,textLinkHref:u,attachmentPage:w},openInNewWindow:!!m,showDownloadButton:d,changeLinkDestinationOption:function(e){r({textLinkHref:e})},changeOpenInNewWindow:function(e){r({textLinkTarget:!!e&&"_blank"})},changeShowDownloadButton:function(e){r({showDownloadButton:e})},displayPreview:p,changeDisplayPreview:function(e){r({displayPreview:e})},previewHeight:g,changePreviewHeight:function(e){const t=Math.max(parseInt(e,10),Ur);r({previewHeight:t})}}),Object(je.createElement)(we.BlockControls,{group:"other"},Object(je.createElement)(we.MediaReplaceFlow,{mediaId:c,mediaURL:s,accept:"*",onSelect:f,onError:_}),Object(je.createElement)($r,{text:s,disabled:Object(Pe.isBlobURL)(s)})),Object(je.createElement)("div",E,C&&Object(je.createElement)(_e.ResizableBox,{size:{height:g},minHeight:Ur,maxHeight:Wr,minWidth:"100%",grid:[10,10],enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:()=>y(!1),onResizeStop:function(e,t,n,o){y(!0);const a=parseInt(g+o.height,10);r({previewHeight:a})},showHandle:n},Object(je.createElement)("object",{className:"wp-block-file__preview",data:s,type:"application/pdf","aria-label":Object(ke.__)("Embed of the selected PDF file.")}),!n&&Object(je.createElement)("div",{className:"wp-block-file__preview-overlay"})),Object(je.createElement)("div",{className:"wp-block-file__content-wrapper"},Object(je.createElement)(we.RichText,{tagName:"a",value:i,placeholder:Object(ke.__)("Write file name…"),withoutInteractiveFormatting:!0,onChange:e=>r({fileName:e}),href:u}),d&&Object(je.createElement)("div",{className:"wp-block-file__button-richtext-wrapper"},Object(je.createElement)(we.RichText,{tagName:"div","aria-label":Object(ke.__)("Download button text"),className:"wp-block-file__button",value:b,withoutInteractiveFormatting:!0,placeholder:Object(ke.__)("Add text…"),onChange:e=>k(e)})))))}));var Kr=n("Mmq9");var Jr={from:[{type:"files",isMatch:e=>e.length>0,priority:15,transform:e=>{const t=[];return e.forEach(e=>{const n=Object(Pe.createBlobURL)(e);t.push(Object(Oe.createBlock)("core/file",{href:n,fileName:e.name,textLinkHref:n}))}),t}},{type:"block",blocks:["core/audio"],transform:e=>Object(Oe.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],transform:e=>Object(Oe.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],transform:e=>Object(Oe.createBlock)("core/file",{href:e.url,fileName:e.caption||Object(Kr.getFilename)(e.url),textLinkHref:e.url,id:e.id,anchor:e.anchor})}],to:[{type:"block",blocks:["core/audio"],isMatch:e=>{let{id:t}=e;if(!t)return!1;const{getMedia:n}=Object(ze.select)(It.store),r=n(t);return!!r&&Object(Me.includes)(r.mime_type,"audio")},transform:e=>Object(Oe.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],isMatch:e=>{let{id:t}=e;if(!t)return!1;const{getMedia:n}=Object(ze.select)(It.store),r=n(t);return!!r&&Object(Me.includes)(r.mime_type,"video")},transform:e=>Object(Oe.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],isMatch:e=>{let{id:t}=e;if(!t)return!1;const{getMedia:n}=Object(ze.select)(It.store),r=n(t);return!!r&&Object(Me.includes)(r.mime_type,"image")},transform:e=>Object(Oe.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}]};const Qr={apiVersion:2,name:"core/file",title:"File",category:"media",description:"Add a link to a downloadable file.",keywords:["document","pdf","download"],textdomain:"default",attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},viewScript:"file:./view.min.js",editorStyle:"wp-block-file-editor",style:"wp-block-file"},{name:Yr}=Qr,Xr={icon:Ar,example:{attributes:{href:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg",fileName:Object(ke._x)("Armstrong_Small_Step","Name of the file")}},transforms:Jr,deprecated:Hr,edit:Zr,save:function(e){let{attributes:t}=e;const{href:n,fileId:r,fileName:o,textLinkHref:a,textLinkTarget:l,showDownloadButton:c,downloadButtonText:i,displayPreview:s,previewHeight:u}=t,m=we.RichText.isEmpty(o)?Object(ke.__)("PDF embed"):Object(ke.sprintf)(Object(ke.__)("Embed of %s."),o);return n&&Object(je.createElement)("div",we.useBlockProps.save(),s&&Object(je.createElement)(je.Fragment,null,Object(je.createElement)("object",{className:"wp-block-file__embed",data:n,type:"application/pdf",style:{width:"100%",height:u+"px"},"aria-label":m})),!we.RichText.isEmpty(o)&&Object(je.createElement)("a",{id:r,href:a,target:l,rel:l?"noreferrer noopener":void 0},Object(je.createElement)(we.RichText.Content,{value:o})),c&&Object(je.createElement)("a",{href:n,className:"wp-block-file__button",download:!0,"aria-describedby":r},Object(je.createElement)(we.RichText.Content,{value:i})))}};var eo=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8h-1.5zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zM4.5 4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1V12l-2.3-1.7c-.3-.2-.6-.2-.9 0l-2.9 2.1L8 11.3c-.2-.1-.5-.1-.7 0l-2.9 1.5V4.6zm0 11.8v-1.8l3.2-1.7 2.4 1.2c.2.1.5.1.8-.1l2.8-2 2.8 2v2.5c0 .1-.1.1-.1.1H4.6c0-.1-.1-.2-.1-.2z"}));function to(e){return Math.min(3,e.images.length)}var no=[{attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},sizeSlug:{type:"string",default:"large"}},supports:{align:!0},isEligible(e){let{linkTo:t}=e;return!t||"attachment"===t||"media"===t},migrate(e){let t=e.linkTo;return e.linkTo?"attachment"===e.linkTo?t="post":"media"===e.linkTo&&(t="file"):t="none",{...e,linkTo:t}},save(e){let{attributes:t}=e;const{images:n,columns:r=to(t),imageCrop:o,caption:a,linkTo:l}=t;return Object(je.createElement)("figure",{className:`columns-${r} ${o?"is-cropped":""}`},Object(je.createElement)("ul",{className:"blocks-gallery-grid"},n.map(e=>{let t;switch(l){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const n=Object(je.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-"+e.id:null});return Object(je.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(je.createElement)("figure",null,t?Object(je.createElement)("a",{href:t},n):n,!we.RichText.isEmpty(e.caption)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))})),!we.RichText.isEmpty(a)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))}},{attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},link:{source:"attribute",selector:"img",attribute:"data-link"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",default:[]},columns:{type:"number"},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},isEligible(e){let{ids:t}=e;return t&&t.some(e=>"string"==typeof e)},migrate:e=>({...e,ids:Object(Me.map)(e.ids,e=>{const t=parseInt(e,10);return Number.isInteger(t)?t:null})}),save(e){let{attributes:t}=e;const{images:n,columns:r=to(t),imageCrop:o,caption:a,linkTo:l}=t;return Object(je.createElement)("figure",{className:`columns-${r} ${o?"is-cropped":""}`},Object(je.createElement)("ul",{className:"blocks-gallery-grid"},n.map(e=>{let t;switch(l){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const n=Object(je.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-"+e.id:null});return Object(je.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(je.createElement)("figure",null,t?Object(je.createElement)("a",{href:t},n):n,!we.RichText.isEmpty(e.caption)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))})),!we.RichText.isEmpty(a)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},save(e){let{attributes:t}=e;const{images:n,columns:r=to(t),imageCrop:o,linkTo:a}=t;return Object(je.createElement)("ul",{className:`columns-${r} ${o?"is-cropped":""}`},n.map(e=>{let t;switch(a){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const n=Object(je.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-"+e.id:null});return Object(je.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(je.createElement)("figure",null,t?Object(je.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",value:e.caption})))}))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible(e){let{images:t,ids:n}=e;return t&&t.length>0&&(!n&&t||n&&t&&n.length!==t.length||Object(Me.some)(t,(e,t)=>!e&&null!==n[t]||parseInt(e,10)!==n[t]))},migrate:e=>({...e,ids:Object(Me.map)(e.images,e=>{let{id:t}=e;return t?parseInt(t,10):null})}),supports:{align:!0},save(e){let{attributes:t}=e;const{images:n,columns:r=to(t),imageCrop:o,linkTo:a}=t;return Object(je.createElement)("ul",{className:`columns-${r} ${o?"is-cropped":""}`},n.map(e=>{let t;switch(a){case"media":t=e.url;break;case"attachment":t=e.link}const n=Object(je.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-"+e.id:null});return Object(je.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(je.createElement)("figure",null,t?Object(je.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",value:e.caption})))}))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"div.wp-block-gallery figure.blocks-gallery-image img",query:{url:{source:"attribute",attribute:"src"},alt:{source:"attribute",attribute:"alt",default:""},id:{source:"attribute",attribute:"data-id"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},align:{type:"string",default:"none"}},supports:{align:!0},save(e){let{attributes:t}=e;const{images:n,columns:r=to(t),align:o,imageCrop:a,linkTo:l}=t,c=tt()("columns-"+r,{alignnone:"none"===o,"is-cropped":a});return Object(je.createElement)("div",{className:c},n.map(e=>{let t;switch(l){case"media":t=e.url;break;case"attachment":t=e.link}const n=Object(je.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(je.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(je.createElement)("a",{href:t},n):n)}))}}],ro=n("KEfo");const oo=Object(je.createElement)(we.BlockIcon,{icon:eo});const ao=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"large";const n=Object(Me.pick)(e,["alt","id","link","caption"]);n.url=Object(Me.get)(e,["sizes",t,"url"])||Object(Me.get)(e,["media_details","sizes",t,"source_url"])||e.url;const r=Object(Me.get)(e,["sizes","full","url"])||Object(Me.get)(e,["media_details","sizes","full","source_url"]);return r&&(n.fullUrl=r),n},lo=["noreferrer","noopener"],co=["image"];function io(e,t){switch(t){case"media":return{href:(null==e?void 0:e.source_url)||(null==e?void 0:e.url),linkDestination:"media"};case"attachment":return{href:null==e?void 0:e.link,linkDestination:"attachment"};case"none":return{href:void 0,linkDestination:"none"}}return{}}function so(e,t){let{rel:n}=t;const r=e?"_blank":void 0;let o;return o=r||n?function(e){let t=e;return void 0===e||Object(Me.isEmpty)(t)||Object(Me.isEmpty)(t)||(Object(Me.each)(lo,e=>{const n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")}),t!==e&&(t=t.trim()),Object(Me.isEmpty)(t)&&(t=void 0)),t}(n):void 0,{linkTarget:r,rel:o}}const uo=["core/image"];function mo(e){let{isHidden:t,captionFocused:n,onFocusCaption:r,className:o,value:a,placeholder:l,tagName:c,captionRef:i,...s}=e;return t?Object(je.createElement)(_e.VisuallyHidden,Object(mt.a)({as:we.RichText},s)):Object(je.createElement)(we.RichText,Object(mt.a)({ref:i,value:a,placeholder:l,className:o,tagName:c,isSelected:n,onClick:r},s))}var bo=e=>{const{attributes:t,isSelected:n,setAttributes:r,mediaPlaceholder:o,insertBlocksAfter:a,blockProps:l}=e,{align:c,columns:i,caption:s,imageCrop:u}=t,{children:m,...d}=Object(we.useInnerBlocksProps)(l,{allowedBlocks:uo,orientation:"horizontal",renderAppender:!1,__experimentalLayout:{type:"default",alignments:[]}}),[b,p]=Object(je.useState)(!1);return Object(je.useEffect)(()=>{n||p(!1)},[n]),Object(je.createElement)("figure",Object(mt.a)({},d,{className:tt()(l.className,"blocks-gallery-grid",{["align"+c]:c,["columns-"+i]:void 0!==i,"columns-default":void 0===i,"is-cropped":u})}),m,Object(je.createElement)(ye.View,{className:"blocks-gallery-media-placeholder-wrapper",onClick:function(){b&&p(!1)}},o),Object(je.createElement)(mo,{isHidden:!n&&we.RichText.isEmpty(s),captionFocused:b,onFocusCaption:function(){b||p(!0)},tagName:"figcaption",className:"blocks-gallery-caption","aria-label":Object(ke.__)("Gallery caption text"),placeholder:Object(ke.__)("Write gallery caption…"),value:s,onChange:e=>r({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>a(Object(Oe.createBlock)("core/paragraph"))}))};function po(e,t,n){return Object(je.useMemo)(()=>function(){if(!e||0===e.length)return;const{imageSizes:r}=n();let o={};t&&(o=e.reduce((e,t)=>{if(!t.id)return e;const n=r.reduce((e,n)=>{const r=Object(Me.get)(t,["sizes",n.slug,"url"]),o=Object(Me.get)(t,["media_details","sizes",n.slug,"source_url"]);return{...e,[n.slug]:r||o}},{});return{...e,[parseInt(t.id,10)]:n}},{}));return r.filter(e=>{let{slug:t}=e;return Object(Me.some)(o,e=>e[t])}).map(e=>{let{name:t,slug:n}=e;return{value:n,label:t}})}(),[e,t])}function go(e,t){const[n,r]=Object(je.useState)([]);return Object(je.useMemo)(()=>function(){let o=!1;const a=n.filter(t=>e.find(e=>t.clientId===e.clientId));a.length<n.length&&(o=!0);e.forEach(e=>{e.fromSavedContent&&!a.find(t=>t.id===e.id)&&(o=!0,a.push(e))});const l=e.filter(e=>!a.find(t=>e.clientId&&t.clientId===e.clientId)&&(null==t?void 0:t.find(t=>t.id===e.id))&&!e.fromSavedConent);(o||(null==l?void 0:l.length)>0)&&r([...a,...l]);return l.length>0?l:null}(),[e,t])}var ho=n("U60i");const vo=[{value:"attachment",label:Object(ke.__)("Attachment Page")},{value:"media",label:Object(ke.__)("Media File")},{value:"none",label:Object(ke._x)("None","Media item link option")}],Oo=["image"],jo=je.Platform.isNative?Object(ke.__)("ADD MEDIA"):Object(ke.__)("Drag images, upload new ones or select files from your library."),yo=je.Platform.isNative?{type:"stepper"}:{};var fo=Object(nt.compose)([_e.withNotices,Object(ro.withViewportMatch)({isNarrow:"< small"})])((function(e){const{setAttributes:t,attributes:n,className:r,clientId:o,noticeOperations:a,isSelected:l,noticeUI:c,insertBlocksAfter:i}=e,{columns:s,imageCrop:u,linkTarget:m,linkTo:d,shortCodeTransforms:b,sizeSlug:p}=n,{__unstableMarkNextChangeAsNotPersistent:g,replaceInnerBlocks:h,updateBlockAttributes:v}=Object(ze.useDispatch)(we.store),{createSuccessNotice:O}=Object(ze.useDispatch)(Fr.store),{getBlock:j,getSettings:y,preferredStyle:f}=Object(ze.useSelect)(e=>{var t;const n=e(we.store).getSettings().__experimentalPreferredStyleVariations;return{getBlock:e(we.store).getBlock,getSettings:e(we.store).getSettings,preferredStyle:null==n||null===(t=n.value)||void 0===t?void 0:t["core/image"]}},[]),_=Object(ze.useSelect)(e=>{var t;return null===(t=e(we.store).getBlock(o))||void 0===t?void 0:t.innerBlocks},[o]),k=Object(je.useMemo)(()=>null==_?void 0:_.map(e=>({clientId:e.clientId,id:e.attributes.id,url:e.attributes.url,attributes:e.attributes,fromSavedContent:Boolean(e.originalContent)})),[_]),w=function(e){const[t,n]=Object(je.useState)([]),r=Object(ze.useSelect)(n=>{if(null==e||!e.length)return t;const r=e.map(e=>e.attributes.id).filter(e=>void 0!==e);return 0===r.length?t:n(It.store).getMediaItems({include:r.join(","),per_page:-1})},[e]);return(null==r?void 0:r.length)!==(null==t?void 0:t.length)||null!=r&&r.some(e=>!t.find(t=>t.id===e.id))?(n(r),r):t}(_),E=go(k,w);!function(e){const{createWarningNotice:t}=Object(ze.useDispatch)(Fr.store),{toggleFeature:n}=Object(ze.useDispatch)(ho.i);Object(ze.useSelect)(e=>{const{isFeatureActive:t}=e(ho.i);return t("core/edit-post","mobileGalleryWarning")},[])&&e&&(t(Object(ke.__)("Editing this Gallery in the WordPress mobile app requires version 18.2 or higher."),{type:"snackbar",explicitDismiss:!0}),n("core/edit-post","mobileGalleryWarning"))}(E),Object(je.useEffect)(()=>{null==E||E.forEach(e=>{v(e.clientId,{...S(!1,e.attributes),id:e.id,align:void 0})})},[E]);const C=function(e){const t=Object(ze.useSelect)(t=>{if(!e||0===e.length)return;const n=t(It.store).getMedia;return e.map(e=>{const t=n(e.id);if(t)return{id:t.id,type:"image",url:t.source_url,mime:t.mime_type,alt:t.alt_text,link:t.link}})},[e]);if(t)return Object(Me.every)(t,e=>e&&e.url)?t:void 0}(b);Object(je.useEffect)(()=>{b&&C&&(T(C),t({shortCodeTransforms:void 0}))},[b,C]);const x=po(w,l,y);function S(e,t){if(e)return e.attributes;let r;return r=t.className&&""!==t.className?t.className:f?"is-style-"+f:void 0,{...ao(t,p),...io(t,d),...so(m,n),className:r,sizeSlug:p}}function B(e){var t;return Oo.some(t=>{var n;return 0===(null===(n=e.type)||void 0===n?void 0:n.indexOf(t))})||0===(null===(t=e.url)||void 0===t?void 0:t.indexOf("blob:"))}function T(e){const t="[object FileList]"===Object.prototype.toString.call(e),n=t?Array.from(e).map(e=>e.url?e:ao({url:Object(Pe.createBlobURL)(e)})):e;n.every(B)||(a.removeAllNotices(),a.createErrorNotice(Object(ke.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file"}));const r=n.filter(e=>e.url||B(e)).map(e=>e.url?e:ao({url:Object(Pe.createBlobURL)(e)})),l=r.reduce((e,t,n)=>(e[t.id]=n,e),{}),c=t?_:_.filter(e=>r.find(t=>t.id===e.attributes.id)),i=r.filter(e=>!c.find(t=>e.id===t.attributes.id)).map(e=>Object(Oe.createBlock)("core/image",{id:e.id,url:e.url,caption:e.caption,alt:e.alt}));h(o,Object(Me.concat)(c,i).sort((e,t)=>l[e.attributes.id]-l[t.attributes.id]))}Object(je.useEffect)(()=>{var e,n,r,o,a,l;d||(g(),t({linkTo:(null===(e=window)||void 0===e||null===(n=e.wp)||void 0===n||null===(r=n.media)||void 0===r||null===(o=r.view)||void 0===o||null===(a=o.settings)||void 0===a||null===(l=a.defaultProps)||void 0===l?void 0:l.link)||"none"}))},[d]);const N=!!k.length,P=N&&k.some(e=>!!e.id),z=k.some(e=>{var t;return!e.id&&0===(null===(t=e.url)||void 0===t?void 0:t.indexOf("blob:"))}),I=Object(je.createElement)(we.MediaPlaceholder,{addToGallery:P,handleUpload:!1,isAppender:N,disableMediaButtons:N&&!l||z,icon:!N&&oo,labels:{title:!N&&Object(ke.__)("Gallery"),instructions:!N&&jo},onSelect:T,accept:"image/*",allowedTypes:Oo,multiple:!0,value:P?k:{},onError:function(e){a.removeAllNotices(),a.createErrorNotice(e)},notices:N?void 0:c}),M=Object(we.useBlockProps)({className:tt()(r,"has-nested-images")});if(!N)return Object(je.createElement)(ye.View,M,I);const R=d&&"none"!==d;return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Gallery settings")},k.length>1&&Object(je.createElement)(_e.RangeControl,Object(mt.a)({label:Object(ke.__)("Columns"),value:s||(L=k.length,L?Math.min(3,L):3),onChange:function(e){t({columns:e})},min:1,max:Math.min(8,k.length)},yo,{required:!0})),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Crop images"),checked:!!u,onChange:function(){t({imageCrop:!u})},help:function(e){return e?Object(ke.__)("Thumbnails are cropped to align."):Object(ke.__)("Thumbnails are not cropped.")}}),Object(je.createElement)(_e.SelectControl,{label:Object(ke.__)("Link to"),value:d,onChange:function(e){t({linkTo:e});const n={},r=[];j(o).innerBlocks.forEach(t=>{r.push(t.clientId);const o=t.attributes.id?Object(Me.find)(w,{id:t.attributes.id}):null;n[t.clientId]=io(o,e)}),v(r,n,!0);const a=[...vo].find(t=>t.value===e);O(Object(ke.sprintf)(Object(ke.__)("All gallery image links updated to: %s"),a.label),{id:"gallery-attributes-linkTo",type:"snackbar"})},options:vo,hideCancelButton:!0}),R&&Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Open in new tab"),checked:"_blank"===m,onChange:function(e){const n=e?"_blank":void 0;t({linkTarget:n});const r={},a=[];j(o).innerBlocks.forEach(e=>{a.push(e.clientId),r[e.clientId]=so(n,e.attributes)}),v(a,r,!0);const l=e?Object(ke.__)("All gallery images updated to open in new tab"):Object(ke.__)("All gallery images updated to not open in new tab");O(l,{id:"gallery-attributes-openInNewTab",type:"snackbar"})}}),(null==x?void 0:x.length)>0&&Object(je.createElement)(_e.SelectControl,{label:Object(ke.__)("Image size"),value:p,options:x,onChange:function(e){t({sizeSlug:e});const n={},r=[];j(o).innerBlocks.forEach(t=>{r.push(t.clientId);const o=t.attributes.id?Object(Me.find)(w,{id:t.attributes.id}):null;n[t.clientId]=function(e,t){const n=Object(Me.get)(e,["media_details","sizes",t,"source_url"]);return n?{url:n,width:void 0,height:void 0,sizeSlug:t}:{}}(o,e)}),v(r,n,!0);const a=x.find(t=>t.value===e);O(Object(ke.sprintf)(Object(ke.__)("All gallery image sizes updated to: %s"),a.label),{id:"gallery-attributes-sizeSlug",type:"snackbar"})},hideCancelButton:!0}),je.Platform.isWeb&&!x&&Object(je.createElement)(_e.BaseControl,{className:"gallery-image-sizes"},Object(je.createElement)(_e.BaseControl.VisualLabel,null,Object(ke.__)("Image size")),Object(je.createElement)(ye.View,{className:"gallery-image-sizes__loading"},Object(je.createElement)(_e.Spinner,null),Object(ke.__)("Loading options…"))))),c,Object(je.createElement)(bo,Object(mt.a)({},e,{images:k,mediaPlaceholder:I,blockProps:M,insertBlocksAfter:i})));var L}));const _o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"large";const n=Object(Me.pick)(e,["alt","id","link","caption"]);n.url=Object(Me.get)(e,["sizes",t,"url"])||Object(Me.get)(e,["media_details","sizes",t,"source_url"])||e.url;const r=Object(Me.get)(e,["sizes","full","url"])||Object(Me.get)(e,["media_details","sizes","full","source_url"]);return r&&(n.fullUrl=r),n};var ko=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),wo=n("2gm7"),Eo=n("1iEr"),Co=n("bWcr");class xo extends je.Component{constructor(){super(...arguments),this.onSelectImage=this.onSelectImage.bind(this),this.onRemoveImage=this.onRemoveImage.bind(this),this.bindContainer=this.bindContainer.bind(this),this.onEdit=this.onEdit.bind(this),this.onSelectImageFromLibrary=this.onSelectImageFromLibrary.bind(this),this.onSelectCustomURL=this.onSelectCustomURL.bind(this),this.state={isEditing:!1}}bindContainer(e){this.container=e}onSelectImage(){this.props.isSelected||this.props.onSelect()}onRemoveImage(e){this.container===this.container.ownerDocument.activeElement&&this.props.isSelected&&-1!==[dt.BACKSPACE,dt.DELETE].indexOf(e.keyCode)&&(e.preventDefault(),this.props.onRemove())}onEdit(){this.setState({isEditing:!0})}componentDidUpdate(){const{image:e,url:t,__unstableMarkNextChangeAsNotPersistent:n}=this.props;e&&!t&&(n(),this.props.setAttributes({url:e.source_url,alt:e.alt_text}))}deselectOnBlur(){this.props.onDeselect()}onSelectImageFromLibrary(e){const{setAttributes:t,id:n,url:r,alt:o,caption:a,sizeSlug:l}=this.props;if(!e||!e.url)return;let c=_o(e,l);((e,t)=>!e&&Object(Pe.isBlobURL)(t))(n,r)&&o&&(c=Object(Me.omit)(c,["alt"])),a&&!Object(Me.get)(c,["caption"])&&(c=Object(Me.omit)(c,["caption"])),t(c),this.setState({isEditing:!1})}onSelectCustomURL(e){const{setAttributes:t,url:n}=this.props;e!==n&&(t({url:e,id:void 0}),this.setState({isEditing:!1}))}render(){const{url:e,alt:t,id:n,linkTo:r,link:o,isFirstItem:a,isLastItem:l,isSelected:c,caption:i,onRemove:s,onMoveForward:u,onMoveBackward:m,setAttributes:d,"aria-label":b}=this.props,{isEditing:p}=this.state;let g;switch(r){case"file":g=e;break;case"post":g=o}const h=Object(je.createElement)(je.Fragment,null,Object(je.createElement)("img",{src:e,alt:t,"data-id":n,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":b,ref:this.bindContainer}),Object(Pe.isBlobURL)(e)&&Object(je.createElement)(_e.Spinner,null)),v=tt()({"is-selected":c,"is-transient":Object(Pe.isBlobURL)(e)});return Object(je.createElement)("figure",{className:v,onClick:this.onSelectImage,onFocus:this.onSelectImage},!p&&(g?Object(je.createElement)("a",{href:g},h):h),p&&Object(je.createElement)(we.MediaPlaceholder,{labels:{title:Object(ke.__)("Edit gallery image")},icon:ko,onSelect:this.onSelectImageFromLibrary,onSelectURL:this.onSelectCustomURL,accept:"image/*",allowedTypes:["image"],value:{id:n,src:e}}),Object(je.createElement)(_e.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-left"},Object(je.createElement)(_e.Button,{icon:wo.a,onClick:a?void 0:m,label:Object(ke.__)("Move image backward"),"aria-disabled":a,disabled:!c}),Object(je.createElement)(_e.Button,{icon:Eo.a,onClick:l?void 0:u,label:Object(ke.__)("Move image forward"),"aria-disabled":l,disabled:!c})),Object(je.createElement)(_e.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-right"},Object(je.createElement)(_e.Button,{icon:tr.a,onClick:this.onEdit,label:Object(ke.__)("Replace image"),disabled:!c}),Object(je.createElement)(_e.Button,{icon:Co.a,onClick:s,label:Object(ke.__)("Remove image"),disabled:!c})),!p&&(c||i)&&Object(je.createElement)(we.RichText,{tagName:"figcaption","aria-label":Object(ke.__)("Image caption text"),placeholder:c?Object(ke.__)("Add caption"):null,value:i,onChange:e=>d({caption:e}),inlineToolbar:!0}))}}var So=Object(nt.compose)([Object(ze.withSelect)((e,t)=>{const{getMedia:n}=e(It.store),{id:r}=t;return{image:r?n(parseInt(r,10)):null}}),Object(ze.withDispatch)(e=>{const{__unstableMarkNextChangeAsNotPersistent:t}=e(we.store);return{__unstableMarkNextChangeAsNotPersistent:t}})])(xo);function Bo(e){let{isHidden:t,...n}=e;return t?Object(je.createElement)(_e.VisuallyHidden,Object(mt.a)({as:we.RichText},n)):Object(je.createElement)(we.RichText,n)}var To=e=>{const{attributes:t,isSelected:n,setAttributes:r,selectedImage:o,mediaPlaceholder:a,onMoveBackward:l,onMoveForward:c,onRemoveImage:i,onSelectImage:s,onDeselectImage:u,onSetImageAttributes:m,insertBlocksAfter:d,blockProps:b}=e,{align:p,columns:g=to(t),caption:h,imageCrop:v,images:O}=t;return Object(je.createElement)("figure",Object(mt.a)({},b,{className:tt()(b.className,{["align"+p]:p,["columns-"+g]:g,"is-cropped":v})}),Object(je.createElement)("ul",{className:"blocks-gallery-grid"},O.map((e,r)=>{const a=Object(ke.sprintf)(Object(ke.__)("image %1$d of %2$d in gallery"),r+1,O.length);return Object(je.createElement)("li",{className:"blocks-gallery-item",key:e.id?`${e.id}-${r}`:e.url},Object(je.createElement)(So,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===r,isLastItem:r+1===O.length,isSelected:n&&o===r,onMoveBackward:l(r),onMoveForward:c(r),onRemove:i(r),onSelect:s(r),onDeselect:u(r),setAttributes:e=>m(r,e),caption:e.caption,"aria-label":a,sizeSlug:t.sizeSlug}))})),a,Object(je.createElement)(Bo,{isHidden:!n&&we.RichText.isEmpty(h),tagName:"figcaption",className:"blocks-gallery-caption","aria-label":Object(ke.__)("Gallery caption text"),placeholder:Object(ke.__)("Write gallery caption…"),value:h,onChange:e=>r({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>d(Object(Oe.createBlock)("core/paragraph"))}))};const No=e=>{let{clientId:t,getBlock:n,replaceBlocks:r}=e;return()=>{let e;const{attributes:{sizeSlug:o,linkTo:a,images:l,caption:c}}=n(t);switch(a){case"post":e="post";break;case"file":e="file";break;default:e="none"}const i=l.map(t=>Object(Oe.createBlock)("core/image",{id:parseInt(t.id,10),url:t.url,alt:t.alt,caption:t.caption,linkDestination:e}));r(t,Object(Oe.createBlock)("core/gallery",{sizeSlug:o,linkTo:e,caption:c},i))}};function Po(e){let{onClose:t,clientId:n}=e;const{getBlock:r}=Object(ze.useSelect)(we.store),{replaceBlocks:o}=Object(ze.useDispatch)(we.store);return Object(je.createElement)(_e.Modal,{closeLabel:Object(ke.__)("Close"),onRequestClose:t,title:Object(ke.__)("Update gallery"),className:"wp-block-update-gallery-modal",aria:{describedby:"wp-block-update-gallery-modal__description"}},Object(je.createElement)("p",{id:"wp-block-update-gallery-modal__description"},Object(ke.__)("Updating to the new format adds the ability to use custom links or styles on individual images in the gallery, and makes it easier to add or move them around.")),Object(je.createElement)("div",{className:"wp-block-update-gallery-modal-buttons"},Object(je.createElement)(_e.Button,{isTertiary:!0,onClick:t},Object(ke.__)("Cancel")),Object(je.createElement)(_e.Button,{isPrimary:!0,onClick:No({replaceBlocks:o,getBlock:r,clientId:n,createBlock:Oe.createBlock})},Object(ke.__)("Update"))))}const zo=[{value:"post",label:Object(ke.__)("Attachment Page")},{value:"file",label:Object(ke.__)("Media File")},{value:"none",label:Object(ke.__)("None")}],Io=["image"],Mo=je.Platform.select({web:Object(ke.__)("Drag images, upload new ones or select files from your library."),native:Object(ke.__)("ADD MEDIA")}),Ro=je.Platform.select({web:{},native:{type:"stepper"}});var Lo=Object(nt.compose)([_e.withNotices,Object(ro.withViewportMatch)({isNarrow:"< small"})])((function(e){const{attributes:t,clientId:n,isSelected:r,noticeUI:o,noticeOperations:a,onFocus:l}=e,{columns:c=to(t),imageCrop:i,images:s,linkTo:u,sizeSlug:m}=t,[d,b]=Object(je.useState)(),[p,g]=Object(je.useState)(),{__unstableMarkNextChangeAsNotPersistent:h}=Object(ze.useDispatch)(we.store),{imageSizes:v,mediaUpload:O,getMedia:j,wasBlockJustInserted:y,__unstableGalleryWithImageBlocks:f}=Object(ze.useSelect)(e=>{const t=e(we.store).getSettings();return{__unstableGalleryWithImageBlocks:t.__unstableGalleryWithImageBlocks,imageSizes:t.imageSizes,mediaUpload:t.mediaUpload,getMedia:e(It.store).getMedia,wasBlockJustInserted:e(we.store).wasBlockJustInserted(n,"inserter_menu")}}),_=Object(je.useMemo)(()=>r?Object(Me.reduce)(t.ids,(e,t)=>{if(!t)return e;const n=j(t),r=Object(Me.reduce)(v,(e,t)=>{const r=Object(Me.get)(n,["sizes",t.slug,"url"]),o=Object(Me.get)(n,["media_details","sizes",t.slug,"source_url"]);return{...e,[t.slug]:r||o}},{});return{...e,[parseInt(t,10)]:r}},{}):{},[r,t.ids,v]);function k(t){if(t.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');t.images&&(t={...t,ids:Object(Me.map)(t.images,e=>{let{id:t}=e;return parseInt(t,10)})}),e.setAttributes(t)}function w(e,t){const n=[...s];n.splice(t,1,s[e]),n.splice(e,1,s[t]),b(t),k({images:n})}function E(e){const t=Object(Me.toString)(e.id),n=Object(Me.find)(s,{id:t}),r=n?n.caption:e.caption;if(!p)return r;const o=Object(Me.find)(p,{id:t});return o&&o.caption!==e.caption?e.caption:r}function C(e){g(e.map(e=>({id:Object(Me.toString)(e.id),caption:e.caption}))),k({images:e.map(e=>({..._o(e,m),caption:E(e),id:Object(Me.toString)(e.id)})),columns:t.columns?Math.min(e.length,t.columns):t.columns})}Object(je.useEffect)(()=>{if("web"===je.Platform.OS&&s&&s.length>0&&Object(Me.every)(s,e=>{let{url:t}=e;return Object(Pe.isBlobURL)(t)})){const e=Object(Me.map)(s,e=>{let{url:t}=e;return Object(Pe.getBlobByURL)(t)});Object(Me.forEach)(s,e=>{let{url:t}=e;return Object(Pe.revokeBlobURL)(t)}),O({filesList:e,onFileChange:C,allowedTypes:["image"]})}},[]),Object(je.useEffect)(()=>{r||b()},[r]),Object(je.useEffect)(()=>{var e,t,n,r,o,a;u||(h(),k({linkTo:(null===(e=window)||void 0===e||null===(t=e.wp)||void 0===t||null===(n=t.media)||void 0===n||null===(r=n.view)||void 0===r||null===(o=r.settings)||void 0===o||null===(a=o.defaultProps)||void 0===a?void 0:a.link)||"none"}))},[u]);const x=!!s.length,S=x&&s.some(e=>!!e.id),B=Object(je.createElement)(we.MediaPlaceholder,{addToGallery:S,isAppender:x,disableMediaButtons:x&&!r,icon:!x&&oo,labels:{title:!x&&Object(ke.__)("Gallery"),instructions:!x&&Mo},onSelect:C,accept:"image/*",allowedTypes:Io,multiple:!0,value:S?s:{},onError:function(e){a.removeAllNotices(),a.createErrorNotice(e)},notices:x?void 0:o,onFocus:l,autoOpenMediaUpload:!x&&r&&y}),[T,N]=Object(je.useState)(!1),P=Object(we.useBlockProps)();if(!x)return Object(je.createElement)(ye.View,P,B);const z=Object(Me.map)(Object(Me.filter)(v,e=>{let{slug:t}=e;return Object(Me.some)(_,e=>e[t])}),e=>{let{name:t,slug:n}=e;return{value:n,label:t}}),I=x&&!Object(Me.isEmpty)(z);return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Gallery settings")},s.length>1&&Object(je.createElement)(_e.RangeControl,Object(mt.a)({label:Object(ke.__)("Columns"),value:c,onChange:function(e){k({columns:e})},min:1,max:Math.min(8,s.length)},Ro,{required:!0})),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Crop images"),checked:!!i,onChange:function(){k({imageCrop:!i})},help:function(e){return e?Object(ke.__)("Thumbnails are cropped to align."):Object(ke.__)("Thumbnails are not cropped.")}}),Object(je.createElement)(_e.SelectControl,{label:Object(ke.__)("Link to"),value:u,onChange:function(e){k({linkTo:e})},options:zo,hideCancelButton:!0}),I&&Object(je.createElement)(_e.SelectControl,{label:Object(ke.__)("Image size"),value:m,options:z,onChange:function(e){k({images:Object(Me.map)(s,t=>{if(!t.id)return t;const n=Object(Me.get)(_,[parseInt(t.id,10),e]);return{...t,...n&&{url:n}}}),sizeSlug:e})},hideCancelButton:!0}))),je.Platform.isWeb&&f&&Object(je.createElement)(we.BlockControls,{group:"other"},Object(je.createElement)(_e.ToolbarButton,{onClick:()=>N(!0),title:Object(ke.__)("Update"),label:Object(ke.__)("Update to the new gallery format")},Object(ke.__)("Update"))),je.Platform.isWeb&&T&&Object(je.createElement)(Po,{onClose:()=>N(!1),clientId:n}),o,Object(je.createElement)(To,Object(mt.a)({},e,{selectedImage:d,mediaPlaceholder:B,onMoveBackward:function(e){return()=>{0!==e&&w(e,e-1)}},onMoveForward:function(e){return()=>{e!==s.length-1&&w(e,e+1)}},onRemoveImage:function(e){return()=>{const n=Object(Me.filter)(s,(t,n)=>e!==n);b(),k({images:n,columns:t.columns?Math.min(n.length,t.columns):t.columns})}},onSelectImage:function(e){return()=>{b(e)}},onDeselectImage:function(){return()=>{b()}},onSetImageAttributes:function(e,t){s[e]&&k({images:[...s.slice(0,e),{...s[e],...t},...s.slice(e+1)]})},blockProps:P,onFocusGalleryCaption:function(){b()}})))}));var Vo=n("g56x");const Ao=e=>e?e.split(",").map(e=>parseInt(e,10)):[];Object(Vo.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-to",(function(e){var t;if(Object(ze.select)(we.store).getSettings().__unstableGalleryWithImageBlocks&&"core/gallery"===e.name&&(null===(t=e.attributes)||void 0===t?void 0:t.images.length)>0){const t=e.attributes.images.map(t=>{let{url:n,id:r,alt:o}=t;return Object(Oe.createBlock)("core/image",{url:n,id:r?parseInt(r,10):null,alt:o,sizeSlug:e.attributes.sizeSlug,linkDestination:e.attributes.linkDestination})});delete e.attributes.ids,delete e.attributes.images,e.innerBlocks=t}return e})),Object(Vo.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-from",(function(e,t){const n=(Array.isArray(t)?t:[t]).find(t=>{var n;return"core/gallery"===t.name&&t.innerBlocks.length>0&&!(null!==(n=t.attributes.images)&&void 0!==n&&n.length)>0&&!e.name.includes("core/")});if(n){const e=n.innerBlocks.map(e=>{let{attributes:{url:t,id:n,alt:r}}=e;return{url:t,id:n?parseInt(n,10):null,alt:r}}),t=e.map(e=>{let{id:t}=e;return t});n.attributes.images=e,n.attributes.ids=t}return e}));var Ho={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:e=>{let{align:t,sizeSlug:n}=e[0];t=Object(Me.every)(e,["align",t])?t:void 0,n=Object(Me.every)(e,["sizeSlug",n])?n:void 0;const r=Object(Me.filter)(e,e=>{let{url:t}=e;return t});if(Object(ze.select)(we.store).getSettings().__unstableGalleryWithImageBlocks){const e=r.map(e=>Object(Oe.createBlock)("core/image",e));return Object(Oe.createBlock)("core/gallery",{align:t,sizeSlug:n},e)}return Object(Oe.createBlock)("core/gallery",{images:r.map(e=>{let{id:t,url:n,alt:r,caption:o}=e;return{id:Object(Me.toString)(t),url:n,alt:r,caption:o}}),ids:r.map(e=>{let{id:t}=e;return parseInt(t,10)}),align:t,sizeSlug:n})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:e=>{let{named:{ids:t}}=e;if(!Object(ze.select)(we.store).getSettings().__unstableGalleryWithImageBlocks)return Ao(t).map(e=>({id:Object(Me.toString)(e)}))}},ids:{type:"array",shortcode:e=>{let{named:{ids:t}}=e;if(!Object(ze.select)(we.store).getSettings().__unstableGalleryWithImageBlocks)return Ao(t)}},shortCodeTransforms:{type:"array",shortcode:e=>{let{named:{ids:t}}=e;if(Object(ze.select)(we.store).getSettings().__unstableGalleryWithImageBlocks)return Ao(t).map(e=>({id:parseInt(e)}))}},columns:{type:"number",shortcode:e=>{let{named:{columns:t="3"}}=e;return parseInt(t,10)}},linkTo:{type:"string",shortcode:e=>{let{named:{link:t}}=e;if(!Object(ze.select)(we.store).getSettings().__unstableGalleryWithImageBlocks)switch(t){case"post":return"post";case"file":return"file";default:return"post"}switch(t){case"post":return"attachment";case"file":return"media";default:return"none"}}}},isMatch(e){let{named:t}=e;return void 0!==t.ids}},{type:"files",priority:1,isMatch:e=>1!==e.length&&Object(Me.every)(e,e=>0===e.type.indexOf("image/")),transform(e){if(Object(ze.select)(we.store).getSettings().__unstableGalleryWithImageBlocks){const t=e.map(e=>Object(Oe.createBlock)("core/image",{url:Object(Pe.createBlobURL)(e)}));return Object(Oe.createBlock)("core/gallery",{},t)}return Object(Oe.createBlock)("core/gallery",{images:e.map(e=>ao({url:Object(Pe.createBlobURL)(e)}))})}}],to:[{type:"block",blocks:["core/image"],transform:(e,t)=>{let{align:n,images:r,ids:o,sizeSlug:a}=e;return Object(ze.select)(we.store).getSettings().__unstableGalleryWithImageBlocks?t.length>0?t.map(e=>{let{attributes:{id:t,url:r,alt:o,caption:a,imageSizeSlug:l}}=e;return Object(Oe.createBlock)("core/image",{id:t,url:r,alt:o,caption:a,sizeSlug:l,align:n})}):Object(Oe.createBlock)("core/image",{align:n}):r.length>0?r.map((e,t)=>{let{url:r,alt:l,caption:c}=e;return Object(Oe.createBlock)("core/image",{id:o[t],url:r,alt:l,caption:c,align:n,sizeSlug:a})}):Object(Oe.createBlock)("core/image",{align:n})}}]};const Fo={apiVersion:2,name:"core/gallery",title:"Gallery",category:"media",description:"Display multiple images in a rich gallery.",keywords:["images","photos"],textdomain:"default",attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},shortCodeTransforms:{type:"array",default:[],items:{type:"object"}},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},fixedHeight:{type:"boolean",default:!0},linkTarget:{type:"string"},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"},allowResize:{type:"boolean",default:!1}},providesContext:{allowResize:"allowResize",imageCrop:"imageCrop",fixedHeight:"fixedHeight"},supports:{anchor:!0,align:!0},editorStyle:"wp-block-gallery-editor",style:"wp-block-gallery"},{name:Do}=Fo,Go={icon:eo,example:{attributes:{columns:2},innerBlocks:[{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}}]},transforms:Ho,edit:function(e){var t,n;const{attributes:r,clientId:o}=e,a=Object(ze.useSelect)(e=>{var t;return null===(t=e(we.store).getBlock(o))||void 0===t?void 0:t.innerBlocks},[o]),l=Object(ze.useSelect)(e=>e(we.store).getSettings().__unstableGalleryWithImageBlocks,[]),c=!(null==a||!a.length);return 0<(null==r||null===(t=r.ids)||void 0===t?void 0:t.length)||0<(null==r||null===(n=r.images)||void 0===n?void 0:n.length)||!c&&!l?Object(je.createElement)(Lo,e):Object(je.createElement)(fo,e)},save:function(e){var t,n;let{attributes:r}=e;if((null==r||null===(t=r.ids)||void 0===t?void 0:t.length)>0||(null==r||null===(n=r.images)||void 0===n?void 0:n.length)>0)return function(e){let{attributes:t}=e;const{images:n,columns:r=to(t),imageCrop:o,caption:a,linkTo:l}=t,c=`columns-${r} ${o?"is-cropped":""}`;return Object(je.createElement)("figure",we.useBlockProps.save({className:c}),Object(je.createElement)("ul",{className:"blocks-gallery-grid"},n.map(e=>{let t;switch(l){case"file":t=e.fullUrl||e.url;break;case"post":t=e.link}const n=Object(je.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-"+e.id:null});return Object(je.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(je.createElement)("figure",null,t?Object(je.createElement)("a",{href:t},n):n,!we.RichText.isEmpty(e.caption)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))})),!we.RichText.isEmpty(a)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))}({attributes:r});const{caption:o,columns:a,imageCrop:l}=r,c=tt()("has-nested-images",{["columns-"+a]:void 0!==a,"columns-default":void 0===a,"is-cropped":l}),i=we.useBlockProps.save({className:c}),s=we.useInnerBlocksProps.save(i);return Object(je.createElement)("figure",s,s.children,!we.RichText.isEmpty(o)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:o}))},deprecated:no};var qo=n("u6za");const Uo=e=>{if(e.tagName||(e={...e,tagName:"div"}),!e.customTextColor&&!e.customBackgroundColor)return e;const t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),{...Object(Me.omit)(e,["customTextColor","customBackgroundColor"]),style:t}};var Wo=[{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:"string"}},supports:{align:["wide","full"],anchor:!0,color:{gradients:!0,link:!0},spacing:{padding:!0},__experimentalBorder:{radius:!0}},save(e){let{attributes:t}=e;const{tagName:n}=t;return Object(je.createElement)(n,we.useBlockProps.save(),Object(je.createElement)("div",{className:"wp-block-group__inner-container"},Object(je.createElement)(we.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:Uo,save(e){let{attributes:t}=e;const{backgroundColor:n,customBackgroundColor:r,textColor:o,customTextColor:a}=t,l=Object(we.getColorClassName)("background-color",n),c=Object(we.getColorClassName)("color",o),i=tt()(l,c,{"has-text-color":o||a,"has-background":n||r}),s={backgroundColor:l?void 0:r,color:c?void 0:a};return Object(je.createElement)("div",{className:i,style:s},Object(je.createElement)("div",{className:"wp-block-group__inner-container"},Object(je.createElement)(we.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:Uo,supports:{align:["wide","full"],anchor:!0,html:!1},save(e){let{attributes:t}=e;const{backgroundColor:n,customBackgroundColor:r,textColor:o,customTextColor:a}=t,l=Object(we.getColorClassName)("background-color",n),c=Object(we.getColorClassName)("color",o),i=tt()(l,{"has-text-color":o||a,"has-background":n||r}),s={backgroundColor:l?void 0:r,color:c?void 0:a};return Object(je.createElement)("div",{className:i,style:s},Object(je.createElement)("div",{className:"wp-block-group__inner-container"},Object(je.createElement)(we.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:Uo,save(e){let{attributes:t}=e;const{backgroundColor:n,customBackgroundColor:r}=t,o=Object(we.getColorClassName)("background-color",n),a=tt()(o,{"has-background":n||r}),l={backgroundColor:o?void 0:r};return Object(je.createElement)("div",{className:a,style:l},Object(je.createElement)(we.InnerBlocks.Content,null))}}];const $o={header:Object(ke.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:Object(ke.__)("The <main> element should be used for the primary content of your document only. "),section:Object(ke.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),article:Object(ke.__)("The <article> element should represent a self contained, syndicatable portion of the document."),aside:Object(ke.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),footer:Object(ke.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).")};var Zo=function(e){let{attributes:t,setAttributes:n,clientId:r}=e;const{hasInnerBlocks:o,themeSupportsLayout:a}=Object(ze.useSelect)(e=>{var t;const{getBlock:n,getSettings:o}=e(we.store),a=n(r);return{hasInnerBlocks:!(!a||!a.innerBlocks.length),themeSupportsLayout:null===(t=o())||void 0===t?void 0:t.supportsLayout}},[r]),l=Object(we.useSetting)("layout")||{},{tagName:c="div",templateLock:i,layout:s={}}=t,u=s&&s.inherit?l:s,{type:m="default"}=u,d=a||"default"!==m,b=Object(we.useBlockProps)(),p=Object(we.useInnerBlocksProps)(d?b:{className:"wp-block-group__inner-container"},{templateLock:i,renderAppender:o?void 0:we.InnerBlocks.ButtonBlockAppender,__experimentalLayout:d?u:void 0});return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.InspectorControls,{__experimentalGroup:"advanced"},Object(je.createElement)(_e.SelectControl,{label:Object(ke.__)("HTML element"),options:[{label:Object(ke.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}],value:c,onChange:e=>n({tagName:e}),help:$o[c]})),d&&Object(je.createElement)(c,p),!d&&Object(je.createElement)(c,b,Object(je.createElement)("div",p)))};var Ko=[{name:"group-row",title:Object(ke.__)("Row"),description:Object(ke.__)("Blocks shown in a row."),attributes:{layout:{type:"flex",allowOrientation:!1}},scope:["inserter"],isActive:e=>{var t;return"flex"===(null===(t=e.layout)||void 0===t?void 0:t.type)}}];const Jo={apiVersion:2,name:"core/group",title:"Group",category:"design",description:"Combine blocks into a group.",keywords:["container","wrapper","row","section"],textdomain:"default",attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{align:["wide","full"],anchor:!0,html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},__experimentalLayout:!0},editorStyle:"wp-block-group-editor",style:"wp-block-group"},{name:Qo}=Jo,Yo={icon:qo.a,example:{attributes:{style:{color:{text:"#000000",background:"#ffffff"}}},innerBlocks:[{name:"core/paragraph",attributes:{customTextColor:"#cf2e2e",fontSize:"large",content:Object(ke.__)("One.")}},{name:"core/paragraph",attributes:{customTextColor:"#ff6900",fontSize:"large",content:Object(ke.__)("Two.")}},{name:"core/paragraph",attributes:{customTextColor:"#fcb900",fontSize:"large",content:Object(ke.__)("Three.")}},{name:"core/paragraph",attributes:{customTextColor:"#00d084",fontSize:"large",content:Object(ke.__)("Four.")}},{name:"core/paragraph",attributes:{customTextColor:"#0693e3",fontSize:"large",content:Object(ke.__)("Five.")}},{name:"core/paragraph",attributes:{customTextColor:"#9b51e0",fontSize:"large",content:Object(ke.__)("Six.")}}]},transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert(e){if(1===e.length&&"core/group"===e[0].name)return;const t=["wide","full"],n=e.reduce((e,n)=>{const{align:r}=n.attributes;return t.indexOf(r)>t.indexOf(e)?r:e},void 0),r=e.map(e=>Object(Oe.createBlock)(e.name,e.attributes,e.innerBlocks));return Object(Oe.createBlock)("core/group",{align:n},r)}}]},edit:Zo,save:function(e){let{attributes:{tagName:t}}=e;return Object(je.createElement)(t,we.useInnerBlocksProps.save(we.useBlockProps.save()))},deprecated:Wo,variations:Ko};var Xo=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M6.2 5.2v13.4l5.8-4.8 5.8 4.8V5.2z"}));const ea={className:!1,anchor:!0},ta={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"}},na=e=>{if(!e.customTextColor)return e;const t={color:{text:e.customTextColor}};return{...Object(Me.omit)(e,["customTextColor"]),style:t}},ra=["left","right","center"],oa=e=>{const{align:t,...n}=e;return ra.includes(t)?{...n,textAlign:t}:e};var aa=[{supports:{align:["wide","full"],anchor:!0,className:!1,color:{link:!0},fontSize:!0,lineHeight:!0,__experimentalSelector:{"core/heading/h1":"h1","core/heading/h2":"h2","core/heading/h3":"h3","core/heading/h4":"h4","core/heading/h5":"h5","core/heading/h6":"h6"},__unstablePasteTextInline:!0},attributes:ta,isEligible:e=>{let{align:t}=e;return ra.includes(t)},migrate:oa,save(e){let{attributes:t}=e;const{align:n,content:r,level:o}=t,a="h"+o,l=tt()({["has-text-align-"+n]:n});return Object(je.createElement)(a,we.useBlockProps.save({className:l}),Object(je.createElement)(we.RichText.Content,{value:r}))}},{supports:ea,attributes:{...ta,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>na(oa(e)),save(e){let{attributes:t}=e;const{align:n,content:r,customTextColor:o,level:a,textColor:l}=t,c="h"+a,i=Object(we.getColorClassName)("color",l),s=tt()({[i]:i,"has-text-color":l||o,["has-text-align-"+n]:n});return Object(je.createElement)(we.RichText.Content,{className:s||void 0,tagName:c,style:{color:i?void 0:o},value:r})}},{attributes:{...ta,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>na(oa(e)),save(e){let{attributes:t}=e;const{align:n,content:r,customTextColor:o,level:a,textColor:l}=t,c="h"+a,i=Object(we.getColorClassName)("color",l),s=tt()({[i]:i,["has-text-align-"+n]:n});return Object(je.createElement)(we.RichText.Content,{className:s||void 0,tagName:c,style:{color:i?void 0:o},value:r})},supports:ea},{supports:ea,attributes:{...ta,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>na(oa(e)),save(e){let{attributes:t}=e;const{align:n,level:r,content:o,textColor:a,customTextColor:l}=t,c="h"+r,i=Object(we.getColorClassName)("color",a),s=tt()({[i]:i});return Object(je.createElement)(we.RichText.Content,{className:s||void 0,tagName:c,style:{textAlign:n,color:i?void 0:l},value:o})}}];function la(e){let{level:t,isPressed:n=!1}=e;const r={1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z"};return r.hasOwnProperty(t)?Object(je.createElement)(_e.SVG,{width:"24",height:"24",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:n},Object(je.createElement)(_e.Path,{d:r[t]})):null}const ca=[1,2,3,4,5,6],ia={className:"block-library-heading-level-dropdown"};function sa(e){let{selectedLevel:t,onChange:n}=e;return Object(je.createElement)(_e.ToolbarDropdownMenu,{popoverProps:ia,icon:Object(je.createElement)(la,{level:t}),label:Object(ke.__)("Change heading level"),controls:ca.map(e=>{{const r=e===t;return{icon:Object(je.createElement)(la,{level:e,isPressed:r}),label:Object(ke.sprintf)(Object(ke.__)("Heading %d"),e),isActive:r,onClick(){n(e)}}}})})}const ua={},ma=e=>Object(Me.trim)(Object(Me.deburr)((e=>{const t=document.createElement("div");return t.innerHTML=e,t.innerText})(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase(),"-"),da=(e,t)=>{const n=ma(t);if(""===n)return null;delete ua[e];let r=n,o=0;for(;Object.values(ua).includes(r);)o+=1,r=n+"-"+o;return r},ba=(e,t)=>{ua[e]=t};var pa=function(e){let{attributes:t,setAttributes:n,mergeBlocks:r,onReplace:o,style:a,clientId:l}=e;const{textAlign:c,content:i,level:s,placeholder:u,anchor:m}=t,d="h"+s,b=Object(we.useBlockProps)({className:tt()({["has-text-align-"+c]:c}),style:a}),{__unstableMarkNextChangeAsNotPersistent:p}=Object(ze.useDispatch)(we.store);return Object(je.useEffect)(()=>(!m&&i&&(p(),n({anchor:da(l,i)})),ba(l,m),()=>ba(l,null)),[i,m]),Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(sa,{selectedLevel:s,onChange:e=>n({level:e})}),Object(je.createElement)(we.AlignmentControl,{value:c,onChange:e=>{n({textAlign:e})}})),Object(je.createElement)(we.RichText,Object(mt.a)({identifier:"content",tagName:d,value:i,onChange:e=>{const t={content:e};m&&e&&da(l,i)!==m||(t.anchor=da(l,e)),n(t)},onMerge:r,onSplit:(e,n)=>{let r;var o;n||e?r=Object(Oe.createBlock)("core/heading",{...t,content:e}):r=Object(Oe.createBlock)(null!==(o=Object(Oe.getDefaultBlockName)())&&void 0!==o?o:"core/heading");return n&&(r.clientId=l),r},onReplace:o,onRemove:()=>o([]),"aria-label":Object(ke.__)("Heading text"),placeholder:u||Object(ke.__)("Heading"),textAlign:c},b)))};const{name:ga}={apiVersion:2,name:"core/heading",title:"Heading",category:"text",description:"Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.",keywords:["title","subtitle"],textdomain:"default",attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",__experimentalRole:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},supports:{align:["wide","full"],anchor:!0,className:!1,color:{link:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}},__experimentalSelector:"h1,h2,h3,h4,h5,h6",__unstablePasteTextInline:!0,__experimentalSlashInserter:!0},editorStyle:"wp-block-heading-editor",style:"wp-block-heading"};var ha={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map(e=>{let{content:t,anchor:n}=e;return Object(Oe.createBlock)(ga,{content:t,anchor:n})})},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:e=>{let{phrasingContentSchema:t,isPaste:n}=e;const r={children:t,attributes:n?[]:["style","id"]};return{h1:r,h2:r,h3:r,h4:r,h5:r,h6:r}},transform(e){const t=Object(Oe.getBlockAttributes)(ga,e.outerHTML),{textAlign:n}=e.style||{};var r;return t.level=(r=e.nodeName,Number(r.substr(1))),"left"!==n&&"center"!==n&&"right"!==n||(t.align=n),Object(Oe.createBlock)(ga,t)}},...[1,2,3,4,5,6].map(e=>({type:"prefix",prefix:Array(e+1).join("#"),transform:t=>Object(Oe.createBlock)(ga,{level:e,content:t})})),...[1,2,3,4,5,6].map(e=>({type:"enter",regExp:new RegExp(`^/(h|H)${e}$`),transform:t=>Object(Oe.createBlock)(ga,{level:e,content:t})}))],to:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map(e=>{let{content:t,anchor:n}=e;return Object(Oe.createBlock)("core/paragraph",{content:t,anchor:n})})}]};const va={apiVersion:2,name:"core/heading",title:"Heading",category:"text",description:"Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.",keywords:["title","subtitle"],textdomain:"default",attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",__experimentalRole:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},supports:{align:["wide","full"],anchor:!0,className:!1,color:{link:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}},__experimentalSelector:"h1,h2,h3,h4,h5,h6",__unstablePasteTextInline:!0,__experimentalSlashInserter:!0},editorStyle:"wp-block-heading-editor",style:"wp-block-heading"},{name:Oa}=va,ja={icon:Xo,example:{attributes:{content:Object(ke.__)("Code is Poetry"),level:2}},__experimentalLabel(e,t){let{context:n}=t;if("accessibility"===n){const{content:t,level:n}=e;return Object(Me.isEmpty)(t)?Object(ke.sprintf)(Object(ke.__)("Level %s. Empty."),n):Object(ke.sprintf)(Object(ke.__)("Level %1$s. %2$s"),n,t)}},transforms:ha,deprecated:aa,merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),edit:pa,save:function(e){let{attributes:t}=e;const{textAlign:n,content:r,level:o}=t,a="h"+o,l=tt()({["has-text-align-"+n]:n});return Object(je.createElement)(a,we.useBlockProps.save({className:l}),Object(je.createElement)(we.RichText.Content,{value:r}))}};var ya=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M4.8 11.4H2.1V9H1v6h1.1v-2.6h2.7V15h1.1V9H4.8v2.4zm1.9-1.3h1.7V15h1.1v-4.9h1.7V9H6.7v1.1zM16.2 9l-1.5 2.7L13.3 9h-.9l-.8 6h1.1l.5-4 1.5 2.8 1.5-2.8.5 4h1.1L17 9h-.8zm3.8 5V9h-1.1v6h3.6v-1H20z"}));var fa={from:[{type:"block",blocks:["core/code"],transform:e=>{let{content:t}=e;return Object(Oe.createBlock)("core/html",{content:t})}}]};const _a={apiVersion:2,name:"core/html",title:"Custom HTML",category:"widgets",description:"Add custom HTML code and preview it as you edit.",keywords:["embed"],textdomain:"default",attributes:{content:{type:"string",source:"html"}},supports:{customClassName:!1,className:!1,html:!1},editorStyle:"wp-block-html-editor"},{name:ka}=_a,wa={icon:ya,example:{attributes:{content:"<marquee>"+Object(ke.__)("Welcome to the wonderful world of blocks…")+"</marquee>"}},edit:function(e){let{attributes:t,setAttributes:n,isSelected:r}=e;const[o,a]=Object(je.useState)(),l=Object(ze.useSelect)(e=>["\n\t\t\thtml,body,:root {\n\t\t\t\tmargin: 0 !important;\n\t\t\t\tpadding: 0 !important;\n\t\t\t\toverflow: visible !important;\n\t\t\t\tmin-height: auto !important;\n\t\t\t}\n\t\t",...Object(we.transformStyles)(e(we.store).getSettings().styles)],[]);return Object(je.createElement)("div",Object(we.useBlockProps)({className:"block-library-html__edit"}),Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(_e.ToolbarGroup,null,Object(je.createElement)(_e.ToolbarButton,{className:"components-tab-button",isPressed:!o,onClick:function(){a(!1)}},Object(je.createElement)("span",null,"HTML")),Object(je.createElement)(_e.ToolbarButton,{className:"components-tab-button",isPressed:o,onClick:function(){a(!0)}},Object(je.createElement)("span",null,Object(ke.__)("Preview"))))),Object(je.createElement)(_e.Disabled.Consumer,null,e=>o||e?Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.SandBox,{html:t.content,styles:l}),!r&&Object(je.createElement)("div",{className:"block-library-html__preview-overlay"})):Object(je.createElement)(we.PlainText,{value:t.content,onChange:e=>n({content:e}),placeholder:Object(ke.__)("Write HTML…"),"aria-label":Object(ke.__)("HTML")})))},save:function(e){let{attributes:t}=e;return Object(je.createElement)(je.RawHTML,null,t.content)},transforms:fa},Ea={align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}};var Ca=[{attributes:Ea,save(e){let{attributes:t}=e;const{url:n,alt:r,caption:o,align:a,href:l,width:c,height:i,id:s}=t,u=tt()({["align"+a]:a,"is-resized":c||i}),m=Object(je.createElement)("img",{src:n,alt:r,className:s?"wp-image-"+s:null,width:c,height:i});return Object(je.createElement)("figure",{className:u},l?Object(je.createElement)("a",{href:l},m):m,!we.RichText.isEmpty(o)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:Ea,save(e){let{attributes:t}=e;const{url:n,alt:r,caption:o,align:a,href:l,width:c,height:i,id:s}=t,u=Object(je.createElement)("img",{src:n,alt:r,className:s?"wp-image-"+s:null,width:c,height:i});return Object(je.createElement)("figure",{className:a?"align"+a:null},l?Object(je.createElement)("a",{href:l},u):u,!we.RichText.isEmpty(o)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:Ea,save(e){let{attributes:t}=e;const{url:n,alt:r,caption:o,align:a,href:l,width:c,height:i}=t,s=c||i?{width:c,height:i}:{},u=Object(je.createElement)("img",Object(mt.a)({src:n,alt:r},s));let m={};return c?m={width:c}:"left"!==a&&"right"!==a||(m={maxWidth:"50%"}),Object(je.createElement)("figure",{className:a?"align"+a:null,style:m},l?Object(je.createElement)("a",{href:l},u):u,!we.RichText.isEmpty(o)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",value:o}))}}];var xa=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M16.5 7.8v7H18v-7c0-1-.8-1.8-1.8-1.8h-7v1.5h7c.2 0 .3.1.3.3zm-8.7 8.7c-.1 0-.2-.1-.2-.2V2H6v4H2v1.5h4v8.8c0 1 .8 1.8 1.8 1.8h8.8v4H18v-4h4v-1.5H7.8z"})),Sa=n("NTP4");var Ba=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12-9.8c.4 0 .8-.3.9-.7l1.1-3h3.6l.5 1.7h1.9L13 9h-2.2l-3.4 9.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12H20V6c0-1.1-.9-2-2-2zm-6 7l1.4 3.9h-2.7L12 11z"}));function Ta(e,t){const[n,r]=Object(je.useState)();function o(){r(e.current.clientWidth)}return Object(je.useEffect)(o,t),Object(je.useEffect)(()=>{const{defaultView:t}=e.current.ownerDocument;return t.addEventListener("resize",o),()=>{t.removeEventListener("resize",o)}},[]),n}function Na(e){let{temporaryURL:t,attributes:{url:n="",alt:r,caption:o,align:a,id:l,href:c,rel:i,linkClass:s,linkDestination:u,title:m,width:d,height:b,linkTarget:p,sizeSlug:g},setAttributes:h,isSelected:v,insertBlocksAfter:O,onReplace:j,onSelectImage:y,onSelectURL:f,onUploadError:_,containerRef:k,context:w,clientId:E}=e;const C=Object(je.useRef)(),x=Object(nt.usePrevious)(n),{allowResize:S=!0}=w,{getBlock:B}=Object(ze.useSelect)(we.store),{image:T,multiImageSelection:N}=Object(ze.useSelect)(e=>{const{getMedia:t}=e(It.store),{getMultiSelectedBlockClientIds:n,getBlockName:r}=e(we.store),o=n();return{image:l&&v?t(l):null,multiImageSelection:o.length&&o.every(e=>"core/image"===r(e))}},[l,v]),{canInsertCover:P,imageEditing:z,imageSizes:I,maxWidth:M,mediaUpload:R}=Object(ze.useSelect)(e=>{const{getBlockRootClientId:t,getSettings:n,canInsertBlockType:r}=e(we.store),o=t(E);return{...Object(Me.pick)(n(),["imageEditing","imageSizes","maxWidth","mediaUpload"]),canInsertCover:r("core/cover",o)}},[E]),{replaceBlocks:L,toggleSelection:V}=Object(ze.useDispatch)(we.store),{createErrorNotice:A,createSuccessNotice:H}=Object(ze.useDispatch)(Fr.store),F=Object(nt.useViewportMatch)("medium"),D=Object(Me.includes)(["wide","full"],a),[{naturalWidth:G,naturalHeight:q},U]=Object(je.useState)({}),[W,$]=Object(je.useState)(!1),[Z,K]=Object(je.useState)(),J=Ta(k,[a]),Q=S&&!(D&&F),Y=Object(Me.map)(Object(Me.filter)(I,e=>{let{slug:t}=e;return Object(Me.get)(T,["media_details","sizes",t,"source_url"])}),e=>{let{name:t,slug:n}=e;return{value:n,label:t}});Object(je.useEffect)(()=>{Pa(l,n)&&v&&!Z&&window.fetch(n).then(e=>e.blob()).then(e=>K(e)).catch(()=>{})},[l,n,v,Z]),Object(je.useEffect)(()=>{n&&!x&&v&&C.current.focus()},[n,x]),Object(je.useEffect)(()=>{v||$(!1)},[v]);const X=l&&G&&q&&z,ee=!N&&X&&!W;const te=Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(we.BlockAlignmentControl,{value:a,onChange:function(e){const t=["wide","full"].includes(e)?{width:void 0,height:void 0}:{};h({...t,align:e})}}),!N&&!W&&Object(je.createElement)(we.__experimentalImageURLInputUI,{url:c||"",onChangeUrl:function(e){h(e)},linkDestination:u,mediaUrl:T&&T.source_url||n,mediaLink:T&&T.link,linkTarget:p,linkClass:s,rel:i}),ee&&Object(je.createElement)(_e.ToolbarButton,{onClick:()=>$(!0),icon:xa,label:Object(ke.__)("Crop")}),Z&&Object(je.createElement)(_e.ToolbarButton,{onClick:function(){R({filesList:[Z],onFileChange(e){let[t]=e;y(t),Object(Pe.isBlobURL)(t.url)||(K(),H(Object(ke.__)("Image uploaded."),{type:"snackbar"}))},allowedTypes:co,onError(e){A(e,{type:"snackbar"})}})},icon:Sa.a,label:Object(ke.__)("Upload external image")}),!N&&P&&Object(je.createElement)(_e.ToolbarButton,{icon:Ba,label:Object(ke.__)("Add text over image"),onClick:function(){L(E,Object(Oe.switchToBlockType)(B(E),"core/cover"))}})),!N&&!W&&Object(je.createElement)(we.BlockControls,{group:"other"},Object(je.createElement)(we.MediaReplaceFlow,{mediaId:l,mediaURL:n,allowedTypes:co,accept:"image/*",onSelect:y,onSelectURL:f,onError:_})),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Image settings")},!N&&Object(je.createElement)(_e.TextareaControl,{label:Object(ke.__)("Alt text (alternative text)"),value:r,onChange:function(e){h({alt:e})},help:Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(ke.__)("Describe the purpose of the image")),Object(ke.__)("Leave empty if the image is purely decorative."))}),Object(je.createElement)(we.__experimentalImageSizeControl,{onChangeImage:function(e){const t=Object(Me.get)(T,["media_details","sizes",e,"source_url"]);if(!t)return null;h({url:t,width:void 0,height:void 0,sizeSlug:e})},onChange:e=>h(e),slug:g,width:d,height:b,imageSizeOptions:Y,isResizable:Q,imageWidth:G,imageHeight:q}))),Object(je.createElement)(we.InspectorControls,{__experimentalGroup:"advanced"},Object(je.createElement)(_e.TextControl,{label:Object(ke.__)("Title attribute"),value:m||"",onChange:function(e){h({title:e})},help:Object(je.createElement)(je.Fragment,null,Object(ke.__)("Describe the role of this image on the page."),Object(je.createElement)(_e.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"},Object(ke.__)("(Note: many devices and browsers do not display this text.)")))}))),ne=Object(Kr.getFilename)(n);let re;re=r||(ne?Object(ke.sprintf)(Object(ke.__)("This image has an empty alt attribute; its file name is %s"),ne):Object(ke.__)("This image has an empty alt attribute"));let oe,ae,le=Object(je.createElement)(je.Fragment,null,Object(je.createElement)("img",{src:t||n,alt:re,onError:()=>function(){const e=Ge({attributes:{url:n}});void 0!==e&&j(e)}(),onLoad:e=>{U(Object(Me.pick)(e.target,["naturalWidth","naturalHeight"]))}}),t&&Object(je.createElement)(_e.Spinner,null));if(J&&G&&q){const e=G>J,t=q/G;oe=e?J:G,ae=e?J*t:q}if(X&&W)le=Object(je.createElement)(we.__experimentalImageEditor,{url:n,width:d,height:b,clientWidth:J,naturalHeight:q,naturalWidth:G});else if(Q&&oe){const e=d||oe,t=b||ae,n=G/q,r=G<q?20:20*n,o=q<G?20:20/n,l=2.5*M;let c=!1,i=!1;"center"===a?(c=!0,i=!0):Object(ke.isRTL)()?"left"===a?c=!0:i=!0:"right"===a?i=!0:c=!0,le=Object(je.createElement)(_e.ResizableBox,{size:{width:null!=d?d:"auto",height:null!=b?b:"auto"},showHandle:v,minWidth:r,maxWidth:l,minHeight:o,maxHeight:l/n,lockAspectRatio:!0,enable:{top:!1,right:c,bottom:!0,left:i},onResizeStart:function(){V(!1)},onResizeStop:(n,r,o,a)=>{V(!0),h({width:parseInt(e+a.width,10),height:parseInt(t+a.height,10)})}},le)}else le=Object(je.createElement)("div",{style:{width:d,height:b}},le);return Object(je.createElement)(we.__experimentalImageEditingProvider,{id:l,url:n,naturalWidth:G,naturalHeight:q,clientWidth:J,onSaveImage:e=>h(e),isEditing:W,onFinishEditing:()=>$(!1)},!t&&te,le,(!we.RichText.isEmpty(o)||v)&&Object(je.createElement)(we.RichText,{ref:C,tagName:"figcaption","aria-label":Object(ke.__)("Image caption text"),placeholder:Object(ke.__)("Add caption"),value:o,onChange:e=>h({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>O(Object(Oe.createBlock)("core/paragraph"))}))}const Pa=(e,t)=>t&&!e&&!Object(Pe.isBlobURL)(t);var za=Object(_e.withNotices)((function(e){let{attributes:t,setAttributes:n,isSelected:r,className:o,noticeUI:a,insertBlocksAfter:l,noticeOperations:c,onReplace:i,context:s,clientId:u}=e;const{url:m="",alt:d,caption:b,align:p,id:g,width:h,height:v,sizeSlug:O}=t,[j,y]=Object(je.useState)(),f=Object(je.useRef)();Object(je.useEffect)(()=>{f.current=d},[d]);const _=Object(je.useRef)();Object(je.useEffect)(()=>{_.current=b},[b]);const k=Object(je.useRef)(),{imageDefaultSize:w,mediaUpload:E}=Object(ze.useSelect)(e=>{const{getSettings:t}=e(we.store);return Object(Me.pick)(t(),["imageDefaultSize","mediaUpload"])},[]);function C(e){c.removeAllNotices(),c.createErrorNotice(e)}function x(e){var r,o,a,l,c;if(!e||!e.url)return void n({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0});if(Object(Pe.isBlobURL)(e.url))return void y(e.url);y();let i,s=((e,t)=>{const n=Object(Me.pick)(e,["alt","id","link","caption"]);return n.url=Object(Me.get)(e,["sizes",t,"url"])||Object(Me.get)(e,["media_details","sizes",t,"source_url"])||e.url,n})(e,w);var u,d;_.current&&!Object(Me.get)(s,["caption"])&&(s=Object(Me.omit)(s,["caption"])),i=e.id&&e.id===g?{url:m}:{width:void 0,height:void 0,sizeSlug:(u=e,d=w,Object(Me.has)(u,["sizes",d,"url"])||Object(Me.has)(u,["media_details","sizes",d,"source_url"])?w:"full")};let b,p=t.linkDestination;if(!p)switch((null===(r=wp)||void 0===r||null===(o=r.media)||void 0===o||null===(a=o.view)||void 0===a||null===(l=a.settings)||void 0===l||null===(c=l.defaultProps)||void 0===c?void 0:c.link)||"none"){case"file":case"media":p="media";break;case"post":case"attachment":p="attachment";break;case"custom":p="custom";break;case"none":p="none"}switch(p){case"media":b=e.url;break;case"attachment":b=e.link}s.href=b,n({...s,...i,linkDestination:p})}function S(e){e!==m&&n({url:e,id:void 0,width:void 0,height:void 0,sizeSlug:w})}let B=((e,t)=>!e&&Object(Pe.isBlobURL)(t))(g,m);Object(je.useEffect)(()=>{if(!B)return;const e=Object(Pe.getBlobByURL)(m);e&&E({filesList:[e],onFileChange:e=>{let[t]=e;x(t)},allowedTypes:co,onError:e=>{B=!1,c.createErrorNotice(e),n({src:void 0,id:void 0,url:void 0})}})},[]),Object(je.useEffect)(()=>{B?y(m):Object(Pe.revokeBlobURL)(j)},[B,m]);const T=Pa(g,m)?m:void 0,N=!!m&&Object(je.createElement)("img",{alt:Object(ke.__)("Edit image"),title:Object(ke.__)("Edit image"),className:"edit-image-preview",src:m}),P=tt()(o,{"is-transient":j,"is-resized":!!h||!!v,["size-"+O]:O}),z=Object(we.useBlockProps)({ref:k,className:P});return Object(je.createElement)("figure",z,(j||m)&&Object(je.createElement)(Na,{temporaryURL:j,attributes:t,setAttributes:n,isSelected:r,insertBlocksAfter:l,onReplace:i,onSelectImage:x,onSelectURL:S,onUploadError:C,containerRef:k,context:s,clientId:u}),!m&&Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(we.BlockAlignmentControl,{value:p,onChange:function(e){const t=["wide","full"].includes(e)?{width:void 0,height:void 0}:{};n({...t,align:e})}})),Object(je.createElement)(we.MediaPlaceholder,{icon:Object(je.createElement)(we.BlockIcon,{icon:ko}),onSelect:x,onSelectURL:S,notices:a,onError:C,accept:"image/*",allowedTypes:co,value:{id:g,src:T},mediaPreview:N,disableMediaButtons:j||m}))}));function Ia(e,t){const{body:n}=document.implementation.createHTMLDocument("");n.innerHTML=e;const{firstElementChild:r}=n;if(r&&"A"===r.nodeName)return r.getAttribute(t)||void 0}const Ma={img:{attributes:["src","alt","title"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}};var Ra={from:[{type:"raw",isMatch:e=>"FIGURE"===e.nodeName&&!!e.querySelector("img"),schema:e=>{let{phrasingContentSchema:t}=e;return{figure:{require:["img"],children:{...Ma,a:{attributes:["href","rel","target"],children:Ma},figcaption:{children:t}}}}},transform:e=>{const t=e.className+" "+e.querySelector("img").className,n=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),r=""===e.id?void 0:e.id,o=n?n[1]:void 0,a=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),l=a?Number(a[1]):void 0,c=e.querySelector("a"),i=c&&c.href?"custom":void 0,s=c&&c.href?c.href:void 0,u=c&&c.rel?c.rel:void 0,m=c&&c.className?c.className:void 0,d=Object(Oe.getBlockAttributes)("core/image",e.outerHTML,{align:o,id:l,linkDestination:i,href:s,rel:u,linkClass:m,anchor:r});return Object(Oe.createBlock)("core/image",d)}},{type:"files",isMatch(e){if(e.some(e=>0===e.type.indexOf("image/"))&&e.some(e=>0!==e.type.indexOf("image/"))){const{createErrorNotice:e}=Object(ze.dispatch)(Fr.store);e(Object(ke.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-transform-invalid-file"})}return Object(Me.every)(e,e=>0===e.type.indexOf("image/"))},transform:e=>e.map(e=>Object(Oe.createBlock)("core/image",{url:Object(Pe.createBlobURL)(e)}))},{type:"shortcode",tag:"caption",attributes:{url:{type:"string",source:"attribute",attribute:"src",selector:"img"},alt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},caption:{shortcode:function(e,t){let{shortcode:n}=t;const{body:r}=document.implementation.createHTMLDocument("");r.innerHTML=n.content;let o=r.querySelector("img");for(;o&&o.parentNode&&o.parentNode!==r;)o=o.parentNode;return o&&o.parentNode.removeChild(o),r.innerHTML.trim()}},href:{shortcode:(e,t)=>{let{shortcode:n}=t;return Ia(n.content,"href")}},rel:{shortcode:(e,t)=>{let{shortcode:n}=t;return Ia(n.content,"rel")}},linkClass:{shortcode:(e,t)=>{let{shortcode:n}=t;return Ia(n.content,"class")}},id:{type:"number",shortcode:e=>{let{named:{id:t}}=e;if(t)return parseInt(t.replace("attachment_",""),10)}},align:{type:"string",shortcode:e=>{let{named:{align:t="alignnone"}}=e;return t.replace("align","")}}}}]};const La={apiVersion:2,name:"core/image",title:"Image",category:"media",usesContext:["allowResize","imageCrop","fixedHeight"],description:"Insert an image to make a visual statement.",keywords:["img","photo","picture"],textdomain:"default",attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{__experimentalDuotone:"img",text:!1,background:!1},__experimentalBorder:{radius:!0}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],editorStyle:"wp-block-image-editor",style:"wp-block-image"},{name:Va}=La,Aa={icon:ko,example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:Object(ke.__)("Mont Blanc appears—still, snowy, and serene.")}},__experimentalLabel(e,t){let{context:n}=t;if("accessibility"===n){const{caption:t,alt:n,url:r}=e;return r?n?n+(t?". "+t:""):t||"":Object(ke.__)("Empty")}},getEditWrapperProps:e=>({"data-align":e.align}),transforms:Ra,edit:za,save:function(e){let{attributes:t}=e;const{url:n,alt:r,caption:o,align:a,href:l,rel:c,linkClass:i,width:s,height:u,id:m,linkTarget:d,sizeSlug:b,title:p}=t,g=Object(Me.isEmpty)(c)?void 0:c,h=tt()({["align"+a]:a,["size-"+b]:b,"is-resized":s||u}),v=Object(je.createElement)("img",{src:n,alt:r,className:m?"wp-image-"+m:null,width:s,height:u,title:p}),O=Object(je.createElement)(je.Fragment,null,l?Object(je.createElement)("a",{className:i,href:l,target:d,rel:g},v):v,!we.RichText.isEmpty(o)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",value:o}));return"left"===a||"right"===a||"center"===a?Object(je.createElement)("div",we.useBlockProps.save(),Object(je.createElement)("figure",{className:h},O)):Object(je.createElement)("figure",we.useBlockProps.save({className:h}),O)},deprecated:Ca};var Ha=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"}));const Fa={apiVersion:2,name:"core/latest-comments",title:"Latest Comments",category:"widgets",description:"Display a list of your most recent comments.",keywords:["recent comments"],textdomain:"default",attributes:{commentsToShow:{type:"number",default:5,minimum:1,maximum:100},displayAvatar:{type:"boolean",default:!0},displayDate:{type:"boolean",default:!0},displayExcerpt:{type:"boolean",default:!0}},supports:{align:!0,html:!1},editorStyle:"wp-block-latest-comments-editor",style:"wp-block-latest-comments"},{name:Da}=Fa,Ga={icon:Ha,example:{},edit:function(e){let{attributes:t,setAttributes:n}=e;const{commentsToShow:r,displayAvatar:o,displayDate:a,displayExcerpt:l}=t;return Object(je.createElement)("div",Object(we.useBlockProps)(),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Latest comments settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Display avatar"),checked:o,onChange:()=>n({displayAvatar:!o})}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Display date"),checked:a,onChange:()=>n({displayDate:!a})}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Display excerpt"),checked:l,onChange:()=>n({displayExcerpt:!l})}),Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Number of comments"),value:r,onChange:e=>n({commentsToShow:e}),min:1,max:100,required:!0}))),Object(je.createElement)(_e.Disabled,null,Object(je.createElement)(Ce.a,{block:"core/latest-comments",attributes:t,urlQueryArgs:{_locale:"site"}})))}};var qa=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 11h2V9H7v2zm0 4h2v-2H7v2zm3-4h7V9h-7v2zm0 4h7v-2h-7v2z"}));const{attributes:Ua}={apiVersion:2,name:"core/latest-posts",title:"Latest Posts",category:"widgets",description:"Display a list of your most recent posts.",keywords:["recent posts"],textdomain:"default",attributes:{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{align:!0,html:!1},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"};var Wa=[{attributes:{...Ua,categories:{type:"string"}},supports:{align:!0,html:!1},migrate:e=>({...e,categories:[{id:Number(e.categories)}]}),isEligible:e=>{let{categories:t}=e;return t&&"string"==typeof t},save:()=>null}],$a=n("FqII");var Za=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"})),Ka=n("b2RC");const Ja={per_page:-1,context:"view"},Qa={per_page:-1,has_published_posts:["post"],context:"view"};const Ya={apiVersion:2,name:"core/latest-posts",title:"Latest Posts",category:"widgets",description:"Display a list of your most recent posts.",keywords:["recent posts"],textdomain:"default",attributes:{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{align:!0,html:!1},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"},{name:Xa}=Ya,el={icon:qa,example:{},edit:function(e){var t;let{attributes:n,setAttributes:r}=e;const{postsToShow:o,order:a,orderBy:l,categories:c,selectedAuthor:i,displayFeaturedImage:s,displayPostContentRadio:u,displayPostContent:m,displayPostDate:d,displayAuthor:b,postLayout:p,columns:g,excerptLength:h,featuredImageAlign:v,featuredImageSizeSlug:O,featuredImageSizeWidth:j,featuredImageSizeHeight:y,addLinkToFeaturedImage:f}=n,{imageSizeOptions:_,latestPosts:k,defaultImageWidth:w,defaultImageHeight:E,categoriesList:C,authorList:x}=Object(ze.useSelect)(e=>{const{getEntityRecords:t,getMedia:n,getUsers:r}=e(It.store),{getSettings:s}=e(we.store),{imageSizes:u,imageDimensions:m}=s(),d=c&&c.length>0?c.map(e=>e.id):[],b=t("postType","post",Object(Me.pickBy)({categories:d,author:i,order:a,orderby:l,per_page:o},e=>!Object(Me.isUndefined)(e)));return{defaultImageWidth:Object(Me.get)(m,[O,"width"],0),defaultImageHeight:Object(Me.get)(m,[O,"height"],0),imageSizeOptions:u.filter(e=>{let{slug:t}=e;return"full"!==t}).map(e=>{let{name:t,slug:n}=e;return{value:n,label:t}}),latestPosts:Array.isArray(b)?b.map(e=>{if(!e.featured_media)return e;const t=n(e.featured_media);let r=Object(Me.get)(t,["media_details","sizes",O,"source_url"],null);r||(r=Object(Me.get)(t,"source_url",null));const o={url:r,alt:null==t?void 0:t.alt_text};return{...e,featuredImageInfo:o}}):b,categoriesList:t("taxonomy","category",Ja),authorList:r(Qa)}},[O,o,a,l,c,i]),S=null!==(t=null==C?void 0:C.reduce((e,t)=>({...e,[t.name]:t}),{}))&&void 0!==t?t:{},B=!(null==k||!k.length),T=Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Post content settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Post content"),checked:m,onChange:e=>r({displayPostContent:e})}),m&&Object(je.createElement)(_e.RadioControl,{label:Object(ke.__)("Show:"),selected:u,options:[{label:Object(ke.__)("Excerpt"),value:"excerpt"},{label:Object(ke.__)("Full post"),value:"full_post"}],onChange:e=>r({displayPostContentRadio:e})}),m&&"excerpt"===u&&Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Max number of words in excerpt"),value:h,onChange:e=>r({excerptLength:e}),min:10,max:100})),Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Post meta settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Display author name"),checked:b,onChange:e=>r({displayAuthor:e})}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Display post date"),checked:d,onChange:e=>r({displayPostDate:e})})),Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Featured image settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Display featured image"),checked:s,onChange:e=>r({displayFeaturedImage:e})}),s&&Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.__experimentalImageSizeControl,{onChange:e=>{const t={};e.hasOwnProperty("width")&&(t.featuredImageSizeWidth=e.width),e.hasOwnProperty("height")&&(t.featuredImageSizeHeight=e.height),r(t)},slug:O,width:j,height:y,imageWidth:w,imageHeight:E,imageSizeOptions:_,onChangeImage:e=>r({featuredImageSizeSlug:e,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})}),Object(je.createElement)(_e.BaseControl,{className:"block-editor-image-alignment-control__row"},Object(je.createElement)(_e.BaseControl.VisualLabel,null,Object(ke.__)("Image alignment")),Object(je.createElement)(we.BlockAlignmentToolbar,{value:v,onChange:e=>r({featuredImageAlign:e}),controls:["left","center","right"],isCollapsed:!1})),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Add link to featured image"),checked:f,onChange:e=>r({addLinkToFeaturedImage:e})}))),Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Sorting and filtering")},Object(je.createElement)(_e.QueryControls,{order:a,orderBy:l,numberOfItems:o,onOrderChange:e=>r({order:e}),onOrderByChange:e=>r({orderBy:e}),onNumberOfItemsChange:e=>r({postsToShow:e}),categorySuggestions:S,onCategoryChange:e=>{if(e.some(e=>"string"==typeof e&&!S[e]))return;const t=e.map(e=>"string"==typeof e?S[e]:e);if(Object(Me.includes)(t,null))return!1;r({categories:t})},selectedCategories:c,onAuthorChange:e=>r({selectedAuthor:""!==e?Number(e):void 0}),authorList:null!=x?x:[],selectedAuthorId:i}),"grid"===p&&Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Columns"),value:g,onChange:e=>r({columns:e}),min:2,max:B?Math.min(6,k.length):6,required:!0}))),N=Object(we.useBlockProps)({className:tt()({"wp-block-latest-posts__list":!0,"is-grid":"grid"===p,"has-dates":d,"has-author":b,["columns-"+g]:"grid"===p})});if(!B)return Object(je.createElement)("div",N,T,Object(je.createElement)(_e.Placeholder,{icon:Ht,label:Object(ke.__)("Latest Posts")},Array.isArray(k)?Object(ke.__)("No posts found."):Object(je.createElement)(_e.Spinner,null)));const P=k.length>o?k.slice(0,o):k,z=[{icon:Za,title:Object(ke.__)("List view"),onClick:()=>r({postLayout:"list"}),isActive:"list"===p},{icon:Ka.a,title:Object(ke.__)("Grid view"),onClick:()=>r({postLayout:"grid"}),isActive:"grid"===p}],I=Object($a.__experimentalGetSettings)().formats.date;return Object(je.createElement)("div",null,T,Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(_e.ToolbarGroup,{controls:z})),Object(je.createElement)("ul",N,P.map((e,t)=>{const n=Object(Me.invoke)(e,["title","rendered","trim"]);let r=e.excerpt.rendered;const o=null==x?void 0:x.find(t=>t.id===e.author),a=document.createElement("div");a.innerHTML=r,r=a.textContent||a.innerText||"";const{featuredImageInfo:{url:l,alt:c}={}}=e,i=tt()({"wp-block-latest-posts__featured-image":!0,["align"+v]:!!v}),p=s&&l,g=p&&Object(je.createElement)("img",{src:l,alt:c,style:{maxWidth:j,maxHeight:y}}),O=h<r.trim().split(" ").length&&""===e.excerpt.raw?Object(je.createElement)(je.Fragment,null,r.trim().split(" ",h).join(" "),Object(ke.__)(" … "),Object(je.createElement)("a",{href:e.link,rel:"noopener noreferrer"},Object(ke.__)("Read more"))):r;return Object(je.createElement)("li",{key:t},p&&Object(je.createElement)("div",{className:i},f?Object(je.createElement)("a",{href:e.link,rel:"noreferrer noopener"},g):g),Object(je.createElement)("a",{href:e.link,rel:"noreferrer noopener"},n?Object(je.createElement)(je.RawHTML,null,n):Object(ke.__)("(no title)")),b&&o&&Object(je.createElement)("div",{className:"wp-block-latest-posts__post-author"},Object(ke.sprintf)(Object(ke.__)("by %s"),o.name)),d&&e.date_gmt&&Object(je.createElement)("time",{dateTime:Object($a.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date"},Object($a.dateI18n)(I,e.date_gmt)),m&&"excerpt"===u&&Object(je.createElement)("div",{className:"wp-block-latest-posts__post-excerpt"},O),m&&"full_post"===u&&Object(je.createElement)("div",{className:"wp-block-latest-posts__post-full-content"},Object(je.createElement)(je.RawHTML,{key:"html"},e.content.raw.trim())))})))},deprecated:Wa};var tl=[{attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0},color:{gradients:!0,link:!0},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save(e){let{attributes:t}=e;const{ordered:n,values:r,type:o,reversed:a,start:l}=t,c=n?"ol":"ul";return Object(je.createElement)(c,we.useBlockProps.save({type:o,reversed:a,start:l}),Object(je.createElement)(we.RichText.Content,{value:r,multiline:"li"}))},migrate:at,isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}}];var nl=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M4 8.8h8.9V7.2H4v1.6zm0 7h8.9v-1.5H4v1.5zM18 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"}));var rl=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}));var ol=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M3.8 15.8h8.9v-1.5H3.8v1.5zm0-7h8.9V7.2H3.8v1.6zm14.7-2.1V10h1V5.3l-2.2.7.3 1 .9-.3zm1.2 6.1c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5H20v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3 0-.8-.3-1.1z"}));var al=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM5 6.7V10h1V5.3L3.8 6l.4 1 .8-.3zm-.4 5.7c-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-1c.3-.6.8-1.4.9-2.1.1-.3 0-.8-.2-1.1-.5-.6-1.3-.5-1.7-.4z"}));var ll=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM15.4697 14.9697L18.4393 12L15.4697 9.03033L16.5303 7.96967L20.0303 11.4697L20.5607 12L20.0303 12.5303L16.5303 16.0303L15.4697 14.9697Z"}));var cl=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-4-4.6l-4 4 4 4 1-1-3-3 3-3-1-1z"}));var il=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM20.0303 9.03033L17.0607 12L20.0303 14.9697L18.9697 16.0303L15.4697 12.5303L14.9393 12L15.4697 11.4697L18.9697 7.96967L20.0303 9.03033Z"}));var sl=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-8-3.5l3 3-3 3 1 1 4-4-4-4-1 1z"}));var ul=e=>{let{setAttributes:t,reversed:n,start:r}=e;return Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Ordered list settings")},Object(je.createElement)(_e.TextControl,{label:Object(ke.__)("Start value"),type:"number",onChange:e=>{const n=parseInt(e,10);t({start:isNaN(n)?void 0:n})},value:Number.isInteger(r)?r.toString(10):"",step:"1"}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Reverse list numbering"),checked:n||!1,onChange:e=>{t({reversed:e||void 0})}})))};function ml(e){let{phrasingContentSchema:t}=e;const n={...t,ul:{},ol:{attributes:["type","start","reversed"]}};return["ul","ol"].forEach(e=>{n[e].children={li:{children:n}}}),n}var dl={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:e=>Object(Oe.createBlock)("core/list",{values:Object(kt.toHTMLString)({value:Object(kt.join)(e.map(t=>{let{content:n}=t;const r=Object(kt.create)({html:n});return e.length>1?r:Object(kt.replace)(r,/\n/g,kt.__UNSTABLE_LINE_SEPARATOR)}),kt.__UNSTABLE_LINE_SEPARATOR),multilineTag:"li"}),anchor:e.anchor})},{type:"block",blocks:["core/quote","core/pullquote"],transform:e=>{let{value:t,anchor:n}=e;return Object(Oe.createBlock)("core/list",{values:Object(kt.toHTMLString)({value:Object(kt.create)({html:t,multilineTag:"p"}),multilineTag:"li"}),anchor:n})}},{type:"raw",selector:"ol,ul",schema:e=>({ol:ml(e).ol,ul:ml(e).ul}),transform(e){const t={ordered:"OL"===e.nodeName,anchor:""===e.id?void 0:e.id};if(t.ordered){const n=e.getAttribute("type");n&&(t.type=n),null!==e.getAttribute("reversed")&&(t.reversed=!0);const r=parseInt(e.getAttribute("start"),10);isNaN(r)||1===r&&!t.reversed||(t.start=r)}return Object(Oe.createBlock)("core/list",{...Object(Oe.getBlockAttributes)("core/list",e.outerHTML),...t})}},...["*","-"].map(e=>({type:"prefix",prefix:e,transform:e=>Object(Oe.createBlock)("core/list",{values:`<li>${e}</li>`})})),...["1.","1)"].map(e=>({type:"prefix",prefix:e,transform:e=>Object(Oe.createBlock)("core/list",{ordered:!0,values:`<li>${e}</li>`})}))],to:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{values:t}=e;return Object(kt.split)(Object(kt.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),kt.__UNSTABLE_LINE_SEPARATOR).map(e=>Object(Oe.createBlock)("core/paragraph",{content:Object(kt.toHTMLString)({value:e})}))}},{type:"block",blocks:["core/heading"],transform:e=>{let{values:t}=e;return Object(kt.split)(Object(kt.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),kt.__UNSTABLE_LINE_SEPARATOR).map(e=>Object(Oe.createBlock)("core/heading",{content:Object(kt.toHTMLString)({value:e})}))}},{type:"block",blocks:["core/quote"],transform:e=>{let{values:t,anchor:n}=e;return Object(Oe.createBlock)("core/quote",{value:Object(kt.toHTMLString)({value:Object(kt.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:n})}},{type:"block",blocks:["core/pullquote"],transform:e=>{let{values:t,anchor:n}=e;return Object(Oe.createBlock)("core/pullquote",{value:Object(kt.toHTMLString)({value:Object(kt.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:n})}}]};const bl={apiVersion:2,name:"core/list",title:"List",category:"text",description:"Create a bulleted or numbered list.",keywords:["bullet list","ordered list","numbered list"],textdomain:"default",attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},editorStyle:"wp-block-list-editor",style:"wp-block-list"},{name:pl}=bl,gl={icon:Za,example:{attributes:{values:"<li>Alice.</li><li>The White Rabbit.</li><li>The Cheshire Cat.</li><li>The Mad Hatter.</li><li>The Queen of Hearts.</li>"}},transforms:dl,merge(e,t){const{values:n}=t;return n&&"<li></li>"!==n?{...e,values:e.values+n}:e},edit:function(e){let{attributes:t,setAttributes:n,mergeBlocks:r,onReplace:o,style:a}=e;const{ordered:l,values:c,type:i,reversed:s,start:u,placeholder:m}=t,d=l?"ol":"ul",b=Object(we.useBlockProps)({style:a});return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.RichText,Object(mt.a)({identifier:"values",multiline:"li",tagName:d,onChange:e=>n({values:e}),value:c,"aria-label":Object(ke.__)("List text"),placeholder:m||Object(ke.__)("List"),onMerge:r,onSplit:e=>Object(Oe.createBlock)(pl,{...t,values:e}),__unstableOnSplitMiddle:()=>Object(Oe.createBlock)("core/paragraph"),onReplace:o,onRemove:()=>o([]),start:u,reversed:s,type:i},b),e=>{let{value:t,onChange:r,onFocus:o}=e;return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.RichTextShortcut,{type:"primary",character:"[",onUse:()=>{r(Object(kt.__unstableOutdentListItems)(t))}}),Object(je.createElement)(we.RichTextShortcut,{type:"primary",character:"]",onUse:()=>{r(Object(kt.__unstableIndentListItems)(t,{type:d}))}}),Object(je.createElement)(we.RichTextShortcut,{type:"primary",character:"m",onUse:()=>{r(Object(kt.__unstableIndentListItems)(t,{type:d}))}}),Object(je.createElement)(we.RichTextShortcut,{type:"primaryShift",character:"m",onUse:()=>{r(Object(kt.__unstableOutdentListItems)(t))}}),Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(_e.ToolbarButton,{icon:Object(ke.isRTL)()?nl:rl,title:Object(ke.__)("Unordered"),describedBy:Object(ke.__)("Convert to unordered list"),isActive:Object(kt.__unstableIsActiveListType)(t,"ul",d),onClick:()=>{r(Object(kt.__unstableChangeListType)(t,{type:"ul"})),o(),Object(kt.__unstableIsListRootSelected)(t)&&n({ordered:!1})}}),Object(je.createElement)(_e.ToolbarButton,{icon:Object(ke.isRTL)()?ol:al,title:Object(ke.__)("Ordered"),describedBy:Object(ke.__)("Convert to ordered list"),isActive:Object(kt.__unstableIsActiveListType)(t,"ol",d),onClick:()=>{r(Object(kt.__unstableChangeListType)(t,{type:"ol"})),o(),Object(kt.__unstableIsListRootSelected)(t)&&n({ordered:!0})}}),Object(je.createElement)(_e.ToolbarButton,{icon:Object(ke.isRTL)()?ll:cl,title:Object(ke.__)("Outdent"),describedBy:Object(ke.__)("Outdent list item"),shortcut:Object(ke._x)("Backspace","keyboard key"),isDisabled:!Object(kt.__unstableCanOutdentListItems)(t),onClick:()=>{r(Object(kt.__unstableOutdentListItems)(t)),o()}}),Object(je.createElement)(_e.ToolbarButton,{icon:Object(ke.isRTL)()?il:sl,title:Object(ke.__)("Indent"),describedBy:Object(ke.__)("Indent list item"),shortcut:Object(ke._x)("Space","keyboard key"),isDisabled:!Object(kt.__unstableCanIndentListItems)(t),onClick:()=>{r(Object(kt.__unstableIndentListItems)(t,{type:d})),o()}})))}),l&&Object(je.createElement)(ul,{setAttributes:n,ordered:l,reversed:s,start:u,placeholder:m}))},save:function(e){let{attributes:t}=e;const{ordered:n,values:r,type:o,reversed:a,start:l}=t,c=n?"ol":"ul";return Object(je.createElement)(c,we.useBlockProps.save({type:o,reversed:a,start:l}),Object(je.createElement)(we.RichText.Content,{value:r,multiline:"li"}))},deprecated:tl};var hl=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M11 14.5l1.1 1.1 3-3 .5-.5-.6-.6-3-3-1 1 1.7 1.7H5v1.5h7.7L11 14.5zM16.8 5h-7c-1.1 0-2 .9-2 2v1.5h1.5V7c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v10c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5v-1.5H7.8V17c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2z"}));const vl={apiVersion:2,name:"core/loginout",title:"Login/out",category:"theme",description:"Show login & logout links.",keywords:["login","logout","form"],textdomain:"default",attributes:{displayLoginAsForm:{type:"boolean",default:!1},redirectToCurrent:{type:"boolean",default:!0}},supports:{className:!0,typography:{fontSize:!1}}},{name:Ol}=vl,jl={icon:hl,edit:function(e){let{attributes:t,setAttributes:n}=e;const{displayLoginAsForm:r,redirectToCurrent:o}=t;return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Login/out settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Display login as form"),checked:r,onChange:()=>n({displayLoginAsForm:!r})}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Redirect to current URL"),checked:o,onChange:()=>n({redirectToCurrent:!o})}))),Object(je.createElement)("div",Object(we.useBlockProps)({className:"logged-in"}),Object(je.createElement)("a",{href:"#login-pseudo-link"},Object(ke.__)("Log out"))))}};var yl=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M3 18h8V6H3v12zM14 7.5V9h7V7.5h-7zm0 5.3h7v-1.5h-7v1.5zm0 3.7h7V15h-7v1.5z"})),fl=Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(_e.Path,{d:"M18 2l2 4h-2l-2-4h-3l2 4h-2l-2-4h-1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V2zm2 12H10V4.4L11.8 8H20z"}),Object(je.createElement)(_e.Path,{d:"M14 20H4V10h3V8H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3h-2z"}),Object(je.createElement)(_e.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"}));const _l=["image","video"];function kl(e,t){return e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${100*t.x}% ${100*t.y}%`:"50% 50%"}:{}}const wl=Object(je.forwardRef)((e,t)=>{let{isSelected:n,isStackedOnMobile:r,...o}=e;const a=Object(nt.useViewportMatch)("small","<");return Object(je.createElement)(_e.ResizableBox,Object(mt.a)({ref:t,showHandle:n&&(!a||!r)},o))});function El(e){let{mediaId:t,mediaUrl:n,onSelectMedia:r}=e;return Object(je.createElement)(we.BlockControls,{group:"other"},Object(je.createElement)(we.MediaReplaceFlow,{mediaId:t,mediaURL:n,allowedTypes:_l,accept:"image/*,video/*",onSelect:r}))}function Cl(e){let{className:t,noticeOperations:n,noticeUI:r,mediaUrl:o,onSelectMedia:a}=e;return Object(je.createElement)(we.MediaPlaceholder,{icon:Object(je.createElement)(we.BlockIcon,{icon:fl}),labels:{title:Object(ke.__)("Media area")},className:t,onSelect:a,accept:"image/*,video/*",allowedTypes:_l,notices:r,onError:e=>{n.removeAllNotices(),n.createErrorNotice(e)},disableMediaButtons:o})}var xl=Object(_e.withNotices)(Object(je.forwardRef)((function(e,t){const{className:n,commitWidthChange:r,focalPoint:o,imageFill:a,isSelected:l,isStackedOnMobile:c,mediaAlt:i,mediaId:s,mediaPosition:u,mediaType:m,mediaUrl:d,mediaWidth:b,onSelectMedia:p,onWidthChange:g}=e,h=!s&&Object(Pe.isBlobURL)(d),{toggleSelection:v}=Object(ze.useDispatch)(we.store);if(d){const O=()=>{v(!1)},j=(e,t,n)=>{g(parseInt(n.style.width))},y=(e,t,n)=>{v(!0),r(parseInt(n.style.width))},f={right:"left"===u,left:"right"===u},_="image"===m&&a?kl(d,o):{},k={image:()=>Object(je.createElement)("img",{src:d,alt:i}),video:()=>Object(je.createElement)("video",{controls:!0,src:d})};return Object(je.createElement)(wl,{as:"figure",className:tt()(n,"editor-media-container__resizer",{"is-transient":h}),style:_,size:{width:b+"%"},minWidth:"10%",maxWidth:"100%",enable:f,onResizeStart:O,onResize:j,onResizeStop:y,axis:"x",isSelected:l,isStackedOnMobile:c,ref:t},Object(je.createElement)(El,{onSelectMedia:p,mediaUrl:d,mediaId:s}),(k[m]||Me.noop)(),h&&Object(je.createElement)(_e.Spinner,null),Object(je.createElement)(Cl,e))}return Object(je.createElement)(Cl,e)})));const Sl=e=>{if(!e.customBackgroundColor)return e;const t={color:{background:e.customBackgroundColor}};return{...Object(Me.omit)(e,["customBackgroundColor"]),style:t}},Bl={align:{type:"string",default:"wide"},backgroundColor:{type:"string"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!0}};var Tl=[{attributes:{...Bl,customBackgroundColor:{type:"string"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},migrate:Sl,save(e){let{attributes:t}=e;const{backgroundColor:n,customBackgroundColor:r,isStackedOnMobile:o,mediaAlt:a,mediaPosition:l,mediaType:c,mediaUrl:i,mediaWidth:s,mediaId:u,verticalAlignment:m,imageFill:d,focalPoint:b,linkClass:p,href:g,linkTarget:h,rel:v}=t,O=Object(Me.isEmpty)(v)?void 0:v;let j=Object(je.createElement)("img",{src:i,alt:a,className:u&&"image"===c?"wp-image-"+u:null});g&&(j=Object(je.createElement)("a",{className:p,href:g,target:h,rel:O},j));const y={image:()=>j,video:()=>Object(je.createElement)("video",{controls:!0,src:i})},f=Object(we.getColorClassName)("background-color",n),_=tt()({"has-media-on-the-right":"right"===l,"has-background":f||r,[f]:f,"is-stacked-on-mobile":o,["is-vertically-aligned-"+m]:m,"is-image-fill":d}),k=d?kl(i,b):{};let w;50!==s&&(w="right"===l?`auto ${s}%`:s+"% auto");const E={backgroundColor:f?void 0:r,gridTemplateColumns:w};return Object(je.createElement)("div",{className:_,style:E},Object(je.createElement)("figure",{className:"wp-block-media-text__media",style:k},(y[c]||Me.noop)()),Object(je.createElement)("div",{className:"wp-block-media-text__content"},Object(je.createElement)(we.InnerBlocks.Content,null)))}},{attributes:{...Bl,customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},migrate:Sl,save(e){let{attributes:t}=e;const{backgroundColor:n,customBackgroundColor:r,isStackedOnMobile:o,mediaAlt:a,mediaPosition:l,mediaType:c,mediaUrl:i,mediaWidth:s,mediaId:u,verticalAlignment:m,imageFill:d,focalPoint:b}=t,p={image:()=>Object(je.createElement)("img",{src:i,alt:a,className:u&&"image"===c?"wp-image-"+u:null}),video:()=>Object(je.createElement)("video",{controls:!0,src:i})},g=Object(we.getColorClassName)("background-color",n),h=tt()({"has-media-on-the-right":"right"===l,[g]:g,"is-stacked-on-mobile":o,["is-vertically-aligned-"+m]:m,"is-image-fill":d}),v=d?kl(i,b):{};let O;50!==s&&(O="right"===l?`auto ${s}%`:s+"% auto");const j={backgroundColor:g?void 0:r,gridTemplateColumns:O};return Object(je.createElement)("div",{className:h,style:j},Object(je.createElement)("figure",{className:"wp-block-media-text__media",style:v},(p[c]||Me.noop)()),Object(je.createElement)("div",{className:"wp-block-media-text__content"},Object(je.createElement)(we.InnerBlocks.Content,null)))}},{attributes:{...Bl,customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"}},save(e){let{attributes:t}=e;const{backgroundColor:n,customBackgroundColor:r,isStackedOnMobile:o,mediaAlt:a,mediaPosition:l,mediaType:c,mediaUrl:i,mediaWidth:s}=t,u={image:()=>Object(je.createElement)("img",{src:i,alt:a}),video:()=>Object(je.createElement)("video",{controls:!0,src:i})},m=Object(we.getColorClassName)("background-color",n),d=tt()({"has-media-on-the-right":"right"===l,[m]:m,"is-stacked-on-mobile":o});let b;50!==s&&(b="right"===l?`auto ${s}%`:s+"% auto");const p={backgroundColor:m?void 0:r,gridTemplateColumns:b};return Object(je.createElement)("div",{className:d,style:p},Object(je.createElement)("figure",{className:"wp-block-media-text__media"},(u[c]||Me.noop)()),Object(je.createElement)("div",{className:"wp-block-media-text__content"},Object(je.createElement)(we.InnerBlocks.Content,null)))}}];var Nl=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"}));var Pl=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"}));const zl=[["core/paragraph",{fontSize:"large",placeholder:Object(ke._x)("Content…","content placeholder")}]],Il=e=>Math.max(15,Math.min(e,85));function Ml(e,t){var n,r,o;return null==e||null===(n=e.media_details)||void 0===n||null===(r=n.sizes)||void 0===r||null===(o=r[t])||void 0===o?void 0:o.source_url}var Rl=function(e){let{attributes:t,isSelected:n,setAttributes:r}=e;const{focalPoint:o,href:a,imageFill:l,isStackedOnMobile:c,linkClass:i,linkDestination:s,linkTarget:u,mediaAlt:m,mediaId:d,mediaPosition:b,mediaType:p,mediaUrl:g,mediaWidth:h,rel:v,verticalAlignment:O}=t,j=t.mediaSizeSlug||"full",y=Object(ze.useSelect)(e=>d&&n?e(It.store).getMedia(d):null,[n,d]),f=Object(je.useRef)(),_=e=>{const{style:t}=f.current.resizable,{x:n,y:r}=e;t.backgroundPosition=`${100*n}% ${100*r}%`},[k,w]=Object(je.useState)(null),E=function(e){let{attributes:{linkDestination:t,href:n},setAttributes:r}=e;return e=>{let o,a;var l,c,i,s,u;(o=e.media_type?"image"===e.media_type?"image":"video":e.type,"image"===o)&&(a=(null===(l=e.sizes)||void 0===l||null===(c=l.large)||void 0===c?void 0:c.url)||(null===(i=e.media_details)||void 0===i||null===(s=i.sizes)||void 0===s||null===(u=s.large)||void 0===u?void 0:u.source_url));let m=n;"media"===t&&(m=e.url),"attachment"===t&&(m=e.link),r({mediaAlt:e.alt,mediaId:e.id,mediaType:o,mediaUrl:a||e.url,mediaLink:e.link||void 0,href:m,focalPoint:void 0})}}({attributes:t,setAttributes:r}),C=e=>{r({mediaWidth:Il(e)}),w(Il(e))},x=tt()({"has-media-on-the-right":"right"===b,"is-selected":n,"is-stacked-on-mobile":c,["is-vertically-aligned-"+O]:O,"is-image-fill":l}),S=(k||h)+"%",B="right"===b?"1fr "+S:S+" 1fr",T={gridTemplateColumns:B,msGridColumns:B},N=Object(ze.useSelect)(e=>{const t=e(we.store).getSettings();return null==t?void 0:t.imageSizes},[]),P=Object(Me.map)(Object(Me.filter)(N,e=>{let{slug:t}=e;return Ml(y,t)}),e=>{let{name:t,slug:n}=e;return{value:n,label:t}}),z=Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Media & Text settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Stack on mobile"),checked:c,onChange:()=>r({isStackedOnMobile:!c})}),"image"===p&&Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Crop image to fill entire column"),checked:l,onChange:()=>r({imageFill:!l})}),l&&g&&"image"===p&&Object(je.createElement)(_e.FocalPointPicker,{label:Object(ke.__)("Focal point picker"),url:g,value:o,onChange:e=>r({focalPoint:e}),onDragStart:_,onDrag:_}),"image"===p&&Object(je.createElement)(_e.TextareaControl,{label:Object(ke.__)("Alt text (alternative text)"),value:m,onChange:e=>{r({mediaAlt:e})},help:Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(ke.__)("Describe the purpose of the image")),Object(ke.__)("Leave empty if the image is purely decorative."))}),"image"===p&&Object(je.createElement)(we.__experimentalImageSizeControl,{onChangeImage:e=>{const t=Ml(y,e);if(!t)return null;r({mediaUrl:t,mediaSizeSlug:e})},slug:j,imageSizeOptions:P,isResizable:!1}),g&&Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Media width"),value:k||h,onChange:C,min:15,max:85})),I=Object(we.useBlockProps)({className:x,style:T}),M=Object(we.useInnerBlocksProps)({className:"wp-block-media-text__content"},{template:zl});return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.InspectorControls,null,z),Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(we.BlockVerticalAlignmentControl,{onChange:e=>{r({verticalAlignment:e})},value:O}),Object(je.createElement)(_e.ToolbarButton,{icon:Nl,title:Object(ke.__)("Show media on left"),isActive:"left"===b,onClick:()=>r({mediaPosition:"left"})}),Object(je.createElement)(_e.ToolbarButton,{icon:Pl,title:Object(ke.__)("Show media on right"),isActive:"right"===b,onClick:()=>r({mediaPosition:"right"})}),"image"===p&&Object(je.createElement)(we.__experimentalImageURLInputUI,{url:a||"",onChangeUrl:e=>{r(e)},linkDestination:s,mediaType:p,mediaUrl:y&&y.source_url,mediaLink:y&&y.link,linkTarget:u,linkClass:i,rel:v})),Object(je.createElement)("div",I,Object(je.createElement)(xl,{className:"wp-block-media-text__media",onSelectMedia:E,onWidthChange:e=>{w(Il(e))},commitWidthChange:C,ref:f,focalPoint:o,imageFill:l,isSelected:n,isStackedOnMobile:c,mediaAlt:m,mediaId:d,mediaPosition:b,mediaType:p,mediaUrl:g,mediaWidth:h}),Object(je.createElement)("div",M)))};var Ll={from:[{type:"block",blocks:["core/image"],transform:e=>{let{alt:t,url:n,id:r,anchor:o}=e;return Object(Oe.createBlock)("core/media-text",{mediaAlt:t,mediaId:r,mediaUrl:n,mediaType:"image",anchor:o})}},{type:"block",blocks:["core/video"],transform:e=>{let{src:t,id:n,anchor:r}=e;return Object(Oe.createBlock)("core/media-text",{mediaId:n,mediaUrl:t,mediaType:"video",anchor:r})}}],to:[{type:"block",blocks:["core/image"],isMatch:e=>{let{mediaType:t,mediaUrl:n}=e;return!n||"image"===t},transform:e=>{let{mediaAlt:t,mediaId:n,mediaUrl:r,anchor:o}=e;return Object(Oe.createBlock)("core/image",{alt:t,id:n,url:r,anchor:o})}},{type:"block",blocks:["core/video"],isMatch:e=>{let{mediaType:t,mediaUrl:n}=e;return!n||"video"===t},transform:e=>{let{mediaId:t,mediaUrl:n,anchor:r}=e;return Object(Oe.createBlock)("core/video",{id:t,src:n,anchor:r})}}]};const Vl={apiVersion:2,name:"core/media-text",title:"Media & Text",category:"media",description:"Set media and words side-by-side for a richer layout.",keywords:["image","video"],textdomain:"default",attributes:{align:{type:"string",default:"wide"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},mediaSizeSlug:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}},editorStyle:"wp-block-media-text-editor",style:"wp-block-media-text"},{name:Al}=Vl,Hl={icon:yl,example:{viewportWidth:601,attributes:{mediaType:"image",mediaUrl:"https://s.w.org/images/core/5.3/Biologia_Centrali-Americana_-_Cantorchilus_semibadius_1902.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{content:Object(ke.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:Object(ke.__)("— Kobayashi Issa (一茶)")}}]},transforms:Ll,edit:Rl,save:function(e){let{attributes:t}=e;const{isStackedOnMobile:n,mediaAlt:r,mediaPosition:o,mediaType:a,mediaUrl:l,mediaWidth:c,mediaId:i,verticalAlignment:s,imageFill:u,focalPoint:m,linkClass:d,href:b,linkTarget:p,rel:g}=t,h=t.mediaSizeSlug||"full",v=Object(Me.isEmpty)(g)?void 0:g,O=tt()({["wp-image-"+i]:i&&"image"===a,["size-"+h]:i&&"image"===a});let j=Object(je.createElement)("img",{src:l,alt:r,className:O||null});b&&(j=Object(je.createElement)("a",{className:d,href:b,target:p,rel:v},j));const y={image:()=>j,video:()=>Object(je.createElement)("video",{controls:!0,src:l})},f=tt()({"has-media-on-the-right":"right"===o,"is-stacked-on-mobile":n,["is-vertically-aligned-"+s]:s,"is-image-fill":u}),_=u?kl(l,m):{};let k;50!==c&&(k="right"===o?`auto ${c}%`:c+"% auto");const w={gridTemplateColumns:k};return Object(je.createElement)("div",we.useBlockProps.save({className:f,style:w}),Object(je.createElement)("figure",{className:"wp-block-media-text__media",style:_},(y[a]||Me.noop)()),Object(je.createElement)("div",we.useInnerBlocksProps.save({className:"wp-block-media-text__content"})))},deprecated:Tl};var Fl=n("1CF3");var Dl=Object(ze.withDispatch)((e,t)=>{let{clientId:n,attributes:r}=t;const{replaceBlock:o}=e(we.store);return{convertToHTML(){o(n,Object(Oe.createBlock)("core/html",{content:r.originalUndelimitedContent}))}}})((function(e){let{attributes:t,convertToHTML:n}=e;const{originalName:r,originalUndelimitedContent:o}=t,a=!!o,l=Object(Oe.getBlockType)("core/html"),c=[];let i;return a&&l?(i=Object(ke.sprintf)(Object(ke.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.'),r),c.push(Object(je.createElement)(_e.Button,{key:"convert",onClick:n,variant:"primary"},Object(ke.__)("Keep as HTML")))):i=Object(ke.sprintf)(Object(ke.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'),r),Object(je.createElement)("div",Object(we.useBlockProps)({className:"has-warning"}),Object(je.createElement)(we.Warning,{actions:c},i),Object(je.createElement)(je.RawHTML,null,Object(Fl.safeHTML)(o)))}));const Gl={apiVersion:2,name:"core/missing",title:"Unsupported",category:"text",description:"Your site doesn’t include support for this block.",textdomain:"default",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1}},{name:ql}=Gl,Ul={name:ql,__experimentalLabel(e,t){let{context:n}=t;if("accessibility"===n){const{originalName:t}=e,n=t?Object(Oe.getBlockType)(t):void 0;return n?n.settings.title||t:""}},edit:Dl,save:function(e){let{attributes:t}=e;return Object(je.createElement)(je.RawHTML,null,t.originalContent)}};var Wl=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"}));const $l=Object(ke.__)("Read more");var Zl={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&"core/more"===e.dataset.block,transform(e){const{customText:t,noTeaser:n}=e.dataset,r={};return t&&(r.customText=t),""===n&&(r.noTeaser=!0),Object(Oe.createBlock)("core/more",r)}}]};const Kl={apiVersion:2,name:"core/more",title:"More",category:"design",description:"Content before this block will be shown in the excerpt on your archives page.",keywords:["read more"],textdomain:"default",attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}},supports:{customClassName:!1,className:!1,html:!1,multiple:!1},editorStyle:"wp-block-more-editor"},{name:Jl}=Kl,Ql={icon:Wl,example:{},__experimentalLabel(e,t){let{context:n}=t;if("accessibility"===n)return e.customText},transforms:Zl,edit:function(e){let{attributes:{customText:t,noTeaser:n},insertBlocksAfter:r,setAttributes:o}=e;const a={width:(t||$l).length+1.2+"em"};return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,null,Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Hide the excerpt on the full content page"),checked:!!n,onChange:()=>o({noTeaser:!n}),help:e=>e?Object(ke.__)("The excerpt is hidden."):Object(ke.__)("The excerpt is visible.")}))),Object(je.createElement)("div",Object(we.useBlockProps)(),Object(je.createElement)("div",{className:"wp-block-more"},Object(je.createElement)("input",{"aria-label":Object(ke.__)("Read more link text"),type:"text",value:t,placeholder:$l,onChange:e=>{o({customText:""!==e.target.value?e.target.value:void 0})},onKeyDown:e=>{let{keyCode:t}=e;t===dt.ENTER&&r([Object(Oe.createBlock)(Object(Oe.getDefaultBlockName)())])},style:a}))))},save:function(e){let{attributes:{customText:t,noTeaser:n}}=e;const r=t?`\x3c!--more ${t}--\x3e`:"\x3c!--more--\x3e",o=n?"\x3c!--noteaser--\x3e":"";return Object(je.createElement)(je.RawHTML,null,Object(Me.compact)([r,o]).join("\n"))}};var Yl=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})),Xl=n("OzlF");function ec(e){let{clientId:t,__experimentalFeatures:n}=e;const r=Object(ze.useSelect)(e=>e(we.store).__unstableGetClientIdsTree(t),[t]),o=Object(je.useRef)(),[a,l]=Object(je.useState)(300);return Object(je.useEffect)(()=>{var e,t;l(null!==(e=null==o||null===(t=o.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:300)},[]),Object(je.createElement)("div",{style:{minHeight:a}},Object(je.createElement)(we.__experimentalListView,{ref:o,blocks:r,showBlockMovers:!0,showNestedBlocks:!0,__experimentalFeatures:n}))}function tc(e){return Object(ze.useSelect)(t=>{const{getEditedEntityRecord:n,getEntityRecords:r,hasFinishedResolution:o}=t(It.store),a=["postType","wp_navigation",e],l=e?n(...a):null,c=!!e&&o("getEditedEntityRecord",a),i=["postType","wp_navigation",{per_page:-1}],s=r(...i),u=e?(null==s?void 0:s.length)>1:(null==s?void 0:s.length)>0;return{isNavigationMenuResolved:c,isNavigationMenuMissing:!e||c&&!l,canSwitchNavigationMenu:u,hasResolvedNavigationMenus:o("getEntityRecords",i),navigationMenu:l,navigationMenus:s}},[e])}var nc=n("iClF"),rc=n("rmEH");function oc(){const{menus:e,isResolvingMenus:t,hasResolvedMenus:n}=Object(ze.useSelect)(e=>{const{getMenus:t,isResolving:n,hasFinishedResolution:r}=e(It.store),o=[{per_page:-1}];return{menus:t(...o),isResolvingMenus:n("getMenus",o),hasResolvedMenus:r("getMenus",o)}},[]);return{menus:e,isResolvingMenus:t,hasResolvedMenus:n,hasMenus:!(!n||null==e||!e.length)}}function ac(e){const{menuItems:t,hasResolvedMenuItems:n}=Object(ze.useSelect)(t=>{const{getMenuItems:n,hasFinishedResolution:r}=t(It.store),o=void 0!==e,a=o?[{menus:e,per_page:-1}]:void 0;return{menuItems:o?n(...a):void 0,hasResolvedMenuItems:!!o&&r("getMenuItems",a)}},[e]);return{menuItems:t,hasResolvedMenuItems:n}}function lc(){const{pages:e,isResolvingPages:t,hasResolvedPages:n}=Object(ze.useSelect)(e=>{const{getEntityRecords:t,isResolving:n,hasFinishedResolution:r}=e(It.store),o=["postType","page",{parent:0,order:"asc",orderby:"id",per_page:-1}];return{pages:t(...o)||null,isResolvingPages:n("getEntityRecords",o),hasResolvedPages:r("getEntityRecords",o)}},[]);return{pages:e,isResolvingPages:t,hasResolvedPages:n,hasPages:!(!n||null==e||!e.length)}}var cc=n("cGtP");var ic=e=>{let{isLoading:t}=e;return Object(je.createElement)("ul",{className:tt()("wp-block-navigation-placeholder__preview","wp-block-navigation__container",{"is-loading":t})},Object(je.createElement)("li",{className:"wp-block-navigation-item"},"​"),Object(je.createElement)("li",{className:"wp-block-navigation-item"},"​"),Object(je.createElement)("li",{className:"wp-block-navigation-item"},"​"),Object(je.createElement)("li",{className:"wp-block-navigation-placeholder__preview-search-icon"},Object(je.createElement)(nc.a,{icon:cc.a})))};function sc(e){if(!e)return null;return function e(t){let n={};const r=Object(Me.sortBy)(t,"menu_order");return{innerBlocks:r.map(t=>{var r,o;if("block"===t.type){const[e]=Object(Oe.parse)(t.content.raw);return e||Object(Oe.createBlock)("core/freeform",{content:t.content})}const a=function(e){var t;let{title:n,xfn:r,classes:o,attr_title:a,object:l,object_id:c,description:i,url:s,type:u,target:m}=e;l&&"post_tag"===l&&(l="tag");return{label:(null==n?void 0:n.rendered)||"",...(null===(t=l)||void 0===t?void 0:t.length)&&{type:l},kind:(null==u?void 0:u.replace("_","-"))||"custom",url:s||"",...(null==r?void 0:r.length)&&r.join(" ").trim()&&{rel:r.join(" ").trim()},...(null==o?void 0:o.length)&&o.join(" ").trim()&&{className:o.join(" ").trim()},...(null==a?void 0:a.length)&&{title:a},...c&&"custom"!==l&&{id:c},...(null==i?void 0:i.length)&&{description:i},..."_blank"===m&&{opensInNewTab:!0}}}(t),{innerBlocks:l=[],mapping:c={}}=null!==(r=t.children)&&void 0!==r&&r.length?e(t.children):{};n={...n,...c};const i=null!==(o=t.children)&&void 0!==o&&o.length?"core/navigation-submenu":"core/navigation-link",s=Object(Oe.createBlock)(i,a,l);return n[t.id]=s.clientId,s}),mapping:n}}(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"id",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"parent";const r=Object.create(null),o=[];for(const a of e)r[a[t]]={...a,children:[]},a[n]?(r[a[n]]=r[a[n]]||{},r[a[n]].children=r[a[n]].children||[],r[a[n]].children.push(r[a[t]])):o.push(r[a[t]]);return o}(e))}function uc(e){let{title:t,finishButtonText:n=Object(ke.__)("Create"),onFinish:r,onRequestClose:o,value:a=""}=e;const[l,c]=Object(je.useState)(a);return Object(je.createElement)(_e.Modal,{title:t,closeLabel:Object(ke.__)("Cancel"),onRequestClose:o,overlayClassName:"wp-block-template-part__placeholder-create-new__title-form"},Object(je.createElement)("form",{onSubmit:e=>{e.preventDefault(),r(l)}},Object(je.createElement)(_e.TextControl,{label:Object(ke.__)("Name"),value:l,onChange:c}),Object(je.createElement)(_e.Flex,{className:"wp-block-template-part__placeholder-create-new__title-form-actions",justify:"flex-end"},Object(je.createElement)(_e.FlexItem,null,Object(je.createElement)(_e.Button,{variant:"secondary",onClick:()=>{o()}},Object(ke.__)("Cancel"))),Object(je.createElement)(_e.FlexItem,null,Object(je.createElement)(_e.Button,{variant:"primary",type:"submit",disabled:!l.length,"aria-disabled":!l.length},n)))))}const mc=e=>{let{canSwitchNavigationMenu:t,navigationMenus:n,setSelectedMenu:r,onFinish:o,menus:a,onCreateFromMenu:l}=e;return Object(je.createElement)(_e.DropdownMenu,{text:Object(ke.__)("Select menu"),icon:null,toggleProps:{variant:"tertiary",iconPosition:"right",className:"wp-block-navigation-placeholder__actions__dropdown"},popoverProps:{isAlternate:!0}},e=>{let{onClose:c}=e;return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.MenuGroup,{label:Object(ke.__)("Menus")},t&&(null==n?void 0:n.map(e=>Object(je.createElement)(_e.MenuItem,{onClick:()=>{r(e.id),o(e)},onClose:c,key:e.id},Object(rc.decodeEntities)(e.title.rendered))))),Object(je.createElement)(_e.MenuGroup,{label:Object(ke.__)("Classic Menus")},null==a?void 0:a.map(e=>Object(je.createElement)(_e.MenuItem,{onClick:()=>{r(e.id),l(e.name)},onClose:c,key:e.id},Object(rc.decodeEntities)(e.name)))))})};function dc(e){let{onFinish:t,canSwitchNavigationMenu:n,hasResolvedNavigationMenus:r}=e;const[o,a]=Object(je.useState)(),[l,c]=Object(je.useState)(!1),[i,s]=Object(je.useState)(""),[u,m]=Object(je.useState)(!1),[d,b]=Object(je.useState)(!1),{saveEntityRecord:p}=Object(ze.useDispatch)(It.store),g=Object(je.useCallback)((async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object(ke.__)("Untitled Navigation Menu"),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n={title:e,content:Object(Oe.serialize)(t),status:"publish"},r=await p("postType","wp_navigation",n);return r}),[Oe.serialize,p]),h=async(e,n)=>{const r=await g(e,n);t(r)},{isResolvingPages:v,menus:O,isResolvingMenus:j,menuItems:y,hasResolvedMenuItems:f,hasPages:_,hasMenus:k}=(w=o,{...lc(),...oc(),...ac(w)});var w;const E=v||j,C=Object(je.useCallback)(e=>{const{innerBlocks:t}=sc(y);h(e,t)},[y,sc,t]);Object(je.useEffect)(()=>{l&&f&&(C(i),c(!1))},[l,f,i]);const{navigationMenus:x}=tc();return Object(je.createElement)(je.Fragment,null,(!r||E)&&Object(je.createElement)(ic,{isLoading:!0}),r&&!E&&Object(je.createElement)(_e.Placeholder,{className:"wp-block-navigation-placeholder"},Object(je.createElement)(ic,null),Object(je.createElement)("div",{className:"wp-block-navigation-placeholder__controls"},Object(je.createElement)("div",{className:"wp-block-navigation-placeholder__actions"},Object(je.createElement)("div",{className:"wp-block-navigation-placeholder__actions__indicator"},Object(je.createElement)(nc.a,{icon:Yl})," ",Object(ke.__)("Navigation")),Object(je.createElement)("hr",null),k||x.length?Object(je.createElement)(je.Fragment,null,Object(je.createElement)(mc,{canSwitchNavigationMenu:n,navigationMenus:x,setSelectedMenu:a,onFinish:t,menus:O,onCreateFromMenu:e=>{f?C(e):(c(!0),s(e))}}),Object(je.createElement)("hr",null)):void 0,_?Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.Button,{variant:"tertiary",onClick:()=>{m(!0),b(!1)}},Object(ke.__)("Add all pages")),Object(je.createElement)("hr",null)):void 0,Object(je.createElement)(_e.Button,{variant:"tertiary",onClick:()=>{m(!0),b(!0)}},Object(ke.__)("Start empty"))))),u&&Object(je.createElement)(uc,{title:Object(ke.__)("Create your new navigation menu"),onRequestClose:()=>{m(!1)},onFinish:d?e=>{h(e,[])}:e=>{const t=[Object(Oe.createBlock)("core/page-list")];h(e,t),m(!0)}}))}var bc=n("w95h");function pc(e){let{children:t,id:n,isOpen:r,isResponsive:o,onToggle:a,isHiddenByDefault:l,classNames:c,styles:i}=e;if(!o)return t;const s=tt()("wp-block-navigation__responsive-container",c,{"is-menu-open":r,"hidden-by-default":l}),u=tt()("wp-block-navigation__responsive-container-open",{"always-shown":l}),m=n+"-modal";return Object(je.createElement)(je.Fragment,null,!r&&Object(je.createElement)(_e.Button,{"aria-haspopup":"true","aria-expanded":r,"aria-label":Object(ke.__)("Open menu"),className:u,onClick:()=>a(!0)},Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",role:"img","aria-hidden":"true",focusable:"false"},Object(je.createElement)(ye.Rect,{x:"4",y:"7.5",width:"16",height:"1.5"}),Object(je.createElement)(ye.Rect,{x:"4",y:"15",width:"16",height:"1.5"}))),Object(je.createElement)("div",{className:s,style:i,id:m},Object(je.createElement)("div",{className:"wp-block-navigation__responsive-close",tabIndex:"-1"},Object(je.createElement)("div",{className:"wp-block-navigation__responsive-dialog",role:"dialog","aria-modal":"true","aria-labelledby":m+"-title"},Object(je.createElement)(_e.Button,{className:"wp-block-navigation__responsive-container-close","aria-label":Object(ke.__)("Close menu"),onClick:()=>a(!1)},Object(je.createElement)(nc.a,{icon:bc.a})),Object(je.createElement)("div",{className:"wp-block-navigation__responsive-container-content",id:m+"-content"},t)))))}const gc=["core/navigation-link","core/search","core/social-links","core/page-list","core/spacer","core/home-link","core/site-title","core/site-logo","core/navigation-submenu"],hc=["core/navigation-link"],vc={type:"default",alignments:[]};function Oc(e){let{isVisible:t,clientId:n,appender:r,hasCustomPlaceholder:o,orientation:a}=e;const{isImmediateParentOfSelectedBlock:l,selectedBlockHasDescendants:c,isSelected:i}=Object(ze.useSelect)(e=>{var t;const{getClientIdsOfDescendants:r,hasSelectedInnerBlock:o,getSelectedBlockClientId:a}=e(we.store),l=a();return{isImmediateParentOfSelectedBlock:o(n,!1),selectedBlockHasDescendants:!(null===(t=r([l]))||void 0===t||!t.length),isSelected:l===n}},[n]),[s,u,m]=Object(It.useEntityBlockEditor)("postType","wp_navigation"),d=Object(je.useMemo)(()=>s.every(e=>{let{name:t}=e;return"core/navigation-link"===t||"core/navigation-submenu"===t||"core/page-list"===t}),[s]),b=!(!t||!(i||l&&!c))&&void 0,p=Object(je.useMemo)(()=>Object(je.createElement)(ic,null),[]),g=Object(we.useInnerBlocksProps)({className:"wp-block-navigation__container"},{value:s,onInput:u,onChange:m,allowedBlocks:gc,__experimentalDefaultBlock:hc,__experimentalDirectInsert:d,orientation:a,renderAppender:r||b,__experimentalCaptureToolbars:"vertical"!==a,templateLock:!1,__experimentalLayout:vc,placeholder:!t||o?void 0:p});return Object(je.createElement)(we.__experimentalBlockContentOverlay,{clientId:n,tagName:"div",wrapperProps:g})}function jc(e){let{onSelect:t,onCreateNew:n}=e;const{navigationMenus:r}=tc(),o=Object(It.useEntityId)("postType","wp_navigation");return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.MenuGroup,null,Object(je.createElement)(_e.MenuItemsChoice,{value:o,onSelect:e=>t(r.find(t=>t.id===e)),choices:r.map(e=>{let{id:t,title:n}=e;const r=Object(rc.decodeEntities)(n.rendered);return{value:t,label:r,"aria-label":Object(ke.sprintf)(Object(ke.__)("Switch to '%s'"),r)}})})),Object(je.createElement)(_e.MenuGroup,null,Object(je.createElement)(_e.MenuItem,{onClick:n},Object(ke.__)("Create new menu"))))}function yc(){const[e,t]=Object(It.useEntityProp)("postType","wp_navigation","title");return Object(je.createElement)(_e.TextControl,{label:Object(ke.__)("Menu name"),value:e,onChange:t})}function fc(){const[e,t]=Object(je.useState)(!1),n=Object(It.useEntityId)("postType","wp_navigation"),[r]=Object(It.useEntityProp)("postType","wp_navigation","title"),{editEntityRecord:o,saveEditedEntityRecord:a}=Object(ze.useDispatch)(It.store);return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.ToolbarButton,{onClick:()=>t(!0)},Object(ke.__)("Save as")),e&&Object(je.createElement)(uc,{title:Object(ke.__)("Save your new navigation menu"),value:r,onRequestClose:()=>t(!1),finishButtonText:Object(ke.__)("Save"),onFinish:e=>{o("postType","wp_navigation",n,{title:e,status:"publish"}),a("postType","wp_navigation",n)}}))}function _c(e,t){return e&&t?e+"//"+t:null}const kc=()=>{},wc={},Ec=["postType","wp_navigation",{status:"draft",per_page:-1}];function Cc(e){let{blockProps:t,blocks:n,clientId:r,hasSavedUnsavedInnerBlocks:o,onSave:a,hasSelection:l}=e;const c=Object(je.useContext)(_e.Disabled.Context),i=Object(je.useRef)(!1),s=Object(we.useInnerBlocksProps)(t,{renderAppender:!!l&&void 0,value:n,onChange:kc,onInput:kc}),{saveEntityRecord:u}=Object(ze.useDispatch)(It.store),{isSaving:m,draftNavigationMenus:d,hasResolvedDraftNavigationMenus:b}=Object(ze.useSelect)(e=>{if(c)return wc;const{getEntityRecords:t,hasFinishedResolution:n,isSavingEntityRecord:r}=e(It.store);return{isSaving:r("postType","wp_navigation"),draftNavigationMenus:t(...Ec),hasResolvedDraftNavigationMenus:n("getEntityRecords",Ec)}},[c]),{hasResolvedNavigationMenus:p,navigationMenus:g}=tc(),h=Object(je.useCallback)(async e=>{const t={title:e,content:Object(Oe.serialize)(n),status:"draft"};return await u("postType","wp_navigation",t)},[n,Oe.serialize,u]),v=function(e){return Object(ze.useSelect)(t=>{if(!e)return;const{getBlock:n,getBlockParentsByBlockName:r}=t(we.store),o=r(e,"core/template-part",!0);if(null==o||!o.length)return;const a=t("core/editor").__experimentalGetDefaultTemplatePartAreas(),{getEditedEntityRecord:l}=t(It.store);for(const e of o){const t=n(e),{theme:r,slug:o}=t.attributes,i=l("postType","wp_template_part",_c(r,o));var c;if(null!=i&&i.area)return null===(c=a.find(e=>"uncategorized"!==e.area&&e.area===i.area))||void 0===c?void 0:c.label}},[e])}(c?void 0:r);return Object(je.useEffect)(async()=>{if(c||o||m||i.current||!b||!p||!l)return;i.current=!0;const e=v?Object(ke.sprintf)(Object(ke.__)("%s navigation"),v):Object(ke.__)("Navigation"),t=[...d,...g].reduce((t,n)=>{var r,o;return null!=n&&null!==(r=n.title)&&void 0!==r&&null!==(o=r.raw)&&void 0!==o&&o.startsWith(e)?t+1:t},0),n=t>0?`${e} ${t+1}`:e,r=await h(n);a(r),i.current=!1},[c,m,b,p,d,g,l,h,v]),Object(je.createElement)(je.Fragment,null,Object(je.createElement)("nav",t,Object(je.createElement)("div",{className:"wp-block-navigation__unsaved-changes"},Object(je.createElement)(_e.Disabled,{className:tt()("wp-block-navigation__unsaved-changes-overlay",{"is-saving":l})},Object(je.createElement)("div",s)),l&&Object(je.createElement)(_e.Spinner,null))))}function xc(e){let{onDelete:t}=e;const[n,r]=Object(je.useState)(!1),o=Object(It.useEntityId)("postType","wp_navigation"),[a]=Object(It.useEntityProp)("postType","wp_navigation","title"),{deleteEntityRecord:l}=Object(ze.useDispatch)(It.store);return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.Button,{className:"wp-block-navigation-delete-menu-button",variant:"secondary",isDestructive:!0,onClick:()=>{r(!0)}},Object(ke.__)("Delete menu")),n&&Object(je.createElement)(_e.Modal,{title:Object(ke.sprintf)(Object(ke.__)("Delete %s"),a),closeLabel:Object(ke.__)("Cancel"),onRequestClose:()=>r(!1)},Object(je.createElement)("p",null,Object(ke.__)("Are you sure you want to delete this navigation menu?")),Object(je.createElement)(_e.Flex,{justify:"flex-end"},Object(je.createElement)(_e.FlexItem,null,Object(je.createElement)(_e.Button,{variant:"secondary",onClick:()=>{r(!1)}},Object(ke.__)("Cancel"))),Object(je.createElement)(_e.FlexItem,null,Object(je.createElement)(_e.Button,{variant:"primary",onClick:()=>{l("postType","wp_navigation",o,{force:!0}),t()}},Object(ke.__)("Confirm"))))))}function Sc(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function Bc(e,t,n){if(!e)return;t(Sc(e).color);let r=e,o=Sc(r).backgroundColor;for(;"rgba(0, 0, 0, 0)"===o&&r.parentNode&&r.parentNode.nodeType===r.parentNode.ELEMENT_NODE;)r=r.parentNode,o=Sc(r).backgroundColor;n(o)}var Tc=Object(we.withColors)({textColor:"color"},{backgroundColor:"color"},{overlayBackgroundColor:"color"},{overlayTextColor:"color"})((function(e){let{attributes:t,setAttributes:n,clientId:r,isSelected:o,className:a,backgroundColor:l,setBackgroundColor:c,textColor:i,setTextColor:s,overlayBackgroundColor:u,setOverlayBackgroundColor:m,overlayTextColor:d,setOverlayTextColor:b,context:{navigationArea:p},hasSubmenuIndicatorSetting:g=!0,hasColorSettings:h=!0,customPlaceholder:v=null,customAppender:O=null}=e;const{openSubmenusOnClick:j,overlayMenu:y,showSubmenuIcon:f,layout:{justifyContent:_,orientation:k="horizontal"}={}}=t,[w,E]=Object(It.useEntityProp)("root","navigationArea","navigation",p),C=p?0===w?void 0:w:t.navigationMenuId,x=Object(je.useCallback)(e=>{n({navigationMenuId:e}),p&&E(e)},[p]),[S,B]=Object(we.__experimentalUseNoRecursiveRenders)("navigationMenu/"+C),{innerBlocks:T,isInnerBlockSelected:N}=Object(ze.useSelect)(e=>{const{getBlocks:t,hasSelectedInnerBlock:n}=e(we.store);return{innerBlocks:t(r),isInnerBlockSelected:n(r,!0)}},[r]),P=!!T.length,{replaceInnerBlocks:z,selectBlock:I,__unstableMarkNextChangeAsNotPersistent:M}=Object(ze.useDispatch)(we.store),[R,L]=Object(je.useState)(!1),V=p&&!C,[A,H]=Object(je.useState)(!P||V),[F,D]=Object(je.useState)(!1),{isNavigationMenuResolved:G,isNavigationMenuMissing:q,canSwitchNavigationMenu:U,hasResolvedNavigationMenus:W,navigationMenus:$,navigationMenu:Z}=tc(C),K=Object(je.useRef)(),J="draft"===(null==Z?void 0:Z.status),{listViewToolbarButton:Q,listViewModal:Y}=function(e,t){const[n,r]=Object(je.useState)(!1);return{listViewToolbarButton:Object(je.createElement)(_e.ToolbarButton,{className:"components-toolbar__control",label:Object(ke.__)("Open list view"),onClick:()=>r(!0),icon:Xl.a}),listViewModal:n&&Object(je.createElement)(_e.Modal,{title:Object(ke.__)("List View"),closeLabel:Object(ke.__)("Close"),onRequestClose:()=>{r(!1)},shouldCloseOnClickOutside:!1},Object(je.createElement)(ec,{clientId:e,__experimentalFeatures:t}))}}(r),X=!q&&G,ee=Object(we.useBlockProps)({ref:K,className:tt()(a,{"items-justified-right":"right"===_,"items-justified-space-between":"space-between"===_,"is-responsive":"never"!==y,"has-text-color":!!i.color||!(null==i||!i.class),[Object(we.getColorClassName)("color",null==i?void 0:i.slug)]:!(null==i||!i.slug),"has-background":!!l.color||l.class,[Object(we.getColorClassName)("background-color",null==l?void 0:l.slug)]:!(null==l||!l.slug)}),style:{color:!(null!=i&&i.slug)&&(null==i?void 0:i.color),backgroundColor:!(null!=l&&l.slug)&&(null==l?void 0:l.color)}}),te=tt()({"has-text-color":!!d.color||!(null==d||!d.class),[Object(we.getColorClassName)("color",null==d?void 0:d.slug)]:!(null==d||!d.slug),"has-background":!!u.color||(null==u?void 0:u.class),[Object(we.getColorClassName)("background-color",null==u?void 0:u.slug)]:!(null==u||!u.slug)}),ne={color:!(null!=d&&d.slug)&&(null==d?void 0:d.color),backgroundColor:!(null!=u&&u.slug)&&(null==u?void 0:u.color)&&u.color},re="web"===je.Platform.OS,[oe,ae]=Object(je.useState)(),[le,ce]=Object(je.useState)(),[ie,se]=Object(je.useState)(),[ue,me]=Object(je.useState)();if(Object(je.useEffect)(()=>{k&&(M(),n({orientation:k}))},[k]),Object(je.useEffect)(()=>{if(!re)return;Bc(K.current,ce,ae);const e=K.current.querySelector('[data-type="core/navigation-link"] [data-type="core/navigation-link"]');e&&Bc(e,me,se)}),Object(je.useEffect)(()=>{H(!X)},[X]),P&&!X&&!V)return Object(je.createElement)(Cc,{blockProps:ee,blocks:T,clientId:r,navigationMenus:$,hasSelection:o||N,hasSavedUnsavedInnerBlocks:R,onSave:e=>{L(!0),x(e.id)}});if(C&&q)return Object(je.createElement)("div",ee,Object(je.createElement)(we.Warning,null,Object(ke.__)("Navigation menu has been deleted or is unavailable")));if(X&&S)return Object(je.createElement)("div",ee,Object(je.createElement)(we.Warning,null,Object(ke.__)("Block cannot be rendered inside itself.")));const de=v||dc;return Object(je.createElement)(It.EntityProvider,{kind:"postType",type:"wp_navigation",id:C},Object(je.createElement)(B,null,Object(je.createElement)(we.BlockControls,null,!J&&X&&Object(je.createElement)(_e.ToolbarGroup,null,Object(je.createElement)(_e.ToolbarDropdownMenu,{label:Object(ke.__)("Select Menu"),text:Object(ke.__)("Select Menu"),icon:null},e=>{let{onClose:t}=e;return Object(je.createElement)(jc,{onSelect:e=>{let{id:n}=e;x(n),t()},onCreateNew:()=>{p&&E(0),n({navigationMenuId:void 0}),H(!0)}})})),Object(je.createElement)(_e.ToolbarGroup,null,Q),J&&Object(je.createElement)(_e.ToolbarGroup,null,Object(je.createElement)(fc,null))),Y,Object(je.createElement)(we.InspectorControls,null,g&&Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Display")},Object(je.createElement)("h3",null,Object(ke.__)("Overlay Menu")),Object(je.createElement)(_e.__experimentalToggleGroupControl,{label:Object(ke.__)("Configure overlay menu"),value:y,help:Object(ke.__)("Collapses the navigation options in a menu icon opening an overlay."),onChange:e=>n({overlayMenu:e}),isBlock:!0,hideLabelFromVision:!0},Object(je.createElement)(_e.__experimentalToggleGroupControlOption,{value:"never",label:Object(ke.__)("Off")}),Object(je.createElement)(_e.__experimentalToggleGroupControlOption,{value:"mobile",label:Object(ke.__)("Mobile")}),Object(je.createElement)(_e.__experimentalToggleGroupControlOption,{value:"always",label:Object(ke.__)("Always")})),Object(je.createElement)("h3",null,Object(ke.__)("Submenus")),Object(je.createElement)(_e.ToggleControl,{checked:j,onChange:e=>{n({openSubmenusOnClick:e})},label:Object(ke.__)("Open on click")}),!t.openSubmenusOnClick&&Object(je.createElement)(_e.ToggleControl,{checked:f,onChange:e=>{n({showSubmenuIcon:e})},label:Object(ke.__)("Show icons")})),h&&Object(je.createElement)(we.PanelColorSettings,{__experimentalHasMultipleOrigins:!0,title:Object(ke.__)("Color"),initialOpen:!1,colorSettings:[{value:i.color,onChange:s,label:Object(ke.__)("Text")},{value:l.color,onChange:c,label:Object(ke.__)("Background")},{value:d.color,onChange:b,label:Object(ke.__)("Submenu & overlay text")},{value:u.color,onChange:m,label:Object(ke.__)("Submenu & overlay background")}]},re&&Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.ContrastChecker,{backgroundColor:oe,textColor:le}),Object(je.createElement)(we.ContrastChecker,{backgroundColor:ie,textColor:ue})))),X&&Object(je.createElement)(we.InspectorControls,{__experimentalGroup:"advanced"},Object(je.createElement)(yc,null),Object(je.createElement)(xc,{onDelete:()=>{z(r,[]),p&&E(0),n({navigationMenuId:void 0}),H(!0)}})),Object(je.createElement)("nav",ee,!X&&A&&Object(je.createElement)(de,{onFinish:e=>{H(!1),x(e.id),I(r)},canSwitchNavigationMenu:U,hasResolvedNavigationMenus:W}),!X&&!A&&Object(je.createElement)(ic,{isLoading:!0}),!A&&Object(je.createElement)(pc,{id:r,onToggle:D,isOpen:F,isResponsive:"never"!==y,isHiddenByDefault:"always"===y,classNames:te,styles:ne},X&&Object(je.createElement)(Oc,{isVisible:!A,clientId:r,appender:O,hasCustomPlaceholder:!!v,orientation:k})))))}));const Nc={fontStyle:"var:preset|font-style|",fontWeight:"var:preset|font-weight|",textDecoration:"var:preset|text-decoration|",textTransform:"var:preset|text-transform|"},Pc=e=>{if(e.layout)return e;const{itemsJustification:t,orientation:n}=e,r={...e};return(t||n)&&(Object.assign(r,{layout:{type:"flex",justifyContent:t||"left",orientation:n||"horizontal"}}),delete r.itemsJustification,delete r.orientation),r};var zc=[{attributes:{navigationMenuId:{type:"number"},orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"never"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},save:()=>Object(je.createElement)(we.InnerBlocks.Content,null),isEligible:e=>{let{itemsJustification:t,orientation:n}=e;return!!t||!!n},migrate:Pc},{attributes:{orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"never"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},save:()=>Object(je.createElement)(we.InnerBlocks.Content,null),migrate:Object(nt.compose)(Pc,at),isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}},{attributes:{orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},isResponsive:{type:"boolean",default:"false"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0}},isEligible:e=>e.isResponsive,migrate:Object(nt.compose)(Pc,at,(function(e){return delete e.isResponsive,{...e,overlayMenu:"mobile"}})),save:()=>Object(je.createElement)(we.InnerBlocks.Content,null)},{attributes:{orientation:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,fontSize:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,color:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0},save:()=>Object(je.createElement)(we.InnerBlocks.Content,null),isEligible(e){if(!e.style||!e.style.typography)return!1;for(const t in Nc){const n=e.style.typography[t];if(n&&n.startsWith(Nc[t]))return!0}return!1},migrate:Object(nt.compose)(Pc,at,(function(e){return{...e,style:{...e.style,typography:Object(Me.mapValues)(e.style.typography,(e,t)=>{const n=Nc[t];if(n&&e.startsWith(n)){const r=e.slice(n.length);return"textDecoration"===t&&"strikethrough"===r?"line-through":r}return e})}}}))},{attributes:{className:{type:"string"},textColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean"}},isEligible:e=>e.rgbTextColor||e.rgbBackgroundColor,supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0},migrate:e=>({...Object(Me.omit)(e,["rgbTextColor","rgbBackgroundColor"]),customTextColor:e.textColor?void 0:e.rgbTextColor,customBackgroundColor:e.backgroundColor?void 0:e.rgbBackgroundColor}),save:()=>Object(je.createElement)(we.InnerBlocks.Content,null)}];const Ic={apiVersion:2,name:"core/navigation",title:"Navigation",category:"theme",description:"A collection of blocks that allow visitors to get around your site.",keywords:["menu","navigation","links"],textdomain:"default",attributes:{navigationMenuId:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"mobile"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},usesContext:["navigationArea"],providesContext:{textColor:"textColor",customTextColor:"customTextColor",backgroundColor:"backgroundColor",customBackgroundColor:"customBackgroundColor",overlayTextColor:"overlayTextColor",customOverlayTextColor:"customOverlayTextColor",overlayBackgroundColor:"overlayBackgroundColor",customOverlayBackgroundColor:"customOverlayBackgroundColor",fontSize:"fontSize",customFontSize:"customFontSize",showSubmenuIcon:"showSubmenuIcon",openSubmenusOnClick:"openSubmenusOnClick",style:"style",orientation:"orientation"},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}},__experimentalLayout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex",setCascadingProperties:!0}}},viewScript:"file:./view.min.js",editorStyle:"wp-block-navigation-editor",style:"wp-block-navigation"},{name:Mc}=Ic,Rc={icon:Yl,example:{innerBlocks:[{name:"core/navigation-link",attributes:{label:Object(ke.__)("Home"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:Object(ke.__)("About"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:Object(ke.__)("Contact"),url:"https://make.wordpress.org/"}}]},edit:Tc,save:function(e){let{attributes:t}=e;if(!t.navigationMenuId)return Object(je.createElement)(we.InnerBlocks.Content,null)},deprecated:zc};var Lc=Object(je.createElement)(ye.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M12.5 14.5h-1V16h1c2.2 0 4-1.8 4-4s-1.8-4-4-4h-1v1.5h1c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5zm-4 1.5v-1.5h-1C6.1 14.5 5 13.4 5 12s1.1-2.5 2.5-2.5h1V8h-1c-2.2 0-4 1.8-4 4s1.8 4 4 4h1zm-1-3.2h5v-1.5h-5v1.5zM18 4H9c-1.1 0-2 .9-2 2v.5h1.5V6c0-.3.2-.5.5-.5h9c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5v-.5H7v.5c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z"}));var Vc=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M2 12c0 3.6 2.4 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.5 0-4.5-1.5-4.5-4s2-4.5 4.5-4.5h3.5V6H8c-3.6 0-6 2.4-6 6zm19.5-1h-8v1.5h8V11zm0 5h-8v1.5h8V16zm0-10h-8v1.5h8V6z"}));const{name:Ac}={apiVersion:2,name:"core/navigation-link",title:"Custom Link",category:"design",parent:["core/navigation"],description:"Add a page, link, or another item to your navigation.",textdomain:"default",attributes:{label:{type:"string"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"},title:{type:"string"},kind:{type:"string"},isTopLevelLink:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style"],supports:{reusable:!1,html:!1,__experimentalSlashInserter:!0},editorStyle:"wp-block-navigation-link-editor",style:"wp-block-navigation-link"};function Hc(e,t){switch(e){case"post":case"page":return{type:"post",subtype:e};case"category":return{type:"term",subtype:"category"};case"tag":return{type:"term",subtype:"post_tag"};case"post_format":return{type:"post-format"};default:return"taxonomy"===t?{type:"term",subtype:e}:"post-type"===t?{type:"post",subtype:e}:{}}}function Fc(e){const t=document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body.textContent||""}function Dc(e){let{block:t,transforms:n,replace:r}=e;return Object(je.createElement)("div",{className:"link-control-transform"},Object(je.createElement)("h3",{className:"link-control-transform__subheading"},Object(ke.__)("Transform")),Object(je.createElement)("div",{className:"link-control-transform__items"},n.map((e,n)=>Object(je.createElement)(_e.Button,{key:"transform-"+n,onClick:()=>r(t.clientId,Object(Oe.switchToBlockType)(t,e.name)),className:"link-control-transform__item"},Object(je.createElement)(we.BlockIcon,{icon:e.icon}),e.title))))}var Gc=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M4 14.5h16V16H4zM4 18.5h9V20H4zM4 4h3c2 0 3 .86 3 2.583 0 .891-.253 1.554-.76 1.988-.505.435-1.24.652-2.204.652H5.542V12H4V4zm2.855 4c.53 0 .924-.114 1.18-.343.266-.228.398-.579.398-1.051 0-.473-.132-.82-.397-1.04-.265-.229-.67-.343-1.217-.343H5.542V8h1.313z"}));var qc=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));var Uc=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M20.1 11.2l-6.7-6.7c-.1-.1-.3-.2-.5-.2H5c-.4-.1-.8.3-.8.7v7.8c0 .2.1.4.2.5l6.7 6.7c.2.2.5.4.7.5s.6.2.9.2c.3 0 .6-.1.9-.2.3-.1.5-.3.8-.5l5.6-5.6c.4-.4.7-1 .7-1.6.1-.6-.2-1.2-.6-1.6zM19 13.4L13.4 19c-.1.1-.2.1-.3.2-.2.1-.4.1-.6 0-.1 0-.2-.1-.3-.2l-6.5-6.5V5.8h6.8l6.5 6.5c.2.2.2.4.2.6 0 .1 0 .3-.2.5zM9 8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"}));var Wc=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4zm.8-4l.7.7 2-2V12h1V9.2l2 2 .7-.7-2-2H12v-1H9.2l2-2-.7-.7-2 2V4h-1v2.8l-2-2-.7.7 2 2H4v1h2.8l-2 2z"}));const $c=[{name:"link",isDefault:!0,title:Object(ke.__)("Custom Link"),description:Object(ke.__)("A link to a custom URL."),attributes:{}},{name:"post",icon:Gc,title:Object(ke.__)("Post Link"),description:Object(ke.__)("A link to a post."),attributes:{type:"post",kind:"post-type"}},{name:"page",icon:qc,title:Object(ke.__)("Page Link"),description:Object(ke.__)("A link to a page."),attributes:{type:"page",kind:"post-type"}},{name:"category",icon:At,title:Object(ke.__)("Category Link"),description:Object(ke.__)("A link to a category."),attributes:{type:"category",kind:"taxonomy"}},{name:"tag",icon:Uc,title:Object(ke.__)("Tag Link"),description:Object(ke.__)("A link to a tag."),attributes:{type:"tag",kind:"taxonomy"}}];$c.forEach(e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)});var Zc=$c;function Kc(e){switch(e){case"post":return Gc;case"page":return qc;case"tag":return Uc;case"category":return At;default:return Wc}}var Jc={from:[{type:"block",blocks:["core/site-logo"],transform:()=>Object(Oe.createBlock)("core/navigation-link")},{type:"block",blocks:["core/spacer"],transform:()=>Object(Oe.createBlock)("core/navigation-link")},{type:"block",blocks:["core/home-link"],transform:()=>Object(Oe.createBlock)("core/navigation-link")},{type:"block",blocks:["core/social-links"],transform:()=>Object(Oe.createBlock)("core/navigation-link")},{type:"block",blocks:["core/search"],transform:()=>Object(Oe.createBlock)("core/navigation-link")}],to:[{type:"block",blocks:["core/navigation-submenu"],transform:(e,t)=>Object(Oe.createBlock)("core/navigation-submenu",e,t)},{type:"block",blocks:["core/spacer"],transform:()=>Object(Oe.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],transform:()=>Object(Oe.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],transform:()=>Object(Oe.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],transform:()=>Object(Oe.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],transform:()=>Object(Oe.createBlock)("core/search",{showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"})}]};const Qc={apiVersion:2,name:"core/navigation-link",title:"Custom Link",category:"design",parent:["core/navigation"],description:"Add a page, link, or another item to your navigation.",textdomain:"default",attributes:{label:{type:"string"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"},title:{type:"string"},kind:{type:"string"},isTopLevelLink:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style"],supports:{reusable:!1,html:!1,__experimentalSlashInserter:!0},editorStyle:"wp-block-navigation-link-editor",style:"wp-block-navigation-link"},{name:Yc}=Qc,Xc={icon:Lc,__experimentalLabel:e=>{let{label:t}=e;return t},merge(e,t){let{label:n=""}=t;return{...e,label:e.label+n}},edit:function(e){let{attributes:t,isSelected:n,setAttributes:r,insertBlocksAfter:o,mergeBlocks:a,onReplace:l,context:c,clientId:i}=e;const{label:s,type:u,opensInNewTab:m,url:d,description:b,rel:p,title:g,kind:h}=t,v={url:d,opensInNewTab:m,title:s&&Fc(s)},{saveEntityRecord:O}=Object(ze.useDispatch)(It.store),{replaceBlock:j,__unstableMarkNextChangeAsNotPersistent:y}=Object(ze.useDispatch)(we.store),[f,_]=Object(je.useState)(!1),k=Object(je.useRef)(null),w=(e=>{const[t,n]=Object(je.useState)(!1);return Object(je.useEffect)(()=>{const{ownerDocument:t}=e.current;function r(e){a(e)}function o(){n(!1)}function a(t){e.current.contains(t.target)?n(!0):n(!1)}return t.addEventListener("dragstart",r),t.addEventListener("dragend",o),t.addEventListener("dragenter",a),()=>{t.removeEventListener("dragstart",r),t.removeEventListener("dragend",o),t.removeEventListener("dragenter",a)}},[]),t})(k),E=Object(ke.__)("Add link…"),C=Object(je.useRef)(),{innerBlocks:x,isAtMaxNesting:S,isTopLevelLink:B,isParentOfSelectedBlock:T,hasDescendants:N,userCanCreatePages:P,userCanCreatePosts:z,thisBlock:I,blockTransforms:M}=Object(ze.useSelect)(e=>{var t;const{getBlock:n,getBlocks:r,getBlockName:o,getBlockRootClientId:a,getClientIdsOfDescendants:l,hasSelectedInnerBlock:c,getSelectedBlockClientId:s,getBlockParentsByBlockName:u,getBlockTransformItems:m}=e(we.store),d=s(),b=l([i]).length;return{innerBlocks:r(i),isAtMaxNesting:u(i,[Ac,"core/navigation-submenu"]).length>=5,isTopLevelLink:"core/navigation"===o(a(i)),isParentOfSelectedBlock:c(i,!0),isImmediateParentOfSelectedBlock:c(i,!1),hasDescendants:!!b,selectedBlockHasDescendants:!(null===(t=l([d]))||void 0===t||!t.length),userCanCreatePages:e(It.store).canUser("create","pages"),userCanCreatePosts:e(It.store).canUser("create","posts"),thisBlock:n(i),blockTransforms:m([n(i)],a(i))}},[i]);function R(){const e=Object(Oe.createBlock)("core/navigation-submenu",t,x);j(i,e)}Object(je.useEffect)(()=>{y(),r({isTopLevelLink:B})},[B]);const L=["core/site-logo","core/social-links","core/search"],V=M.filter(e=>L.includes(e.name));Object(je.useEffect)(()=>{d||_(!0),N&&R()},[]),Object(je.useEffect)(()=>{n||_(!1)},[n]),Object(je.useEffect)(()=>{f&&d&&(Object(Kr.isURL)(Object(Kr.prependHTTP)(s))&&/^.+\.[a-z]+/.test(s)?function(){C.current.focus();const{ownerDocument:e}=C.current,{defaultView:t}=e,n=t.getSelection(),r=e.createRange();r.selectNodeContents(C.current),n.removeAllRanges(),n.addRange(r)}():Object(Fl.placeCaretAtHorizontalEdge)(C.current,!0))},[d]);let A=!1;u&&"page"!==u?"post"===u&&(A=z):A=P;const{textColor:H,customTextColor:F,backgroundColor:D,customBackgroundColor:G}=function(e,t){var n,r;const{textColor:o,customTextColor:a,backgroundColor:l,customBackgroundColor:c,overlayTextColor:i,customOverlayTextColor:s,overlayBackgroundColor:u,customOverlayBackgroundColor:m,style:d}=e,b={};return t&&s?b.customTextColor=s:t&&i?b.textColor=i:a?b.customTextColor=a:o?b.textColor=o:null!=d&&null!==(n=d.color)&&void 0!==n&&n.text&&(b.customTextColor=d.color.text),t&&m?b.customBackgroundColor=m:t&&u?b.backgroundColor=u:c?b.customBackgroundColor=c:l?b.backgroundColor=l:null!=d&&null!==(r=d.color)&&void 0!==r&&r.background&&(b.customTextColor=d.color.background),b}(c,!B),q=Object(we.useBlockProps)({ref:k,className:tt()("wp-block-navigation-item",{"is-editing":n||T,"is-dragging-within":w,"has-link":!!d,"has-child":N,"has-text-color":!!H||!!F,[Object(we.getColorClassName)("color",H)]:!!H,"has-background":!!D||G,[Object(we.getColorClassName)("background-color",D)]:!!D}),style:{color:!H&&F,backgroundColor:!D&&G},onKeyDown:function(e){(dt.isKeyboardEvent.primary(e,"k")||!d&&e.keyCode===dt.ENTER)&&_(!0)}});d||(q.onClick=()=>_(!0));const U=tt()("wp-block-navigation-item__content",{"wp-block-navigation-link__placeholder":!d});let W="";switch(u){case"post":W=Object(ke.__)("Select post");break;case"page":W=Object(ke.__)("Select page");break;case"category":W=Object(ke.__)("Select category");break;case"tag":W=Object(ke.__)("Select tag");break;default:W=Object(ke.__)("Add link")}return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(_e.ToolbarGroup,null,Object(je.createElement)(_e.ToolbarButton,{name:"link",icon:bt.a,title:Object(ke.__)("Link"),shortcut:dt.displayShortcut.primary("k"),onClick:()=>_(!0)}),!S&&Object(je.createElement)(_e.ToolbarButton,{name:"submenu",icon:Vc,title:Object(ke.__)("Add submenu"),onClick:R}))),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Link settings")},Object(je.createElement)(_e.TextareaControl,{value:b||"",onChange:e=>{r({description:e})},label:Object(ke.__)("Description"),help:Object(ke.__)("The description will be displayed in the menu if the current theme supports it.")}),Object(je.createElement)(_e.TextControl,{value:g||"",onChange:e=>{r({title:e})},label:Object(ke.__)("Link title"),autoComplete:"off"}),Object(je.createElement)(_e.TextControl,{value:p||"",onChange:e=>{r({rel:e})},label:Object(ke.__)("Link rel"),autoComplete:"off"}))),Object(je.createElement)("div",q,Object(je.createElement)("a",{className:U},d?Object(je.createElement)(we.RichText,{ref:C,identifier:"label",className:"wp-block-navigation-item__label",value:s,onChange:e=>r({label:e}),onMerge:a,onReplace:l,__unstableOnSplitAtEnd:()=>o(Object(Oe.createBlock)("core/navigation-link")),"aria-label":Object(ke.__)("Navigation link text"),placeholder:E,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"],onClick:()=>{d||_(!0)}}):Object(je.createElement)("div",{className:"wp-block-navigation-link__placeholder-text"},Object(je.createElement)(_e.Tooltip,{position:"top center",text:Object(ke.__)("This item is missing a link")},Object(je.createElement)("span",null,W))),f&&Object(je.createElement)(_e.Popover,{position:"bottom center",onClose:()=>_(!1),anchorRef:k.current},Object(je.createElement)(we.__experimentalLinkControl,{hasTextControl:!0,className:"wp-block-navigation-link__inline-link-input",value:v,showInitialSuggestions:!0,withCreateSuggestion:A,createSuggestion:async function(e){const t=u||"page",n=await O("postType",t,{title:e,status:"draft"});return{id:n.id,type:t,title:n.title.rendered,url:n.link,kind:"post-type"}},createSuggestionButtonText:e=>{let t;return t="post"===u?Object(ke.__)("Create draft post: <mark>%s</mark>"):Object(ke.__)("Create draft page: <mark>%s</mark>"),Object(je.createInterpolateElement)(Object(ke.sprintf)(t,e),{mark:Object(je.createElement)("mark",null)})},noDirectEntry:!!u,noURLSuggestion:!!u,suggestionsQuery:Hc(u,h),onChange:e=>function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{label:r="",kind:o="",type:a=""}=n,{title:l="",url:c="",opensInNewTab:i,id:s,kind:u=o,type:m=a}=e,d=l.replace(/http(s?):\/\//gi,""),b=c.replace(/http(s?):\/\//gi,""),p=""!==l&&d!==b&&r!==l,g=p?Object(Me.escape)(l):r||Object(Me.escape)(b),h="post_tag"===m?"tag":m.replace("-","_"),v=["post","page","tag","category"].indexOf(h)>-1,O=!u&&!v||"custom"===u,j=O?"custom":u;t({...c&&{url:encodeURI(Object(Kr.safeDecodeURI)(c))},...g&&{label:g},...void 0!==i&&{opensInNewTab:i},...s&&Number.isInteger(s)&&{id:s},...j&&{kind:j},...h&&"URL"!==h&&{type:h}})}(e,r,t),onRemove:function(){r({url:"",label:"",id:"",kind:"",type:""}),_(!1)},renderControlBottom:d?null:()=>Object(je.createElement)(Dc,{block:I,transforms:V,replace:j})})))))},save:function(){return Object(je.createElement)(we.InnerBlocks.Content,null)},example:{attributes:{label:Object(ke._x)("Example Link","navigation link preview example"),url:"https://example.com"}},deprecated:[{isEligible:e=>e.nofollow,attributes:{label:{type:"string"},type:{type:"string"},nofollow:{type:"boolean"},description:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"}},migrate(e){let{nofollow:t,...n}=e;return{rel:t?"nofollow":"",...n}},save:()=>Object(je.createElement)(we.InnerBlocks.Content,null)}],transforms:Jc};Object(Vo.addFilter)("blocks.registerBlockType","core/navigation-link",(function(e,t){if("core/navigation-link"!==t)return e;if(!e.variations)return{...e,variations:Zc};if(e.variations){const t=(e,t)=>e.type===t.type,n=e.variations.map(e=>({...e,...!e.icon&&{icon:Kc(e.name)},...!e.isActive&&{isActive:t}}));return{...e,variations:n}}return e}));var ei=n("gdqT");const ti=()=>Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},Object(je.createElement)(_e.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})),{name:ni}={apiVersion:2,name:"core/navigation-submenu",title:"Submenu",category:"design",parent:["core/navigation"],description:"Add a submenu to your navigation.",textdomain:"default",attributes:{label:{type:"string"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"},title:{type:"string"},kind:{type:"string"},isTopLevelItem:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","openSubmenusOnClick","style"],supports:{reusable:!1,html:!1},editorStyle:"wp-block-navigation-submenu-editor",style:"wp-block-navigation-submenu"},ri=["core/navigation-link","core/navigation-submenu"],oi=["core/navigation-link"];function ai(e,t){switch(e){case"post":case"page":return{type:"post",subtype:e};case"category":return{type:"term",subtype:"category"};case"tag":return{type:"term",subtype:"post_tag"};case"post_format":return{type:"post-format"};default:return"taxonomy"===t?{type:"term",subtype:e}:"post-type"===t?{type:"post",subtype:e}:{}}}function li(e,t){var n,r;const{textColor:o,customTextColor:a,backgroundColor:l,customBackgroundColor:c,overlayTextColor:i,customOverlayTextColor:s,overlayBackgroundColor:u,customOverlayBackgroundColor:m,style:d}=e,b={};return t&&s?b.customTextColor=s:t&&i?b.textColor=i:a?b.customTextColor=a:o?b.textColor=o:null!=d&&null!==(n=d.color)&&void 0!==n&&n.text&&(b.customTextColor=d.color.text),t&&m?b.customBackgroundColor=m:t&&u?b.backgroundColor=u:c?b.customBackgroundColor=c:l?b.backgroundColor=l:null!=d&&null!==(r=d.color)&&void 0!==r&&r.background&&(b.customTextColor=d.color.background),b}var ci={to:[{type:"block",blocks:["core/navigation-link"],isMatch:(e,t)=>{var n;return 0===(null==t||null===(n=t.innerBlocks)||void 0===n?void 0:n.length)},transform:e=>Object(Oe.createBlock)("core/navigation-link",e)},{type:"block",blocks:["core/spacer"],isMatch:(e,t)=>{var n;return 0===(null==t||null===(n=t.innerBlocks)||void 0===n?void 0:n.length)},transform:()=>Object(Oe.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],isMatch:(e,t)=>{var n;return 0===(null==t||null===(n=t.innerBlocks)||void 0===n?void 0:n.length)},transform:()=>Object(Oe.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],isMatch:(e,t)=>{var n;return 0===(null==t||null===(n=t.innerBlocks)||void 0===n?void 0:n.length)},transform:()=>Object(Oe.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],isMatch:(e,t)=>{var n;return 0===(null==t||null===(n=t.innerBlocks)||void 0===n?void 0:n.length)},transform:()=>Object(Oe.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],isMatch:(e,t)=>{var n;return 0===(null==t||null===(n=t.innerBlocks)||void 0===n?void 0:n.length)},transform:()=>Object(Oe.createBlock)("core/search")}]};const ii={apiVersion:2,name:"core/navigation-submenu",title:"Submenu",category:"design",parent:["core/navigation"],description:"Add a submenu to your navigation.",textdomain:"default",attributes:{label:{type:"string"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"},title:{type:"string"},kind:{type:"string"},isTopLevelItem:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","openSubmenusOnClick","style"],supports:{reusable:!1,html:!1},editorStyle:"wp-block-navigation-submenu-editor",style:"wp-block-navigation-submenu"},{name:si}=ii,ui={icon:Vc,__experimentalLabel:e=>{let{label:t}=e;return t},edit:function(e){let{attributes:t,isSelected:n,setAttributes:r,mergeBlocks:o,onReplace:a,context:l,clientId:c}=e;const{label:i,type:s,opensInNewTab:u,url:m,description:d,rel:b,title:p,kind:g}=t,h={url:m,opensInNewTab:u},{showSubmenuIcon:v,openSubmenusOnClick:O}=l,{saveEntityRecord:j}=Object(ze.useDispatch)(It.store),{__unstableMarkNextChangeAsNotPersistent:y}=Object(ze.useDispatch)(we.store),[f,_]=Object(je.useState)(!1),k=Object(je.useRef)(null),w=(e=>{const[t,n]=Object(je.useState)(!1);return Object(je.useEffect)(()=>{const{ownerDocument:t}=e.current;function r(e){a(e)}function o(){n(!1)}function a(t){e.current.contains(t.target)?n(!0):n(!1)}return t.addEventListener("dragstart",r),t.addEventListener("dragend",o),t.addEventListener("dragenter",a),()=>{t.removeEventListener("dragstart",r),t.removeEventListener("dragend",o),t.removeEventListener("dragenter",a)}},[]),t})(k),E=Object(ke.__)("Add text…"),C=Object(je.useRef)(),{isAtMaxNesting:x,isTopLevelItem:S,isParentOfSelectedBlock:B,isImmediateParentOfSelectedBlock:T,hasDescendants:N,selectedBlockHasDescendants:P,userCanCreatePages:z,userCanCreatePosts:I}=Object(ze.useSelect)(e=>{var t;const{getClientIdsOfDescendants:n,hasSelectedInnerBlock:r,getSelectedBlockClientId:o,getBlockParentsByBlockName:a}=e(we.store),l=o(),i=n([c]).length;return{isAtMaxNesting:a(c,ni).length>=5,isTopLevelItem:0===a(c,ni).length,isParentOfSelectedBlock:r(c,!0),isImmediateParentOfSelectedBlock:r(c,!1),hasDescendants:!!i,selectedBlockHasDescendants:!(null===(t=n([l]))||void 0===t||!t.length),userCanCreatePages:e(It.store).canUser("create","pages"),userCanCreatePosts:e(It.store).canUser("create","posts")}},[c]);Object(je.useEffect)(()=>{O||m||_(!0)},[]),Object(je.useEffect)(()=>{y(),r({isTopLevelItem:S})},[S]),Object(je.useEffect)(()=>{n||_(!1)},[n]),Object(je.useEffect)(()=>{f&&m&&(Object(Kr.isURL)(Object(Kr.prependHTTP)(i))&&/^.+\.[a-z]+/.test(i)?function(){C.current.focus();const{ownerDocument:e}=C.current,{defaultView:t}=e,n=t.getSelection(),r=e.createRange();r.selectNodeContents(C.current),n.removeAllRanges(),n.addRange(r)}():Object(Fl.placeCaretAtHorizontalEdge)(C.current,!0))},[m]);let M=!1;s&&"page"!==s?"post"===s&&(M=I):M=z;const{textColor:R,customTextColor:L,backgroundColor:V,customBackgroundColor:A}=li(l,!S),H=Object(we.useBlockProps)({ref:k,className:tt()("wp-block-navigation-item",{"is-editing":n||B,"is-dragging-within":w,"has-link":!!m,"has-child":N,"has-text-color":!!R||!!L,[Object(we.getColorClassName)("color",R)]:!!R,"has-background":!!V||A,[Object(we.getColorClassName)("background-color",V)]:!!V,"open-on-click":O}),style:{color:!R&&L,backgroundColor:!V&&A},onKeyDown:function(e){dt.isKeyboardEvent.primary(e,"k")&&_(!0)}}),F=li(l,!0);x&&Object(Me.pull)(ri,"core/navigation-submenu");const D=Object(we.useInnerBlocksProps)({className:tt()("wp-block-navigation__submenu-container",{"is-parent-of-selected-block":B,"has-text-color":!(!F.textColor&&!F.customTextColor),[`has-${F.textColor}-color`]:!!F.textColor,"has-background":!(!F.backgroundColor&&!F.customBackgroundColor),[`has-${F.backgroundColor}-background-color`]:!!F.backgroundColor}),style:{color:F.customTextColor,backgroundColor:F.customBackgroundColor}},{allowedBlocks:ri,__experimentalDefaultBlock:oi,__experimentalDirectInsert:!0,renderAppender:!!(n||T&&!P||N)&&we.InnerBlocks.DefaultAppender}),G=O?"button":"a";return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(_e.ToolbarGroup,null,!O&&Object(je.createElement)(_e.ToolbarButton,{name:"link",icon:bt.a,title:Object(ke.__)("Link"),shortcut:dt.displayShortcut.primary("k"),onClick:()=>_(!0)}))),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Link settings")},Object(je.createElement)(_e.TextareaControl,{value:d||"",onChange:e=>{r({description:e})},label:Object(ke.__)("Description"),help:Object(ke.__)("The description will be displayed in the menu if the current theme supports it.")}),Object(je.createElement)(_e.TextControl,{value:p||"",onChange:e=>{r({title:e})},label:Object(ke.__)("Link title"),autoComplete:"off"}),Object(je.createElement)(_e.TextControl,{value:b||"",onChange:e=>{r({rel:e})},label:Object(ke.__)("Link rel"),autoComplete:"off"}))),Object(je.createElement)("div",H,Object(je.createElement)(G,{className:"wp-block-navigation-item__content"},Object(je.createElement)(we.RichText,{ref:C,identifier:"label",className:"wp-block-navigation-item__label",value:i,onChange:e=>r({label:e}),onMerge:o,onReplace:a,"aria-label":Object(ke.__)("Navigation link text"),placeholder:E,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"],onClick:()=>{O||m||_(!0)}}),!O&&f&&Object(je.createElement)(_e.Popover,{position:"bottom center",onClose:()=>_(!1),anchorRef:k.current},Object(je.createElement)(we.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:h,showInitialSuggestions:!0,withCreateSuggestion:M,createSuggestion:async function(e){const t=s||"page",n=await j("postType",t,{title:e,status:"draft"});return{id:n.id,type:t,title:n.title.rendered,url:n.link,kind:"post-type"}},createSuggestionButtonText:e=>{let t;return t="post"===s?Object(ke.__)("Create draft post: <mark>%s</mark>"):Object(ke.__)("Create draft page: <mark>%s</mark>"),Object(je.createInterpolateElement)(Object(ke.sprintf)(t,e),{mark:Object(je.createElement)("mark",null)})},noDirectEntry:!!s,noURLSuggestion:!!s,suggestionsQuery:ai(s,g),onChange:e=>function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{label:r="",kind:o="",type:a=""}=n,{title:l="",url:c="",opensInNewTab:i,id:s,kind:u=o,type:m=a}=e,d=l.replace(/http(s?):\/\//gi,""),b=c.replace(/http(s?):\/\//gi,""),p=""!==l&&d!==b&&r!==l,g=p?Object(Me.escape)(l):r||Object(Me.escape)(b),h="post_tag"===m?"tag":m.replace("-","_"),v=["post","page","tag","category"].indexOf(h)>-1,O=!u&&!v||"custom"===u,j=O?"custom":u;t({...c&&{url:encodeURI(Object(Kr.safeDecodeURI)(c))},...g&&{label:g},...void 0!==i&&{opensInNewTab:i},...s&&Number.isInteger(s)&&{id:s},...j&&{kind:j},...h&&"URL"!==h&&{type:h}})}(e,r,t),onRemove:()=>{r({url:""}),Object(ei.speak)(Object(ke.__)("Link removed."),"assertive")}})),(v||O)&&Object(je.createElement)("span",{className:"wp-block-navigation__submenu-icon"},Object(je.createElement)(ti,null))),Object(je.createElement)("div",D)))},save:function(){return Object(je.createElement)(we.InnerBlocks.Content,null)},transforms:ci};var mi=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M7.8 6c0-.7.6-1.2 1.2-1.2h6c.7 0 1.2.6 1.2 1.2v3h1.5V6c0-1.5-1.2-2.8-2.8-2.8H9C7.5 3.2 6.2 4.5 6.2 6v3h1.5V6zm8.4 11c0 .7-.6 1.2-1.2 1.2H9c-.7 0-1.2-.6-1.2-1.2v-3H6.2v3c0 1.5 1.2 2.8 2.8 2.8h6c1.5 0 2.8-1.2 2.8-2.8v-3h-1.5v3zM4 11v1h16v-1H4z"}));var di={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&"core/nextpage"===e.dataset.block,transform:()=>Object(Oe.createBlock)("core/nextpage",{})}]};const bi={apiVersion:2,name:"core/nextpage",title:"Page Break",category:"design",description:"Separate your content into a multi-page experience.",keywords:["next page","pagination"],parent:["core/post-content"],textdomain:"default",supports:{customClassName:!1,className:!1,html:!1},editorStyle:"wp-block-nextpage-editor"},{name:pi}=bi,gi={icon:mi,example:{},transforms:di,edit:function(){return Object(je.createElement)("div",Object(we.useBlockProps)(),Object(je.createElement)("div",{className:"wp-block-nextpage"},Object(je.createElement)("span",null,Object(ke.__)("Page break"))))},save:function(){return Object(je.createElement)(je.RawHTML,null,"\x3c!--nextpage--\x3e")}};var hi=e=>{let{attributes:t,clientId:n}=e;const r=Object(ze.useSelect)(e=>e(we.store).__experimentalGetParsedPattern(t.slug),[t.slug]),{replaceBlocks:o,__unstableMarkNextChangeAsNotPersistent:a}=Object(ze.useDispatch)(we.store);Object(je.useEffect)(()=>{null!=r&&r.blocks&&(a(),o(n,r.blocks))},[null==r?void 0:r.blocks]);const l=Object(we.useBlockProps)();return Object(je.createElement)("div",l)};const vi={apiVersion:2,name:"core/pattern",title:"Pattern",category:"design",description:"Show a block pattern.",supports:{html:!1,inserter:!1},textdomain:"default",attributes:{slug:{type:"string"}}},{name:Oi}=vi,ji={edit:hi};var yi=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M7 13.8h6v-1.5H7v1.5zM18 16V4c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2zM5.5 16V4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5zM7 10.5h8V9H7v1.5zm0-3.3h8V5.8H7v1.4zM20.2 6v13c0 .7-.6 1.2-1.2 1.2H8v1.5h11c1.5 0 2.7-1.2 2.7-2.8V6h-1.5z"}));const fi=["id","title","link","type","parent"],_i=e=>{let{pages:t,clientId:n,replaceBlock:r,createBlock:o}=e;return()=>{if(!t)return;const e={},a=[];t.forEach(t=>{var n,r;let{id:l,title:c,link:i,type:s,parent:u}=t;const m=null!==(n=null===(r=e[l])||void 0===r?void 0:r.innerBlocks)&&void 0!==n?n:[];if(e[l]=o("core/navigation-link",{id:l,label:c.rendered,url:i,type:s,kind:"post-type"},m),u){e[u]||(e[u]={innerBlocks:[]});e[u].innerBlocks.push(e[l])}else a.push(e[l])});const l=e=>{e.forEach((e,t,n)=>{const{attributes:r,innerBlocks:a}=e;if(0!==a.length){l(a);const e=o("core/navigation-submenu",r,a);n[t]=e}})};l(a),r(n,a)}};function ki(e){let{onClose:t,clientId:n}=e;const{pages:r,pagesFinished:o}=Object(ze.useSelect)(e=>{const{getEntityRecords:t,hasFinishedResolution:n}=e(It.store),r=["postType","page",{per_page:100,_fields:fi,orderby:"menu_order",order:"asc"}];return{pages:t(...r),pagesFinished:n("getEntityRecords",r)}},[n]),{replaceBlock:a}=Object(ze.useDispatch)(we.store);return Object(je.createElement)(_e.Modal,{closeLabel:Object(ke.__)("Close"),onRequestClose:t,title:Object(ke.__)("Convert to links"),className:"wp-block-page-list-modal",aria:{describedby:"wp-block-page-list-modal__description"}},Object(je.createElement)("p",{id:"wp-block-page-list-modal__description"},Object(ke.__)("To edit this navigation menu, convert it to single page links. This allows you to add, re-order, remove items, or edit their labels.")),Object(je.createElement)("p",null,Object(ke.__)("Note: if you add new pages to your site, you'll need to add them to your navigation menu.")),Object(je.createElement)("div",{className:"wp-block-page-list-modal-buttons"},Object(je.createElement)(_e.Button,{variant:"tertiary",onClick:t},Object(ke.__)("Cancel")),Object(je.createElement)(_e.Button,{variant:"primary",disabled:!o,onClick:_i({pages:r,replaceBlock:a,clientId:n,createBlock:Oe.createBlock})},Object(ke.__)("Convert"))))}const wi=()=>Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},Object(je.createElement)(_e.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"}));const Ei=Object(je.memo)((function e(t){let{context:n,pagesByParentId:r,parentId:o=0,depth:a=0}=t;const l=r.get(o);return null!=l&&l.length?l.map(t=>{var o,l;const c=r.has(t.id),i="showSubmenuIcon"in n;return Object(je.createElement)("li",{key:t.id,className:tt()("wp-block-pages-list__item",{"has-child":c,"wp-block-navigation-item":i,"open-on-click":n.openSubmenusOnClick,"open-on-hover-click":!n.openSubmenusOnClick&&n.showSubmenuIcon})},c&&n.openSubmenusOnClick?Object(je.createElement)(Ci,{title:null===(o=t.title)||void 0===o?void 0:o.rendered}):Object(je.createElement)("a",{className:tt()("wp-block-pages-list__item__link",{"wp-block-navigation-item__content":i}),href:t.link},null===(l=t.title)||void 0===l?void 0:l.rendered),c&&Object(je.createElement)(je.Fragment,null,!n.openSubmenusOnClick&&n.showSubmenuIcon&&Object(je.createElement)(Ci,null),Object(je.createElement)("ul",{className:tt()("submenu-container",{"wp-block-navigation__submenu-container":i})},Object(je.createElement)(e,{context:n,pagesByParentId:r,parentId:t.id,depth:a+1}))))}):[]}));function Ci(e){let{title:t}=e;return Object(je.createElement)("button",{className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle","aria-expanded":"false"},t,Object(je.createElement)("span",{className:"wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon"},Object(je.createElement)(wi,null)))}const xi={apiVersion:2,name:"core/page-list",title:"Page List",category:"widgets",description:"Display a list of all pages.",keywords:["menu","navigation"],textdomain:"default",attributes:{},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick"],supports:{reusable:!1,html:!1},editorStyle:"wp-block-page-list-editor",style:"wp-block-page-list"},{name:Si}=xi,Bi={icon:yi,example:{},edit:function(e){var t;let{context:n,clientId:r}=e;const{pagesByParentId:o,totalPages:a}=function(){const{pages:e}=Object(ze.useSelect)(e=>{const{getEntityRecords:t}=e(It.store);return{pages:t("postType","page",{orderby:"menu_order",order:"asc",_fields:["id","link","parent","title","menu_order"],per_page:-1})}},[]);return Object(je.useMemo)(()=>({pagesByParentId:Object(Me.sortBy)(e,["menu_order","title.rendered"]).reduce((e,t)=>{const{parent:n}=t;return e.has(n)?e.get(n).push(t):e.set(n,[t]),e},new Map),totalPages:null==e?void 0:e.length}),[e])}(),l="showSubmenuIcon"in n&&a<=100,[c,i]=Object(je.useState)(!1),s=Object(we.useBlockProps)({className:tt()("wp-block-page-list",{"has-text-color":!!n.textColor,[Object(we.getColorClassName)("color",n.textColor)]:!!n.textColor,"has-background":!!n.backgroundColor,[Object(we.getColorClassName)("background-color",n.backgroundColor)]:!!n.backgroundColor}),style:{...null===(t=n.style)||void 0===t?void 0:t.color}});return Object(je.createElement)(je.Fragment,null,l&&Object(je.createElement)(we.BlockControls,{group:"other"},Object(je.createElement)(_e.ToolbarButton,{title:Object(ke.__)("Edit"),onClick:()=>i(!0)},Object(ke.__)("Edit"))),l&&c&&Object(je.createElement)(ki,{onClose:()=>i(!1),clientId:r}),void 0===a&&Object(je.createElement)("div",s,Object(je.createElement)(_e.Placeholder,null,Object(je.createElement)(_e.Spinner,null))),0===a&&Object(je.createElement)("div",s,Object(je.createElement)("span",null,Object(ke.__)("Page List: No pages to show."))),a>0&&Object(je.createElement)("ul",s,Object(je.createElement)(Ei,{context:n,pagesByParentId:o})))}};var Ti=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M18.3 4H9.9v-.1l-.9.2c-2.3.4-4 2.4-4 4.8s1.7 4.4 4 4.8l.7.1V20h1.5V5.5h2.9V20h1.5V5.5h2.7V4z"}));const Ni={className:!1},Pi={align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:""},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},textColor:{type:"string"},backgroundColor:{type:"string"},fontSize:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]},style:{type:"object"}},zi=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customFontSize)return e;const t={};return(e.customTextColor||e.customBackgroundColor)&&(t.color={}),e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customFontSize&&(t.typography={fontSize:e.customFontSize}),{...Object(Me.omit)(e,["customTextColor","customBackgroundColor","customFontSize"]),style:t}};var Ii=[{supports:Ni,attributes:{...Object(Me.omit)(Pi,["style"]),customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:zi,save(e){let{attributes:t}=e;const{align:n,content:r,dropCap:o,backgroundColor:a,textColor:l,customBackgroundColor:c,customTextColor:i,fontSize:s,customFontSize:u,direction:m}=t,d=Object(we.getColorClassName)("color",l),b=Object(we.getColorClassName)("background-color",a),p=Object(we.getFontSizeClass)(s),g=tt()({"has-text-color":l||i,"has-background":a||c,"has-drop-cap":o,["has-text-align-"+n]:n,[p]:p,[d]:d,[b]:b}),h={backgroundColor:b?void 0:c,color:d?void 0:i,fontSize:p?void 0:u};return Object(je.createElement)(we.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:r,dir:m})}},{supports:Ni,attributes:{...Object(Me.omit)(Pi,["style"]),customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:zi,save(e){let{attributes:t}=e;const{align:n,content:r,dropCap:o,backgroundColor:a,textColor:l,customBackgroundColor:c,customTextColor:i,fontSize:s,customFontSize:u,direction:m}=t,d=Object(we.getColorClassName)("color",l),b=Object(we.getColorClassName)("background-color",a),p=Object(we.getFontSizeClass)(s),g=tt()({"has-text-color":l||i,"has-background":a||c,"has-drop-cap":o,[p]:p,[d]:d,[b]:b}),h={backgroundColor:b?void 0:c,color:d?void 0:i,fontSize:p?void 0:u,textAlign:n};return Object(je.createElement)(we.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:r,dir:m})}},{supports:Ni,attributes:{...Object(Me.omit)(Pi,["style"]),customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"},width:{type:"string"}},migrate:zi,save(e){let{attributes:t}=e;const{width:n,align:r,content:o,dropCap:a,backgroundColor:l,textColor:c,customBackgroundColor:i,customTextColor:s,fontSize:u,customFontSize:m}=t,d=Object(we.getColorClassName)("color",c),b=Object(we.getColorClassName)("background-color",l),p=u&&`is-${u}-text`,g=tt()({["align"+n]:n,"has-background":l||i,"has-drop-cap":a,[p]:p,[d]:d,[b]:b}),h={backgroundColor:b?void 0:i,color:d?void 0:s,fontSize:p?void 0:m,textAlign:r};return Object(je.createElement)(we.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:o})}},{supports:Ni,attributes:Object(Me.omit)({...Pi,fontSize:{type:"number"}},["style"]),save(e){let{attributes:t}=e;const{width:n,align:r,content:o,dropCap:a,backgroundColor:l,textColor:c,fontSize:i}=t,s=tt()({["align"+n]:n,"has-background":l,"has-drop-cap":a}),u={backgroundColor:l,color:c,fontSize:i,textAlign:r};return Object(je.createElement)("p",{style:u,className:s||void 0},o)},migrate:e=>zi(Object(Me.omit)({...e,customFontSize:Object(Me.isFinite)(e.fontSize)?e.fontSize:void 0,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.backgroundColor&&"#"===e.backgroundColor[0]?e.backgroundColor:void 0}))},{supports:Ni,attributes:{...Pi,content:{type:"string",source:"html",default:""}},save(e){let{attributes:t}=e;return Object(je.createElement)(je.RawHTML,null,t.content)},migrate:e=>e}];var Mi=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(je.createElement)(ye.Path,{d:"M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM14 14l5-4-5-4v8z"}));function Ri(e){let{direction:t,setDirection:n}=e;return Object(ke.isRTL)()&&Object(je.createElement)(_e.ToolbarDropdownMenu,{controls:[{icon:Mi,title:Object(ke._x)("Left to right","editor button"),isActive:"ltr"===t,onClick(){n("ltr"===t?void 0:"ltr")}}]})}var Li=function(e){let{attributes:t,mergeBlocks:n,onReplace:r,onRemove:o,setAttributes:a,clientId:l}=e;const{align:c,content:i,direction:s,dropCap:u,placeholder:m}=t,d=Object(we.useSetting)("typography.dropCap"),b=Object(we.useBlockProps)({className:tt()({"has-drop-cap":u,["has-text-align-"+c]:c}),style:{direction:s}});return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(we.AlignmentControl,{value:c,onChange:e=>a({align:e})}),Object(je.createElement)(Ri,{direction:s,setDirection:e=>a({direction:e})})),d&&Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Text settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Drop cap"),checked:!!u,onChange:()=>a({dropCap:!u}),help:u?Object(ke.__)("Showing large initial letter."):Object(ke.__)("Toggle to show a large initial letter.")}))),Object(je.createElement)(we.RichText,Object(mt.a)({identifier:"content",tagName:"p"},b,{value:i,onChange:e=>a({content:e}),onSplit:(e,n)=>{let r;(n||e)&&(r={...t,content:e});const o=Object(Oe.createBlock)("core/paragraph",r);return n&&(o.clientId=l),o},onMerge:n,onReplace:r,onRemove:o,"aria-label":i?Object(ke.__)("Paragraph block"):Object(ke.__)("Empty block; start writing or type forward slash to choose a block"),"data-empty":!i,placeholder:m||Object(ke.__)("Type / to choose a block"),__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0})))};const{name:Vi}={apiVersion:2,name:"core/paragraph",title:"Paragraph",category:"text",description:"Start with the building block of all narrative.",keywords:["text"],textdomain:"default",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:"",__experimentalRole:"content"},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]}},supports:{anchor:!0,className:!1,color:{link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:"p",__unstablePasteTextInline:!0},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"};var Ai={from:[{type:"raw",priority:20,selector:"p",schema:e=>{let{phrasingContentSchema:t,isPaste:n}=e;return{p:{children:t,attributes:n?[]:["style","id"]}}},transform(e){const t=Object(Oe.getBlockAttributes)(Vi,e.outerHTML),{textAlign:n}=e.style||{};return"left"!==n&&"center"!==n&&"right"!==n||(t.align=n),Object(Oe.createBlock)(Vi,t)}}]};const Hi={apiVersion:2,name:"core/paragraph",title:"Paragraph",category:"text",description:"Start with the building block of all narrative.",keywords:["text"],textdomain:"default",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:"",__experimentalRole:"content"},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]}},supports:{anchor:!0,className:!1,color:{link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:"p",__unstablePasteTextInline:!0},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"},{name:Fi}=Hi,Di={icon:Ti,example:{attributes:{content:Object(ke.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing."),style:{typography:{fontSize:28}},dropCap:!0}},__experimentalLabel(e,t){let{context:n}=t;if("accessibility"===n){const{content:t}=e;return Object(Me.isEmpty)(t)?Object(ke.__)("Empty"):t}},transforms:Ai,deprecated:Ii,merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),edit:Li,save:function(e){let{attributes:t}=e;const{align:n,content:r,dropCap:o,direction:a}=t,l=tt()({"has-drop-cap":o,["has-text-align-"+n]:n});return Object(je.createElement)("p",we.useBlockProps.save({className:l,dir:a}),Object(je.createElement)(we.RichText.Content,{value:r}))}};var Gi=function(e){let{isSelected:t,context:{postType:n,postId:r,queryId:o},attributes:a,setAttributes:l}=e;const c=!!o,{authorId:i,authorDetails:s,authors:u}=Object(ze.useSelect)(e=>{var t;const{getEditedEntityRecord:o,getUser:a,getUsers:l}=e(It.store),c=null===(t=o("postType",n,r))||void 0===t?void 0:t.author;return{authorId:c,authorDetails:c?a(c):null,authors:l({who:"authors"})}},[n,r]),{editEntityRecord:m}=Object(ze.useDispatch)(It.store),{textAlign:d,showAvatar:b,showBio:p,byline:g}=a,h=[];s&&Object(Me.forEach)(s.avatar_urls,(e,t)=>{h.push({value:t,label:`${t} x ${t}`})});const v=Object(we.useBlockProps)({className:tt()({["has-text-align-"+d]:d})});return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Author Settings")},!c&&!(null==u||!u.length)&&Object(je.createElement)(_e.SelectControl,{label:Object(ke.__)("Author"),value:i,options:u.map(e=>{let{id:t,name:n}=e;return{value:t,label:n}}),onChange:e=>{m("postType",n,r,{author:e})}}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Show avatar"),checked:b,onChange:()=>l({showAvatar:!b})}),b&&Object(je.createElement)(_e.SelectControl,{label:Object(ke.__)("Avatar size"),value:a.avatarSize,options:h,onChange:e=>{l({avatarSize:Number(e)})}}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Show bio"),checked:p,onChange:()=>l({showBio:!p})}))),Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(we.AlignmentControl,{value:d,onChange:e=>{l({textAlign:e})}})),Object(je.createElement)("div",v,b&&s&&Object(je.createElement)("div",{className:"wp-block-post-author__avatar"},Object(je.createElement)("img",{width:a.avatarSize,src:s.avatar_urls[a.avatarSize],alt:s.name})),Object(je.createElement)("div",{className:"wp-block-post-author__content"},(!we.RichText.isEmpty(g)||t)&&Object(je.createElement)(we.RichText,{className:"wp-block-post-author__byline",multiline:!1,"aria-label":Object(ke.__)("Post author byline text"),placeholder:Object(ke.__)("Write byline…"),value:g,onChange:e=>l({byline:e})}),Object(je.createElement)("p",{className:"wp-block-post-author__name"},(null==s?void 0:s.name)||Object(ke.__)("Post Author")),p&&Object(je.createElement)("p",{className:"wp-block-post-author__bio"},null==s?void 0:s.description))))};var qi=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z",fillRule:"evenodd",clipRule:"evenodd"}));const Ui={apiVersion:2,name:"core/post-author",title:"Post Author",category:"theme",description:"Add the author of this post.",textdomain:"default",attributes:{textAlign:{type:"string"},avatarSize:{type:"number",default:48},showAvatar:{type:"boolean",default:!0},showBio:{type:"boolean"},byline:{type:"string"}},usesContext:["postType","postId","queryId"],supports:{html:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDuotone:".wp-block-post-author__avatar img"}},editorStyle:"wp-block-post-author-editor",style:"wp-block-post-author"},{name:Wi}=Ui,$i={icon:qi,edit:Gi};var Zi=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.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"}));function Ki(e){let{postId:t}=e;return Object(ze.useSelect)(e=>{const n=e(It.store).getEntityRecords("root","comment",{post:t});return n&&n.length?n.map(e=>Object(je.createElement)(je.RawHTML,{className:"wp-block-post-comments__comment",key:e.id},e.content.rendered)):Object(ke.__)("No comments.")},[t])}const Ji={apiVersion:2,name:"core/post-comments",title:"Post Comments",category:"theme",description:"Display a post's comments.",textdomain:"default",attributes:{textAlign:{type:"string"}},usesContext:["postId","postType"],supports:{html:!1,align:["wide","full"],typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0}},style:"wp-block-post-comments"},{name:Qi}=Ji,Yi={icon:Zi,edit:function(e){let{attributes:t,setAttributes:n,context:r}=e;const{postType:o,postId:a}=r,{textAlign:l}=t,c=Object(we.useBlockProps)({className:tt()({["has-text-align-"+l]:l})});return o&&a?Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(we.AlignmentControl,{value:l,onChange:e=>{n({textAlign:e})}})),Object(je.createElement)("div",c,Object(je.createElement)(Ki,{postId:a}))):Object(je.createElement)("div",c,Object(je.createElement)(we.Warning,null,Object(ke.__)("Post comments block: no post found.")))}};var Xi=Object(je.createElement)(ye.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M4 20h16v-1.5H4V20zm0-4.8h16v-1.5H4v1.5zm0-6.4v1.5h16V8.8H4zM16 4H4v1.5h12V4z"}));function es(e,t,n){return Object(ze.useSelect)(r=>r(It.store).canUserEditEntityRecord(e,t,n),[e,t,n])}function ts(e){let{userCanEdit:t,postType:n,postId:r}=e;const[,,o]=Object(It.useEntityProp)("postType",n,"content",r),a=Object(we.useBlockProps)();return null!=o&&o.protected&&!t?Object(je.createElement)("div",a,Object(je.createElement)(we.Warning,null,Object(ke.__)("This content is password protected."))):Object(je.createElement)("div",a,Object(je.createElement)(je.RawHTML,{key:"html"},null==o?void 0:o.rendered))}function ns(e){let{layout:t,context:n={}}=e;const{postType:r,postId:o}=n,a=Object(ze.useSelect)(e=>{var t;const{getSettings:n}=e(we.store);return null===(t=n())||void 0===t?void 0:t.supportsLayout},[]),l=Object(we.useSetting)("layout")||{},c=t&&t.inherit?l:t,[i,s,u]=Object(It.useEntityBlockEditor)("postType",r,{id:o}),m=Object(we.useInnerBlocksProps)(Object(we.useBlockProps)({className:"entry-content"}),{value:i,onInput:s,onChange:u,__experimentalLayout:a?c:void 0});return Object(je.createElement)("div",m)}function rs(e){const{context:{queryId:t,postType:n,postId:r}={}}=e,o=!!t,a=es("postType",n,r);return a&&!o?Object(je.createElement)(ns,e):Object(je.createElement)(ts,{userCanEdit:a,postType:n,postId:r})}function os(){const e=Object(we.useBlockProps)();return Object(je.createElement)("div",e,Object(je.createElement)("p",null,Object(ke.__)("Post Content")))}function as(){const e=Object(we.useBlockProps)();return Object(je.createElement)("div",e,Object(je.createElement)(we.Warning,null,Object(ke.__)("Block cannot be rendered inside itself.")))}const ls={apiVersion:2,name:"core/post-content",title:"Post Content",category:"theme",description:"Displays the contents of a post or page.",textdomain:"default",usesContext:["postId","postType","queryId"],supports:{align:["wide","full"],html:!1,__experimentalLayout:!0},editorStyle:"wp-block-post-content-editor"},{name:cs}=ls,is={icon:Xi,edit:function(e){let{context:t,attributes:n}=e;const{postId:r,postType:o}=t,{layout:a={}}=n,[l,c]=Object(we.__experimentalUseNoRecursiveRenders)(r);return r&&o&&l?Object(je.createElement)(as,null):Object(je.createElement)(c,null,r&&o?Object(je.createElement)(rs,{context:t,layout:a}):Object(je.createElement)(os,null))}};var ss=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M11.696 13.972c.356-.546.599-.958.728-1.235a1.79 1.79 0 00.203-.783c0-.264-.077-.47-.23-.618-.148-.153-.354-.23-.618-.23-.295 0-.569.07-.82.212a3.413 3.413 0 00-.738.571l-.147-1.188c.289-.234.59-.41.903-.526.313-.117.66-.175 1.041-.175.375 0 .695.08.959.24.264.153.46.362.59.626.135.265.203.556.203.876 0 .362-.08.734-.24 1.115-.154.381-.427.87-.82 1.466l-.756 1.152H14v1.106h-4l1.696-2.609z"}),Object(je.createElement)(ye.Path,{d:"M19.5 7h-15v12a.5.5 0 00.5.5h14a.5.5 0 00.5-.5V7zM3 7V5a2 2 0 012-2h14a2 2 0 012 2v14a2 2 0 01-2 2H5a2 2 0 01-2-2V7z"}));var us=[{attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:at,isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}}];const ms={apiVersion:2,name:"core/post-date",title:"Post Date",category:"theme",description:"Add the date of this post.",textdomain:"default",attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1}},usesContext:["postId","postType","queryId"],supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:ds}=ms,bs={icon:ss,edit:function(e){let{attributes:{textAlign:t,format:n,isLink:r},context:{postId:o,postType:a,queryId:l},setAttributes:c}=e;const i=!!l,[s]=Object(It.useEntityProp)("root","site","date_format"),[u,m]=Object(It.useEntityProp)("postType",a,"date",o),d=Object($a.__experimentalGetSettings)(),b=/a(?!\\)/i.test(d.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join("")),p=Object.values(d.formats).map(e=>({key:e,name:Object($a.dateI18n)(e,u)})),g=n||s||d.formats.date,h=Object(we.useBlockProps)({className:tt()({["has-text-align-"+t]:t})}),v=Object(je.useRef)();let O=u?Object(je.createElement)("time",{dateTime:Object($a.dateI18n)("c",u),ref:v},Object($a.dateI18n)(g,u)):Object(ke.__)("Post Date");return r&&u&&(O=Object(je.createElement)("a",{href:"#post-date-pseudo-link",onClick:e=>e.preventDefault()},O)),Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(we.AlignmentControl,{value:t,onChange:e=>{c({textAlign:e})}}),u&&!i&&Object(je.createElement)(_e.ToolbarGroup,null,Object(je.createElement)(_e.Dropdown,{popoverProps:{anchorRef:v.current},renderContent:()=>Object(je.createElement)(_e.DateTimePicker,{currentDate:u,onChange:m,is12Hour:b}),renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return Object(je.createElement)(_e.ToolbarButton,{"aria-expanded":t,icon:tr.a,title:Object(ke.__)("Change Date"),onClick:n,onKeyDown:e=>{t||e.keyCode!==dt.DOWN||(e.preventDefault(),n())}})}}))),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Format settings")},Object(je.createElement)(_e.CustomSelectControl,{hideLabelFromVision:!0,label:Object(ke.__)("Date Format"),options:p,onChange:e=>{let{selectedItem:t}=e;return c({format:t.key})},value:p.find(e=>e.key===g)})),Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Link settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.sprintf)(Object(ke.__)("Link to %s"),a),onChange:()=>c({isLink:!r}),checked:r}))),Object(je.createElement)("div",h,O))},deprecated:us};var ps=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M12.75 9.333c0 .521-.102.977-.327 1.354-.23.386-.555.628-.893.774-.545.234-1.183.227-1.544.222l-.12-.001v-1.5h.123c.414.001.715.002.948-.099a.395.395 0 00.199-.166c.05-.083.114-.253.114-.584V7.2H8.8V4h3.95v5.333zM7.95 9.333c0 .521-.102.977-.327 1.354-.23.386-.555.628-.893.774-.545.234-1.183.227-1.544.222l-.12-.001v-1.5h.123c.414.001.715.002.948-.099a.394.394 0 00.198-.166c.05-.083.115-.253.115-.584V7.2H4V4h3.95v5.333zM13 20H4v-1.5h9V20zM20 16H4v-1.5h16V16z"}));const gs={apiVersion:2,name:"core/post-excerpt",title:"Post Excerpt",category:"theme",description:"Display a post's excerpt.",textdomain:"default",attributes:{textAlign:{type:"string"},moreText:{type:"string"},showMoreOnNewLine:{type:"boolean",default:!0}},usesContext:["postId","postType","queryId"],supports:{html:!1,color:{gradients:!0,link:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-post-excerpt-editor",style:"wp-block-post-excerpt"},{name:hs}=gs,vs={icon:ps,edit:function(e){let{attributes:{textAlign:t,moreText:n,showMoreOnNewLine:r},setAttributes:o,isSelected:a,context:{postId:l,postType:c,queryId:i}}=e;const s=!!i,u=es("postType",c,l),m=u&&!s,[d,b,{rendered:p,protected:g}={}]=Object(It.useEntityProp)("postType",c,"excerpt",l),h=Object(we.useBlockProps)({className:tt()({["has-text-align-"+t]:t})}),v=Object(je.useMemo)(()=>{if(!p)return"";const e=(new window.DOMParser).parseFromString(p,"text/html");return e.body.textContent||e.body.innerText||""},[p]);if(!c||!l)return Object(je.createElement)("div",h,Object(ke.__)("Post Excerpt"));if(g&&!u)return Object(je.createElement)("div",h,Object(je.createElement)(we.Warning,null,Object(ke.__)("There is no excerpt because this is a protected post.")));const O=Object(je.createElement)(we.RichText,{className:"wp-block-post-excerpt__more-link",tagName:"a","aria-label":Object(ke.__)('"Read more" link text'),placeholder:Object(ke.__)('Add "read more" link text'),value:n,onChange:e=>o({moreText:e}),withoutInteractiveFormatting:!0}),j=m?Object(je.createElement)(we.RichText,{className:!r&&"wp-block-post-excerpt__excerpt is-inline","aria-label":Object(ke.__)("Post excerpt text"),value:d||v||(a?"":Object(ke.__)("No post excerpt found")),onChange:b}):p&&Object(je.createElement)(_e.Disabled,null,Object(je.createElement)(je.RawHTML,{key:"html"},p))||Object(ke.__)("No post excerpt found");return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(we.AlignmentToolbar,{value:t,onChange:e=>o({textAlign:e})})),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Post Excerpt Settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Show link on new line"),checked:r,onChange:e=>o({showMoreOnNewLine:e})}))),Object(je.createElement)("div",h,j,!r&&" ",r?Object(je.createElement)("p",{className:"wp-block-post-excerpt__more-text"},O):O))}};var Os=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"}));const js=Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.__experimentalToggleGroupControlOption,{value:"cover",label:Object(ke._x)("Cover","Scale option for Image dimension control")}),Object(je.createElement)(_e.__experimentalToggleGroupControlOption,{value:"contain",label:Object(ke._x)("Contain","Scale option for Image dimension control")}),Object(je.createElement)(_e.__experimentalToggleGroupControlOption,{value:"fill",label:Object(ke._x)("Fill","Scale option for Image dimension control")})),ys={cover:Object(ke.__)("Image is scaled and cropped to fill the entire space without being distorted."),contain:Object(ke.__)("Image is scaled to fill the space without clipping nor distorting."),fill:Object(ke.__)("Image will be stretched and distorted to completely fill the space.")};var fs=e=>{let{attributes:{width:t,height:n,scale:r},setAttributes:o}=e;const a=Object(_e.__experimentalUseCustomUnits)({availableUnits:Object(we.useSetting)("spacing.units")||["px","%","vw","em","rem"]}),l=(e,t)=>{const n=parseFloat(t);isNaN(n)&&t||o({[e]:n<0?"0":t})},c=Object(ke._x)("Scale","Image scaling options");return Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Dimensions")},Object(je.createElement)(_e.Flex,{justify:"space-between",className:tt()("block-library-post-featured-image-dimension-controls",{"scale-control-is-visible":!!n})},Object(je.createElement)(_e.FlexItem,null,Object(je.createElement)(_e.__experimentalUnitControl,{label:Object(ke.__)("Height"),labelPosition:"top",value:n||"",onChange:e=>{l("height",e)},units:a})),Object(je.createElement)(_e.FlexItem,null,Object(je.createElement)(_e.__experimentalUnitControl,{label:Object(ke.__)("Width"),labelPosition:"top",value:t||"",onChange:e=>{l("width",e)},units:a}))),!!n&&Object(je.createElement)(_e.__experimentalToggleGroupControl,{label:c,value:r,help:ys[r],onChange:e=>{o({scale:e})},isBlock:!0},js))};const _s=Object(je.createElement)(ye.SVG,{className:"components-placeholder__illustration",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"xMidYMid slice"},Object(je.createElement)(ye.Path,{vectorEffect:"non-scaling-stroke",d:"m61 32.622-13.555-9.137-15.888 9.859a5 5 0 0 1-5.386-.073l-9.095-5.989L1 37.5"})),ks=["image"],ws=Object(je.createElement)("div",{className:"wp-block-post-featured-image__placeholder"},_s);function Es(e){let{attributes:t,setAttributes:n,context:{postId:r,postType:o,queryId:a}}=e;const l=!!a,{isLink:c,height:i,width:s,scale:u}=t,[m,d]=Object(It.useEntityProp)("postType",o,"featured_media",r),b=Object(ze.useSelect)(e=>m&&e(It.store).getMedia(m,{context:"view"}),[m]),p=Object(we.useBlockProps)({style:{width:s,height:i}}),g=e=>Object(je.createElement)(_e.Placeholder,{className:"block-editor-media-placeholder"},_s,e),h=e=>{null!=e&&e.id&&d(e.id)},{createErrorNotice:v}=Object(ze.useDispatch)(Fr.store),O=e=>{v(e[2],{type:"snackbar"})};let j;if(!m&&l)return Object(je.createElement)("div",p,ws);const y=Object(ke.__)("Add a featured image");return j=m?b?Object(je.createElement)("img",{src:b.source_url,alt:b.alt_text||Object(ke.__)("Featured image"),style:{height:i,objectFit:i&&u}}):ws:Object(je.createElement)(we.MediaPlaceholder,{onSelect:h,accept:"image/*",allowedTypes:ks,onError:O,placeholder:g,mediaLibraryButton:e=>{let{open:t}=e;return Object(je.createElement)(_e.Button,{icon:Sa.a,variant:"primary",label:y,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{t()}})}}),Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(fs,{attributes:t,setAttributes:n}),Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Link settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.sprintf)(Object(ke.__)("Link to %s"),o),onChange:()=>n({isLink:!c}),checked:c}))),!!b&&!l&&Object(je.createElement)(we.BlockControls,{group:"other"},Object(je.createElement)(we.MediaReplaceFlow,{mediaId:m,mediaURL:b.source_url,allowedTypes:ks,accept:"image/*",onSelect:h,onError:O})),Object(je.createElement)("figure",p,j))}const Cs={apiVersion:2,name:"core/post-featured-image",title:"Post Featured Image",category:"theme",description:"Display a post's featured image.",textdomain:"default",attributes:{isLink:{type:"boolean",default:!1},width:{type:"string"},height:{type:"string"},scale:{type:"string",default:"cover"}},usesContext:["postId","postType","queryId"],supports:{align:["left","right","center","wide","full"],color:{__experimentalDuotone:"img",text:!1,background:!1},html:!1,spacing:{margin:!0,padding:!0}},editorStyle:"wp-block-post-featured-image-editor",style:"wp-block-post-featured-image"},{name:xs}=Cs,Ss={icon:Os,edit:function(e){var t;const n=Object(we.useBlockProps)();return null!==(t=e.context)&&void 0!==t&&t.postId?Object(je.createElement)(Es,e):Object(je.createElement)("div",n,ws)}};var Bs=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}));var Ts=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"}));const Ns=[{isDefault:!0,name:"post-next",title:Object(ke.__)("Next post"),description:Object(ke.__)("Displays the post link that follows the current post."),icon:Bs,attributes:{type:"next"},scope:["inserter","transform"]},{name:"post-previous",title:Object(ke.__)("Previous post"),description:Object(ke.__)("Displays the post link that precedes the current post."),icon:Ts,attributes:{type:"previous"},scope:["inserter","transform"]}];Ns.forEach(e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)});var Ps=Ns;const zs={apiVersion:2,name:"core/post-navigation-link",title:"Post Navigation Link",category:"theme",description:"Displays the next or previous post link that is adjacent to the current post.",textdomain:"default",attributes:{textAlign:{type:"string"},type:{type:"string",default:"next"},label:{type:"string"},showTitle:{type:"boolean",default:!1},linkLabel:{type:"boolean",default:!1}},supports:{reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:Is}=zs,Ms={edit:function(e){let{attributes:{type:t,label:n,showTitle:r,textAlign:o,linkLabel:a},setAttributes:l}=e;const c="next"===t;let i=c?Object(ke.__)("Next"):Object(ke.__)("Previous");r&&(i=c?Object(ke.__)("Next: "):Object(ke.__)("Previous: "));const s=c?Object(ke.__)("Next post"):Object(ke.__)("Previous post"),u=Object(we.useBlockProps)({className:tt()({["has-text-align-"+o]:o})});return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,null,Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Display the title as a link"),help:Object(ke.__)("If you have entered a custom label, it will be prepended before the title."),checked:!!r,onChange:()=>l({showTitle:!r})}),r&&Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Include the label as part of the link"),checked:!!a,onChange:()=>l({linkLabel:!a})}))),Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(we.AlignmentToolbar,{value:o,onChange:e=>{l({textAlign:e})}})),Object(je.createElement)("div",u,Object(je.createElement)(we.RichText,{tagName:"a","aria-label":s,placeholder:i,value:n,allowedFormats:["core/bold","core/italic"],onChange:e=>l({label:e})}),r&&Object(je.createElement)("a",{href:"#post-navigation-pseudo-link",onClick:e=>e.preventDefault()},Object(ke.__)("An example title"))))},variations:Ps};var Rs=n("Civd");const Ls=[["core/post-title"],["core/post-date"],["core/post-excerpt"]];function Vs(){const e=Object(we.useInnerBlocksProps)({},{template:Ls});return Object(je.createElement)("li",e)}const As={apiVersion:2,name:"core/post-template",title:"Post Template",category:"design",parent:["core/query"],description:"Contains the block elements used to render a post, like the title, date, featured image, content or excerpt, and more.",textdomain:"default",usesContext:["queryId","query","queryContext","displayLayout","templateSlug"],supports:{reusable:!1,html:!1,align:!0,__experimentalLayout:{allowEditing:!1}},style:"wp-block-post-template",editorStyle:"wp-block-post-template-editor"},{name:Hs}=As,Fs={icon:Rs.a,edit:function(e){let{clientId:t,context:{query:{perPage:n,offset:r,categoryIds:o=[],postType:a,tagIds:l=[],order:c,orderBy:i,author:s,search:u,exclude:m,sticky:d,inherit:b}={},queryContext:p=[{page:1}],templateSlug:g,displayLayout:{type:h="flex",columns:v=1}={}}}=e;const[{page:O}]=p,[j,y]=Object(je.useState)(),{posts:f,blocks:_}=Object(ze.useSelect)(e=>{const{getEntityRecords:p}=e(It.store),{getBlocks:h}=e(we.store),v={offset:n?n*(O-1)+r:0,categories:o,tags:l,order:c,orderby:i};return n&&(v.per_page=n),s&&(v.author=s),u&&(v.search=u),null!=m&&m.length&&(v.exclude=m),d&&(v.sticky="only"===d),b&&null!=g&&g.startsWith("archive-")&&(v.postType=g.replace("archive-",""),a=v.postType),{posts:p("postType",a,v),blocks:h(t)}},[n,O,r,o,l,c,i,t,s,u,a,m,d,b,g]),k=Object(je.useMemo)(()=>null==f?void 0:f.map(e=>({postType:e.type,postId:e.id})),[f]),w="flex"===h&&v>1,E=Object(we.useBlockProps)({className:tt()({"is-flex-container":w,["columns-"+v]:w})});return f?f.length?Object(je.createElement)("ul",E,k&&k.map(e=>Object(je.createElement)(we.BlockContextProvider,{key:e.postId,value:e},e===(j||k[0])?Object(je.createElement)(Vs,null):Object(je.createElement)("li",null,Object(je.createElement)(we.BlockPreview,{blocks:_,__experimentalLive:!0,__experimentalOnClick:()=>y(e)}))))):Object(je.createElement)("p",E," ",Object(ke.__)("No results found.")):Object(je.createElement)("p",E,Object(je.createElement)(_e.Spinner,null))},save:function(){return Object(je.createElement)(we.InnerBlocks.Content,null)}};var Ds=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M20 4H4v1.5h16V4zm-2 9h-3c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3zM4 9.5h9V8H4v1.5zM9 13H6c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3z",fillRule:"evenodd",clipRule:"evenodd"}));var Gs=[{name:"category",title:Object(ke.__)("Post Categories"),description:Object(ke.__)("Display a post's categories."),icon:Ds,isDefault:!0,attributes:{term:"category"},isActive:e=>"category"===e.term},{name:"post_tag",title:Object(ke.__)("Post Tags"),description:Object(ke.__)("Display a post's tags."),icon:Ds,attributes:{term:"post_tag"},isActive:e=>"post_tag"===e.term}];const qs={apiVersion:2,name:"core/post-terms",title:"Post Terms",category:"design",description:"Post terms.",textdomain:"default",attributes:{term:{type:"string"},textAlign:{type:"string"},separator:{type:"string",default:", "}},usesContext:["postId","postType"],supports:{html:!1,color:{gradients:!0,link:!0},typography:{lineHeight:!0,fontSize:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}},style:"wp-block-post-terms"},{name:Us}=qs,Ws={variations:Gs,edit:function(e){var t;let{attributes:n,context:r,setAttributes:o}=e;const{term:a,textAlign:l,separator:c}=n,{postId:i,postType:s}=r,u=Object(ze.useSelect)(e=>{var t;if(!a)return{};const{getTaxonomy:n}=e(It.store),r=n(a);return null!=r&&null!==(t=r.visibility)&&void 0!==t&&t.publicly_queryable?r:{}},[a]),{postTerms:m,hasPostTerms:d,isLoading:b}=function(e){var t;let{postId:n,postType:r,term:o}=e;const{rest_base:a,slug:l}=o,[c]=Object(It.useEntityProp)("postType",r,a,n);return Object(ze.useSelect)(e=>{var t;if(!(null==o||null===(t=o.visibility)||void 0===t?void 0:t.publicly_queryable))return{postTerms:[],_isLoading:!1,hasPostTerms:!1};var n;if(!c)return{isLoading:null==o||null===(n=o.postTerms)||void 0===n?void 0:n.includes(r)};if(!c.length)return{isLoading:!1};const{getEntityRecords:a,isResolving:i}=e(It.store),s=["taxonomy",l,{include:c,context:"view"}],u=a(...s);return{postTerms:u,isLoading:i("getEntityRecords",s),hasPostTerms:!(null==u||!u.length)}},[c,null==o||null===(t=o.visibility)||void 0===t?void 0:t.publicly_queryable])}({postId:i,postType:s,term:u}),p=i&&s,g=Object(we.useBlockProps)({className:tt()({["has-text-align-"+l]:l,["taxonomy-"+a]:a})});return p&&a?Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(we.AlignmentToolbar,{value:l,onChange:e=>{o({textAlign:e})}})),Object(je.createElement)(we.InspectorControls,{__experimentalGroup:"advanced"},Object(je.createElement)(_e.TextControl,{autoComplete:"off",label:Object(ke.__)("Separator"),value:c||"",onChange:e=>{o({separator:e})},help:Object(ke.__)("Enter character(s) used to separate terms.")})),Object(je.createElement)("div",g,b&&Object(je.createElement)(_e.Spinner,null),!b&&d&&m.map(e=>Object(je.createElement)("a",{key:e.id,href:e.link,onClick:e=>e.preventDefault()},e.name)).reduce((e,t)=>Object(je.createElement)(je.Fragment,null,e,Object(je.createElement)("span",{className:"wp-block-post-terms__separator"},c||" "),t)),!b&&!d&&((null==u||null===(t=u.labels)||void 0===t?void 0:t.no_terms)||Object(ke.__)("Term items not found.")))):Object(je.createElement)("div",g,Object(ke.__)("Post Terms"))}};var $s=[{attributes:{textAlign:{type:"string"},level:{type:"number",default:2},isLink:{type:"boolean",default:!1},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0}},save:()=>null,migrate:at,isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}}];const Zs={apiVersion:2,name:"core/post-title",title:"Post Title",category:"theme",description:"Displays the title of a post, page, or any other content-type.",textdomain:"default",usesContext:["postId","postType","queryId"],attributes:{textAlign:{type:"string"},level:{type:"number",default:2},isLink:{type:"boolean",default:!1},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}}},style:"wp-block-post-title"},{name:Ks}=Zs,Js={icon:Gc,edit:function(e){let{attributes:{level:t,textAlign:n,isLink:r,rel:o,linkTarget:a},setAttributes:l,context:{postType:c,postId:i,queryId:s}}=e;const u=0===t?"p":"h"+t,m=!!s,d=es("postType",c,i),[b="",p,g]=Object(It.useEntityProp)("postType",c,"title",i),[h]=Object(It.useEntityProp)("postType",c,"link",i),v=Object(we.useBlockProps)({className:tt()({["has-text-align-"+n]:n})});let O=Object(je.createElement)(u,v,Object(ke.__)("Post Title"));return c&&i&&(O=d&&!m?Object(je.createElement)(we.PlainText,Object(mt.a)({tagName:u,placeholder:Object(ke.__)("No Title"),value:b,onChange:p,__experimentalVersion:2},v)):Object(je.createElement)(u,v,Object(je.createElement)(je.RawHTML,{key:"html"},g.rendered))),r&&c&&i&&(O=d&&!m?Object(je.createElement)(u,v,Object(je.createElement)(we.PlainText,{tagName:"a",href:h,target:a,rel:o,placeholder:b.length?null:Object(ke.__)("No Title"),value:b,onChange:p,__experimentalVersion:2})):Object(je.createElement)(u,v,Object(je.createElement)("a",{href:h,target:a,rel:o,onClick:e=>e.preventDefault()},Object(je.createElement)(je.RawHTML,{key:"html"},g.rendered)))),Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(sa,{selectedLevel:t,onChange:e=>l({level:e})}),Object(je.createElement)(we.AlignmentControl,{value:n,onChange:e=>{l({textAlign:e})}})),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Link settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Make title a link"),onChange:()=>l({isLink:!r}),checked:r}),r&&Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Open in new tab"),onChange:e=>l({linkTarget:e?"_blank":"_self"}),checked:"_blank"===a}),Object(je.createElement)(_e.TextControl,{label:Object(ke.__)("Link rel"),value:o,onChange:e=>l({rel:e})})))),O)},deprecated:$s};var Qs=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z"}));var Ys={from:[{type:"block",blocks:["core/code","core/paragraph"],transform:e=>{let{content:t,anchor:n}=e;return Object(Oe.createBlock)("core/preformatted",{content:t,anchor:n})}},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName),schema:e=>{let{phrasingContentSchema:t}=e;return{pre:{children:t}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>Object(Oe.createBlock)("core/paragraph",e)},{type:"block",blocks:["core/code"],transform:e=>Object(Oe.createBlock)("core/code",e)}]};const Xs={apiVersion:2,name:"core/preformatted",title:"Preformatted",category:"text",description:"Add text that respects your spacing and tabs, and also allows styling.",textdomain:"default",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"}},supports:{anchor:!0,color:{gradients:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}},style:"wp-block-preformatted"},{name:eu}=Xs,tu={icon:Qs,example:{attributes:{content:Object(ke.__)("EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)\nWindow, very small in the distance, illuminated.\nAll around this is an almost totally black screen. Now, as the camera moves slowly towards the window which is almost a postage stamp in the frame, other forms appear;")}},transforms:Ys,edit:function(e){let{attributes:t,mergeBlocks:n,setAttributes:r,onRemove:o,style:a}=e;const{content:l}=t,c=Object(we.useBlockProps)({style:a});return Object(je.createElement)(we.RichText,Object(mt.a)({tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:l,onChange:e=>{r({content:e})},onRemove:o,"aria-label":Object(ke.__)("Preformatted text"),placeholder:Object(ke.__)("Write preformatted text…"),onMerge:n},c,{__unstablePastePlainText:!0}))},save:function(e){let{attributes:t}=e;const{content:n}=t;return Object(je.createElement)("pre",we.useBlockProps.save(),Object(je.createElement)(we.RichText.Content,{value:n}))},merge:(e,t)=>({content:e.content+t.content})};var nu=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"}));const ru={value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}};function ou(e){if(!e)return;const t=e.match(/border-color:([^;]+)[;]?/);return t&&t[1]?t[1]:void 0}var au=[{attributes:{...ru},save(e){let{attributes:t}=e;const{mainColor:n,customMainColor:r,customTextColor:o,textColor:a,value:l,citation:c,className:i}=t;let s,u;if(Object(Me.includes)(i,"is-style-solid-color")){const e=Object(we.getColorClassName)("background-color",n);s=tt()({"has-background":e||r,[e]:e}),u={backgroundColor:e?void 0:r}}else r&&(u={borderColor:r});const m=Object(we.getColorClassName)("color",a),d=tt()({"has-text-color":a||o,[m]:m}),b=m?void 0:{color:o};return Object(je.createElement)("figure",we.useBlockProps.save({className:s,style:u}),Object(je.createElement)("blockquote",{className:d,style:b},Object(je.createElement)(we.RichText.Content,{value:l,multiline:!0}),!we.RichText.isEmpty(c)&&Object(je.createElement)(we.RichText.Content,{tagName:"cite",value:c})))},migrate(e){let{className:t,mainColor:n,customMainColor:r,customTextColor:o,...a}=e;const l=Object(Me.includes)(t,"is-style-solid-color");let c;return r&&(c=l?{color:{background:r}}:{border:{color:r}}),o&&c&&(c.color={...c.color,text:o}),{className:t,backgroundColor:l?n:void 0,borderColor:l?void 0:n,textAlign:l?"left":void 0,style:c,...a}}},{attributes:{...ru,figureStyle:{source:"attribute",selector:"figure",attribute:"style"}},save(e){let{attributes:t}=e;const{mainColor:n,customMainColor:r,textColor:o,customTextColor:a,value:l,citation:c,className:i,figureStyle:s}=t;let u,m;if(Object(Me.includes)(i,"is-style-solid-color")){const e=Object(we.getColorClassName)("background-color",n);u=tt()({"has-background":e||r,[e]:e}),m={backgroundColor:e?void 0:r}}else if(r)m={borderColor:r};else if(n){m={borderColor:ou(s)}}const d=Object(we.getColorClassName)("color",o),b=(o||a)&&tt()("has-text-color",{[d]:d}),p=d?void 0:{color:a};return Object(je.createElement)("figure",{className:u,style:m},Object(je.createElement)("blockquote",{className:b,style:p},Object(je.createElement)(we.RichText.Content,{value:l,multiline:!0}),!we.RichText.isEmpty(c)&&Object(je.createElement)(we.RichText.Content,{tagName:"cite",value:c})))},migrate(e){let{className:t,figureStyle:n,mainColor:r,customMainColor:o,customTextColor:a,...l}=e;const c=Object(Me.includes)(t,"is-style-solid-color");let i;if(o&&(i=c?{color:{background:o}}:{border:{color:o}}),a&&i&&(i.color={...i.color,text:a}),!c&&r&&n){const e=ou(n);if(e)return{...l,className:t,style:{border:{color:e}}}}return{className:t,backgroundColor:c?r:void 0,borderColor:c?void 0:r,textAlign:c?"left":void 0,style:i,...l}}},{attributes:ru,save(e){let{attributes:t}=e;const{mainColor:n,customMainColor:r,textColor:o,customTextColor:a,value:l,citation:c,className:i}=t;let s,u;if(Object(Me.includes)(i,"is-style-solid-color"))s=Object(we.getColorClassName)("background-color",n),s||(u={backgroundColor:r});else if(r)u={borderColor:r};else if(n){const e=Object(Me.get)(Object(ze.select)(we.store).getSettings(),["colors"],[]);u={borderColor:Object(we.getColorObjectByAttributeValues)(e,n).color}}const m=Object(we.getColorClassName)("color",o),d=o||a?tt()("has-text-color",{[m]:m}):void 0,b=m?void 0:{color:a};return Object(je.createElement)("figure",{className:s,style:u},Object(je.createElement)("blockquote",{className:d,style:b},Object(je.createElement)(we.RichText.Content,{value:l,multiline:!0}),!we.RichText.isEmpty(c)&&Object(je.createElement)(we.RichText.Content,{tagName:"cite",value:c})))},migrate(e){let{className:t,mainColor:n,customMainColor:r,customTextColor:o,...a}=e;const l=Object(Me.includes)(t,"is-style-solid-color");let c={};return r&&(c=l?{color:{background:r}}:{border:{color:r}}),o&&c&&(c.color={...c.color,text:o}),{className:t,backgroundColor:l?n:void 0,borderColor:l?void 0:n,textAlign:l?"left":void 0,style:c,...a}}},{attributes:{...ru},save(e){let{attributes:t}=e;const{value:n,citation:r}=t;return Object(je.createElement)("blockquote",null,Object(je.createElement)(we.RichText.Content,{value:n,multiline:!0}),!we.RichText.isEmpty(r)&&Object(je.createElement)(we.RichText.Content,{tagName:"cite",value:r}))}},{attributes:{...ru,citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}},save(e){let{attributes:t}=e;const{value:n,citation:r,align:o}=t;return Object(je.createElement)("blockquote",{className:"align"+o},Object(je.createElement)(we.RichText.Content,{value:n,multiline:!0}),!we.RichText.isEmpty(r)&&Object(je.createElement)(we.RichText.Content,{tagName:"footer",value:r}))}}];var lu=function(e){let{attributes:t,setAttributes:n,isSelected:r,insertBlocksAfter:o}=e;const{textAlign:a,citation:l,value:c}=t,i=Object(we.useBlockProps)({className:tt()({["has-text-align-"+a]:a})}),s=!we.RichText.isEmpty(l)||r;return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(we.AlignmentControl,{value:a,onChange:e=>{n({textAlign:e})}})),Object(je.createElement)("figure",i,Object(je.createElement)("blockquote",null,Object(je.createElement)(we.RichText,{identifier:"value",multiline:!0,value:c,onChange:e=>n({value:e}),"aria-label":Object(ke.__)("Pullquote text"),placeholder:Object(ke.__)("Add quote"),textAlign:"center"}),s&&Object(je.createElement)(we.RichText,{identifier:"citation",value:l,"aria-label":Object(ke.__)("Pullquote citation text"),placeholder:Object(ke.__)("Add citation"),onChange:e=>n({citation:e}),className:"wp-block-pullquote__citation",__unstableMobileNoFocusOnMount:!0,textAlign:"center",__unstableOnSplitAtEnd:()=>o(Object(Oe.createBlock)("core/paragraph"))}))))};var cu={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>Object(Oe.createBlock)("core/pullquote",{value:Object(kt.toHTMLString)({value:Object(kt.join)(e.map(e=>{let{content:t}=e;return Object(kt.create)({html:t})}),"\u2028"),multilineTag:"p"}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:e=>{let{content:t,anchor:n}=e;return Object(Oe.createBlock)("core/pullquote",{value:`<p>${t}</p>`,anchor:n})}}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{value:t,citation:n}=e;const r=[];return t&&"<p></p>"!==t&&r.push(...Object(kt.split)(Object(kt.create)({html:t,multilineTag:"p"}),"\u2028").map(e=>Object(Oe.createBlock)("core/paragraph",{content:Object(kt.toHTMLString)({value:e})}))),n&&"<p></p>"!==n&&r.push(Object(Oe.createBlock)("core/paragraph",{content:n})),0===r.length?Object(Oe.createBlock)("core/paragraph",{content:""}):r}},{type:"block",blocks:["core/heading"],transform:e=>{let{value:t,citation:n,...r}=e;if("<p></p>"===t)return Object(Oe.createBlock)("core/heading",{content:n});const o=Object(kt.split)(Object(kt.create)({html:t,multilineTag:"p"}),"\u2028"),a=Object(Oe.createBlock)("core/heading",{content:Object(kt.toHTMLString)({value:o[0]})});if(!n&&1===o.length)return a;const l=o.slice(1);return[a,Object(Oe.createBlock)("core/pullquote",{...r,citation:n,value:Object(kt.toHTMLString)({value:l.length?Object(kt.join)(o.slice(1),"\u2028"):Object(kt.create)(),multilineTag:"p"})})]}}]};const iu={apiVersion:2,name:"core/pullquote",title:"Pullquote",category:"text",description:"Give special visual emphasis to a quote from your text.",textdomain:"default",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"],color:{gradients:!0,background:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0}},editorStyle:"wp-block-pullquote-editor",style:"wp-block-pullquote"},{name:su}=iu,uu={icon:nu,example:{attributes:{value:"<p>"+Object(ke.__)("One of the hardest things to do in technology is disrupt yourself.")+"</p>",citation:Object(ke.__)("Matt Mullenweg")}},transforms:cu,edit:lu,save:function(e){let{attributes:t}=e;const{textAlign:n,citation:r,value:o}=t,a=!we.RichText.isEmpty(r);return Object(je.createElement)("figure",we.useBlockProps.save({className:tt()({["has-text-align-"+n]:n})}),Object(je.createElement)("blockquote",null,Object(je.createElement)(we.RichText.Content,{value:o,multiline:!0}),a&&Object(je.createElement)(we.RichText.Content,{tagName:"cite",value:r})))},deprecated:au};var mu=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M18.1823 11.6392C18.1823 13.0804 17.0139 14.2487 15.5727 14.2487C14.3579 14.2487 13.335 13.4179 13.0453 12.2922L13.0377 12.2625L13.0278 12.2335L12.3985 10.377L12.3942 10.3785C11.8571 8.64997 10.246 7.39405 8.33961 7.39405C5.99509 7.39405 4.09448 9.29465 4.09448 11.6392C4.09448 13.9837 5.99509 15.8843 8.33961 15.8843C8.88499 15.8843 9.40822 15.781 9.88943 15.5923L9.29212 14.0697C8.99812 14.185 8.67729 14.2487 8.33961 14.2487C6.89838 14.2487 5.73003 13.0804 5.73003 11.6392C5.73003 10.1979 6.89838 9.02959 8.33961 9.02959C9.55444 9.02959 10.5773 9.86046 10.867 10.9862L10.8772 10.9836L11.4695 12.7311C11.9515 14.546 13.6048 15.8843 15.5727 15.8843C17.9172 15.8843 19.8178 13.9837 19.8178 11.6392C19.8178 9.29465 17.9172 7.39404 15.5727 7.39404C15.0287 7.39404 14.5066 7.4968 14.0264 7.6847L14.6223 9.20781C14.9158 9.093 15.2358 9.02959 15.5727 9.02959C17.0139 9.02959 18.1823 10.1979 18.1823 11.6392Z"})),du=n("mi6C");function bu(e){let{attributes:{query:t,displayLayout:n},setQuery:r,setDisplayLayout:o}=e;const a=Object(nt.useInstanceId)(bu,"blocks-query-pagination-max-page-input"),l=[{icon:Za,title:Object(ke.__)("List view"),onClick:()=>o({type:"list"}),isActive:"list"===(null==n?void 0:n.type)},{icon:Ka.a,title:Object(ke.__)("Grid view"),onClick:()=>o({type:"flex",columns:(null==n?void 0:n.columns)||3}),isActive:"flex"===(null==n?void 0:n.type)}];return Object(je.createElement)(je.Fragment,null,!t.inherit&&Object(je.createElement)(_e.ToolbarGroup,null,Object(je.createElement)(_e.Dropdown,{contentClassName:"block-library-query-toolbar__popover",renderToggle:e=>{let{onToggle:t}=e;return Object(je.createElement)(_e.ToolbarButton,{icon:du.a,label:Object(ke.__)("Display settings"),onClick:t})},renderContent:()=>Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.BaseControl,null,Object(je.createElement)(_e.__experimentalNumberControl,{__unstableInputWidth:"60px",label:Object(ke.__)("Items per Page"),labelPosition:"edge",min:1,max:100,onChange:e=>{isNaN(e)||e<1||e>100||r({perPage:e})},step:"1",value:t.perPage,isDragEnabled:!1})),Object(je.createElement)(_e.BaseControl,null,Object(je.createElement)(_e.__experimentalNumberControl,{__unstableInputWidth:"60px",label:Object(ke.__)("Offset"),labelPosition:"edge",min:0,max:100,onChange:e=>{isNaN(e)||e<0||e>100||r({offset:e})},step:"1",value:t.offset,isDragEnabled:!1})),Object(je.createElement)(_e.BaseControl,{id:a,help:Object(ke.__)("Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero).")},Object(je.createElement)(_e.__experimentalNumberControl,{id:a,__unstableInputWidth:"60px",label:Object(ke.__)("Max page to show"),labelPosition:"edge",min:0,onChange:e=>{isNaN(e)||e<0||r({pages:e})},step:"1",value:t.pages,isDragEnabled:!1})))})),Object(je.createElement)(_e.ToolbarGroup,{controls:l}))}const pu=e=>{const t=null==e?void 0:e.reduce((e,t)=>{const{mapById:n,mapByName:r,names:o}=e;return n[t.id]=t,r[t.name]=t,o.push(t.name),e},{mapById:{},mapByName:{},names:[]});return{terms:e,...t}};const gu=[{label:Object(ke.__)("Include"),value:""},{label:Object(ke.__)("Exclude"),value:"exclude"},{label:Object(ke.__)("Only"),value:"only"}];function hu(e){var t,n;let{attributes:{query:r,displayLayout:o},setQuery:a,setDisplayLayout:l}=e;const{order:c,orderBy:i,author:s,postType:u,sticky:m,inherit:d}=r,[b,p]=Object(je.useState)(!0),[g,h]=Object(je.useState)(!0),[v,O]=Object(je.useState)("post"===u),{postTypesTaxonomiesMap:j,postTypesSelectOptions:y}=(()=>{const{postTypes:e}=Object(ze.useSelect)(e=>{var t;const{getPostTypes:n}=e(It.store),r=["attachment"];return{postTypes:null===(t=n({per_page:-1}))||void 0===t?void 0:t.filter(e=>{let{viewable:t,slug:n}=e;return t&&!r.includes(n)})}},[]);return{postTypesTaxonomiesMap:Object(je.useMemo)(()=>{if(null!=e&&e.length)return e.reduce((e,t)=>(e[t.slug]=t.taxonomies,e),{})},[e]),postTypesSelectOptions:Object(je.useMemo)(()=>(e||[]).map(e=>{let{labels:t,slug:n}=e;return{label:t.singular_name,value:n}}),[e])}})(),{authorList:f,categories:_,tags:k}=Object(ze.useSelect)(e=>{const{getEntityRecords:t}=e(It.store),n={per_page:100},r=t("taxonomy","category",n),o=t("taxonomy","post_tag",n);return{categories:pu(r),tags:pu(o),authorList:t("root","user",{per_page:-1})}},[]);Object(je.useEffect)(()=>{if(!j)return;const e=j[u];p(e.includes("category")),h(e.includes("post_tag"))},[u,j]),Object(je.useEffect)(()=>{O("post"===u)},[u]);const w=(e,t)=>n=>{const r=Array.from(n.reduce((t,n)=>{const r=((e,t)=>{var n;const r=(null==t?void 0:t.id)||(null===(n=e[t])||void 0===n?void 0:n.id);if(r)return r;const o=t.toLocaleLowerCase();for(const t in e)if(t.toLocaleLowerCase()===o)return e[t].id})(e.mapByName,n);return r&&t.add(r),t},new Set));a({[t]:r})},E=w(_,"categoryIds"),C=w(k,"tagIds"),[x,S]=Object(je.useState)(r.search),B=Object(je.useCallback)(Object(Me.debounce)(()=>{r.search!==x&&a({search:x})},250),[x,r.search]);Object(je.useEffect)(()=>(B(),B.cancel),[x,B]);const T=e=>{const t={category:{queryProp:"categoryIds",terms:_},post_tag:{queryProp:"tagIds",terms:k}}[e];return(r[t.queryProp]||[]).reduce((e,n)=>{const r=t.terms.mapById[n];return r&&e.push({id:n,value:r.name}),e},[])};return Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Inherit query from template"),help:Object(ke.__)("Toggle to use the global query context that is set with the current template, such as an archive or search. Disable to customize the settings independently."),checked:!!d,onChange:e=>a({inherit:!!e})}),!d&&Object(je.createElement)(_e.SelectControl,{options:y,value:u,label:Object(ke.__)("Post Type"),onChange:e=>{const t={postType:e};j[e].includes("category")||(t.categoryIds=[]),j[e].includes("post_tag")||(t.tagIds=[]),"post"!==e&&(t.sticky=""),a(t)},help:Object(ke.__)('WordPress contains different types of content and they are divided into collections called "Post Types". By default there are a few different ones such as blog posts and pages, but plugins could add more.')}),"flex"===(null==o?void 0:o.type)&&Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Columns"),value:o.columns,onChange:e=>l({columns:e}),min:2,max:Math.max(6,o.columns)}),o.columns>6&&Object(je.createElement)(_e.Notice,{status:"warning",isDismissible:!1},Object(ke.__)("This column count exceeds the recommended amount and may cause visual breakage."))),!d&&Object(je.createElement)(_e.QueryControls,{order:c,orderBy:i,onOrderChange:e=>a({order:e}),onOrderByChange:e=>a({orderBy:e})}),v&&Object(je.createElement)(_e.SelectControl,{label:Object(ke.__)("Sticky posts"),options:gu,value:m,onChange:e=>a({sticky:e}),help:Object(ke.__)('Blog posts can be "stickied", a feature that places them at the top of the front page of posts, keeping it there until new sticky posts are published.')})),!d&&Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Filters")},b&&(null==_||null===(t=_.terms)||void 0===t?void 0:t.length)>0&&Object(je.createElement)(_e.FormTokenField,{label:Object(ke.__)("Categories"),value:T("category"),suggestions:_.names,onChange:E}),g&&(null==k||null===(n=k.terms)||void 0===n?void 0:n.length)>0&&Object(je.createElement)(_e.FormTokenField,{label:Object(ke.__)("Tags"),value:T("post_tag"),suggestions:k.names,onChange:C}),Object(je.createElement)(_e.QueryControls,{selectedAuthorId:s,authorList:f,onAuthorChange:e=>a({author:""!==e?+e:void 0})}),Object(je.createElement)(_e.TextControl,{label:Object(ke.__)("Keyword"),value:x,onChange:S})))}var vu=e=>{var t;let{clientId:n,name:r,attributes:o,setAttributes:a}=e;const{blockType:l,defaultVariation:c,scopeVariations:i,allVariations:s}=Object(ze.useSelect)(e=>{const{getBlockVariations:t,getBlockType:n,getDefaultBlockVariation:o}=e(Oe.store);return{blockType:n(r),defaultVariation:o(r,"block"),scopeVariations:t(r,"block"),allVariations:t(r)}},[r]),{replaceInnerBlocks:u}=Object(ze.useDispatch)(we.store),m=Object(we.useBlockProps)(),d=Object(we.__experimentalGetMatchingVariation)(o,s),b=(null==d?void 0:d.icon)||(null==l||null===(t=l.icon)||void 0===t?void 0:t.src),p=(null==d?void 0:d.title)||(null==l?void 0:l.title);return Object(je.createElement)("div",m,Object(je.createElement)(we.__experimentalBlockVariationPicker,{icon:b,label:p,variations:i,onSelect:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;e.attributes&&a(e.attributes),e.innerBlocks&&u(n,Object(Oe.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!1)}}))};const Ou=[["core/post-template"]];function ju(e){let{attributes:t,setAttributes:n}=e;const{queryId:r,query:o,displayLayout:a,tagName:l="div",layout:c={}}=t,{__unstableMarkNextChangeAsNotPersistent:i}=Object(ze.useDispatch)(we.store),s=Object(nt.useInstanceId)(ju),{themeSupportsLayout:u}=Object(ze.useSelect)(e=>{var t;const{getSettings:n}=e(we.store);return{themeSupportsLayout:null===(t=n())||void 0===t?void 0:t.supportsLayout}},[]),m=Object(we.useSetting)("layout")||{},d=c&&c.inherit?m:c,b=Object(we.useBlockProps)(),p=Object(we.useInnerBlocksProps)(b,{template:Ou,__experimentalLayout:u?d:void 0}),{postsPerPage:g}=Object(ze.useSelect)(e=>{const{getSettings:t}=e(we.store);return{postsPerPage:+t().postsPerPage||3}},[]);Object(je.useEffect)(()=>{const e={};!o.perPage&&g&&(e.perPage=g),Object.keys(e).length&&(i(),h(e))},[o.perPage]),Object(je.useEffect)(()=>{r||(i(),n({queryId:s}))},[r,s]);const h=e=>n({query:{...o,...e}}),v=e=>n({displayLayout:{...a,...e}});return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(hu,{attributes:t,setQuery:h,setDisplayLayout:v}),Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(bu,{attributes:t,setQuery:h,setDisplayLayout:v})),Object(je.createElement)(we.InspectorControls,{__experimentalGroup:"advanced"},Object(je.createElement)(_e.SelectControl,{label:Object(ke.__)("HTML element"),options:[{label:Object(ke.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}],value:l,onChange:e=>n({tagName:e})})),Object(je.createElement)(l,p))}function yu(e){const{clientId:t,name:n}=e,r=Object(we.useBlockProps)(),{replaceBlock:o,selectBlock:a}=Object(ze.useDispatch)(we.store);return Object(je.createElement)("div",r,Object(je.createElement)(we.__experimentalBlockPatternSetup,{blockName:n,clientId:t,startBlankComponent:Object(je.createElement)(vu,e),onBlockPatternSelect:e=>{const n=e.map(e=>Object(Oe.cloneBlock)(e)),r=(e=>{const t=[...e];for(;t.length>0;){var n;const e=t.shift();if("core/query"===e.name)return e.clientId;null===(n=e.innerBlocks)||void 0===n||n.forEach(e=>{t.push(e)})}})(n);o(t,n),r&&a(r)}}))}var fu=e=>{const{clientId:t}=e,n=Object(ze.useSelect)(e=>!!e(we.store).getBlocks(t).length,[t])?ju:yu;return Object(je.createElement)(n,e)};const _u=Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},Object(je.createElement)(_e.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zM7 26h12v1H7v-1zm34-5H7v3h34v-3zM7 38h12v1H7v-1zm34-5H7v3h34v-3z"})),ku=Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},Object(je.createElement)(_e.Path,{d:"M41 9H7v3h34V9zm-4 5H7v1h30v-1zm4 3H7v1h34v-1zM7 20h30v1H7v-1zm0 12h30v1H7v-1zm34 3H7v1h34v-1zM7 38h30v1H7v-1zm34-11H7v3h34v-3z"})),wu=Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},Object(je.createElement)(_e.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zm22 3H7v1h34v-1zM7 20h34v1H7v-1zm0 12h12v1H7v-1zm34 3H7v1h34v-1zM7 38h34v1H7v-1zm34-11H7v3h34v-3z"})),Eu=Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},Object(je.createElement)(_e.Path,{d:"M7 9h34v6H7V9zm12 8H7v1h12v-1zm18 3H7v1h30v-1zm0 18H7v1h30v-1zM7 35h12v1H7v-1zm34-8H7v6h34v-6z"})),Cu={query:{perPage:3,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!1}};var xu=[{name:"posts-list",title:Object(ke.__)("Posts List"),description:Object(ke.__)("Display a list of your most recent posts, excluding sticky posts."),icon:qa,attributes:{query:{perPage:4,pages:1,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",sticky:"exclude",inherit:!1}},scope:["inserter"]},{name:"title-date",title:Object(ke.__)("Title & Date"),icon:_u,attributes:{...Cu},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-date"]]],["core/query-pagination"]],scope:["block"]},{name:"title-excerpt",title:Object(ke.__)("Title & Excerpt"),icon:ku,attributes:{...Cu},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-excerpt"]]],["core/query-pagination"]],scope:["block"]},{name:"title-date-excerpt",title:Object(ke.__)("Title, Date, & Excerpt"),icon:wu,attributes:{...Cu},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-date"],["core/post-excerpt"]]],["core/query-pagination"]],scope:["block"]},{name:"image-date-title",title:Object(ke.__)("Image, Date, & Title"),icon:Eu,attributes:{...Cu},innerBlocks:[["core/post-template",{},[["core/post-featured-image"],["core/post-date"],["core/post-title"]]],["core/query-pagination"]],scope:["block"]}];var Su=[{attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0}},layout:{type:"object",default:{type:"list"}}},supports:{html:!1},migrate:e=>({...Object(Me.omit)(e,["layout"]),displayLayout:e.layout}),save:()=>Object(je.createElement)(we.InnerBlocks.Content,null)}];const Bu=e=>{let{attributes:{query:{postType:t}={}}={}}=e;if(!t)return null;const n=Object(Kr.addQueryArgs)("post-new.php",{post_type:t});return Object(je.createElement)("div",{className:"wp-block-query__create-new-link"},Object(je.createInterpolateElement)(Object(ke.__)("<a>Create a new post</a> for this feed."),{a:Object(je.createElement)("a",{href:n})}))};var Tu=Object(nt.createHigherOrderComponent)(e=>t=>{const{name:n,isSelected:r}=t;return"core/query"===n&&r?Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(Bu,t)),Object(je.createElement)(e,Object(mt.a)({key:"edit"},t))):Object(je.createElement)(e,Object(mt.a)({key:"edit"},t))},"withInspectorControls");const Nu={apiVersion:2,name:"core/query",title:"Query Loop",category:"theme",description:"An advanced block that allows displaying post types based on different query parameters and visual configurations.",textdomain:"default",attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}}},providesContext:{queryId:"queryId",query:"query",displayLayout:"displayLayout"},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},__experimentalLayout:!0},editorStyle:"wp-block-query-editor"},{name:Pu}=Nu,zu={icon:mu,edit:fu,save:function(e){let{attributes:{tagName:t="div"}}=e;const n=we.useBlockProps.save(),r=we.useInnerBlocksProps.save(n);return Object(je.createElement)(t,r)},variations:xu,deprecated:Su};Object(Vo.addFilter)("editor.BlockEdit","core/query",Tu);var Iu=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Rect,{x:"4",y:"10.5",width:"6",height:"3",rx:"1.5",fill:"#000"}),Object(je.createElement)(ye.Rect,{x:"12",y:"10.5",width:"3",height:"3",rx:"1.5",fill:"#000"}),Object(je.createElement)(ye.Rect,{x:"17",y:"10.5",width:"3",height:"3",rx:"1.5",fill:"#000"}));function Mu(e){let{value:t,onChange:n}=e;return Object(je.createElement)(_e.__experimentalToggleGroupControl,{label:Object(ke.__)("Arrow"),value:t,onChange:n,help:Object(ke.__)("A decorative arrow appended to the next and previous page link."),isBlock:!0},Object(je.createElement)(_e.__experimentalToggleGroupControlOption,{value:"none",label:Object(ke._x)("None","Arrow option for Query Pagination Next/Previous blocks")}),Object(je.createElement)(_e.__experimentalToggleGroupControlOption,{value:"arrow",label:Object(ke._x)("Arrow","Arrow option for Query Pagination Next/Previous blocks")}),Object(je.createElement)(_e.__experimentalToggleGroupControlOption,{value:"chevron",label:Object(ke._x)("Chevron","Arrow option for Query Pagination Next/Previous blocks")}))}const Ru=[["core/query-pagination-previous"],["core/query-pagination-numbers"],["core/query-pagination-next"]];var Lu=[{save:()=>Object(je.createElement)("div",we.useBlockProps.save(),Object(je.createElement)(we.InnerBlocks.Content,null))}];const Vu={apiVersion:2,name:"core/query-pagination",title:"Query Pagination",category:"design",parent:["core/query"],description:"Displays a paginated navigation to next/previous set of posts, when applicable.",textdomain:"default",attributes:{paginationArrow:{type:"string",default:"none"}},usesContext:["queryId","query"],providesContext:{paginationArrow:"paginationArrow"},supports:{align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0},__experimentalLayout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},editorStyle:"wp-block-query-pagination-editor",style:"wp-block-query-pagination"},{name:Au}=Vu,Hu={icon:Iu,edit:function(e){let{attributes:{paginationArrow:t,layout:n},setAttributes:r,clientId:o,name:a}=e;const l=n||(e=>{const t=Object(Oe.getBlockSupport)(e,"__experimentalLayout");return null==t?void 0:t.default})(a),c=Object(ze.useSelect)(e=>{const{getBlocks:t}=e(we.store),n=t(o);return null==n?void 0:n.find(e=>["core/query-pagination-next","core/query-pagination-previous"].includes(e.name))},[]),i=Object(we.useBlockProps)(),s=Object(we.useInnerBlocksProps)(i,{template:Ru,allowedBlocks:["core/query-pagination-previous","core/query-pagination-numbers","core/query-pagination-next"],__experimentalLayout:l});return Object(je.createElement)(je.Fragment,null,c&&Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Settings")},Object(je.createElement)(Mu,{value:t,onChange:e=>{r({paginationArrow:e})}}))),Object(je.createElement)("div",s))},save:function(){return Object(je.createElement)(we.InnerBlocks.Content,null)},deprecated:Lu};var Fu=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Rect,{x:"6",y:"10.5",width:"3",height:"3",rx:"1.5",fill:"#000"}),Object(je.createElement)(ye.Rect,{x:"11",y:"10.5",width:"3",height:"3",rx:"1.5",fill:"#000"}),Object(je.createElement)(ye.Path,{d:"M16.5 9.5L19 12l-2.5 2.5",stroke:"#1E1E1E",strokeWidth:"1.5"}));const Du={none:"",arrow:"→",chevron:"»"};const Gu={apiVersion:2,name:"core/query-pagination-next",title:"Query Pagination Next",category:"design",parent:["core/query-pagination"],description:"Displays the next posts page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["queryId","query","paginationArrow"],supports:{reusable:!1,html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:qu}=Gu,Uu={icon:Fu,edit:function(e){let{attributes:{label:t},setAttributes:n,context:{paginationArrow:r}}=e;const o=Du[r];return Object(je.createElement)("a",Object(mt.a)({href:"#pagination-next-pseudo-link",onClick:e=>e.preventDefault()},Object(we.useBlockProps)()),Object(je.createElement)(we.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":Object(ke.__)("Next page link"),placeholder:Object(ke.__)("Next Page"),value:t,onChange:e=>n({label:e})}),o&&Object(je.createElement)("span",{className:"wp-block-query-pagination-next-arrow is-arrow-"+r},o))}};var Wu=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Rect,{x:"4",y:"10.5",width:"6",height:"3",rx:"1.5",fill:"#000"}),Object(je.createElement)(ye.Path,{d:"M13.5 14v-4l-1.5.5",stroke:"#1E1E1E"}),Object(je.createElement)(ye.Path,{d:"M19.266 9.805c-.473-.611-1.22-.51-1.702-.367a3.854 3.854 0 00-.718.307l.13 1.082c.192-.17.47-.422.782-.515.34-.1.578.025.668.141.21.27-.034.835-.16 1.055-.49.85-.93 1.594-1.45 2.492H19.5v-1h-.914c.277-.574.814-1.443.914-2.106.052-.343.02-.762-.234-1.09z",fill:"#1E1E1E"}));const $u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"a",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return Object(je.createElement)(t,{className:"page-numbers "+n},e)};const Zu={apiVersion:2,name:"core/query-pagination-numbers",title:"Query Pagination Numbers",category:"design",parent:["core/query-pagination"],description:"Displays a list of page numbers for pagination",textdomain:"default",usesContext:["queryId","query"],supports:{reusable:!1,html:!1},editorStyle:"query-pagination-numbers-editor"},{name:Ku}=Zu,Ju={icon:Wu,edit:function(){const e=Object(je.createElement)(je.Fragment,null,$u(1),$u(2),$u(3,"span","current"),$u(4),$u(5),$u("...","span","dots"),$u(8));return Object(je.createElement)("div",Object(we.useBlockProps)(),e)}};var Qu=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Rect,{x:"18",y:"13.5",width:"3",height:"3",rx:"1.5",transform:"rotate(-180 18 13.5)",fill:"#000"}),Object(je.createElement)(ye.Rect,{x:"13",y:"13.5",width:"3",height:"3",rx:"1.5",transform:"rotate(-180 13 13.5)",fill:"#000"}),Object(je.createElement)(ye.Path,{d:"M7.5 14.5L5 12l2.5-2.5",stroke:"#1E1E1E",strokeWidth:"1.5"}));const Yu={none:"",arrow:"←",chevron:"«"};const Xu={apiVersion:2,name:"core/query-pagination-previous",title:"Query Pagination Previous",category:"design",parent:["core/query-pagination"],description:"Displays the previous posts page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["queryId","query","paginationArrow"],supports:{reusable:!1,html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:em}=Xu,tm={icon:Qu,edit:function(e){let{attributes:{label:t},setAttributes:n,context:{paginationArrow:r}}=e;const o=Yu[r];return Object(je.createElement)("a",Object(mt.a)({href:"#pagination-previous-pseudo-link",onClick:e=>e.preventDefault()},Object(we.useBlockProps)()),o&&Object(je.createElement)("span",{className:"wp-block-query-pagination-previous-arrow is-arrow-"+r},o),Object(je.createElement)(we.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":Object(ke.__)("Previous page link"),placeholder:Object(ke.__)("Previous Page"),value:t,onChange:e=>n({label:e})}))}},nm=["archive"];var rm=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{stroke:"#1E1E1E",strokeWidth:"1.5",d:"M4 19.25h9M4 15.25h16"}),Object(je.createElement)(ye.Path,{d:"M8.994 10.103H6.08L5.417 12H4l2.846-8h1.383l2.845 8H9.657l-.663-1.897zm-.457-1.28l-.994-2.857-1.006 2.857h2z",fill:"#1E1E1E"}));const om=[{isDefault:!0,name:"archive-title",title:Object(ke.__)("Archive Title"),description:Object(ke.__)("Display the archive title based on the queried object."),icon:rm,attributes:{type:"archive"},scope:["inserter"]}];om.forEach(e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)});var am=om;var lm=[{attributes:{type:{type:"string"},textAlign:{type:"string"},level:{type:"number",default:1}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0}},save:()=>null,migrate:at,isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}}];const cm={apiVersion:2,name:"core/query-title",title:"Query Title",category:"design",description:"Display the query title.",textdomain:"default",attributes:{type:{type:"string"},textAlign:{type:"string"},level:{type:"number",default:1}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}}},editorStyle:"wp-block-query-title-editor"},{name:im}=cm,sm={edit:function(e){let{attributes:{type:t,level:n,textAlign:r},setAttributes:o}=e;const a="h"+n,l=Object(we.useBlockProps)({className:tt()({["has-text-align-"+r]:r,"wp-block-query-title__placeholder":"archive"===t})});if(!nm.includes(t))return Object(je.createElement)("div",l,Object(je.createElement)(we.Warning,null,Object(ke.__)("Provided type is not supported.")));let c;return"archive"===t&&(c=Object(je.createElement)(a,l,Object(ke.__)("Archive title"))),Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(sa,{selectedLevel:n,onChange:e=>o({level:e})}),Object(je.createElement)(we.AlignmentControl,{value:r,onChange:e=>{o({textAlign:e})}})),c)},variations:am,deprecated:lm};var um=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M13 6v6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H13zm-9 6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H4v6z"}));const mm={value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}};var dm=[{attributes:mm,save(e){let{attributes:t}=e;const{align:n,value:r,citation:o}=t;return Object(je.createElement)("blockquote",{style:{textAlign:n||null}},Object(je.createElement)(we.RichText.Content,{multiline:!0,value:r}),!we.RichText.isEmpty(o)&&Object(je.createElement)(we.RichText.Content,{tagName:"cite",value:o}))}},{attributes:{...mm,style:{type:"number",default:1}},migrate:e=>2===e.style?{...Object(Me.omit)(e,["style"]),className:e.className?e.className+" is-style-large":"is-style-large"}:e,save(e){let{attributes:t}=e;const{align:n,value:r,citation:o,style:a}=t;return Object(je.createElement)("blockquote",{className:2===a?"is-large":"",style:{textAlign:n||null}},Object(je.createElement)(we.RichText.Content,{multiline:!0,value:r}),!we.RichText.isEmpty(o)&&Object(je.createElement)(we.RichText.Content,{tagName:"cite",value:o}))}},{attributes:{...mm,citation:{type:"string",source:"html",selector:"footer",default:""},style:{type:"number",default:1}},migrate:e=>isNaN(parseInt(e.style))?e:{...Object(Me.omit)(e,["style"])},save(e){let{attributes:t}=e;const{align:n,value:r,citation:o,style:a}=t;return Object(je.createElement)("blockquote",{className:"blocks-quote-style-"+a,style:{textAlign:n||null}},Object(je.createElement)(we.RichText.Content,{multiline:!0,value:r}),!we.RichText.isEmpty(o)&&Object(je.createElement)(we.RichText.Content,{tagName:"footer",value:o}))}}];const bm="web"===je.Platform.OS;var pm={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>Object(Oe.createBlock)("core/quote",{value:Object(kt.toHTMLString)({value:Object(kt.join)(e.map(e=>{let{content:t}=e;return Object(kt.create)({html:t})}),"\u2028"),multilineTag:"p"}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:e=>{let{content:t,anchor:n}=e;return Object(Oe.createBlock)("core/quote",{value:`<p>${t}</p>`,anchor:n})}},{type:"block",blocks:["core/pullquote"],transform:e=>{let{value:t,citation:n,anchor:r}=e;return Object(Oe.createBlock)("core/quote",{value:t,citation:n,anchor:r})}},{type:"prefix",prefix:">",transform:e=>Object(Oe.createBlock)("core/quote",{value:`<p>${e}</p>`})},{type:"raw",isMatch:e=>{const t=(()=>{let e=!1;return t=>"P"===t.nodeName||(e||"CITE"!==t.nodeName?void 0:(e=!0,!0))})();return"BLOCKQUOTE"===e.nodeName&&Array.from(e.childNodes).every(t)},schema:e=>{let{phrasingContentSchema:t}=e;return{blockquote:{children:{p:{children:t},cite:{children:t}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{value:t,citation:n}=e;const r=[];return t&&"<p></p>"!==t&&r.push(...Object(kt.split)(Object(kt.create)({html:t,multilineTag:"p"}),"\u2028").map(e=>Object(Oe.createBlock)("core/paragraph",{content:Object(kt.toHTMLString)({value:e})}))),n&&"<p></p>"!==n&&r.push(Object(Oe.createBlock)("core/paragraph",{content:n})),0===r.length?Object(Oe.createBlock)("core/paragraph",{content:""}):r}},{type:"block",blocks:["core/heading"],transform:e=>{let{value:t,citation:n,...r}=e;if("<p></p>"===t)return Object(Oe.createBlock)("core/heading",{content:n});const o=Object(kt.split)(Object(kt.create)({html:t,multilineTag:"p"}),"\u2028"),a=Object(Oe.createBlock)("core/heading",{content:Object(kt.toHTMLString)({value:o[0]})});if(!n&&1===o.length)return a;const l=o.slice(1);return[a,Object(Oe.createBlock)("core/quote",{...r,citation:n,value:Object(kt.toHTMLString)({value:l.length?Object(kt.join)(o.slice(1),"\u2028"):Object(kt.create)(),multilineTag:"p"})})]}},{type:"block",blocks:["core/pullquote"],transform:e=>{let{value:t,citation:n,anchor:r}=e;return Object(Oe.createBlock)("core/pullquote",{value:t,citation:n,anchor:r})}}]};const gm={apiVersion:2,name:"core/quote",title:"Quote",category:"text",description:'Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar',keywords:["blockquote","cite"],textdomain:"default",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},align:{type:"string"}},supports:{anchor:!0,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"plain",label:"Plain"},{name:"large",label:"Large"}],editorStyle:"wp-block-quote-editor",style:"wp-block-quote"},{name:hm}=gm,vm={icon:um,example:{attributes:{value:"<p>"+Object(ke.__)("In quoting others, we cite ourselves.")+"</p>",citation:"Julio Cortázar",className:"is-style-large"}},transforms:pm,edit:function(e){let{attributes:t,setAttributes:n,isSelected:r,mergeBlocks:o,onReplace:a,className:l,insertBlocksAfter:c,style:i}=e;const{align:s,value:u,citation:m}=t,d=Object(we.useBlockProps)({className:tt()(l,{["has-text-align-"+s]:s}),style:i});return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(we.AlignmentControl,{value:s,onChange:e=>{n({align:e})}})),Object(je.createElement)(_e.BlockQuotation,d,Object(je.createElement)(we.RichText,{identifier:"value",multiline:!0,value:u,onChange:e=>n({value:e}),onMerge:o,onRemove:e=>{const t=!m||0===m.length;!e&&t&&a([])},"aria-label":Object(ke.__)("Quote text"),placeholder:Object(ke.__)("Add quote"),onReplace:a,onSplit:e=>Object(Oe.createBlock)("core/quote",{...t,value:e}),__unstableOnSplitMiddle:()=>Object(Oe.createBlock)("core/paragraph"),textAlign:s}),(!we.RichText.isEmpty(m)||r)&&Object(je.createElement)(we.RichText,{identifier:"citation",tagName:bm?"cite":void 0,style:{display:"block"},value:m,onChange:e=>n({citation:e}),__unstableMobileNoFocusOnMount:!0,"aria-label":Object(ke.__)("Quote citation text"),placeholder:Object(ke.__)("Add citation"),className:"wp-block-quote__citation",textAlign:s,__unstableOnSplitAtEnd:()=>c(Object(Oe.createBlock)("core/paragraph"))})))},save:function(e){let{attributes:t}=e;const{align:n,value:r,citation:o}=t,a=tt()({["has-text-align-"+n]:n});return Object(je.createElement)("blockquote",we.useBlockProps.save({className:a}),Object(je.createElement)(we.RichText.Content,{multiline:!0,value:r}),!we.RichText.isEmpty(o)&&Object(je.createElement)(we.RichText.Content,{tagName:"cite",value:o}))},merge(e,t){let{value:n,citation:r}=t;return r||(r=e.citation),n&&"<p></p>"!==n?{...e,value:e.value+n,citation:r}:{...e,citation:r}},deprecated:dm};var Om=n("+WrK"),jm=n("diJD");var ym=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7zm-5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h1V9H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-1h-1.5v1z"}));const fm={apiVersion:2,name:"core/block",title:"Reusable block",category:"reusable",description:"Create and save content to reuse across your site. Update the block, and the changes apply everywhere it’s used.",textdomain:"default",attributes:{ref:{type:"number"}},supports:{customClassName:!1,html:!1,inserter:!1},editorStyle:"wp-block-editor"},{name:_m}=fm,km={edit:function(e){let{attributes:{ref:t},clientId:n}=e;const[r,o]=Object(we.__experimentalUseNoRecursiveRenders)(t),{isMissing:a,hasResolved:l}=Object(ze.useSelect)(e=>{const n=e(It.store).getEntityRecord("postType","wp_block",t),r=e(It.store).hasFinishedResolution("getEntityRecord",["postType","wp_block",t]);return{hasResolved:r,isMissing:r&&!n}},[t,n]),{__experimentalConvertBlockToStatic:c}=Object(ze.useDispatch)(jm.store),[i,s,u]=Object(It.useEntityBlockEditor)("postType","wp_block",{id:t}),[m,d]=Object(It.useEntityProp)("postType","wp_block","title",t),b=Object(we.useBlockProps)(),p=Object(we.useInnerBlocksProps)({},{value:i,onInput:s,onChange:u,renderAppender:null!=i&&i.length?void 0:we.InnerBlocks.ButtonBlockAppender});return r?Object(je.createElement)("div",b,Object(je.createElement)(we.Warning,null,Object(ke.__)("Block cannot be rendered inside itself."))):a?Object(je.createElement)("div",b,Object(je.createElement)(we.Warning,null,Object(ke.__)("Block has been deleted or is unavailable."))):l?Object(je.createElement)(o,null,Object(je.createElement)("div",b,Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(_e.ToolbarGroup,null,Object(je.createElement)(_e.ToolbarButton,{onClick:()=>c(n),label:Object(ke.__)("Convert to regular blocks"),icon:ym,showTooltip:!0}))),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,null,Object(je.createElement)(_e.TextControl,{label:Object(ke.__)("Name"),value:m,onChange:d}))),Object(je.createElement)(we.__experimentalBlockContentOverlay,{clientId:n,wrapperProps:p,className:"block-library-block__reusable-block-container"}))):Object(je.createElement)("div",b,Object(je.createElement)(_e.Placeholder,null,Object(je.createElement)(_e.Spinner,null)))},icon:Om.a};var wm=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z"}));const Em={apiVersion:2,name:"core/rss",title:"RSS",category:"widgets",description:"Display entries from any RSS or Atom feed.",keywords:["atom","feed"],textdomain:"default",attributes:{columns:{type:"number",default:2},blockLayout:{type:"string",default:"list"},feedURL:{type:"string",default:""},itemsToShow:{type:"number",default:5},displayExcerpt:{type:"boolean",default:!1},displayAuthor:{type:"boolean",default:!1},displayDate:{type:"boolean",default:!1},excerptLength:{type:"number",default:55}},supports:{align:!0,html:!1},editorStyle:"wp-block-rss-editor",style:"wp-block-rss"},{name:Cm}=Em,xm={icon:wm,example:{attributes:{feedURL:"https://wordpress.org"}},edit:function(e){let{attributes:t,setAttributes:n}=e;const[r,o]=Object(je.useState)(!t.feedURL),{blockLayout:a,columns:l,displayAuthor:c,displayDate:i,displayExcerpt:s,excerptLength:u,feedURL:m,itemsToShow:d}=t;function b(e){return()=>{const r=t[e];n({[e]:!r})}}const p=Object(we.useBlockProps)();if(r)return Object(je.createElement)("div",p,Object(je.createElement)(_e.Placeholder,{icon:wm,label:"RSS"},Object(je.createElement)("form",{onSubmit:function(e){e.preventDefault(),m&&o(!1)},className:"wp-block-rss__placeholder-form"},Object(je.createElement)(_e.TextControl,{placeholder:Object(ke.__)("Enter URL here…"),value:m,onChange:e=>n({feedURL:e}),className:"wp-block-rss__placeholder-input"}),Object(je.createElement)(_e.Button,{variant:"primary",type:"submit"},Object(ke.__)("Use URL")))));const g=[{icon:tr.a,title:Object(ke.__)("Edit RSS URL"),onClick:()=>o(!0)},{icon:Za,title:Object(ke.__)("List view"),onClick:()=>n({blockLayout:"list"}),isActive:"list"===a},{icon:Ka.a,title:Object(ke.__)("Grid view"),onClick:()=>n({blockLayout:"grid"}),isActive:"grid"===a}];return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(_e.ToolbarGroup,{controls:g})),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("RSS settings")},Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Number of items"),value:d,onChange:e=>n({itemsToShow:e}),min:1,max:10,required:!0}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Display author"),checked:c,onChange:b("displayAuthor")}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Display date"),checked:i,onChange:b("displayDate")}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Display excerpt"),checked:s,onChange:b("displayExcerpt")}),s&&Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Max number of words in excerpt"),value:u,onChange:e=>n({excerptLength:e}),min:10,max:100,required:!0}),"grid"===a&&Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Columns"),value:l,onChange:e=>n({columns:e}),min:2,max:6,required:!0}))),Object(je.createElement)("div",p,Object(je.createElement)(_e.Disabled,null,Object(je.createElement)(Ce.a,{block:"core/rss",attributes:t}))))}},Sm=Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(_e.Rect,{x:"7",y:"10",width:"10",height:"4",rx:"1",fill:"currentColor"})),Bm=Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(_e.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"9.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),Object(je.createElement)(_e.Rect,{x:"16",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),Tm=Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(_e.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),Object(je.createElement)(_e.Rect,{x:"14",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),Nm=Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(_e.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",fill:"none",strokeWidth:"1.5"})),Pm=Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(_e.Rect,{x:"4.75",y:"7.75",width:"14.5",height:"8.5",rx:"1.25",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),Object(je.createElement)(_e.Rect,{x:"8",y:"11",width:"8",height:"2",fill:"currentColor"})),zm=Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(_e.Rect,{x:"4.75",y:"17.25",width:"5.5",height:"14.5",transform:"rotate(-90 4.75 17.25)",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),Object(je.createElement)(_e.Rect,{x:"4",y:"7",width:"10",height:"2",fill:"currentColor"}));var Im=[{name:"default",isDefault:!0,attributes:{buttonText:Object(ke.__)("Search"),label:Object(ke.__)("Search")}}];const Mm={apiVersion:2,name:"core/search",title:"Search",category:"widgets",description:"Help visitors find your content.",keywords:["find"],textdomain:"default",attributes:{label:{type:"string",__experimentalRole:"content"},showLabel:{type:"boolean",default:!0},placeholder:{type:"string",default:"",__experimentalRole:"content"},width:{type:"number"},widthUnit:{type:"string"},buttonText:{type:"string",__experimentalRole:"content"},buttonPosition:{type:"string",default:"button-outside"},buttonUseIcon:{type:"boolean",default:!1}},supports:{align:["left","center","right"],color:{gradients:!0,__experimentalSkipSerialization:!0},__experimentalBorder:{color:!0,radius:!0,__experimentalSkipSerialization:!0},html:!1},editorStyle:"wp-block-search-editor",style:"wp-block-search"},{name:Rm}=Mm,Lm={icon:cc.a,example:{},variations:Im,edit:function(e){var t,n;let{className:r,attributes:o,setAttributes:a,toggleSelection:l,isSelected:c,clientId:i}=e;const{label:s,showLabel:u,placeholder:m,width:d,widthUnit:b,align:p,buttonText:g,buttonPosition:h,buttonUseIcon:v,style:O}=o,j=Object(ze.useSelect)(e=>{var t;const{getBlockParentsByBlockName:n,wasBlockJustInserted:r}=e(we.store);return!(null===(t=n(i,"core/navigation"))||void 0===t||!t.length)&&r(i)},[i]),{__unstableMarkNextChangeAsNotPersistent:y}=Object(ze.useDispatch)(we.store);Object(je.useEffect)(()=>{j&&(y(),a({showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"}))},[j]);const f=null==O||null===(t=O.border)||void 0===t?void 0:t.radius,_=null==O||null===(n=O.border)||void 0===n?void 0:n.color,k=Object(we.__experimentalUseBorderProps)(o);"number"==typeof f&&(k.style.borderRadius=f+"px");const w=Object(we.__experimentalUseColorProps)(o),E="wp-block-search__width-"+Object(nt.useInstanceId)(we.__experimentalUnitControl),C="button-inside"===h,x="button-outside"===h,S="no-button"===h,B="button-only"===h,T=Object(_e.__experimentalUseCustomUnits)({availableUnits:["%","px"],defaultValues:{"%":50,px:350}}),N=[{role:"menuitemradio",title:Object(ke.__)("Button outside"),isActive:"button-outside"===h,icon:Bm,onClick:()=>{a({buttonPosition:"button-outside"})}},{role:"menuitemradio",title:Object(ke.__)("Button inside"),isActive:"button-inside"===h,icon:Tm,onClick:()=>{a({buttonPosition:"button-inside"})}},{role:"menuitemradio",title:Object(ke.__)("No button"),isActive:"no-button"===h,icon:Nm,onClick:()=>{a({buttonPosition:"no-button"})}}],P=()=>{const e=tt()("wp-block-search__input",C?void 0:k.className),t=C?{borderRadius:f}:k.style;return Object(je.createElement)("input",{className:e,style:t,"aria-label":Object(ke.__)("Optional placeholder text"),placeholder:m?void 0:Object(ke.__)("Optional placeholder…"),value:m,onChange:e=>a({placeholder:e.target.value})})},z=()=>{const e=tt()("wp-block-search__button",w.className,C?void 0:k.className,v?"has-icon":void 0),t={...w.style,...C?{borderRadius:f}:k.style};return Object(je.createElement)(je.Fragment,null,v&&Object(je.createElement)("button",{type:"button",className:e,style:t},Object(je.createElement)(nc.a,{icon:cc.a})),!v&&Object(je.createElement)(we.RichText,{className:e,style:t,"aria-label":Object(ke.__)("Button text"),placeholder:Object(ke.__)("Add button text…"),withoutInteractiveFormatting:!0,value:g,onChange:e=>a({buttonText:e})}))},I=Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(_e.ToolbarGroup,null,Object(je.createElement)(_e.ToolbarButton,{title:Object(ke.__)("Toggle search label"),icon:zm,onClick:()=>{a({showLabel:!u})},className:u?"is-pressed":void 0}),Object(je.createElement)(_e.ToolbarDropdownMenu,{icon:(()=>{switch(h){case"button-inside":return Tm;case"button-outside":return Bm;case"no-button":return Nm;case"button-only":return Sm}})(),label:Object(ke.__)("Change button position"),controls:N}),!S&&Object(je.createElement)(_e.ToolbarButton,{title:Object(ke.__)("Use button with icon"),icon:Pm,onClick:()=>{a({buttonUseIcon:!v})},className:v?"is-pressed":void 0}))),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Display Settings")},Object(je.createElement)(_e.BaseControl,{label:Object(ke.__)("Width"),id:E},Object(je.createElement)(we.__experimentalUnitControl,{id:E,min:"220px",onChange:e=>{const t="%"===b&&parseInt(e,10)>100?100:e;a({width:parseInt(t,10)})},onUnitChange:e=>{a({width:"%"===e?50:350,widthUnit:e})},style:{maxWidth:80},value:`${d}${b}`,unit:b,units:T}),Object(je.createElement)(_e.ButtonGroup,{className:"wp-block-search__components-button-group","aria-label":Object(ke.__)("Percentage Width")},[25,50,75,100].map(e=>Object(je.createElement)(_e.Button,{key:e,isSmall:!0,variant:e+"%"==`${d}${b}`?"primary":void 0,onClick:()=>a({width:e,widthUnit:"%"})},e,"%"))))))),M=e=>e?`calc(${e} + 4px)`:void 0,R=Object(we.useBlockProps)({className:tt()(r,C?void 0:k.className,C?"wp-block-search__button-inside":void 0,x?"wp-block-search__button-outside":void 0,S?"wp-block-search__no-button":void 0,B?"wp-block-search__button-only":void 0,v||S?void 0:"wp-block-search__text-button",v&&!S?"wp-block-search__icon-button":void 0)});return Object(je.createElement)("div",R,I,u&&Object(je.createElement)(we.RichText,{className:"wp-block-search__label","aria-label":Object(ke.__)("Label text"),placeholder:Object(ke.__)("Add label…"),withoutInteractiveFormatting:!0,value:s,onChange:e=>a({label:e})}),Object(je.createElement)(_e.ResizableBox,{size:{width:`${d}${b}`},className:tt()("wp-block-search__inside-wrapper",C?k.className:void 0),style:(()=>{const e={borderColor:_},t=0!==parseInt(f,10);if(C&&t){if("object"==typeof f){const{topLeft:t,topRight:n,bottomLeft:r,bottomRight:o}=f;return{borderTopLeftRadius:M(t),borderTopRightRadius:M(n),borderBottomLeftRadius:M(r),borderBottomRightRadius:M(o),...e}}const t=Number.isInteger(f)?f+"px":f;e.borderRadius=`calc(${t} + 4px)`}return e})(),minWidth:220,enable:B?{}:{right:"right"!==p,left:"right"===p},onResizeStart:(e,t,n)=>{a({width:parseInt(n.offsetWidth,10),widthUnit:"px"}),l(!1)},onResizeStop:(e,t,n,r)=>{a({width:parseInt(d+r.width,10)}),l(!0)},showHandle:c},(C||x)&&Object(je.createElement)(je.Fragment,null,P(),z()),B&&z(),S&&P()))}};var Vm=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M20.2 7v4H3.8V7H2.2v9h1.6v-3.5h16.4V16h1.6V7z"}));var Am=e=>{let{color:t,setColor:n}=e;return Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(we.PanelColorSettings,{__experimentalHasMultipleOrigins:!0,title:Object(ke.__)("Color"),colorSettings:[{value:t.color,onChange:n,label:Object(ke.__)("Color")}]}))};var Hm=Object(we.withColors)("color",{textColor:"color"})((function(e){let{color:t,setColor:n,className:r}=e;return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.HorizontalRule,Object(we.useBlockProps)({className:tt()(r,{"has-background":t.color,[t.class]:t.class}),style:{backgroundColor:t.color,color:t.color}})),Object(je.createElement)(Am,{color:t,setColor:n}))}));var Fm={from:[{type:"enter",regExp:/^-{3,}$/,transform:()=>Object(Oe.createBlock)("core/separator")},{type:"raw",selector:"hr",schema:{hr:{}}}]};const Dm={apiVersion:2,name:"core/separator",title:"Separator",category:"design",description:"Create a break between ideas or sections with a horizontal separator.",keywords:["horizontal-line","hr","divider"],textdomain:"default",attributes:{color:{type:"string"},customColor:{type:"string"}},supports:{anchor:!0,align:["center","wide","full"]},styles:[{name:"default",label:"Default",isDefault:!0},{name:"wide",label:"Wide Line"},{name:"dots",label:"Dots"}],editorStyle:"wp-block-separator-editor",style:"wp-block-separator"},{name:Gm}=Dm,qm={icon:Vm,example:{attributes:{customColor:"#065174",className:"is-style-wide"}},transforms:Fm,edit:Hm,save:function(e){let{attributes:t}=e;const{color:n,customColor:r}=t,o=Object(we.getColorClassName)("background-color",n),a=Object(we.getColorClassName)("color",n),l=tt()({"has-text-color has-background":n||r,[o]:o,[a]:a}),c={backgroundColor:o?void 0:r,color:a?void 0:r};return Object(je.createElement)("hr",we.useBlockProps.save({className:l,style:c}))}};var Um=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z"}));var Wm=n("UuzZ");var $m={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:(e,t)=>{let{content:n}=t;return Object(Wm.removep)(Object(Wm.autop)(n))}}},priority:20}]};const Zm={apiVersion:2,name:"core/shortcode",title:"Shortcode",category:"widgets",description:"Insert additional custom elements with a WordPress shortcode.",textdomain:"default",attributes:{text:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,html:!1},editorStyle:"wp-block-shortcode-editor"},{name:Km}=Zm,Jm={icon:Um,transforms:$m,edit:function e(t){let{attributes:n,setAttributes:r}=t;const o="blocks-shortcode-input-"+Object(nt.useInstanceId)(e);return Object(je.createElement)("div",Object(we.useBlockProps)({className:"components-placeholder"}),Object(je.createElement)("label",{htmlFor:o,className:"components-placeholder__label"},Object(je.createElement)(nc.a,{icon:Um}),Object(ke.__)("Shortcode")),Object(je.createElement)(we.PlainText,{className:"blocks-shortcode__textarea",id:o,value:n.text,"aria-label":Object(ke.__)("Shortcode text"),placeholder:Object(ke.__)("Write shortcode here…"),onChange:e=>r({text:e})}))},save:function(e){let{attributes:t}=e;return Object(je.createElement)(je.RawHTML,null,t.text)}};var Qm=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 1.5c4.1 0 7.5 3.4 7.5 7.5v.1c-1.4-.8-3.3-1.7-3.4-1.8-.2-.1-.5-.1-.8.1l-2.9 2.1L9 11.3c-.2-.1-.4 0-.6.1l-3.7 2.2c-.1-.5-.2-1-.2-1.5 0-4.2 3.4-7.6 7.5-7.6zm0 15c-3.1 0-5.7-1.9-6.9-4.5l3.7-2.2 3.5 1.2c.2.1.5 0 .7-.1l2.9-2.1c.8.4 2.5 1.2 3.5 1.9-.9 3.3-3.9 5.8-7.4 5.8z"}));const Ym=["image"],Xm=e=>{let{alt:t,attributes:{align:n,width:r,height:o,isLink:a,linkTarget:l},containerRef:c,isSelected:i,setAttributes:s,setLogo:u,logoUrl:m,siteUrl:d,logoId:b}=e;const p=Ta(c,[n]),g=Object(nt.useViewportMatch)("medium"),h=!Object(Me.includes)(["wide","full"],n)&&g,[{naturalWidth:v,naturalHeight:O},j]=Object(je.useState)({}),[y,f]=Object(je.useState)(!1),{toggleSelection:_}=Object(ze.useDispatch)(we.store),k=tt()("custom-logo-link",{"is-transient":Object(Pe.isBlobURL)(m)}),{imageEditing:w,maxWidth:E,title:C}=Object(ze.useSelect)(e=>{const{getSettings:t}=e(we.store);return{title:e(It.store).getEditedEntityRecord("root","site").title,...Object(Me.pick)(t(),["imageEditing","maxWidth"])}},[]);Object(je.useEffect)(()=>{i||f(!1)},[i]);const x=Object(je.createElement)("img",{className:"custom-logo",src:m,alt:t,onLoad:e=>{j(Object(Me.pick)(e.target,["naturalWidth","naturalHeight"]))}});let S,B=x;if(a&&(B=Object(je.createElement)("a",{href:d,className:k,rel:"home",title:C,onClick:e=>e.preventDefault()},x)),p&&v&&O){S=v>p?p:v}if(!h||!S)return Object(je.createElement)("div",{style:{width:r,height:o}},B);const T=r||S,N=v/O,P=T/N,z=v<O?20:20*N,I=O<v?20:20/N,M=2.5*E;let R=!1,L=!1;"center"===n?(R=!0,L=!0):Object(ke.isRTL)()?"left"===n?R=!0:L=!0:"right"===n?L=!0:R=!0;const V=b&&v&&O&&w,A=V&&y?Object(je.createElement)(we.__experimentalImageEditingProvider,{id:b,url:m,naturalWidth:v,naturalHeight:O,clientWidth:p,onSaveImage:e=>{u(e.id)},isEditing:y,onFinishEditing:()=>f(!1)},Object(je.createElement)(we.__experimentalImageEditor,{url:m,width:T,height:P,clientWidth:p,naturalHeight:O,naturalWidth:v})):Object(je.createElement)(_e.ResizableBox,{size:{width:T,height:P},showHandle:i,minWidth:z,maxWidth:M,minHeight:I,maxHeight:M/N,lockAspectRatio:!0,enable:{top:!1,right:R,bottom:!0,left:L},onResizeStart:function(){_(!1)},onResizeStop:(e,t,n,r)=>{_(!0),s({width:parseInt(T+r.width,10),height:parseInt(P+r.height,10)})}},B);return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Settings")},Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Image width"),onChange:e=>s({width:e}),min:z,max:M,initialPosition:Math.min(120,M),value:r||"",disabled:!h}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Link image to home"),onChange:()=>s({isLink:!a}),checked:a}),a&&Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Open in new tab"),onChange:e=>s({linkTarget:e?"_blank":"_self"}),checked:"_blank"===l})))),Object(je.createElement)(we.BlockControls,{group:"block"},V&&!y&&Object(je.createElement)(_e.ToolbarButton,{onClick:()=>f(!0),icon:xa,label:Object(ke.__)("Crop")})),A)};const ed={apiVersion:2,name:"core/site-logo",title:"Site Logo",category:"layout",description:"Display a graphic to represent this site. Update the block, and the changes apply everywhere it’s used. This is different than the site icon, which is the smaller image visible in your dashboard, browser tabs, etc used to help others recognize this site.",textdomain:"default",attributes:{align:{type:"string"},width:{type:"number"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"}},example:{viewportWidth:500,attributes:{width:350}},supports:{html:!1,align:!0,alignWide:!1,color:{__experimentalDuotone:"img",text:!1,background:!1}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],editorStyle:"wp-block-site-logo-editor",style:"wp-block-site-logo"},{name:td}=ed,nd={icon:Qm,edit:function(e){let{attributes:t,className:n,setAttributes:r,isSelected:o}=e;const{width:a}=t,[l,c]=Object(je.useState)(),i=Object(je.useRef)(),{siteLogoId:s,canUserEdit:u,url:m,mediaItemData:d,isRequestingMediaItem:b}=Object(ze.useSelect)(e=>{const{canUser:t,getEntityRecord:n,getEditedEntityRecord:r}=e(It.store),o=r("root","site"),a=n("root","__unstableBase"),l=null==o?void 0:o.site_logo,c=null==a?void 0:a.site_logo,i=t("update","settings"),s=i?l:c,u=s&&e(It.store).getMedia(s,{context:"view"}),m=s&&!e(It.store).hasFinishedResolution("getMedia",[s,{context:"view"}]);return{siteLogoId:s,canUserEdit:i,url:null==a?void 0:a.url,mediaItemData:u&&{id:u.id,url:u.source_url,alt:u.alt_text},isRequestingMediaItem:m}},[]),{editEntityRecord:p}=Object(ze.useDispatch)(It.store),g=e=>p("root","site",void 0,{site_logo:e});let h=null;d&&(h=d.alt,l!==d.url&&c(d.url));const v=e=>{if(e)return!e.id&&e.url?(g(void 0),void c(e.url)):void g(e.id)},{createErrorNotice:O}=Object(ze.useDispatch)(Fr.store),j=e=>{O(e[2],{type:"snackbar"})},y=u&&l&&Object(je.createElement)(we.BlockControls,{group:"other"},Object(je.createElement)(we.MediaReplaceFlow,{mediaURL:l,allowedTypes:Ym,accept:"image/*",onSelect:v,onError:j},Object(je.createElement)(_e.MenuItem,{onClick:()=>{g(null),c(void 0)}},Object(ke.__)("Reset"))));let f;const _=void 0===s||b;_&&(f=Object(je.createElement)(_e.Spinner,null)),l&&(f=Object(je.createElement)(Xm,{alt:h,attributes:t,className:n,containerRef:i,isSelected:o,setAttributes:r,logoUrl:l,setLogo:g,logoId:(null==d?void 0:d.id)||s,siteUrl:m}));const k=tt()(n,{"is-default-size":!a}),w=Object(we.useBlockProps)({ref:i,className:k}),E=Object(ke.__)("Add a site logo");return Object(je.createElement)("div",w,y,!!l&&f,!l&&!u&&Object(je.createElement)(_e.Placeholder,{className:"site-logo_placeholder"},_&&Object(je.createElement)("span",{className:"components-placeholder__preview"},Object(je.createElement)(_e.Spinner,null))),!l&&u&&Object(je.createElement)(we.MediaPlaceholder,{onSelect:v,accept:"image/*",allowedTypes:Ym,onError:j,placeholder:e=>{const t=tt()("block-editor-media-placeholder",n);return Object(je.createElement)(_e.Placeholder,{className:t,preview:f},Object(je.createElement)(ye.SVG,{className:"components-placeholder__illustration",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60"},Object(je.createElement)(ye.Path,{vectorEffect:"non-scaling-stroke",d:"m61 32.622-13.555-9.137-15.888 9.859a5 5 0 0 1-5.386-.073l-9.095-5.989L1 37.5"})),e)},mediaLibraryButton:e=>{let{open:t}=e;return Object(je.createElement)(_e.Button,{icon:Sa.a,variant:"primary",label:E,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{t()}})}}))}};var rd=Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},Object(je.createElement)(_e.Path,{fill:"none",d:"M0 0h24v24H0z"}),Object(je.createElement)(_e.Path,{d:"M4 9h16v2H4V9zm0 4h10v2H4v-2z"}));var od=[{attributes:{textAlign:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:at,isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}}];const ad={apiVersion:2,name:"core/site-tagline",title:"Site Tagline",category:"design",description:"Describe in a few words what the website is about. The tagline can be used in search results or when sharing on social networks even if it's not displayed in the theme design.",keywords:["description"],textdomain:"default",attributes:{textAlign:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-site-tagline-editor"},{name:ld}=ad,cd={icon:rd,edit:function(e){let{attributes:t,setAttributes:n}=e;const{textAlign:r}=t,[o,a]=Object(It.useEntityProp)("root","site","description"),{canUserEdit:l,readOnlySiteTagLine:c}=Object(ze.useSelect)(e=>{const{canUser:t,getEntityRecord:n}=e(It.store),r=n("root","__unstableBase");return{canUserEdit:t("update","settings"),readOnlySiteTagLine:null==r?void 0:r.description}},[]),i=Object(we.useBlockProps)({className:tt()({["has-text-align-"+r]:r,"wp-block-site-tagline__placeholder":!l&&!c})}),s=l?Object(je.createElement)(we.RichText,Object(mt.a)({allowedFormats:[],onChange:a,"aria-label":Object(ke.__)("Site tagline text"),placeholder:Object(ke.__)("Write site tagline…"),tagName:"p",value:o},i)):Object(je.createElement)("p",i,c||Object(ke.__)("Site Tagline placeholder"));return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(we.AlignmentControl,{onChange:e=>n({textAlign:e}),value:r})),s)},deprecated:od};var id=Object(je.createElement)(ye.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M12 9c-.8 0-1.5.7-1.5 1.5S11.2 12 12 12s1.5-.7 1.5-1.5S12.8 9 12 9zm0-5c-3.6 0-6.5 2.8-6.5 6.2 0 .8.3 1.8.9 3.1.5 1.1 1.2 2.3 2 3.6.7 1 3 3.8 3.2 3.9l.4.5.4-.5c.2-.2 2.6-2.9 3.2-3.9.8-1.2 1.5-2.5 2-3.6.6-1.3.9-2.3.9-3.1C18.5 6.8 15.6 4 12 4zm4.3 8.7c-.5 1-1.1 2.2-1.9 3.4-.5.7-1.7 2.2-2.4 3-.7-.8-1.9-2.3-2.4-3-.8-1.2-1.4-2.3-1.9-3.3-.6-1.4-.7-2.2-.7-2.5 0-2.6 2.2-4.7 5-4.7s5 2.1 5 4.7c0 .2-.1 1-.7 2.4z"}));function sd(e){let{level:t,isPressed:n=!1}=e;if(0===t)return Ti;return Object(je.createElement)(_e.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:n},Object(je.createElement)(_e.Path,{d:{1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z"}[t]}))}function ud(e){let{level:t,onChange:n}=e;const r=[1,2,3,4,5,6,0].map(e=>{const r=e===t;return{icon:Object(je.createElement)(sd,{level:e,isPressed:r}),title:0===e?Object(ke.__)("Paragraph"):Object(ke.sprintf)(Object(ke.__)("Heading %d"),e),isActive:r,onClick:()=>n(e)}});return Object(je.createElement)(_e.ToolbarDropdownMenu,{label:Object(ke.__)("Change heading level"),icon:Object(je.createElement)(sd,{level:t}),controls:r})}var md=[{attributes:{level:{type:"number",default:1},textAlign:{type:"string"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:at,isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}}];const dd={apiVersion:2,name:"core/site-title",title:"Site Title",category:"design",description:"Displays the name of this site. Update the block, and the changes apply everywhere it’s used. This will also appear in the browser title bar and in search results.",textdomain:"default",attributes:{level:{type:"number",default:1},textAlign:{type:"string"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"}},example:{viewportWidth:500},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,lineHeight:!0,fontAppearance:!0,letterSpacing:!0,textTransform:!0}}},editorStyle:"wp-block-site-title-editor"},{name:bd}=dd,pd={icon:id,edit:function(e){let{attributes:t,setAttributes:n,insertBlocksAfter:r}=e;const{level:o,textAlign:a,isLink:l,linkTarget:c}=t,[i,s]=Object(It.useEntityProp)("root","site","title"),{canUserEdit:u,readOnlyTitle:m}=Object(ze.useSelect)(e=>{const{canUser:t,getEntityRecord:n}=e(It.store),r=n("root","__unstableBase");return{canUserEdit:t("update","settings"),readOnlyTitle:Object(rc.decodeEntities)(null==r?void 0:r.name)}},[]),d=0===o?"p":"h"+o,b=Object(we.useBlockProps)({className:tt()({["has-text-align-"+a]:a,"wp-block-site-title__placeholder":!u&&!m})}),p=u?Object(je.createElement)(d,b,Object(je.createElement)(we.RichText,{tagName:l?"a":"span",href:l?"#site-title-pseudo-link":void 0,"aria-label":Object(ke.__)("Site title text"),placeholder:Object(ke.__)("Write site title…"),value:i,onChange:s,allowedFormats:[],disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>r(Object(Oe.createBlock)(Object(Oe.getDefaultBlockName)()))})):Object(je.createElement)(d,b,l?Object(je.createElement)("a",{href:"#site-title-pseudo-link",onClick:e=>e.preventDefault()},m||Object(ke.__)("Site Title placeholder")):Object(je.createElement)("span",null,i||m));return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(ud,{level:o,onChange:e=>n({level:e})}),Object(je.createElement)(we.AlignmentControl,{value:a,onChange:e=>{n({textAlign:e})}})),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Link settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Make title link to home"),onChange:()=>n({isLink:!l}),checked:l}),l&&Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Open in new tab"),onChange:e=>n({linkTarget:e?"_blank":"_self"}),checked:"_blank"===c}))),p)},deprecated:md};var gd=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M9 11.8l6.1-4.5c.1.4.4.7.9.7h2c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-2c-.6 0-1 .4-1 1v.4l-6.4 4.8c-.2-.1-.4-.2-.6-.2H6c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.2 0 .4-.1.6-.2l6.4 4.8v.4c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1h-2c-.5 0-.8.3-.9.7L9 12.2v-.4z"})),hd=n("btIw");const vd=()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M19.647,16.706a1.134,1.134,0,0,0-.343-.833l-2.549-2.549a1.134,1.134,0,0,0-.833-.343,1.168,1.168,0,0,0-.883.392l.233.226q.2.189.264.264a2.922,2.922,0,0,1,.184.233.986.986,0,0,1,.159.312,1.242,1.242,0,0,1,.043.337,1.172,1.172,0,0,1-1.176,1.176,1.237,1.237,0,0,1-.337-.043,1,1,0,0,1-.312-.159,2.76,2.76,0,0,1-.233-.184q-.073-.068-.264-.264l-.226-.233a1.19,1.19,0,0,0-.4.895,1.134,1.134,0,0,0,.343.833L15.837,19.3a1.13,1.13,0,0,0,.833.331,1.18,1.18,0,0,0,.833-.318l1.8-1.789a1.12,1.12,0,0,0,.343-.821Zm-8.615-8.64a1.134,1.134,0,0,0-.343-.833L8.163,4.7a1.134,1.134,0,0,0-.833-.343,1.184,1.184,0,0,0-.833.331L4.7,6.473a1.12,1.12,0,0,0-.343.821,1.134,1.134,0,0,0,.343.833l2.549,2.549a1.13,1.13,0,0,0,.833.331,1.184,1.184,0,0,0,.883-.38L8.728,10.4q-.2-.189-.264-.264A2.922,2.922,0,0,1,8.28,9.9a.986.986,0,0,1-.159-.312,1.242,1.242,0,0,1-.043-.337A1.172,1.172,0,0,1,9.254,8.079a1.237,1.237,0,0,1,.337.043,1,1,0,0,1,.312.159,2.761,2.761,0,0,1,.233.184q.073.068.264.264l.226.233a1.19,1.19,0,0,0,.4-.895ZM22,16.706a3.343,3.343,0,0,1-1.042,2.488l-1.8,1.789a3.536,3.536,0,0,1-4.988-.025l-2.525-2.537a3.384,3.384,0,0,1-1.017-2.488,3.448,3.448,0,0,1,1.078-2.561l-1.078-1.078a3.434,3.434,0,0,1-2.549,1.078,3.4,3.4,0,0,1-2.5-1.029L3.029,9.794A3.4,3.4,0,0,1,2,7.294,3.343,3.343,0,0,1,3.042,4.806l1.8-1.789A3.384,3.384,0,0,1,7.331,2a3.357,3.357,0,0,1,2.5,1.042l2.525,2.537a3.384,3.384,0,0,1,1.017,2.488,3.448,3.448,0,0,1-1.078,2.561l1.078,1.078a3.551,3.551,0,0,1,5.049-.049l2.549,2.549A3.4,3.4,0,0,1,22,16.706Z"})),Od=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:"WordPress",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M12.158,12.786L9.46,20.625c0.806,0.237,1.657,0.366,2.54,0.366c1.047,0,2.051-0.181,2.986-0.51 c-0.024-0.038-0.046-0.079-0.065-0.124L12.158,12.786z M3.009,12c0,3.559,2.068,6.634,5.067,8.092L3.788,8.341 C3.289,9.459,3.009,10.696,3.009,12z M18.069,11.546c0-1.112-0.399-1.881-0.741-2.48c-0.456-0.741-0.883-1.368-0.883-2.109 c0-0.826,0.627-1.596,1.51-1.596c0.04,0,0.078,0.005,0.116,0.007C16.472,3.904,14.34,3.009,12,3.009 c-3.141,0-5.904,1.612-7.512,4.052c0.211,0.007,0.41,0.011,0.579,0.011c0.94,0,2.396-0.114,2.396-0.114 C7.947,6.93,8.004,7.642,7.52,7.699c0,0-0.487,0.057-1.029,0.085l3.274,9.739l1.968-5.901l-1.401-3.838 C9.848,7.756,9.389,7.699,9.389,7.699C8.904,7.67,8.961,6.93,9.446,6.958c0,0,1.484,0.114,2.368,0.114 c0.94,0,2.397-0.114,2.397-0.114c0.485-0.028,0.542,0.684,0.057,0.741c0,0-0.488,0.057-1.029,0.085l3.249,9.665l0.897-2.996 C17.841,13.284,18.069,12.316,18.069,11.546z M19.889,7.686c0.039,0.286,0.06,0.593,0.06,0.924c0,0.912-0.171,1.938-0.684,3.22 l-2.746,7.94c2.673-1.558,4.47-4.454,4.47-7.771C20.991,10.436,20.591,8.967,19.889,7.686z M12,22C6.486,22,2,17.514,2,12 C2,6.486,6.486,2,12,2c5.514,0,10,4.486,10,10C22,17.514,17.514,22,12,22z"}))},{name:"fivehundredpx",attributes:{service:"fivehundredpx"},title:"500px",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M6.94026,15.1412c.00437.01213.108.29862.168.44064a6.55008,6.55008,0,1,0,6.03191-9.09557,6.68654,6.68654,0,0,0-2.58357.51467A8.53914,8.53914,0,0,0,8.21268,8.61344L8.209,8.61725V3.22948l9.0504-.00008c.32934-.0036.32934-.46353.32934-.61466s0-.61091-.33035-.61467L7.47248,2a.43.43,0,0,0-.43131.42692v7.58355c0,.24466.30476.42131.58793.4819.553.11812.68074-.05864.81617-.2457l.018-.02481A10.52673,10.52673,0,0,1,9.32258,9.258a5.35268,5.35268,0,1,1,7.58985,7.54976,5.417,5.417,0,0,1-3.80867,1.56365,5.17483,5.17483,0,0,1-2.69822-.74478l.00342-4.61111a2.79372,2.79372,0,0,1,.71372-1.78792,2.61611,2.61611,0,0,1,1.98282-.89477,2.75683,2.75683,0,0,1,1.95525.79477,2.66867,2.66867,0,0,1,.79656,1.909,2.724,2.724,0,0,1-2.75849,2.748,4.94651,4.94651,0,0,1-.86254-.13719c-.31234-.093-.44519.34058-.48892.48349-.16811.54966.08453.65862.13687.67489a3.75751,3.75751,0,0,0,1.25234.18375,3.94634,3.94634,0,1,0-2.82444-6.742,3.67478,3.67478,0,0,0-1.13028,2.584l-.00041.02323c-.0035.11667-.00579,2.881-.00644,3.78811l-.00407-.00451a6.18521,6.18521,0,0,1-1.0851-1.86092c-.10544-.27856-.34358-.22925-.66857-.12917-.14192.04372-.57386.17677-.47833.489Zm4.65165-1.08338a.51346.51346,0,0,0,.19513.31818l.02276.022a.52945.52945,0,0,0,.3517.18416.24242.24242,0,0,0,.16577-.0611c.05473-.05082.67382-.67812.73287-.738l.69041.68819a.28978.28978,0,0,0,.21437.11032.53239.53239,0,0,0,.35708-.19486c.29792-.30419.14885-.46821.07676-.54751l-.69954-.69975.72952-.73469c.16-.17311.01874-.35708-.12218-.498-.20461-.20461-.402-.25742-.52855-.14083l-.7254.72665-.73354-.73375a.20128.20128,0,0,0-.14179-.05695.54135.54135,0,0,0-.34379.19648c-.22561.22555-.274.38149-.15656.5059l.73374.7315-.72942.73072A.26589.26589,0,0,0,11.59191,14.05782Zm1.59866-9.915A8.86081,8.86081,0,0,0,9.854,4.776a.26169.26169,0,0,0-.16938.22759.92978.92978,0,0,0,.08619.42094c.05682.14524.20779.531.50006.41955a8.40969,8.40969,0,0,1,2.91968-.55484,7.87875,7.87875,0,0,1,3.086.62286,8.61817,8.61817,0,0,1,2.30562,1.49315.2781.2781,0,0,0,.18318.07586c.15529,0,.30425-.15253.43167-.29551.21268-.23861.35873-.4369.1492-.63538a8.50425,8.50425,0,0,0-2.62312-1.694A9.0177,9.0177,0,0,0,13.19058,4.14283ZM19.50945,18.6236h0a.93171.93171,0,0,0-.36642-.25406.26589.26589,0,0,0-.27613.06613l-.06943.06929A7.90606,7.90606,0,0,1,7.60639,18.505a7.57284,7.57284,0,0,1-1.696-2.51537,8.58715,8.58715,0,0,1-.5147-1.77754l-.00871-.04864c-.04939-.25873-.28755-.27684-.62981-.22448-.14234.02178-.5755.088-.53426.39969l.001.00712a9.08807,9.08807,0,0,0,15.406,4.99094c.00193-.00192.04753-.04718.0725-.07436C19.79425,19.16234,19.87422,18.98728,19.50945,18.6236Z"}))},{name:"amazon",attributes:{service:"amazon"},title:"Amazon",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M13.582,8.182C11.934,8.367,9.78,8.49,8.238,9.166c-1.781,0.769-3.03,2.337-3.03,4.644 c0,2.953,1.86,4.429,4.253,4.429c2.02,0,3.125-0.477,4.685-2.065c0.516,0.747,0.685,1.109,1.629,1.894 c0.212,0.114,0.483,0.103,0.672-0.066l0.006,0.006c0.567-0.505,1.599-1.401,2.18-1.888c0.231-0.188,0.19-0.496,0.009-0.754 c-0.52-0.718-1.072-1.303-1.072-2.634V8.305c0-1.876,0.133-3.599-1.249-4.891C15.23,2.369,13.422,2,12.04,2 C9.336,2,6.318,3.01,5.686,6.351C5.618,6.706,5.877,6.893,6.109,6.945l2.754,0.298C9.121,7.23,9.308,6.977,9.357,6.72 c0.236-1.151,1.2-1.706,2.284-1.706c0.584,0,1.249,0.215,1.595,0.738c0.398,0.584,0.346,1.384,0.346,2.061V8.182z M13.049,14.088 c-0.451,0.8-1.169,1.291-1.967,1.291c-1.09,0-1.728-0.83-1.728-2.061c0-2.42,2.171-2.86,4.227-2.86v0.615 C13.582,12.181,13.608,13.104,13.049,14.088z M20.683,19.339C18.329,21.076,14.917,22,11.979,22c-4.118,0-7.826-1.522-10.632-4.057 c-0.22-0.199-0.024-0.471,0.241-0.317c3.027,1.762,6.771,2.823,10.639,2.823c2.608,0,5.476-0.541,8.115-1.66 C20.739,18.62,21.072,19.051,20.683,19.339z M21.336,21.043c-0.194,0.163-0.379,0.076-0.293-0.139 c0.284-0.71,0.92-2.298,0.619-2.684c-0.301-0.386-1.99-0.183-2.749-0.092c-0.23,0.027-0.266-0.173-0.059-0.319 c1.348-0.946,3.555-0.673,3.811-0.356C22.925,17.773,22.599,19.986,21.336,21.043z"}))},{name:"bandcamp",attributes:{service:"bandcamp"},title:"Bandcamp",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"}))},{name:"behance",attributes:{service:"behance"},title:"Behance",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M7.799,5.698c0.589,0,1.12,0.051,1.606,0.156c0.482,0.102,0.894,0.273,1.241,0.507c0.344,0.235,0.612,0.546,0.804,0.938 c0.188,0.387,0.281,0.871,0.281,1.443c0,0.619-0.141,1.137-0.421,1.551c-0.284,0.413-0.7,0.751-1.255,1.014 c0.756,0.218,1.317,0.601,1.689,1.146c0.374,0.549,0.557,1.205,0.557,1.975c0,0.623-0.12,1.161-0.359,1.612 c-0.241,0.457-0.569,0.828-0.973,1.114c-0.408,0.288-0.876,0.5-1.399,0.637C9.052,17.931,8.514,18,7.963,18H2V5.698H7.799 M7.449,10.668c0.481,0,0.878-0.114,1.192-0.345c0.311-0.228,0.463-0.603,0.463-1.119c0-0.286-0.051-0.523-0.152-0.707 C8.848,8.315,8.711,8.171,8.536,8.07C8.362,7.966,8.166,7.894,7.94,7.854c-0.224-0.044-0.457-0.06-0.697-0.06H4.709v2.874H7.449z M7.6,15.905c0.267,0,0.521-0.024,0.759-0.077c0.243-0.053,0.457-0.137,0.637-0.261c0.182-0.12,0.332-0.283,0.441-0.491 C9.547,14.87,9.6,14.602,9.6,14.278c0-0.633-0.18-1.084-0.533-1.357c-0.356-0.27-0.83-0.404-1.413-0.404H4.709v3.388L7.6,15.905z M16.162,15.864c0.367,0.358,0.897,0.538,1.583,0.538c0.493,0,0.92-0.125,1.277-0.374c0.354-0.248,0.571-0.514,0.654-0.79h2.155 c-0.347,1.072-0.872,1.838-1.589,2.299C19.534,18,18.67,18.23,17.662,18.23c-0.701,0-1.332-0.113-1.899-0.337 c-0.567-0.227-1.041-0.544-1.439-0.958c-0.389-0.415-0.689-0.907-0.904-1.484c-0.213-0.574-0.32-1.21-0.32-1.899 c0-0.666,0.11-1.288,0.329-1.863c0.222-0.577,0.529-1.075,0.933-1.492c0.406-0.42,0.885-0.751,1.444-0.994 c0.558-0.241,1.175-0.363,1.857-0.363c0.754,0,1.414,0.145,1.98,0.44c0.563,0.291,1.026,0.686,1.389,1.181 c0.363,0.493,0.622,1.057,0.783,1.69c0.16,0.632,0.217,1.292,0.171,1.983h-6.428C15.557,14.84,15.795,15.506,16.162,15.864 M18.973,11.184c-0.291-0.321-0.783-0.496-1.384-0.496c-0.39,0-0.714,0.066-0.973,0.2c-0.254,0.132-0.461,0.297-0.621,0.491 c-0.157,0.197-0.265,0.405-0.328,0.628c-0.063,0.217-0.101,0.413-0.111,0.587h3.98C19.478,11.969,19.265,11.509,18.973,11.184z M15.057,7.738h4.985V6.524h-4.985L15.057,7.738z"}))},{name:"chain",attributes:{service:"chain"},title:"Link",icon:vd},{name:"codepen",attributes:{service:"codepen"},title:"CodePen",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M22.016,8.84c-0.002-0.013-0.005-0.025-0.007-0.037c-0.005-0.025-0.008-0.048-0.015-0.072 c-0.003-0.015-0.01-0.028-0.013-0.042c-0.008-0.02-0.015-0.04-0.023-0.062c-0.007-0.015-0.013-0.028-0.02-0.042 c-0.008-0.02-0.018-0.037-0.03-0.057c-0.007-0.013-0.017-0.027-0.025-0.038c-0.012-0.018-0.023-0.035-0.035-0.052 c-0.01-0.013-0.02-0.025-0.03-0.037c-0.015-0.017-0.028-0.032-0.043-0.045c-0.01-0.012-0.022-0.023-0.035-0.035 c-0.015-0.015-0.032-0.028-0.048-0.04c-0.012-0.01-0.025-0.02-0.037-0.03c-0.005-0.003-0.01-0.008-0.015-0.012l-9.161-6.096 c-0.289-0.192-0.666-0.192-0.955,0L2.359,8.237C2.354,8.24,2.349,8.245,2.344,8.249L2.306,8.277 c-0.017,0.013-0.033,0.027-0.048,0.04C2.246,8.331,2.234,8.342,2.222,8.352c-0.015,0.015-0.028,0.03-0.042,0.047 c-0.012,0.013-0.022,0.023-0.03,0.037C2.139,8.453,2.125,8.471,2.115,8.488C2.107,8.501,2.099,8.514,2.09,8.526 C2.079,8.548,2.069,8.565,2.06,8.585C2.054,8.6,2.047,8.613,2.04,8.626C2.032,8.648,2.025,8.67,2.019,8.69 c-0.005,0.013-0.01,0.027-0.013,0.042C1.999,8.755,1.995,8.778,1.99,8.803C1.989,8.817,1.985,8.828,1.984,8.84 C1.978,8.879,1.975,8.915,1.975,8.954v6.093c0,0.037,0.003,0.075,0.008,0.112c0.002,0.012,0.005,0.025,0.007,0.038 c0.005,0.023,0.008,0.047,0.015,0.072c0.003,0.015,0.008,0.028,0.013,0.04c0.007,0.022,0.013,0.042,0.022,0.063 c0.007,0.015,0.013,0.028,0.02,0.04c0.008,0.02,0.018,0.038,0.03,0.058c0.007,0.013,0.015,0.027,0.025,0.038 c0.012,0.018,0.023,0.035,0.035,0.052c0.01,0.013,0.02,0.025,0.03,0.037c0.013,0.015,0.028,0.032,0.042,0.045 c0.012,0.012,0.023,0.023,0.035,0.035c0.015,0.013,0.032,0.028,0.048,0.04l0.038,0.03c0.005,0.003,0.01,0.007,0.013,0.01 l9.163,6.095C11.668,21.953,11.833,22,12,22c0.167,0,0.332-0.047,0.478-0.144l9.163-6.095l0.015-0.01 c0.013-0.01,0.027-0.02,0.037-0.03c0.018-0.013,0.035-0.028,0.048-0.04c0.013-0.012,0.025-0.023,0.035-0.035 c0.017-0.015,0.03-0.032,0.043-0.045c0.01-0.013,0.02-0.025,0.03-0.037c0.013-0.018,0.025-0.035,0.035-0.052 c0.008-0.013,0.018-0.027,0.025-0.038c0.012-0.02,0.022-0.038,0.03-0.058c0.007-0.013,0.013-0.027,0.02-0.04 c0.008-0.022,0.015-0.042,0.023-0.063c0.003-0.013,0.01-0.027,0.013-0.04c0.007-0.025,0.01-0.048,0.015-0.072 c0.002-0.013,0.005-0.027,0.007-0.037c0.003-0.042,0.007-0.079,0.007-0.117V8.954C22.025,8.915,22.022,8.879,22.016,8.84z M12.862,4.464l6.751,4.49l-3.016,2.013l-3.735-2.492V4.464z M11.138,4.464v4.009l-3.735,2.494L4.389,8.954L11.138,4.464z M3.699,10.562L5.853,12l-2.155,1.438V10.562z M11.138,19.536l-6.749-4.491l3.015-2.011l3.735,2.492V19.536z M12,14.035L8.953,12 L12,9.966L15.047,12L12,14.035z M12.862,19.536v-4.009l3.735-2.492l3.016,2.011L12.862,19.536z M20.303,13.438L18.147,12 l2.156-1.438L20.303,13.438z"}))},{name:"deviantart",attributes:{service:"deviantart"},title:"DeviantArt",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M 18.19 5.636 18.19 2 18.188 2 14.553 2 14.19 2.366 12.474 5.636 11.935 6 5.81 6 5.81 10.994 9.177 10.994 9.477 11.357 5.81 18.363 5.81 22 5.811 22 9.447 22 9.81 21.634 11.526 18.364 12.065 18 18.19 18 18.19 13.006 14.823 13.006 14.523 12.641 18.19 5.636z"}))},{name:"dribbble",attributes:{service:"dribbble"},title:"Dribbble",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M12,22C6.486,22,2,17.514,2,12S6.486,2,12,2c5.514,0,10,4.486,10,10S17.514,22,12,22z M20.434,13.369 c-0.292-0.092-2.644-0.794-5.32-0.365c1.117,3.07,1.572,5.57,1.659,6.09C18.689,17.798,20.053,15.745,20.434,13.369z M15.336,19.876c-0.127-0.749-0.623-3.361-1.822-6.477c-0.019,0.006-0.038,0.013-0.056,0.019c-4.818,1.679-6.547,5.02-6.701,5.334 c1.448,1.129,3.268,1.803,5.243,1.803C13.183,20.555,14.311,20.313,15.336,19.876z M5.654,17.724 c0.193-0.331,2.538-4.213,6.943-5.637c0.111-0.036,0.224-0.07,0.337-0.102c-0.214-0.485-0.448-0.971-0.692-1.45 c-4.266,1.277-8.405,1.223-8.778,1.216c-0.003,0.087-0.004,0.174-0.004,0.261C3.458,14.207,4.29,16.21,5.654,17.724z M3.639,10.264 c0.382,0.005,3.901,0.02,7.897-1.041c-1.415-2.516-2.942-4.631-3.167-4.94C5.979,5.41,4.193,7.613,3.639,10.264z M9.998,3.709 c0.236,0.316,1.787,2.429,3.187,5c3.037-1.138,4.323-2.867,4.477-3.085C16.154,4.286,14.17,3.471,12,3.471 C11.311,3.471,10.641,3.554,9.998,3.709z M18.612,6.612C18.432,6.855,17,8.69,13.842,9.979c0.199,0.407,0.389,0.821,0.567,1.237 c0.063,0.148,0.124,0.295,0.184,0.441c2.842-0.357,5.666,0.215,5.948,0.275C20.522,9.916,19.801,8.065,18.612,6.612z"}))},{name:"dropbox",attributes:{service:"dropbox"},title:"Dropbox",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M12,6.134L6.069,9.797L2,6.54l5.883-3.843L12,6.134z M2,13.054l5.883,3.843L12,13.459L6.069,9.797L2,13.054z M12,13.459 l4.116,3.439L22,13.054l-4.069-3.257L12,13.459z M22,6.54l-5.884-3.843L12,6.134l5.931,3.663L22,6.54z M12.011,14.2l-4.129,3.426 l-1.767-1.153v1.291l5.896,3.539l5.897-3.539v-1.291l-1.769,1.153L12.011,14.2z"}))},{name:"etsy",attributes:{service:"etsy"},title:"Etsy",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M9.16033,4.038c0-.27174.02717-.43478.48913-.43478h6.22283c1.087,0,1.68478.92391,2.11957,2.663l.35326,1.38587h1.05978C19.59511,3.712,19.75815,2,19.75815,2s-2.663.29891-4.23913.29891h-7.962L3.29076,2.163v1.1413L4.731,3.57609c1.00543.19022,1.25.40761,1.33152,1.33152,0,0,.08152,2.71739.08152,7.20109s-.08152,7.17391-.08152,7.17391c0,.81522-.32609,1.11413-1.33152,1.30435l-1.44022.27174V22l4.2663-.13587h7.11957c1.60326,0,5.32609.13587,5.32609.13587.08152-.97826.625-5.40761.70652-5.89674H19.7038L18.644,18.52174c-.84239,1.90217-2.06522,2.038-3.42391,2.038H11.1712c-1.3587,0-2.01087-.54348-2.01087-1.712V12.65217s3.0163,0,3.99457.08152c.76087.05435,1.22283.27174,1.46739,1.33152l.32609,1.413h1.16848l-.08152-3.55978.163-3.587H15.02989l-.38043,1.57609c-.24457,1.03261-.40761,1.22283-1.46739,1.33152-1.38587.13587-4.02174.1087-4.02174.1087Z"}))},{name:"facebook",attributes:{service:"facebook"},title:"Facebook",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10z"}))},{name:"feed",attributes:{service:"feed"},title:"RSS Feed",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M2,8.667V12c5.515,0,10,4.485,10,10h3.333C15.333,14.637,9.363,8.667,2,8.667z M2,2v3.333 c9.19,0,16.667,7.477,16.667,16.667H22C22,10.955,13.045,2,2,2z M4.5,17C3.118,17,2,18.12,2,19.5S3.118,22,4.5,22S7,20.88,7,19.5 S5.882,17,4.5,17z"}))},{name:"flickr",attributes:{service:"flickr"},title:"Flickr",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M6.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5S9.25,7,6.5,7z M17.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5 S20.25,7,17.5,7z"}))},{name:"foursquare",attributes:{service:"foursquare"},title:"Foursquare",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M17.573,2c0,0-9.197,0-10.668,0S5,3.107,5,3.805s0,16.948,0,16.948c0,0.785,0.422,1.077,0.66,1.172 c0.238,0.097,0.892,0.177,1.285-0.275c0,0,5.035-5.843,5.122-5.93c0.132-0.132,0.132-0.132,0.262-0.132h3.26 c1.368,0,1.588-0.977,1.732-1.552c0.078-0.318,0.692-3.428,1.225-6.122l0.675-3.368C19.56,2.893,19.14,2,17.573,2z M16.495,7.22 c-0.053,0.252-0.372,0.518-0.665,0.518c-0.293,0-4.157,0-4.157,0c-0.467,0-0.802,0.318-0.802,0.787v0.508 c0,0.467,0.337,0.798,0.805,0.798c0,0,3.197,0,3.528,0s0.655,0.362,0.583,0.715c-0.072,0.353-0.407,2.102-0.448,2.295 c-0.04,0.193-0.262,0.523-0.655,0.523c-0.33,0-2.88,0-2.88,0c-0.523,0-0.683,0.068-1.033,0.503 c-0.35,0.437-3.505,4.223-3.505,4.223c-0.032,0.035-0.063,0.027-0.063-0.015V4.852c0-0.298,0.26-0.648,0.648-0.648 c0,0,8.228,0,8.562,0c0.315,0,0.61,0.297,0.528,0.683L16.495,7.22z"}))},{name:"goodreads",attributes:{service:"goodreads"},title:"Goodreads",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M17.3,17.5c-0.2,0.8-0.5,1.4-1,1.9c-0.4,0.5-1,0.9-1.7,1.2C13.9,20.9,13.1,21,12,21c-0.6,0-1.3-0.1-1.9-0.2 c-0.6-0.1-1.1-0.4-1.6-0.7c-0.5-0.3-0.9-0.7-1.2-1.2c-0.3-0.5-0.5-1.1-0.5-1.7h1.5c0.1,0.5,0.2,0.9,0.5,1.2 c0.2,0.3,0.5,0.6,0.9,0.8c0.3,0.2,0.7,0.3,1.1,0.4c0.4,0.1,0.8,0.1,1.2,0.1c1.4,0,2.5-0.4,3.1-1.2c0.6-0.8,1-2,1-3.5v-1.7h0 c-0.4,0.8-0.9,1.4-1.6,1.9c-0.7,0.5-1.5,0.7-2.4,0.7c-1,0-1.9-0.2-2.6-0.5C8.7,15,8.1,14.5,7.7,14c-0.5-0.6-0.8-1.3-1-2.1 c-0.2-0.8-0.3-1.6-0.3-2.5c0-0.9,0.1-1.7,0.4-2.5c0.3-0.8,0.6-1.5,1.1-2c0.5-0.6,1.1-1,1.8-1.4C10.3,3.2,11.1,3,12,3 c0.5,0,0.9,0.1,1.3,0.2c0.4,0.1,0.8,0.3,1.1,0.5c0.3,0.2,0.6,0.5,0.9,0.8c0.3,0.3,0.5,0.6,0.6,1h0V3.4h1.5V15 C17.6,15.9,17.5,16.7,17.3,17.5z M13.8,14.1c0.5-0.3,0.9-0.7,1.3-1.1c0.3-0.5,0.6-1,0.8-1.6c0.2-0.6,0.3-1.2,0.3-1.9 c0-0.6-0.1-1.2-0.2-1.9c-0.1-0.6-0.4-1.2-0.7-1.7c-0.3-0.5-0.7-0.9-1.3-1.2c-0.5-0.3-1.1-0.5-1.9-0.5s-1.4,0.2-1.9,0.5 c-0.5,0.3-1,0.7-1.3,1.2C8.5,6.4,8.3,7,8.1,7.6C8,8.2,7.9,8.9,7.9,9.5c0,0.6,0.1,1.3,0.2,1.9C8.3,12,8.6,12.5,8.9,13 c0.3,0.5,0.8,0.8,1.3,1.1c0.5,0.3,1.1,0.4,1.9,0.4C12.7,14.5,13.3,14.4,13.8,14.1z"}))},{name:"google",attributes:{service:"google"},title:"Google",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M12.02,10.18v3.72v0.01h5.51c-0.26,1.57-1.67,4.22-5.5,4.22c-3.31,0-6.01-2.75-6.01-6.12s2.7-6.12,6.01-6.12 c1.87,0,3.13,0.8,3.85,1.48l2.84-2.76C16.99,2.99,14.73,2,12.03,2c-5.52,0-10,4.48-10,10s4.48,10,10,10c5.77,0,9.6-4.06,9.6-9.77 c0-0.83-0.11-1.42-0.25-2.05H12.02z"}))},{name:"github",attributes:{service:"github"},title:"GitHub",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,4.419,2.865,8.166,6.839,9.489c0.5,0.09,0.682-0.218,0.682-0.484 c0-0.236-0.009-0.866-0.014-1.699c-2.782,0.602-3.369-1.34-3.369-1.34c-0.455-1.157-1.11-1.465-1.11-1.465 c-0.909-0.62,0.069-0.608,0.069-0.608c1.004,0.071,1.532,1.03,1.532,1.03c0.891,1.529,2.341,1.089,2.91,0.833 c0.091-0.647,0.349-1.086,0.635-1.337c-2.22-0.251-4.555-1.111-4.555-4.943c0-1.091,0.39-1.984,1.03-2.682 C6.546,8.54,6.202,7.524,6.746,6.148c0,0,0.84-0.269,2.75,1.025C10.295,6.95,11.15,6.84,12,6.836 c0.85,0.004,1.705,0.114,2.504,0.336c1.909-1.294,2.748-1.025,2.748-1.025c0.546,1.376,0.202,2.394,0.1,2.646 c0.64,0.699,1.026,1.591,1.026,2.682c0,3.841-2.337,4.687-4.565,4.935c0.359,0.307,0.679,0.917,0.679,1.852 c0,1.335-0.012,2.415-0.012,2.741c0,0.269,0.18,0.579,0.688,0.481C19.138,20.161,22,16.416,22,12C22,6.477,17.523,2,12,2z"}))},{name:"instagram",attributes:{service:"instagram"},title:"Instagram",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M12,4.622c2.403,0,2.688,0.009,3.637,0.052c0.877,0.04,1.354,0.187,1.671,0.31c0.42,0.163,0.72,0.358,1.035,0.673 c0.315,0.315,0.51,0.615,0.673,1.035c0.123,0.317,0.27,0.794,0.31,1.671c0.043,0.949,0.052,1.234,0.052,3.637 s-0.009,2.688-0.052,3.637c-0.04,0.877-0.187,1.354-0.31,1.671c-0.163,0.42-0.358,0.72-0.673,1.035 c-0.315,0.315-0.615,0.51-1.035,0.673c-0.317,0.123-0.794,0.27-1.671,0.31c-0.949,0.043-1.233,0.052-3.637,0.052 s-2.688-0.009-3.637-0.052c-0.877-0.04-1.354-0.187-1.671-0.31c-0.42-0.163-0.72-0.358-1.035-0.673 c-0.315-0.315-0.51-0.615-0.673-1.035c-0.123-0.317-0.27-0.794-0.31-1.671C4.631,14.688,4.622,14.403,4.622,12 s0.009-2.688,0.052-3.637c0.04-0.877,0.187-1.354,0.31-1.671c0.163-0.42,0.358-0.72,0.673-1.035 c0.315-0.315,0.615-0.51,1.035-0.673c0.317-0.123,0.794-0.27,1.671-0.31C9.312,4.631,9.597,4.622,12,4.622 M12,3 C9.556,3,9.249,3.01,8.289,3.054C7.331,3.098,6.677,3.25,6.105,3.472C5.513,3.702,5.011,4.01,4.511,4.511 c-0.5,0.5-0.808,1.002-1.038,1.594C3.25,6.677,3.098,7.331,3.054,8.289C3.01,9.249,3,9.556,3,12c0,2.444,0.01,2.751,0.054,3.711 c0.044,0.958,0.196,1.612,0.418,2.185c0.23,0.592,0.538,1.094,1.038,1.594c0.5,0.5,1.002,0.808,1.594,1.038 c0.572,0.222,1.227,0.375,2.185,0.418C9.249,20.99,9.556,21,12,21s2.751-0.01,3.711-0.054c0.958-0.044,1.612-0.196,2.185-0.418 c0.592-0.23,1.094-0.538,1.594-1.038c0.5-0.5,0.808-1.002,1.038-1.594c0.222-0.572,0.375-1.227,0.418-2.185 C20.99,14.751,21,14.444,21,12s-0.01-2.751-0.054-3.711c-0.044-0.958-0.196-1.612-0.418-2.185c-0.23-0.592-0.538-1.094-1.038-1.594 c-0.5-0.5-1.002-0.808-1.594-1.038c-0.572-0.222-1.227-0.375-2.185-0.418C14.751,3.01,14.444,3,12,3L12,3z M12,7.378 c-2.552,0-4.622,2.069-4.622,4.622S9.448,16.622,12,16.622s4.622-2.069,4.622-4.622S14.552,7.378,12,7.378z M12,15 c-1.657,0-3-1.343-3-3s1.343-3,3-3s3,1.343,3,3S13.657,15,12,15z M16.804,6.116c-0.596,0-1.08,0.484-1.08,1.08 s0.484,1.08,1.08,1.08c0.596,0,1.08-0.484,1.08-1.08S17.401,6.116,16.804,6.116z"}))},{name:"lastfm",attributes:{service:"lastfm"},title:"Last.fm",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M 12.0002 1.5 C 6.2006 1.5 1.5 6.2011 1.5 11.9998 C 1.5 17.799 6.2006 22.5 12.0002 22.5 C 17.799 22.5 22.5 17.799 22.5 11.9998 C 22.5 6.2011 17.799 1.5 12.0002 1.5 Z M 16.1974 16.2204 C 14.8164 16.2152 13.9346 15.587 13.3345 14.1859 L 13.1816 13.8451 L 11.8541 10.8101 C 11.4271 9.7688 10.3526 9.0712 9.1801 9.0712 C 7.5695 9.0712 6.2593 10.3851 6.2593 12.001 C 6.2593 13.6165 7.5695 14.9303 9.1801 14.9303 C 10.272 14.9303 11.2651 14.3275 11.772 13.3567 C 11.7893 13.3235 11.8239 13.302 11.863 13.3038 C 11.9007 13.3054 11.9353 13.3288 11.9504 13.3632 L 12.4865 14.6046 C 12.5016 14.639 12.4956 14.6778 12.4723 14.7069 C 11.6605 15.6995 10.4602 16.2683 9.1801 16.2683 C 6.8331 16.2683 4.9234 14.3536 4.9234 12.001 C 4.9234 9.6468 6.833 7.732 9.1801 7.732 C 10.9572 7.732 12.3909 8.6907 13.1138 10.3636 C 13.1206 10.3802 13.8412 12.0708 14.4744 13.5191 C 14.8486 14.374 15.1462 14.896 16.1288 14.9292 C 17.0663 14.9613 17.7538 14.4122 17.7538 13.6485 C 17.7538 12.9691 17.3321 12.8004 16.3803 12.4822 C 14.7365 11.9398 13.845 11.3861 13.845 10.0182 C 13.845 8.6809 14.7667 7.8162 16.192 7.8162 C 17.1288 7.8162 17.8155 8.2287 18.2921 9.0768 C 18.305 9.1006 18.3079 9.1281 18.3004 9.1542 C 18.2929 9.1803 18.2748 9.2021 18.2507 9.2138 L 17.3614 9.669 C 17.3178 9.692 17.2643 9.6781 17.2356 9.6385 C 16.9329 9.2135 16.5956 9.0251 16.1423 9.0251 C 15.5512 9.0251 15.122 9.429 15.122 9.9865 C 15.122 10.6738 15.6529 10.8414 16.5339 11.1192 C 16.6491 11.1558 16.7696 11.194 16.8939 11.2343 C 18.2763 11.6865 19.0768 12.2311 19.0768 13.6836 C 19.0769 15.1297 17.8389 16.2204 16.1974 16.2204 Z"}))},{name:"linkedin",attributes:{service:"linkedin"},title:"LinkedIn",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"}))},{name:"mail",attributes:{service:"mail"},title:"Mail",keywords:["email","e-mail"],icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M20,4H4C2.895,4,2,4.895,2,6v12c0,1.105,0.895,2,2,2h16c1.105,0,2-0.895,2-2V6C22,4.895,21.105,4,20,4z M20,8.236l-8,4.882 L4,8.236V6h16V8.236z"}))},{name:"mastodon",attributes:{service:"mastodon"},title:"Mastodon",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M23.193 7.879c0-5.206-3.411-6.732-3.411-6.732C18.062.357 15.108.025 12.041 0h-.076c-3.068.025-6.02.357-7.74 1.147 0 0-3.411 1.526-3.411 6.732 0 1.192-.023 2.618.015 4.129.124 5.092.934 10.109 5.641 11.355 2.17.574 4.034.695 5.535.612 2.722-.15 4.25-.972 4.25-.972l-.09-1.975s-1.945.613-4.129.539c-2.165-.074-4.449-.233-4.799-2.891a5.499 5.499 0 0 1-.048-.745s2.125.52 4.817.643c1.646.075 3.19-.097 4.758-.283 3.007-.359 5.625-2.212 5.954-3.905.517-2.665.475-6.507.475-6.507zm-4.024 6.709h-2.497V8.469c0-1.29-.543-1.944-1.628-1.944-1.2 0-1.802.776-1.802 2.312v3.349h-2.483v-3.35c0-1.536-.602-2.312-1.802-2.312-1.085 0-1.628.655-1.628 1.944v6.119H4.832V8.284c0-1.289.328-2.313.987-3.07.68-.758 1.569-1.146 2.674-1.146 1.278 0 2.246.491 2.886 1.474L12 6.585l.622-1.043c.64-.983 1.608-1.474 2.886-1.474 1.104 0 1.994.388 2.674 1.146.658.757.986 1.781.986 3.07v6.304z"}))},{name:"meetup",attributes:{service:"meetup"},title:"Meetup",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M19.24775,14.722a3.57032,3.57032,0,0,1-2.94457,3.52073,3.61886,3.61886,0,0,1-.64652.05634c-.07314-.0008-.10187.02846-.12507.09547A2.38881,2.38881,0,0,1,13.49453,20.094a2.33092,2.33092,0,0,1-1.827-.50716.13635.13635,0,0,0-.19878-.00408,3.191,3.191,0,0,1-2.104.60248,3.26309,3.26309,0,0,1-3.00324-2.71993,2.19076,2.19076,0,0,1-.03512-.30865c-.00156-.08579-.03413-.1189-.11608-.13493a2.86421,2.86421,0,0,1-1.23189-.56111,2.945,2.945,0,0,1-1.166-2.05749,2.97484,2.97484,0,0,1,.87524-2.50774.112.112,0,0,0,.02091-.16107,2.7213,2.7213,0,0,1-.36648-1.48A2.81256,2.81256,0,0,1,6.57673,7.58838a.35764.35764,0,0,0,.28869-.22819,4.2208,4.2208,0,0,1,6.02892-1.90111.25161.25161,0,0,0,.22023.0243,3.65608,3.65608,0,0,1,3.76031.90678A3.57244,3.57244,0,0,1,17.95918,8.626a2.97339,2.97339,0,0,1,.01829.57356.10637.10637,0,0,0,.0853.12792,1.97669,1.97669,0,0,1,1.27939,1.33733,2.00266,2.00266,0,0,1-.57112,2.12652c-.05284.05166-.04168.08328-.01173.13489A3.51189,3.51189,0,0,1,19.24775,14.722Zm-6.35959-.27836a1.6984,1.6984,0,0,0,1.14556,1.61113,3.82039,3.82039,0,0,0,1.036.17935,1.46888,1.46888,0,0,0,.73509-.12255.44082.44082,0,0,0,.26057-.44274.45312.45312,0,0,0-.29211-.43375.97191.97191,0,0,0-.20678-.063c-.21326-.03806-.42754-.0701-.63973-.11215a.54787.54787,0,0,1-.50172-.60926,2.75864,2.75864,0,0,1,.1773-.901c.1763-.535.414-1.045.64183-1.55913A12.686,12.686,0,0,0,15.85,10.47863a1.58461,1.58461,0,0,0,.04861-.87208,1.04531,1.04531,0,0,0-.85432-.83981,1.60658,1.60658,0,0,0-1.23654.16594.27593.27593,0,0,1-.36286-.03413c-.085-.0747-.16594-.15379-.24918-.23055a.98682.98682,0,0,0-1.33577-.04933,6.1468,6.1468,0,0,1-.4989.41615.47762.47762,0,0,1-.51535.03566c-.17448-.09307-.35512-.175-.53531-.25665a1.74949,1.74949,0,0,0-.56476-.2016,1.69943,1.69943,0,0,0-1.61654.91787,8.05815,8.05815,0,0,0-.32952.80126c-.45471,1.2557-.82507,2.53825-1.20838,3.81639a1.24151,1.24151,0,0,0,.51532,1.44389,1.42659,1.42659,0,0,0,1.22008.17166,1.09728,1.09728,0,0,0,.66994-.69764c.44145-1.04111.839-2.09989,1.25981-3.14926.11581-.28876.22792-.57874.35078-.86438a.44548.44548,0,0,1,.69189-.19539.50521.50521,0,0,1,.15044.43836,1.75625,1.75625,0,0,1-.14731.50453c-.27379.69219-.55265,1.38236-.82766,2.074a2.0836,2.0836,0,0,0-.14038.42876.50719.50719,0,0,0,.27082.57722.87236.87236,0,0,0,.66145.02739.99137.99137,0,0,0,.53406-.532q.61571-1.20914,1.228-2.42031.28423-.55863.57585-1.1133a.87189.87189,0,0,1,.29055-.35253.34987.34987,0,0,1,.37634-.01265.30291.30291,0,0,1,.12434.31459.56716.56716,0,0,1-.04655.1915c-.05318.12739-.10286.25669-.16183.38156-.34118.71775-.68754,1.43273-1.02568,2.152A2.00213,2.00213,0,0,0,12.88816,14.44366Zm4.78568,5.28972a.88573.88573,0,0,0-1.77139.00465.8857.8857,0,0,0,1.77139-.00465Zm-14.83838-7.296a.84329.84329,0,1,0,.00827-1.68655.8433.8433,0,0,0-.00827,1.68655Zm10.366-9.43673a.83506.83506,0,1,0-.0091,1.67.83505.83505,0,0,0,.0091-1.67Zm6.85014,5.22a.71651.71651,0,0,0-1.433.0093.71656.71656,0,0,0,1.433-.0093ZM5.37528,6.17908A.63823.63823,0,1,0,6.015,5.54483.62292.62292,0,0,0,5.37528,6.17908Zm6.68214,14.80843a.54949.54949,0,1,0-.55052.541A.54556.54556,0,0,0,12.05742,20.98752Zm8.53235-8.49689a.54777.54777,0,0,0-.54027.54023.53327.53327,0,0,0,.532.52293.51548.51548,0,0,0,.53272-.5237A.53187.53187,0,0,0,20.58977,12.49063ZM7.82846,2.4715a.44927.44927,0,1,0,.44484.44766A.43821.43821,0,0,0,7.82846,2.4715Zm13.775,7.60492a.41186.41186,0,0,0-.40065.39623.40178.40178,0,0,0,.40168.40168A.38994.38994,0,0,0,22,10.48172.39946.39946,0,0,0,21.60349,10.07642ZM5.79193,17.96207a.40469.40469,0,0,0-.397-.39646.399.399,0,0,0-.396.405.39234.39234,0,0,0,.39939.389A.39857.39857,0,0,0,5.79193,17.96207Z"}))},{name:"medium",attributes:{service:"medium"},title:"Medium",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M20.962,7.257l-5.457,8.867l-3.923-6.375l3.126-5.08c0.112-0.182,0.319-0.286,0.527-0.286c0.05,0,0.1,0.008,0.149,0.02 c0.039,0.01,0.078,0.023,0.114,0.041l5.43,2.715l0.006,0.003c0.004,0.002,0.007,0.006,0.011,0.008 C20.971,7.191,20.98,7.227,20.962,7.257z M9.86,8.592v5.783l5.14,2.57L9.86,8.592z M15.772,17.331l4.231,2.115 C20.554,19.721,21,19.529,21,19.016V8.835L15.772,17.331z M8.968,7.178L3.665,4.527C3.569,4.479,3.478,4.456,3.395,4.456 C3.163,4.456,3,4.636,3,4.938v11.45c0,0.306,0.224,0.669,0.498,0.806l4.671,2.335c0.12,0.06,0.234,0.088,0.337,0.088 c0.29,0,0.494-0.225,0.494-0.602V7.231C9,7.208,8.988,7.188,8.968,7.178z"}))},{name:"patreon",attributes:{service:"patreon"},title:"Patreon",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 569 546",version:"1.1"},Object(je.createElement)(ye.Circle,{cx:"363",cy:"205",r:"205"}),Object(je.createElement)(ye.Rect,{width:"100",height:"546",x:"0",y:"0"}))},{name:"pinterest",attributes:{service:"pinterest"},title:"Pinterest",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"}))},{name:"pocket",attributes:{service:"pocket"},title:"Pocket",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M21.927,4.194C21.667,3.48,20.982,3,20.222,3h-0.01h-1.721H3.839C3.092,3,2.411,3.47,2.145,4.17 C2.066,4.378,2.026,4.594,2.026,4.814v6.035l0.069,1.2c0.29,2.73,1.707,5.115,3.899,6.778c0.039,0.03,0.079,0.059,0.119,0.089 l0.025,0.018c1.175,0.859,2.491,1.441,3.91,1.727c0.655,0.132,1.325,0.2,1.991,0.2c0.615,0,1.232-0.057,1.839-0.17 c0.073-0.014,0.145-0.028,0.219-0.044c0.02-0.004,0.042-0.012,0.064-0.023c1.359-0.297,2.621-0.864,3.753-1.691l0.025-0.018 c0.04-0.029,0.08-0.058,0.119-0.089c2.192-1.664,3.609-4.049,3.898-6.778l0.069-1.2V4.814C22.026,4.605,22,4.398,21.927,4.194z M17.692,10.481l-4.704,4.512c-0.266,0.254-0.608,0.382-0.949,0.382c-0.342,0-0.684-0.128-0.949-0.382l-4.705-4.512 C5.838,9.957,5.82,9.089,6.344,8.542c0.524-0.547,1.392-0.565,1.939-0.04l3.756,3.601l3.755-3.601 c0.547-0.524,1.415-0.506,1.939,0.04C18.256,9.089,18.238,9.956,17.692,10.481z"}))},{name:"reddit",attributes:{service:"reddit"},title:"Reddit",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M22,11.816c0-1.256-1.021-2.277-2.277-2.277c-0.593,0-1.122,0.24-1.526,0.614c-1.481-0.965-3.455-1.594-5.647-1.69 l1.171-3.702l3.18,0.748c0.008,1.028,0.846,1.862,1.876,1.862c1.035,0,1.877-0.842,1.877-1.878c0-1.035-0.842-1.877-1.877-1.877 c-0.769,0-1.431,0.466-1.72,1.13l-3.508-0.826c-0.203-0.047-0.399,0.067-0.46,0.261l-1.35,4.268 c-2.316,0.038-4.411,0.67-5.97,1.671C5.368,9.765,4.853,9.539,4.277,9.539C3.021,9.539,2,10.56,2,11.816 c0,0.814,0.433,1.523,1.078,1.925c-0.037,0.221-0.061,0.444-0.061,0.672c0,3.292,4.011,5.97,8.941,5.97s8.941-2.678,8.941-5.97 c0-0.214-0.02-0.424-0.053-0.632C21.533,13.39,22,12.661,22,11.816z M18.776,4.394c0.606,0,1.1,0.493,1.1,1.1s-0.493,1.1-1.1,1.1 s-1.1-0.494-1.1-1.1S18.169,4.394,18.776,4.394z M2.777,11.816c0-0.827,0.672-1.5,1.499-1.5c0.313,0,0.598,0.103,0.838,0.269 c-0.851,0.676-1.477,1.479-1.812,2.36C2.983,12.672,2.777,12.27,2.777,11.816z M11.959,19.606c-4.501,0-8.164-2.329-8.164-5.193 S7.457,9.22,11.959,9.22s8.164,2.329,8.164,5.193S16.46,19.606,11.959,19.606z M20.636,13.001c-0.326-0.89-0.948-1.701-1.797-2.384 c0.248-0.186,0.55-0.301,0.883-0.301c0.827,0,1.5,0.673,1.5,1.5C21.223,12.299,20.992,12.727,20.636,13.001z M8.996,14.704 c-0.76,0-1.397-0.616-1.397-1.376c0-0.76,0.637-1.397,1.397-1.397c0.76,0,1.376,0.637,1.376,1.397 C10.372,14.088,9.756,14.704,8.996,14.704z M16.401,13.328c0,0.76-0.616,1.376-1.376,1.376c-0.76,0-1.399-0.616-1.399-1.376 c0-0.76,0.639-1.397,1.399-1.397C15.785,11.931,16.401,12.568,16.401,13.328z M15.229,16.708c0.152,0.152,0.152,0.398,0,0.55 c-0.674,0.674-1.727,1.002-3.219,1.002c-0.004,0-0.007-0.002-0.011-0.002c-0.004,0-0.007,0.002-0.011,0.002 c-1.492,0-2.544-0.328-3.218-1.002c-0.152-0.152-0.152-0.398,0-0.55c0.152-0.152,0.399-0.151,0.55,0 c0.521,0.521,1.394,0.775,2.669,0.775c0.004,0,0.007,0.002,0.011,0.002c0.004,0,0.007-0.002,0.011-0.002 c1.275,0,2.148-0.253,2.669-0.775C14.831,16.556,15.078,16.556,15.229,16.708z"}))},{name:"skype",attributes:{service:"skype"},title:"Skype",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M10.113,2.699c0.033-0.006,0.067-0.013,0.1-0.02c0.033,0.017,0.066,0.033,0.098,0.051L10.113,2.699z M2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223z M21.275,13.771 c0.007-0.035,0.011-0.071,0.018-0.106c-0.018-0.031-0.033-0.064-0.052-0.095L21.275,13.771z M13.563,21.199 c0.032,0.019,0.065,0.035,0.096,0.053c0.036-0.006,0.071-0.011,0.105-0.017L13.563,21.199z M22,16.386 c0,1.494-0.581,2.898-1.637,3.953c-1.056,1.057-2.459,1.637-3.953,1.637c-0.967,0-1.914-0.251-2.75-0.725 c0.036-0.006,0.071-0.011,0.105-0.017l-0.202-0.035c0.032,0.019,0.065,0.035,0.096,0.053c-0.543,0.096-1.099,0.147-1.654,0.147 c-1.275,0-2.512-0.25-3.676-0.743c-1.125-0.474-2.135-1.156-3.002-2.023c-0.867-0.867-1.548-1.877-2.023-3.002 c-0.493-1.164-0.743-2.401-0.743-3.676c0-0.546,0.049-1.093,0.142-1.628c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103C2.244,9.5,2,8.566,2,7.615c0-1.493,0.582-2.898,1.637-3.953 c1.056-1.056,2.46-1.638,3.953-1.638c0.915,0,1.818,0.228,2.622,0.655c-0.033,0.007-0.067,0.013-0.1,0.02l0.199,0.031 c-0.032-0.018-0.066-0.034-0.098-0.051c0.002,0,0.003-0.001,0.004-0.001c0.586-0.112,1.187-0.169,1.788-0.169 c1.275,0,2.512,0.249,3.676,0.742c1.124,0.476,2.135,1.156,3.002,2.024c0.868,0.867,1.548,1.877,2.024,3.002 c0.493,1.164,0.743,2.401,0.743,3.676c0,0.575-0.054,1.15-0.157,1.712c-0.018-0.031-0.033-0.064-0.052-0.095l0.034,0.201 c0.007-0.035,0.011-0.071,0.018-0.106C21.754,14.494,22,15.432,22,16.386z M16.817,14.138c0-1.331-0.613-2.743-3.033-3.282 l-2.209-0.49c-0.84-0.192-1.807-0.444-1.807-1.237c0-0.794,0.679-1.348,1.903-1.348c2.468,0,2.243,1.696,3.468,1.696 c0.645,0,1.209-0.379,1.209-1.031c0-1.521-2.435-2.663-4.5-2.663c-2.242,0-4.63,0.952-4.63,3.488c0,1.221,0.436,2.521,2.839,3.123 l2.984,0.745c0.903,0.223,1.129,0.731,1.129,1.189c0,0.762-0.758,1.507-2.129,1.507c-2.679,0-2.307-2.062-3.743-2.062 c-0.645,0-1.113,0.444-1.113,1.078c0,1.236,1.501,2.886,4.856,2.886C15.236,17.737,16.817,16.199,16.817,14.138z"}))},{name:"snapchat",attributes:{service:"snapchat"},title:"Snapchat",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M12.065,2a5.526,5.526,0,0,1,3.132.892A5.854,5.854,0,0,1,17.326,5.4a5.821,5.821,0,0,1,.351,2.33q0,.612-.117,2.487a.809.809,0,0,0,.365.091,1.93,1.93,0,0,0,.664-.176,1.93,1.93,0,0,1,.664-.176,1.3,1.3,0,0,1,.729.234.7.7,0,0,1,.351.6.839.839,0,0,1-.41.7,2.732,2.732,0,0,1-.9.41,3.192,3.192,0,0,0-.9.378.728.728,0,0,0-.41.618,1.575,1.575,0,0,0,.156.56,6.9,6.9,0,0,0,1.334,1.953,5.6,5.6,0,0,0,1.881,1.315,5.875,5.875,0,0,0,1.042.3.42.42,0,0,1,.365.456q0,.911-2.852,1.341a1.379,1.379,0,0,0-.143.507,1.8,1.8,0,0,1-.182.605.451.451,0,0,1-.429.241,5.878,5.878,0,0,1-.807-.085,5.917,5.917,0,0,0-.833-.085,4.217,4.217,0,0,0-.807.065,2.42,2.42,0,0,0-.82.293,6.682,6.682,0,0,0-.755.5q-.351.267-.755.527a3.886,3.886,0,0,1-.989.436A4.471,4.471,0,0,1,11.831,22a4.307,4.307,0,0,1-1.256-.176,3.784,3.784,0,0,1-.976-.436q-.4-.26-.749-.527a6.682,6.682,0,0,0-.755-.5,2.422,2.422,0,0,0-.807-.293,4.432,4.432,0,0,0-.82-.065,5.089,5.089,0,0,0-.853.1,5,5,0,0,1-.762.1.474.474,0,0,1-.456-.241,1.819,1.819,0,0,1-.182-.618,1.411,1.411,0,0,0-.143-.521q-2.852-.429-2.852-1.341a.42.42,0,0,1,.365-.456,5.793,5.793,0,0,0,1.042-.3,5.524,5.524,0,0,0,1.881-1.315,6.789,6.789,0,0,0,1.334-1.953A1.575,1.575,0,0,0,6,12.9a.728.728,0,0,0-.41-.618,3.323,3.323,0,0,0-.9-.384,2.912,2.912,0,0,1-.9-.41.814.814,0,0,1-.41-.684.71.71,0,0,1,.338-.593,1.208,1.208,0,0,1,.716-.241,1.976,1.976,0,0,1,.625.169,2.008,2.008,0,0,0,.69.169.919.919,0,0,0,.416-.091q-.117-1.849-.117-2.474A5.861,5.861,0,0,1,6.385,5.4,5.516,5.516,0,0,1,8.625,2.819,7.075,7.075,0,0,1,12.062,2Z"}))},{name:"soundcloud",attributes:{service:"soundcloud"},title:"SoundCloud",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M8.9,16.1L9,14L8.9,9.5c0-0.1,0-0.1-0.1-0.1c0,0-0.1-0.1-0.1-0.1c-0.1,0-0.1,0-0.1,0.1c0,0-0.1,0.1-0.1,0.1L8.3,14l0.1,2.1 c0,0.1,0,0.1,0.1,0.1c0,0,0.1,0.1,0.1,0.1C8.8,16.3,8.9,16.3,8.9,16.1z M11.4,15.9l0.1-1.8L11.4,9c0-0.1,0-0.2-0.1-0.2 c0,0-0.1,0-0.1,0s-0.1,0-0.1,0c-0.1,0-0.1,0.1-0.1,0.2l0,0.1l-0.1,5c0,0,0,0.7,0.1,2v0c0,0.1,0,0.1,0.1,0.1c0.1,0.1,0.1,0.1,0.2,0.1 c0.1,0,0.1,0,0.2-0.1c0.1,0,0.1-0.1,0.1-0.2L11.4,15.9z M2.4,12.9L2.5,14l-0.2,1.1c0,0.1,0,0.1-0.1,0.1c0,0-0.1,0-0.1-0.1L2.1,14 l0.1-1.1C2.2,12.9,2.3,12.9,2.4,12.9C2.3,12.9,2.4,12.9,2.4,12.9z M3.1,12.2L3.3,14l-0.2,1.8c0,0.1,0,0.1-0.1,0.1 c-0.1,0-0.1,0-0.1-0.1L2.8,14L3,12.2C3,12.2,3,12.2,3.1,12.2C3.1,12.2,3.1,12.2,3.1,12.2z M3.9,11.9L4.1,14l-0.2,2.1 c0,0.1,0,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L3.5,14l0.2-2.1c0-0.1,0-0.1,0.1-0.1C3.9,11.8,3.9,11.8,3.9,11.9z M4.7,11.9L4.9,14 l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L4.3,14l0.2-2.2c0-0.1,0-0.1,0.1-0.1C4.7,11.7,4.7,11.8,4.7,11.9z M5.6,12 l0.2,2l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c0,0-0.1,0-0.1,0c0,0,0-0.1,0-0.1L5.1,14l0.2-2c0,0,0-0.1,0-0.1s0.1,0,0.1,0 C5.5,11.9,5.5,11.9,5.6,12L5.6,12z M6.4,10.7L6.6,14l-0.2,2.1c0,0,0,0.1,0,0.1c0,0-0.1,0-0.1,0c-0.1,0-0.1-0.1-0.2-0.2L5.9,14 l0.2-3.3c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0C6.4,10.7,6.4,10.7,6.4,10.7z M7.2,10l0.2,4.1l-0.2,2.1c0,0,0,0.1,0,0.1 c0,0-0.1,0-0.1,0c-0.1,0-0.2-0.1-0.2-0.2l-0.1-2.1L6.8,10c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0S7.2,9.9,7.2,10z M8,9.6L8.2,14 L8,16.1c0,0.1-0.1,0.2-0.2,0.2c-0.1,0-0.2-0.1-0.2-0.2L7.5,14l0.1-4.4c0-0.1,0-0.1,0.1-0.1c0,0,0.1-0.1,0.1-0.1c0.1,0,0.1,0,0.1,0.1 C8,9.6,8,9.6,8,9.6z M11.4,16.1L11.4,16.1L11.4,16.1z M9.7,9.6L9.8,14l-0.1,2.1c0,0.1,0,0.1-0.1,0.2s-0.1,0.1-0.2,0.1 c-0.1,0-0.1,0-0.1-0.1s-0.1-0.1-0.1-0.2L9.2,14l0.1-4.4c0-0.1,0-0.1,0.1-0.2s0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S9.7,9.5,9.7,9.6 L9.7,9.6z M10.6,9.8l0.1,4.3l-0.1,2c0,0.1,0,0.1-0.1,0.2c0,0-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c0,0-0.1-0.1-0.1-0.2L10,14 l0.1-4.3c0-0.1,0-0.1,0.1-0.2c0,0,0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S10.6,9.7,10.6,9.8z M12.4,14l-0.1,2c0,0.1,0,0.1-0.1,0.2 c-0.1,0.1-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2l-0.1-1l-0.1-1l0.1-5.5v0c0-0.1,0-0.2,0.1-0.2 c0.1,0,0.1-0.1,0.2-0.1c0,0,0.1,0,0.1,0c0.1,0,0.1,0.1,0.1,0.2L12.4,14z M22.1,13.9c0,0.7-0.2,1.3-0.7,1.7c-0.5,0.5-1.1,0.7-1.7,0.7 h-6.8c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2V8.2c0-0.1,0.1-0.2,0.2-0.3c0.5-0.2,1-0.3,1.6-0.3c1.1,0,2.1,0.4,2.9,1.1 c0.8,0.8,1.3,1.7,1.4,2.8c0.3-0.1,0.6-0.2,1-0.2c0.7,0,1.3,0.2,1.7,0.7C21.8,12.6,22.1,13.2,22.1,13.9L22.1,13.9z"}))},{name:"spotify",attributes:{service:"spotify"},title:"Spotify",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,5.523,4.477,10,10,10c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2 M16.586,16.424 c-0.18,0.295-0.563,0.387-0.857,0.207c-2.348-1.435-5.304-1.76-8.785-0.964c-0.335,0.077-0.67-0.133-0.746-0.469 c-0.077-0.335,0.132-0.67,0.469-0.746c3.809-0.871,7.077-0.496,9.713,1.115C16.673,15.746,16.766,16.13,16.586,16.424 M17.81,13.7 c-0.226,0.367-0.706,0.482-1.072,0.257c-2.687-1.652-6.785-2.131-9.965-1.166C6.36,12.917,5.925,12.684,5.8,12.273 C5.675,11.86,5.908,11.425,6.32,11.3c3.632-1.102,8.147-0.568,11.234,1.328C17.92,12.854,18.035,13.335,17.81,13.7 M17.915,10.865 c-3.223-1.914-8.54-2.09-11.618-1.156C5.804,9.859,5.281,9.58,5.131,9.086C4.982,8.591,5.26,8.069,5.755,7.919 c3.532-1.072,9.404-0.865,13.115,1.338c0.445,0.264,0.59,0.838,0.327,1.282C18.933,10.983,18.359,11.129,17.915,10.865"}))},{name:"telegram",attributes:{service:"telegram"},title:"Telegram",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 128 128",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M28.9700376,63.3244248 C47.6273373,55.1957357 60.0684594,49.8368063 66.2934036,47.2476366 C84.0668845,39.855031 87.7600616,38.5708563 90.1672227,38.528 C90.6966555,38.5191258 91.8804274,38.6503351 92.6472251,39.2725385 C93.294694,39.7979149 93.4728387,40.5076237 93.5580865,41.0057381 C93.6433345,41.5038525 93.7494885,42.63857 93.6651041,43.5252052 C92.7019529,53.6451182 88.5344133,78.2034783 86.4142057,89.5379542 C85.5170662,94.3339958 83.750571,95.9420841 82.0403991,96.0994568 C78.3237996,96.4414641 75.5015827,93.6432685 71.9018743,91.2836143 C66.2690414,87.5912212 63.0868492,85.2926952 57.6192095,81.6896017 C51.3004058,77.5256038 55.3966232,75.2369981 58.9976911,71.4967761 C59.9401076,70.5179421 76.3155302,55.6232293 76.6324771,54.2720454 C76.6721165,54.1030573 76.7089039,53.4731496 76.3346867,53.1405352 C75.9604695,52.8079208 75.4081573,52.921662 75.0095933,53.0121213 C74.444641,53.1403447 65.4461175,59.0880351 48.0140228,70.8551922 C45.4598218,72.6091037 43.1463059,73.4636682 41.0734751,73.4188859 C38.7883453,73.3695169 34.3926725,72.1268388 31.1249416,71.0646282 C27.1169366,69.7617838 23.931454,69.0729605 24.208838,66.8603276 C24.3533167,65.7078514 25.9403832,64.5292172 28.9700376,63.3244248 Z"}))},{name:"tiktok",attributes:{service:"tiktok"},title:"TikTok",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 32 32",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M16.708 0.027c1.745-0.027 3.48-0.011 5.213-0.027 0.105 2.041 0.839 4.12 2.333 5.563 1.491 1.479 3.6 2.156 5.652 2.385v5.369c-1.923-0.063-3.855-0.463-5.6-1.291-0.76-0.344-1.468-0.787-2.161-1.24-0.009 3.896 0.016 7.787-0.025 11.667-0.104 1.864-0.719 3.719-1.803 5.255-1.744 2.557-4.771 4.224-7.88 4.276-1.907 0.109-3.812-0.411-5.437-1.369-2.693-1.588-4.588-4.495-4.864-7.615-0.032-0.667-0.043-1.333-0.016-1.984 0.24-2.537 1.495-4.964 3.443-6.615 2.208-1.923 5.301-2.839 8.197-2.297 0.027 1.975-0.052 3.948-0.052 5.923-1.323-0.428-2.869-0.308-4.025 0.495-0.844 0.547-1.485 1.385-1.819 2.333-0.276 0.676-0.197 1.427-0.181 2.145 0.317 2.188 2.421 4.027 4.667 3.828 1.489-0.016 2.916-0.88 3.692-2.145 0.251-0.443 0.532-0.896 0.547-1.417 0.131-2.385 0.079-4.76 0.095-7.145 0.011-5.375-0.016-10.735 0.025-16.093z"}))},{name:"tumblr",attributes:{service:"tumblr"},title:"Tumblr",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M17.04 21.28h-3.28c-2.84 0-4.94-1.37-4.94-5.02v-5.67H6.08V7.5c2.93-.73 4.11-3.3 4.3-5.48h3.01v4.93h3.47v3.65H13.4v4.93c0 1.47.73 2.01 1.92 2.01h1.73v3.75z"}))},{name:"twitch",attributes:{service:"twitch"},title:"Twitch",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M16.499,8.089h-1.636v4.91h1.636V8.089z M12,8.089h-1.637v4.91H12V8.089z M4.228,3.178L3,6.451v13.092h4.499V22h2.456 l2.454-2.456h3.681L21,14.636V3.178H4.228z M19.364,13.816l-2.864,2.865H12l-2.453,2.453V16.68H5.863V4.814h13.501V13.816z"}))},{name:"twitter",attributes:{service:"twitter"},title:"Twitter",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M22.23,5.924c-0.736,0.326-1.527,0.547-2.357,0.646c0.847-0.508,1.498-1.312,1.804-2.27 c-0.793,0.47-1.671,0.812-2.606,0.996C18.324,4.498,17.257,4,16.077,4c-2.266,0-4.103,1.837-4.103,4.103 c0,0.322,0.036,0.635,0.106,0.935C8.67,8.867,5.647,7.234,3.623,4.751C3.27,5.357,3.067,6.062,3.067,6.814 c0,1.424,0.724,2.679,1.825,3.415c-0.673-0.021-1.305-0.206-1.859-0.513c0,0.017,0,0.034,0,0.052c0,1.988,1.414,3.647,3.292,4.023 c-0.344,0.094-0.707,0.144-1.081,0.144c-0.264,0-0.521-0.026-0.772-0.074c0.522,1.63,2.038,2.816,3.833,2.85 c-1.404,1.1-3.174,1.756-5.096,1.756c-0.331,0-0.658-0.019-0.979-0.057c1.816,1.164,3.973,1.843,6.29,1.843 c7.547,0,11.675-6.252,11.675-11.675c0-0.178-0.004-0.355-0.012-0.531C20.985,7.47,21.68,6.747,22.23,5.924z"}))},{name:"vimeo",attributes:{service:"vimeo"},title:"Vimeo",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M22.396,7.164c-0.093,2.026-1.507,4.799-4.245,8.32C15.322,19.161,12.928,21,10.97,21c-1.214,0-2.24-1.119-3.079-3.359 c-0.56-2.053-1.119-4.106-1.68-6.159C5.588,9.243,4.921,8.122,4.206,8.122c-0.156,0-0.701,0.328-1.634,0.98L1.594,7.841 c1.027-0.902,2.04-1.805,3.037-2.708C6.001,3.95,7.03,3.327,7.715,3.264c1.619-0.156,2.616,0.951,2.99,3.321 c0.404,2.557,0.685,4.147,0.841,4.769c0.467,2.121,0.981,3.181,1.542,3.181c0.435,0,1.09-0.688,1.963-2.065 c0.871-1.376,1.338-2.422,1.401-3.142c0.125-1.187-0.343-1.782-1.401-1.782c-0.498,0-1.012,0.115-1.541,0.341 c1.023-3.35,2.977-4.977,5.862-4.884C21.511,3.066,22.52,4.453,22.396,7.164z"}))},{name:"vk",attributes:{service:"vk"},title:"VK",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M22,7.1c0.2,0.4-0.4,1.5-1.6,3.1c-0.2,0.2-0.4,0.5-0.7,0.9c-0.5,0.7-0.9,1.1-0.9,1.4c-0.1,0.3-0.1,0.6,0.1,0.8 c0.1,0.1,0.4,0.4,0.8,0.9h0l0,0c1,0.9,1.6,1.7,2,2.3c0,0,0,0.1,0.1,0.1c0,0.1,0,0.1,0.1,0.3c0,0.1,0,0.2,0,0.4 c0,0.1-0.1,0.2-0.3,0.3c-0.1,0.1-0.4,0.1-0.6,0.1l-2.7,0c-0.2,0-0.4,0-0.6-0.1c-0.2-0.1-0.4-0.1-0.5-0.2l-0.2-0.1 c-0.2-0.1-0.5-0.4-0.7-0.7s-0.5-0.6-0.7-0.8c-0.2-0.2-0.4-0.4-0.6-0.6C14.8,15,14.6,15,14.4,15c0,0,0,0-0.1,0c0,0-0.1,0.1-0.2,0.2 c-0.1,0.1-0.2,0.2-0.2,0.3c-0.1,0.1-0.1,0.3-0.2,0.5c-0.1,0.2-0.1,0.5-0.1,0.8c0,0.1,0,0.2,0,0.3c0,0.1-0.1,0.2-0.1,0.2l0,0.1 c-0.1,0.1-0.3,0.2-0.6,0.2h-1.2c-0.5,0-1,0-1.5-0.2c-0.5-0.1-1-0.3-1.4-0.6s-0.7-0.5-1.1-0.7s-0.6-0.4-0.7-0.6l-0.3-0.3 c-0.1-0.1-0.2-0.2-0.3-0.3s-0.4-0.5-0.7-0.9s-0.7-1-1.1-1.6c-0.4-0.6-0.8-1.3-1.3-2.2C2.9,9.4,2.5,8.5,2.1,7.5C2,7.4,2,7.3,2,7.2 c0-0.1,0-0.1,0-0.2l0-0.1c0.1-0.1,0.3-0.2,0.6-0.2l2.9,0c0.1,0,0.2,0,0.2,0.1S5.9,6.9,5.9,7L6,7c0.1,0.1,0.2,0.2,0.3,0.3 C6.4,7.7,6.5,8,6.7,8.4C6.9,8.8,7,9,7.1,9.2l0.2,0.3c0.2,0.4,0.4,0.8,0.6,1.1c0.2,0.3,0.4,0.5,0.5,0.7s0.3,0.3,0.4,0.4 c0.1,0.1,0.3,0.1,0.4,0.1c0.1,0,0.2,0,0.3-0.1c0,0,0,0,0.1-0.1c0,0,0.1-0.1,0.1-0.2c0.1-0.1,0.1-0.3,0.1-0.5c0-0.2,0.1-0.5,0.1-0.8 c0-0.4,0-0.8,0-1.3c0-0.3,0-0.5-0.1-0.8c0-0.2-0.1-0.4-0.1-0.5L9.6,7.6C9.4,7.3,9.1,7.2,8.7,7.1C8.6,7.1,8.6,7,8.7,6.9 C8.9,6.7,9,6.6,9.1,6.5c0.4-0.2,1.2-0.3,2.5-0.3c0.6,0,1,0.1,1.4,0.1c0.1,0,0.3,0.1,0.3,0.1c0.1,0.1,0.2,0.1,0.2,0.3 c0,0.1,0.1,0.2,0.1,0.3s0,0.3,0,0.5c0,0.2,0,0.4,0,0.6c0,0.2,0,0.4,0,0.7c0,0.3,0,0.6,0,0.9c0,0.1,0,0.2,0,0.4c0,0.2,0,0.4,0,0.5 c0,0.1,0,0.3,0,0.4s0.1,0.3,0.1,0.4c0.1,0.1,0.1,0.2,0.2,0.3c0.1,0,0.1,0,0.2,0c0.1,0,0.2,0,0.3-0.1c0.1-0.1,0.2-0.2,0.4-0.4 s0.3-0.4,0.5-0.7c0.2-0.3,0.5-0.7,0.7-1.1c0.4-0.7,0.8-1.5,1.1-2.3c0-0.1,0.1-0.1,0.1-0.2c0-0.1,0.1-0.1,0.1-0.1l0,0l0.1,0 c0,0,0,0,0.1,0s0.2,0,0.2,0l3,0c0.3,0,0.5,0,0.7,0S21.9,7,21.9,7L22,7.1z"}))},{name:"yelp",attributes:{service:"yelp"},title:"Yelp",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M12.271,16.718v1.417q-.011,3.257-.067,3.4a.707.707,0,0,1-.569.446,4.637,4.637,0,0,1-2.024-.424A4.609,4.609,0,0,1,7.8,20.565a.844.844,0,0,1-.19-.4.692.692,0,0,1,.044-.29,3.181,3.181,0,0,1,.379-.524q.335-.412,2.019-2.409.011,0,.669-.781a.757.757,0,0,1,.44-.274.965.965,0,0,1,.552.039.945.945,0,0,1,.418.324.732.732,0,0,1,.139.468Zm-1.662-2.8a.783.783,0,0,1-.58.781l-1.339.435q-3.067.981-3.257.981a.711.711,0,0,1-.6-.4,2.636,2.636,0,0,1-.19-.836,9.134,9.134,0,0,1,.011-1.857,3.559,3.559,0,0,1,.335-1.389.659.659,0,0,1,.625-.357,22.629,22.629,0,0,1,2.253.859q.781.324,1.283.524l.937.379a.771.771,0,0,1,.4.34A.982.982,0,0,1,10.609,13.917Zm9.213,3.313a4.467,4.467,0,0,1-1.021,1.8,4.559,4.559,0,0,1-1.512,1.417.671.671,0,0,1-.7-.078q-.156-.112-2.052-3.2l-.524-.859a.761.761,0,0,1-.128-.513.957.957,0,0,1,.217-.513.774.774,0,0,1,.926-.29q.011.011,1.327.446,2.264.736,2.7.887a2.082,2.082,0,0,1,.524.229.673.673,0,0,1,.245.68Zm-7.5-7.049q.056,1.137-.6,1.361-.647.19-1.272-.792L6.237,4.08a.7.7,0,0,1,.212-.691,5.788,5.788,0,0,1,2.314-1,5.928,5.928,0,0,1,2.5-.352.681.681,0,0,1,.547.5q.034.2.245,3.407T12.327,10.181Zm7.384,1.2a.679.679,0,0,1-.29.658q-.167.112-3.67.959-.747.167-1.015.257l.011-.022a.769.769,0,0,1-.513-.044.914.914,0,0,1-.413-.357.786.786,0,0,1,0-.971q.011-.011.836-1.137,1.394-1.908,1.673-2.275a2.423,2.423,0,0,1,.379-.435A.7.7,0,0,1,17.435,8a4.482,4.482,0,0,1,1.372,1.489,4.81,4.81,0,0,1,.9,1.868v.034Z"}))},{name:"youtube",attributes:{service:"youtube"},title:"YouTube",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M21.8,8.001c0,0-0.195-1.378-0.795-1.985c-0.76-0.797-1.613-0.801-2.004-0.847c-2.799-0.202-6.997-0.202-6.997-0.202 h-0.009c0,0-4.198,0-6.997,0.202C4.608,5.216,3.756,5.22,2.995,6.016C2.395,6.623,2.2,8.001,2.2,8.001S2,9.62,2,11.238v1.517 c0,1.618,0.2,3.237,0.2,3.237s0.195,1.378,0.795,1.985c0.761,0.797,1.76,0.771,2.205,0.855c1.6,0.153,6.8,0.201,6.8,0.201 s4.203-0.006,7.001-0.209c0.391-0.047,1.243-0.051,2.004-0.847c0.6-0.607,0.795-1.985,0.795-1.985s0.2-1.618,0.2-3.237v-1.517 C22,9.62,21.8,8.001,21.8,8.001z M9.935,14.594l-0.001-5.62l5.404,2.82L9.935,14.594z"}))}];Od.forEach(e=>{e.isActive||(e.isActive=(e,t)=>e.service===t.service)});var jd=Od;const yd=e=>{let{url:t,setAttributes:n,setPopover:r,anchorRef:o}=e;return Object(je.createElement)(we.URLPopover,{anchorRef:null==o?void 0:o.current,onClose:()=>r(!1)},Object(je.createElement)("form",{className:"block-editor-url-popover__link-editor",onSubmit:e=>{e.preventDefault(),r(!1)}},Object(je.createElement)("div",{className:"block-editor-url-input"},Object(je.createElement)(we.URLInput,{value:t,onChange:e=>n({url:e}),placeholder:Object(ke.__)("Enter address"),disableSuggestions:!0})),Object(je.createElement)(_e.Button,{icon:hd.a,label:Object(ke.__)("Apply"),type:"submit"})))};var fd=e=>{let{attributes:t,context:n,isSelected:r,setAttributes:o}=e;const{url:a,service:l,label:c}=t,{iconColorValue:i,iconBackgroundColorValue:s}=n,[u,m]=Object(je.useState)(!1),d=tt()("wp-social-link","wp-social-link-"+l,{"wp-social-link__is-incomplete":!a}),b=Object(je.useRef)(),p=(e=>{const t=Object(Me.find)(jd,{name:e});return t?t.icon:vd})(l),g=(e=>{const t=Object(Me.find)(jd,{name:e});return t?t.title:Object(ke.__)("Social Icon")})(l),h=Object(we.useBlockProps)({className:d,style:{color:i,backgroundColor:s}});return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.sprintf)(Object(ke.__)("%s label"),g),initialOpen:!1},Object(je.createElement)(_e.PanelRow,null,Object(je.createElement)(_e.TextControl,{label:Object(ke.__)("Link label"),help:Object(ke.__)("Briefly describe the link to help screen reader users."),value:c,onChange:e=>o({label:e})})))),Object(je.createElement)("li",h,Object(je.createElement)(_e.Button,{ref:b,onClick:()=>m(!0)},Object(je.createElement)(p,null),r&&u&&Object(je.createElement)(yd,{url:a,setAttributes:o,setPopover:m,anchorRef:b}))))};const _d={apiVersion:2,name:"core/social-link",title:"Social Icon",category:"widgets",parent:["core/social-links"],description:"Display an icon linking to a social media profile or website.",textdomain:"default",attributes:{url:{type:"string"},service:{type:"string"},label:{type:"string"}},usesContext:["openInNewTab","iconColorValue","iconBackgroundColorValue"],supports:{reusable:!1,html:!1},editorStyle:"wp-block-social-link-editor"},{name:kd}=_d,wd={icon:gd,edit:fd,variations:jd},Ed=e=>{var t,n;if(e.layout)return e;const{className:r}=e,o=new RegExp("\\bitems-justified-[^ ]*[ ]?\\b","g"),a={...e,className:null==r?void 0:r.replace(o,"").trim()},l=null==r||null===(t=r.match(o))||void 0===t||null===(n=t[0])||void 0===n?void 0:n.trim();return l&&Object.assign(a,{layout:{type:"flex",justifyContent:l.slice("items-justified-".length)}}),a};var Cd=[{attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},size:{type:"string"}},supports:{align:["left","center","right"],anchor:!0,__experimentalExposeControlsToChildren:!0},isEligible:e=>{let{layout:t}=e;return!t},migrate:Ed,save(e){const{attributes:{iconBackgroundColorValue:t,iconColorValue:n,itemsJustification:r,size:o}}=e,a=tt()(o,{"has-icon-color":n,"has-icon-background-color":t,["items-justified-"+r]:r});return Object(je.createElement)("ul",we.useBlockProps.save({className:a}),Object(je.createElement)(we.InnerBlocks.Content,null))}},{attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},size:{type:"string"}},providesContext:{openInNewTab:"openInNewTab"},supports:{align:["left","center","right"],anchor:!0},migrate:Ed,save:e=>{const{attributes:{iconBackgroundColorValue:t,iconColorValue:n,itemsJustification:r,size:o}}=e,a=tt()(o,{"has-icon-color":n,"has-icon-background-color":t,["items-justified-"+r]:r}),l={"--wp--social-links--icon-color":n,"--wp--social-links--icon-background-color":t};return Object(je.createElement)("ul",we.useBlockProps.save({className:a,style:l}),Object(je.createElement)(we.InnerBlocks.Content,null))}}],xd=n("RMJe");const Sd=["core/social-link"],Bd=[{name:Object(ke.__)("Small"),value:"has-small-icon-size"},{name:Object(ke.__)("Normal"),value:"has-normal-icon-size"},{name:Object(ke.__)("Large"),value:"has-large-icon-size"},{name:Object(ke.__)("Huge"),value:"has-huge-icon-size"}];var Td=Object(we.withColors)({iconColor:"icon-color",iconBackgroundColor:"icon-background-color"})((function(e){var t;const{name:n,attributes:r,iconBackgroundColor:o,iconColor:a,isSelected:l,setAttributes:c,setIconBackgroundColor:i,setIconColor:s}=e,{iconBackgroundColorValue:u,iconColorValue:m,openInNewTab:d,size:b,layout:p}=r,g=p||(e=>{const t=Object(Oe.getBlockSupport)(e,"__experimentalLayout");return null==t?void 0:t.default})(n),h=(null===(t=r.className)||void 0===t?void 0:t.indexOf("is-style-logos-only"))>=0;Object(je.useEffect)(()=>{h&&c({iconBackgroundColor:void 0,customIconBackgroundColor:void 0,iconBackgroundColorValue:void 0})},[h,c]);const v=Object(je.createElement)("li",{className:"wp-block-social-links__social-placeholder"},Object(je.createElement)("div",{className:"wp-social-link"}),Object(je.createElement)("div",{className:"wp-block-social-links__social-placeholder-icons"},Object(je.createElement)("div",{className:"wp-social-link wp-social-link-twitter"}),Object(je.createElement)("div",{className:"wp-social-link wp-social-link-facebook"}),Object(je.createElement)("div",{className:"wp-social-link wp-social-link-instagram"}))),O=Object(je.createElement)("li",{className:"wp-block-social-links__social-prompt"},Object(ke.__)("Click plus to add")),j=tt()(b,{"has-icon-color":a.color||m,"has-icon-background-color":o.color||u}),y=Object(we.useBlockProps)({className:j}),f=Object(we.useInnerBlocksProps)(y,{allowedBlocks:Sd,placeholder:l?O:v,templateLock:!1,__experimentalAppenderTagName:"li",__experimentalLayout:g});return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"other"},Object(je.createElement)(_e.ToolbarDropdownMenu,{label:Object(ke.__)("Size"),text:Object(ke.__)("Size"),icon:null,popoverProps:{position:"bottom right"}},e=>{let{onClose:t}=e;return Object(je.createElement)(_e.MenuGroup,null,Bd.map(e=>Object(je.createElement)(_e.MenuItem,{icon:(b===e.value||!b&&"has-normal-icon-size"===e.value)&&xd.a,isSelected:b===e.value,key:e.value,onClick:()=>{c({size:e.value})},onClose:t,role:"menuitemradio"},e.name)))})),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Link settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Open links in new tab"),checked:d,onChange:()=>c({openInNewTab:!d})})),Object(je.createElement)(we.PanelColorSettings,{__experimentalHasMultipleOrigins:!0,title:Object(ke.__)("Color"),colorSettings:[{value:a.color||m,onChange:e=>{s(e),c({iconColorValue:e})},label:Object(ke.__)("Icon color")},!h&&{value:o.color||u,onChange:e=>{i(e),c({iconBackgroundColorValue:e})},label:Object(ke.__)("Icon background color")}]}),!h&&Object(je.createElement)(we.ContrastChecker,{textColor:m,backgroundColor:u,isLargeText:!1})),Object(je.createElement)("ul",f))}));const Nd={apiVersion:2,name:"core/social-links",title:"Social Icons",category:"widgets",description:"Display icons linking to your social media profiles or websites.",keywords:["links"],textdomain:"default",attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},size:{type:"string"}},providesContext:{openInNewTab:"openInNewTab",iconColorValue:"iconColorValue",iconBackgroundColorValue:"iconBackgroundColorValue"},supports:{align:["left","center","right"],anchor:!0,__experimentalExposeControlsToChildren:!0,__experimentalLayout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},spacing:{blockGap:!0,margin:["top","bottom"],units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"logos-only",label:"Logos Only"},{name:"pill-shape",label:"Pill Shape"}],editorStyle:"wp-block-social-links-editor",style:"wp-block-social-links"},{name:Pd}=Nd,zd={example:{innerBlocks:[{name:"core/social-link",attributes:{service:"wordpress",url:"https://wordpress.org"}},{name:"core/social-link",attributes:{service:"facebook",url:"https://www.facebook.com/WordPress/"}},{name:"core/social-link",attributes:{service:"twitter",url:"https://twitter.com/WordPress"}}]},icon:gd,edit:Td,save:function(e){const{attributes:{iconBackgroundColorValue:t,iconColorValue:n,size:r}}=e,o=tt()(r,{"has-icon-color":n,"has-icon-background-color":t}),a=we.useBlockProps.save({className:o}),l=we.useInnerBlocksProps.save(a);return Object(je.createElement)("ul",l)},deprecated:Cd};var Id=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M12.5 4.2v1.6h4.7L5.8 17.2V12H4.2v7.8H12v-1.6H6.8L18.2 6.8v4.7h1.6V4.2z"}));var Md=Object(nt.compose)([Object(ze.withDispatch)(e=>{const{toggleSelection:t}=e(we.store);return{onResizeStart:()=>t(!1),onResizeStop:()=>t(!0)}}),nt.withInstanceId])(e=>{let{attributes:t,isSelected:n,setAttributes:r,onResizeStart:o,onResizeStop:a,context:l}=e;const{orientation:c}=l,[i,s]=Object(je.useState)(!1),{height:u,width:m}=t,d=e=>{r({height:e})},b=e=>{r({width:e})},p=function(){o(...arguments),s(!0)},g=(e,t,n,r)=>{a();const o=Math.min(parseInt(u+r.height,10),500);d(o),s(!1)},h=(e,t,n,r)=>{a();const o=Math.min(parseInt(m+r.width,10),500);b(o),s(!1)};return Object(je.useEffect)(()=>{"horizontal"!==c||m||(b(72),d(0))},[]),Object(je.createElement)(je.Fragment,null,Object(je.createElement)(ye.View,Object(we.useBlockProps)(),"horizontal"===c?Object(je.createElement)(_e.ResizableBox,{className:tt()("block-library-spacer__resize-container","resize-horizontal",{"is-selected":n}),size:{width:m,height:24},minWidth:1,enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:p,onResizeStop:h,showHandle:n,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"x",position:"corner",isVisible:i}}):Object(je.createElement)(_e.ResizableBox,{className:tt()("block-library-spacer__resize-container",{"is-selected":n}),size:{height:u},minHeight:1,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:p,onResizeStop:g,showHandle:n,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:i}})),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Spacer settings")},"horizontal"===c&&Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Width in pixels"),min:1,max:Math.max(500,m),value:m,onChange:b}),"horizontal"!==c&&Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Height in pixels"),min:1,max:Math.max(500,u),value:u,onChange:d}))))});const Rd={apiVersion:2,name:"core/spacer",title:"Spacer",category:"design",description:"Add white space between blocks and customize its height.",textdomain:"default",attributes:{height:{type:"number",default:100},width:{type:"number"}},usesContext:["orientation"],supports:{anchor:!0},editorStyle:"wp-block-spacer-editor",style:"wp-block-spacer"},{name:Ld}=Rd,Vd={icon:Id,edit:Md,save:function(e){let{attributes:t}=e;return Object(je.createElement)("div",we.useBlockProps.save({style:{height:t.height,width:t.width},"aria-hidden":!0}))}};var Ad=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"}));const Hd={"subtle-light-gray":"#f3f4f5","subtle-pale-green":"#e9fbe5","subtle-pale-blue":"#e7f5fe","subtle-pale-pink":"#fcf0ef"};var Fd=[{attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption",default:""},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}}},supports:{anchor:!0,align:!0,__experimentalSelector:".wp-block-table > table"},save:e=>{let{attributes:t}=e;const{hasFixedLayout:n,head:r,body:o,foot:a,backgroundColor:l,caption:c}=t;if(!r.length&&!o.length&&!a.length)return null;const i=Object(we.getColorClassName)("background-color",l),s=tt()(i,{"has-fixed-layout":n,"has-background":!!i}),u=!we.RichText.isEmpty(c),m=e=>{let{type:t,rows:n}=e;if(!n.length)return null;const r="t"+t;return Object(je.createElement)(r,null,n.map((e,t)=>{let{cells:n}=e;return Object(je.createElement)("tr",{key:t},n.map((e,t)=>{let{content:n,tag:r,scope:o,align:a}=e;const l=tt()({["has-text-align-"+a]:a});return Object(je.createElement)(we.RichText.Content,{className:l||void 0,"data-align":a,tagName:r,value:n,key:t,scope:"th"===r?o:void 0})}))}))};return Object(je.createElement)("figure",we.useBlockProps.save(),Object(je.createElement)("table",{className:""===s?void 0:s},Object(je.createElement)(m,{type:"head",rows:r}),Object(je.createElement)(m,{type:"body",rows:o}),Object(je.createElement)(m,{type:"foot",rows:a})),u&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",value:c}))},isEligible:e=>e.backgroundColor&&!e.style,migrate:e=>({...e,backgroundColor:void 0,style:{color:{background:Hd[e.backgroundColor]}}})},{attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}}},supports:{align:!0},save(e){let{attributes:t}=e;const{hasFixedLayout:n,head:r,body:o,foot:a,backgroundColor:l}=t;if(!r.length&&!o.length&&!a.length)return null;const c=Object(we.getColorClassName)("background-color",l),i=tt()(c,{"has-fixed-layout":n,"has-background":!!c}),s=e=>{let{type:t,rows:n}=e;if(!n.length)return null;const r="t"+t;return Object(je.createElement)(r,null,n.map((e,t)=>{let{cells:n}=e;return Object(je.createElement)("tr",{key:t},n.map((e,t)=>{let{content:n,tag:r,scope:o}=e;return Object(je.createElement)(we.RichText.Content,{tagName:r,value:n,key:t,scope:"th"===r?o:void 0})}))}))};return Object(je.createElement)("table",{className:i},Object(je.createElement)(s,{type:"head",rows:r}),Object(je.createElement)(s,{type:"body",rows:o}),Object(je.createElement)(s,{type:"foot",rows:a}))}}],Dd=n("fPbg"),Gd=n("plpT"),qd=n("ziDm");var Ud=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(je.createElement)(ye.Path,{d:"M6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84zM6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84z"}));var Wd=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(je.createElement)(ye.Path,{d:"M13.824 10.176h-2.88v-2.88H9.536v2.88h-2.88v1.344h2.88v2.88h1.408v-2.88h2.88zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm6.4 0H7.68v3.84h5.12V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.056H1.28v9.024H19.2V6.336z"}));var $d=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(je.createElement)(ye.Path,{d:"M17.728 11.456L14.592 8.32l3.2-3.2-1.536-1.536-3.2 3.2L9.92 3.648 8.384 5.12l3.2 3.2-3.264 3.264 1.536 1.536 3.264-3.264 3.136 3.136 1.472-1.536zM0 17.92V0h20.48v17.92H0zm19.2-6.4h-.448l-1.28-1.28H19.2V6.4h-1.792l1.28-1.28h.512V1.28H1.28v3.84h6.208l1.28 1.28H1.28v3.84h7.424l-1.28 1.28H1.28v3.84H19.2v-3.84z"}));var Zd=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(je.createElement)(ye.Path,{d:"M6.4 3.776v3.648H2.752v1.792H6.4v3.648h1.728V9.216h3.712V7.424H8.128V3.776zM0 17.92V0h20.48v17.92H0zM12.8 1.28H1.28v14.08H12.8V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.12h-5.12v3.84h5.12V6.4zm0 5.12h-5.12v3.84h5.12v-3.84z"}));var Kd=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(je.createElement)(ye.Path,{d:"M14.08 12.864V9.216h3.648V7.424H14.08V3.776h-1.728v3.648H8.64v1.792h3.712v3.648zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm0 5.12H1.28v3.84H6.4V6.4zm0 5.12H1.28v3.84H6.4v-3.84zM19.2 1.28H7.68v14.08H19.2V1.28z"}));var Jd=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(je.createElement)(ye.Path,{d:"M6.4 9.98L7.68 8.7v-.256L6.4 7.164V9.98zm6.4-1.532l1.28-1.28V9.92L12.8 8.64v-.192zm7.68 9.472V0H0v17.92h20.48zm-1.28-2.56h-5.12v-1.024l-.256.256-1.024-1.024v1.792H7.68v-1.792l-1.024 1.024-.256-.256v1.024H1.28V1.28H6.4v2.368l.704-.704.576.576V1.216h5.12V3.52l.96-.96.32.32V1.216h5.12V15.36zm-5.76-2.112l-3.136-3.136-3.264 3.264-1.536-1.536 3.264-3.264L5.632 5.44l1.536-1.536 3.136 3.136 3.2-3.2 1.536 1.536-3.2 3.2 3.136 3.136-1.536 1.536z"}));var Qd=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M4 6v11.5h16V6H4zm1.5 1.5h6V11h-6V7.5zm0 8.5v-3.5h6V16h-6zm13 0H13v-3.5h5.5V16zM13 11V7.5h5.5V11H13z"}));const Yd=["align"];function Xd(e,t,n){if(!t)return e;const r=Object(Me.pick)(e,["head","body","foot"]),{sectionName:o,rowIndex:a}=t;return Object(Me.mapValues)(r,(e,r)=>o&&o!==r?e:e.map((e,o)=>a&&a!==o?e:{cells:e.cells.map((e,a)=>function(e,t){if(!e||!t)return!1;switch(t.type){case"column":return"column"===t.type&&e.columnIndex===t.columnIndex;case"cell":return"cell"===t.type&&e.sectionName===t.sectionName&&e.columnIndex===t.columnIndex&&e.rowIndex===t.rowIndex}}({sectionName:r,columnIndex:a,rowIndex:o},t)?n(e):e)}))}function eb(e,t){let{sectionName:n,rowIndex:r,columnCount:o}=t;const a=function(e){return rb(e.head)?rb(e.body)?rb(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),l=void 0===o?Object(Me.get)(a,["cells","length"]):o;return l?{[n]:[...e[n].slice(0,r),{cells:Object(Me.times)(l,e=>{const t=Object(Me.get)(a,["cells",e],{});return{...Object(Me.pick)(t,Yd),content:"",tag:"head"===n?"th":"td"}})},...e[n].slice(r)]}:e}function tb(e,t){let{columnIndex:n}=t;const r=Object(Me.pick)(e,["head","body","foot"]);return Object(Me.mapValues)(r,(e,t)=>rb(e)?e:e.map(e=>ob(e)||e.cells.length<n?e:{cells:[...e.cells.slice(0,n),{content:"",tag:"head"===t?"th":"td"},...e.cells.slice(n)]}))}function nb(e,t){if(!rb(e[t]))return{[t]:[]};return eb(e,{sectionName:t,rowIndex:0,columnCount:Object(Me.get)(e,["body",0,"cells","length"],1)})}function rb(e){return!e||!e.length||Object(Me.every)(e,ob)}function ob(e){return!(e.cells&&e.cells.length)}const ab=[{icon:Dd.a,title:Object(ke.__)("Align column left"),align:"left"},{icon:Gd.a,title:Object(ke.__)("Align column center"),align:"center"},{icon:qd.a,title:Object(ke.__)("Align column right"),align:"right"}],lb={head:Object(ke.__)("Header cell text"),body:Object(ke.__)("Body cell text"),foot:Object(ke.__)("Footer cell text")},cb={head:Object(ke.__)("Header label"),foot:Object(ke.__)("Footer label")};function ib(e){let{name:t,...n}=e;const r="t"+t;return Object(je.createElement)(r,n)}var sb=function(e){let{attributes:t,setAttributes:n,insertBlocksAfter:r,isSelected:o}=e;const{hasFixedLayout:a,caption:l,head:c,foot:i}=t,[s,u]=Object(je.useState)(2),[m,d]=Object(je.useState)(2),[b,p]=Object(je.useState)(),g=Object(we.__experimentalUseColorProps)(t),h=Object(we.__experimentalUseBorderProps)(t);function v(e){b&&n(Xd(t,b,t=>({...t,content:e})))}function O(e){if(!b)return;const{sectionName:r,rowIndex:o}=b,a=o+e;n(eb(t,{sectionName:r,rowIndex:a})),p({sectionName:r,rowIndex:a,columnIndex:0,type:"cell"})}function j(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!b)return;const{columnIndex:r}=b,o=r+e;n(tb(t,{columnIndex:o})),p({rowIndex:0,columnIndex:o,type:"cell"})}Object(je.useEffect)(()=>{o||p()},[o]);const y=["head","body","foot"].filter(e=>!rb(t[e])),f=[{icon:Ud,title:Object(ke.__)("Insert row before"),isDisabled:!b,onClick:function(){O(0)}},{icon:Wd,title:Object(ke.__)("Insert row after"),isDisabled:!b,onClick:function(){O(1)}},{icon:$d,title:Object(ke.__)("Delete row"),isDisabled:!b,onClick:function(){if(!b)return;const{sectionName:e,rowIndex:r}=b;p(),n(function(e,t){let{sectionName:n,rowIndex:r}=t;return{[n]:e[n].filter((e,t)=>t!==r)}}(t,{sectionName:e,rowIndex:r}))}},{icon:Zd,title:Object(ke.__)("Insert column before"),isDisabled:!b,onClick:function(){j(0)}},{icon:Kd,title:Object(ke.__)("Insert column after"),isDisabled:!b,onClick:function(){j(1)}},{icon:Jd,title:Object(ke.__)("Delete column"),isDisabled:!b,onClick:function(){if(!b)return;const{sectionName:e,columnIndex:r}=b;p(),n(function(e,t){let{columnIndex:n}=t;const r=Object(Me.pick)(e,["head","body","foot"]);return Object(Me.mapValues)(r,e=>rb(e)?e:e.map(e=>({cells:e.cells.length>=n?e.cells.filter((e,t)=>t!==n):e.cells})).filter(e=>e.cells.length))}(t,{sectionName:e,columnIndex:r}))}}],_=["head","body","foot"].map(e=>Object(je.createElement)(ib,{name:e,key:e},t[e].map((t,n)=>{let{cells:r}=t;return Object(je.createElement)("tr",{key:n},r.map((t,r)=>{let{content:o,tag:a,scope:l,align:c}=t;return Object(je.createElement)(we.RichText,{tagName:a,key:r,className:tt()({["has-text-align-"+c]:c},"wp-block-table__cell-content"),scope:"th"===a?l:void 0,value:o,onChange:v,unstableOnFocus:()=>{p({sectionName:e,rowIndex:n,columnIndex:r,type:"cell"})},"aria-label":lb[e],placeholder:cb[e]})}))}))),k=!y.length;return Object(je.createElement)("figure",Object(we.useBlockProps)(),!k&&Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(we.AlignmentControl,{label:Object(ke.__)("Change column alignment"),alignmentControls:ab,value:function(){if(b)return function(e,t,n){const{sectionName:r,rowIndex:o,columnIndex:a}=t;return Object(Me.get)(e,[r,o,"cells",a,n])}(t,b,"align")}(),onChange:e=>function(e){if(!b)return;const r={type:"column",columnIndex:b.columnIndex},o=Xd(t,r,t=>({...t,align:e}));n(o)}(e)})),Object(je.createElement)(we.BlockControls,{group:"other"},Object(je.createElement)(_e.ToolbarDropdownMenu,{hasArrowIndicator:!0,icon:Qd,label:Object(ke.__)("Edit table"),controls:f}))),!k&&Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Table settings"),className:"blocks-table-settings"},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Fixed width table cells"),checked:!!a,onChange:function(){n({hasFixedLayout:!a})}}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Header section"),checked:!(!c||!c.length),onChange:function(){n(nb(t,"head"))}}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Footer section"),checked:!(!i||!i.length),onChange:function(){n(nb(t,"foot"))}}))),!k&&Object(je.createElement)("table",{className:tt()(g.className,h.className,{"has-fixed-layout":a}),style:{...g.style,...h.style}},_),!k&&Object(je.createElement)(we.RichText,{tagName:"figcaption","aria-label":Object(ke.__)("Table caption text"),placeholder:Object(ke.__)("Add caption"),value:l,onChange:e=>n({caption:e}),unstableOnFocus:()=>p(),__unstableOnSplitAtEnd:()=>r(Object(Oe.createBlock)("core/paragraph"))}),k&&Object(je.createElement)(_e.Placeholder,{label:Object(ke.__)("Table"),icon:Object(je.createElement)(we.BlockIcon,{icon:Ad,showColors:!0}),instructions:Object(ke.__)("Insert a table for sharing data.")},Object(je.createElement)("form",{className:"blocks-table__placeholder-form",onSubmit:function(e){e.preventDefault(),n(function(e){let{rowCount:t,columnCount:n}=e;return{body:Object(Me.times)(t,()=>({cells:Object(Me.times)(n,()=>({content:"",tag:"td"}))}))}}({rowCount:parseInt(s,10)||2,columnCount:parseInt(m,10)||2}))}},Object(je.createElement)(_e.TextControl,{type:"number",label:Object(ke.__)("Column count"),value:m,onChange:function(e){d(e)},min:"1",className:"blocks-table__placeholder-input"}),Object(je.createElement)(_e.TextControl,{type:"number",label:Object(ke.__)("Row count"),value:s,onChange:function(e){u(e)},min:"1",className:"blocks-table__placeholder-input"}),Object(je.createElement)(_e.Button,{className:"blocks-table__placeholder-button",variant:"primary",type:"submit"},Object(ke.__)("Create Table")))))};const ub=e=>{let{phrasingContentSchema:t}=e;return{tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:t,attributes:["scope"]},td:{allowEmpty:!0,children:t}}}}};var mb={from:[{type:"raw",selector:"table",schema:e=>({table:{children:{thead:{allowEmpty:!0,children:ub(e)},tfoot:{allowEmpty:!0,children:ub(e)},tbody:{allowEmpty:!0,children:ub(e)}}}})}]};const db={apiVersion:2,name:"core/table",title:"Table",category:"text",description:"Create structured content in rows and columns to display information.",textdomain:"default",attributes:{hasFixedLayout:{type:"boolean",default:!1},caption:{type:"string",source:"html",selector:"figcaption",default:""},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0},__experimentalSelector:".wp-block-table > table"},styles:[{name:"regular",label:"Default",isDefault:!0},{name:"stripes",label:"Stripes"}],editorStyle:"wp-block-table-editor",style:"wp-block-table"},{name:bb}=db,pb={icon:Ad,example:{attributes:{head:[{cells:[{content:Object(ke.__)("Version"),tag:"th"},{content:Object(ke.__)("Jazz Musician"),tag:"th"},{content:Object(ke.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:Object(ke.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:Object(ke.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:Object(ke.__)("December 6, 2018"),tag:"td"}]}]}},transforms:mb,edit:sb,save:function(e){let{attributes:t}=e;const{hasFixedLayout:n,head:r,body:o,foot:a,caption:l}=t;if(!r.length&&!o.length&&!a.length)return null;const c=Object(we.__experimentalGetColorClassesAndStyles)(t),i=Object(we.__experimentalGetBorderClassesAndStyles)(t),s=tt()(c.className,i.className,{"has-fixed-layout":n}),u=!we.RichText.isEmpty(l),m=e=>{let{type:t,rows:n}=e;if(!n.length)return null;const r="t"+t;return Object(je.createElement)(r,null,n.map((e,t)=>{let{cells:n}=e;return Object(je.createElement)("tr",{key:t},n.map((e,t)=>{let{content:n,tag:r,scope:o,align:a}=e;const l=tt()({["has-text-align-"+a]:a});return Object(je.createElement)(we.RichText.Content,{className:l||void 0,"data-align":a,tagName:r,value:n,key:t,scope:"th"===r?o:void 0})}))}))};return Object(je.createElement)("figure",we.useBlockProps.save(),Object(je.createElement)("table",{className:""===s?void 0:s,style:{...c.style,...i.style}},Object(je.createElement)(m,{type:"head",rows:r}),Object(je.createElement)(m,{type:"body",rows:o}),Object(je.createElement)(m,{type:"foot",rows:a})),u&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",value:l}))},deprecated:Fd};var gb=Object(ze.withSelect)(e=>({taxonomies:e(It.store).getTaxonomies({per_page:-1})}))((function(e){let{attributes:t,setAttributes:n,taxonomies:r}=e;const{taxonomy:o,showTagCounts:a,numberOfTags:l}=t,c=Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Tag Cloud settings")},Object(je.createElement)(_e.SelectControl,{label:Object(ke.__)("Taxonomy"),options:[{label:Object(ke.__)("- Select -"),value:"",disabled:!0},...Object(Me.map)(Object(Me.filter)(r,"show_cloud"),e=>({value:e.slug,label:e.name}))],value:o,onChange:e=>n({taxonomy:e})}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Show post counts"),checked:a,onChange:()=>n({showTagCounts:!a})}),Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Number of tags"),value:l,onChange:e=>n({numberOfTags:e}),min:1,max:100,required:!0})));return Object(je.createElement)(je.Fragment,null,c,Object(je.createElement)("div",Object(we.useBlockProps)(),Object(je.createElement)(Ce.a,{key:"tag-cloud",block:"core/tag-cloud",attributes:t})))}));const hb={apiVersion:2,name:"core/tag-cloud",title:"Tag Cloud",category:"widgets",description:"A cloud of your most used tags.",textdomain:"default",attributes:{numberOfTags:{type:"number",default:45,minimum:1,maximum:100},taxonomy:{type:"string",default:"post_tag"},showTagCounts:{type:"boolean",default:!1}},supports:{html:!1,align:!0},editorStyle:"wp-block-tag-cloud-editor"},{name:vb}=hb,Ob={icon:Uc,example:{},edit:gb};var jb=n("OE6V");function yb(e){return Object(ke.sprintf)(Object(ke.__)("Area: %s"),e)}function fb(){return Object(je.createElement)("div",{className:"wp-block-template-part__selection-preview-item is-placeholder",tabIndex:0})}function _b(e){let{templatePart:t,setAttributes:n,onClose:r,composite:o}=e;const{slug:a,theme:l,title:{rendered:c}}=t,i=t.content.raw||"",s=Object(je.useMemo)(()=>Object(Oe.parse)(i),[i]),{createSuccessNotice:u}=Object(ze.useDispatch)(Fr.store),m=Object(je.useCallback)(()=>{n({slug:a,theme:l,area:void 0}),u(Object(ke.sprintf)(Object(ke.__)('Template Part "%s" inserted.'),c||a),{type:"snackbar"}),r()},[a,l]);return Object(je.createElement)(_e.__unstableCompositeItem,Object(mt.a)({as:"div",className:"wp-block-template-part__selection-preview-item",role:"option",onClick:m,onKeyDown:e=>{dt.ENTER!==e.keyCode&&dt.SPACE!==e.keyCode||m()},tabIndex:0,"aria-label":c||a},o),Object(je.createElement)(we.BlockPreview,{blocks:s}),Object(je.createElement)("div",{className:"wp-block-template-part__selection-preview-item-title"},c||a))}function kb(e){let{title:t,icon:n,children:r}=e;return Object(je.createElement)(je.Fragment,null,Object(je.createElement)("div",{className:"wp-block-template-part__selection-panel-group-header"},Object(je.createElement)("span",{className:"wp-block-template-part__selection-panel-group-title"},t),Object(je.createElement)(_e.Icon,{icon:n})),Object(je.createElement)("div",{className:"wp-block-template-part__selection-panel-group-content"},r))}function wb(e){let{templateParts:t,setAttributes:n,onClose:r,composite:o,area:a="uncategorized",labelsByArea:l}=e;const{templatePartsByArea:c,templatePartsToShow:i}=Object(je.useMemo)(()=>{const e=t.filter(e=>"uncategorized"===a||e.area===a)||[];return{templatePartsByArea:Object.values(Object(Me.groupBy)(e,"area")),templatePartsToShow:Object(Me.flatten)(e)}},[t,a]),s=Object(nt.useAsyncList)(i);return i.length?c.map(e=>Object(je.createElement)(kb,{key:e[0].area,title:yb(l[e[0].area]||l.uncategorized)},e.map(e=>s.includes(e)?Object(je.createElement)(_b,{key:e.id,templatePart:e,setAttributes:n,onClose:r,composite:o}):Object(je.createElement)(fb,{key:e.id})))):Object(je.createElement)(kb,{title:yb(l[a]||l.uncategorized)},Object(ke.sprintf)(Object(ke.__)("There is no other %s available. If you are looking for another type of template part, try searching for it using the input above."),a&&"uncategorized"!==a?l[a]||a:Object(ke.__)("Template Part")))}function Eb(e){let{templateParts:t,setAttributes:n,filterValue:r,onClose:o,composite:a,labelsByArea:l}=e;const{filteredTPs:c,groupedResults:i}=Object(je.useMemo)(()=>{const e=Object(Me.deburr)(r).toLowerCase(),n=t.filter(t=>{let{title:{rendered:n},area:r}=t;return Object(Me.deburr)(n).toLowerCase().includes(e)||Object(Me.deburr)(l[r]).toLowerCase().includes(e)});n.sort((t,n)=>{const r=Object(Me.deburr)(t.title.rendered).toLowerCase().indexOf(e),o=Object(Me.deburr)(n.title.rendered).toLowerCase().indexOf(e);return-1!==r&&-1!==o?r-o:-1!==r?-1:-1!==o?1:Object(Me.deburr)(l[t.area]).toLowerCase().indexOf(e)-Object(Me.deburr)(l[n.area]).toLowerCase().indexOf(e)});const o=[];for(let e=0;e<n.length;e++)0!==e&&n[e].area===n[e-1].area?o[o.length-1].push(n[e]):o.push([n[e]]);return{filteredTPs:n,groupedResults:o}},[r,t]),s=Object(nt.useAsyncList)(c);return i.map(e=>Object(je.createElement)(kb,{key:e[0].id,title:yb(l[e[0].area]||l.uncategorized)},e.map(e=>s.includes(e)?Object(je.createElement)(_b,{key:e.id,templatePart:e,setAttributes:n,onClose:o,composite:a}):Object(je.createElement)(fb,{key:e.id}))))}function Cb(e){let{setAttributes:t,filterValue:n,onClose:r,area:o,templatePartId:a}=e;const l=Object(_e.__unstableUseCompositeState)(),{templateParts:c,labelsByArea:i}=Object(ze.useSelect)(e=>{const t=(e(It.store).getEntityRecords("postType","wp_template_part",{per_page:-1})||[]).filter(e=>_c(e.theme,e.slug)!==a),n=e("core/editor").__experimentalGetDefaultTemplatePartAreas(),r={};return n.forEach(e=>{r[e.area]=e.label}),{templateParts:t,labelsByArea:r}},[]);return c&&c.length?n?Object(je.createElement)(_e.__unstableComposite,Object(mt.a)({},l,{role:"listbox","aria-label":Object(ke.__)("List of template parts")}),Object(je.createElement)(Eb,{templateParts:c,setAttributes:t,filterValue:n,onClose:r,composite:l,labelsByArea:i})):Object(je.createElement)(_e.__unstableComposite,Object(mt.a)({},l,{role:"listbox","aria-label":Object(ke.__)("List of template parts")}),Object(je.createElement)(wb,{templateParts:c,setAttributes:t,onClose:r,composite:l,area:o,labelsByArea:i})):Object(je.createElement)(kb,null,Object(ke.__)("There are no existing template parts to select."))}function xb(e){let{setAttributes:t,onClose:n,area:r,templatePartId:o=null}=e;const[a,l]=Object(je.useState)("");return Object(je.createElement)("div",null,Object(je.createElement)(_e.SearchControl,{value:a,onChange:l,className:"wp-block-template-part__selection-preview-search-form"}),Object(je.createElement)("div",{className:"wp-block-template-part__selection-preview-container"},Object(je.createElement)(Cb,{setAttributes:t,filterValue:a,onClose:n,area:r,templatePartId:o})))}function Sb(e){let{area:t,areaLabel:n,areaIcon:r,clientId:o,onCreate:a,resetPlaceholder:l}=e;const c=t?"core/template-part/"+t:"core/template-part",[i,s]=Object(je.useState)(Object(ke.__)("Untitled Template Part")),[u,m]=Object(je.useState)([]),[d,b]=Object(je.useState)(!1);return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.__experimentalBlockPatternSetup,{clientId:o,startBlankComponent:Object(je.createElement)(Bb,{setTitleStep:b,areaLabel:n,areaIcon:r}),onBlockPatternSelect:e=>{m(e),b(!0)},filterPatternsFn:e=>{var t,n;return null==e||null===(t=e.blockTypes)||void 0===t||null===(n=t.some)||void 0===n?void 0:n.call(t,e=>e===c)}}),d&&Object(je.createElement)(_e.Modal,{title:Object(ke.sprintf)(Object(ke.__)("Name and create your new %s"),n.toLowerCase()),closeLabel:Object(ke.__)("Cancel"),onRequestClose:l,overlayClassName:"wp-block-template-part__placeholder-create-new__title-form"},Object(je.createElement)("form",{onSubmit:e=>{e.preventDefault(),a(u,i)}},Object(je.createElement)(_e.TextControl,{label:Object(ke.__)("Name"),value:i,onChange:s}),Object(je.createElement)(_e.Flex,{className:"wp-block-template-part__placeholder-create-new__title-form-actions",justify:"flex-end"},Object(je.createElement)(_e.FlexItem,null,Object(je.createElement)(_e.Button,{variant:"secondary",onClick:l},Object(ke.__)("Cancel"))),Object(je.createElement)(_e.FlexItem,null,Object(je.createElement)(_e.Button,{variant:"primary",type:"submit",disabled:!i.length,"aria-disabled":!i.length},Object(ke.__)("Create")))))))}function Bb(e){let{setTitleStep:t,areaLabel:n,areaIcon:r}=e;return Object(je.useEffect)(()=>{t(!0)},[]),Object(je.createElement)(_e.Placeholder,{label:n,icon:r,instructions:Object(ke.sprintf)(Object(ke.__)("Creating your new %s…"),n.toLowerCase())})}const Tb=1,Nb=2;function Pb(e){let{area:t,clientId:n,setAttributes:r,enableSelection:o,hasResolvedReplacements:a}=e;const{saveEntityRecord:l}=Object(ze.useDispatch)(It.store),[c,i]=Object(je.useState)(Tb),{areaIcon:s,areaLabel:u}=Object(ze.useSelect)(e=>{const n=e("core/editor").__experimentalGetDefaultTemplatePartAreas(),r=Object(Me.find)(n,{area:t}),o=Object(Me.find)(n,{area:"uncategorized"});return{areaIcon:(null==r?void 0:r.icon)||(null==o?void 0:o.icon),areaLabel:(null==r?void 0:r.label)||Object(ke.__)("Template Part")}},[t]),m=Object(je.useCallback)((async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(ke.__)("Untitled Template Part");const o={title:n,slug:"template-part",content:Object(Oe.serialize)(e),area:t},a=await l("postType","wp_template_part",o);r({slug:a.slug,theme:a.theme,area:void 0})}),[r,t]);return Object(je.createElement)(je.Fragment,null,c===Tb&&Object(je.createElement)(_e.Placeholder,{icon:s,label:u,instructions:o?Object(ke.sprintf)(Object(ke.__)("Choose an existing %s or create a new one."),u.toLowerCase()):Object(ke.sprintf)(Object(ke.__)("Create a new %s."),u.toLowerCase())},a?Object(je.createElement)(_e.Dropdown,{contentClassName:"wp-block-template-part__placeholder-preview-dropdown-content",position:"bottom right left",renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return Object(je.createElement)(je.Fragment,null,o&&Object(je.createElement)(_e.Button,{variant:"primary",onClick:n,"aria-expanded":t},Object(ke.__)("Choose existing")),Object(je.createElement)(_e.Button,{variant:o?"tertiary":"primary",onClick:()=>i(Nb)},Object(ke.sprintf)(Object(ke.__)("New %s"),u.toLowerCase())))},renderContent:e=>{let{onClose:n}=e;return Object(je.createElement)(xb,{setAttributes:r,onClose:n,area:t})}}):Object(je.createElement)(_e.Spinner,null)),c===Nb&&Object(je.createElement)(Sb,{area:t,areaLabel:u,areaIcon:s,onCreate:m,clientId:n,resetPlaceholder:()=>i(Tb)}))}function zb(e){let{tagName:t,setAttributes:n,isEntityAvailable:r,templatePartId:o,defaultWrapper:a}=e;const[l,c]=Object(It.useEntityProp)("postType","wp_template_part","area",o),[i,s]=Object(It.useEntityProp)("postType","wp_template_part","title",o),{areaOptions:u}=Object(ze.useSelect)(e=>({areaOptions:e("core/editor").__experimentalGetDefaultTemplatePartAreas().map(e=>{let{label:t,area:n}=e;return{label:t,value:n}})}),[]);return Object(je.createElement)(we.InspectorControls,{__experimentalGroup:"advanced"},r&&Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.TextControl,{label:Object(ke.__)("Title"),value:i,onChange:e=>{s(e)},onFocus:e=>e.target.select()}),Object(je.createElement)(_e.SelectControl,{label:Object(ke.__)("Area"),labelPosition:"top",options:u,value:l,onChange:c})),Object(je.createElement)(_e.SelectControl,{label:Object(ke.__)("HTML element"),options:[{label:Object(ke.sprintf)(Object(ke.__)("Default based on area (%s)"),`<${a}>`),value:""},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"},{label:"<div>",value:"div"}],value:t||"",onChange:e=>n({tagName:e})}))}function Ib(e){let{postId:t,hasInnerBlocks:n,layout:r,tagName:o,blockProps:a,clientId:l}=e;const c=Object(ze.useSelect)(e=>{var t;const{getSettings:n}=e(we.store);return null===(t=n())||void 0===t?void 0:t.supportsLayout},[]),i=Object(we.useSetting)("layout")||{},s=r&&r.inherit?i:r,[u,m,d]=Object(It.useEntityBlockEditor)("postType","wp_template_part",{id:t}),b=Object(we.useInnerBlocksProps)(a,{value:u,onInput:m,onChange:d,renderAppender:n?void 0:we.InnerBlocks.ButtonBlockAppender,__experimentalLayout:c?s:void 0});return Object(je.createElement)(we.__experimentalBlockContentOverlay,{clientId:l,tagName:o,wrapperProps:b})}var Mb=n("G8mJ"),Rb=n("//kF"),Lb=n("rvQu");const Vb=[{name:"header",icon:Mb.a,title:Object(ke.__)("Header"),description:Object(ke.__)("The Header template defines a page area that typically contains a title, logo, and main navigation."),attributes:{area:"header"},scope:["inserter"]},{name:"footer",icon:Rb.a,title:Object(ke.__)("Footer"),description:Object(ke.__)("The Footer template defines a page area that typically contains site credits, social links, or any other combination of blocks."),attributes:{area:"footer"},scope:["inserter"]}];Vb.forEach(e=>{e.isActive||(e.isActive=(e,t)=>{const{area:n,theme:r,slug:o}=e;if(n)return n===t.area;if(!o)return!1;const a=Object(ze.select)(It.store).getEntityRecord("postType","wp_template_part",`${r}//${o}`);return(null==a?void 0:a.area)===t.area})});var Ab=Vb;const Hb={apiVersion:2,name:"core/template-part",title:"Template Part",category:"theme",description:"Edit the different global regions of your site, like the header, footer, sidebar, or create your own.",textdomain:"default",attributes:{slug:{type:"string"},theme:{type:"string"},tagName:{type:"string"},area:{type:"string"}},supports:{align:!0,html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0},__experimentalLayout:!0},editorStyle:"wp-block-template-part-editor"},{name:Fb}=Hb,Db={icon:jb.a,__experimentalLabel:e=>{var t;let{slug:n,theme:r}=e;if(!n)return;const o=Object(ze.select)(It.store).getEntityRecord("postType","wp_template_part",r+"//"+n);return o?Object(Me.startCase)((null===(t=o.title)||void 0===t?void 0:t.rendered)||o.slug):void 0},edit:function(e){let{attributes:t,setAttributes:n,clientId:r}=e;const{slug:o,theme:a,tagName:l,layout:c={}}=t,i=_c(a,o),[s,u]=Object(we.__experimentalUseNoRecursiveRenders)(i),{isResolved:m,innerBlocks:d,isMissing:b,defaultWrapper:p,area:g,enableSelection:h,hasResolvedReplacements:v}=Object(ze.useSelect)(e=>{var n;const{getEditedEntityRecord:o,getEntityRecords:a,hasFinishedResolution:l}=e(It.store),{getBlocks:c}=e(we.store),s=["postType","wp_template_part",i],u=i?o(...s):null,m=(null==u?void 0:u.area)||t.area,d=["postType","wp_template_part",m&&"uncategorized"!==m&&{area:m}],b=a(...d),p=i?(null==b?void 0:b.length)>1:(null==b?void 0:b.length)>0,g=!!i&&l("getEditedEntityRecord",s),h=null===(n=e("core/editor").__experimentalGetDefaultTemplatePartAreas().find(e=>{let{area:t}=e;return t===m}))||void 0===n?void 0:n.area_tag;return{innerBlocks:c(r),isResolved:g,isMissing:g&&!u,defaultWrapper:h||"div",area:m,enableSelection:p,hasResolvedReplacements:l("getEntityRecords",d)}},[i,r]),O=Object(we.useBlockProps)(),j=!o,y=!j&&!b&&m,f=l||p;return 0===d.length&&(o&&!a||o&&b)?Object(je.createElement)(f,O,Object(je.createElement)(we.Warning,null,Object(ke.sprintf)(Object(ke.__)("Template part has been deleted or is unavailable: %s"),o))):y&&s?Object(je.createElement)(f,O,Object(je.createElement)(we.Warning,null,Object(ke.__)("Block cannot be rendered inside itself."))):Object(je.createElement)(u,null,Object(je.createElement)(zb,{tagName:l,setAttributes:n,isEntityAvailable:y,templatePartId:i,defaultWrapper:p}),j&&Object(je.createElement)(f,O,Object(je.createElement)(Pb,{area:t.area,clientId:r,setAttributes:n,enableSelection:h,hasResolvedReplacements:v})),y&&h&&Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(_e.ToolbarGroup,{className:"wp-block-template-part__block-control-group"},Object(je.createElement)(_e.Dropdown,{className:"wp-block-template-part__preview-dropdown-button",contentClassName:"wp-block-template-part__preview-dropdown-content",position:"bottom right left",renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return Object(je.createElement)(_e.ToolbarButton,{"aria-expanded":t,onClick:n},Object(ke.__)("Replace"))},renderContent:e=>{let{onClose:t}=e;return Object(je.createElement)(xb,{setAttributes:n,onClose:t,area:g,templatePartId:i})}}))),y&&Object(je.createElement)(Ib,{clientId:r,tagName:f,blockProps:O,postId:i,hasInnerBlocks:d.length>0,layout:c}),!j&&!m&&Object(je.createElement)(f,O,Object(je.createElement)(_e.Spinner,null)))}};Object(Vo.addFilter)("blocks.registerBlockType","core/template-part",(function(e,t){if("core/template-part"!==t)return e;if(!e.variations||!e.variations.length)return{...e,variations:Ab};if(e.variations){const t=(e,t)=>{const{area:n,theme:r,slug:o}=e;if(n)return n===t.area;if(!o)return!1;const a=Object(ze.select)(It.store).getEntityRecord("postType","wp_template_part",`${r}//${o}`);return(null==a?void 0:a.area)===t.area},n=e.variations.map(e=>{return{...e,...!e.isActive&&{isActive:t},..."string"==typeof e.icon&&{icon:(n=e.icon,"header"===n?Mb.a:"footer"===n?Rb.a:"sidebar"===n?Lb.a:jb.a)}};var n});return{...e,variations:n}}return e}));var Gb=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{stroke:"#1E1E1E",strokeWidth:"1.5",d:"M9 19.25h6M4 19.25h4M12 15.25h8M4 15.25h7"}),Object(je.createElement)(ye.Path,{d:"M8.994 10.103H6.08L5.417 12H4l2.846-8h1.383l2.845 8H9.657l-.663-1.897zm-.457-1.28l-.994-2.857-1.006 2.857h2z",fill:"#1E1E1E"}));const qb={apiVersion:2,name:"core/term-description",title:"Term Description",category:"theme",description:"Display the description of categories, tags and custom taxonomies when viewing an archive.",textdomain:"default",attributes:{textAlign:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-term-description-editor"},{name:Ub}=qb,Wb={icon:Gb,edit:function(e){let{attributes:t,setAttributes:n,mergedStyle:r}=e;const{textAlign:o}=t,a=Object(we.useBlockProps)({className:tt()({["has-text-align-"+o]:o}),style:r});return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(we.AlignmentControl,{value:o,onChange:e=>{n({textAlign:e})}})),Object(je.createElement)("div",a,Object(je.createElement)("div",{className:"wp-block-term-description__placeholder"},Object(je.createElement)("span",null,Object(ke.__)("Term Description")))))}};var $b=n("NMb1"),Zb=n.n($b);var Kb={to:[{type:"block",blocks:["core/columns"],transform:e=>{let{className:t,columns:n,content:r,width:o}=e;return Object(Oe.createBlock)("core/columns",{align:"wide"===o||"full"===o?o:void 0,className:t,columns:n},r.map(e=>{let{children:t}=e;return Object(Oe.createBlock)("core/column",{},[Object(Oe.createBlock)("core/paragraph",{content:t})])}))}}]};const Jb={apiVersion:2,name:"core/text-columns",title:"Text Columns (deprecated)",icon:"columns",category:"design",description:"This block is deprecated. Please use the Columns block instead.",textdomain:"default",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}},supports:{inserter:!1},editorStyle:"wp-block-text-columns-editor",style:"wp-block-text-columns"},{name:Qb}=Jb,Yb={transforms:Kb,getEditWrapperProps(e){const{width:t}=e;if("wide"===t||"full"===t)return{"data-align":t}},edit:function(e){let{attributes:t,setAttributes:n}=e;const{width:r,content:o,columns:a}=t;return Zb()("The Text Columns block",{since:"5.3",alternative:"the Columns block"}),Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(we.BlockAlignmentToolbar,{value:r,onChange:e=>n({width:e}),controls:["center","wide","full"]})),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,null,Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Columns"),value:a,onChange:e=>n({columns:e}),min:2,max:4,required:!0}))),Object(je.createElement)("div",Object(we.useBlockProps)({className:`align${r} columns-${a}`}),Object(Me.times)(a,e=>Object(je.createElement)("div",{className:"wp-block-column",key:"column-"+e},Object(je.createElement)(we.RichText,{tagName:"p",value:Object(Me.get)(o,[e,"children"]),onChange:t=>{n({content:[...o.slice(0,e),{children:t},...o.slice(e+1)]})},"aria-label":Object(ke.sprintf)(Object(ke.__)("Column %d text"),e+1),placeholder:Object(ke.__)("New Column")})))))},save:function(e){let{attributes:t}=e;const{width:n,content:r,columns:o}=t;return Object(je.createElement)("div",we.useBlockProps.save({className:`align${n} columns-${o}`}),Object(Me.times)(o,e=>Object(je.createElement)("div",{className:"wp-block-column",key:"column-"+e},Object(je.createElement)(we.RichText.Content,{tagName:"p",value:Object(Me.get)(r,[e,"children"])}))))}};var Xb=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z"}));var ep=[{attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},spacing:{padding:!0}},save(e){let{attributes:t}=e;const{textAlign:n,content:r}=t,o=tt()({["has-text-align-"+n]:n});return Object(je.createElement)("pre",we.useBlockProps.save({className:o}),Object(je.createElement)(we.RichText.Content,{value:r}))},migrate:at,isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}},{attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save(e){let{attributes:t}=e;const{textAlign:n,content:r}=t;return Object(je.createElement)(we.RichText.Content,{tagName:"pre",style:{textAlign:n},value:r})}}];var tp={from:[{type:"block",blocks:["core/paragraph"],transform:e=>Object(Oe.createBlock)("core/verse",e)}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>Object(Oe.createBlock)("core/paragraph",e)}]};const np={apiVersion:2,name:"core/verse",title:"Verse",category:"text",description:"Insert poetry. Use special spacing formats. Or quote song lyrics.",keywords:["poetry","poem"],textdomain:"default",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0},typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}},spacing:{padding:!0}},style:"wp-block-verse",editorStyle:"wp-block-verse-editor"},{name:rp}=np,op={icon:Xb,example:{attributes:{content:Object(ke.__)("WHAT was he doing, the great god Pan,\n\tDown in the reeds by the river?\nSpreading ruin and scattering ban,\nSplashing and paddling with hoofs of a goat,\nAnd breaking the golden lilies afloat\n With the dragon-fly on the river.")}},transforms:tp,deprecated:ep,merge:(e,t)=>({content:e.content+t.content}),edit:function(e){let{attributes:t,setAttributes:n,mergeBlocks:r,onRemove:o,style:a}=e;const{textAlign:l,content:c}=t,i=Object(we.useBlockProps)({className:tt()({["has-text-align-"+l]:l}),style:a});return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(we.AlignmentToolbar,{value:l,onChange:e=>{n({textAlign:e})}})),Object(je.createElement)(we.RichText,Object(mt.a)({tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:c,onChange:e=>{n({content:e})},"aria-label":Object(ke.__)("Verse text"),placeholder:Object(ke.__)("Write verse…"),onRemove:o,onMerge:r,textAlign:l},i,{__unstablePastePlainText:!0})))},save:function(e){let{attributes:t}=e;const{textAlign:n,content:r}=t,o=tt()({["has-text-align-"+n]:n});return Object(je.createElement)("pre",we.useBlockProps.save({className:o}),Object(je.createElement)(we.RichText.Content,{value:r}))}};var ap=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"}));const lp=[{value:"auto",label:Object(ke.__)("Auto")},{value:"metadata",label:Object(ke.__)("Metadata")},{value:"none",label:Object(ke._x)("None","Preload value")}];var cp=e=>{let{setAttributes:t,attributes:n}=e;const{autoplay:r,controls:o,loop:a,muted:l,playsInline:c,preload:i}=n,s=Object(ke.__)("Autoplay may cause usability issues for some users."),u=je.Platform.select({web:Object(je.useCallback)(e=>e?s:null,[]),native:s}),m=Object(je.useMemo)(()=>{const e=e=>n=>{t({[e]:n})};return{autoplay:e("autoplay"),loop:e("loop"),muted:e("muted"),controls:e("controls"),playsInline:e("playsInline")}},[]),d=Object(je.useCallback)(e=>{t({preload:e})},[]);return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Autoplay"),onChange:m.autoplay,checked:r,help:u}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Loop"),onChange:m.loop,checked:a}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Muted"),onChange:m.muted,checked:l}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Playback controls"),onChange:m.controls,checked:o}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Play inline"),onChange:m.playsInline,checked:c}),Object(je.createElement)(_e.SelectControl,{label:Object(ke.__)("Preload"),value:i,onChange:d,options:lp,hideCancelButton:!0}))},ip=n("rH4q");const sp=["text/vtt"],up="subtitles",mp=[{label:Object(ke.__)("Subtitles"),value:"subtitles"},{label:Object(ke.__)("Captions"),value:"captions"},{label:Object(ke.__)("Descriptions"),value:"descriptions"},{label:Object(ke.__)("Chapters"),value:"chapters"},{label:Object(ke.__)("Metadata"),value:"metadata"}],dp=Object(je.createElement)(_e.SVG,{width:"18",height:"14",viewBox:"0 0 18 14",role:"img",fill:"none"},Object(je.createElement)(_e.Rect,{x:"0.75",y:"0.75",width:"16.5",height:"12.5",rx:"1.25",stroke:"black",strokeWidth:"1.5",fill:"none"}),Object(je.createElement)(_e.Path,{d:"M3 7H15",stroke:"black",strokeWidth:"1.5"}),Object(je.createElement)(_e.Path,{d:"M3 10L15 10",stroke:"black",strokeWidth:"1.5"}));function bp(e){let t,{tracks:n,onEditPress:r}=e;return t=0===n.length?Object(je.createElement)("p",{className:"block-library-video-tracks-editor__tracks-informative-message"},Object(ke.__)("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.")):n.map((e,t)=>Object(je.createElement)("div",{key:t,className:"block-library-video-tracks-editor__track-list-track"},Object(je.createElement)("span",null,e.label," "),Object(je.createElement)(_e.Button,{variant:"tertiary",onClick:()=>r(t),"aria-label":Object(ke.sprintf)(Object(ke.__)("Edit %s"),e.label)},Object(ke.__)("Edit")))),Object(je.createElement)(_e.MenuGroup,{label:Object(ke.__)("Text tracks"),className:"block-library-video-tracks-editor__track-list"},t)}function pp(e){let{track:t,onChange:n,onClose:r,onRemove:o}=e;const{src:a="",label:l="",srcLang:c="",kind:i=up}=t,s=a.startsWith("blob:")?"":Object(Kr.getFilename)(a)||"";return Object(je.createElement)(_e.NavigableMenu,null,Object(je.createElement)("div",{className:"block-library-video-tracks-editor__single-track-editor"},Object(je.createElement)("span",{className:"block-library-video-tracks-editor__single-track-editor-edit-track-label"},Object(ke.__)("Edit track")),Object(je.createElement)("span",null,Object(ke.__)("File"),": ",Object(je.createElement)("b",null,s)),Object(je.createElement)("div",{className:"block-library-video-tracks-editor__single-track-editor-label-language"},Object(je.createElement)(_e.TextControl,{autoFocus:!0,onChange:e=>n({...t,label:e}),label:Object(ke.__)("Label"),value:l,help:Object(ke.__)("Title of track")}),Object(je.createElement)(_e.TextControl,{onChange:e=>n({...t,srcLang:e}),label:Object(ke.__)("Source language"),value:c,help:Object(ke.__)("Language tag (en, fr, etc.)")})),Object(je.createElement)(_e.SelectControl,{className:"block-library-video-tracks-editor__single-track-editor-kind-select",options:mp,value:i,label:Object(ke.__)("Kind"),onChange:e=>{n({...t,kind:e})}}),Object(je.createElement)("div",{className:"block-library-video-tracks-editor__single-track-editor-buttons-container"},Object(je.createElement)(_e.Button,{variant:"secondary",onClick:()=>{const e={};let o=!1;""===l&&(e.label=Object(ke.__)("English"),o=!0),""===c&&(e.srcLang="en",o=!0),void 0===t.kind&&(e.kind=up,o=!0),o&&n({...t,...e}),r()}},Object(ke.__)("Close")),Object(je.createElement)(_e.Button,{isDestructive:!0,variant:"link",onClick:o},Object(ke.__)("Remove track")))))}function gp(e){let{tracks:t=[],onChange:n}=e;const r=Object(ze.useSelect)(e=>e(we.store).getSettings().mediaUpload,[]),[o,a]=Object(je.useState)(null);return r?Object(je.createElement)(_e.Dropdown,{contentClassName:"block-library-video-tracks-editor",renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return Object(je.createElement)(_e.ToolbarButton,{label:Object(ke.__)("Text tracks"),showTooltip:!0,"aria-expanded":t,"aria-haspopup":"true",onClick:n,icon:dp})},renderContent:e=>{let{}=e;return null!==o?Object(je.createElement)(pp,{track:t[o],onChange:e=>{const r=[...t];r[o]=e,n(r)},onClose:()=>a(null),onRemove:()=>{n(t.filter((e,t)=>t!==o)),a(null)}}):Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.NavigableMenu,null,Object(je.createElement)(bp,{tracks:t,onEditPress:a}),Object(je.createElement)(_e.MenuGroup,{className:"block-library-video-tracks-editor__add-tracks-container",label:Object(ke.__)("Add tracks")},Object(je.createElement)(we.MediaUpload,{onSelect:e=>{let{url:r}=e;const o=t.length;n([...t,{src:r}]),a(o)},allowedTypes:sp,render:e=>{let{open:t}=e;return Object(je.createElement)(_e.MenuItem,{icon:ip.a,onClick:t},Object(ke.__)("Open Media Library"))}}),Object(je.createElement)(we.MediaUploadCheck,null,Object(je.createElement)(_e.FormFileUpload,{onChange:e=>{const o=e.target.files,l=t.length;r({allowedTypes:sp,filesList:o,onFileChange:e=>{let[{url:r}]=e;const o=[...t];o[l]||(o[l]={}),o[l]={...t[l],src:r},n(o),a(l)}})},accept:".vtt,text/vtt",render:e=>{let{openFileDialog:t}=e;return Object(je.createElement)(_e.MenuItem,{icon:Sa.a,onClick:()=>{t()}},Object(ke.__)("Upload"))}})))))}}):null}function hp(e){let{tracks:t=[]}=e;return t.map(e=>Object(je.createElement)("track",Object(mt.a)({key:e.src},e)))}const vp=["video"],Op=["image"];var jp=Object(_e.withNotices)((function e(t){let{isSelected:n,noticeUI:r,attributes:o,className:a,setAttributes:l,insertBlocksAfter:c,onReplace:i,noticeOperations:s}=t;const u=Object(nt.useInstanceId)(e),m=Object(je.useRef)(),d=Object(je.useRef)(),{id:b,caption:p,controls:g,poster:h,src:v,tracks:O}=o,j=!b&&Object(Pe.isBlobURL)(v),y=Object(ze.useSelect)(e=>e(we.store).getSettings().mediaUpload);function f(e){var t,n;e&&e.url?l({src:e.url,id:e.id,poster:(null===(t=e.image)||void 0===t?void 0:t.src)!==e.icon?null===(n=e.image)||void 0===n?void 0:n.src:void 0}):l({src:void 0,id:void 0,poster:void 0})}function _(e){if(e!==v){const t=Ge({attributes:{url:e}});if(void 0!==t)return void i(t);l({src:e,id:void 0,poster:void 0})}}function k(e){s.removeAllNotices(),s.createErrorNotice(e)}Object(je.useEffect)(()=>{if(!b&&Object(Pe.isBlobURL)(v)){const e=Object(Pe.getBlobByURL)(v);e&&y({filesList:[e],onFileChange:e=>{let[{url:t}]=e;l({src:t})},onError:e=>{s.createErrorNotice(e)},allowedTypes:vp})}},[]),Object(je.useEffect)(()=>{m.current&&m.current.load()},[h]);const w=tt()(a,{"is-transient":j}),E=Object(we.useBlockProps)({className:w});if(!v)return Object(je.createElement)("div",E,Object(je.createElement)(we.MediaPlaceholder,{icon:Object(je.createElement)(we.BlockIcon,{icon:ap}),onSelect:f,onSelectURL:_,accept:"video/*",allowedTypes:vp,value:o,notices:r,onError:k}));const C="video-block__poster-image-description-"+u;return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(gp,{tracks:O,onChange:e=>{l({tracks:e})}})),Object(je.createElement)(we.BlockControls,{group:"other"},Object(je.createElement)(we.MediaReplaceFlow,{mediaId:b,mediaURL:v,allowedTypes:vp,accept:"video/*",onSelect:f,onSelectURL:_,onError:k})),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Video settings")},Object(je.createElement)(cp,{setAttributes:l,attributes:o}),Object(je.createElement)(we.MediaUploadCheck,null,Object(je.createElement)(_e.BaseControl,{className:"editor-video-poster-control"},Object(je.createElement)(_e.BaseControl.VisualLabel,null,Object(ke.__)("Poster image")),Object(je.createElement)(we.MediaUpload,{title:Object(ke.__)("Select poster image"),onSelect:function(e){l({poster:e.url})},allowedTypes:Op,render:e=>{let{open:t}=e;return Object(je.createElement)(_e.Button,{variant:"primary",onClick:t,ref:d,"aria-describedby":C},h?Object(ke.__)("Replace"):Object(ke.__)("Select"))}}),Object(je.createElement)("p",{id:C,hidden:!0},h?Object(ke.sprintf)(Object(ke.__)("The current poster image url is %s"),h):Object(ke.__)("There is no poster image currently selected")),!!h&&Object(je.createElement)(_e.Button,{onClick:function(){l({poster:void 0}),d.current.focus()},variant:"tertiary"},Object(ke.__)("Remove")))))),Object(je.createElement)("figure",E,Object(je.createElement)(_e.Disabled,{isDisabled:!n},Object(je.createElement)("video",{controls:g,poster:h,src:v,ref:m},Object(je.createElement)(hp,{tracks:O}))),j&&Object(je.createElement)(_e.Spinner,null),(!we.RichText.isEmpty(p)||n)&&Object(je.createElement)(we.RichText,{tagName:"figcaption","aria-label":Object(ke.__)("Video caption text"),placeholder:Object(ke.__)("Add caption"),value:p,onChange:e=>l({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>c(Object(Oe.createBlock)("core/paragraph"))})))}));var yp={from:[{type:"files",isMatch:e=>1===e.length&&0===e[0].type.indexOf("video/"),transform(e){const t=e[0];return Object(Oe.createBlock)("core/video",{src:Object(Pe.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:e=>{let{named:{src:t,mp4:n,m4v:r,webm:o,ogv:a,flv:l}}=e;return t||n||r||o||a||l}},poster:{type:"string",shortcode:e=>{let{named:{poster:t}}=e;return t}},loop:{type:"string",shortcode:e=>{let{named:{loop:t}}=e;return t}},autoplay:{type:"string",shortcode:e=>{let{named:{autoplay:t}}=e;return t}},preload:{type:"string",shortcode:e=>{let{named:{preload:t}}=e;return t}}}}]};const fp={apiVersion:2,name:"core/video",title:"Video",category:"media",description:"Embed a video from your media library or upload a new one.",keywords:["movie"],textdomain:"default",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number"},loop:{type:"boolean",source:"attribute",selector:"video",attribute:"loop"},muted:{type:"boolean",source:"attribute",selector:"video",attribute:"muted"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},preload:{type:"string",source:"attribute",selector:"video",attribute:"preload",default:"metadata"},src:{type:"string",source:"attribute",selector:"video",attribute:"src"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"},tracks:{type:"array",items:{type:"object"},default:[]}},supports:{anchor:!0,align:!0},editorStyle:"wp-block-video-editor",style:"wp-block-video"},{name:_p}=fp,kp={icon:ap,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm",caption:Object(ke.__)("Wood thrush singing in Central Park, NYC.")}},transforms:yp,edit:jp,save:function(e){let{attributes:t}=e;const{autoplay:n,caption:r,controls:o,loop:a,muted:l,poster:c,preload:i,src:s,playsInline:u,tracks:m}=t;return Object(je.createElement)("figure",we.useBlockProps.save(),s&&Object(je.createElement)("video",{autoPlay:n,controls:o,loop:a,muted:l,poster:c,preload:"metadata"!==i?i:void 0,src:s,playsInline:u},Object(je.createElement)(hp,{tracks:m})),!we.RichText.isEmpty(r)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",value:r}))}},Ep=e=>{if(!e)return;const{metadata:t,settings:n,name:r}=e;Object(Oe.registerBlockType)({name:r,...t},n)},Cp=()=>[I,y,O,h,k,X,r,o,a,l,c,i,window.wp&&window.wp.oldEditor?s:null,u,m,d,b,p,g,v,j,f,_,w,E,C,x,S,B,T,N,z,P,M,R,L,V,A,H,F,D,G,q,U,W,$,Z,K,J,Q,Y,ee,te,ne,re,oe,ae,le,ce,ie,se,ue,me,de,be,pe,ge,he,ve],xp=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cp();e.forEach(Ep),Object(Oe.setDefaultBlockName)(Fi),window.wp&&window.wp.oldEditor&&Object(Oe.setFreeformContentHandlerName)(Zt),Object(Oe.setUnregisteredTypeHandlerName)(ql),Object(Oe.setGroupingBlockName)(Qo)},Sp=void 0},K9lf:function(e,t){e.exports=window.wp.compose},KEfo:function(e,t){e.exports=window.wp.viewport},Mmq9:function(e,t){e.exports=window.wp.url},Mp0b:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"}));t.a=a},NMb1:function(e,t){e.exports=window.wp.deprecated},NTP4:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=a},OE6V:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));t.a=a},OzlF:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));t.a=a},RMJe:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));t.a=a},RxS6:function(e,t){e.exports=window.wp.keycodes},TSYQ:function(e,t,n){var r; +e.exports=function(){"use strict";function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var l,c=e[Symbol.iterator]();!(r=(l=c.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}return function(){function n(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n)}var r,o,a;return r=n,(o=[{key:"getColorAsync",value:function(e,t,n){e.complete?t.call(e,this.getColor(e,n),n&&n.data):this._bindImageEvents(e,t,n)}},{key:"getColor",value:function(e,t){t=t||{};var n=this._getDefaultColor(t),r=this._getOriginalSize(e),o=this._prepareSizeAndPosition(r,t),a=null,l=n;if(!(o.srcWidth&&o.srcHeight&&o.destWidth&&o.destHeight))return this._prepareResult(n,new Error("FastAverageColor: Incorrect sizes."));if(!this._ctx&&(this._canvas=this._makeCanvas(),this._ctx=this._canvas.getContext&&this._canvas.getContext("2d"),!this._ctx))return this._prepareResult(n,new Error("FastAverageColor: Canvas Context 2D is not supported in this browser."));this._canvas.width=o.destWidth,this._canvas.height=o.destHeight;try{this._ctx.clearRect(0,0,o.destWidth,o.destHeight),this._ctx.drawImage(e,o.srcLeft,o.srcTop,o.srcWidth,o.srcHeight,0,0,o.destWidth,o.destHeight);var c=this._ctx.getImageData(0,0,o.destWidth,o.destHeight).data;l=this.getColorFromArray4(c,t)}catch(e){a=e}return this._prepareResult(l,a)}},{key:"getColorFromArray4",value:function(e,t){t=t||{};var n=e.length;if(n<4)return this._getDefaultColor(t);var r=n-n%4,o=4*(t.step||1),a="_"+(t.algorithm||"sqrt")+"Algorithm";if("function"!=typeof this[a])throw new Error("FastAverageColor: ".concat(t.algorithm," is unknown algorithm."));return this[a](e,r,o)}},{key:"destroy",value:function(){delete this._canvas,delete this._ctx}},{key:"_getDefaultColor",value:function(e){return this._getOption(e,"defaultColor",[255,255,255,255])}},{key:"_getOption",value:function(e,t,n){return void 0===e[t]?n:e[t]}},{key:"_prepareSizeAndPosition",value:function(e,t){var n,r=this._getOption(t,"left",0),o=this._getOption(t,"top",0),a=this._getOption(t,"width",e.width),l=this._getOption(t,"height",e.height),c=a,i=l;return"precision"===t.mode||(a>l?(n=a/l,c=100,i=Math.round(c/n)):(n=l/a,i=100,c=Math.round(i/n)),(c>a||i>l||c<10||i<10)&&(c=a,i=l)),{srcLeft:r,srcTop:o,srcWidth:a,srcHeight:l,destWidth:c,destHeight:i}}},{key:"_simpleAlgorithm",value:function(e,t,n){for(var r=0,o=0,a=0,l=0,c=0,i=0;i<t;i+=n){var s=e[i+3];r+=e[i]*s,o+=e[i+1]*s,a+=e[i+2]*s,l+=s,c++}return l?[Math.round(r/l),Math.round(o/l),Math.round(a/l),Math.round(l/c)]:[0,0,0,0]}},{key:"_sqrtAlgorithm",value:function(e,t,n){for(var r=0,o=0,a=0,l=0,c=0,i=0;i<t;i+=n){var s=e[i],u=e[i+1],m=e[i+2],d=e[i+3];r+=s*s*d,o+=u*u*d,a+=m*m*d,l+=d,c++}return l?[Math.round(Math.sqrt(r/l)),Math.round(Math.sqrt(o/l)),Math.round(Math.sqrt(a/l)),Math.round(l/c)]:[0,0,0,0]}},{key:"_dominantAlgorithm",value:function(e,n,r){for(var o={},a=0;a<n;a+=r){var l=e[a],c=e[a+1],i=e[a+2],s=e[a+3],u=Math.round(l/24)+","+Math.round(c/24)+","+Math.round(i/24);o[u]?o[u]=[o[u][0]+l*s,o[u][1]+c*s,o[u][2]+i*s,o[u][3]+s,o[u][4]+1]:o[u]=[l*s,c*s,i*s,s,1]}var m=t(Object.keys(o).map((function(e){return o[e]})).sort((function(e,t){var n=e[4],r=t[4];return n>r?-1:n===r?0:1}))[0],5),d=m[0],b=m[1],p=m[2],g=m[3],h=m[4];return g?[Math.round(d/g),Math.round(b/g),Math.round(p/g),Math.round(g/h)]:[0,0,0,0]}},{key:"_bindImageEvents",value:function(e,t,n){var r=this,o=(n=n||{})&&n.data,a=this._getDefaultColor(n),l=function(){s(),t.call(e,r.getColor(e,n),o)},c=function(){s(),t.call(e,r._prepareResult(a,new Error("Image error")),o)},i=function(){s(),t.call(e,r._prepareResult(a,new Error("Image abort")),o)},s=function(){e.removeEventListener("load",l),e.removeEventListener("error",c),e.removeEventListener("abort",i)};e.addEventListener("load",l),e.addEventListener("error",c),e.addEventListener("abort",i)}},{key:"_prepareResult",value:function(e,t){var n=e.slice(0,3),r=[].concat(n,e[3]/255),o=this._isDark(e);return{error:t,value:e,rgb:"rgb("+n.join(",")+")",rgba:"rgba("+r.join(",")+")",hex:this._arrayToHex(n),hexa:this._arrayToHex(e),isDark:o,isLight:!o}}},{key:"_getOriginalSize",value:function(e){return e instanceof HTMLImageElement?{width:e.naturalWidth,height:e.naturalHeight}:e instanceof HTMLVideoElement?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}},{key:"_toHex",value:function(e){var t=e.toString(16);return 1===t.length?"0"+t:t}},{key:"_arrayToHex",value:function(e){return"#"+e.map(this._toHex).join("")}},{key:"_isDark",value:function(e){return(299*e[0]+587*e[1]+114*e[2])/1e3<128}},{key:"_makeCanvas",value:function(){return"undefined"==typeof window?new OffscreenCanvas(1,1):document.createElement("canvas")}}])&&e(r.prototype,o),a&&e(r,a),n}()}()},FqII:function(e,t){e.exports=window.wp.date},G8mJ:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));t.a=a},GRId:function(e,t){e.exports=window.wp.element},HSyU:function(e,t){e.exports=window.wp.blocks},JREk:function(e,t){e.exports=window.wp.serverSideRender},K51g:function(e,t,n){"use strict";n.r(t),n.d(t,"__experimentalGetCoreBlocks",(function(){return Bp})),n.d(t,"registerCoreBlocks",(function(){return Tp})),n.d(t,"__experimentalRegisterExperimentalCoreBlocks",(function(){return Np}));var r={};n.r(r),n.d(r,"metadata",(function(){return xe})),n.d(r,"name",(function(){return Se})),n.d(r,"settings",(function(){return Be}));var o={};n.r(o),n.d(o,"metadata",(function(){return Je})),n.d(o,"name",(function(){return Qe})),n.d(o,"settings",(function(){return Ye}));var a={};n.r(a),n.d(a,"metadata",(function(){return vt})),n.d(a,"name",(function(){return Ot})),n.d(a,"settings",(function(){return jt}));var l={};n.r(l),n.d(l,"metadata",(function(){return St})),n.d(l,"name",(function(){return Bt})),n.d(l,"settings",(function(){return Tt}));var c={};n.r(c),n.d(c,"metadata",(function(){return Rt})),n.d(c,"name",(function(){return Lt})),n.d(c,"settings",(function(){return Vt}));var i={};n.r(i),n.d(i,"metadata",(function(){return Ft})),n.d(i,"name",(function(){return Dt})),n.d(i,"settings",(function(){return Gt}));var s={};n.r(s),n.d(s,"metadata",(function(){return $t})),n.d(s,"name",(function(){return Zt})),n.d(s,"settings",(function(){return Kt}));var u={};n.r(u),n.d(u,"metadata",(function(){return en})),n.d(u,"name",(function(){return tn})),n.d(u,"settings",(function(){return nn}));var m={};n.r(m),n.d(m,"metadata",(function(){return ln})),n.d(m,"name",(function(){return cn})),n.d(m,"settings",(function(){return sn}));var d={};n.r(d),n.d(d,"metadata",(function(){return En})),n.d(d,"name",(function(){return Cn})),n.d(d,"settings",(function(){return xn}));var b={};n.r(b),n.d(b,"metadata",(function(){return Yn})),n.d(b,"name",(function(){return Xn})),n.d(b,"settings",(function(){return er}));var p={};n.r(p),n.d(p,"metadata",(function(){return Rr})),n.d(p,"name",(function(){return Lr})),n.d(p,"settings",(function(){return Vr}));var g={};n.r(g),n.d(g,"metadata",(function(){return Qr})),n.d(g,"name",(function(){return Yr})),n.d(g,"settings",(function(){return Xr}));var h={};n.r(h),n.d(h,"metadata",(function(){return Fo})),n.d(h,"name",(function(){return Do})),n.d(h,"settings",(function(){return Go}));var v={};n.r(v),n.d(v,"metadata",(function(){return Jo})),n.d(v,"name",(function(){return Qo})),n.d(v,"settings",(function(){return Yo}));var O={};n.r(O),n.d(O,"metadata",(function(){return va})),n.d(O,"name",(function(){return Oa})),n.d(O,"settings",(function(){return ja}));var j={};n.r(j),n.d(j,"metadata",(function(){return _a})),n.d(j,"name",(function(){return ka})),n.d(j,"settings",(function(){return wa}));var y={};n.r(y),n.d(y,"metadata",(function(){return La})),n.d(y,"name",(function(){return Va})),n.d(y,"settings",(function(){return Aa}));var f={};n.r(f),n.d(f,"metadata",(function(){return Fa})),n.d(f,"name",(function(){return Da})),n.d(f,"settings",(function(){return Ga}));var _={};n.r(_),n.d(_,"metadata",(function(){return Ya})),n.d(_,"name",(function(){return Xa})),n.d(_,"settings",(function(){return el}));var k={};n.r(k),n.d(k,"metadata",(function(){return bl})),n.d(k,"name",(function(){return pl})),n.d(k,"settings",(function(){return gl}));var w={};n.r(w),n.d(w,"metadata",(function(){return vl})),n.d(w,"name",(function(){return Ol})),n.d(w,"settings",(function(){return jl}));var E={};n.r(E),n.d(E,"metadata",(function(){return Vl})),n.d(E,"name",(function(){return Al})),n.d(E,"settings",(function(){return Hl}));var C={};n.r(C),n.d(C,"metadata",(function(){return Gl})),n.d(C,"name",(function(){return ql})),n.d(C,"settings",(function(){return Ul}));var x={};n.r(x),n.d(x,"metadata",(function(){return Kl})),n.d(x,"name",(function(){return Jl})),n.d(x,"settings",(function(){return Ql}));var S={};n.r(S),n.d(S,"metadata",(function(){return Lc})),n.d(S,"name",(function(){return Vc})),n.d(S,"settings",(function(){return Ac}));var B={};n.r(B),n.d(B,"metadata",(function(){return ei})),n.d(B,"name",(function(){return ti})),n.d(B,"settings",(function(){return ni}));var T={};n.r(T),n.d(T,"metadata",(function(){return mi})),n.d(T,"name",(function(){return di})),n.d(T,"settings",(function(){return bi}));var N={};n.r(N),n.d(N,"metadata",(function(){return hi})),n.d(N,"name",(function(){return vi})),n.d(N,"settings",(function(){return Oi}));var P={};n.r(P),n.d(P,"metadata",(function(){return yi})),n.d(P,"name",(function(){return fi})),n.d(P,"settings",(function(){return _i}));var z={};n.r(z),n.d(z,"metadata",(function(){return Ti})),n.d(z,"name",(function(){return Ni})),n.d(z,"settings",(function(){return Pi}));var I={};n.r(I),n.d(I,"metadata",(function(){return Gi})),n.d(I,"name",(function(){return qi})),n.d(I,"settings",(function(){return Ui}));var M={};n.r(M),n.d(M,"metadata",(function(){return Zi})),n.d(M,"name",(function(){return Ki})),n.d(M,"settings",(function(){return Ji}));var R={};n.r(R),n.d(R,"metadata",(function(){return Xi})),n.d(R,"name",(function(){return es})),n.d(R,"settings",(function(){return ts}));var L={};n.r(L),n.d(L,"metadata",(function(){return ss})),n.d(L,"name",(function(){return us})),n.d(L,"settings",(function(){return ms}));var V={};n.r(V),n.d(V,"metadata",(function(){return ps})),n.d(V,"name",(function(){return gs})),n.d(V,"settings",(function(){return hs}));var A={};n.r(A),n.d(A,"metadata",(function(){return Os})),n.d(A,"name",(function(){return js})),n.d(A,"settings",(function(){return ys}));var H={};n.r(H),n.d(H,"metadata",(function(){return Bs})),n.d(H,"name",(function(){return Ts})),n.d(H,"settings",(function(){return Ns}));var F={};n.r(F),n.d(F,"metadata",(function(){return Rs})),n.d(F,"name",(function(){return Ls})),n.d(F,"settings",(function(){return Vs}));var D={};n.r(D),n.d(D,"metadata",(function(){return Ds})),n.d(D,"name",(function(){return Gs})),n.d(D,"settings",(function(){return qs}));var G={};n.r(G),n.d(G,"metadata",(function(){return $s})),n.d(G,"name",(function(){return Zs})),n.d(G,"settings",(function(){return Ks}));var q={};n.r(q),n.d(q,"metadata",(function(){return Qs})),n.d(q,"name",(function(){return Ys})),n.d(q,"settings",(function(){return Xs}));var U={};n.r(U),n.d(U,"metadata",(function(){return nu})),n.d(U,"name",(function(){return ru})),n.d(U,"settings",(function(){return ou}));var W={};n.r(W),n.d(W,"metadata",(function(){return mu})),n.d(W,"name",(function(){return du})),n.d(W,"settings",(function(){return bu}));var $={};n.r($),n.d($,"metadata",(function(){return Iu})),n.d($,"name",(function(){return Mu})),n.d($,"settings",(function(){return Ru}));var Z={};n.r(Z),n.d(Z,"metadata",(function(){return Fu})),n.d(Z,"name",(function(){return Du})),n.d(Z,"settings",(function(){return Gu}));var K={};n.r(K),n.d(K,"metadata",(function(){return Wu})),n.d(K,"name",(function(){return $u})),n.d(K,"settings",(function(){return Zu}));var J={};n.r(J),n.d(J,"metadata",(function(){return Qu})),n.d(J,"name",(function(){return Yu})),n.d(J,"settings",(function(){return Xu}));var Q={};n.r(Q),n.d(Q,"metadata",(function(){return nm})),n.d(Q,"name",(function(){return rm})),n.d(Q,"settings",(function(){return om}));var Y={};n.r(Y),n.d(Y,"metadata",(function(){return um})),n.d(Y,"name",(function(){return mm})),n.d(Y,"settings",(function(){return dm}));var X={};n.r(X),n.d(X,"metadata",(function(){return Om})),n.d(X,"name",(function(){return jm})),n.d(X,"settings",(function(){return ym}));var ee={};n.r(ee),n.d(ee,"metadata",(function(){return wm})),n.d(ee,"name",(function(){return Em})),n.d(ee,"settings",(function(){return Cm}));var te={};n.r(te),n.d(te,"metadata",(function(){return Sm})),n.d(te,"name",(function(){return Bm})),n.d(te,"settings",(function(){return Tm}));var ne={};n.r(ne),n.d(ne,"metadata",(function(){return Vm})),n.d(ne,"name",(function(){return Am})),n.d(ne,"settings",(function(){return Hm}));var re={};n.r(re),n.d(re,"metadata",(function(){return Um})),n.d(re,"name",(function(){return Wm})),n.d(re,"settings",(function(){return $m}));var oe={};n.r(oe),n.d(oe,"metadata",(function(){return Qm})),n.d(oe,"name",(function(){return Ym})),n.d(oe,"settings",(function(){return Xm}));var ae={};n.r(ae),n.d(ae,"metadata",(function(){return rd})),n.d(ae,"name",(function(){return od})),n.d(ae,"settings",(function(){return ad}));var le={};n.r(le),n.d(le,"metadata",(function(){return id})),n.d(le,"name",(function(){return sd})),n.d(le,"settings",(function(){return ud}));var ce={};n.r(ce),n.d(ce,"metadata",(function(){return gd})),n.d(ce,"name",(function(){return hd})),n.d(ce,"settings",(function(){return vd}));var ie={};n.r(ie),n.d(ie,"metadata",(function(){return Ed})),n.d(ie,"name",(function(){return Cd})),n.d(ie,"settings",(function(){return xd}));var se={};n.r(se),n.d(se,"metadata",(function(){return Id})),n.d(se,"name",(function(){return Md})),n.d(se,"settings",(function(){return Rd}));var ue={};n.r(ue),n.d(ue,"metadata",(function(){return Ad})),n.d(ue,"name",(function(){return Hd})),n.d(ue,"settings",(function(){return Fd}));var me={};n.r(me),n.d(me,"metadata",(function(){return gb})),n.d(me,"name",(function(){return hb})),n.d(me,"settings",(function(){return vb}));var de={};n.r(de),n.d(de,"metadata",(function(){return jb})),n.d(de,"name",(function(){return yb})),n.d(de,"settings",(function(){return fb}));var be={};n.r(be),n.d(be,"metadata",(function(){return Gb})),n.d(be,"name",(function(){return qb})),n.d(be,"settings",(function(){return Ub}));var pe={};n.r(pe),n.d(pe,"metadata",(function(){return $b})),n.d(pe,"name",(function(){return Zb})),n.d(pe,"settings",(function(){return Kb}));var ge={};n.r(ge),n.d(ge,"metadata",(function(){return Xb})),n.d(ge,"name",(function(){return ep})),n.d(ge,"settings",(function(){return tp}));var he={};n.r(he),n.d(he,"metadata",(function(){return ap})),n.d(he,"name",(function(){return lp})),n.d(he,"settings",(function(){return cp}));var ve={};n.r(ve),n.d(ve,"metadata",(function(){return Ep})),n.d(ve,"name",(function(){return Cp})),n.d(ve,"settings",(function(){return xp}));var Oe=n("HSyU"),je=n("GRId"),ye=n("Tqx9");var fe=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5zM8 12.8h8v-1.5H8v1.5zm0 3h8v-1.5H8v1.5z"})),_e=n("tI+e"),ke=n("l3Sj"),we=n("axFQ"),Ee=n("JREk"),Ce=n.n(Ee);const xe={apiVersion:2,name:"core/archives",title:"Archives",category:"widgets",description:"Display a monthly archive of your posts.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,html:!1},editorStyle:"wp-block-archives-editor"},{name:Se}=xe,Be={icon:fe,example:{},edit:function(e){let{attributes:t,setAttributes:n}=e;const{showPostCounts:r,displayAsDropdown:o}=t;return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Archives settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Display as dropdown"),checked:o,onChange:()=>n({displayAsDropdown:!o})}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Show post counts"),checked:r,onChange:()=>n({showPostCounts:!r})}))),Object(je.createElement)("div",Object(we.useBlockProps)(),Object(je.createElement)(_e.Disabled,null,Object(je.createElement)(Ce.a,{block:"core/archives",attributes:t}))))}};var Te=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.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"})),Ne=[{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(e){let{attributes:t}=e;const{autoplay:n,caption:r,loop:o,preload:a,src:l}=t;return Object(je.createElement)("figure",null,Object(je.createElement)("audio",{controls:"controls",src:l,autoPlay:n,loop:o,preload:a}),!we.RichText.isEmpty(r)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",value:r}))}}],Pe=n("xTGt"),ze=n("1ZqX");const Ie=[{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"}];var Me=n("YLtl"),Re=n("A/WM"),Le=n.n(Re),Ve=n("4eJC"),Ae=n.n(Ve);const{name:He}={apiVersion:2,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1},previewable:{type:"boolean",default:!0}},supports:{align:!0},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},Fe=e=>{var t;return null===(t=Object(Oe.getBlockVariations)(He))||void 0===t?void 0:t.find(t=>{let{patterns:n}=t;return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.some(t=>e.match(t))}(e,n)})},De=e=>e&&e.includes('class="wp-embedded-content"'),Ge=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{preview:r,attributes:o={}}=e,{url:a,providerNameSlug:l,type:c,...i}=o;if(!a||!Object(Oe.getBlockType)(He))return;const s=Fe(a),u="wordpress"===l||"wp-embed"===c,m=!u&&s&&(s.attributes.providerNameSlug!==l||!l);if(m)return Object(Oe.createBlock)(He,{url:a,...i,...s.attributes});const d=null===(t=Object(Oe.getBlockVariations)(He))||void 0===t?void 0:t.find(e=>{let{name:t}=e;return"wordpress"===t});return d&&r&&De(r.html)&&!u?Object(Oe.createBlock)(He,{url:a,...d.attributes,...n}):void 0},qe=e=>{if(!e)return e;const t=Ie.reduce((e,t)=>{let{className:n}=t;return e[n]=!1,e},{"wp-has-aspect-ratio":!1});return Le()(e,t)};function Ue(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!n)return qe(t);const r=document.implementation.createHTMLDocument("");r.body.innerHTML=e;const o=r.body.querySelector("iframe");if(o&&o.height&&o.width){const e=(o.width/o.height).toFixed(2);for(let n=0;n<Ie.length;n++){const r=Ie[n];if(e>=r.ratio){return e-r.ratio>.1?qe(t):Le()(qe(t),r.className,"wp-has-aspect-ratio")}}}return t}const We=Ae()((function(e,t,n,r){let o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!e)return{};const a={};let{type:l="rich"}=e;const{html:c,provider_name:i}=e,s=Object(Me.kebabCase)((i||t).toLowerCase());return De(c)&&(l="wp-embed"),(c||"photo"===l)&&(a.type=l,a.providerNameSlug=s),a.className=Ue(c,n,r&&o),a})),$e=["audio"];var Ze=Object(_e.withNotices)((function(e){let{attributes:t,noticeOperations:n,setAttributes:r,onReplace:o,isSelected:a,noticeUI:l,insertBlocksAfter:c}=e;const{id:i,autoplay:s,caption:u,loop:m,preload:d,src:b}=t,p=Object(we.useBlockProps)(),g=Object(ze.useSelect)(e=>{const{getSettings:t}=e(we.store);return t().mediaUpload},[]);function h(e){return t=>{r({[e]:t})}}function v(e){if(e!==b){const t=Ge({attributes:{url:e}});if(void 0!==t)return void o(t);r({src:e,id:void 0})}}function O(e){n.removeAllNotices(),n.createErrorNotice(e)}function j(e){e&&e.url?r({src:e.url,id:e.id}):r({src:void 0,id:void 0})}return Object(je.useEffect)(()=>{if(!i&&Object(Pe.isBlobURL)(b)){const e=Object(Pe.getBlobByURL)(b);e&&g({filesList:[e],onFileChange:e=>{let[{id:t,url:n}]=e;r({id:t,src:n})},onError:e=>{r({src:void 0,id:void 0}),n.createErrorNotice(e)},allowedTypes:$e})}},[]),b?Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"other"},Object(je.createElement)(we.MediaReplaceFlow,{mediaId:i,mediaURL:b,allowedTypes:$e,accept:"audio/*",onSelect:j,onSelectURL:v,onError:O})),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Audio settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Autoplay"),onChange:h("autoplay"),checked:s,help:function(e){return e?Object(ke.__)("Autoplay may cause usability issues for some users."):null}}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Loop"),onChange:h("loop"),checked:m}),Object(je.createElement)(_e.SelectControl,{label:Object(ke._x)("Preload","noun; Audio block parameter"),value:d||"",onChange:e=>r({preload:e||void 0}),options:[{value:"",label:Object(ke.__)("Browser default")},{value:"auto",label:Object(ke.__)("Auto")},{value:"metadata",label:Object(ke.__)("Metadata")},{value:"none",label:Object(ke._x)("None",'"Preload" value')}]}))),Object(je.createElement)("figure",p,Object(je.createElement)(_e.Disabled,{isDisabled:!a},Object(je.createElement)("audio",{controls:"controls",src:b})),(!we.RichText.isEmpty(u)||a)&&Object(je.createElement)(we.RichText,{tagName:"figcaption","aria-label":Object(ke.__)("Audio caption text"),placeholder:Object(ke.__)("Add caption"),value:u,onChange:e=>r({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>c(Object(Oe.createBlock)("core/paragraph"))}))):Object(je.createElement)("div",p,Object(je.createElement)(we.MediaPlaceholder,{icon:Object(je.createElement)(we.BlockIcon,{icon:Te}),onSelect:j,onSelectURL:v,accept:"audio/*",allowedTypes:$e,value:t,notices:l,onError:O}))}));var Ke={from:[{type:"files",isMatch:e=>1===e.length&&0===e[0].type.indexOf("audio/"),transform(e){const t=e[0];return Object(Oe.createBlock)("core/audio",{src:Object(Pe.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:e=>{let{named:{src:t,mp3:n,m4a:r,ogg:o,wav:a,wma:l}}=e;return t||n||r||o||a||l}},loop:{type:"string",shortcode:e=>{let{named:{loop:t}}=e;return t}},autoplay:{type:"string",shortcode:e=>{let{named:{autoplay:t}}=e;return t}},preload:{type:"string",shortcode:e=>{let{named:{preload:t}}=e;return t}}}}]};const Je={apiVersion:2,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"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{anchor:!0,align:!0},editorStyle:"wp-block-audio-editor",style:"wp-block-audio"},{name:Qe}=Je,Ye={icon:Te,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"}},transforms:Ke,deprecated:Ne,edit:Ze,save:function(e){let{attributes:t}=e;const{autoplay:n,caption:r,loop:o,preload:a,src:l}=t;return l&&Object(je.createElement)("figure",we.useBlockProps.save(),Object(je.createElement)("audio",{controls:"controls",src:l,autoPlay:n,loop:o,preload:a}),!we.RichText.isEmpty(r)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",value:r}))}};var Xe=n("oMoS"),et=n("TSYQ"),tt=n.n(et),nt=n("K9lf");const rt=e=>{if(!Object(Me.isObject)(e)||Array.isArray(e))return e;const t=Object(Me.pickBy)(Object(Me.mapValues)(e,rt),Me.identity);return Object(Me.isEmpty)(t)?void 0:t};var ot=rt,at=function(e){var t,n;if(null==e||null===(t=e.style)||void 0===t||null===(n=t.typography)||void 0===n||!n.fontFamily)return e;const r=Object(Me.cloneDeep)(e),o=r.style.typography.fontFamily.split("|").pop();return delete r.style.typography.fontFamily,r.style=ot(r.style),{...r,fontFamily:o}};const lt=e=>{var t,n,r;const{borderRadius:o,...a}=e,l=[o,null===(t=a.style)||void 0===t||null===(n=t.border)||void 0===n?void 0:n.radius].find(e=>"number"==typeof e&&0!==e);return l?{...a,style:{...a.style,border:{...null===(r=a.style)||void 0===r?void 0:r.border,radius:l+"px"}}}:a},ct=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;const t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient),{...Object(Me.omit)(e,["customTextColor","customBackgroundColor","customGradient"]),style:t}},it=e=>ct(Object(Me.omit)({...e,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0},["color","textColor"])),st={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"}};var ut=[{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(e){var t,n;let{attributes:r,className:o}=e;const{fontSize:a,linkTarget:l,rel:c,style:i,text:s,title:u,url:m,width:d}=r;if(!s)return null;const b=Object(we.__experimentalGetBorderClassesAndStyles)(r),p=Object(we.__experimentalGetColorClassesAndStyles)(r),g=Object(we.__experimentalGetSpacingClassesAndStyles)(r),h=tt()("wp-block-button__link",p.className,b.className,{"no-border-radius":0===(null==i||null===(t=i.border)||void 0===t?void 0:t.radius)}),v={...b.style,...p.style,...g.style},O=tt()(o,{["has-custom-width wp-block-button__width-"+d]:d,"has-custom-font-size":a||(null==i||null===(n=i.typography)||void 0===n?void 0:n.fontSize)});return Object(je.createElement)("div",we.useBlockProps.save({className:O}),Object(je.createElement)(we.RichText.Content,{tagName:"a",className:h,href:m,title:u,style:v,value:s,target:l,rel:c}))},migrate:at,isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}},{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:{...st,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(e){var t;let{style:n}=e;return"number"==typeof(null==n||null===(t=n.border)||void 0===t?void 0:t.radius)},save(e){var t,n,r;let{attributes:o,className:a}=e;const{fontSize:l,linkTarget:c,rel:i,style:s,text:u,title:m,url:d,width:b}=o;if(!u)return null;const p=null==s||null===(t=s.border)||void 0===t?void 0:t.radius,g=Object(we.__experimentalGetColorClassesAndStyles)(o),h=tt()("wp-block-button__link",g.className,{"no-border-radius":0===(null==s||null===(n=s.border)||void 0===n?void 0:n.radius)}),v={borderRadius:p||void 0,...g.style},O=tt()(a,{["has-custom-width wp-block-button__width-"+b]:b,"has-custom-font-size":l||(null==s||null===(r=s.typography)||void 0===r?void 0:r.fontSize)});return Object(je.createElement)("div",we.useBlockProps.save({className:O}),Object(je.createElement)(we.RichText.Content,{tagName:"a",className:h,href:d,title:m,style:v,value:u,target:c,rel:i}))},migrate:Object(nt.compose)(at,lt)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...st,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(e){let{attributes:t,className:n}=e;const{borderRadius:r,linkTarget:o,rel:a,text:l,title:c,url:i,width:s}=t,u=Object(we.__experimentalGetColorClassesAndStyles)(t),m=tt()("wp-block-button__link",u.className,{"no-border-radius":0===r}),d={borderRadius:r?r+"px":void 0,...u.style},b=tt()(n,{["has-custom-width wp-block-button__width-"+s]:s});return Object(je.createElement)("div",we.useBlockProps.save({className:b}),Object(je.createElement)(we.RichText.Content,{tagName:"a",className:m,href:i,title:c,style:d,value:l,target:o,rel:a}))},migrate:Object(nt.compose)(at,lt)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...st,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(e){let{attributes:t,className:n}=e;const{borderRadius:r,linkTarget:o,rel:a,text:l,title:c,url:i,width:s}=t,u=Object(we.__experimentalGetColorClassesAndStyles)(t),m=tt()("wp-block-button__link",u.className,{"no-border-radius":0===r}),d={borderRadius:r?r+"px":void 0,...u.style},b=tt()(n,{["has-custom-width wp-block-button__width-"+s]:s});return Object(je.createElement)("div",we.useBlockProps.save({className:b}),Object(je.createElement)(we.RichText.Content,{tagName:"a",className:m,href:i,title:c,style:d,value:l,target:o,rel:a}))},migrate:Object(nt.compose)(at,lt)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...st,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(e){let{attributes:t}=e;const{borderRadius:n,linkTarget:r,rel:o,text:a,title:l,url:c}=t,i=tt()("wp-block-button__link",{"no-border-radius":0===n}),s={borderRadius:n?n+"px":void 0};return Object(je.createElement)(we.RichText.Content,{tagName:"a",className:i,href:c,title:l,style:s,value:a,target:r,rel:o})},migrate:lt},{supports:{align:!0,alignWide:!1},attributes:{...st,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,migrate:Object(nt.compose)(lt,ct),save(e){let{attributes:t}=e;const{backgroundColor:n,borderRadius:r,customBackgroundColor:o,customTextColor:a,customGradient:l,linkTarget:c,gradient:i,rel:s,text:u,textColor:m,title:d,url:b}=t,p=Object(we.getColorClassName)("color",m),g=!l&&Object(we.getColorClassName)("background-color",n),h=Object(we.__experimentalGetGradientClass)(i),v=tt()("wp-block-button__link",{"has-text-color":m||a,[p]:p,"has-background":n||o||l||i,[g]:g,"no-border-radius":0===r,[h]:h}),O={background:l||void 0,backgroundColor:g||l||i?void 0:o,color:p?void 0:a,borderRadius:r?r+"px":void 0};return Object(je.createElement)("div",null,Object(je.createElement)(we.RichText.Content,{tagName:"a",className:v,href:b,title:d,style:O,value:u,target:c,rel:s}))}},{attributes:{...st,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=>e.className&&e.className.includes("is-style-squared"),migrate(e){let t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),lt(ct({...e,className:t||void 0,borderRadius:0}))},save(e){let{attributes:t}=e;const{backgroundColor:n,customBackgroundColor:r,customTextColor:o,linkTarget:a,rel:l,text:c,textColor:i,title:s,url:u}=t,m=Object(we.getColorClassName)("color",i),d=Object(we.getColorClassName)("background-color",n),b=tt()("wp-block-button__link",{"has-text-color":i||o,[m]:m,"has-background":n||r,[d]:d}),p={backgroundColor:d?void 0:r,color:m?void 0:o};return Object(je.createElement)("div",null,Object(je.createElement)(we.RichText.Content,{tagName:"a",className:b,href:u,title:s,style:p,value:c,target:a,rel:l}))}},{attributes:{...st,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:it,save(e){let{attributes:t}=e;const{url:n,text:r,title:o,backgroundColor:a,textColor:l,customBackgroundColor:c,customTextColor:i}=t,s=Object(we.getColorClassName)("color",l),u=Object(we.getColorClassName)("background-color",a),m=tt()("wp-block-button__link",{"has-text-color":l||i,[s]:s,"has-background":a||c,[u]:u}),d={backgroundColor:u?void 0:c,color:s?void 0:i};return Object(je.createElement)("div",null,Object(je.createElement)(we.RichText.Content,{tagName:"a",className:m,href:n,title:o,style:d,value:r}))}},{attributes:{...st,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save(e){let{attributes:t}=e;const{url:n,text:r,title:o,align:a,color:l,textColor:c}=t,i={backgroundColor:l,color:c};return Object(je.createElement)("div",{className:"align"+a},Object(je.createElement)(we.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:n,title:o,style:i,value:r}))},migrate:it},{attributes:{...st,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save(e){let{attributes:t}=e;const{url:n,text:r,title:o,align:a,color:l,textColor:c}=t;return Object(je.createElement)("div",{className:"align"+a,style:{backgroundColor:l}},Object(je.createElement)(we.RichText.Content,{tagName:"a",href:n,title:o,style:{color:c},value:r}))},migrate:it}],mt=n("wx14"),dt=n("RxS6"),bt=n("Bpkj"),pt=n("Mp0b");function gt(e){let{selectedWidth:t,setAttributes:n}=e;return Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Width settings")},Object(je.createElement)(_e.ButtonGroup,{"aria-label":Object(ke.__)("Button width")},[25,50,75,100].map(e=>Object(je.createElement)(_e.Button,{key:e,isSmall:!0,variant:e===t?"primary":void 0,onClick:()=>{var r;n({width:t===(r=e)?void 0:r})}},e,"%"))))}var ht=function(e){var t;const{attributes:n,setAttributes:r,className:o,isSelected:a,onReplace:l,mergeBlocks:c}=e,{linkTarget:i,placeholder:s,rel:u,style:m,text:d,url:b,width:p}=n,g=Object(je.useCallback)(e=>{r({rel:e})},[r]),h=Object(we.__experimentalUseBorderProps)(n),v=Object(we.__experimentalUseColorProps)(n),O=Object(we.__experimentalGetSpacingClassesAndStyles)(n),j=Object(je.useRef)(),y=Object(je.useRef)(),f=Object(we.useBlockProps)({ref:j,onKeyDown:function(e){if(dt.isKeyboardEvent.primary(e,"k"))C(e);else if(dt.isKeyboardEvent.primaryShift(e,"k")){var t;x(),null===(t=y.current)||void 0===t||t.focus()}}}),[_,k]=Object(je.useState)(!1),w=!!b,E="_blank"===i;function C(e){e.preventDefault(),k(!0)}function x(){r({url:void 0,linkTarget:void 0,rel:void 0}),k(!1)}return Object(je.useEffect)(()=>{a||k(!1)},[a]),Object(je.createElement)(je.Fragment,null,Object(je.createElement)("div",Object(mt.a)({},f,{className:tt()(f.className,{["has-custom-width wp-block-button__width-"+p]:p,"has-custom-font-size":f.style.fontSize})}),Object(je.createElement)(we.RichText,{ref:y,"aria-label":Object(ke.__)("Button text"),placeholder:s||Object(ke.__)("Add text…"),value:d,onChange:e=>{r({text:e.replace(/<\/?a[^>]*>/g,"")})},withoutInteractiveFormatting:!0,className:tt()(o,"wp-block-button__link",v.className,h.className,{"no-border-radius":0===(null==m||null===(t=m.border)||void 0===t?void 0:t.radius)}),style:{...h.style,...v.style,...O.style},onSplit:e=>Object(Oe.createBlock)("core/button",{...n,text:e}),onReplace:l,onMerge:c,identifier:"text"})),Object(je.createElement)(we.BlockControls,{group:"block"},!w&&Object(je.createElement)(_e.ToolbarButton,{name:"link",icon:bt.a,title:Object(ke.__)("Link"),shortcut:dt.displayShortcut.primary("k"),onClick:C}),w&&Object(je.createElement)(_e.ToolbarButton,{name:"link",icon:pt.a,title:Object(ke.__)("Unlink"),shortcut:dt.displayShortcut.primaryShift("k"),onClick:x,isActive:!0})),a&&(_||w)&&Object(je.createElement)(_e.Popover,{position:"bottom center",onClose:()=>{var e;k(!1),null===(e=y.current)||void 0===e||e.focus()},anchorRef:null==j?void 0:j.current,focusOnMount:!!_&&"firstElement"},Object(je.createElement)(we.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:{url:b,opensInNewTab:E},onChange:e=>{let{url:t="",opensInNewTab:n}=e;r({url:t}),E!==n&&function(e){const t=e?"_blank":void 0;let n=u;t&&!u?n="noreferrer noopener":t||"noreferrer noopener"!==u||(n=void 0),r({linkTarget:t,rel:n})}(n)},onRemove:()=>{var e;x(),null===(e=y.current)||void 0===e||e.focus()},forceIsEditingLink:_})),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(gt,{selectedWidth:p,setAttributes:r})),Object(je.createElement)(we.InspectorControls,{__experimentalGroup:"advanced"},Object(je.createElement)(_e.TextControl,{label:Object(ke.__)("Link rel"),value:u||"",onChange:g})))};const vt={apiVersion:2,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:{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,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".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:Ot}=vt,jt={icon:Xe.a,example:{attributes:{className:"is-style-fill",text:Object(ke.__)("Call to Action")}},edit:ht,save:function(e){var t,n;let{attributes:r,className:o}=e;const{fontSize:a,linkTarget:l,rel:c,style:i,text:s,title:u,url:m,width:d}=r;if(!s)return null;const b=Object(we.__experimentalGetBorderClassesAndStyles)(r),p=Object(we.__experimentalGetColorClassesAndStyles)(r),g=Object(we.__experimentalGetSpacingClassesAndStyles)(r),h=tt()("wp-block-button__link",p.className,b.className,{"no-border-radius":0===(null==i||null===(t=i.border)||void 0===t?void 0:t.radius)}),v={...b.style,...p.style,...g.style},O=tt()(o,{["has-custom-width wp-block-button__width-"+d]:d,"has-custom-font-size":a||(null==i||null===(n=i.typography)||void 0===n?void 0:n.fontSize)});return Object(je.createElement)("div",we.useBlockProps.save({className:O}),Object(je.createElement)(we.RichText.Content,{tagName:"a",className:h,href:m,title:u,style:v,value:s,target:l,rel:c}))},deprecated:ut,merge:(e,t)=>{let{text:n=""}=t;return{...e,text:(e.text||"")+n}}};var yt=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M17 3H7c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V5c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4zm-8-1.2h5V6.2h-5v1.6zM17 13H7c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4zm-8-1.2h5v-1.5h-5v1.5z"}));const ft=e=>{if(e.layout)return e;const{contentJustification:t,orientation:n,...r}=e;return(t||n)&&Object.assign(r,{layout:{type:"flex",...t&&{justifyContent:t},...n&&{orientation:n}}}),r};var _t=[{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:e=>{let{contentJustification:t,orientation:n}=e;return!!t||!!n},migrate:ft,save(e){let{attributes:{contentJustification:t,orientation:n}}=e;return Object(je.createElement)("div",we.useBlockProps.save({className:tt()({["is-content-justification-"+t]:t,"is-vertical":"vertical"===n})}),Object(je.createElement)(we.InnerBlocks.Content,null))}},{supports:{align:["center","left","right"],anchor:!0},save:()=>Object(je.createElement)("div",null,Object(je.createElement)(we.InnerBlocks.Content,null)),isEligible(e){let{align:t}=e;return t&&["center","left","right"].includes(t)},migrate:e=>ft({...e,align:void 0,contentJustification:e.align})}],kt=n("qRz9");const{name:wt}={apiVersion:2,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"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},__experimentalLayout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"};var Et={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>Object(Oe.createBlock)(wt,{},e.map(e=>Object(Oe.createBlock)("core/button",e)))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>Object(Oe.createBlock)(wt,{},e.map(e=>{const t=Object(kt.__unstableCreateElement)(document,e.content),n=t.innerText||"",r=t.querySelector("a"),o=null==r?void 0:r.getAttribute("href");return Object(Oe.createBlock)("core/button",{text:n,url:o})})),isMatch:e=>e.every(e=>{const t=Object(kt.__unstableCreateElement)(document,e.content),n=t.innerText||"",r=t.querySelectorAll("a");return n.length<=30&&r.length<=1})}]};const Ct=[Ot];var xt=function(e){let{attributes:{layout:t={}}}=e;const n=Object(we.useBlockProps)(),r=Object(ze.useSelect)(e=>{var t;const n=e(we.store).getSettings().__experimentalPreferredStyleVariations;return null==n||null===(t=n.value)||void 0===t?void 0:t[Ot]},[]),o=Object(we.useInnerBlocksProps)(n,{allowedBlocks:Ct,template:[[Ot,{className:r&&"is-style-"+r}]],__experimentalLayout:t,templateInsertUpdatesSelection:!0});return Object(je.createElement)(je.Fragment,null,Object(je.createElement)("div",o))};const St={apiVersion:2,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"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},__experimentalLayout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},{name:Bt}=St,Tt={icon:yt,example:{innerBlocks:[{name:"core/button",attributes:{text:Object(ke.__)("Find out more")}},{name:"core/button",attributes:{text:Object(ke.__)("Contact us")}}]},deprecated:_t,transforms:Et,edit:xt,save:function(){const e=we.useInnerBlocksProps.save(we.useBlockProps.save());return Object(je.createElement)("div",e)}};var Nt=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.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"})),Pt=n("wy2R"),zt=n.n(Pt),It=n("jZUy");const Mt=Ae()(e=>{if(!e)return{};const t=zt()(e);return{year:t.year(),month:t.month()+1}});const Rt={apiVersion:2,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},style:"wp-block-calendar"},{name:Lt}=Rt,Vt={icon:Nt,example:{},edit:function(e){let{attributes:t}=e;const n=Object(we.useBlockProps)(),{date:r,hasPosts:o,hasPostsResolved:a}=Object(ze.useSelect)(e=>{const{getEntityRecords:t,hasFinishedResolution:n}=e(It.store),r={status:"publish",per_page:1},o=t("postType","post",r),a=n("getEntityRecords",["postType","post",r]);let l;const c=e("core/editor");if(c){"post"===c.getEditedPostAttribute("type")&&(l=c.getEditedPostAttribute("date"))}return{date:l,hasPostsResolved:a,hasPosts:a&&1===(null==o?void 0:o.length)}},[]);return o?Object(je.createElement)("div",n,Object(je.createElement)(_e.Disabled,null,Object(je.createElement)(Ce.a,{block:"core/calendar",attributes:{...t,...Mt(r)}}))):Object(je.createElement)("div",n,Object(je.createElement)(_e.Placeholder,{icon:Nt,label:Object(ke.__)("Calendar")},a?Object(ke.__)("No published posts found."):Object(je.createElement)(_e.Spinner,null)))}};var At=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.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"}));var Ht=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(je.createElement)(ye.Path,{d:"M10.44 3.02l1.82-1.82 6.36 6.35-1.83 1.82c-1.05-.68-2.48-.57-3.41.36l-.75.75c-.92.93-1.04 2.35-.35 3.41l-1.83 1.82-2.41-2.41-2.8 2.79c-.42.42-3.38 2.71-3.8 2.29s1.86-3.39 2.28-3.81l2.79-2.79L4.1 9.36l1.83-1.82c1.05.69 2.48.57 3.4-.36l.75-.75c.93-.92 1.05-2.35.36-3.41z"}));const Ft={apiVersion:2,name:"core/categories",title:"Categories",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}},supports:{align:!0,html:!1},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"},{name:Dt}=Ft,Gt={icon:At,example:{},edit:function e(t){let{attributes:{displayAsDropdown:n,showHierarchy:r,showPostCounts:o,showOnlyTopLevel:a},setAttributes:l}=t;const c=Object(nt.useInstanceId)(e,"blocks-category-select"),{categories:i,isRequesting:s}=Object(ze.useSelect)(e=>{const{getEntityRecords:t,isResolving:n}=e(It.store),r={per_page:-1,hide_empty:!0,context:"view"};return a&&(r.parent=0),{categories:t("taxonomy","category",r),isRequesting:n("getEntityRecords",["taxonomy","category",r])}},[a]),u=e=>null!=i&&i.length?null===e?i:i.filter(t=>{let{parent:n}=t;return n===e}):[],m=e=>"wp-block-categories__list wp-block-categories__list-level-"+e,d=e=>t=>l({[e]:t}),b=e=>e?Object(Me.unescape)(e).trim():Object(ke.__)("(Untitled)"),p=(e,t)=>{const n=u(e.id),{id:a,link:l,count:c,name:i}=e;return Object(je.createElement)("li",{key:a},Object(je.createElement)("a",{href:l,target:"_blank",rel:"noreferrer noopener"},b(i)),o&&Object(je.createElement)("span",{className:"wp-block-categories__post-count"},` (${c})`),r&&!!n.length&&Object(je.createElement)("ul",{className:m(t+1)},n.map(e=>p(e,t+1))))},g=(e,t)=>{const{id:n,count:a,name:l}=e,c=u(n);return[Object(je.createElement)("option",{key:n},Object(Me.times)(3*t,()=>" "),b(l),o&&` (${a})`),r&&!!c.length&&c.map(e=>g(e,t+1))]};return Object(je.createElement)("div",Object(we.useBlockProps)(),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Categories settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Display as dropdown"),checked:n,onChange:d("displayAsDropdown")}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Show post counts"),checked:o,onChange:d("showPostCounts")}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Show only top level categories"),checked:a,onChange:d("showOnlyTopLevel")}),!a&&Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Show hierarchy"),checked:r,onChange:d("showHierarchy")}))),s&&Object(je.createElement)(_e.Placeholder,{icon:Ht,label:Object(ke.__)("Categories")},Object(je.createElement)(_e.Spinner,null)),!s&&0===(null==i?void 0:i.length)&&Object(je.createElement)("p",null,Object(ke.__)("Your site does not have any posts, so there is nothing to display here at the moment.")),!s&&(null==i?void 0:i.length)>0&&(n?(()=>{const e=u(r?0:null);return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.VisuallyHidden,{as:"label",htmlFor:c},Object(ke.__)("Categories")),Object(je.createElement)("select",{id:c,className:"wp-block-categories__dropdown"},e.map(e=>g(e,0))))})():(()=>{const e=u(r?0:null);return Object(je.createElement)("ul",{className:m(0)},e.map(e=>p(e,0)))})()))}};var qt=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.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 Ut=e=>{let{clientId:t}=e;const{replaceBlocks:n}=Object(ze.useDispatch)(we.store),r=Object(ze.useSelect)(e=>e(we.store).getBlock(t),[t]);return Object(je.createElement)(_e.ToolbarButton,{onClick:()=>n(r.clientId,Object(Oe.rawHandler)({HTML:Object(Oe.serialize)(r)}))},Object(ke.__)("Convert to blocks"))};const{wp:Wt}=window;const $t={apiVersion:2,name:"core/freeform",title:"Classic",category:"text",description:"Use the classic WordPress editor.",textdomain:"default",attributes:{content:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,reusable:!1},editorStyle:"wp-block-freeform-editor"},{name:Zt}=$t,Kt={icon:qt,edit:function(e){let{clientId:t,attributes:{content:n},setAttributes:r,onReplace:o}=e;const{getMultiSelectedBlockClientIds:a}=Object(ze.useSelect)(we.store),l=Object(je.useRef)(!1);return Object(je.useEffect)(()=>{if(!l.current)return;const e=window.tinymce.get("editor-"+t);(null==e?void 0:e.getContent())!==n&&e.setContent(n||"")},[n]),Object(je.useEffect)(()=>{const{baseURL:e,suffix:c}=window.wpEditorL10n.tinymce;function i(e){let t;n&&e.on("loadContent",()=>e.setContent(n)),e.on("blur",()=>{var n;t=e.selection.getBookmark(2,!0);const o=document.querySelector(".interface-interface-skeleton__content"),l=o.scrollTop;return null!==(n=a())&&void 0!==n&&n.length||r({content:e.getContent()}),e.once("focus",()=>{t&&(e.selection.moveToBookmark(t),o.scrollTop!==l&&(o.scrollTop=l))}),!1}),e.on("mousedown touchstart",()=>{t=null});const l=Object(Me.debounce)(()=>{const t=e.getContent();t!==e._lastChange&&(e._lastChange=t,r({content:t}))},250);e.on("Paste Change input Undo Redo",l),e.on("remove",l.cancel),e.on("keydown",t=>{dt.isKeyboardEvent.primary(t,"z")&&t.stopPropagation(),t.keyCode!==dt.BACKSPACE&&t.keyCode!==dt.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===dt.F10&&t.stopPropagation()}),e.on("init",()=>{const t=e.getBody();t.ownerDocument.activeElement===t&&(t.blur(),e.focus())})}function s(){const{settings:e}=window.wpEditorL10n.tinymce;Wt.oldEditor.initialize("editor-"+t,{tinymce:{...e,inline:!0,content_css:!1,fixed_toolbar_container:"#toolbar-"+t,setup:i}})}function u(){"complete"===document.readyState&&s()}return l.current=!0,window.tinymce.EditorManager.overrideDefaults({base_url:e,suffix:c}),"complete"===document.readyState?s():document.addEventListener("readystatechange",u),()=>{document.removeEventListener("readystatechange",u),Wt.oldEditor.remove("editor-"+t)}},[]),Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(_e.ToolbarGroup,null,Object(je.createElement)(Ut,{clientId:t}))),Object(je.createElement)("div",Object(we.useBlockProps)(),Object(je.createElement)("div",{key:"toolbar",id:"toolbar-"+t,className:"block-library-classic__toolbar",onClick:function(){const e=window.tinymce.get("editor-"+t);e&&e.focus()},"data-placeholder":Object(ke.__)("Classic"),onKeyDown:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}}),Object(je.createElement)("div",{key:"editor",id:"editor-"+t,className:"wp-block-freeform block-library-rich-text__tinymce"})))},save:function(e){let{attributes:t}=e;const{content:n}=t;return Object(je.createElement)(je.RawHTML,null,n)}};var Jt=n("1Yn1");function Qt(e){return e.replace(/\[/g,"[")}function Yt(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}var Xt={from:[{type:"enter",regExp:/^```$/,transform:()=>Object(Oe.createBlock)("core/code")},{type:"block",blocks:["core/html"],transform:e=>{let{content:t}=e;return Object(Oe.createBlock)("core/code",{content:t})}},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName,schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]};const en={apiVersion:2,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:{anchor:!0,__experimentalSelector:".wp-block-code > code",typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:["top","bottom"],padding:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},color:{text:!0,background:!0,gradients:!0}},style:"wp-block-code"},{name:tn}=en,nn={icon:Jt.a,example:{attributes:{content:Object(ke.__)('// 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:Xt,edit:function(e){let{attributes:t,setAttributes:n,onRemove:r}=e;const o=Object(we.useBlockProps)();return Object(je.createElement)("pre",o,Object(je.createElement)(we.RichText,{tagName:"code",value:t.content,onChange:e=>n({content:e}),onRemove:r,placeholder:Object(ke.__)("Write code…"),"aria-label":Object(ke.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0}))},save:function(e){let{attributes:t}=e;return Object(je.createElement)("pre",we.useBlockProps.save(),Object(je.createElement)(we.RichText.Content,{tagName:"code",value:(n=t.content,Object(Me.flow)(Qt,Yt)(n||""))}));var n}};var rn=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"}));var on=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},isEligible(e){let{width:t}=e;return isFinite(t)},migrate:e=>({...e,width:e.width+"%"}),save(e){let{attributes:t}=e;const{verticalAlignment:n,width:r}=t,o=tt()({["is-vertically-aligned-"+n]:n}),a={flexBasis:r+"%"};return Object(je.createElement)("div",{className:o,style:a},Object(je.createElement)(we.InnerBlocks.Content,null))}}];var an=function(e){let{attributes:{verticalAlignment:t,width:n,templateLock:r=!1,allowedBlocks:o},setAttributes:a,clientId:l}=e;const c=tt()("block-core-columns",{["is-vertically-aligned-"+t]:t}),i=Object(_e.__experimentalUseCustomUnits)({availableUnits:Object(we.useSetting)("spacing.units")||["%","px","em","rem","vw"]}),{columnsIds:s,hasChildBlocks:u,rootClientId:m}=Object(ze.useSelect)(e=>{const{getBlockOrder:t,getBlockRootClientId:n}=e(we.store),r=n(l);return{hasChildBlocks:t(l).length>0,rootClientId:r,columnsIds:t(r)}},[l]),{updateBlockAttributes:d}=Object(ze.useDispatch)(we.store),b=Number.isFinite(n)?n+"%":n,p=Object(we.useBlockProps)({className:c,style:b?{flexBasis:b}:void 0}),g=s.length,h=s.indexOf(l)+1,v=Object(ke.sprintf)(Object(ke.__)("%1$s (%2$d of %3$d)"),p["aria-label"],h,g),O=Object(we.useInnerBlocksProps)({...p,"aria-label":v},{templateLock:r,allowedBlocks:o,renderAppender:u?void 0:we.InnerBlocks.ButtonBlockAppender});return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(we.BlockVerticalAlignmentToolbar,{onChange:e=>{a({verticalAlignment:e}),d(m,{verticalAlignment:null})},value:t})),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Column settings")},Object(je.createElement)(_e.__experimentalUnitControl,{label:Object(ke.__)("Width"),labelPosition:"edge",__unstableInputWidth:"80px",value:n||"",onChange:e=>{e=0>parseFloat(e)?"0":e,a({width:e})},units:i}))),Object(je.createElement)("div",O))};const ln={apiVersion:2,name:"core/column",title:"Column",category:"text",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",!1]}},supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}}}},{name:cn}=ln,sn={icon:rn,edit:an,save:function(e){let{attributes:t}=e;const{verticalAlignment:n,width:r}=t,o=tt()({["is-vertically-aligned-"+n]:n});let a;if(r&&/\d/.test(r)){let e=Number.isFinite(r)?r+"%":r;if(!Number.isFinite(r)&&null!=r&&r.endsWith("%")){const t=1e12;e=Math.round(Number.parseFloat(r)*t)/t+"%"}a={flexBasis:e}}const l=we.useBlockProps.save({className:o,style:a}),c=we.useInnerBlocksProps.save(l);return Object(je.createElement)("div",c)},deprecated:on};var un=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.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 mn(e){let t,{doc:n}=mn;n||(n=document.implementation.createHTMLDocument(""),mn.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 dn=[{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:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),{...Object(Me.omit)(e,["customTextColor","customBackgroundColor"]),style:t,isStackedOnMobile:!0}},save(e){let{attributes:t}=e;const{verticalAlignment:n,backgroundColor:r,customBackgroundColor:o,textColor:a,customTextColor:l}=t,c=Object(we.getColorClassName)("background-color",r),i=Object(we.getColorClassName)("color",a),s=tt()({"has-background":r||o,"has-text-color":a||l,[c]:c,[i]:i,["are-vertically-aligned-"+n]:n}),u={backgroundColor:c?void 0:o,color:i?void 0:l};return Object(je.createElement)("div",{className:s||void 0,style:u},Object(je.createElement)(we.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},isEligible:(e,t)=>!!t.some(e=>/layout-column-\d+/.test(e.originalContent))&&t.some(e=>void 0!==mn(e.originalContent)),migrate(e,t){const n=t.reduce((e,t)=>{const{originalContent:n}=t;let r=mn(n);return void 0===r&&(r=0),e[r]||(e[r]=[]),e[r].push(t),e},[]).map(e=>Object(Oe.createBlock)("core/column",{},e));return[{...Object(Me.omit)(e,["columns"]),isStackedOnMobile:!0},n]},save(e){let{attributes:t}=e;const{columns:n}=t;return Object(je.createElement)("div",{className:`has-${n}-columns`},Object(je.createElement)(we.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},migrate:(e,t)=>[e={...Object(Me.omit)(e,["columns"]),isStackedOnMobile:!0},t],save(e){let{attributes:t}=e;const{verticalAlignment:n,columns:r}=t,o=tt()(`has-${r}-columns`,{["are-vertically-aligned-"+n]:n});return Object(je.createElement)("div",{className:o},Object(je.createElement)(we.InnerBlocks.Content,null))}}];const bn=e=>{const t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function pn(e,t){const{width:n=100/t}=e.attributes;return bn(n)}function gn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return Object(Me.sumBy)(e,e=>pn(e,t))}function hn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return e.reduce((e,n)=>{const r=pn(n,t);return Object.assign(e,{[n.clientId]:r})},{})}function vn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;const r=gn(e,n);return Object(Me.mapValues)(hn(e,n),e=>bn(t*e/r))}function On(e,t){return e.map(e=>Object(Me.merge)({},e,{attributes:{width:t[e.clientId]+"%"}}))}const jn=["core/column"];const yn=Object(ze.withDispatch)((e,t,n)=>({updateAlignment(r){const{clientId:o,setAttributes:a}=t,{updateBlockAttributes:l}=e(we.store),{getBlockOrder:c}=n.select(we.store);a({verticalAlignment:r});c(o).forEach(e=>{l(e,{verticalAlignment:r})})},updateColumns(r,o){const{clientId:a}=t,{replaceInnerBlocks:l}=e(we.store),{getBlocks:c}=n.select(we.store);let i=c(a);const s=i.every(e=>{var t;const n=e.attributes.width;return Number.isFinite(null!=n&&null!==(t=n.endsWith)&&void 0!==t&&t.call(n,"%")?parseFloat(n):n)});const u=o>r;if(u&&s){const e=bn(100/o);i=[...On(i,vn(i,100-e)),...Object(Me.times)(o-r,()=>Object(Oe.createBlock)("core/column",{width:e+"%"}))]}else if(u)i=[...i,...Object(Me.times)(o-r,()=>Object(Oe.createBlock)("core/column"))];else if(i=Object(Me.dropRight)(i,r-o),s){i=On(i,vn(i,100))}l(a,i)}}))((function(e){let{attributes:t,setAttributes:n,updateAlignment:r,updateColumns:o,clientId:a}=e;const{isStackedOnMobile:l,verticalAlignment:c}=t,{count:i}=Object(ze.useSelect)(e=>({count:e(we.store).getBlockCount(a)}),[a]),s=tt()({["are-vertically-aligned-"+c]:c,"is-not-stacked-on-mobile":!l}),u=Object(we.useBlockProps)({className:s}),m=Object(we.useInnerBlocksProps)(u,{allowedBlocks:jn,orientation:"horizontal",renderAppender:!1});return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(we.BlockVerticalAlignmentToolbar,{onChange:r,value:c})),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,null,Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Columns"),value:i,onChange:e=>o(i,e),min:1,max:Math.max(6,i)}),i>6&&Object(je.createElement)(_e.Notice,{status:"warning",isDismissible:!1},Object(ke.__)("This column count exceeds the recommended amount and may cause visual breakage.")),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Stack on mobile"),checked:l,onChange:()=>n({isStackedOnMobile:!l})}))),Object(je.createElement)("div",m))}));function fn(e){let{clientId:t,name:n,setAttributes:r}=e;const{blockType:o,defaultVariation:a,variations:l}=Object(ze.useSelect)(e=>{const{getBlockVariations:t,getBlockType:r,getDefaultBlockVariation:o}=e(Oe.store);return{blockType:r(n),defaultVariation:o(n,"block"),variations:t(n,"block")}},[n]),{replaceInnerBlocks:c}=Object(ze.useDispatch)(we.store),i=Object(we.useBlockProps)();return Object(je.createElement)("div",i,Object(je.createElement)(we.__experimentalBlockVariationPicker,{icon:Object(Me.get)(o,["icon","src"]),label:Object(Me.get)(o,["title"]),variations:l,onSelect:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;e.attributes&&r(e.attributes),e.innerBlocks&&c(t,Object(Oe.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!0)},allowSkip:!0}))}var _n=e=>{const{clientId:t}=e,n=Object(ze.useSelect)(e=>e(we.store).getBlocks(t).length>0,[t])?yn:fn;return Object(je.createElement)(n,e)};var kn=[{name:"one-column-full",title:Object(ke.__)("100"),description:Object(ke.__)("One column"),icon:Object(je.createElement)(_e.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(_e.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m39.0625 14h-30.0625v20.0938h30.0625zm-30.0625-2c-1.10457 0-2 .8954-2 2v20.0938c0 1.1045.89543 2 2 2h30.0625c1.1046 0 2-.8955 2-2v-20.0938c0-1.1046-.8954-2-2-2z"})),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:Object(ke.__)("50 / 50"),description:Object(ke.__)("Two columns; equal split"),icon:Object(je.createElement)(_e.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(_e.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z"})),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:Object(ke.__)("30 / 70"),description:Object(ke.__)("Two columns; one-third, two-thirds split"),icon:Object(je.createElement)(_e.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(_e.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"})),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:Object(ke.__)("70 / 30"),description:Object(ke.__)("Two columns; two-thirds, one-third split"),icon:Object(je.createElement)(_e.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(_e.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"})),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:Object(ke.__)("33 / 33 / 33"),description:Object(ke.__)("Three columns; equal split"),icon:Object(je.createElement)(_e.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(_e.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"})),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:Object(ke.__)("25 / 50 / 25"),description:Object(ke.__)("Three columns; wide center column"),icon:Object(je.createElement)(_e.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(_e.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"]}];var wn={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{const t=+(100/e.length).toFixed(2),n=e.map(e=>{let{name:n,attributes:r,innerBlocks:o}=e;return["core/column",{width:t+"%"},[[n,{...r},o]]]});return Object(Oe.createBlock)("core/columns",{},Object(Oe.createBlocksFromInnerBlocksTemplate)(n))},isMatch:e=>{let{length:t}=e;return t&&t<=6}},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{const{align:n,backgroundColor:r,textColor:o,style:a,mediaAlt:l,mediaId:c,mediaPosition:i,mediaSizeSlug:s,mediaType:u,mediaUrl:m,mediaWidth:d,verticalAlignment:b}=e;let p;if("image"!==u&&u)p=["core/video",{id:c,src:m}];else{p=["core/image",{...{id:c,alt:l,url:m,sizeSlug:s},...{href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel}}]}const g=[["core/column",{width:d+"%"},[p]],["core/column",{width:100-d+"%"},t]];return"right"===i&&g.reverse(),Object(Oe.createBlock)("core/columns",{align:n,backgroundColor:r,textColor:o,style:a,verticalAlignment:b},Object(Oe.createBlocksFromInnerBlocksTemplate)(g))}}]};const En={apiVersion:2,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}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{blockGap:!0,margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{blockGap:!0}}},editorStyle:"wp-block-columns-editor",style:"wp-block-columns"},{name:Cn}=En,xn={icon:un,variations:kn,example:{viewportWidth:600,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(ke.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:Object(ke.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(ke.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:Object(ke.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:dn,edit:_n,save:function(e){let{attributes:t}=e;const{isStackedOnMobile:n,verticalAlignment:r}=t,o=tt()({["are-vertically-aligned-"+r]:r,"is-not-stacked-on-mobile":!n}),a=we.useBlockProps.save({className:o}),l=we.useInnerBlocksProps.save(a);return Object(je.createElement)("div",l)},transforms:wn};var Sn=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"}));const Bn={"top left":"is-position-top-left","top center":"is-position-top-center","top right":"is-position-top-right","center left":"is-position-center-left","center center":"is-position-center-center",center:"is-position-center-center","center right":"is-position-center-right","bottom left":"is-position-bottom-left","bottom center":"is-position-bottom-center","bottom right":"is-position-bottom-right"};function Tn(e){return e?{backgroundImage:`url(${e})`}:{}}const Nn=["image","video"];function Pn(e){return 50===e||void 0===!e?null:"has-background-dim-"+10*Math.round(e/10)}function zn(e){return!e||"center center"===e||"center"===e}function In(e){return zn(e)?"":Bn[e]}function Mn(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function Rn(e){return{...e,dimRatio:e.url?e.dimRatio:100}}const Ln={url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"}};var Vn=[{attributes:{...Ln,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""}},supports:{anchor:!0,align:!0,html:!1,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",text:!1,background:!1}},save(e){let{attributes:t}=e;const{backgroundType:n,gradient:r,contentPosition:o,customGradient:a,customOverlayColor:l,dimRatio:c,focalPoint:i,hasParallax:s,isRepeated:u,overlayColor:m,url:d,alt:b,id:p,minHeight:g,minHeightUnit:h}=t,v=Object(we.getColorClassName)("background-color",m),O=Object(we.__experimentalGetGradientClass)(r),j=h?`${g}${h}`:g,y="image"===n,f="video"===n,_=!(s||u),k={...y&&!_?Tn(d):{},backgroundColor:v?void 0:l,background:a&&!d?a:void 0,minHeight:j||void 0},w=i&&_?`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`:void 0,E=tt()(Mn(c),v,{"has-background-dim":0!==c,"has-parallax":s,"is-repeated":u,"has-background-gradient":r||a,[O]:!d&&O,"has-custom-content-position":!zn(o)},In(o));return Object(je.createElement)("div",we.useBlockProps.save({className:E,style:k}),d&&(r||a)&&0!==c&&Object(je.createElement)("span",{"aria-hidden":"true",className:tt()("wp-block-cover__gradient-background",O),style:a?{background:a}:void 0}),y&&_&&d&&Object(je.createElement)("img",{className:tt()("wp-block-cover__image-background",p?"wp-image-"+p:null),alt:b,src:d,style:{objectPosition:w},"data-object-fit":"cover","data-object-position":w}),f&&d&&Object(je.createElement)("video",{className:tt()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:w},"data-object-fit":"cover","data-object-position":w}),Object(je.createElement)("div",{className:"wp-block-cover__inner-container"},Object(je.createElement)(we.InnerBlocks.Content,null)))},migrate:Rn},{attributes:{...Ln,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{align:!0},save(e){let{attributes:t}=e;const{backgroundType:n,gradient:r,contentPosition:o,customGradient:a,customOverlayColor:l,dimRatio:c,focalPoint:i,hasParallax:s,isRepeated:u,overlayColor:m,url:d,minHeight:b,minHeightUnit:p}=t,g=Object(we.getColorClassName)("background-color",m),h=Object(we.__experimentalGetGradientClass)(r),v=p?`${b}${p}`:b,O="image"===n,j="video"===n,y=O?Tn(d):{},f={};let _;g||(y.backgroundColor=l),a&&!d&&(y.background=a),y.minHeight=v||void 0,i&&(_=`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`,O&&!s&&(y.backgroundPosition=_),j&&(f.objectPosition=_));const k=tt()(Mn(c),g,{"has-background-dim":0!==c,"has-parallax":s,"is-repeated":u,"has-background-gradient":r||a,[h]:!d&&h,"has-custom-content-position":!zn(o)},In(o));return Object(je.createElement)("div",we.useBlockProps.save({className:k,style:y}),d&&(r||a)&&0!==c&&Object(je.createElement)("span",{"aria-hidden":"true",className:tt()("wp-block-cover__gradient-background",h),style:a?{background:a}:void 0}),j&&d&&Object(je.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:f}),Object(je.createElement)("div",{className:"wp-block-cover__inner-container"},Object(je.createElement)(we.InnerBlocks.Content,null)))},migrate:Rn},{attributes:{...Ln,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save(e){let{attributes:t}=e;const{backgroundType:n,gradient:r,customGradient:o,customOverlayColor:a,dimRatio:l,focalPoint:c,hasParallax:i,overlayColor:s,url:u,minHeight:m}=t,d=Object(we.getColorClassName)("background-color",s),b=Object(we.__experimentalGetGradientClass)(r),p="image"===n?Tn(u):{};d||(p.backgroundColor=a),c&&!i&&(p.backgroundPosition=`${Math.round(100*c.x)}% ${Math.round(100*c.y)}%`),o&&!u&&(p.background=o),p.minHeight=m||void 0;const g=tt()(Mn(l),d,{"has-background-dim":0!==l,"has-parallax":i,"has-background-gradient":o,[b]:!u&&b});return Object(je.createElement)("div",{className:g,style:p},u&&(r||o)&&0!==l&&Object(je.createElement)("span",{"aria-hidden":"true",className:tt()("wp-block-cover__gradient-background",b),style:o?{background:o}:void 0}),"video"===n&&u&&Object(je.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),Object(je.createElement)("div",{className:"wp-block-cover__inner-container"},Object(je.createElement)(we.InnerBlocks.Content,null)))},migrate:Rn},{attributes:{...Ln,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save(e){let{attributes:t}=e;const{backgroundType:n,gradient:r,customGradient:o,customOverlayColor:a,dimRatio:l,focalPoint:c,hasParallax:i,overlayColor:s,url:u,minHeight:m}=t,d=Object(we.getColorClassName)("background-color",s),b=Object(we.__experimentalGetGradientClass)(r),p="image"===n?Tn(u):{};d||(p.backgroundColor=a),c&&!i&&(p.backgroundPosition=`${100*c.x}% ${100*c.y}%`),o&&!u&&(p.background=o),p.minHeight=m||void 0;const g=tt()(Mn(l),d,{"has-background-dim":0!==l,"has-parallax":i,"has-background-gradient":o,[b]:!u&&b});return Object(je.createElement)("div",{className:g,style:p},u&&(r||o)&&0!==l&&Object(je.createElement)("span",{"aria-hidden":"true",className:tt()("wp-block-cover__gradient-background",b),style:o?{background:o}:void 0}),"video"===n&&u&&Object(je.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),Object(je.createElement)("div",{className:"wp-block-cover__inner-container"},Object(je.createElement)(we.InnerBlocks.Content,null)))},migrate:Rn},{attributes:{...Ln,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}},supports:{align:!0},save(e){let{attributes:t}=e;const{backgroundType:n,contentAlign:r,customOverlayColor:o,dimRatio:a,focalPoint:l,hasParallax:c,overlayColor:i,title:s,url:u}=t,m=Object(we.getColorClassName)("background-color",i),d="image"===n?Tn(u):{};m||(d.backgroundColor=o),l&&!c&&(d.backgroundPosition=`${100*l.x}% ${100*l.y}%`);const b=tt()(Mn(a),m,{"has-background-dim":0!==a,"has-parallax":c,[`has-${r}-content`]:"center"!==r});return Object(je.createElement)("div",{className:b,style:d},"video"===n&&u&&Object(je.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),!we.RichText.isEmpty(s)&&Object(je.createElement)(we.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:s}))},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100};return[Object(Me.omit)(t,["title","contentAlign"]),[Object(Oe.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(ke.__)("Write title…")})]]}},{attributes:{...Ln,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},align:{type:"string"}},supports:{className:!1},save(e){let{attributes:t}=e;const{url:n,title:r,hasParallax:o,dimRatio:a,align:l,contentAlign:c,overlayColor:i,customOverlayColor:s}=t,u=Object(we.getColorClassName)("background-color",i),m=Tn(n);u||(m.backgroundColor=s);const d=tt()("wp-block-cover-image",Mn(a),u,{"has-background-dim":0!==a,"has-parallax":o,[`has-${c}-content`]:"center"!==c},l?"align"+l:null);return Object(je.createElement)("div",{className:d,style:m},!we.RichText.isEmpty(r)&&Object(je.createElement)(we.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:r}))},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100};return[Object(Me.omit)(t,["title","contentAlign","align"]),[Object(Oe.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(ke.__)("Write title…")})]]}},{attributes:{...Ln,title:{type:"string",source:"html",selector:"h2"},align:{type:"string"},contentAlign:{type:"string",default:"center"}},supports:{className:!1},save(e){let{attributes:t}=e;const{url:n,title:r,hasParallax:o,dimRatio:a,align:l}=t,c=Tn(n),i=tt()("wp-block-cover-image",Mn(a),{"has-background-dim":0!==a,"has-parallax":o},l?"align"+l:null);return Object(je.createElement)("section",{className:i,style:c},Object(je.createElement)(we.RichText.Content,{tagName:"h2",value:r}))},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100};return[Object(Me.omit)(t,["title","contentAlign","align"]),[Object(Oe.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(ke.__)("Write title…")})]]}}],An=n("FEKF"),Hn=n.n(An),Fn=n("fHnH"),Dn=n("abaT");Object(Fn.b)([Dn.a]);const{__Visualizer:Gn}=_e.__experimentalBoxControl;function qn(){return qn.fastAverageColor||(qn.fastAverageColor=new Hn.a),qn.fastAverageColor}function Un(e){let{onChange:t,onUnitChange:n,unit:r="px",value:o=""}=e;const[a,l]=Object(je.useState)(null),c="block-cover-height-input-"+Object(nt.useInstanceId)(we.__experimentalUnitControl),i="px"===r,s=Object(_e.__experimentalUseCustomUnits)({availableUnits:Object(we.useSetting)("spacing.units")||["px","em","rem","vw","vh"],defaultValues:{px:"430",em:"20",rem:"20",vw:"20",vh:"50"}}),u=null!==a?a:o,m=i?50:0;return Object(je.createElement)(_e.BaseControl,{label:Object(ke.__)("Minimum height of cover"),id:c},Object(je.createElement)(we.__experimentalUnitControl,{id:c,isResetValueOnUnitChange:!0,min:m,onBlur:()=>{null!==a&&l(null)},onChange:e=>{const r=""!==e?parseFloat(e):void 0;isNaN(r)&&void 0!==r?l(e):(l(null),t(r),void 0===r&&n())},onUnitChange:n,style:{maxWidth:80},unit:r,units:s,value:u}))}const Wn={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1};function $n(e){let{className:t,onResizeStart:n,onResize:r,onResizeStop:o,...a}=e;const[l,c]=Object(je.useState)(!1);return Object(je.createElement)(_e.ResizableBox,Object(mt.a)({className:tt()(t,{"is-resizing":l}),enable:Wn,onResizeStart:(e,t,o)=>{n(o.clientHeight),r(o.clientHeight)},onResize:(e,t,n)=>{r(n.clientHeight),l||c(!0)},onResizeStop:(e,t,n)=>{o(n.clientHeight),c(!1)}},a))}function Zn(e){let{x:t,y:n}=e;return`${Math.round(100*t)}% ${Math.round(100*n)}%`}function Kn(e){let{disableMediaButtons:t=!1,children:n,noticeUI:r,noticeOperations:o,onSelectMedia:a,style:l}=e;const{removeAllNotices:c,createErrorNotice:i}=o;return Object(je.createElement)(we.MediaPlaceholder,{icon:Object(je.createElement)(we.BlockIcon,{icon:Sn}),labels:{title:Object(ke.__)("Cover"),instructions:Object(ke.__)("Drag and drop onto this block, upload, or select existing media from your library.")},onSelect:a,accept:"image/*,video/*",allowedTypes:Nn,notices:r,disableMediaButtons:t,onError:e=>{c(),i(e)},style:l},n)}var Jn=Object(nt.compose)([Object(ze.withDispatch)(e=>{const{toggleSelection:t,__unstableMarkNextChangeAsNotPersistent:n}=e(we.store);return{toggleSelection:t,markNextChangeAsNotPersistent:n}}),Object(we.withColors)({overlayColor:"background-color"}),_e.withNotices,nt.withInstanceId])((function(e){var t,n,r;let{attributes:o,clientId:a,isSelected:l,noticeUI:c,noticeOperations:i,overlayColor:s,setAttributes:u,setOverlayColor:m,toggleSelection:d,markNextChangeAsNotPersistent:b}=e;const{contentPosition:p,id:g,backgroundType:h,dimRatio:v,focalPoint:O,hasParallax:j,isDark:y,isRepeated:f,minHeight:_,minHeightUnit:k,style:w,url:E,alt:C,allowedBlocks:x,templateLock:S}=o,{gradientClass:B,gradientValue:T,setGradient:N}=Object(we.__experimentalUseGradient)(),P=function(e,t){return n=>{if(!n||!n.url)return void e({url:void 0,id:void 0});let r;if(Object(Pe.isBlobURL)(n.url)&&(n.type=Object(Pe.getBlobTypeByURL)(n.url)),n.media_type)r="image"===n.media_type?"image":"video";else{if("image"!==n.type&&"video"!==n.type)return;r=n.type}e({dimRatio:100===t?50:t,url:n.url,id:n.id,alt:null==n?void 0:n.alt,backgroundType:r,..."video"===r?{focalPoint:void 0,hasParallax:void 0}:{}})}}(u,v),z=((e,t)=>!e&&Object(Pe.isBlobURL)(t))(g,E),[I,M]=Object(je.useState)(_),[R,L]=Object(je.useState)(k),V="vh"===k&&100===_,A=Object(je.useRef)(),H=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;const[o,a]=Object(je.useState)(!1);return Object(je.useEffect)(()=>{e&&t<=50&&r.current&&qn().getColorAsync(r.current,e=>{a(e.isDark)})},[e,e&&t<=50&&r.current,a]),Object(je.useEffect)(()=>{if(t>50||!e){if(!n)return void a(!0);a(Object(Fn.a)(n).isDark())}},[n,t>50||!e,a]),Object(je.useEffect)(()=>{e||n||a(!1)},[!e&&!n,a]),o}(E,v,s.color,A);Object(je.useEffect)(()=>{b(),u({isDark:H})},[H]);const F="image"===h,D="video"===h,[G,q]=Object(je.useState)(null),U=k?`${_}${k}`:_,W=!(j||f),$={...F&&!W?Tn(E):void 0,minHeight:G||U||void 0},Z={backgroundColor:s.color},K={objectPosition:O&&W?Zn(O):void 0},J=!!(E||s.color||T),Q=D||F&&(!j||f),Y=e=>{const[t,n]=A.current?[A.current.style,"objectPosition"]:[te.current.style,"backgroundPosition"];t[n]=Zn(e)},X=Object(ze.useSelect)(e=>e(we.store).getBlock(a).innerBlocks.length>0,[a]),ee=Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(we.__experimentalBlockAlignmentMatrixControl,{label:Object(ke.__)("Change content position"),value:p,onChange:e=>u({contentPosition:e}),isDisabled:!X}),Object(je.createElement)(we.__experimentalBlockFullHeightAligmentControl,{isActive:V,onToggle:()=>V?u("vh"===R&&100===I?{minHeight:void 0,minHeightUnit:void 0}:{minHeight:I,minHeightUnit:R}):(M(_),L(k),u({minHeight:100,minHeightUnit:"vh"})),isDisabled:!X})),Object(je.createElement)(we.BlockControls,{group:"other"},Object(je.createElement)(we.MediaReplaceFlow,{mediaId:g,mediaURL:E,allowedTypes:Nn,accept:"image/*,video/*",onSelect:P,name:E?Object(ke.__)("Replace"):Object(ke.__)("Add Media")})),Object(je.createElement)(we.InspectorControls,null,!!E&&Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Media settings")},F&&Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Fixed background"),checked:j,onChange:()=>{u({hasParallax:!j,...j?{}:{focalPoint:void 0}})}}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Repeated background"),checked:f,onChange:()=>{u({isRepeated:!f})}})),Q&&Object(je.createElement)(_e.FocalPointPicker,{label:Object(ke.__)("Focal point picker"),url:E,value:O,onDragStart:Y,onDrag:Y,onChange:e=>u({focalPoint:e})}),E&&F&&W&&Object(je.createElement)(_e.TextareaControl,{label:Object(ke.__)("Alt text (alternative text)"),value:C,onChange:e=>u({alt:e}),help:Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(ke.__)("Describe the purpose of the image")),Object(ke.__)("Leave empty if the image is purely decorative."))}),Object(je.createElement)(_e.PanelRow,null,Object(je.createElement)(_e.Button,{variant:"secondary",isSmall:!0,className:"block-library-cover__reset-button",onClick:()=>u({url:void 0,id:void 0,backgroundType:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0})},Object(ke.__)("Clear Media")))),Object(je.createElement)(we.__experimentalPanelColorGradientSettings,{__experimentalHasMultipleOrigins:!0,title:Object(ke.__)("Overlay"),initialOpen:!0,settings:[{colorValue:s.color,gradientValue:T,onColorChange:m,onGradientChange:N,label:Object(ke.__)("Color")}]},Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Opacity"),value:v,onChange:e=>u({dimRatio:e}),min:0,max:100,step:10,required:!0}))),Object(je.createElement)(we.InspectorControls,{__experimentalGroup:"dimensions"},Object(je.createElement)(_e.__experimentalToolsPanelItem,{hasValue:()=>!!_,label:Object(ke.__)("Minimum height"),onDeselect:()=>u({minHeight:void 0,minHeightUnit:void 0}),resetAllFilter:()=>({minHeight:void 0,minHeightUnit:void 0}),isShownByDefault:!0,panelId:a},Object(je.createElement)(Un,{value:G||_,unit:k,onChange:e=>u({minHeight:e}),onUnitChange:e=>u({minHeightUnit:e})})))),te=Object(je.useRef)(),ne=Object(we.useBlockProps)({ref:te}),re=function(e){return[["core/paragraph",{align:"center",placeholder:Object(ke.__)("Write title…"),...e}]]}({fontSize:!(null===(t=Object(we.useSetting)("typography.fontSizes"))||void 0===t||!t.length)?"large":void 0}),oe=Object(we.useInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:re,templateInsertUpdatesSelection:!0,allowedBlocks:x,templateLock:S});if(!X&&!J)return Object(je.createElement)(je.Fragment,null,ee,Object(je.createElement)("div",Object(mt.a)({},ne,{className:tt()("is-placeholder",ne.className)}),Object(je.createElement)(Kn,{noticeUI:c,onSelectMedia:P,noticeOperations:i,style:{minHeight:G||U||void 0}},Object(je.createElement)("div",{className:"wp-block-cover__placeholder-background-options"},Object(je.createElement)(we.ColorPalette,{disableCustomColors:!0,value:s.color,onChange:m,clearable:!1}))),Object(je.createElement)($n,{className:"block-library-cover__resize-container",onResizeStart:()=>{u({minHeightUnit:"px"}),d(!1)},onResize:q,onResizeStop:e=>{d(!0),u({minHeight:e}),q(null)},showHandle:l})));const ae=tt()({"is-dark-theme":y,"is-light":!y,"is-transient":z,"has-parallax":j,"is-repeated":f,"has-custom-content-position":!zn(p)},In(p));return Object(je.createElement)(je.Fragment,null,ee,Object(je.createElement)("div",Object(mt.a)({},ne,{className:tt()(ae,ne.className),style:{...$,...ne.style},"data-url":E}),Object(je.createElement)(Gn,{values:null==w||null===(n=w.spacing)||void 0===n?void 0:n.padding,showValues:null==w||null===(r=w.visualizers)||void 0===r?void 0:r.padding}),Object(je.createElement)($n,{className:"block-library-cover__resize-container",onResizeStart:()=>{u({minHeightUnit:"px"}),d(!1)},onResize:q,onResizeStop:e=>{d(!0),u({minHeight:e}),q(null)},showHandle:l}),Object(je.createElement)("span",{"aria-hidden":"true",className:tt()(Pn(v),{[s.class]:s.class},"wp-block-cover__gradient-background",B,{"has-background-dim":void 0!==v,"has-background-gradient":T,[B]:!E&&B}),style:{backgroundImage:T,...Z}}),E&&F&&W&&Object(je.createElement)("img",{ref:A,className:"wp-block-cover__image-background",alt:C,src:E,style:K}),E&&D&&Object(je.createElement)("video",{ref:A,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:E,style:K}),z&&Object(je.createElement)(_e.Spinner,null),Object(je.createElement)(Kn,{disableMediaButtons:!0,noticeUI:c,onSelectMedia:P,noticeOperations:i}),Object(je.createElement)("div",oe)))}));var Qn={from:[{type:"block",blocks:["core/image"],transform:e=>{var t;let{caption:n,url:r,alt:o,align:a,id:l,anchor:c,style:i}=e;return Object(Oe.createBlock)("core/cover",{dimRatio:50,url:r,alt:o,align:a,id:l,anchor:c,style:{color:{duotone:null==i||null===(t=i.color)||void 0===t?void 0:t.duotone}}},[Object(Oe.createBlock)("core/paragraph",{content:n,fontSize:"large"})])}},{type:"block",blocks:["core/video"],transform:e=>{let{caption:t,src:n,align:r,id:o,anchor:a}=e;return Object(Oe.createBlock)("core/cover",{dimRatio:50,url:n,align:r,id:o,backgroundType:"video",anchor:a},[Object(Oe.createBlock)("core/paragraph",{content:t,fontSize:"large"})])}},{type:"block",blocks:["core/group"],isMatch:e=>{var t,n;let{backgroundColor:r,gradient:o,style:a}=e;return r||(null==a||null===(t=a.color)||void 0===t?void 0:t.background)||(null==a||null===(n=a.color)||void 0===n?void 0:n.gradient)||o},transform:(e,t)=>{var n,r;let{align:o,anchor:a,backgroundColor:l,gradient:c,style:i}=e;return Object(Oe.createBlock)("core/cover",{align:o,anchor:a,overlayColor:l,customOverlayColor:null==i||null===(n=i.color)||void 0===n?void 0:n.background,gradient:c,customGradient:null==i||null===(r=i.color)||void 0===r?void 0:r.gradient},t)}}],to:[{type:"block",blocks:["core/image"],isMatch:e=>{let{backgroundType:t,url:n,overlayColor:r,customOverlayColor:o,gradient:a,customGradient:l}=e;return n?"image"===t:!(r||o||a||l)},transform:e=>{var t;let{title:n,url:r,alt:o,align:a,id:l,anchor:c,style:i}=e;return Object(Oe.createBlock)("core/image",{caption:n,url:r,alt:o,align:a,id:l,anchor:c,style:{color:{duotone:null==i||null===(t=i.color)||void 0===t?void 0:t.duotone}}})}},{type:"block",blocks:["core/video"],isMatch:e=>{let{backgroundType:t,url:n,overlayColor:r,customOverlayColor:o,gradient:a,customGradient:l}=e;return n?"video"===t:!(r||o||a||l)},transform:e=>{let{title:t,url:n,align:r,id:o,anchor:a}=e;return Object(Oe.createBlock)("core/video",{caption:t,src:n,id:o,align:r,anchor:a})}}]};const Yn={apiVersion:2,name:"core/cover",title:"Cover",category:"media",description:"Add an image or video with a text overlay — great for headers.",textdomain:"default",attributes:{url:{type:"string"},id:{type:"number"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:100},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},isDark:{type:"boolean",default:!0},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{anchor:!0,align:!0,html:!1,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",text:!1,background:!1}},editorStyle:"wp-block-cover-editor",style:"wp-block-cover"},{name:Xn}=Yn,er={icon:Sn,example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{customFontSize:48,content:Object(ke.__)("<strong>Snow Patrol</strong>"),align:"center"}}]},transforms:Qn,save:function(e){let{attributes:t}=e;const{backgroundType:n,gradient:r,contentPosition:o,customGradient:a,customOverlayColor:l,dimRatio:c,focalPoint:i,hasParallax:s,isDark:u,isRepeated:m,overlayColor:d,url:b,alt:p,id:g,minHeight:h,minHeightUnit:v}=t,O=Object(we.getColorClassName)("background-color",d),j=Object(we.__experimentalGetGradientClass)(r),y=v?`${h}${v}`:h,f="image"===n,_="video"===n,k=!(s||m),w={...f&&!k?Tn(b):{},minHeight:y||void 0},E={backgroundColor:O?void 0:l,background:a||void 0},C=i&&k?`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`:void 0,x=tt()({"is-light":!u,"has-parallax":s,"is-repeated":m,"has-custom-content-position":!zn(o)},In(o));return Object(je.createElement)("div",we.useBlockProps.save({className:x,style:w}),Object(je.createElement)("span",{"aria-hidden":"true",className:tt()(O,Pn(c),"wp-block-cover__gradient-background",j,{"has-background-dim":void 0!==c,"has-background-gradient":r||a,[j]:!b&&j}),style:E}),f&&k&&b&&Object(je.createElement)("img",{className:tt()("wp-block-cover__image-background",g?"wp-image-"+g:null),alt:p,src:b,style:{objectPosition:C},"data-object-fit":"cover","data-object-position":C}),_&&b&&Object(je.createElement)("video",{className:tt()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:b,style:{objectPosition:C},"data-object-fit":"cover","data-object-position":C}),Object(je.createElement)("div",we.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})))},edit:Jn,deprecated:Vn};var tr=n("B9Az");function nr(e){return e?Object(ke.__)("This embed will preserve its aspect ratio when the browser is resized."):Object(ke.__)("This embed may not preserve its aspect ratio when the browser is resized.")}var rr=e=>{let{blockSupportsResponsive:t,showEditButton:n,themeSupportsResponsive:r,allowResponsive:o,toggleResponsive:a,switchBackToURLInput:l}=e;return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(_e.ToolbarGroup,null,n&&Object(je.createElement)(_e.ToolbarButton,{className:"components-toolbar__control",label:Object(ke.__)("Edit URL"),icon:tr.a,onClick:l}))),r&&t&&Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Media settings"),className:"blocks-responsive"},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Resize for smaller devices"),checked:o,help:nr,onChange:a}))))};const or=Object(je.createElement)(_e.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(_e.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z"})),ar=Object(je.createElement)(_e.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(_e.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM13.2 7.7c-.4.4-.7 1.1-.7 1.9v3.7c-.4-.3-.8-.4-1.3-.4-1.2 0-2.2 1-2.2 2.2 0 1.2 1 2.2 2.2 2.2.5 0 1-.2 1.4-.5.9-.6 1.4-1.6 1.4-2.6V9.6c0-.4.1-.6.2-.8.3-.3 1-.3 1.6-.3h.2V7h-.2c-.7 0-1.8 0-2.6.7z"})),lr=Object(je.createElement)(_e.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(_e.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9.2 4.5H19c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V9.8l4.6-5.3zm9.8 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),cr=Object(je.createElement)(_e.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(_e.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM10 15l5-3-5-3v6z"})),ir={foreground:"#1da1f2",src:Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(_e.G,null,Object(je.createElement)(_e.Path,{d:"M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z"})))},sr={foreground:"#ff0000",src:Object(je.createElement)(_e.SVG,{viewBox:"0 0 24 24"},Object(je.createElement)(_e.Path,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"}))},ur={foreground:"#3b5998",src:Object(je.createElement)(_e.SVG,{viewBox:"0 0 24 24"},Object(je.createElement)(_e.Path,{d:"M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z"}))},mr=Object(je.createElement)(_e.SVG,{viewBox:"0 0 24 24"},Object(je.createElement)(_e.G,null,Object(je.createElement)(_e.Path,{d:"M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z"}))),dr={foreground:"#0073AA",src:Object(je.createElement)(_e.SVG,{viewBox:"0 0 24 24"},Object(je.createElement)(_e.G,null,Object(je.createElement)(_e.Path,{d:"M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z"})))},br={foreground:"#1db954",src:Object(je.createElement)(_e.SVG,{viewBox:"0 0 24 24"},Object(je.createElement)(_e.Path,{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325"}))},pr=Object(je.createElement)(_e.SVG,{viewBox:"0 0 24 24"},Object(je.createElement)(_e.Path,{d:"m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z"})),gr={foreground:"#1ab7ea",src:Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(_e.G,null,Object(je.createElement)(_e.Path,{d:"M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z"})))},hr=Object(je.createElement)(_e.SVG,{viewBox:"0 0 24 24"},Object(je.createElement)(_e.Path,{d:"M22 11.816c0-1.256-1.02-2.277-2.277-2.277-.593 0-1.122.24-1.526.613-1.48-.965-3.455-1.594-5.647-1.69l1.17-3.702 3.18.75c.01 1.027.847 1.86 1.877 1.86 1.035 0 1.877-.84 1.877-1.877 0-1.035-.842-1.877-1.877-1.877-.77 0-1.43.466-1.72 1.13L13.55 3.92c-.204-.047-.4.067-.46.26l-1.35 4.27c-2.317.037-4.412.67-5.97 1.67-.402-.355-.917-.58-1.493-.58C3.02 9.54 2 10.56 2 11.815c0 .814.433 1.523 1.078 1.925-.037.222-.06.445-.06.673 0 3.292 4.01 5.97 8.94 5.97s8.94-2.678 8.94-5.97c0-.214-.02-.424-.052-.632.687-.39 1.154-1.12 1.154-1.964zm-3.224-7.422c.606 0 1.1.493 1.1 1.1s-.493 1.1-1.1 1.1-1.1-.494-1.1-1.1.493-1.1 1.1-1.1zm-16 7.422c0-.827.673-1.5 1.5-1.5.313 0 .598.103.838.27-.85.675-1.477 1.478-1.812 2.36-.32-.274-.525-.676-.525-1.13zm9.183 7.79c-4.502 0-8.165-2.33-8.165-5.193S7.457 9.22 11.96 9.22s8.163 2.33 8.163 5.193-3.663 5.193-8.164 5.193zM20.635 13c-.326-.89-.948-1.7-1.797-2.383.247-.186.55-.3.882-.3.827 0 1.5.672 1.5 1.5 0 .482-.23.91-.586 1.184zm-11.64 1.704c-.76 0-1.397-.616-1.397-1.376 0-.76.636-1.397 1.396-1.397.76 0 1.376.638 1.376 1.398 0 .76-.616 1.376-1.376 1.376zm7.405-1.376c0 .76-.615 1.376-1.375 1.376s-1.4-.616-1.4-1.376c0-.76.64-1.397 1.4-1.397.76 0 1.376.638 1.376 1.398zm-1.17 3.38c.15.152.15.398 0 .55-.675.674-1.728 1.002-3.22 1.002l-.01-.002-.012.002c-1.492 0-2.544-.328-3.218-1.002-.152-.152-.152-.398 0-.55.152-.152.4-.15.55 0 .52.52 1.394.775 2.67.775l.01.002.01-.002c1.276 0 2.15-.253 2.67-.775.15-.152.398-.152.55 0z"})),vr={foreground:"#35465c",src:Object(je.createElement)(_e.SVG,{viewBox:"0 0 24 24"},Object(je.createElement)(_e.Path,{d:"M19 3H5a2 2 0 00-2 2v14c0 1.1.9 2 2 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-5.69 14.66c-2.72 0-3.1-1.9-3.1-3.16v-3.56H8.49V8.99c1.7-.62 2.54-1.99 2.64-2.87 0-.06.06-.41.06-.58h1.9v3.1h2.17v2.3h-2.18v3.1c0 .47.13 1.3 1.2 1.26h1.1v2.36c-1.01.02-2.07 0-2.07 0z"}))},Or=Object(je.createElement)(_e.SVG,{viewBox:"0 0 24 24"},Object(je.createElement)(_e.Path,{d:"M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z"}),Object(je.createElement)(_e.Path,{d:"M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z"}),Object(je.createElement)(_e.Path,{d:"M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z"})),jr=Object(je.createElement)(_e.SVG,{viewBox:"0 0 24 24"},Object(je.createElement)(_e.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),Object(je.createElement)(_e.Path,{d:"m23.7254 19.0205-10.1074-17.18468c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418h22.5655c1.279 0 1.8019-.8905 1.1599-1.9795z",fill:"#d4cdcb"}),Object(je.createElement)(_e.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),Object(je.createElement)(_e.Path,{d:"m13.618 1.83582c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418 15.2646-16.38573z",fill:"#e4ecb0"}),Object(je.createElement)(_e.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),Object(je.createElement)(_e.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})),yr=Object(je.createElement)(_e.SVG,{viewBox:"0 0 24 24"},Object(je.createElement)(_e.Path,{d:"m12.1479 18.5957c-2.4949 0-4.28131-1.7558-4.28131-4.0658 0-2.2176 1.78641-4.0965 4.09651-4.0965 2.2793 0 4.0349 1.7864 4.0349 4.1581 0 2.2794-1.7556 4.0042-3.8501 4.0042zm8.3521-18.5957-4.5329 1v7c-1.1088-1.41691-2.8028-1.8787-4.8049-1.8787-2.09443 0-3.97329.76993-5.5133 2.27917-1.72483 1.66323-2.6489 3.78863-2.6489 6.16033 0 2.5873.98562 4.8049 2.89526 6.499 1.44763 1.2936 3.17251 1.9402 5.17454 1.9402 1.9713 0 3.4498-.5236 4.8973-1.9402v1.9402h4.5329c0-7.6359 0-15.3641 0-23z",fill:"#333436"})),fr=Object(je.createElement)(_e.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(_e.Path,{d:"M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"})),_r=Object(je.createElement)(_e.SVG,{viewBox:"0 0 44 44"},Object(je.createElement)(_e.Path,{d:"M32.59521,22.001l4.31885-4.84473-6.34131-1.38379.646-6.459-5.94336,2.61035L22,6.31934l-3.27344,5.60351L12.78418,9.3125l.645,6.458L7.08643,17.15234,11.40479,21.999,7.08594,26.84375l6.34131,1.38379-.64551,6.458,5.94287-2.60938L22,37.68066l3.27344-5.60351,5.94287,2.61035-.64551-6.458,6.34277-1.38183Zm.44385,2.75244L30.772,23.97827l-1.59558-2.07391,1.97888.735Zm-8.82147,6.1579L22.75,33.424V30.88977l1.52228-2.22168ZM18.56226,13.48816,19.819,15.09534l-2.49219-.88642L15.94037,12.337Zm6.87719.00116,2.62043-1.15027-1.38654,1.86981L24.183,15.0946Zm3.59357,2.6029-1.22546,1.7381.07525-2.73486,1.44507-1.94867ZM22,29.33008l-2.16406-3.15686L22,23.23688l2.16406,2.93634Zm-4.25458-9.582-.10528-3.836,3.60986,1.284v3.73242Zm5.00458-2.552,3.60986-1.284-.10528,3.836L22.75,20.92853Zm-7.78174-1.10559-.29352-2.94263,1.44245,1.94739.07519,2.73321Zm2.30982,5.08319,3.50817,1.18164-2.16247,2.9342-3.678-1.08447Zm2.4486,7.49285L21.25,30.88977v2.53485L19.78052,30.91Zm3.48707-6.31121,3.50817-1.18164,2.33228,3.03137-3.678,1.08447Zm10.87219-4.28113-2.714,3.04529L28.16418,19.928l1.92176-2.72565ZM24.06036,12.81769l-2.06012,2.6322-2.059-2.63318L22,9.292ZM9.91455,18.07227l4.00079-.87195,1.921,2.72735-3.20794,1.19019Zm2.93024,4.565,1.9801-.73462L13.228,23.97827l-2.26838.77429Zm-1.55591,3.58819L13.701,25.4021l2.64935.78058-2.14447.67853Zm3.64868,1.977L18.19,27.17334l.08313,3.46332L14.52979,32.2793Zm10.7876,2.43549.08447-3.464,3.25165,1.03052.407,4.07684Zm4.06824-3.77478-2.14545-.68,2.65063-.781,2.41266.825Z"}));var kr=()=>Object(je.createElement)("div",{className:"wp-block-embed is-loading"},Object(je.createElement)(_e.Spinner,null),Object(je.createElement)("p",null,Object(ke.__)("Embedding…")));var wr=e=>{let{icon:t,label:n,value:r,onSubmit:o,onChange:a,cannotEmbed:l,fallback:c,tryAgain:i}=e;return Object(je.createElement)(_e.Placeholder,{icon:Object(je.createElement)(we.BlockIcon,{icon:t,showColors:!0}),label:n,className:"wp-block-embed",instructions:Object(ke.__)("Paste a link to the content you want to display on your site.")},Object(je.createElement)("form",{onSubmit:o},Object(je.createElement)("input",{type:"url",value:r||"",className:"components-placeholder__input","aria-label":n,placeholder:Object(ke.__)("Enter URL to embed here…"),onChange:a}),Object(je.createElement)(_e.Button,{variant:"primary",type:"submit"},Object(ke._x)("Embed","button label"))),Object(je.createElement)("div",{className:"components-placeholder__learn-more"},Object(je.createElement)(_e.ExternalLink,{href:Object(ke.__)("https://wordpress.org/support/article/embeds/")},Object(ke.__)("Learn more about embeds"))),l&&Object(je.createElement)("div",{className:"components-placeholder__error"},Object(je.createElement)("div",{className:"components-placeholder__instructions"},Object(ke.__)("Sorry, this content could not be embedded.")),Object(je.createElement)(_e.Button,{variant:"secondary",onClick:i},Object(ke._x)("Try again","button label"))," ",Object(je.createElement)(_e.Button,{variant:"secondary",onClick:c},Object(ke._x)("Convert to link","button label"))))};const Er={class:"className",frameborder:"frameBorder",marginheight:"marginHeight",marginwidth:"marginWidth"};function Cr(e){let{html:t}=e;const n=Object(je.useRef)(),r=Object(je.useMemo)(()=>{const e=(new window.DOMParser).parseFromString(t,"text/html").querySelector("iframe"),n={};return e?(Array.from(e.attributes).forEach(e=>{let{name:t,value:r}=e;"style"!==t&&(n[Er[t]||t]=r)}),n):n},[t]);return Object(je.useEffect)(()=>{const{ownerDocument:e}=n.current,{defaultView:t}=e;function o(e){let{data:{secret:t,message:o,value:a}={}}=e;"height"===o&&t===r["data-secret"]&&(n.current.height=a)}return t.addEventListener("message",o),()=>{t.removeEventListener("message",o)}},[]),Object(je.createElement)("div",{className:"wp-block-embed__wrapper"},Object(je.createElement)("iframe",Object(mt.a)({ref:Object(nt.useMergeRefs)([n,Object(nt.useFocusableIframe)()]),title:r.title},r)))}class xr extends je.Component{constructor(){super(...arguments),this.hideOverlay=this.hideOverlay.bind(this),this.state={interactive:!1}}static getDerivedStateFromProps(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}hideOverlay(){this.setState({interactive:!0})}render(){const{preview:e,previewable:t,url:n,type:r,caption:o,onCaptionChange:a,isSelected:l,className:c,icon:i,label:s,insertBlocksAfter:u}=this.props,{scripts:m}=e,{interactive:d}=this.state,b="photo"===r?(e=>{const t=e.thumbnail_url||e.url,n=Object(je.createElement)("p",null,Object(je.createElement)("img",{src:t,alt:e.title,width:"100%"}));return Object(je.renderToString)(n)})(e):e.html,p=new URL(n).host.split("."),g=p.splice(p.length-2,p.length-1).join("."),h=Object(ke.sprintf)(Object(ke.__)("Embedded content from %s"),g),v=Le()(r,c,"wp-block-embed__wrapper"),O="wp-embed"===r?Object(je.createElement)(Cr,{html:b}):Object(je.createElement)("div",{className:"wp-block-embed__wrapper"},Object(je.createElement)(_e.SandBox,{html:b,scripts:m,title:h,type:v,onFocus:this.hideOverlay}),!d&&Object(je.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object(je.createElement)("figure",{className:Le()(c,"wp-block-embed",{"is-type-video":"video"===r})},t?O:Object(je.createElement)(_e.Placeholder,{icon:Object(je.createElement)(we.BlockIcon,{icon:i,showColors:!0}),label:s},Object(je.createElement)("p",{className:"components-placeholder__error"},Object(je.createElement)("a",{href:n},n)),Object(je.createElement)("p",{className:"components-placeholder__error"},Object(ke.sprintf)(Object(ke.__)("Embedded content from %s can't be previewed in the editor."),g))),(!we.RichText.isEmpty(o)||l)&&Object(je.createElement)(we.RichText,{tagName:"figcaption",placeholder:Object(ke.__)("Add caption"),value:o,onChange:a,inlineToolbar:!0,__unstableOnSplitAtEnd:()=>u(Object(Oe.createBlock)("core/paragraph"))}))}}var Sr=xr;var Br=e=>{const{attributes:{providerNameSlug:t,previewable:n,responsive:r,url:o},attributes:a,isSelected:l,onReplace:c,setAttributes:i,insertBlocksAfter:s,onFocus:u}=e,m={title:Object(ke._x)("Embed","block title"),icon:or},{icon:d,title:b}=(p=t,(null===(g=Object(Oe.getBlockVariations)(He))||void 0===g?void 0:g.find(e=>{let{name:t}=e;return t===p}))||m);var p,g;const[h,v]=Object(je.useState)(o),[O,j]=Object(je.useState)(!1),{invalidateResolution:y}=Object(ze.useDispatch)(It.store),{preview:f,fetching:_,themeSupportsResponsive:k,cannotEmbed:w}=Object(ze.useSelect)(e=>{var t;const{getEmbedPreview:n,isPreviewEmbedFallback:r,isRequestingEmbedPreview:a,getThemeSupports:l}=e(It.store);if(!o)return{fetching:!1,cannotEmbed:!1};const c=n(o),i=r(o),s=!1===(null==c?void 0:c.html)&&void 0===(null==c?void 0:c.type),u=404===(null==c||null===(t=c.data)||void 0===t?void 0:t.status),m=!!c&&!s&&!u;return{preview:m?c:void 0,fetching:a(o),themeSupportsResponsive:l()["responsive-embeds"],cannotEmbed:!m||i}},[o]),E=()=>{const{allowResponsive:e,className:t}=a;return{...a,...We(f,b,t,r,e)}};Object(je.useEffect)(()=>{if(null==f||!f.html||!w||_)return;const e=o.replace(/\/$/,"");v(e),j(!1),i({url:e})},[null==f?void 0:f.html,o]),Object(je.useEffect)(()=>{if(f&&!O&&(i(E()),c)){const t=Ge(e,E());t&&c(t)}},[f,O]);const C=Object(we.useBlockProps)();if(_)return Object(je.createElement)(ye.View,C,Object(je.createElement)(kr,null));const x=Object(ke.sprintf)(Object(ke.__)("%s URL"),b);if(!f||w||O)return Object(je.createElement)(ye.View,C,Object(je.createElement)(wr,{icon:d,label:x,onFocus:u,onSubmit:e=>{e&&e.preventDefault(),j(!1),i({url:h})},value:h,cannotEmbed:w,onChange:e=>v(e.target.value),fallback:()=>function(e,t){const n=Object(je.createElement)("a",{href:e},e);t(Object(Oe.createBlock)("core/paragraph",{content:Object(je.renderToString)(n)}))}(h,c),tryAgain:()=>{y("getEmbedPreview",[h])}}));const{caption:S,type:B,allowResponsive:T,className:N}=E(),P=tt()(N,e.className);return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(rr,{showEditButton:f&&!w,themeSupportsResponsive:k,blockSupportsResponsive:r,allowResponsive:T,toggleResponsive:()=>{const{allowResponsive:e,className:t}=a,{html:n}=f,o=!e;i({allowResponsive:o,className:Ue(n,t,r&&o)})},switchBackToURLInput:()=>j(!0)}),Object(je.createElement)(ye.View,C,Object(je.createElement)(Sr,{preview:f,previewable:n,className:P,url:h,type:B,caption:S,onCaptionChange:e=>i({caption:e}),isSelected:l,icon:d,label:x,insertBlocksAfter:s})))};const{name:Tr}={apiVersion:2,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1},previewable:{type:"boolean",default:!0}},supports:{align:!0},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"};var Nr={from:[{type:"raw",isMatch:e=>{var t,n;return"P"===e.nodeName&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)&&1===(null===(t=e.textContent)||void 0===t||null===(n=t.match(/https/gi))||void 0===n?void 0:n.length)},transform:e=>Object(Oe.createBlock)(Tr,{url:e.textContent.trim()})}],to:[{type:"block",blocks:["core/paragraph"],isMatch:e=>{let{url:t}=e;return!!t},transform:e=>{let{url:t,caption:n}=e,r=`<a href="${t}">${t}</a>`;return null!=n&&n.trim()&&(r+="<br />"+n),Object(Oe.createBlock)("core/paragraph",{content:r})}}]};const Pr=[{name:"twitter",title:"Twitter",icon:ir,keywords:["tweet",Object(ke.__)("social")],description:Object(ke.__)("Embed a tweet."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:"YouTube",icon:sr,keywords:[Object(ke.__)("music"),Object(ke.__)("video")],description:Object(ke.__)("Embed a YouTube video."),patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i],attributes:{providerNameSlug:"youtube",responsive:!0}},{name:"facebook",title:"Facebook",icon:ur,keywords:[Object(ke.__)("social")],description:Object(ke.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:"Instagram",icon:mr,keywords:[Object(ke.__)("image"),Object(ke.__)("social")],description:Object(ke.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:"WordPress",icon:dr,keywords:[Object(ke.__)("post"),Object(ke.__)("blog")],description:Object(ke.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:"SoundCloud",icon:ar,keywords:[Object(ke.__)("music"),Object(ke.__)("audio")],description:Object(ke.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:"Spotify",icon:br,keywords:[Object(ke.__)("music"),Object(ke.__)("audio")],description:Object(ke.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:"Flickr",icon:pr,keywords:[Object(ke.__)("image")],description:Object(ke.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:"Vimeo",icon:gr,keywords:[Object(ke.__)("video")],description:Object(ke.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:"Animoto",icon:jr,description:Object(ke.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:"Cloudup",icon:or,description:Object(ke.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:"CollegeHumor",icon:cr,description:Object(ke.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:"Crowdsignal",icon:or,keywords:["polldaddy",Object(ke.__)("survey")],description:Object(ke.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:"Dailymotion",icon:yr,keywords:[Object(ke.__)("video")],description:Object(ke.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:"Imgur",icon:lr,description:Object(ke.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:"Issuu",icon:or,description:Object(ke.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:"Kickstarter",icon:or,description:Object(ke.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"mixcloud",title:"Mixcloud",icon:ar,keywords:[Object(ke.__)("music"),Object(ke.__)("audio")],description:Object(ke.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"reddit",title:"Reddit",icon:hr,description:Object(ke.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:"ReverbNation",icon:ar,description:Object(ke.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"screencast",title:"Screencast",icon:cr,description:Object(ke.__)("Embed Screencast content."),patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i],attributes:{providerNameSlug:"screencast",responsive:!0}},{name:"scribd",title:"Scribd",icon:or,description:Object(ke.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"slideshare",title:"Slideshare",icon:or,description:Object(ke.__)("Embed Slideshare content."),patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i],attributes:{providerNameSlug:"slideshare",responsive:!0}},{name:"smugmug",title:"SmugMug",icon:lr,description:Object(ke.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:"Speaker Deck",icon:or,description:Object(ke.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:"TikTok",icon:cr,keywords:[Object(ke.__)("video")],description:Object(ke.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:"TED",icon:cr,description:Object(ke.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:"Tumblr",icon:vr,keywords:[Object(ke.__)("social")],description:Object(ke.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(www\.)?tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:"VideoPress",icon:cr,keywords:[Object(ke.__)("video")],description:Object(ke.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:"WordPress.tv",icon:cr,description:Object(ke.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:"Amazon Kindle",icon:Or,keywords:[Object(ke.__)("ebook")],description:Object(ke.__)("Embed Amazon Kindle content."),patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i],attributes:{providerNameSlug:"amazon-kindle"}},{name:"pinterest",title:"Pinterest",icon:fr,keywords:[Object(ke.__)("social"),Object(ke.__)("bookmark")],description:Object(ke.__)("Embed Pinterest pins, boards, and profiles."),patterns:[/^https?:\/\/([a-z]{2}|www)\.pinterest\.com(\.(au|mx))?\/.*/i],attributes:{providerNameSlug:"pinterest"}},{name:"wolfram-cloud",title:"Wolfram Cloud",icon:_r,description:Object(ke.__)("Embed Wolfram Cloud notebook content."),patterns:[/^https?:\/\/(www\.)?wolframcloud\.com\/obj\/.+/i],attributes:{providerNameSlug:"wolfram-cloud",responsive:!0}}];Pr.forEach(e=>{e.isActive||(e.isActive=(e,t)=>e.providerNameSlug===t.providerNameSlug)});var zr=Pr;const{attributes:Ir}={apiVersion:2,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1},previewable:{type:"boolean",default:!0}},supports:{align:!0},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"};var Mr=[{attributes:Ir,save(e){let{attributes:{url:t,caption:n,type:r,providerNameSlug:o}}=e;if(!t)return null;const a=tt()("wp-block-embed",{["is-type-"+r]:r,["is-provider-"+o]:o});return Object(je.createElement)("figure",{className:a},`\n${t}\n`,!we.RichText.isEmpty(n)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",value:n}))}}];const Rr={apiVersion:2,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1},previewable:{type:"boolean",default:!0}},supports:{align:!0},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},{name:Lr}=Rr,Vr={icon:or,edit:Br,save:function(e){let{attributes:t}=e;const{url:n,caption:r,type:o,providerNameSlug:a}=t;if(!n)return null;const l=Le()("wp-block-embed",{["is-type-"+o]:o,["is-provider-"+a]:a,["wp-block-embed-"+a]:a});return Object(je.createElement)("figure",we.useBlockProps.save({className:l}),Object(je.createElement)("div",{className:"wp-block-embed__wrapper"},`\n${n}\n`),!we.RichText.isEmpty(r)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",value:r}))},transforms:Nr,variations:zr,deprecated:Mr};var Ar=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5z"}));var Hr=[{attributes:{id:{type:"number"},href:{type:"string"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save(e){let{attributes:t}=e;const{href:n,fileName:r,textLinkHref:o,textLinkTarget:a,showDownloadButton:l,downloadButtonText:c,displayPreview:i,previewHeight:s}=t,u=we.RichText.isEmpty(r)?Object(ke.__)("PDF embed"):Object(ke.sprintf)(Object(ke.__)("Embed of %s."),r);return n&&Object(je.createElement)("div",we.useBlockProps.save(),i&&Object(je.createElement)(je.Fragment,null,Object(je.createElement)("object",{className:"wp-block-file__embed",data:n,type:"application/pdf",style:{width:"100%",height:s+"px"},"aria-label":u})),!we.RichText.isEmpty(r)&&Object(je.createElement)("a",{href:o,target:a,rel:a?"noreferrer noopener":void 0},Object(je.createElement)(we.RichText.Content,{value:r})),l&&Object(je.createElement)("a",{href:n,className:"wp-block-file__button",download:!0},Object(je.createElement)(we.RichText.Content,{value:c})))}}],Fr=n("onLe");function Dr(e){let{hrefs:t,openInNewWindow:n,showDownloadButton:r,changeLinkDestinationOption:o,changeOpenInNewWindow:a,changeShowDownloadButton:l,displayPreview:c,changeDisplayPreview:i,previewHeight:s,changePreviewHeight:u}=e;const{href:m,textLinkHref:d,attachmentPage:b}=t;let p=[{value:m,label:Object(ke.__)("URL")}];return b&&(p=[{value:m,label:Object(ke.__)("Media file")},{value:b,label:Object(ke.__)("Attachment page")}]),Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.InspectorControls,null,m.endsWith(".pdf")&&Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("PDF settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Show inline embed"),help:c?Object(ke.__)("Note: Most phone and tablet browsers won't display embedded PDFs."):null,checked:!!c,onChange:i}),c&&Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Height in pixels"),min:Ur,max:Math.max(Wr,s),value:s,onChange:u})),Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Text link settings")},Object(je.createElement)(_e.SelectControl,{label:Object(ke.__)("Link to"),value:d,options:p,onChange:o}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Open in new tab"),checked:n,onChange:a})),Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Download button settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Show download button"),checked:r,onChange:l}))))}const Gr=()=>!(window.navigator.userAgent.indexOf("Mobi")>-1)&&(!(window.navigator.userAgent.indexOf("Android")>-1)&&(!(window.navigator.userAgent.indexOf("Macintosh")>-1&&window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>2)&&!((window.ActiveXObject||"ActiveXObject"in window)&&!qr("AcroPDF.PDF")&&!qr("PDF.PdfCtrl")))),qr=e=>{let t;try{t=new window.ActiveXObject(e)}catch(e){t=void 0}return t},Ur=200,Wr=2e3;function $r(e){let{text:t,disabled:n}=e;const{createNotice:r}=Object(ze.useDispatch)(Fr.store),o=Object(nt.useCopyToClipboard)(t,()=>{r("info",Object(ke.__)("Copied URL to clipboard."),{isDismissible:!0,type:"snackbar"})});return Object(je.createElement)(_e.ToolbarButton,{className:"components-clipboard-toolbar-button",ref:o,disabled:n},Object(ke.__)("Copy URL"))}var Zr=Object(_e.withNotices)((function(e){let{attributes:t,isSelected:n,setAttributes:r,noticeUI:o,noticeOperations:a,clientId:l}=e;const{id:c,fileName:i,href:s,textLinkHref:u,textLinkTarget:m,showDownloadButton:d,downloadButtonText:b,displayPreview:p,previewHeight:g}=t,[h,v]=Object(je.useState)(!1),{media:O,mediaUpload:j}=Object(ze.useSelect)(e=>({media:void 0===c?void 0:e(It.store).getMedia(c),mediaUpload:e(we.store).getSettings().mediaUpload}),[c]),{toggleSelection:y}=Object(ze.useDispatch)(we.store);function f(e){if(e&&e.url){v(!1);const t=e.url.endsWith(".pdf");r({href:e.url,fileName:e.title,textLinkHref:e.url,id:e.id,displayPreview:!!t||void 0,previewHeight:t?600:void 0})}}function _(e){v(!0),a.removeAllNotices(),a.createErrorNotice(e)}function k(e){r({downloadButtonText:e.replace(/<\/?a[^>]*>/g,"")})}Object(je.useEffect)(()=>{if(Object(Pe.isBlobURL)(s)){const e=Object(Pe.getBlobByURL)(s);j({filesList:[e],onFileChange:e=>{let[t]=e;return f(t)},onError:e=>{v(!0),a.createErrorNotice(e)}}),Object(Pe.revokeBlobURL)(s)}void 0===b&&k(Object(ke._x)("Download","button label"))},[]),Object(je.useEffect)(()=>{r({fileId:"wp-block-file--media-"+l})},[l]);const w=O&&O.link,E=Object(we.useBlockProps)({className:tt()(Object(Pe.isBlobURL)(s)&&Object(_e.__unstableGetAnimateClassName)({type:"loading"}),{"is-transient":Object(Pe.isBlobURL)(s)})}),C=Gr()&&p;return!s||h?Object(je.createElement)("div",E,Object(je.createElement)(we.MediaPlaceholder,{icon:Object(je.createElement)(we.BlockIcon,{icon:Ar}),labels:{title:Object(ke.__)("File"),instructions:Object(ke.__)("Upload a file or pick one from your media library.")},onSelect:f,notices:o,onError:_,accept:"*"})):Object(je.createElement)(je.Fragment,null,Object(je.createElement)(Dr,{hrefs:{href:s,textLinkHref:u,attachmentPage:w},openInNewWindow:!!m,showDownloadButton:d,changeLinkDestinationOption:function(e){r({textLinkHref:e})},changeOpenInNewWindow:function(e){r({textLinkTarget:!!e&&"_blank"})},changeShowDownloadButton:function(e){r({showDownloadButton:e})},displayPreview:p,changeDisplayPreview:function(e){r({displayPreview:e})},previewHeight:g,changePreviewHeight:function(e){const t=Math.max(parseInt(e,10),Ur);r({previewHeight:t})}}),Object(je.createElement)(we.BlockControls,{group:"other"},Object(je.createElement)(we.MediaReplaceFlow,{mediaId:c,mediaURL:s,accept:"*",onSelect:f,onError:_}),Object(je.createElement)($r,{text:s,disabled:Object(Pe.isBlobURL)(s)})),Object(je.createElement)("div",E,C&&Object(je.createElement)(_e.ResizableBox,{size:{height:g},minHeight:Ur,maxHeight:Wr,minWidth:"100%",grid:[10,10],enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:()=>y(!1),onResizeStop:function(e,t,n,o){y(!0);const a=parseInt(g+o.height,10);r({previewHeight:a})},showHandle:n},Object(je.createElement)("object",{className:"wp-block-file__preview",data:s,type:"application/pdf","aria-label":Object(ke.__)("Embed of the selected PDF file.")}),!n&&Object(je.createElement)("div",{className:"wp-block-file__preview-overlay"})),Object(je.createElement)("div",{className:"wp-block-file__content-wrapper"},Object(je.createElement)(we.RichText,{tagName:"a",value:i,placeholder:Object(ke.__)("Write file name…"),withoutInteractiveFormatting:!0,onChange:e=>r({fileName:e}),href:u}),d&&Object(je.createElement)("div",{className:"wp-block-file__button-richtext-wrapper"},Object(je.createElement)(we.RichText,{tagName:"div","aria-label":Object(ke.__)("Download button text"),className:"wp-block-file__button",value:b,withoutInteractiveFormatting:!0,placeholder:Object(ke.__)("Add text…"),onChange:e=>k(e)})))))}));var Kr=n("Mmq9");var Jr={from:[{type:"files",isMatch:e=>e.length>0,priority:15,transform:e=>{const t=[];return e.forEach(e=>{const n=Object(Pe.createBlobURL)(e);t.push(Object(Oe.createBlock)("core/file",{href:n,fileName:e.name,textLinkHref:n}))}),t}},{type:"block",blocks:["core/audio"],transform:e=>Object(Oe.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],transform:e=>Object(Oe.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],transform:e=>Object(Oe.createBlock)("core/file",{href:e.url,fileName:e.caption||Object(Kr.getFilename)(e.url),textLinkHref:e.url,id:e.id,anchor:e.anchor})}],to:[{type:"block",blocks:["core/audio"],isMatch:e=>{let{id:t}=e;if(!t)return!1;const{getMedia:n}=Object(ze.select)(It.store),r=n(t);return!!r&&Object(Me.includes)(r.mime_type,"audio")},transform:e=>Object(Oe.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],isMatch:e=>{let{id:t}=e;if(!t)return!1;const{getMedia:n}=Object(ze.select)(It.store),r=n(t);return!!r&&Object(Me.includes)(r.mime_type,"video")},transform:e=>Object(Oe.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],isMatch:e=>{let{id:t}=e;if(!t)return!1;const{getMedia:n}=Object(ze.select)(It.store),r=n(t);return!!r&&Object(Me.includes)(r.mime_type,"image")},transform:e=>Object(Oe.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}]};const Qr={apiVersion:2,name:"core/file",title:"File",category:"media",description:"Add a link to a downloadable file.",keywords:["document","pdf","download"],textdomain:"default",attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},viewScript:"file:./view.min.js",editorStyle:"wp-block-file-editor",style:"wp-block-file"},{name:Yr}=Qr,Xr={icon:Ar,example:{attributes:{href:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg",fileName:Object(ke._x)("Armstrong_Small_Step","Name of the file")}},transforms:Jr,deprecated:Hr,edit:Zr,save:function(e){let{attributes:t}=e;const{href:n,fileId:r,fileName:o,textLinkHref:a,textLinkTarget:l,showDownloadButton:c,downloadButtonText:i,displayPreview:s,previewHeight:u}=t,m=we.RichText.isEmpty(o)?Object(ke.__)("PDF embed"):Object(ke.sprintf)(Object(ke.__)("Embed of %s."),o);return n&&Object(je.createElement)("div",we.useBlockProps.save(),s&&Object(je.createElement)(je.Fragment,null,Object(je.createElement)("object",{className:"wp-block-file__embed",data:n,type:"application/pdf",style:{width:"100%",height:u+"px"},"aria-label":m})),!we.RichText.isEmpty(o)&&Object(je.createElement)("a",{id:r,href:a,target:l,rel:l?"noreferrer noopener":void 0},Object(je.createElement)(we.RichText.Content,{value:o})),c&&Object(je.createElement)("a",{href:n,className:"wp-block-file__button",download:!0,"aria-describedby":r},Object(je.createElement)(we.RichText.Content,{value:i})))}};var eo=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8h-1.5zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zM4.5 4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1V12l-2.3-1.7c-.3-.2-.6-.2-.9 0l-2.9 2.1L8 11.3c-.2-.1-.5-.1-.7 0l-2.9 1.5V4.6zm0 11.8v-1.8l3.2-1.7 2.4 1.2c.2.1.5.1.8-.1l2.8-2 2.8 2v2.5c0 .1-.1.1-.1.1H4.6c0-.1-.1-.2-.1-.2z"}));function to(e){return Math.min(3,e.images.length)}var no=[{attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},sizeSlug:{type:"string",default:"large"}},supports:{align:!0},isEligible(e){let{linkTo:t}=e;return!t||"attachment"===t||"media"===t},migrate(e){let t=e.linkTo;return e.linkTo?"attachment"===e.linkTo?t="post":"media"===e.linkTo&&(t="file"):t="none",{...e,linkTo:t}},save(e){let{attributes:t}=e;const{images:n,columns:r=to(t),imageCrop:o,caption:a,linkTo:l}=t;return Object(je.createElement)("figure",{className:`columns-${r} ${o?"is-cropped":""}`},Object(je.createElement)("ul",{className:"blocks-gallery-grid"},n.map(e=>{let t;switch(l){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const n=Object(je.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-"+e.id:null});return Object(je.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(je.createElement)("figure",null,t?Object(je.createElement)("a",{href:t},n):n,!we.RichText.isEmpty(e.caption)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))})),!we.RichText.isEmpty(a)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))}},{attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},link:{source:"attribute",selector:"img",attribute:"data-link"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",default:[]},columns:{type:"number"},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},isEligible(e){let{ids:t}=e;return t&&t.some(e=>"string"==typeof e)},migrate:e=>({...e,ids:Object(Me.map)(e.ids,e=>{const t=parseInt(e,10);return Number.isInteger(t)?t:null})}),save(e){let{attributes:t}=e;const{images:n,columns:r=to(t),imageCrop:o,caption:a,linkTo:l}=t;return Object(je.createElement)("figure",{className:`columns-${r} ${o?"is-cropped":""}`},Object(je.createElement)("ul",{className:"blocks-gallery-grid"},n.map(e=>{let t;switch(l){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const n=Object(je.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-"+e.id:null});return Object(je.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(je.createElement)("figure",null,t?Object(je.createElement)("a",{href:t},n):n,!we.RichText.isEmpty(e.caption)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))})),!we.RichText.isEmpty(a)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},save(e){let{attributes:t}=e;const{images:n,columns:r=to(t),imageCrop:o,linkTo:a}=t;return Object(je.createElement)("ul",{className:`columns-${r} ${o?"is-cropped":""}`},n.map(e=>{let t;switch(a){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const n=Object(je.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-"+e.id:null});return Object(je.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(je.createElement)("figure",null,t?Object(je.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",value:e.caption})))}))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible(e){let{images:t,ids:n}=e;return t&&t.length>0&&(!n&&t||n&&t&&n.length!==t.length||Object(Me.some)(t,(e,t)=>!e&&null!==n[t]||parseInt(e,10)!==n[t]))},migrate:e=>({...e,ids:Object(Me.map)(e.images,e=>{let{id:t}=e;return t?parseInt(t,10):null})}),supports:{align:!0},save(e){let{attributes:t}=e;const{images:n,columns:r=to(t),imageCrop:o,linkTo:a}=t;return Object(je.createElement)("ul",{className:`columns-${r} ${o?"is-cropped":""}`},n.map(e=>{let t;switch(a){case"media":t=e.url;break;case"attachment":t=e.link}const n=Object(je.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-"+e.id:null});return Object(je.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(je.createElement)("figure",null,t?Object(je.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",value:e.caption})))}))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"div.wp-block-gallery figure.blocks-gallery-image img",query:{url:{source:"attribute",attribute:"src"},alt:{source:"attribute",attribute:"alt",default:""},id:{source:"attribute",attribute:"data-id"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},align:{type:"string",default:"none"}},supports:{align:!0},save(e){let{attributes:t}=e;const{images:n,columns:r=to(t),align:o,imageCrop:a,linkTo:l}=t,c=tt()("columns-"+r,{alignnone:"none"===o,"is-cropped":a});return Object(je.createElement)("div",{className:c},n.map(e=>{let t;switch(l){case"media":t=e.url;break;case"attachment":t=e.link}const n=Object(je.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(je.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(je.createElement)("a",{href:t},n):n)}))}}],ro=n("KEfo");const oo=Object(je.createElement)(we.BlockIcon,{icon:eo});const ao=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"large";const n=Object(Me.pick)(e,["alt","id","link","caption"]);n.url=Object(Me.get)(e,["sizes",t,"url"])||Object(Me.get)(e,["media_details","sizes",t,"source_url"])||e.url;const r=Object(Me.get)(e,["sizes","full","url"])||Object(Me.get)(e,["media_details","sizes","full","source_url"]);return r&&(n.fullUrl=r),n},lo=["noreferrer","noopener"],co=["image"];function io(e,t){switch(t){case"media":return{href:(null==e?void 0:e.source_url)||(null==e?void 0:e.url),linkDestination:"media"};case"attachment":return{href:null==e?void 0:e.link,linkDestination:"attachment"};case"none":return{href:void 0,linkDestination:"none"}}return{}}function so(e,t){let{rel:n}=t;const r=e?"_blank":void 0;let o;return o=r||n?function(e){let t=e;return void 0===e||Object(Me.isEmpty)(t)||Object(Me.isEmpty)(t)||(Object(Me.each)(lo,e=>{const n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")}),t!==e&&(t=t.trim()),Object(Me.isEmpty)(t)&&(t=void 0)),t}(n):void 0,{linkTarget:r,rel:o}}const uo=["core/image"];function mo(e){let{isHidden:t,captionFocused:n,onFocusCaption:r,className:o,value:a,placeholder:l,tagName:c,captionRef:i,...s}=e;return t?Object(je.createElement)(_e.VisuallyHidden,Object(mt.a)({as:we.RichText},s)):Object(je.createElement)(we.RichText,Object(mt.a)({ref:i,value:a,placeholder:l,className:o,tagName:c,isSelected:n,onClick:r},s))}var bo=e=>{const{attributes:t,isSelected:n,setAttributes:r,mediaPlaceholder:o,insertBlocksAfter:a,blockProps:l}=e,{align:c,columns:i,caption:s,imageCrop:u}=t,{children:m,...d}=Object(we.useInnerBlocksProps)(l,{allowedBlocks:uo,orientation:"horizontal",renderAppender:!1,__experimentalLayout:{type:"default",alignments:[]}}),[b,p]=Object(je.useState)(!1);return Object(je.useEffect)(()=>{n||p(!1)},[n]),Object(je.createElement)("figure",Object(mt.a)({},d,{className:tt()(l.className,"blocks-gallery-grid",{["align"+c]:c,["columns-"+i]:void 0!==i,"columns-default":void 0===i,"is-cropped":u})}),m,Object(je.createElement)(ye.View,{className:"blocks-gallery-media-placeholder-wrapper",onClick:function(){b&&p(!1)}},o),Object(je.createElement)(mo,{isHidden:!n&&we.RichText.isEmpty(s),captionFocused:b,onFocusCaption:function(){b||p(!0)},tagName:"figcaption",className:"blocks-gallery-caption","aria-label":Object(ke.__)("Gallery caption text"),placeholder:Object(ke.__)("Write gallery caption…"),value:s,onChange:e=>r({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>a(Object(Oe.createBlock)("core/paragraph"))}))};function po(e,t,n){return Object(je.useMemo)(()=>function(){if(!e||0===e.length)return;const{imageSizes:r}=n();let o={};t&&(o=e.reduce((e,t)=>{if(!t.id)return e;const n=r.reduce((e,n)=>{const r=Object(Me.get)(t,["sizes",n.slug,"url"]),o=Object(Me.get)(t,["media_details","sizes",n.slug,"source_url"]);return{...e,[n.slug]:r||o}},{});return{...e,[parseInt(t.id,10)]:n}},{}));return r.filter(e=>{let{slug:t}=e;return Object(Me.some)(o,e=>e[t])}).map(e=>{let{name:t,slug:n}=e;return{value:n,label:t}})}(),[e,t])}function go(e,t){const[n,r]=Object(je.useState)([]);return Object(je.useMemo)(()=>function(){let o=!1;const a=n.filter(t=>e.find(e=>t.clientId===e.clientId));a.length<n.length&&(o=!0);e.forEach(e=>{e.fromSavedContent&&!a.find(t=>t.id===e.id)&&(o=!0,a.push(e))});const l=e.filter(e=>!a.find(t=>e.clientId&&t.clientId===e.clientId)&&(null==t?void 0:t.find(t=>t.id===e.id))&&!e.fromSavedConent);(o||(null==l?void 0:l.length)>0)&&r([...a,...l]);return l.length>0?l:null}(),[e,t])}var ho=n("U60i");const vo=[{value:"attachment",label:Object(ke.__)("Attachment Page")},{value:"media",label:Object(ke.__)("Media File")},{value:"none",label:Object(ke._x)("None","Media item link option")}],Oo=["image"],jo=je.Platform.isNative?Object(ke.__)("ADD MEDIA"):Object(ke.__)("Drag images, upload new ones or select files from your library."),yo=je.Platform.isNative?{type:"stepper"}:{};var fo=Object(nt.compose)([_e.withNotices,Object(ro.withViewportMatch)({isNarrow:"< small"})])((function(e){const{setAttributes:t,attributes:n,className:r,clientId:o,noticeOperations:a,isSelected:l,noticeUI:c,insertBlocksAfter:i}=e,{columns:s,imageCrop:u,linkTarget:m,linkTo:d,shortCodeTransforms:b,sizeSlug:p}=n,{__unstableMarkNextChangeAsNotPersistent:g,replaceInnerBlocks:h,updateBlockAttributes:v}=Object(ze.useDispatch)(we.store),{createSuccessNotice:O}=Object(ze.useDispatch)(Fr.store),{getBlock:j,getSettings:y,preferredStyle:f}=Object(ze.useSelect)(e=>{var t;const n=e(we.store).getSettings().__experimentalPreferredStyleVariations;return{getBlock:e(we.store).getBlock,getSettings:e(we.store).getSettings,preferredStyle:null==n||null===(t=n.value)||void 0===t?void 0:t["core/image"]}},[]),_=Object(ze.useSelect)(e=>{var t;return null===(t=e(we.store).getBlock(o))||void 0===t?void 0:t.innerBlocks},[o]),k=Object(je.useMemo)(()=>null==_?void 0:_.map(e=>({clientId:e.clientId,id:e.attributes.id,url:e.attributes.url,attributes:e.attributes,fromSavedContent:Boolean(e.originalContent)})),[_]),w=function(e){const[t,n]=Object(je.useState)([]),r=Object(ze.useSelect)(n=>{if(null==e||!e.length)return t;const r=e.map(e=>e.attributes.id).filter(e=>void 0!==e);return 0===r.length?t:n(It.store).getMediaItems({include:r.join(","),per_page:-1})},[e]);return(null==r?void 0:r.length)!==(null==t?void 0:t.length)||null!=r&&r.some(e=>!t.find(t=>t.id===e.id))?(n(r),r):t}(_),E=go(k,w);!function(e){const{createWarningNotice:t}=Object(ze.useDispatch)(Fr.store),{toggleFeature:n}=Object(ze.useDispatch)(ho.i);Object(ze.useSelect)(e=>{const{isFeatureActive:t}=e(ho.i);return t("core/edit-post","mobileGalleryWarning")},[])&&e&&(t(Object(ke.__)("Editing this Gallery in the WordPress mobile app requires version 18.2 or higher."),{type:"snackbar",explicitDismiss:!0}),n("core/edit-post","mobileGalleryWarning"))}(E),Object(je.useEffect)(()=>{null==E||E.forEach(e=>{v(e.clientId,{...S(!1,e.attributes),id:e.id,align:void 0})})},[E]);const C=function(e){const t=Object(ze.useSelect)(t=>{if(!e||0===e.length)return;const n=t(It.store).getMedia;return e.map(e=>{const t=n(e.id);if(t)return{id:t.id,type:"image",url:t.source_url,mime:t.mime_type,alt:t.alt_text,link:t.link}})},[e]);if(t)return Object(Me.every)(t,e=>e&&e.url)?t:void 0}(b);Object(je.useEffect)(()=>{b&&C&&(T(C),t({shortCodeTransforms:void 0}))},[b,C]);const x=po(w,l,y);function S(e,t){if(e)return e.attributes;let r;return r=t.className&&""!==t.className?t.className:f?"is-style-"+f:void 0,{...ao(t,p),...io(t,d),...so(m,n),className:r,sizeSlug:p}}function B(e){var t;return Oo.some(t=>{var n;return 0===(null===(n=e.type)||void 0===n?void 0:n.indexOf(t))})||0===(null===(t=e.url)||void 0===t?void 0:t.indexOf("blob:"))}function T(e){const t="[object FileList]"===Object.prototype.toString.call(e),n=t?Array.from(e).map(e=>e.url?e:ao({url:Object(Pe.createBlobURL)(e)})):e;n.every(B)||(a.removeAllNotices(),a.createErrorNotice(Object(ke.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file"}));const r=n.filter(e=>e.url||B(e)).map(e=>e.url?e:ao({url:Object(Pe.createBlobURL)(e)})),l=r.reduce((e,t,n)=>(e[t.id]=n,e),{}),c=t?_:_.filter(e=>r.find(t=>t.id===e.attributes.id)),i=r.filter(e=>!c.find(t=>e.id===t.attributes.id)).map(e=>Object(Oe.createBlock)("core/image",{id:e.id,url:e.url,caption:e.caption,alt:e.alt}));h(o,Object(Me.concat)(c,i).sort((e,t)=>l[e.attributes.id]-l[t.attributes.id]))}Object(je.useEffect)(()=>{var e,n,r,o,a,l;d||(g(),t({linkTo:(null===(e=window)||void 0===e||null===(n=e.wp)||void 0===n||null===(r=n.media)||void 0===r||null===(o=r.view)||void 0===o||null===(a=o.settings)||void 0===a||null===(l=a.defaultProps)||void 0===l?void 0:l.link)||"none"}))},[d]);const N=!!k.length,P=N&&k.some(e=>!!e.id),z=k.some(e=>{var t;return!e.id&&0===(null===(t=e.url)||void 0===t?void 0:t.indexOf("blob:"))}),I=Object(je.createElement)(we.MediaPlaceholder,{addToGallery:P,handleUpload:!1,isAppender:N,disableMediaButtons:N&&!l||z,icon:!N&&oo,labels:{title:!N&&Object(ke.__)("Gallery"),instructions:!N&&jo},onSelect:T,accept:"image/*",allowedTypes:Oo,multiple:!0,value:P?k:{},onError:function(e){a.removeAllNotices(),a.createErrorNotice(e)},notices:N?void 0:c}),M=Object(we.useBlockProps)({className:tt()(r,"has-nested-images")});if(!N)return Object(je.createElement)(ye.View,M,I);const R=d&&"none"!==d;return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Gallery settings")},k.length>1&&Object(je.createElement)(_e.RangeControl,Object(mt.a)({label:Object(ke.__)("Columns"),value:s||(L=k.length,L?Math.min(3,L):3),onChange:function(e){t({columns:e})},min:1,max:Math.min(8,k.length)},yo,{required:!0})),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Crop images"),checked:!!u,onChange:function(){t({imageCrop:!u})},help:function(e){return e?Object(ke.__)("Thumbnails are cropped to align."):Object(ke.__)("Thumbnails are not cropped.")}}),Object(je.createElement)(_e.SelectControl,{label:Object(ke.__)("Link to"),value:d,onChange:function(e){t({linkTo:e});const n={},r=[];j(o).innerBlocks.forEach(t=>{r.push(t.clientId);const o=t.attributes.id?Object(Me.find)(w,{id:t.attributes.id}):null;n[t.clientId]=io(o,e)}),v(r,n,!0);const a=[...vo].find(t=>t.value===e);O(Object(ke.sprintf)(Object(ke.__)("All gallery image links updated to: %s"),a.label),{id:"gallery-attributes-linkTo",type:"snackbar"})},options:vo,hideCancelButton:!0}),R&&Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Open in new tab"),checked:"_blank"===m,onChange:function(e){const n=e?"_blank":void 0;t({linkTarget:n});const r={},a=[];j(o).innerBlocks.forEach(e=>{a.push(e.clientId),r[e.clientId]=so(n,e.attributes)}),v(a,r,!0);const l=e?Object(ke.__)("All gallery images updated to open in new tab"):Object(ke.__)("All gallery images updated to not open in new tab");O(l,{id:"gallery-attributes-openInNewTab",type:"snackbar"})}}),(null==x?void 0:x.length)>0&&Object(je.createElement)(_e.SelectControl,{label:Object(ke.__)("Image size"),value:p,options:x,onChange:function(e){t({sizeSlug:e});const n={},r=[];j(o).innerBlocks.forEach(t=>{r.push(t.clientId);const o=t.attributes.id?Object(Me.find)(w,{id:t.attributes.id}):null;n[t.clientId]=function(e,t){const n=Object(Me.get)(e,["media_details","sizes",t,"source_url"]);return n?{url:n,width:void 0,height:void 0,sizeSlug:t}:{}}(o,e)}),v(r,n,!0);const a=x.find(t=>t.value===e);O(Object(ke.sprintf)(Object(ke.__)("All gallery image sizes updated to: %s"),a.label),{id:"gallery-attributes-sizeSlug",type:"snackbar"})},hideCancelButton:!0}),je.Platform.isWeb&&!x&&P&&Object(je.createElement)(_e.BaseControl,{className:"gallery-image-sizes"},Object(je.createElement)(_e.BaseControl.VisualLabel,null,Object(ke.__)("Image size")),Object(je.createElement)(ye.View,{className:"gallery-image-sizes__loading"},Object(je.createElement)(_e.Spinner,null),Object(ke.__)("Loading options…"))))),c,Object(je.createElement)(bo,Object(mt.a)({},e,{images:k,mediaPlaceholder:I,blockProps:M,insertBlocksAfter:i})));var L}));const _o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"large";const n=Object(Me.pick)(e,["alt","id","link","caption"]);n.url=Object(Me.get)(e,["sizes",t,"url"])||Object(Me.get)(e,["media_details","sizes",t,"source_url"])||e.url;const r=Object(Me.get)(e,["sizes","full","url"])||Object(Me.get)(e,["media_details","sizes","full","source_url"]);return r&&(n.fullUrl=r),n};var ko=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),wo=n("2gm7"),Eo=n("1iEr"),Co=n("bWcr");class xo extends je.Component{constructor(){super(...arguments),this.onSelectImage=this.onSelectImage.bind(this),this.onRemoveImage=this.onRemoveImage.bind(this),this.bindContainer=this.bindContainer.bind(this),this.onEdit=this.onEdit.bind(this),this.onSelectImageFromLibrary=this.onSelectImageFromLibrary.bind(this),this.onSelectCustomURL=this.onSelectCustomURL.bind(this),this.state={isEditing:!1}}bindContainer(e){this.container=e}onSelectImage(){this.props.isSelected||this.props.onSelect()}onRemoveImage(e){this.container===this.container.ownerDocument.activeElement&&this.props.isSelected&&-1!==[dt.BACKSPACE,dt.DELETE].indexOf(e.keyCode)&&(e.preventDefault(),this.props.onRemove())}onEdit(){this.setState({isEditing:!0})}componentDidUpdate(){const{image:e,url:t,__unstableMarkNextChangeAsNotPersistent:n}=this.props;e&&!t&&(n(),this.props.setAttributes({url:e.source_url,alt:e.alt_text}))}deselectOnBlur(){this.props.onDeselect()}onSelectImageFromLibrary(e){const{setAttributes:t,id:n,url:r,alt:o,caption:a,sizeSlug:l}=this.props;if(!e||!e.url)return;let c=_o(e,l);((e,t)=>!e&&Object(Pe.isBlobURL)(t))(n,r)&&o&&(c=Object(Me.omit)(c,["alt"])),a&&!Object(Me.get)(c,["caption"])&&(c=Object(Me.omit)(c,["caption"])),t(c),this.setState({isEditing:!1})}onSelectCustomURL(e){const{setAttributes:t,url:n}=this.props;e!==n&&(t({url:e,id:void 0}),this.setState({isEditing:!1}))}render(){const{url:e,alt:t,id:n,linkTo:r,link:o,isFirstItem:a,isLastItem:l,isSelected:c,caption:i,onRemove:s,onMoveForward:u,onMoveBackward:m,setAttributes:d,"aria-label":b}=this.props,{isEditing:p}=this.state;let g;switch(r){case"file":g=e;break;case"post":g=o}const h=Object(je.createElement)(je.Fragment,null,Object(je.createElement)("img",{src:e,alt:t,"data-id":n,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":b,ref:this.bindContainer}),Object(Pe.isBlobURL)(e)&&Object(je.createElement)(_e.Spinner,null)),v=tt()({"is-selected":c,"is-transient":Object(Pe.isBlobURL)(e)});return Object(je.createElement)("figure",{className:v,onClick:this.onSelectImage,onFocus:this.onSelectImage},!p&&(g?Object(je.createElement)("a",{href:g},h):h),p&&Object(je.createElement)(we.MediaPlaceholder,{labels:{title:Object(ke.__)("Edit gallery image")},icon:ko,onSelect:this.onSelectImageFromLibrary,onSelectURL:this.onSelectCustomURL,accept:"image/*",allowedTypes:["image"],value:{id:n,src:e}}),Object(je.createElement)(_e.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-left"},Object(je.createElement)(_e.Button,{icon:wo.a,onClick:a?void 0:m,label:Object(ke.__)("Move image backward"),"aria-disabled":a,disabled:!c}),Object(je.createElement)(_e.Button,{icon:Eo.a,onClick:l?void 0:u,label:Object(ke.__)("Move image forward"),"aria-disabled":l,disabled:!c})),Object(je.createElement)(_e.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-right"},Object(je.createElement)(_e.Button,{icon:tr.a,onClick:this.onEdit,label:Object(ke.__)("Replace image"),disabled:!c}),Object(je.createElement)(_e.Button,{icon:Co.a,onClick:s,label:Object(ke.__)("Remove image"),disabled:!c})),!p&&(c||i)&&Object(je.createElement)(we.RichText,{tagName:"figcaption","aria-label":Object(ke.__)("Image caption text"),placeholder:c?Object(ke.__)("Add caption"):null,value:i,onChange:e=>d({caption:e}),inlineToolbar:!0}))}}var So=Object(nt.compose)([Object(ze.withSelect)((e,t)=>{const{getMedia:n}=e(It.store),{id:r}=t;return{image:r?n(parseInt(r,10)):null}}),Object(ze.withDispatch)(e=>{const{__unstableMarkNextChangeAsNotPersistent:t}=e(we.store);return{__unstableMarkNextChangeAsNotPersistent:t}})])(xo);function Bo(e){let{isHidden:t,...n}=e;return t?Object(je.createElement)(_e.VisuallyHidden,Object(mt.a)({as:we.RichText},n)):Object(je.createElement)(we.RichText,n)}var To=e=>{const{attributes:t,isSelected:n,setAttributes:r,selectedImage:o,mediaPlaceholder:a,onMoveBackward:l,onMoveForward:c,onRemoveImage:i,onSelectImage:s,onDeselectImage:u,onSetImageAttributes:m,insertBlocksAfter:d,blockProps:b}=e,{align:p,columns:g=to(t),caption:h,imageCrop:v,images:O}=t;return Object(je.createElement)("figure",Object(mt.a)({},b,{className:tt()(b.className,{["align"+p]:p,["columns-"+g]:g,"is-cropped":v})}),Object(je.createElement)("ul",{className:"blocks-gallery-grid"},O.map((e,r)=>{const a=Object(ke.sprintf)(Object(ke.__)("image %1$d of %2$d in gallery"),r+1,O.length);return Object(je.createElement)("li",{className:"blocks-gallery-item",key:e.id?`${e.id}-${r}`:e.url},Object(je.createElement)(So,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===r,isLastItem:r+1===O.length,isSelected:n&&o===r,onMoveBackward:l(r),onMoveForward:c(r),onRemove:i(r),onSelect:s(r),onDeselect:u(r),setAttributes:e=>m(r,e),caption:e.caption,"aria-label":a,sizeSlug:t.sizeSlug}))})),a,Object(je.createElement)(Bo,{isHidden:!n&&we.RichText.isEmpty(h),tagName:"figcaption",className:"blocks-gallery-caption","aria-label":Object(ke.__)("Gallery caption text"),placeholder:Object(ke.__)("Write gallery caption…"),value:h,onChange:e=>r({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>d(Object(Oe.createBlock)("core/paragraph"))}))};const No=e=>{let{clientId:t,getBlock:n,replaceBlocks:r}=e;return()=>{let e;const{attributes:{sizeSlug:o,linkTo:a,images:l,caption:c}}=n(t);switch(a){case"post":e="post";break;case"file":e="file";break;default:e="none"}const i=l.map(t=>Object(Oe.createBlock)("core/image",{id:t.id?parseInt(t.id,10):null,url:t.url,alt:t.alt,caption:t.caption,linkDestination:e}));r(t,Object(Oe.createBlock)("core/gallery",{sizeSlug:o,linkTo:e,caption:c},i))}};function Po(e){let{onClose:t,clientId:n}=e;const{getBlock:r}=Object(ze.useSelect)(we.store),{replaceBlocks:o}=Object(ze.useDispatch)(we.store);return Object(je.createElement)(_e.Modal,{closeLabel:Object(ke.__)("Close"),onRequestClose:t,title:Object(ke.__)("Update gallery"),className:"wp-block-update-gallery-modal",aria:{describedby:"wp-block-update-gallery-modal__description"}},Object(je.createElement)("p",{id:"wp-block-update-gallery-modal__description"},Object(ke.__)("Updating to the new format adds the ability to use custom links or styles on individual images in the gallery, and makes it easier to add or move them around.")),Object(je.createElement)("div",{className:"wp-block-update-gallery-modal-buttons"},Object(je.createElement)(_e.Button,{isTertiary:!0,onClick:t},Object(ke.__)("Cancel")),Object(je.createElement)(_e.Button,{isPrimary:!0,onClick:No({replaceBlocks:o,getBlock:r,clientId:n,createBlock:Oe.createBlock})},Object(ke.__)("Update"))))}const zo=[{value:"post",label:Object(ke.__)("Attachment Page")},{value:"file",label:Object(ke.__)("Media File")},{value:"none",label:Object(ke.__)("None")}],Io=["image"],Mo=je.Platform.select({web:Object(ke.__)("Drag images, upload new ones or select files from your library."),native:Object(ke.__)("ADD MEDIA")}),Ro=je.Platform.select({web:{},native:{type:"stepper"}});var Lo=Object(nt.compose)([_e.withNotices,Object(ro.withViewportMatch)({isNarrow:"< small"})])((function(e){const{attributes:t,clientId:n,isSelected:r,noticeUI:o,noticeOperations:a,onFocus:l}=e,{columns:c=to(t),imageCrop:i,images:s,linkTo:u,sizeSlug:m}=t,[d,b]=Object(je.useState)(),[p,g]=Object(je.useState)(),{__unstableMarkNextChangeAsNotPersistent:h}=Object(ze.useDispatch)(we.store),{imageSizes:v,mediaUpload:O,getMedia:j,wasBlockJustInserted:y,__unstableGalleryWithImageBlocks:f}=Object(ze.useSelect)(e=>{const t=e(we.store).getSettings();return{__unstableGalleryWithImageBlocks:t.__unstableGalleryWithImageBlocks,imageSizes:t.imageSizes,mediaUpload:t.mediaUpload,getMedia:e(It.store).getMedia,wasBlockJustInserted:e(we.store).wasBlockJustInserted(n,"inserter_menu")}}),_=Object(je.useMemo)(()=>r?Object(Me.reduce)(t.ids,(e,t)=>{if(!t)return e;const n=j(t),r=Object(Me.reduce)(v,(e,t)=>{const r=Object(Me.get)(n,["sizes",t.slug,"url"]),o=Object(Me.get)(n,["media_details","sizes",t.slug,"source_url"]);return{...e,[t.slug]:r||o}},{});return{...e,[parseInt(t,10)]:r}},{}):{},[r,t.ids,v]);function k(t){if(t.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');t.images&&(t={...t,ids:Object(Me.map)(t.images,e=>{let{id:t}=e;return parseInt(t,10)})}),e.setAttributes(t)}function w(e,t){const n=[...s];n.splice(t,1,s[e]),n.splice(e,1,s[t]),b(t),k({images:n})}function E(e){const t=Object(Me.toString)(e.id),n=Object(Me.find)(s,{id:t}),r=n?n.caption:e.caption;if(!p)return r;const o=Object(Me.find)(p,{id:t});return o&&o.caption!==e.caption?e.caption:r}function C(e){g(e.map(e=>({id:Object(Me.toString)(e.id),caption:e.caption}))),k({images:e.map(e=>({..._o(e,m),caption:E(e),id:Object(Me.toString)(e.id)})),columns:t.columns?Math.min(e.length,t.columns):t.columns})}Object(je.useEffect)(()=>{if("web"===je.Platform.OS&&s&&s.length>0&&Object(Me.every)(s,e=>{let{url:t}=e;return Object(Pe.isBlobURL)(t)})){const e=Object(Me.map)(s,e=>{let{url:t}=e;return Object(Pe.getBlobByURL)(t)});Object(Me.forEach)(s,e=>{let{url:t}=e;return Object(Pe.revokeBlobURL)(t)}),O({filesList:e,onFileChange:C,allowedTypes:["image"]})}},[]),Object(je.useEffect)(()=>{r||b()},[r]),Object(je.useEffect)(()=>{var e,t,n,r,o,a;u||(h(),k({linkTo:(null===(e=window)||void 0===e||null===(t=e.wp)||void 0===t||null===(n=t.media)||void 0===n||null===(r=n.view)||void 0===r||null===(o=r.settings)||void 0===o||null===(a=o.defaultProps)||void 0===a?void 0:a.link)||"none"}))},[u]);const x=!!s.length,S=x&&s.some(e=>!!e.id),B=Object(je.createElement)(we.MediaPlaceholder,{addToGallery:S,isAppender:x,disableMediaButtons:x&&!r,icon:!x&&oo,labels:{title:!x&&Object(ke.__)("Gallery"),instructions:!x&&Mo},onSelect:C,accept:"image/*",allowedTypes:Io,multiple:!0,value:S?s:{},onError:function(e){a.removeAllNotices(),a.createErrorNotice(e)},notices:x?void 0:o,onFocus:l,autoOpenMediaUpload:!x&&r&&y}),[T,N]=Object(je.useState)(!1),P=Object(we.useBlockProps)();if(!x)return Object(je.createElement)(ye.View,P,B);const z=Object(Me.map)(Object(Me.filter)(v,e=>{let{slug:t}=e;return Object(Me.some)(_,e=>e[t])}),e=>{let{name:t,slug:n}=e;return{value:n,label:t}}),I=x&&!Object(Me.isEmpty)(z);return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Gallery settings")},s.length>1&&Object(je.createElement)(_e.RangeControl,Object(mt.a)({label:Object(ke.__)("Columns"),value:c,onChange:function(e){k({columns:e})},min:1,max:Math.min(8,s.length)},Ro,{required:!0})),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Crop images"),checked:!!i,onChange:function(){k({imageCrop:!i})},help:function(e){return e?Object(ke.__)("Thumbnails are cropped to align."):Object(ke.__)("Thumbnails are not cropped.")}}),Object(je.createElement)(_e.SelectControl,{label:Object(ke.__)("Link to"),value:u,onChange:function(e){k({linkTo:e})},options:zo,hideCancelButton:!0}),I&&Object(je.createElement)(_e.SelectControl,{label:Object(ke.__)("Image size"),value:m,options:z,onChange:function(e){k({images:Object(Me.map)(s,t=>{if(!t.id)return t;const n=Object(Me.get)(_,[parseInt(t.id,10),e]);return{...t,...n&&{url:n}}}),sizeSlug:e})},hideCancelButton:!0}))),je.Platform.isWeb&&f&&Object(je.createElement)(we.BlockControls,{group:"other"},Object(je.createElement)(_e.ToolbarButton,{onClick:()=>N(!0),title:Object(ke.__)("Update"),label:Object(ke.__)("Update to the new gallery format")},Object(ke.__)("Update"))),je.Platform.isWeb&&T&&Object(je.createElement)(Po,{onClose:()=>N(!1),clientId:n}),o,Object(je.createElement)(To,Object(mt.a)({},e,{selectedImage:d,mediaPlaceholder:B,onMoveBackward:function(e){return()=>{0!==e&&w(e,e-1)}},onMoveForward:function(e){return()=>{e!==s.length-1&&w(e,e+1)}},onRemoveImage:function(e){return()=>{const n=Object(Me.filter)(s,(t,n)=>e!==n);b(),k({images:n,columns:t.columns?Math.min(n.length,t.columns):t.columns})}},onSelectImage:function(e){return()=>{b(e)}},onDeselectImage:function(){return()=>{b()}},onSetImageAttributes:function(e,t){s[e]&&k({images:[...s.slice(0,e),{...s[e],...t},...s.slice(e+1)]})},blockProps:P,onFocusGalleryCaption:function(){b()}})))}));var Vo=n("g56x");const Ao=e=>e?e.split(",").map(e=>parseInt(e,10)):[];Object(Vo.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-to",(function(e){var t;if(Object(ze.select)(we.store).getSettings().__unstableGalleryWithImageBlocks&&"core/gallery"===e.name&&(null===(t=e.attributes)||void 0===t?void 0:t.images.length)>0){const t=e.attributes.images.map(t=>{let{url:n,id:r,alt:o}=t;return Object(Oe.createBlock)("core/image",{url:n,id:r?parseInt(r,10):null,alt:o,sizeSlug:e.attributes.sizeSlug,linkDestination:e.attributes.linkDestination})});delete e.attributes.ids,delete e.attributes.images,e.innerBlocks=t}return e})),Object(Vo.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-from",(function(e,t){const n=(Array.isArray(t)?t:[t]).find(t=>{var n;return"core/gallery"===t.name&&t.innerBlocks.length>0&&!(null!==(n=t.attributes.images)&&void 0!==n&&n.length)>0&&!e.name.includes("core/")});if(n){const e=n.innerBlocks.map(e=>{let{attributes:{url:t,id:n,alt:r}}=e;return{url:t,id:n?parseInt(n,10):null,alt:r}}),t=e.map(e=>{let{id:t}=e;return t});n.attributes.images=e,n.attributes.ids=t}return e}));var Ho={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:e=>{let{align:t,sizeSlug:n}=e[0];t=Object(Me.every)(e,["align",t])?t:void 0,n=Object(Me.every)(e,["sizeSlug",n])?n:void 0;const r=Object(Me.filter)(e,e=>{let{url:t}=e;return t});if(Object(ze.select)(we.store).getSettings().__unstableGalleryWithImageBlocks){const e=r.map(e=>Object(Oe.createBlock)("core/image",e));return Object(Oe.createBlock)("core/gallery",{align:t,sizeSlug:n},e)}return Object(Oe.createBlock)("core/gallery",{images:r.map(e=>{let{id:t,url:n,alt:r,caption:o}=e;return{id:Object(Me.toString)(t),url:n,alt:r,caption:o}}),ids:r.map(e=>{let{id:t}=e;return parseInt(t,10)}),align:t,sizeSlug:n})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:e=>{let{named:{ids:t}}=e;if(!Object(ze.select)(we.store).getSettings().__unstableGalleryWithImageBlocks)return Ao(t).map(e=>({id:Object(Me.toString)(e)}))}},ids:{type:"array",shortcode:e=>{let{named:{ids:t}}=e;if(!Object(ze.select)(we.store).getSettings().__unstableGalleryWithImageBlocks)return Ao(t)}},shortCodeTransforms:{type:"array",shortcode:e=>{let{named:{ids:t}}=e;if(Object(ze.select)(we.store).getSettings().__unstableGalleryWithImageBlocks)return Ao(t).map(e=>({id:parseInt(e)}))}},columns:{type:"number",shortcode:e=>{let{named:{columns:t="3"}}=e;return parseInt(t,10)}},linkTo:{type:"string",shortcode:e=>{let{named:{link:t}}=e;if(!Object(ze.select)(we.store).getSettings().__unstableGalleryWithImageBlocks)switch(t){case"post":return"post";case"file":return"file";default:return"post"}switch(t){case"post":return"attachment";case"file":return"media";default:return"none"}}}},isMatch(e){let{named:t}=e;return void 0!==t.ids}},{type:"files",priority:1,isMatch:e=>1!==e.length&&Object(Me.every)(e,e=>0===e.type.indexOf("image/")),transform(e){if(Object(ze.select)(we.store).getSettings().__unstableGalleryWithImageBlocks){const t=e.map(e=>Object(Oe.createBlock)("core/image",{url:Object(Pe.createBlobURL)(e)}));return Object(Oe.createBlock)("core/gallery",{},t)}return Object(Oe.createBlock)("core/gallery",{images:e.map(e=>ao({url:Object(Pe.createBlobURL)(e)}))})}}],to:[{type:"block",blocks:["core/image"],transform:(e,t)=>{let{align:n,images:r,ids:o,sizeSlug:a}=e;return Object(ze.select)(we.store).getSettings().__unstableGalleryWithImageBlocks?t.length>0?t.map(e=>{let{attributes:{id:t,url:r,alt:o,caption:a,imageSizeSlug:l}}=e;return Object(Oe.createBlock)("core/image",{id:t,url:r,alt:o,caption:a,sizeSlug:l,align:n})}):Object(Oe.createBlock)("core/image",{align:n}):r.length>0?r.map((e,t)=>{let{url:r,alt:l,caption:c}=e;return Object(Oe.createBlock)("core/image",{id:o[t],url:r,alt:l,caption:c,align:n,sizeSlug:a})}):Object(Oe.createBlock)("core/image",{align:n})}}]};const Fo={apiVersion:2,name:"core/gallery",title:"Gallery",category:"media",description:"Display multiple images in a rich gallery.",keywords:["images","photos"],textdomain:"default",attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},shortCodeTransforms:{type:"array",default:[],items:{type:"object"}},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},fixedHeight:{type:"boolean",default:!0},linkTarget:{type:"string"},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"},allowResize:{type:"boolean",default:!1}},providesContext:{allowResize:"allowResize",imageCrop:"imageCrop",fixedHeight:"fixedHeight"},supports:{anchor:!0,align:!0},editorStyle:"wp-block-gallery-editor",style:"wp-block-gallery"},{name:Do}=Fo,Go={icon:eo,example:{attributes:{columns:2},innerBlocks:[{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}}]},transforms:Ho,edit:function(e){var t,n;const{attributes:r,clientId:o}=e,a=Object(ze.useSelect)(e=>{var t;return null===(t=e(we.store).getBlock(o))||void 0===t?void 0:t.innerBlocks},[o]),l=Object(ze.useSelect)(e=>e(we.store).getSettings().__unstableGalleryWithImageBlocks,[]),c=!(null==a||!a.length);return 0<(null==r||null===(t=r.ids)||void 0===t?void 0:t.length)||0<(null==r||null===(n=r.images)||void 0===n?void 0:n.length)||!c&&!l?Object(je.createElement)(Lo,e):Object(je.createElement)(fo,e)},save:function(e){var t,n;let{attributes:r}=e;if((null==r||null===(t=r.ids)||void 0===t?void 0:t.length)>0||(null==r||null===(n=r.images)||void 0===n?void 0:n.length)>0)return function(e){let{attributes:t}=e;const{images:n,columns:r=to(t),imageCrop:o,caption:a,linkTo:l}=t,c=`columns-${r} ${o?"is-cropped":""}`;return Object(je.createElement)("figure",we.useBlockProps.save({className:c}),Object(je.createElement)("ul",{className:"blocks-gallery-grid"},n.map(e=>{let t;switch(l){case"file":t=e.fullUrl||e.url;break;case"post":t=e.link}const n=Object(je.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-"+e.id:null});return Object(je.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(je.createElement)("figure",null,t?Object(je.createElement)("a",{href:t},n):n,!we.RichText.isEmpty(e.caption)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))})),!we.RichText.isEmpty(a)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))}({attributes:r});const{caption:o,columns:a,imageCrop:l}=r,c=tt()("has-nested-images",{["columns-"+a]:void 0!==a,"columns-default":void 0===a,"is-cropped":l}),i=we.useBlockProps.save({className:c}),s=we.useInnerBlocksProps.save(i);return Object(je.createElement)("figure",s,s.children,!we.RichText.isEmpty(o)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:o}))},deprecated:no};var qo=n("u6za");const Uo=e=>{if(e.tagName||(e={...e,tagName:"div"}),!e.customTextColor&&!e.customBackgroundColor)return e;const t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),{...Object(Me.omit)(e,["customTextColor","customBackgroundColor"]),style:t}};var Wo=[{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:"string"}},supports:{align:["wide","full"],anchor:!0,color:{gradients:!0,link:!0},spacing:{padding:!0},__experimentalBorder:{radius:!0}},save(e){let{attributes:t}=e;const{tagName:n}=t;return Object(je.createElement)(n,we.useBlockProps.save(),Object(je.createElement)("div",{className:"wp-block-group__inner-container"},Object(je.createElement)(we.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:Uo,save(e){let{attributes:t}=e;const{backgroundColor:n,customBackgroundColor:r,textColor:o,customTextColor:a}=t,l=Object(we.getColorClassName)("background-color",n),c=Object(we.getColorClassName)("color",o),i=tt()(l,c,{"has-text-color":o||a,"has-background":n||r}),s={backgroundColor:l?void 0:r,color:c?void 0:a};return Object(je.createElement)("div",{className:i,style:s},Object(je.createElement)("div",{className:"wp-block-group__inner-container"},Object(je.createElement)(we.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:Uo,supports:{align:["wide","full"],anchor:!0,html:!1},save(e){let{attributes:t}=e;const{backgroundColor:n,customBackgroundColor:r,textColor:o,customTextColor:a}=t,l=Object(we.getColorClassName)("background-color",n),c=Object(we.getColorClassName)("color",o),i=tt()(l,{"has-text-color":o||a,"has-background":n||r}),s={backgroundColor:l?void 0:r,color:c?void 0:a};return Object(je.createElement)("div",{className:i,style:s},Object(je.createElement)("div",{className:"wp-block-group__inner-container"},Object(je.createElement)(we.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:Uo,save(e){let{attributes:t}=e;const{backgroundColor:n,customBackgroundColor:r}=t,o=Object(we.getColorClassName)("background-color",n),a=tt()(o,{"has-background":n||r}),l={backgroundColor:o?void 0:r};return Object(je.createElement)("div",{className:a,style:l},Object(je.createElement)(we.InnerBlocks.Content,null))}}];const $o={header:Object(ke.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:Object(ke.__)("The <main> element should be used for the primary content of your document only. "),section:Object(ke.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),article:Object(ke.__)("The <article> element should represent a self contained, syndicatable portion of the document."),aside:Object(ke.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),footer:Object(ke.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).")};var Zo=function(e){let{attributes:t,setAttributes:n,clientId:r}=e;const{hasInnerBlocks:o,themeSupportsLayout:a}=Object(ze.useSelect)(e=>{var t;const{getBlock:n,getSettings:o}=e(we.store),a=n(r);return{hasInnerBlocks:!(!a||!a.innerBlocks.length),themeSupportsLayout:null===(t=o())||void 0===t?void 0:t.supportsLayout}},[r]),l=Object(we.useSetting)("layout")||{},{tagName:c="div",templateLock:i,layout:s={}}=t,u=s&&s.inherit?l:s,{type:m="default"}=u,d=a||"default"!==m,b=Object(we.useBlockProps)(),p=Object(we.useInnerBlocksProps)(d?b:{className:"wp-block-group__inner-container"},{templateLock:i,renderAppender:o?void 0:we.InnerBlocks.ButtonBlockAppender,__experimentalLayout:d?u:void 0});return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.InspectorControls,{__experimentalGroup:"advanced"},Object(je.createElement)(_e.SelectControl,{label:Object(ke.__)("HTML element"),options:[{label:Object(ke.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}],value:c,onChange:e=>n({tagName:e}),help:$o[c]})),d&&Object(je.createElement)(c,p),!d&&Object(je.createElement)(c,b,Object(je.createElement)("div",p)))};var Ko=[{name:"group-row",title:Object(ke.__)("Row"),description:Object(ke.__)("Blocks shown in a row."),attributes:{layout:{type:"flex",allowOrientation:!1}},scope:["inserter"],isActive:e=>{var t;return"flex"===(null===(t=e.layout)||void 0===t?void 0:t.type)}}];const Jo={apiVersion:2,name:"core/group",title:"Group",category:"design",description:"Combine blocks into a group.",keywords:["container","wrapper","row","section"],textdomain:"default",attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{align:["wide","full"],anchor:!0,html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},__experimentalLayout:!0},editorStyle:"wp-block-group-editor",style:"wp-block-group"},{name:Qo}=Jo,Yo={icon:qo.a,example:{attributes:{style:{color:{text:"#000000",background:"#ffffff"}}},innerBlocks:[{name:"core/paragraph",attributes:{customTextColor:"#cf2e2e",fontSize:"large",content:Object(ke.__)("One.")}},{name:"core/paragraph",attributes:{customTextColor:"#ff6900",fontSize:"large",content:Object(ke.__)("Two.")}},{name:"core/paragraph",attributes:{customTextColor:"#fcb900",fontSize:"large",content:Object(ke.__)("Three.")}},{name:"core/paragraph",attributes:{customTextColor:"#00d084",fontSize:"large",content:Object(ke.__)("Four.")}},{name:"core/paragraph",attributes:{customTextColor:"#0693e3",fontSize:"large",content:Object(ke.__)("Five.")}},{name:"core/paragraph",attributes:{customTextColor:"#9b51e0",fontSize:"large",content:Object(ke.__)("Six.")}}]},transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert(e){if(1===e.length&&"core/group"===e[0].name)return;const t=["wide","full"],n=e.reduce((e,n)=>{const{align:r}=n.attributes;return t.indexOf(r)>t.indexOf(e)?r:e},void 0),r=e.map(e=>Object(Oe.createBlock)(e.name,e.attributes,e.innerBlocks));return Object(Oe.createBlock)("core/group",{align:n},r)}}]},edit:Zo,save:function(e){let{attributes:{tagName:t}}=e;return Object(je.createElement)(t,we.useInnerBlocksProps.save(we.useBlockProps.save()))},deprecated:Wo,variations:Ko};var Xo=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M6.2 5.2v13.4l5.8-4.8 5.8 4.8V5.2z"}));const ea={className:!1,anchor:!0},ta={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"}},na=e=>{if(!e.customTextColor)return e;const t={color:{text:e.customTextColor}};return{...Object(Me.omit)(e,["customTextColor"]),style:t}},ra=["left","right","center"],oa=e=>{const{align:t,...n}=e;return ra.includes(t)?{...n,textAlign:t}:e};var aa=[{supports:{align:["wide","full"],anchor:!0,className:!1,color:{link:!0},fontSize:!0,lineHeight:!0,__experimentalSelector:{"core/heading/h1":"h1","core/heading/h2":"h2","core/heading/h3":"h3","core/heading/h4":"h4","core/heading/h5":"h5","core/heading/h6":"h6"},__unstablePasteTextInline:!0},attributes:ta,isEligible:e=>{let{align:t}=e;return ra.includes(t)},migrate:oa,save(e){let{attributes:t}=e;const{align:n,content:r,level:o}=t,a="h"+o,l=tt()({["has-text-align-"+n]:n});return Object(je.createElement)(a,we.useBlockProps.save({className:l}),Object(je.createElement)(we.RichText.Content,{value:r}))}},{supports:ea,attributes:{...ta,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>na(oa(e)),save(e){let{attributes:t}=e;const{align:n,content:r,customTextColor:o,level:a,textColor:l}=t,c="h"+a,i=Object(we.getColorClassName)("color",l),s=tt()({[i]:i,"has-text-color":l||o,["has-text-align-"+n]:n});return Object(je.createElement)(we.RichText.Content,{className:s||void 0,tagName:c,style:{color:i?void 0:o},value:r})}},{attributes:{...ta,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>na(oa(e)),save(e){let{attributes:t}=e;const{align:n,content:r,customTextColor:o,level:a,textColor:l}=t,c="h"+a,i=Object(we.getColorClassName)("color",l),s=tt()({[i]:i,["has-text-align-"+n]:n});return Object(je.createElement)(we.RichText.Content,{className:s||void 0,tagName:c,style:{color:i?void 0:o},value:r})},supports:ea},{supports:ea,attributes:{...ta,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>na(oa(e)),save(e){let{attributes:t}=e;const{align:n,level:r,content:o,textColor:a,customTextColor:l}=t,c="h"+r,i=Object(we.getColorClassName)("color",a),s=tt()({[i]:i});return Object(je.createElement)(we.RichText.Content,{className:s||void 0,tagName:c,style:{textAlign:n,color:i?void 0:l},value:o})}}];function la(e){let{level:t,isPressed:n=!1}=e;const r={1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z"};return r.hasOwnProperty(t)?Object(je.createElement)(_e.SVG,{width:"24",height:"24",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:n},Object(je.createElement)(_e.Path,{d:r[t]})):null}const ca=[1,2,3,4,5,6],ia={className:"block-library-heading-level-dropdown"};function sa(e){let{selectedLevel:t,onChange:n}=e;return Object(je.createElement)(_e.ToolbarDropdownMenu,{popoverProps:ia,icon:Object(je.createElement)(la,{level:t}),label:Object(ke.__)("Change heading level"),controls:ca.map(e=>{{const r=e===t;return{icon:Object(je.createElement)(la,{level:e,isPressed:r}),label:Object(ke.sprintf)(Object(ke.__)("Heading %d"),e),isActive:r,onClick(){n(e)}}}})})}const ua={},ma=e=>Object(Me.trim)(Object(Me.deburr)((e=>{const t=document.createElement("div");return t.innerHTML=e,t.innerText})(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase(),"-"),da=(e,t)=>{const n=ma(t);if(""===n)return null;delete ua[e];let r=n,o=0;for(;Object.values(ua).includes(r);)o+=1,r=n+"-"+o;return r},ba=(e,t)=>{ua[e]=t};var pa=function(e){let{attributes:t,setAttributes:n,mergeBlocks:r,onReplace:o,style:a,clientId:l}=e;const{textAlign:c,content:i,level:s,placeholder:u,anchor:m}=t,d="h"+s,b=Object(we.useBlockProps)({className:tt()({["has-text-align-"+c]:c}),style:a}),{__unstableMarkNextChangeAsNotPersistent:p}=Object(ze.useDispatch)(we.store);return Object(je.useEffect)(()=>(!m&&i&&(p(),n({anchor:da(l,i)})),ba(l,m),()=>ba(l,null)),[i,m]),Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(sa,{selectedLevel:s,onChange:e=>n({level:e})}),Object(je.createElement)(we.AlignmentControl,{value:c,onChange:e=>{n({textAlign:e})}})),Object(je.createElement)(we.RichText,Object(mt.a)({identifier:"content",tagName:d,value:i,onChange:e=>{const t={content:e};m&&e&&da(l,i)!==m||(t.anchor=da(l,e)),n(t)},onMerge:r,onSplit:(e,n)=>{let r;var o;n||e?r=Object(Oe.createBlock)("core/heading",{...t,content:e}):r=Object(Oe.createBlock)(null!==(o=Object(Oe.getDefaultBlockName)())&&void 0!==o?o:"core/heading");return n&&(r.clientId=l),r},onReplace:o,onRemove:()=>o([]),"aria-label":Object(ke.__)("Heading text"),placeholder:u||Object(ke.__)("Heading"),textAlign:c},b)))};const{name:ga}={apiVersion:2,name:"core/heading",title:"Heading",category:"text",description:"Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.",keywords:["title","subtitle"],textdomain:"default",attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",__experimentalRole:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},supports:{align:["wide","full"],anchor:!0,className:!1,color:{link:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}},__experimentalSelector:"h1,h2,h3,h4,h5,h6",__unstablePasteTextInline:!0,__experimentalSlashInserter:!0},editorStyle:"wp-block-heading-editor",style:"wp-block-heading"};var ha={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map(e=>{let{content:t,anchor:n}=e;return Object(Oe.createBlock)(ga,{content:t,anchor:n})})},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:e=>{let{phrasingContentSchema:t,isPaste:n}=e;const r={children:t,attributes:n?[]:["style","id"]};return{h1:r,h2:r,h3:r,h4:r,h5:r,h6:r}},transform(e){const t=Object(Oe.getBlockAttributes)(ga,e.outerHTML),{textAlign:n}=e.style||{};var r;return t.level=(r=e.nodeName,Number(r.substr(1))),"left"!==n&&"center"!==n&&"right"!==n||(t.align=n),Object(Oe.createBlock)(ga,t)}},...[1,2,3,4,5,6].map(e=>({type:"prefix",prefix:Array(e+1).join("#"),transform:t=>Object(Oe.createBlock)(ga,{level:e,content:t})})),...[1,2,3,4,5,6].map(e=>({type:"enter",regExp:new RegExp(`^/(h|H)${e}$`),transform:t=>Object(Oe.createBlock)(ga,{level:e,content:t})}))],to:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map(e=>{let{content:t,anchor:n}=e;return Object(Oe.createBlock)("core/paragraph",{content:t,anchor:n})})}]};const va={apiVersion:2,name:"core/heading",title:"Heading",category:"text",description:"Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.",keywords:["title","subtitle"],textdomain:"default",attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",__experimentalRole:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},supports:{align:["wide","full"],anchor:!0,className:!1,color:{link:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}},__experimentalSelector:"h1,h2,h3,h4,h5,h6",__unstablePasteTextInline:!0,__experimentalSlashInserter:!0},editorStyle:"wp-block-heading-editor",style:"wp-block-heading"},{name:Oa}=va,ja={icon:Xo,example:{attributes:{content:Object(ke.__)("Code is Poetry"),level:2}},__experimentalLabel(e,t){let{context:n}=t;if("accessibility"===n){const{content:t,level:n}=e;return Object(Me.isEmpty)(t)?Object(ke.sprintf)(Object(ke.__)("Level %s. Empty."),n):Object(ke.sprintf)(Object(ke.__)("Level %1$s. %2$s"),n,t)}},transforms:ha,deprecated:aa,merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),edit:pa,save:function(e){let{attributes:t}=e;const{textAlign:n,content:r,level:o}=t,a="h"+o,l=tt()({["has-text-align-"+n]:n});return Object(je.createElement)(a,we.useBlockProps.save({className:l}),Object(je.createElement)(we.RichText.Content,{value:r}))}};var ya=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M4.8 11.4H2.1V9H1v6h1.1v-2.6h2.7V15h1.1V9H4.8v2.4zm1.9-1.3h1.7V15h1.1v-4.9h1.7V9H6.7v1.1zM16.2 9l-1.5 2.7L13.3 9h-.9l-.8 6h1.1l.5-4 1.5 2.8 1.5-2.8.5 4h1.1L17 9h-.8zm3.8 5V9h-1.1v6h3.6v-1H20z"}));var fa={from:[{type:"block",blocks:["core/code"],transform:e=>{let{content:t}=e;return Object(Oe.createBlock)("core/html",{content:t})}}]};const _a={apiVersion:2,name:"core/html",title:"Custom HTML",category:"widgets",description:"Add custom HTML code and preview it as you edit.",keywords:["embed"],textdomain:"default",attributes:{content:{type:"string",source:"html"}},supports:{customClassName:!1,className:!1,html:!1},editorStyle:"wp-block-html-editor"},{name:ka}=_a,wa={icon:ya,example:{attributes:{content:"<marquee>"+Object(ke.__)("Welcome to the wonderful world of blocks…")+"</marquee>"}},edit:function(e){let{attributes:t,setAttributes:n,isSelected:r}=e;const[o,a]=Object(je.useState)(),l=Object(ze.useSelect)(e=>["\n\t\t\thtml,body,:root {\n\t\t\t\tmargin: 0 !important;\n\t\t\t\tpadding: 0 !important;\n\t\t\t\toverflow: visible !important;\n\t\t\t\tmin-height: auto !important;\n\t\t\t}\n\t\t",...Object(we.transformStyles)(e(we.store).getSettings().styles)],[]);return Object(je.createElement)("div",Object(we.useBlockProps)({className:"block-library-html__edit"}),Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(_e.ToolbarGroup,null,Object(je.createElement)(_e.ToolbarButton,{className:"components-tab-button",isPressed:!o,onClick:function(){a(!1)}},Object(je.createElement)("span",null,"HTML")),Object(je.createElement)(_e.ToolbarButton,{className:"components-tab-button",isPressed:o,onClick:function(){a(!0)}},Object(je.createElement)("span",null,Object(ke.__)("Preview"))))),Object(je.createElement)(_e.Disabled.Consumer,null,e=>o||e?Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.SandBox,{html:t.content,styles:l}),!r&&Object(je.createElement)("div",{className:"block-library-html__preview-overlay"})):Object(je.createElement)(we.PlainText,{value:t.content,onChange:e=>n({content:e}),placeholder:Object(ke.__)("Write HTML…"),"aria-label":Object(ke.__)("HTML")})))},save:function(e){let{attributes:t}=e;return Object(je.createElement)(je.RawHTML,null,t.content)},transforms:fa},Ea={align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}};var Ca=[{attributes:Ea,save(e){let{attributes:t}=e;const{url:n,alt:r,caption:o,align:a,href:l,width:c,height:i,id:s}=t,u=tt()({["align"+a]:a,"is-resized":c||i}),m=Object(je.createElement)("img",{src:n,alt:r,className:s?"wp-image-"+s:null,width:c,height:i});return Object(je.createElement)("figure",{className:u},l?Object(je.createElement)("a",{href:l},m):m,!we.RichText.isEmpty(o)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:Ea,save(e){let{attributes:t}=e;const{url:n,alt:r,caption:o,align:a,href:l,width:c,height:i,id:s}=t,u=Object(je.createElement)("img",{src:n,alt:r,className:s?"wp-image-"+s:null,width:c,height:i});return Object(je.createElement)("figure",{className:a?"align"+a:null},l?Object(je.createElement)("a",{href:l},u):u,!we.RichText.isEmpty(o)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:Ea,save(e){let{attributes:t}=e;const{url:n,alt:r,caption:o,align:a,href:l,width:c,height:i}=t,s=c||i?{width:c,height:i}:{},u=Object(je.createElement)("img",Object(mt.a)({src:n,alt:r},s));let m={};return c?m={width:c}:"left"!==a&&"right"!==a||(m={maxWidth:"50%"}),Object(je.createElement)("figure",{className:a?"align"+a:null,style:m},l?Object(je.createElement)("a",{href:l},u):u,!we.RichText.isEmpty(o)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",value:o}))}}];var xa=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M16.5 7.8v7H18v-7c0-1-.8-1.8-1.8-1.8h-7v1.5h7c.2 0 .3.1.3.3zm-8.7 8.7c-.1 0-.2-.1-.2-.2V2H6v4H2v1.5h4v8.8c0 1 .8 1.8 1.8 1.8h8.8v4H18v-4h4v-1.5H7.8z"})),Sa=n("NTP4");var Ba=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12-9.8c.4 0 .8-.3.9-.7l1.1-3h3.6l.5 1.7h1.9L13 9h-2.2l-3.4 9.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12H20V6c0-1.1-.9-2-2-2zm-6 7l1.4 3.9h-2.7L12 11z"}));function Ta(e,t){const[n,r]=Object(je.useState)();function o(){r(e.current.clientWidth)}return Object(je.useEffect)(o,t),Object(je.useEffect)(()=>{const{defaultView:t}=e.current.ownerDocument;return t.addEventListener("resize",o),()=>{t.removeEventListener("resize",o)}},[]),n}function Na(e){let{temporaryURL:t,attributes:{url:n="",alt:r,caption:o,align:a,id:l,href:c,rel:i,linkClass:s,linkDestination:u,title:m,width:d,height:b,linkTarget:p,sizeSlug:g},setAttributes:h,isSelected:v,insertBlocksAfter:O,onReplace:j,onSelectImage:y,onSelectURL:f,onUploadError:_,containerRef:k,context:w,clientId:E}=e;const C=Object(je.useRef)(),x=Object(nt.usePrevious)(n),{allowResize:S=!0}=w,{getBlock:B}=Object(ze.useSelect)(we.store),{image:T,multiImageSelection:N}=Object(ze.useSelect)(e=>{const{getMedia:t}=e(It.store),{getMultiSelectedBlockClientIds:n,getBlockName:r}=e(we.store),o=n();return{image:l&&v?t(l):null,multiImageSelection:o.length&&o.every(e=>"core/image"===r(e))}},[l,v]),{canInsertCover:P,imageEditing:z,imageSizes:I,maxWidth:M,mediaUpload:R}=Object(ze.useSelect)(e=>{const{getBlockRootClientId:t,getSettings:n,canInsertBlockType:r}=e(we.store),o=t(E);return{...Object(Me.pick)(n(),["imageEditing","imageSizes","maxWidth","mediaUpload"]),canInsertCover:r("core/cover",o)}},[E]),{replaceBlocks:L,toggleSelection:V}=Object(ze.useDispatch)(we.store),{createErrorNotice:A,createSuccessNotice:H}=Object(ze.useDispatch)(Fr.store),F=Object(nt.useViewportMatch)("medium"),D=Object(Me.includes)(["wide","full"],a),[{naturalWidth:G,naturalHeight:q},U]=Object(je.useState)({}),[W,$]=Object(je.useState)(!1),[Z,K]=Object(je.useState)(),J=Ta(k,[a]),Q=S&&!(D&&F),Y=Object(Me.map)(Object(Me.filter)(I,e=>{let{slug:t}=e;return Object(Me.get)(T,["media_details","sizes",t,"source_url"])}),e=>{let{name:t,slug:n}=e;return{value:n,label:t}});Object(je.useEffect)(()=>{Pa(l,n)&&v&&!Z&&window.fetch(n).then(e=>e.blob()).then(e=>K(e)).catch(()=>{})},[l,n,v,Z]),Object(je.useEffect)(()=>{n&&!x&&v&&C.current.focus()},[n,x]),Object(je.useEffect)(()=>{v||$(!1)},[v]);const X=l&&G&&q&&z,ee=!N&&X&&!W;const te=Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(we.BlockAlignmentControl,{value:a,onChange:function(e){const t=["wide","full"].includes(e)?{width:void 0,height:void 0}:{};h({...t,align:e})}}),!N&&!W&&Object(je.createElement)(we.__experimentalImageURLInputUI,{url:c||"",onChangeUrl:function(e){h(e)},linkDestination:u,mediaUrl:T&&T.source_url||n,mediaLink:T&&T.link,linkTarget:p,linkClass:s,rel:i}),ee&&Object(je.createElement)(_e.ToolbarButton,{onClick:()=>$(!0),icon:xa,label:Object(ke.__)("Crop")}),Z&&Object(je.createElement)(_e.ToolbarButton,{onClick:function(){R({filesList:[Z],onFileChange(e){let[t]=e;y(t),Object(Pe.isBlobURL)(t.url)||(K(),H(Object(ke.__)("Image uploaded."),{type:"snackbar"}))},allowedTypes:co,onError(e){A(e,{type:"snackbar"})}})},icon:Sa.a,label:Object(ke.__)("Upload external image")}),!N&&P&&Object(je.createElement)(_e.ToolbarButton,{icon:Ba,label:Object(ke.__)("Add text over image"),onClick:function(){L(E,Object(Oe.switchToBlockType)(B(E),"core/cover"))}})),!N&&!W&&Object(je.createElement)(we.BlockControls,{group:"other"},Object(je.createElement)(we.MediaReplaceFlow,{mediaId:l,mediaURL:n,allowedTypes:co,accept:"image/*",onSelect:y,onSelectURL:f,onError:_})),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Image settings")},!N&&Object(je.createElement)(_e.TextareaControl,{label:Object(ke.__)("Alt text (alternative text)"),value:r,onChange:function(e){h({alt:e})},help:Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(ke.__)("Describe the purpose of the image")),Object(ke.__)("Leave empty if the image is purely decorative."))}),Object(je.createElement)(we.__experimentalImageSizeControl,{onChangeImage:function(e){const t=Object(Me.get)(T,["media_details","sizes",e,"source_url"]);if(!t)return null;h({url:t,width:void 0,height:void 0,sizeSlug:e})},onChange:e=>h(e),slug:g,width:d,height:b,imageSizeOptions:Y,isResizable:Q,imageWidth:G,imageHeight:q}))),Object(je.createElement)(we.InspectorControls,{__experimentalGroup:"advanced"},Object(je.createElement)(_e.TextControl,{label:Object(ke.__)("Title attribute"),value:m||"",onChange:function(e){h({title:e})},help:Object(je.createElement)(je.Fragment,null,Object(ke.__)("Describe the role of this image on the page."),Object(je.createElement)(_e.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"},Object(ke.__)("(Note: many devices and browsers do not display this text.)")))}))),ne=Object(Kr.getFilename)(n);let re;re=r||(ne?Object(ke.sprintf)(Object(ke.__)("This image has an empty alt attribute; its file name is %s"),ne):Object(ke.__)("This image has an empty alt attribute"));let oe,ae,le=Object(je.createElement)(je.Fragment,null,Object(je.createElement)("img",{src:t||n,alt:re,onError:()=>function(){const e=Ge({attributes:{url:n}});void 0!==e&&j(e)}(),onLoad:e=>{U(Object(Me.pick)(e.target,["naturalWidth","naturalHeight"]))}}),t&&Object(je.createElement)(_e.Spinner,null));if(J&&G&&q){const e=G>J,t=q/G;oe=e?J:G,ae=e?J*t:q}if(X&&W)le=Object(je.createElement)(we.__experimentalImageEditor,{url:n,width:d,height:b,clientWidth:J,naturalHeight:q,naturalWidth:G});else if(Q&&oe){const e=d||oe,t=b||ae,n=G/q,r=G<q?20:20*n,o=q<G?20:20/n,l=2.5*M;let c=!1,i=!1;"center"===a?(c=!0,i=!0):Object(ke.isRTL)()?"left"===a?c=!0:i=!0:"right"===a?i=!0:c=!0,le=Object(je.createElement)(_e.ResizableBox,{size:{width:null!=d?d:"auto",height:null!=b?b:"auto"},showHandle:v,minWidth:r,maxWidth:l,minHeight:o,maxHeight:l/n,lockAspectRatio:!0,enable:{top:!1,right:c,bottom:!0,left:i},onResizeStart:function(){V(!1)},onResizeStop:(n,r,o,a)=>{V(!0),h({width:parseInt(e+a.width,10),height:parseInt(t+a.height,10)})}},le)}else le=Object(je.createElement)("div",{style:{width:d,height:b}},le);return Object(je.createElement)(we.__experimentalImageEditingProvider,{id:l,url:n,naturalWidth:G,naturalHeight:q,clientWidth:J,onSaveImage:e=>h(e),isEditing:W,onFinishEditing:()=>$(!1)},!t&&te,le,(!we.RichText.isEmpty(o)||v)&&Object(je.createElement)(we.RichText,{ref:C,tagName:"figcaption","aria-label":Object(ke.__)("Image caption text"),placeholder:Object(ke.__)("Add caption"),value:o,onChange:e=>h({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>O(Object(Oe.createBlock)("core/paragraph"))}))}const Pa=(e,t)=>t&&!e&&!Object(Pe.isBlobURL)(t);var za=Object(_e.withNotices)((function(e){let{attributes:t,setAttributes:n,isSelected:r,className:o,noticeUI:a,insertBlocksAfter:l,noticeOperations:c,onReplace:i,context:s,clientId:u}=e;const{url:m="",alt:d,caption:b,align:p,id:g,width:h,height:v,sizeSlug:O}=t,[j,y]=Object(je.useState)(),f=Object(je.useRef)();Object(je.useEffect)(()=>{f.current=d},[d]);const _=Object(je.useRef)();Object(je.useEffect)(()=>{_.current=b},[b]);const k=Object(je.useRef)(),{imageDefaultSize:w,mediaUpload:E}=Object(ze.useSelect)(e=>{const{getSettings:t}=e(we.store);return Object(Me.pick)(t(),["imageDefaultSize","mediaUpload"])},[]);function C(e){c.removeAllNotices(),c.createErrorNotice(e)}function x(e){var r,o,a,l,c;if(!e||!e.url)return void n({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0});if(Object(Pe.isBlobURL)(e.url))return void y(e.url);y();let i,s=((e,t)=>{const n=Object(Me.pick)(e,["alt","id","link","caption"]);return n.url=Object(Me.get)(e,["sizes",t,"url"])||Object(Me.get)(e,["media_details","sizes",t,"source_url"])||e.url,n})(e,w);var u,d;_.current&&!Object(Me.get)(s,["caption"])&&(s=Object(Me.omit)(s,["caption"])),i=e.id&&e.id===g?{url:m}:{width:void 0,height:void 0,sizeSlug:(u=e,d=w,Object(Me.has)(u,["sizes",d,"url"])||Object(Me.has)(u,["media_details","sizes",d,"source_url"])?w:"full")};let b,p=t.linkDestination;if(!p)switch((null===(r=wp)||void 0===r||null===(o=r.media)||void 0===o||null===(a=o.view)||void 0===a||null===(l=a.settings)||void 0===l||null===(c=l.defaultProps)||void 0===c?void 0:c.link)||"none"){case"file":case"media":p="media";break;case"post":case"attachment":p="attachment";break;case"custom":p="custom";break;case"none":p="none"}switch(p){case"media":b=e.url;break;case"attachment":b=e.link}s.href=b,n({...s,...i,linkDestination:p})}function S(e){e!==m&&n({url:e,id:void 0,width:void 0,height:void 0,sizeSlug:w})}let B=((e,t)=>!e&&Object(Pe.isBlobURL)(t))(g,m);Object(je.useEffect)(()=>{if(!B)return;const e=Object(Pe.getBlobByURL)(m);e&&E({filesList:[e],onFileChange:e=>{let[t]=e;x(t)},allowedTypes:co,onError:e=>{B=!1,c.createErrorNotice(e),n({src:void 0,id:void 0,url:void 0})}})},[]),Object(je.useEffect)(()=>{B?y(m):Object(Pe.revokeBlobURL)(j)},[B,m]);const T=Pa(g,m)?m:void 0,N=!!m&&Object(je.createElement)("img",{alt:Object(ke.__)("Edit image"),title:Object(ke.__)("Edit image"),className:"edit-image-preview",src:m}),P=tt()(o,{"is-transient":j,"is-resized":!!h||!!v,["size-"+O]:O}),z=Object(we.useBlockProps)({ref:k,className:P});return Object(je.createElement)("figure",z,(j||m)&&Object(je.createElement)(Na,{temporaryURL:j,attributes:t,setAttributes:n,isSelected:r,insertBlocksAfter:l,onReplace:i,onSelectImage:x,onSelectURL:S,onUploadError:C,containerRef:k,context:s,clientId:u}),!m&&Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(we.BlockAlignmentControl,{value:p,onChange:function(e){const t=["wide","full"].includes(e)?{width:void 0,height:void 0}:{};n({...t,align:e})}})),Object(je.createElement)(we.MediaPlaceholder,{icon:Object(je.createElement)(we.BlockIcon,{icon:ko}),onSelect:x,onSelectURL:S,notices:a,onError:C,accept:"image/*",allowedTypes:co,value:{id:g,src:T},mediaPreview:N,disableMediaButtons:j||m}))}));function Ia(e,t){const{body:n}=document.implementation.createHTMLDocument("");n.innerHTML=e;const{firstElementChild:r}=n;if(r&&"A"===r.nodeName)return r.getAttribute(t)||void 0}const Ma={img:{attributes:["src","alt","title"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}};var Ra={from:[{type:"raw",isMatch:e=>"FIGURE"===e.nodeName&&!!e.querySelector("img"),schema:e=>{let{phrasingContentSchema:t}=e;return{figure:{require:["img"],children:{...Ma,a:{attributes:["href","rel","target"],children:Ma},figcaption:{children:t}}}}},transform:e=>{const t=e.className+" "+e.querySelector("img").className,n=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),r=""===e.id?void 0:e.id,o=n?n[1]:void 0,a=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),l=a?Number(a[1]):void 0,c=e.querySelector("a"),i=c&&c.href?"custom":void 0,s=c&&c.href?c.href:void 0,u=c&&c.rel?c.rel:void 0,m=c&&c.className?c.className:void 0,d=Object(Oe.getBlockAttributes)("core/image",e.outerHTML,{align:o,id:l,linkDestination:i,href:s,rel:u,linkClass:m,anchor:r});return Object(Oe.createBlock)("core/image",d)}},{type:"files",isMatch(e){if(e.some(e=>0===e.type.indexOf("image/"))&&e.some(e=>0!==e.type.indexOf("image/"))){const{createErrorNotice:e}=Object(ze.dispatch)(Fr.store);e(Object(ke.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-transform-invalid-file"})}return Object(Me.every)(e,e=>0===e.type.indexOf("image/"))},transform:e=>e.map(e=>Object(Oe.createBlock)("core/image",{url:Object(Pe.createBlobURL)(e)}))},{type:"shortcode",tag:"caption",attributes:{url:{type:"string",source:"attribute",attribute:"src",selector:"img"},alt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},caption:{shortcode:function(e,t){let{shortcode:n}=t;const{body:r}=document.implementation.createHTMLDocument("");r.innerHTML=n.content;let o=r.querySelector("img");for(;o&&o.parentNode&&o.parentNode!==r;)o=o.parentNode;return o&&o.parentNode.removeChild(o),r.innerHTML.trim()}},href:{shortcode:(e,t)=>{let{shortcode:n}=t;return Ia(n.content,"href")}},rel:{shortcode:(e,t)=>{let{shortcode:n}=t;return Ia(n.content,"rel")}},linkClass:{shortcode:(e,t)=>{let{shortcode:n}=t;return Ia(n.content,"class")}},id:{type:"number",shortcode:e=>{let{named:{id:t}}=e;if(t)return parseInt(t.replace("attachment_",""),10)}},align:{type:"string",shortcode:e=>{let{named:{align:t="alignnone"}}=e;return t.replace("align","")}}}}]};const La={apiVersion:2,name:"core/image",title:"Image",category:"media",usesContext:["allowResize","imageCrop","fixedHeight"],description:"Insert an image to make a visual statement.",keywords:["img","photo","picture"],textdomain:"default",attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{__experimentalDuotone:"img",text:!1,background:!1},__experimentalBorder:{radius:!0}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],editorStyle:"wp-block-image-editor",style:"wp-block-image"},{name:Va}=La,Aa={icon:ko,example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:Object(ke.__)("Mont Blanc appears—still, snowy, and serene.")}},__experimentalLabel(e,t){let{context:n}=t;if("accessibility"===n){const{caption:t,alt:n,url:r}=e;return r?n?n+(t?". "+t:""):t||"":Object(ke.__)("Empty")}},getEditWrapperProps:e=>({"data-align":e.align}),transforms:Ra,edit:za,save:function(e){let{attributes:t}=e;const{url:n,alt:r,caption:o,align:a,href:l,rel:c,linkClass:i,width:s,height:u,id:m,linkTarget:d,sizeSlug:b,title:p}=t,g=Object(Me.isEmpty)(c)?void 0:c,h=tt()({["align"+a]:a,["size-"+b]:b,"is-resized":s||u}),v=Object(je.createElement)("img",{src:n,alt:r,className:m?"wp-image-"+m:null,width:s,height:u,title:p}),O=Object(je.createElement)(je.Fragment,null,l?Object(je.createElement)("a",{className:i,href:l,target:d,rel:g},v):v,!we.RichText.isEmpty(o)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",value:o}));return"left"===a||"right"===a||"center"===a?Object(je.createElement)("div",we.useBlockProps.save(),Object(je.createElement)("figure",{className:h},O)):Object(je.createElement)("figure",we.useBlockProps.save({className:h}),O)},deprecated:Ca};var Ha=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"}));const Fa={apiVersion:2,name:"core/latest-comments",title:"Latest Comments",category:"widgets",description:"Display a list of your most recent comments.",keywords:["recent comments"],textdomain:"default",attributes:{commentsToShow:{type:"number",default:5,minimum:1,maximum:100},displayAvatar:{type:"boolean",default:!0},displayDate:{type:"boolean",default:!0},displayExcerpt:{type:"boolean",default:!0}},supports:{align:!0,html:!1},editorStyle:"wp-block-latest-comments-editor",style:"wp-block-latest-comments"},{name:Da}=Fa,Ga={icon:Ha,example:{},edit:function(e){let{attributes:t,setAttributes:n}=e;const{commentsToShow:r,displayAvatar:o,displayDate:a,displayExcerpt:l}=t;return Object(je.createElement)("div",Object(we.useBlockProps)(),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Latest comments settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Display avatar"),checked:o,onChange:()=>n({displayAvatar:!o})}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Display date"),checked:a,onChange:()=>n({displayDate:!a})}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Display excerpt"),checked:l,onChange:()=>n({displayExcerpt:!l})}),Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Number of comments"),value:r,onChange:e=>n({commentsToShow:e}),min:1,max:100,required:!0}))),Object(je.createElement)(_e.Disabled,null,Object(je.createElement)(Ce.a,{block:"core/latest-comments",attributes:t,urlQueryArgs:{_locale:"site"}})))}};var qa=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 11h2V9H7v2zm0 4h2v-2H7v2zm3-4h7V9h-7v2zm0 4h7v-2h-7v2z"}));const{attributes:Ua}={apiVersion:2,name:"core/latest-posts",title:"Latest Posts",category:"widgets",description:"Display a list of your most recent posts.",keywords:["recent posts"],textdomain:"default",attributes:{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{align:!0,html:!1},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"};var Wa=[{attributes:{...Ua,categories:{type:"string"}},supports:{align:!0,html:!1},migrate:e=>({...e,categories:[{id:Number(e.categories)}]}),isEligible:e=>{let{categories:t}=e;return t&&"string"==typeof t},save:()=>null}],$a=n("FqII");var Za=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"})),Ka=n("b2RC");const Ja={per_page:-1,context:"view"},Qa={per_page:-1,has_published_posts:["post"],context:"view"};const Ya={apiVersion:2,name:"core/latest-posts",title:"Latest Posts",category:"widgets",description:"Display a list of your most recent posts.",keywords:["recent posts"],textdomain:"default",attributes:{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{align:!0,html:!1},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"},{name:Xa}=Ya,el={icon:qa,example:{},edit:function(e){var t;let{attributes:n,setAttributes:r}=e;const{postsToShow:o,order:a,orderBy:l,categories:c,selectedAuthor:i,displayFeaturedImage:s,displayPostContentRadio:u,displayPostContent:m,displayPostDate:d,displayAuthor:b,postLayout:p,columns:g,excerptLength:h,featuredImageAlign:v,featuredImageSizeSlug:O,featuredImageSizeWidth:j,featuredImageSizeHeight:y,addLinkToFeaturedImage:f}=n,{imageSizeOptions:_,latestPosts:k,defaultImageWidth:w,defaultImageHeight:E,categoriesList:C,authorList:x}=Object(ze.useSelect)(e=>{const{getEntityRecords:t,getMedia:n,getUsers:r}=e(It.store),{getSettings:s}=e(we.store),{imageSizes:u,imageDimensions:m}=s(),d=c&&c.length>0?c.map(e=>e.id):[],b=t("postType","post",Object(Me.pickBy)({categories:d,author:i,order:a,orderby:l,per_page:o},e=>!Object(Me.isUndefined)(e)));return{defaultImageWidth:Object(Me.get)(m,[O,"width"],0),defaultImageHeight:Object(Me.get)(m,[O,"height"],0),imageSizeOptions:u.filter(e=>{let{slug:t}=e;return"full"!==t}).map(e=>{let{name:t,slug:n}=e;return{value:n,label:t}}),latestPosts:Array.isArray(b)?b.map(e=>{if(!e.featured_media)return e;const t=n(e.featured_media);let r=Object(Me.get)(t,["media_details","sizes",O,"source_url"],null);r||(r=Object(Me.get)(t,"source_url",null));const o={url:r,alt:null==t?void 0:t.alt_text};return{...e,featuredImageInfo:o}}):b,categoriesList:t("taxonomy","category",Ja),authorList:r(Qa)}},[O,o,a,l,c,i]),S=null!==(t=null==C?void 0:C.reduce((e,t)=>({...e,[t.name]:t}),{}))&&void 0!==t?t:{},B=!(null==k||!k.length),T=Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Post content settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Post content"),checked:m,onChange:e=>r({displayPostContent:e})}),m&&Object(je.createElement)(_e.RadioControl,{label:Object(ke.__)("Show:"),selected:u,options:[{label:Object(ke.__)("Excerpt"),value:"excerpt"},{label:Object(ke.__)("Full post"),value:"full_post"}],onChange:e=>r({displayPostContentRadio:e})}),m&&"excerpt"===u&&Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Max number of words in excerpt"),value:h,onChange:e=>r({excerptLength:e}),min:10,max:100})),Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Post meta settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Display author name"),checked:b,onChange:e=>r({displayAuthor:e})}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Display post date"),checked:d,onChange:e=>r({displayPostDate:e})})),Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Featured image settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Display featured image"),checked:s,onChange:e=>r({displayFeaturedImage:e})}),s&&Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.__experimentalImageSizeControl,{onChange:e=>{const t={};e.hasOwnProperty("width")&&(t.featuredImageSizeWidth=e.width),e.hasOwnProperty("height")&&(t.featuredImageSizeHeight=e.height),r(t)},slug:O,width:j,height:y,imageWidth:w,imageHeight:E,imageSizeOptions:_,onChangeImage:e=>r({featuredImageSizeSlug:e,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})}),Object(je.createElement)(_e.BaseControl,{className:"block-editor-image-alignment-control__row"},Object(je.createElement)(_e.BaseControl.VisualLabel,null,Object(ke.__)("Image alignment")),Object(je.createElement)(we.BlockAlignmentToolbar,{value:v,onChange:e=>r({featuredImageAlign:e}),controls:["left","center","right"],isCollapsed:!1})),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Add link to featured image"),checked:f,onChange:e=>r({addLinkToFeaturedImage:e})}))),Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Sorting and filtering")},Object(je.createElement)(_e.QueryControls,{order:a,orderBy:l,numberOfItems:o,onOrderChange:e=>r({order:e}),onOrderByChange:e=>r({orderBy:e}),onNumberOfItemsChange:e=>r({postsToShow:e}),categorySuggestions:S,onCategoryChange:e=>{if(e.some(e=>"string"==typeof e&&!S[e]))return;const t=e.map(e=>"string"==typeof e?S[e]:e);if(Object(Me.includes)(t,null))return!1;r({categories:t})},selectedCategories:c,onAuthorChange:e=>r({selectedAuthor:""!==e?Number(e):void 0}),authorList:null!=x?x:[],selectedAuthorId:i}),"grid"===p&&Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Columns"),value:g,onChange:e=>r({columns:e}),min:2,max:B?Math.min(6,k.length):6,required:!0}))),N=Object(we.useBlockProps)({className:tt()({"wp-block-latest-posts__list":!0,"is-grid":"grid"===p,"has-dates":d,"has-author":b,["columns-"+g]:"grid"===p})});if(!B)return Object(je.createElement)("div",N,T,Object(je.createElement)(_e.Placeholder,{icon:Ht,label:Object(ke.__)("Latest Posts")},Array.isArray(k)?Object(ke.__)("No posts found."):Object(je.createElement)(_e.Spinner,null)));const P=k.length>o?k.slice(0,o):k,z=[{icon:Za,title:Object(ke.__)("List view"),onClick:()=>r({postLayout:"list"}),isActive:"list"===p},{icon:Ka.a,title:Object(ke.__)("Grid view"),onClick:()=>r({postLayout:"grid"}),isActive:"grid"===p}],I=Object($a.__experimentalGetSettings)().formats.date;return Object(je.createElement)("div",null,T,Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(_e.ToolbarGroup,{controls:z})),Object(je.createElement)("ul",N,P.map((e,t)=>{const n=Object(Me.invoke)(e,["title","rendered","trim"]);let r=e.excerpt.rendered;const o=null==x?void 0:x.find(t=>t.id===e.author),a=document.createElement("div");a.innerHTML=r,r=a.textContent||a.innerText||"";const{featuredImageInfo:{url:l,alt:c}={}}=e,i=tt()({"wp-block-latest-posts__featured-image":!0,["align"+v]:!!v}),p=s&&l,g=p&&Object(je.createElement)("img",{src:l,alt:c,style:{maxWidth:j,maxHeight:y}}),O=h<r.trim().split(" ").length&&""===e.excerpt.raw?Object(je.createElement)(je.Fragment,null,r.trim().split(" ",h).join(" "),Object(ke.__)(" … "),Object(je.createElement)("a",{href:e.link,rel:"noopener noreferrer"},Object(ke.__)("Read more"))):r;return Object(je.createElement)("li",{key:t},p&&Object(je.createElement)("div",{className:i},f?Object(je.createElement)("a",{href:e.link,rel:"noreferrer noopener"},g):g),Object(je.createElement)("a",{href:e.link,rel:"noreferrer noopener"},n?Object(je.createElement)(je.RawHTML,null,n):Object(ke.__)("(no title)")),b&&o&&Object(je.createElement)("div",{className:"wp-block-latest-posts__post-author"},Object(ke.sprintf)(Object(ke.__)("by %s"),o.name)),d&&e.date_gmt&&Object(je.createElement)("time",{dateTime:Object($a.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date"},Object($a.dateI18n)(I,e.date_gmt)),m&&"excerpt"===u&&Object(je.createElement)("div",{className:"wp-block-latest-posts__post-excerpt"},O),m&&"full_post"===u&&Object(je.createElement)("div",{className:"wp-block-latest-posts__post-full-content"},Object(je.createElement)(je.RawHTML,{key:"html"},e.content.raw.trim())))})))},deprecated:Wa};var tl=[{attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0},color:{gradients:!0,link:!0},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save(e){let{attributes:t}=e;const{ordered:n,values:r,type:o,reversed:a,start:l}=t,c=n?"ol":"ul";return Object(je.createElement)(c,we.useBlockProps.save({type:o,reversed:a,start:l}),Object(je.createElement)(we.RichText.Content,{value:r,multiline:"li"}))},migrate:at,isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}}];var nl=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M4 8.8h8.9V7.2H4v1.6zm0 7h8.9v-1.5H4v1.5zM18 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"}));var rl=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}));var ol=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M3.8 15.8h8.9v-1.5H3.8v1.5zm0-7h8.9V7.2H3.8v1.6zm14.7-2.1V10h1V5.3l-2.2.7.3 1 .9-.3zm1.2 6.1c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5H20v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3 0-.8-.3-1.1z"}));var al=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM5 6.7V10h1V5.3L3.8 6l.4 1 .8-.3zm-.4 5.7c-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-1c.3-.6.8-1.4.9-2.1.1-.3 0-.8-.2-1.1-.5-.6-1.3-.5-1.7-.4z"}));var ll=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM15.4697 14.9697L18.4393 12L15.4697 9.03033L16.5303 7.96967L20.0303 11.4697L20.5607 12L20.0303 12.5303L16.5303 16.0303L15.4697 14.9697Z"}));var cl=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-4-4.6l-4 4 4 4 1-1-3-3 3-3-1-1z"}));var il=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM20.0303 9.03033L17.0607 12L20.0303 14.9697L18.9697 16.0303L15.4697 12.5303L14.9393 12L15.4697 11.4697L18.9697 7.96967L20.0303 9.03033Z"}));var sl=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-8-3.5l3 3-3 3 1 1 4-4-4-4-1 1z"}));var ul=e=>{let{setAttributes:t,reversed:n,start:r}=e;return Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Ordered list settings")},Object(je.createElement)(_e.TextControl,{label:Object(ke.__)("Start value"),type:"number",onChange:e=>{const n=parseInt(e,10);t({start:isNaN(n)?void 0:n})},value:Number.isInteger(r)?r.toString(10):"",step:"1"}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Reverse list numbering"),checked:n||!1,onChange:e=>{t({reversed:e||void 0})}})))};function ml(e){let{phrasingContentSchema:t}=e;const n={...t,ul:{},ol:{attributes:["type","start","reversed"]}};return["ul","ol"].forEach(e=>{n[e].children={li:{children:n}}}),n}var dl={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:e=>Object(Oe.createBlock)("core/list",{values:Object(kt.toHTMLString)({value:Object(kt.join)(e.map(t=>{let{content:n}=t;const r=Object(kt.create)({html:n});return e.length>1?r:Object(kt.replace)(r,/\n/g,kt.__UNSTABLE_LINE_SEPARATOR)}),kt.__UNSTABLE_LINE_SEPARATOR),multilineTag:"li"}),anchor:e.anchor})},{type:"block",blocks:["core/quote","core/pullquote"],transform:e=>{let{value:t,anchor:n}=e;return Object(Oe.createBlock)("core/list",{values:Object(kt.toHTMLString)({value:Object(kt.create)({html:t,multilineTag:"p"}),multilineTag:"li"}),anchor:n})}},{type:"raw",selector:"ol,ul",schema:e=>({ol:ml(e).ol,ul:ml(e).ul}),transform(e){const t={ordered:"OL"===e.nodeName,anchor:""===e.id?void 0:e.id};if(t.ordered){const n=e.getAttribute("type");n&&(t.type=n),null!==e.getAttribute("reversed")&&(t.reversed=!0);const r=parseInt(e.getAttribute("start"),10);isNaN(r)||1===r&&!t.reversed||(t.start=r)}return Object(Oe.createBlock)("core/list",{...Object(Oe.getBlockAttributes)("core/list",e.outerHTML),...t})}},...["*","-"].map(e=>({type:"prefix",prefix:e,transform:e=>Object(Oe.createBlock)("core/list",{values:`<li>${e}</li>`})})),...["1.","1)"].map(e=>({type:"prefix",prefix:e,transform:e=>Object(Oe.createBlock)("core/list",{ordered:!0,values:`<li>${e}</li>`})}))],to:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{values:t}=e;return Object(kt.split)(Object(kt.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),kt.__UNSTABLE_LINE_SEPARATOR).map(e=>Object(Oe.createBlock)("core/paragraph",{content:Object(kt.toHTMLString)({value:e})}))}},{type:"block",blocks:["core/heading"],transform:e=>{let{values:t}=e;return Object(kt.split)(Object(kt.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),kt.__UNSTABLE_LINE_SEPARATOR).map(e=>Object(Oe.createBlock)("core/heading",{content:Object(kt.toHTMLString)({value:e})}))}},{type:"block",blocks:["core/quote"],transform:e=>{let{values:t,anchor:n}=e;return Object(Oe.createBlock)("core/quote",{value:Object(kt.toHTMLString)({value:Object(kt.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:n})}},{type:"block",blocks:["core/pullquote"],transform:e=>{let{values:t,anchor:n}=e;return Object(Oe.createBlock)("core/pullquote",{value:Object(kt.toHTMLString)({value:Object(kt.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:n})}}]};const bl={apiVersion:2,name:"core/list",title:"List",category:"text",description:"Create a bulleted or numbered list.",keywords:["bullet list","ordered list","numbered list"],textdomain:"default",attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},editorStyle:"wp-block-list-editor",style:"wp-block-list"},{name:pl}=bl,gl={icon:Za,example:{attributes:{values:"<li>Alice.</li><li>The White Rabbit.</li><li>The Cheshire Cat.</li><li>The Mad Hatter.</li><li>The Queen of Hearts.</li>"}},transforms:dl,merge(e,t){const{values:n}=t;return n&&"<li></li>"!==n?{...e,values:e.values+n}:e},edit:function(e){let{attributes:t,setAttributes:n,mergeBlocks:r,onReplace:o,style:a}=e;const{ordered:l,values:c,type:i,reversed:s,start:u,placeholder:m}=t,d=l?"ol":"ul",b=Object(we.useBlockProps)({style:a});return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.RichText,Object(mt.a)({identifier:"values",multiline:"li",tagName:d,onChange:e=>n({values:e}),value:c,"aria-label":Object(ke.__)("List text"),placeholder:m||Object(ke.__)("List"),onMerge:r,onSplit:e=>Object(Oe.createBlock)(pl,{...t,values:e}),__unstableOnSplitMiddle:()=>Object(Oe.createBlock)("core/paragraph"),onReplace:o,onRemove:()=>o([]),start:u,reversed:s,type:i},b),e=>{let{value:t,onChange:r,onFocus:o}=e;return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.RichTextShortcut,{type:"primary",character:"[",onUse:()=>{r(Object(kt.__unstableOutdentListItems)(t))}}),Object(je.createElement)(we.RichTextShortcut,{type:"primary",character:"]",onUse:()=>{r(Object(kt.__unstableIndentListItems)(t,{type:d}))}}),Object(je.createElement)(we.RichTextShortcut,{type:"primary",character:"m",onUse:()=>{r(Object(kt.__unstableIndentListItems)(t,{type:d}))}}),Object(je.createElement)(we.RichTextShortcut,{type:"primaryShift",character:"m",onUse:()=>{r(Object(kt.__unstableOutdentListItems)(t))}}),Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(_e.ToolbarButton,{icon:Object(ke.isRTL)()?nl:rl,title:Object(ke.__)("Unordered"),describedBy:Object(ke.__)("Convert to unordered list"),isActive:Object(kt.__unstableIsActiveListType)(t,"ul",d),onClick:()=>{r(Object(kt.__unstableChangeListType)(t,{type:"ul"})),o(),Object(kt.__unstableIsListRootSelected)(t)&&n({ordered:!1})}}),Object(je.createElement)(_e.ToolbarButton,{icon:Object(ke.isRTL)()?ol:al,title:Object(ke.__)("Ordered"),describedBy:Object(ke.__)("Convert to ordered list"),isActive:Object(kt.__unstableIsActiveListType)(t,"ol",d),onClick:()=>{r(Object(kt.__unstableChangeListType)(t,{type:"ol"})),o(),Object(kt.__unstableIsListRootSelected)(t)&&n({ordered:!0})}}),Object(je.createElement)(_e.ToolbarButton,{icon:Object(ke.isRTL)()?ll:cl,title:Object(ke.__)("Outdent"),describedBy:Object(ke.__)("Outdent list item"),shortcut:Object(ke._x)("Backspace","keyboard key"),isDisabled:!Object(kt.__unstableCanOutdentListItems)(t),onClick:()=>{r(Object(kt.__unstableOutdentListItems)(t)),o()}}),Object(je.createElement)(_e.ToolbarButton,{icon:Object(ke.isRTL)()?il:sl,title:Object(ke.__)("Indent"),describedBy:Object(ke.__)("Indent list item"),shortcut:Object(ke._x)("Space","keyboard key"),isDisabled:!Object(kt.__unstableCanIndentListItems)(t),onClick:()=>{r(Object(kt.__unstableIndentListItems)(t,{type:d})),o()}})))}),l&&Object(je.createElement)(ul,{setAttributes:n,ordered:l,reversed:s,start:u,placeholder:m}))},save:function(e){let{attributes:t}=e;const{ordered:n,values:r,type:o,reversed:a,start:l}=t,c=n?"ol":"ul";return Object(je.createElement)(c,we.useBlockProps.save({type:o,reversed:a,start:l}),Object(je.createElement)(we.RichText.Content,{value:r,multiline:"li"}))},deprecated:tl};var hl=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M11 14.5l1.1 1.1 3-3 .5-.5-.6-.6-3-3-1 1 1.7 1.7H5v1.5h7.7L11 14.5zM16.8 5h-7c-1.1 0-2 .9-2 2v1.5h1.5V7c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v10c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5v-1.5H7.8V17c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2z"}));const vl={apiVersion:2,name:"core/loginout",title:"Login/out",category:"theme",description:"Show login & logout links.",keywords:["login","logout","form"],textdomain:"default",attributes:{displayLoginAsForm:{type:"boolean",default:!1},redirectToCurrent:{type:"boolean",default:!0}},supports:{className:!0,typography:{fontSize:!1}}},{name:Ol}=vl,jl={icon:hl,edit:function(e){let{attributes:t,setAttributes:n}=e;const{displayLoginAsForm:r,redirectToCurrent:o}=t;return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Login/out settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Display login as form"),checked:r,onChange:()=>n({displayLoginAsForm:!r})}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Redirect to current URL"),checked:o,onChange:()=>n({redirectToCurrent:!o})}))),Object(je.createElement)("div",Object(we.useBlockProps)({className:"logged-in"}),Object(je.createElement)("a",{href:"#login-pseudo-link"},Object(ke.__)("Log out"))))}};var yl=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M3 18h8V6H3v12zM14 7.5V9h7V7.5h-7zm0 5.3h7v-1.5h-7v1.5zm0 3.7h7V15h-7v1.5z"})),fl=Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(_e.Path,{d:"M18 2l2 4h-2l-2-4h-3l2 4h-2l-2-4h-1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V2zm2 12H10V4.4L11.8 8H20z"}),Object(je.createElement)(_e.Path,{d:"M14 20H4V10h3V8H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3h-2z"}),Object(je.createElement)(_e.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"}));const _l=["image","video"];function kl(e,t){return e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${100*t.x}% ${100*t.y}%`:"50% 50%"}:{}}const wl=Object(je.forwardRef)((e,t)=>{let{isSelected:n,isStackedOnMobile:r,...o}=e;const a=Object(nt.useViewportMatch)("small","<");return Object(je.createElement)(_e.ResizableBox,Object(mt.a)({ref:t,showHandle:n&&(!a||!r)},o))});function El(e){let{mediaId:t,mediaUrl:n,onSelectMedia:r}=e;return Object(je.createElement)(we.BlockControls,{group:"other"},Object(je.createElement)(we.MediaReplaceFlow,{mediaId:t,mediaURL:n,allowedTypes:_l,accept:"image/*,video/*",onSelect:r}))}function Cl(e){let{className:t,noticeOperations:n,noticeUI:r,mediaUrl:o,onSelectMedia:a}=e;return Object(je.createElement)(we.MediaPlaceholder,{icon:Object(je.createElement)(we.BlockIcon,{icon:fl}),labels:{title:Object(ke.__)("Media area")},className:t,onSelect:a,accept:"image/*,video/*",allowedTypes:_l,notices:r,onError:e=>{n.removeAllNotices(),n.createErrorNotice(e)},disableMediaButtons:o})}var xl=Object(_e.withNotices)(Object(je.forwardRef)((function(e,t){const{className:n,commitWidthChange:r,focalPoint:o,imageFill:a,isSelected:l,isStackedOnMobile:c,mediaAlt:i,mediaId:s,mediaPosition:u,mediaType:m,mediaUrl:d,mediaWidth:b,onSelectMedia:p,onWidthChange:g}=e,h=!s&&Object(Pe.isBlobURL)(d),{toggleSelection:v}=Object(ze.useDispatch)(we.store);if(d){const O=()=>{v(!1)},j=(e,t,n)=>{g(parseInt(n.style.width))},y=(e,t,n)=>{v(!0),r(parseInt(n.style.width))},f={right:"left"===u,left:"right"===u},_="image"===m&&a?kl(d,o):{},k={image:()=>Object(je.createElement)("img",{src:d,alt:i}),video:()=>Object(je.createElement)("video",{controls:!0,src:d})};return Object(je.createElement)(wl,{as:"figure",className:tt()(n,"editor-media-container__resizer",{"is-transient":h}),style:_,size:{width:b+"%"},minWidth:"10%",maxWidth:"100%",enable:f,onResizeStart:O,onResize:j,onResizeStop:y,axis:"x",isSelected:l,isStackedOnMobile:c,ref:t},Object(je.createElement)(El,{onSelectMedia:p,mediaUrl:d,mediaId:s}),(k[m]||Me.noop)(),h&&Object(je.createElement)(_e.Spinner,null),Object(je.createElement)(Cl,e))}return Object(je.createElement)(Cl,e)})));const Sl=e=>{if(!e.customBackgroundColor)return e;const t={color:{background:e.customBackgroundColor}};return{...Object(Me.omit)(e,["customBackgroundColor"]),style:t}},Bl={align:{type:"string",default:"wide"},backgroundColor:{type:"string"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!0}};var Tl=[{attributes:{...Bl,customBackgroundColor:{type:"string"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},migrate:Sl,save(e){let{attributes:t}=e;const{backgroundColor:n,customBackgroundColor:r,isStackedOnMobile:o,mediaAlt:a,mediaPosition:l,mediaType:c,mediaUrl:i,mediaWidth:s,mediaId:u,verticalAlignment:m,imageFill:d,focalPoint:b,linkClass:p,href:g,linkTarget:h,rel:v}=t,O=Object(Me.isEmpty)(v)?void 0:v;let j=Object(je.createElement)("img",{src:i,alt:a,className:u&&"image"===c?"wp-image-"+u:null});g&&(j=Object(je.createElement)("a",{className:p,href:g,target:h,rel:O},j));const y={image:()=>j,video:()=>Object(je.createElement)("video",{controls:!0,src:i})},f=Object(we.getColorClassName)("background-color",n),_=tt()({"has-media-on-the-right":"right"===l,"has-background":f||r,[f]:f,"is-stacked-on-mobile":o,["is-vertically-aligned-"+m]:m,"is-image-fill":d}),k=d?kl(i,b):{};let w;50!==s&&(w="right"===l?`auto ${s}%`:s+"% auto");const E={backgroundColor:f?void 0:r,gridTemplateColumns:w};return Object(je.createElement)("div",{className:_,style:E},Object(je.createElement)("figure",{className:"wp-block-media-text__media",style:k},(y[c]||Me.noop)()),Object(je.createElement)("div",{className:"wp-block-media-text__content"},Object(je.createElement)(we.InnerBlocks.Content,null)))}},{attributes:{...Bl,customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},migrate:Sl,save(e){let{attributes:t}=e;const{backgroundColor:n,customBackgroundColor:r,isStackedOnMobile:o,mediaAlt:a,mediaPosition:l,mediaType:c,mediaUrl:i,mediaWidth:s,mediaId:u,verticalAlignment:m,imageFill:d,focalPoint:b}=t,p={image:()=>Object(je.createElement)("img",{src:i,alt:a,className:u&&"image"===c?"wp-image-"+u:null}),video:()=>Object(je.createElement)("video",{controls:!0,src:i})},g=Object(we.getColorClassName)("background-color",n),h=tt()({"has-media-on-the-right":"right"===l,[g]:g,"is-stacked-on-mobile":o,["is-vertically-aligned-"+m]:m,"is-image-fill":d}),v=d?kl(i,b):{};let O;50!==s&&(O="right"===l?`auto ${s}%`:s+"% auto");const j={backgroundColor:g?void 0:r,gridTemplateColumns:O};return Object(je.createElement)("div",{className:h,style:j},Object(je.createElement)("figure",{className:"wp-block-media-text__media",style:v},(p[c]||Me.noop)()),Object(je.createElement)("div",{className:"wp-block-media-text__content"},Object(je.createElement)(we.InnerBlocks.Content,null)))}},{attributes:{...Bl,customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"}},save(e){let{attributes:t}=e;const{backgroundColor:n,customBackgroundColor:r,isStackedOnMobile:o,mediaAlt:a,mediaPosition:l,mediaType:c,mediaUrl:i,mediaWidth:s}=t,u={image:()=>Object(je.createElement)("img",{src:i,alt:a}),video:()=>Object(je.createElement)("video",{controls:!0,src:i})},m=Object(we.getColorClassName)("background-color",n),d=tt()({"has-media-on-the-right":"right"===l,[m]:m,"is-stacked-on-mobile":o});let b;50!==s&&(b="right"===l?`auto ${s}%`:s+"% auto");const p={backgroundColor:m?void 0:r,gridTemplateColumns:b};return Object(je.createElement)("div",{className:d,style:p},Object(je.createElement)("figure",{className:"wp-block-media-text__media"},(u[c]||Me.noop)()),Object(je.createElement)("div",{className:"wp-block-media-text__content"},Object(je.createElement)(we.InnerBlocks.Content,null)))}}];var Nl=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"}));var Pl=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"}));const zl=[["core/paragraph",{fontSize:"large",placeholder:Object(ke._x)("Content…","content placeholder")}]],Il=e=>Math.max(15,Math.min(e,85));function Ml(e,t){var n,r,o;return null==e||null===(n=e.media_details)||void 0===n||null===(r=n.sizes)||void 0===r||null===(o=r[t])||void 0===o?void 0:o.source_url}var Rl=function(e){let{attributes:t,isSelected:n,setAttributes:r}=e;const{focalPoint:o,href:a,imageFill:l,isStackedOnMobile:c,linkClass:i,linkDestination:s,linkTarget:u,mediaAlt:m,mediaId:d,mediaPosition:b,mediaType:p,mediaUrl:g,mediaWidth:h,rel:v,verticalAlignment:O}=t,j=t.mediaSizeSlug||"full",y=Object(ze.useSelect)(e=>d&&n?e(It.store).getMedia(d):null,[n,d]),f=Object(je.useRef)(),_=e=>{const{style:t}=f.current.resizable,{x:n,y:r}=e;t.backgroundPosition=`${100*n}% ${100*r}%`},[k,w]=Object(je.useState)(null),E=function(e){let{attributes:{linkDestination:t,href:n},setAttributes:r}=e;return e=>{let o,a;var l,c,i,s,u;(o=e.media_type?"image"===e.media_type?"image":"video":e.type,"image"===o)&&(a=(null===(l=e.sizes)||void 0===l||null===(c=l.large)||void 0===c?void 0:c.url)||(null===(i=e.media_details)||void 0===i||null===(s=i.sizes)||void 0===s||null===(u=s.large)||void 0===u?void 0:u.source_url));let m=n;"media"===t&&(m=e.url),"attachment"===t&&(m=e.link),r({mediaAlt:e.alt,mediaId:e.id,mediaType:o,mediaUrl:a||e.url,mediaLink:e.link||void 0,href:m,focalPoint:void 0})}}({attributes:t,setAttributes:r}),C=e=>{r({mediaWidth:Il(e)}),w(Il(e))},x=tt()({"has-media-on-the-right":"right"===b,"is-selected":n,"is-stacked-on-mobile":c,["is-vertically-aligned-"+O]:O,"is-image-fill":l}),S=(k||h)+"%",B="right"===b?"1fr "+S:S+" 1fr",T={gridTemplateColumns:B,msGridColumns:B},N=Object(ze.useSelect)(e=>{const t=e(we.store).getSettings();return null==t?void 0:t.imageSizes},[]),P=Object(Me.map)(Object(Me.filter)(N,e=>{let{slug:t}=e;return Ml(y,t)}),e=>{let{name:t,slug:n}=e;return{value:n,label:t}}),z=Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Media & Text settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Stack on mobile"),checked:c,onChange:()=>r({isStackedOnMobile:!c})}),"image"===p&&Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Crop image to fill entire column"),checked:l,onChange:()=>r({imageFill:!l})}),l&&g&&"image"===p&&Object(je.createElement)(_e.FocalPointPicker,{label:Object(ke.__)("Focal point picker"),url:g,value:o,onChange:e=>r({focalPoint:e}),onDragStart:_,onDrag:_}),"image"===p&&Object(je.createElement)(_e.TextareaControl,{label:Object(ke.__)("Alt text (alternative text)"),value:m,onChange:e=>{r({mediaAlt:e})},help:Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(ke.__)("Describe the purpose of the image")),Object(ke.__)("Leave empty if the image is purely decorative."))}),"image"===p&&Object(je.createElement)(we.__experimentalImageSizeControl,{onChangeImage:e=>{const t=Ml(y,e);if(!t)return null;r({mediaUrl:t,mediaSizeSlug:e})},slug:j,imageSizeOptions:P,isResizable:!1}),g&&Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Media width"),value:k||h,onChange:C,min:15,max:85})),I=Object(we.useBlockProps)({className:x,style:T}),M=Object(we.useInnerBlocksProps)({className:"wp-block-media-text__content"},{template:zl});return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.InspectorControls,null,z),Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(we.BlockVerticalAlignmentControl,{onChange:e=>{r({verticalAlignment:e})},value:O}),Object(je.createElement)(_e.ToolbarButton,{icon:Nl,title:Object(ke.__)("Show media on left"),isActive:"left"===b,onClick:()=>r({mediaPosition:"left"})}),Object(je.createElement)(_e.ToolbarButton,{icon:Pl,title:Object(ke.__)("Show media on right"),isActive:"right"===b,onClick:()=>r({mediaPosition:"right"})}),"image"===p&&Object(je.createElement)(we.__experimentalImageURLInputUI,{url:a||"",onChangeUrl:e=>{r(e)},linkDestination:s,mediaType:p,mediaUrl:y&&y.source_url,mediaLink:y&&y.link,linkTarget:u,linkClass:i,rel:v})),Object(je.createElement)("div",I,Object(je.createElement)(xl,{className:"wp-block-media-text__media",onSelectMedia:E,onWidthChange:e=>{w(Il(e))},commitWidthChange:C,ref:f,focalPoint:o,imageFill:l,isSelected:n,isStackedOnMobile:c,mediaAlt:m,mediaId:d,mediaPosition:b,mediaType:p,mediaUrl:g,mediaWidth:h}),Object(je.createElement)("div",M)))};var Ll={from:[{type:"block",blocks:["core/image"],transform:e=>{let{alt:t,url:n,id:r,anchor:o}=e;return Object(Oe.createBlock)("core/media-text",{mediaAlt:t,mediaId:r,mediaUrl:n,mediaType:"image",anchor:o})}},{type:"block",blocks:["core/video"],transform:e=>{let{src:t,id:n,anchor:r}=e;return Object(Oe.createBlock)("core/media-text",{mediaId:n,mediaUrl:t,mediaType:"video",anchor:r})}}],to:[{type:"block",blocks:["core/image"],isMatch:e=>{let{mediaType:t,mediaUrl:n}=e;return!n||"image"===t},transform:e=>{let{mediaAlt:t,mediaId:n,mediaUrl:r,anchor:o}=e;return Object(Oe.createBlock)("core/image",{alt:t,id:n,url:r,anchor:o})}},{type:"block",blocks:["core/video"],isMatch:e=>{let{mediaType:t,mediaUrl:n}=e;return!n||"video"===t},transform:e=>{let{mediaId:t,mediaUrl:n,anchor:r}=e;return Object(Oe.createBlock)("core/video",{id:t,src:n,anchor:r})}}]};const Vl={apiVersion:2,name:"core/media-text",title:"Media & Text",category:"media",description:"Set media and words side-by-side for a richer layout.",keywords:["image","video"],textdomain:"default",attributes:{align:{type:"string",default:"wide"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},mediaSizeSlug:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}},editorStyle:"wp-block-media-text-editor",style:"wp-block-media-text"},{name:Al}=Vl,Hl={icon:yl,example:{viewportWidth:601,attributes:{mediaType:"image",mediaUrl:"https://s.w.org/images/core/5.3/Biologia_Centrali-Americana_-_Cantorchilus_semibadius_1902.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{content:Object(ke.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:Object(ke.__)("— Kobayashi Issa (一茶)")}}]},transforms:Ll,edit:Rl,save:function(e){let{attributes:t}=e;const{isStackedOnMobile:n,mediaAlt:r,mediaPosition:o,mediaType:a,mediaUrl:l,mediaWidth:c,mediaId:i,verticalAlignment:s,imageFill:u,focalPoint:m,linkClass:d,href:b,linkTarget:p,rel:g}=t,h=t.mediaSizeSlug||"full",v=Object(Me.isEmpty)(g)?void 0:g,O=tt()({["wp-image-"+i]:i&&"image"===a,["size-"+h]:i&&"image"===a});let j=Object(je.createElement)("img",{src:l,alt:r,className:O||null});b&&(j=Object(je.createElement)("a",{className:d,href:b,target:p,rel:v},j));const y={image:()=>j,video:()=>Object(je.createElement)("video",{controls:!0,src:l})},f=tt()({"has-media-on-the-right":"right"===o,"is-stacked-on-mobile":n,["is-vertically-aligned-"+s]:s,"is-image-fill":u}),_=u?kl(l,m):{};let k;50!==c&&(k="right"===o?`auto ${c}%`:c+"% auto");const w={gridTemplateColumns:k};return Object(je.createElement)("div",we.useBlockProps.save({className:f,style:w}),Object(je.createElement)("figure",{className:"wp-block-media-text__media",style:_},(y[a]||Me.noop)()),Object(je.createElement)("div",we.useInnerBlocksProps.save({className:"wp-block-media-text__content"})))},deprecated:Tl};var Fl=n("1CF3");var Dl=Object(ze.withDispatch)((e,t)=>{let{clientId:n,attributes:r}=t;const{replaceBlock:o}=e(we.store);return{convertToHTML(){o(n,Object(Oe.createBlock)("core/html",{content:r.originalUndelimitedContent}))}}})((function(e){let{attributes:t,convertToHTML:n}=e;const{originalName:r,originalUndelimitedContent:o}=t,a=!!o,l=Object(Oe.getBlockType)("core/html"),c=[];let i;return a&&l?(i=Object(ke.sprintf)(Object(ke.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.'),r),c.push(Object(je.createElement)(_e.Button,{key:"convert",onClick:n,variant:"primary"},Object(ke.__)("Keep as HTML")))):i=Object(ke.sprintf)(Object(ke.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'),r),Object(je.createElement)("div",Object(we.useBlockProps)({className:"has-warning"}),Object(je.createElement)(we.Warning,{actions:c},i),Object(je.createElement)(je.RawHTML,null,Object(Fl.safeHTML)(o)))}));const Gl={apiVersion:2,name:"core/missing",title:"Unsupported",category:"text",description:"Your site doesn’t include support for this block.",textdomain:"default",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1}},{name:ql}=Gl,Ul={name:ql,__experimentalLabel(e,t){let{context:n}=t;if("accessibility"===n){const{originalName:t}=e,n=t?Object(Oe.getBlockType)(t):void 0;return n?n.settings.title||t:""}},edit:Dl,save:function(e){let{attributes:t}=e;return Object(je.createElement)(je.RawHTML,null,t.originalContent)}};var Wl=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"}));const $l=Object(ke.__)("Read more");var Zl={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&"core/more"===e.dataset.block,transform(e){const{customText:t,noTeaser:n}=e.dataset,r={};return t&&(r.customText=t),""===n&&(r.noTeaser=!0),Object(Oe.createBlock)("core/more",r)}}]};const Kl={apiVersion:2,name:"core/more",title:"More",category:"design",description:"Content before this block will be shown in the excerpt on your archives page.",keywords:["read more"],textdomain:"default",attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}},supports:{customClassName:!1,className:!1,html:!1,multiple:!1},editorStyle:"wp-block-more-editor"},{name:Jl}=Kl,Ql={icon:Wl,example:{},__experimentalLabel(e,t){let{context:n}=t;if("accessibility"===n)return e.customText},transforms:Zl,edit:function(e){let{attributes:{customText:t,noTeaser:n},insertBlocksAfter:r,setAttributes:o}=e;const a={width:(t||$l).length+1.2+"em"};return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,null,Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Hide the excerpt on the full content page"),checked:!!n,onChange:()=>o({noTeaser:!n}),help:e=>e?Object(ke.__)("The excerpt is hidden."):Object(ke.__)("The excerpt is visible.")}))),Object(je.createElement)("div",Object(we.useBlockProps)(),Object(je.createElement)("div",{className:"wp-block-more"},Object(je.createElement)("input",{"aria-label":Object(ke.__)("Read more link text"),type:"text",value:t,placeholder:$l,onChange:e=>{o({customText:""!==e.target.value?e.target.value:void 0})},onKeyDown:e=>{let{keyCode:t}=e;t===dt.ENTER&&r([Object(Oe.createBlock)(Object(Oe.getDefaultBlockName)())])},style:a}))))},save:function(e){let{attributes:{customText:t,noTeaser:n}}=e;const r=t?`\x3c!--more ${t}--\x3e`:"\x3c!--more--\x3e",o=n?"\x3c!--noteaser--\x3e":"";return Object(je.createElement)(je.RawHTML,null,Object(Me.compact)([r,o]).join("\n"))}};var Yl=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})),Xl=n("OzlF");function ec(e){let{clientId:t,__experimentalFeatures:n}=e;const r=Object(ze.useSelect)(e=>e(we.store).__unstableGetClientIdsTree(t),[t]),o=Object(je.useRef)(),[a,l]=Object(je.useState)(300);return Object(je.useEffect)(()=>{var e,t;l(null!==(e=null==o||null===(t=o.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:300)},[]),Object(je.createElement)("div",{style:{minHeight:a}},Object(je.createElement)(we.__experimentalListView,{ref:o,blocks:r,showBlockMovers:!0,showNestedBlocks:!0,__experimentalFeatures:n}))}function tc(e){return Object(ze.useSelect)(t=>{var n;const{getEntityRecord:r,getEditedEntityRecord:o,getEntityRecords:a,hasFinishedResolution:l}=t(It.store),c=["postType","wp_navigation",e],i=e?r(...c):null;let s=e?o(...c):null;"publish"!==(null===(n=s)||void 0===n?void 0:n.status)&&(s=null);const u=!!e&&l("getEditedEntityRecord",c),m=["postType","wp_navigation",{per_page:-1,status:"publish"}],d=a(...m),b=e?(null==d?void 0:d.length)>1:(null==d?void 0:d.length)>0;return{isNavigationMenuResolved:u,isNavigationMenuMissing:!e||u&&!i,canSwitchNavigationMenu:b,hasResolvedNavigationMenus:l("getEntityRecords",m),navigationMenu:s,navigationMenus:d}},[e])}var nc=n("iClF"),rc=n("rmEH");function oc(){const{menus:e,isResolvingMenus:t,hasResolvedMenus:n}=Object(ze.useSelect)(e=>{const{getMenus:t,isResolving:n,hasFinishedResolution:r}=e(It.store),o=[{per_page:-1}];return{menus:t(...o),isResolvingMenus:n("getMenus",o),hasResolvedMenus:r("getMenus",o)}},[]);return{menus:e,isResolvingMenus:t,hasResolvedMenus:n,hasMenus:!(!n||null==e||!e.length)}}function ac(e){const{menuItems:t,hasResolvedMenuItems:n}=Object(ze.useSelect)(t=>{const{getMenuItems:n,hasFinishedResolution:r}=t(It.store),o=void 0!==e,a=o?[{menus:e,per_page:-1}]:void 0;return{menuItems:o?n(...a):void 0,hasResolvedMenuItems:!!o&&r("getMenuItems",a)}},[e]);return{menuItems:t,hasResolvedMenuItems:n}}function lc(){const{pages:e,isResolvingPages:t,hasResolvedPages:n}=Object(ze.useSelect)(e=>{const{getEntityRecords:t,isResolving:n,hasFinishedResolution:r}=e(It.store),o=["postType","page",{parent:0,order:"asc",orderby:"id",per_page:-1}];return{pages:t(...o)||null,isResolvingPages:n("getEntityRecords",o),hasResolvedPages:r("getEntityRecords",o)}},[]);return{pages:e,isResolvingPages:t,hasResolvedPages:n,hasPages:!(!n||null==e||!e.length)}}var cc=n("cGtP");var ic=e=>{let{isLoading:t}=e;return Object(je.createElement)("ul",{className:tt()("wp-block-navigation-placeholder__preview","wp-block-navigation__container",{"is-loading":t})},Object(je.createElement)("li",{className:"wp-block-navigation-item"},"​"),Object(je.createElement)("li",{className:"wp-block-navigation-item"},"​"),Object(je.createElement)("li",{className:"wp-block-navigation-item"},"​"),Object(je.createElement)("li",{className:"wp-block-navigation-placeholder__preview-search-icon"},Object(je.createElement)(nc.a,{icon:cc.a})))};function sc(e){if(!e)return null;return function e(t){let n={};const r=Object(Me.sortBy)(t,"menu_order");return{innerBlocks:r.map(t=>{var r,o;if("block"===t.type){const[e]=Object(Oe.parse)(t.content.raw);return e||Object(Oe.createBlock)("core/freeform",{content:t.content})}const a=function(e){var t;let{title:n,xfn:r,classes:o,attr_title:a,object:l,object_id:c,description:i,url:s,type:u,target:m}=e;l&&"post_tag"===l&&(l="tag");return{label:(null==n?void 0:n.rendered)||"",...(null===(t=l)||void 0===t?void 0:t.length)&&{type:l},kind:(null==u?void 0:u.replace("_","-"))||"custom",url:s||"",...(null==r?void 0:r.length)&&r.join(" ").trim()&&{rel:r.join(" ").trim()},...(null==o?void 0:o.length)&&o.join(" ").trim()&&{className:o.join(" ").trim()},...(null==a?void 0:a.length)&&{title:a},...c&&"custom"!==l&&{id:c},...(null==i?void 0:i.length)&&{description:i},..."_blank"===m&&{opensInNewTab:!0}}}(t),{innerBlocks:l=[],mapping:c={}}=null!==(r=t.children)&&void 0!==r&&r.length?e(t.children):{};n={...n,...c};const i=null!==(o=t.children)&&void 0!==o&&o.length?"core/navigation-submenu":"core/navigation-link",s=Object(Oe.createBlock)(i,a,l);return n[t.id]=s.clientId,s}),mapping:n}}(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"id",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"parent";const r=Object.create(null),o=[];for(const a of e)r[a[t]]={...a,children:[]},a[n]?(r[a[n]]=r[a[n]]||{},r[a[n]].children=r[a[n]].children||[],r[a[n]].children.push(r[a[t]])):o.push(r[a[t]]);return o}(e))}function uc(e,t){return e&&t?e+"//"+t:null}const mc=["postType","wp_navigation",{status:"draft",per_page:-1}],dc=["postType","wp_navigation",{per_page:-1,status:"publish"}];function bc(e){const t=Object(je.useContext)(_e.Disabled.Context),n=function(e){return Object(ze.useSelect)(t=>{if(!e)return;const{getBlock:n,getBlockParentsByBlockName:r}=t(we.store),o=r(e,"core/template-part",!0);if(null==o||!o.length)return;const a=t("core/editor").__experimentalGetDefaultTemplatePartAreas(),{getEditedEntityRecord:l}=t(It.store);for(const e of o){const t=n(e),{theme:r,slug:o}=t.attributes,i=l("postType","wp_template_part",uc(r,o));var c;if(null!=i&&i.area)return null===(c=a.find(e=>"uncategorized"!==e.area&&e.area===i.area))||void 0===c?void 0:c.label}},[e])}(t?void 0:e),r=Object(ze.useRegistry)();return Object(je.useCallback)(async()=>{if(t)return"";const{getEntityRecords:e}=r.resolveSelect(It.store),[o,a]=await Promise.all([e(...mc),e(...dc)]),l=n?Object(ke.sprintf)(Object(ke.__)("%s navigation"),n):Object(ke.__)("Navigation"),c=[...o,...a].reduce((e,t)=>{var n,r;return null!=t&&null!==(n=t.title)&&void 0!==n&&null!==(r=n.raw)&&void 0!==r&&r.startsWith(l)?e+1:e},0);return(c>0?`${l} ${c+1}`:l)||""},[t,n])}function pc(e){const{saveEntityRecord:t}=Object(ze.useDispatch)(It.store),n=bc(e);return Object(je.useCallback)((async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e||(e=await n());const o={title:e,content:Object(Oe.serialize)(r),status:"publish"};return await t("postType","wp_navigation",o)}),[Oe.serialize,t])}const gc=e=>{let{canSwitchNavigationMenu:t,navigationMenus:n,setSelectedMenu:r,onFinish:o,menus:a,onCreateFromMenu:l}=e;return Object(je.createElement)(_e.DropdownMenu,{text:Object(ke.__)("Select menu"),icon:null,toggleProps:{variant:"tertiary",iconPosition:"right",className:"wp-block-navigation-placeholder__actions__dropdown"},popoverProps:{isAlternate:!0}},e=>{let{onClose:c}=e;return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.MenuGroup,{label:Object(ke.__)("Menus")},t&&(null==n?void 0:n.map(e=>Object(je.createElement)(_e.MenuItem,{onClick:()=>{r(e.id),o(e)},onClose:c,key:e.id},Object(rc.decodeEntities)(e.title.rendered))))),Object(je.createElement)(_e.MenuGroup,{label:Object(ke.__)("Classic Menus")},null==a?void 0:a.map(e=>Object(je.createElement)(_e.MenuItem,{onClick:()=>{r(e.id),l(e.name)},onClose:c,key:e.id},Object(rc.decodeEntities)(e.name)))))})};function hc(e){let{clientId:t,onFinish:n,canSwitchNavigationMenu:r,hasResolvedNavigationMenus:o}=e;const[a,l]=Object(je.useState)(),[c,i]=Object(je.useState)(!1),[s,u]=Object(je.useState)(""),m=pc(t),d=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const r=await m(t,e);n(r,e)},{isResolvingPages:b,menus:p,isResolvingMenus:g,menuItems:h,hasResolvedMenuItems:v,hasPages:O,hasMenus:j}=(y=a,{...lc(),...oc(),...ac(y)});var y;const f=b||g,_=Object(je.useCallback)(e=>{const{innerBlocks:t}=sc(h);d(t,e)},[h,sc,n]);Object(je.useEffect)(()=>{c&&v&&(_(s),i(!1))},[c,v,s]);const{navigationMenus:k}=tc();return Object(je.createElement)(je.Fragment,null,(!o||f)&&Object(je.createElement)(ic,{isLoading:!0}),o&&!f&&Object(je.createElement)(_e.Placeholder,{className:"wp-block-navigation-placeholder"},Object(je.createElement)(ic,null),Object(je.createElement)("div",{className:"wp-block-navigation-placeholder__controls"},Object(je.createElement)("div",{className:"wp-block-navigation-placeholder__actions"},Object(je.createElement)("div",{className:"wp-block-navigation-placeholder__actions__indicator"},Object(je.createElement)(nc.a,{icon:Yl})," ",Object(ke.__)("Navigation")),Object(je.createElement)("hr",null),j||k.length?Object(je.createElement)(je.Fragment,null,Object(je.createElement)(gc,{canSwitchNavigationMenu:r,navigationMenus:k,setSelectedMenu:l,onFinish:n,menus:p,onCreateFromMenu:e=>{v?_(e):(i(!0),u(e))}}),Object(je.createElement)("hr",null)):void 0,O?Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.Button,{variant:"tertiary",onClick:()=>{const e=[Object(Oe.createBlock)("core/page-list")];d(e)}},Object(ke.__)("Add all pages")),Object(je.createElement)("hr",null)):void 0,Object(je.createElement)(_e.Button,{variant:"tertiary",onClick:()=>{d([])}},Object(ke.__)("Start empty"))))))}var vc=n("w95h");function Oc(e){let{children:t,id:n,isOpen:r,isResponsive:o,onToggle:a,isHiddenByDefault:l,classNames:c,styles:i}=e;if(!o)return t;const s=tt()("wp-block-navigation__responsive-container",c,{"is-menu-open":r,"hidden-by-default":l}),u=tt()("wp-block-navigation__responsive-container-open",{"always-shown":l}),m=n+"-modal";return Object(je.createElement)(je.Fragment,null,!r&&Object(je.createElement)(_e.Button,{"aria-haspopup":"true","aria-expanded":r,"aria-label":Object(ke.__)("Open menu"),className:u,onClick:()=>a(!0)},Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",role:"img","aria-hidden":"true",focusable:"false"},Object(je.createElement)(ye.Rect,{x:"4",y:"7.5",width:"16",height:"1.5"}),Object(je.createElement)(ye.Rect,{x:"4",y:"15",width:"16",height:"1.5"}))),Object(je.createElement)("div",{className:s,style:i,id:m},Object(je.createElement)("div",{className:"wp-block-navigation__responsive-close",tabIndex:"-1"},Object(je.createElement)("div",{className:"wp-block-navigation__responsive-dialog",role:"dialog","aria-modal":"true","aria-labelledby":m+"-title"},Object(je.createElement)(_e.Button,{className:"wp-block-navigation__responsive-container-close","aria-label":Object(ke.__)("Close menu"),onClick:()=>a(!1)},Object(je.createElement)(nc.a,{icon:vc.a})),Object(je.createElement)("div",{className:"wp-block-navigation__responsive-container-content",id:m+"-content"},t)))))}const jc=["core/navigation-link","core/search","core/social-links","core/page-list","core/spacer","core/home-link","core/site-title","core/site-logo","core/navigation-submenu"],yc=["core/navigation-link"],fc={type:"default",alignments:[]};function _c(e){let{isVisible:t,clientId:n,appender:r,hasCustomPlaceholder:o,orientation:a}=e;const{isImmediateParentOfSelectedBlock:l,selectedBlockHasDescendants:c,isSelected:i}=Object(ze.useSelect)(e=>{var t;const{getClientIdsOfDescendants:r,hasSelectedInnerBlock:o,getSelectedBlockClientId:a}=e(we.store),l=a();return{isImmediateParentOfSelectedBlock:o(n,!1),selectedBlockHasDescendants:!(null===(t=r([l]))||void 0===t||!t.length),isSelected:l===n}},[n]),[s,u,m]=Object(It.useEntityBlockEditor)("postType","wp_navigation"),d=Object(je.useMemo)(()=>s.every(e=>{let{name:t}=e;return"core/navigation-link"===t||"core/navigation-submenu"===t||"core/page-list"===t}),[s]),b=!(!t||!(i||l&&!c))&&void 0,p=Object(je.useMemo)(()=>Object(je.createElement)(ic,null),[]),g=Object(we.useInnerBlocksProps)({className:"wp-block-navigation__container"},{value:s,onInput:u,onChange:m,allowedBlocks:jc,__experimentalDefaultBlock:yc,__experimentalDirectInsert:d,orientation:a,renderAppender:r||b,__experimentalCaptureToolbars:"vertical"!==a,templateLock:!1,__experimentalLayout:fc,placeholder:!t||o?void 0:p});return Object(je.createElement)(we.__experimentalBlockContentOverlay,{clientId:n,tagName:"div",wrapperProps:g})}function kc(e){let{onSelect:t,onCreateNew:n}=e;const{navigationMenus:r}=tc(),o=Object(It.useEntityId)("postType","wp_navigation");return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.MenuGroup,null,Object(je.createElement)(_e.MenuItemsChoice,{value:o,onSelect:e=>t(r.find(t=>t.id===e)),choices:r.map(e=>{let{id:t,title:n}=e;const r=Object(rc.decodeEntities)(n.rendered);return{value:t,label:r,"aria-label":Object(ke.sprintf)(Object(ke.__)("Switch to '%s'"),r)}})})),Object(je.createElement)(_e.MenuGroup,null,Object(je.createElement)(_e.MenuItem,{onClick:n},Object(ke.__)("Create new menu"))))}function wc(){const[e,t]=Object(It.useEntityProp)("postType","wp_navigation","title");return Object(je.createElement)(_e.TextControl,{label:Object(ke.__)("Menu name"),value:e,onChange:t})}const Ec=()=>{},Cc={},xc=["postType","wp_navigation",{status:"draft",per_page:-1}];function Sc(e){let{blockProps:t,blocks:n,clientId:r,hasSavedUnsavedInnerBlocks:o,onSave:a,hasSelection:l}=e;const c=Object(je.useContext)(_e.Disabled.Context),i=Object(je.useRef)(!1),s=Object(we.useInnerBlocksProps)(t,{renderAppender:!!l&&void 0,value:n,onChange:Ec,onInput:Ec}),{isSaving:u,draftNavigationMenus:m,hasResolvedDraftNavigationMenus:d}=Object(ze.useSelect)(e=>{if(c)return Cc;const{getEntityRecords:t,hasFinishedResolution:n,isSavingEntityRecord:r}=e(It.store);return{isSaving:r("postType","wp_navigation"),draftNavigationMenus:t(...xc),hasResolvedDraftNavigationMenus:n("getEntityRecords",xc)}},[c]),{hasResolvedNavigationMenus:b,navigationMenus:p}=tc(),g=pc(r);return Object(je.useEffect)(async()=>{if(c||o||u||i.current||!d||!b||!l)return;i.current=!0;const e=await g(null,n);a(e),i.current=!1},[c,u,d,b,m,p,l,g,n]),Object(je.createElement)(je.Fragment,null,Object(je.createElement)("nav",t,Object(je.createElement)("div",{className:"wp-block-navigation__unsaved-changes"},Object(je.createElement)(_e.Disabled,{className:tt()("wp-block-navigation__unsaved-changes-overlay",{"is-saving":l})},Object(je.createElement)("div",s)),l&&Object(je.createElement)(_e.Spinner,null))))}function Bc(e){let{onDelete:t}=e;const[n,r]=Object(je.useState)(!1),o=Object(It.useEntityId)("postType","wp_navigation"),[a]=Object(It.useEntityProp)("postType","wp_navigation","title"),{deleteEntityRecord:l}=Object(ze.useDispatch)(It.store);return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.Button,{className:"wp-block-navigation-delete-menu-button",variant:"secondary",isDestructive:!0,onClick:()=>{r(!0)}},Object(ke.__)("Delete menu")),n&&Object(je.createElement)(_e.Modal,{title:Object(ke.sprintf)(Object(ke.__)("Delete %s"),a),closeLabel:Object(ke.__)("Cancel"),onRequestClose:()=>r(!1)},Object(je.createElement)("p",null,Object(ke.__)("Are you sure you want to delete this navigation menu?")),Object(je.createElement)(_e.Flex,{justify:"flex-end"},Object(je.createElement)(_e.FlexItem,null,Object(je.createElement)(_e.Button,{variant:"secondary",onClick:()=>{r(!1)}},Object(ke.__)("Cancel"))),Object(je.createElement)(_e.FlexItem,null,Object(je.createElement)(_e.Button,{variant:"primary",onClick:()=>{l("postType","wp_navigation",o,{force:!0}),t()}},Object(ke.__)("Confirm"))))))}function Tc(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function Nc(e,t,n){if(!e)return;t(Tc(e).color);let r=e,o=Tc(r).backgroundColor;for(;"rgba(0, 0, 0, 0)"===o&&r.parentNode&&r.parentNode.nodeType===r.parentNode.ELEMENT_NODE;)r=r.parentNode,o=Tc(r).backgroundColor;n(o)}var Pc=Object(we.withColors)({textColor:"color"},{backgroundColor:"color"},{overlayBackgroundColor:"color"},{overlayTextColor:"color"})((function(e){let{attributes:t,setAttributes:n,clientId:r,isSelected:o,className:a,backgroundColor:l,setBackgroundColor:c,textColor:i,setTextColor:s,overlayBackgroundColor:u,setOverlayBackgroundColor:m,overlayTextColor:d,setOverlayTextColor:b,context:{navigationArea:p},hasSubmenuIndicatorSetting:g=!0,hasColorSettings:h=!0,customPlaceholder:v=null,customAppender:O=null}=e;const{openSubmenusOnClick:j,overlayMenu:y,showSubmenuIcon:f,layout:{justifyContent:_,orientation:k="horizontal"}={}}=t,[w,E]=Object(It.useEntityProp)("root","navigationArea","navigation",p),C=p?0===w?void 0:w:t.ref,x=Object(je.useCallback)(e=>{n({ref:e}),p&&E(e)},[p]),[S,B]=Object(we.__experimentalUseNoRecursiveRenders)("navigationMenu/"+C),{innerBlocks:T,isInnerBlockSelected:N}=Object(ze.useSelect)(e=>{const{getBlocks:t,hasSelectedInnerBlock:n}=e(we.store);return{innerBlocks:t(r),isInnerBlockSelected:n(r,!0)}},[r]),P=!!T.length,{replaceInnerBlocks:z,selectBlock:I,__unstableMarkNextChangeAsNotPersistent:M}=Object(ze.useDispatch)(we.store),[R,L]=Object(je.useState)(!1),V=p&&!C,[A,H]=Object(je.useState)(!P||V),[F,D]=Object(je.useState)(!1),{isNavigationMenuResolved:G,isNavigationMenuMissing:q,canSwitchNavigationMenu:U,hasResolvedNavigationMenus:W,navigationMenus:$,navigationMenu:Z}=tc(C),K=Object(je.useRef)(),J="draft"===(null==Z?void 0:Z.status),{listViewToolbarButton:Q,listViewModal:Y}=function(e,t){const[n,r]=Object(je.useState)(!1);return{listViewToolbarButton:Object(je.createElement)(_e.ToolbarButton,{className:"components-toolbar__control",label:Object(ke.__)("Open list view"),onClick:()=>r(!0),icon:Xl.a}),listViewModal:n&&Object(je.createElement)(_e.Modal,{title:Object(ke.__)("List View"),closeLabel:Object(ke.__)("Close"),onRequestClose:()=>{r(!1)},shouldCloseOnClickOutside:!1},Object(je.createElement)(ec,{clientId:e,__experimentalFeatures:t}))}}(r),X=!q&&G,ee=Object(we.useBlockProps)({ref:K,className:tt()(a,{"items-justified-right":"right"===_,"items-justified-space-between":"space-between"===_,"is-responsive":"never"!==y,"has-text-color":!!i.color||!(null==i||!i.class),[Object(we.getColorClassName)("color",null==i?void 0:i.slug)]:!(null==i||!i.slug),"has-background":!!l.color||l.class,[Object(we.getColorClassName)("background-color",null==l?void 0:l.slug)]:!(null==l||!l.slug)}),style:{color:!(null!=i&&i.slug)&&(null==i?void 0:i.color),backgroundColor:!(null!=l&&l.slug)&&(null==l?void 0:l.color)}}),te=tt()({"has-text-color":!!d.color||!(null==d||!d.class),[Object(we.getColorClassName)("color",null==d?void 0:d.slug)]:!(null==d||!d.slug),"has-background":!!u.color||(null==u?void 0:u.class),[Object(we.getColorClassName)("background-color",null==u?void 0:u.slug)]:!(null==u||!u.slug)}),ne={color:!(null!=d&&d.slug)&&(null==d?void 0:d.color),backgroundColor:!(null!=u&&u.slug)&&(null==u?void 0:u.color)&&u.color},re="web"===je.Platform.OS,[oe,ae]=Object(je.useState)(),[le,ce]=Object(je.useState)(),[ie,se]=Object(je.useState)(),[ue,me]=Object(je.useState)();Object(je.useEffect)(()=>{k&&(M(),n({orientation:k}))},[k]),Object(je.useEffect)(()=>{if(!re)return;Nc(K.current,ce,ae);const e=K.current.querySelector('[data-type="core/navigation-link"] [data-type="core/navigation-link"]');e&&Nc(e,me,se)}),Object(je.useEffect)(()=>{H(!X)},[X]),Object(je.useEffect)(()=>{void 0===C&&T.length>0&&z(r,[])},[r,C,T]);const de=Object(je.useCallback)(()=>{p&&E(0),n({ref:void 0}),H(!0)},[r]);if(P&&!X&&!V)return Object(je.createElement)(Sc,{blockProps:ee,blocks:T,clientId:r,navigationMenus:$,hasSelection:o||N,hasSavedUnsavedInnerBlocks:R,onSave:e=>{L(!0),x(e.id)}});if(C&&q)return Object(je.createElement)("div",ee,Object(je.createElement)(we.Warning,null,Object(ke.__)("Navigation menu has been deleted or is unavailable. "),Object(je.createElement)(_e.Button,{onClick:de,variant:"link"},Object(ke.__)("Create a new menu?"))));if(X&&S)return Object(je.createElement)("div",ee,Object(je.createElement)(we.Warning,null,Object(ke.__)("Block cannot be rendered inside itself.")));const be=v||hc;return Object(je.createElement)(It.EntityProvider,{kind:"postType",type:"wp_navigation",id:C},Object(je.createElement)(B,null,Object(je.createElement)(we.BlockControls,null,!J&&X&&Object(je.createElement)(_e.ToolbarGroup,null,Object(je.createElement)(_e.ToolbarDropdownMenu,{label:Object(ke.__)("Select Menu"),text:Object(ke.__)("Select Menu"),icon:null},e=>{let{onClose:t}=e;return Object(je.createElement)(kc,{onSelect:e=>{let{id:n}=e;x(n),t()},onCreateNew:de})})),Object(je.createElement)(_e.ToolbarGroup,null,Q)),Y,Object(je.createElement)(we.InspectorControls,null,g&&Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Display")},Object(je.createElement)("h3",null,Object(ke.__)("Overlay Menu")),Object(je.createElement)(_e.__experimentalToggleGroupControl,{label:Object(ke.__)("Configure overlay menu"),value:y,help:Object(ke.__)("Collapses the navigation options in a menu icon opening an overlay."),onChange:e=>n({overlayMenu:e}),isBlock:!0,hideLabelFromVision:!0},Object(je.createElement)(_e.__experimentalToggleGroupControlOption,{value:"never",label:Object(ke.__)("Off")}),Object(je.createElement)(_e.__experimentalToggleGroupControlOption,{value:"mobile",label:Object(ke.__)("Mobile")}),Object(je.createElement)(_e.__experimentalToggleGroupControlOption,{value:"always",label:Object(ke.__)("Always")})),Object(je.createElement)("h3",null,Object(ke.__)("Submenus")),Object(je.createElement)(_e.ToggleControl,{checked:j,onChange:e=>{n({openSubmenusOnClick:e})},label:Object(ke.__)("Open on click")}),!t.openSubmenusOnClick&&Object(je.createElement)(_e.ToggleControl,{checked:f,onChange:e=>{n({showSubmenuIcon:e})},label:Object(ke.__)("Show icons")})),h&&Object(je.createElement)(we.PanelColorSettings,{__experimentalHasMultipleOrigins:!0,title:Object(ke.__)("Color"),initialOpen:!1,colorSettings:[{value:i.color,onChange:s,label:Object(ke.__)("Text")},{value:l.color,onChange:c,label:Object(ke.__)("Background")},{value:d.color,onChange:b,label:Object(ke.__)("Submenu & overlay text")},{value:u.color,onChange:m,label:Object(ke.__)("Submenu & overlay background")}]},re&&Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.ContrastChecker,{backgroundColor:oe,textColor:le}),Object(je.createElement)(we.ContrastChecker,{backgroundColor:ie,textColor:ue})))),X&&Object(je.createElement)(we.InspectorControls,{__experimentalGroup:"advanced"},Object(je.createElement)(wc,null),Object(je.createElement)(Bc,{onDelete:()=>{p&&E(0),n({ref:void 0}),H(!0)}})),Object(je.createElement)("nav",ee,A&&Object(je.createElement)(be,{onFinish:e=>{H(!1),e&&x(e.id),I(r)},canSwitchNavigationMenu:U,hasResolvedNavigationMenus:W,clientId:r}),!X&&!A&&Object(je.createElement)(ic,{isLoading:!0}),!A&&Object(je.createElement)(Oc,{id:r,onToggle:D,isOpen:F,isResponsive:"never"!==y,isHiddenByDefault:"always"===y,classNames:te,styles:ne},X&&Object(je.createElement)(_c,{isVisible:!A,clientId:r,appender:O,hasCustomPlaceholder:!!v,orientation:k})))))}));const zc={fontStyle:"var:preset|font-style|",fontWeight:"var:preset|font-weight|",textDecoration:"var:preset|text-decoration|",textTransform:"var:preset|text-transform|"},Ic=e=>{let{navigationMenuId:t,...n}=e;return{...n,ref:t}},Mc=e=>{if(e.layout)return e;const{itemsJustification:t,orientation:n}=e,r={...e};return(t||n)&&(Object.assign(r,{layout:{type:"flex",justifyContent:t||"left",orientation:n||"horizontal"}}),delete r.itemsJustification,delete r.orientation),r};var Rc=[{attributes:{navigationMenuId:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"mobile"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}},__experimentalLayout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex",setCascadingProperties:!0}}},save:()=>Object(je.createElement)(we.InnerBlocks.Content,null),isEligible:e=>{let{navigationMenuId:t}=e;return!!t},migrate:Ic},{attributes:{navigationMenuId:{type:"number"},orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"never"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},save:()=>Object(je.createElement)(we.InnerBlocks.Content,null),isEligible:e=>{let{itemsJustification:t,orientation:n}=e;return!!t||!!n},migrate:Object(nt.compose)(Ic,Mc)},{attributes:{orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"never"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},save:()=>Object(je.createElement)(we.InnerBlocks.Content,null),migrate:Object(nt.compose)(Ic,Mc,at),isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}},{attributes:{orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},isResponsive:{type:"boolean",default:"false"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0}},isEligible:e=>e.isResponsive,migrate:Object(nt.compose)(Ic,Mc,at,(function(e){return delete e.isResponsive,{...e,overlayMenu:"mobile"}})),save:()=>Object(je.createElement)(we.InnerBlocks.Content,null)},{attributes:{orientation:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,fontSize:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,color:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0},save:()=>Object(je.createElement)(we.InnerBlocks.Content,null),isEligible(e){if(!e.style||!e.style.typography)return!1;for(const t in zc){const n=e.style.typography[t];if(n&&n.startsWith(zc[t]))return!0}return!1},migrate:Object(nt.compose)(Ic,Mc,at,(function(e){return{...e,style:{...e.style,typography:Object(Me.mapValues)(e.style.typography,(e,t)=>{const n=zc[t];if(n&&e.startsWith(n)){const r=e.slice(n.length);return"textDecoration"===t&&"strikethrough"===r?"line-through":r}return e})}}}))},{attributes:{className:{type:"string"},textColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean"}},isEligible:e=>e.rgbTextColor||e.rgbBackgroundColor,supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0},migrate:Object(nt.compose)(Ic,e=>({...Object(Me.omit)(e,["rgbTextColor","rgbBackgroundColor"]),customTextColor:e.textColor?void 0:e.rgbTextColor,customBackgroundColor:e.backgroundColor?void 0:e.rgbBackgroundColor})),save:()=>Object(je.createElement)(we.InnerBlocks.Content,null)}];const Lc={apiVersion:2,name:"core/navigation",title:"Navigation",category:"theme",description:"A collection of blocks that allow visitors to get around your site.",keywords:["menu","navigation","links"],textdomain:"default",attributes:{ref:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"mobile"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},usesContext:["navigationArea"],providesContext:{textColor:"textColor",customTextColor:"customTextColor",backgroundColor:"backgroundColor",customBackgroundColor:"customBackgroundColor",overlayTextColor:"overlayTextColor",customOverlayTextColor:"customOverlayTextColor",overlayBackgroundColor:"overlayBackgroundColor",customOverlayBackgroundColor:"customOverlayBackgroundColor",fontSize:"fontSize",customFontSize:"customFontSize",showSubmenuIcon:"showSubmenuIcon",openSubmenusOnClick:"openSubmenusOnClick",style:"style",orientation:"orientation"},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}},__experimentalLayout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex",setCascadingProperties:!0}}},viewScript:"file:./view.min.js",editorStyle:"wp-block-navigation-editor",style:"wp-block-navigation"},{name:Vc}=Lc,Ac={icon:Yl,example:{innerBlocks:[{name:"core/navigation-link",attributes:{label:Object(ke.__)("Home"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:Object(ke.__)("About"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:Object(ke.__)("Contact"),url:"https://make.wordpress.org/"}}]},edit:Pc,save:function(e){let{attributes:t}=e;if(!t.ref)return Object(je.createElement)(we.InnerBlocks.Content,null)},deprecated:Rc};var Hc=Object(je.createElement)(ye.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M12.5 14.5h-1V16h1c2.2 0 4-1.8 4-4s-1.8-4-4-4h-1v1.5h1c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5zm-4 1.5v-1.5h-1C6.1 14.5 5 13.4 5 12s1.1-2.5 2.5-2.5h1V8h-1c-2.2 0-4 1.8-4 4s1.8 4 4 4h1zm-1-3.2h5v-1.5h-5v1.5zM18 4H9c-1.1 0-2 .9-2 2v.5h1.5V6c0-.3.2-.5.5-.5h9c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5v-.5H7v.5c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z"}));var Fc=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M2 12c0 3.6 2.4 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.5 0-4.5-1.5-4.5-4s2-4.5 4.5-4.5h3.5V6H8c-3.6 0-6 2.4-6 6zm19.5-1h-8v1.5h8V11zm0 5h-8v1.5h8V16zm0-10h-8v1.5h8V6z"}));const{name:Dc}={apiVersion:2,name:"core/navigation-link",title:"Custom Link",category:"design",parent:["core/navigation"],description:"Add a page, link, or another item to your navigation.",textdomain:"default",attributes:{label:{type:"string"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"},title:{type:"string"},kind:{type:"string"},isTopLevelLink:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style"],supports:{reusable:!1,html:!1,__experimentalSlashInserter:!0},editorStyle:"wp-block-navigation-link-editor",style:"wp-block-navigation-link"};function Gc(e,t){switch(e){case"post":case"page":return{type:"post",subtype:e};case"category":return{type:"term",subtype:"category"};case"tag":return{type:"term",subtype:"post_tag"};case"post_format":return{type:"post-format"};default:return"taxonomy"===t?{type:"term",subtype:e}:"post-type"===t?{type:"post",subtype:e}:{}}}function qc(e){const t=document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body.textContent||""}function Uc(e){let{block:t,transforms:n,replace:r}=e;return Object(je.createElement)("div",{className:"link-control-transform"},Object(je.createElement)("h3",{className:"link-control-transform__subheading"},Object(ke.__)("Transform")),Object(je.createElement)("div",{className:"link-control-transform__items"},n.map((e,n)=>Object(je.createElement)(_e.Button,{key:"transform-"+n,onClick:()=>r(t.clientId,Object(Oe.switchToBlockType)(t,e.name)),className:"link-control-transform__item"},Object(je.createElement)(we.BlockIcon,{icon:e.icon}),e.title))))}var Wc=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M4 14.5h16V16H4zM4 18.5h9V20H4zM4 4h3c2 0 3 .86 3 2.583 0 .891-.253 1.554-.76 1.988-.505.435-1.24.652-2.204.652H5.542V12H4V4zm2.855 4c.53 0 .924-.114 1.18-.343.266-.228.398-.579.398-1.051 0-.473-.132-.82-.397-1.04-.265-.229-.67-.343-1.217-.343H5.542V8h1.313z"}));var $c=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));var Zc=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M20.1 11.2l-6.7-6.7c-.1-.1-.3-.2-.5-.2H5c-.4-.1-.8.3-.8.7v7.8c0 .2.1.4.2.5l6.7 6.7c.2.2.5.4.7.5s.6.2.9.2c.3 0 .6-.1.9-.2.3-.1.5-.3.8-.5l5.6-5.6c.4-.4.7-1 .7-1.6.1-.6-.2-1.2-.6-1.6zM19 13.4L13.4 19c-.1.1-.2.1-.3.2-.2.1-.4.1-.6 0-.1 0-.2-.1-.3-.2l-6.5-6.5V5.8h6.8l6.5 6.5c.2.2.2.4.2.6 0 .1 0 .3-.2.5zM9 8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"}));var Kc=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4zm.8-4l.7.7 2-2V12h1V9.2l2 2 .7-.7-2-2H12v-1H9.2l2-2-.7-.7-2 2V4h-1v2.8l-2-2-.7.7 2 2H4v1h2.8l-2 2z"}));const Jc=[{name:"link",isDefault:!0,title:Object(ke.__)("Custom Link"),description:Object(ke.__)("A link to a custom URL."),attributes:{}},{name:"post",icon:Wc,title:Object(ke.__)("Post Link"),description:Object(ke.__)("A link to a post."),attributes:{type:"post",kind:"post-type"}},{name:"page",icon:$c,title:Object(ke.__)("Page Link"),description:Object(ke.__)("A link to a page."),attributes:{type:"page",kind:"post-type"}},{name:"category",icon:At,title:Object(ke.__)("Category Link"),description:Object(ke.__)("A link to a category."),attributes:{type:"category",kind:"taxonomy"}},{name:"tag",icon:Zc,title:Object(ke.__)("Tag Link"),description:Object(ke.__)("A link to a tag."),attributes:{type:"tag",kind:"taxonomy"}}];Jc.forEach(e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)});var Qc=Jc;function Yc(e){switch(e){case"post":return Wc;case"page":return $c;case"tag":return Zc;case"category":return At;default:return Kc}}var Xc={from:[{type:"block",blocks:["core/site-logo"],transform:()=>Object(Oe.createBlock)("core/navigation-link")},{type:"block",blocks:["core/spacer"],transform:()=>Object(Oe.createBlock)("core/navigation-link")},{type:"block",blocks:["core/home-link"],transform:()=>Object(Oe.createBlock)("core/navigation-link")},{type:"block",blocks:["core/social-links"],transform:()=>Object(Oe.createBlock)("core/navigation-link")},{type:"block",blocks:["core/search"],transform:()=>Object(Oe.createBlock)("core/navigation-link")}],to:[{type:"block",blocks:["core/navigation-submenu"],transform:(e,t)=>Object(Oe.createBlock)("core/navigation-submenu",e,t)},{type:"block",blocks:["core/spacer"],transform:()=>Object(Oe.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],transform:()=>Object(Oe.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],transform:()=>Object(Oe.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],transform:()=>Object(Oe.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],transform:()=>Object(Oe.createBlock)("core/search",{showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"})}]};const ei={apiVersion:2,name:"core/navigation-link",title:"Custom Link",category:"design",parent:["core/navigation"],description:"Add a page, link, or another item to your navigation.",textdomain:"default",attributes:{label:{type:"string"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"},title:{type:"string"},kind:{type:"string"},isTopLevelLink:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style"],supports:{reusable:!1,html:!1,__experimentalSlashInserter:!0},editorStyle:"wp-block-navigation-link-editor",style:"wp-block-navigation-link"},{name:ti}=ei,ni={icon:Hc,__experimentalLabel:e=>{let{label:t}=e;return t},merge(e,t){let{label:n=""}=t;return{...e,label:e.label+n}},edit:function(e){let{attributes:t,isSelected:n,setAttributes:r,insertBlocksAfter:o,mergeBlocks:a,onReplace:l,context:c,clientId:i}=e;const{label:s,type:u,opensInNewTab:m,url:d,description:b,rel:p,title:g,kind:h}=t,v={url:d,opensInNewTab:m,title:s&&qc(s)},{saveEntityRecord:O}=Object(ze.useDispatch)(It.store),{replaceBlock:j,__unstableMarkNextChangeAsNotPersistent:y}=Object(ze.useDispatch)(we.store),[f,_]=Object(je.useState)(!1),k=Object(je.useRef)(null),w=(e=>{const[t,n]=Object(je.useState)(!1);return Object(je.useEffect)(()=>{const{ownerDocument:t}=e.current;function r(e){a(e)}function o(){n(!1)}function a(t){e.current.contains(t.target)?n(!0):n(!1)}return t.addEventListener("dragstart",r),t.addEventListener("dragend",o),t.addEventListener("dragenter",a),()=>{t.removeEventListener("dragstart",r),t.removeEventListener("dragend",o),t.removeEventListener("dragenter",a)}},[]),t})(k),E=Object(ke.__)("Add link…"),C=Object(je.useRef)(),{innerBlocks:x,isAtMaxNesting:S,isTopLevelLink:B,isParentOfSelectedBlock:T,hasDescendants:N,userCanCreatePages:P,userCanCreatePosts:z,thisBlock:I,blockTransforms:M}=Object(ze.useSelect)(e=>{var t;const{getBlock:n,getBlocks:r,getBlockName:o,getBlockRootClientId:a,getClientIdsOfDescendants:l,hasSelectedInnerBlock:c,getSelectedBlockClientId:s,getBlockParentsByBlockName:u,getBlockTransformItems:m}=e(we.store),d=s(),b=l([i]).length;return{innerBlocks:r(i),isAtMaxNesting:u(i,[Dc,"core/navigation-submenu"]).length>=5,isTopLevelLink:"core/navigation"===o(a(i)),isParentOfSelectedBlock:c(i,!0),isImmediateParentOfSelectedBlock:c(i,!1),hasDescendants:!!b,selectedBlockHasDescendants:!(null===(t=l([d]))||void 0===t||!t.length),userCanCreatePages:e(It.store).canUser("create","pages"),userCanCreatePosts:e(It.store).canUser("create","posts"),thisBlock:n(i),blockTransforms:m([n(i)],a(i))}},[i]);function R(){const e=Object(Oe.createBlock)("core/navigation-submenu",t,x);j(i,e)}Object(je.useEffect)(()=>{y(),r({isTopLevelLink:B})},[B]);const L=["core/site-logo","core/social-links","core/search"],V=M.filter(e=>L.includes(e.name));Object(je.useEffect)(()=>{d||_(!0),N&&R()},[]),Object(je.useEffect)(()=>{n||_(!1)},[n]),Object(je.useEffect)(()=>{f&&d&&(Object(Kr.isURL)(Object(Kr.prependHTTP)(s))&&/^.+\.[a-z]+/.test(s)?function(){C.current.focus();const{ownerDocument:e}=C.current,{defaultView:t}=e,n=t.getSelection(),r=e.createRange();r.selectNodeContents(C.current),n.removeAllRanges(),n.addRange(r)}():Object(Fl.placeCaretAtHorizontalEdge)(C.current,!0))},[d]);let A=!1;u&&"page"!==u?"post"===u&&(A=z):A=P;const{textColor:H,customTextColor:F,backgroundColor:D,customBackgroundColor:G}=function(e,t){var n,r;const{textColor:o,customTextColor:a,backgroundColor:l,customBackgroundColor:c,overlayTextColor:i,customOverlayTextColor:s,overlayBackgroundColor:u,customOverlayBackgroundColor:m,style:d}=e,b={};return t&&s?b.customTextColor=s:t&&i?b.textColor=i:a?b.customTextColor=a:o?b.textColor=o:null!=d&&null!==(n=d.color)&&void 0!==n&&n.text&&(b.customTextColor=d.color.text),t&&m?b.customBackgroundColor=m:t&&u?b.backgroundColor=u:c?b.customBackgroundColor=c:l?b.backgroundColor=l:null!=d&&null!==(r=d.color)&&void 0!==r&&r.background&&(b.customTextColor=d.color.background),b}(c,!B),q=Object(we.useBlockProps)({ref:k,className:tt()("wp-block-navigation-item",{"is-editing":n||T,"is-dragging-within":w,"has-link":!!d,"has-child":N,"has-text-color":!!H||!!F,[Object(we.getColorClassName)("color",H)]:!!H,"has-background":!!D||G,[Object(we.getColorClassName)("background-color",D)]:!!D}),style:{color:!H&&F,backgroundColor:!D&&G},onKeyDown:function(e){(dt.isKeyboardEvent.primary(e,"k")||!d&&e.keyCode===dt.ENTER)&&_(!0)}});d||(q.onClick=()=>_(!0));const U=tt()("wp-block-navigation-item__content",{"wp-block-navigation-link__placeholder":!d});let W="";switch(u){case"post":W=Object(ke.__)("Select post");break;case"page":W=Object(ke.__)("Select page");break;case"category":W=Object(ke.__)("Select category");break;case"tag":W=Object(ke.__)("Select tag");break;default:W=Object(ke.__)("Add link")}return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(_e.ToolbarGroup,null,Object(je.createElement)(_e.ToolbarButton,{name:"link",icon:bt.a,title:Object(ke.__)("Link"),shortcut:dt.displayShortcut.primary("k"),onClick:()=>_(!0)}),!S&&Object(je.createElement)(_e.ToolbarButton,{name:"submenu",icon:Fc,title:Object(ke.__)("Add submenu"),onClick:R}))),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Link settings")},Object(je.createElement)(_e.TextareaControl,{value:b||"",onChange:e=>{r({description:e})},label:Object(ke.__)("Description"),help:Object(ke.__)("The description will be displayed in the menu if the current theme supports it.")}),Object(je.createElement)(_e.TextControl,{value:g||"",onChange:e=>{r({title:e})},label:Object(ke.__)("Link title"),autoComplete:"off"}),Object(je.createElement)(_e.TextControl,{value:p||"",onChange:e=>{r({rel:e})},label:Object(ke.__)("Link rel"),autoComplete:"off"}))),Object(je.createElement)("div",q,Object(je.createElement)("a",{className:U},d?Object(je.createElement)(we.RichText,{ref:C,identifier:"label",className:"wp-block-navigation-item__label",value:s,onChange:e=>r({label:e}),onMerge:a,onReplace:l,__unstableOnSplitAtEnd:()=>o(Object(Oe.createBlock)("core/navigation-link")),"aria-label":Object(ke.__)("Navigation link text"),placeholder:E,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"],onClick:()=>{d||_(!0)}}):Object(je.createElement)("div",{className:"wp-block-navigation-link__placeholder-text"},Object(je.createElement)(_e.Tooltip,{position:"top center",text:Object(ke.__)("This item is missing a link")},Object(je.createElement)("span",null,W))),f&&Object(je.createElement)(_e.Popover,{position:"bottom center",onClose:()=>_(!1),anchorRef:k.current},Object(je.createElement)(we.__experimentalLinkControl,{hasTextControl:!0,className:"wp-block-navigation-link__inline-link-input",value:v,showInitialSuggestions:!0,withCreateSuggestion:A,createSuggestion:async function(e){const t=u||"page",n=await O("postType",t,{title:e,status:"draft"});return{id:n.id,type:t,title:n.title.rendered,url:n.link,kind:"post-type"}},createSuggestionButtonText:e=>{let t;return t="post"===u?Object(ke.__)("Create draft post: <mark>%s</mark>"):Object(ke.__)("Create draft page: <mark>%s</mark>"),Object(je.createInterpolateElement)(Object(ke.sprintf)(t,e),{mark:Object(je.createElement)("mark",null)})},noDirectEntry:!!u,noURLSuggestion:!!u,suggestionsQuery:Gc(u,h),onChange:e=>function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{label:r="",kind:o="",type:a=""}=n,{title:l="",url:c="",opensInNewTab:i,id:s,kind:u=o,type:m=a}=e,d=l.replace(/http(s?):\/\//gi,""),b=c.replace(/http(s?):\/\//gi,""),p=""!==l&&d!==b&&r!==l,g=p?Object(Me.escape)(l):r||Object(Me.escape)(b),h="post_tag"===m?"tag":m.replace("-","_"),v=["post","page","tag","category"].indexOf(h)>-1,O=!u&&!v||"custom"===u,j=O?"custom":u;t({...c&&{url:encodeURI(Object(Kr.safeDecodeURI)(c))},...g&&{label:g},...void 0!==i&&{opensInNewTab:i},...s&&Number.isInteger(s)&&{id:s},...j&&{kind:j},...h&&"URL"!==h&&{type:h}})}(e,r,t),onRemove:function(){r({url:"",label:"",id:"",kind:"",type:""}),_(!1)},renderControlBottom:d?null:()=>Object(je.createElement)(Uc,{block:I,transforms:V,replace:j})})))))},save:function(){return Object(je.createElement)(we.InnerBlocks.Content,null)},example:{attributes:{label:Object(ke._x)("Example Link","navigation link preview example"),url:"https://example.com"}},deprecated:[{isEligible:e=>e.nofollow,attributes:{label:{type:"string"},type:{type:"string"},nofollow:{type:"boolean"},description:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"}},migrate(e){let{nofollow:t,...n}=e;return{rel:t?"nofollow":"",...n}},save:()=>Object(je.createElement)(we.InnerBlocks.Content,null)}],transforms:Xc};Object(Vo.addFilter)("blocks.registerBlockType","core/navigation-link",(function(e,t){if("core/navigation-link"!==t)return e;if(!e.variations)return{...e,variations:Qc};if(e.variations){const t=(e,t)=>e.type===t.type,n=e.variations.map(e=>({...e,...!e.icon&&{icon:Yc(e.name)},...!e.isActive&&{isActive:t}}));return{...e,variations:n}}return e}));var ri=n("gdqT");const oi=()=>Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},Object(je.createElement)(_e.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})),{name:ai}={apiVersion:2,name:"core/navigation-submenu",title:"Submenu",category:"design",parent:["core/navigation"],description:"Add a submenu to your navigation.",textdomain:"default",attributes:{label:{type:"string"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"},title:{type:"string"},kind:{type:"string"},isTopLevelItem:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","openSubmenusOnClick","style"],supports:{reusable:!1,html:!1},editorStyle:"wp-block-navigation-submenu-editor",style:"wp-block-navigation-submenu"},li=["core/navigation-link","core/navigation-submenu"],ci=["core/navigation-link"];function ii(e,t){switch(e){case"post":case"page":return{type:"post",subtype:e};case"category":return{type:"term",subtype:"category"};case"tag":return{type:"term",subtype:"post_tag"};case"post_format":return{type:"post-format"};default:return"taxonomy"===t?{type:"term",subtype:e}:"post-type"===t?{type:"post",subtype:e}:{}}}function si(e,t){var n,r;const{textColor:o,customTextColor:a,backgroundColor:l,customBackgroundColor:c,overlayTextColor:i,customOverlayTextColor:s,overlayBackgroundColor:u,customOverlayBackgroundColor:m,style:d}=e,b={};return t&&s?b.customTextColor=s:t&&i?b.textColor=i:a?b.customTextColor=a:o?b.textColor=o:null!=d&&null!==(n=d.color)&&void 0!==n&&n.text&&(b.customTextColor=d.color.text),t&&m?b.customBackgroundColor=m:t&&u?b.backgroundColor=u:c?b.customBackgroundColor=c:l?b.backgroundColor=l:null!=d&&null!==(r=d.color)&&void 0!==r&&r.background&&(b.customTextColor=d.color.background),b}var ui={to:[{type:"block",blocks:["core/navigation-link"],isMatch:(e,t)=>{var n;return 0===(null==t||null===(n=t.innerBlocks)||void 0===n?void 0:n.length)},transform:e=>Object(Oe.createBlock)("core/navigation-link",e)},{type:"block",blocks:["core/spacer"],isMatch:(e,t)=>{var n;return 0===(null==t||null===(n=t.innerBlocks)||void 0===n?void 0:n.length)},transform:()=>Object(Oe.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],isMatch:(e,t)=>{var n;return 0===(null==t||null===(n=t.innerBlocks)||void 0===n?void 0:n.length)},transform:()=>Object(Oe.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],isMatch:(e,t)=>{var n;return 0===(null==t||null===(n=t.innerBlocks)||void 0===n?void 0:n.length)},transform:()=>Object(Oe.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],isMatch:(e,t)=>{var n;return 0===(null==t||null===(n=t.innerBlocks)||void 0===n?void 0:n.length)},transform:()=>Object(Oe.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],isMatch:(e,t)=>{var n;return 0===(null==t||null===(n=t.innerBlocks)||void 0===n?void 0:n.length)},transform:()=>Object(Oe.createBlock)("core/search")}]};const mi={apiVersion:2,name:"core/navigation-submenu",title:"Submenu",category:"design",parent:["core/navigation"],description:"Add a submenu to your navigation.",textdomain:"default",attributes:{label:{type:"string"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"},title:{type:"string"},kind:{type:"string"},isTopLevelItem:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","openSubmenusOnClick","style"],supports:{reusable:!1,html:!1},editorStyle:"wp-block-navigation-submenu-editor",style:"wp-block-navigation-submenu"},{name:di}=mi,bi={icon:Fc,__experimentalLabel:e=>{let{label:t}=e;return t},edit:function(e){let{attributes:t,isSelected:n,setAttributes:r,mergeBlocks:o,onReplace:a,context:l,clientId:c}=e;const{label:i,type:s,opensInNewTab:u,url:m,description:d,rel:b,title:p,kind:g}=t,h={url:m,opensInNewTab:u},{showSubmenuIcon:v,openSubmenusOnClick:O}=l,{saveEntityRecord:j}=Object(ze.useDispatch)(It.store),{__unstableMarkNextChangeAsNotPersistent:y}=Object(ze.useDispatch)(we.store),[f,_]=Object(je.useState)(!1),k=Object(je.useRef)(null),w=(e=>{const[t,n]=Object(je.useState)(!1);return Object(je.useEffect)(()=>{const{ownerDocument:t}=e.current;function r(e){a(e)}function o(){n(!1)}function a(t){e.current.contains(t.target)?n(!0):n(!1)}return t.addEventListener("dragstart",r),t.addEventListener("dragend",o),t.addEventListener("dragenter",a),()=>{t.removeEventListener("dragstart",r),t.removeEventListener("dragend",o),t.removeEventListener("dragenter",a)}},[]),t})(k),E=Object(ke.__)("Add text…"),C=Object(je.useRef)(),{isAtMaxNesting:x,isTopLevelItem:S,isParentOfSelectedBlock:B,isImmediateParentOfSelectedBlock:T,hasDescendants:N,selectedBlockHasDescendants:P,userCanCreatePages:z,userCanCreatePosts:I}=Object(ze.useSelect)(e=>{var t;const{getClientIdsOfDescendants:n,hasSelectedInnerBlock:r,getSelectedBlockClientId:o,getBlockParentsByBlockName:a}=e(we.store),l=o(),i=n([c]).length;return{isAtMaxNesting:a(c,ai).length>=5,isTopLevelItem:0===a(c,ai).length,isParentOfSelectedBlock:r(c,!0),isImmediateParentOfSelectedBlock:r(c,!1),hasDescendants:!!i,selectedBlockHasDescendants:!(null===(t=n([l]))||void 0===t||!t.length),userCanCreatePages:e(It.store).canUser("create","pages"),userCanCreatePosts:e(It.store).canUser("create","posts")}},[c]);Object(je.useEffect)(()=>{O||m||_(!0)},[]),Object(je.useEffect)(()=>{y(),r({isTopLevelItem:S})},[S]),Object(je.useEffect)(()=>{n||_(!1)},[n]),Object(je.useEffect)(()=>{f&&m&&(Object(Kr.isURL)(Object(Kr.prependHTTP)(i))&&/^.+\.[a-z]+/.test(i)?function(){C.current.focus();const{ownerDocument:e}=C.current,{defaultView:t}=e,n=t.getSelection(),r=e.createRange();r.selectNodeContents(C.current),n.removeAllRanges(),n.addRange(r)}():Object(Fl.placeCaretAtHorizontalEdge)(C.current,!0))},[m]);let M=!1;s&&"page"!==s?"post"===s&&(M=I):M=z;const{textColor:R,customTextColor:L,backgroundColor:V,customBackgroundColor:A}=si(l,!S),H=Object(we.useBlockProps)({ref:k,className:tt()("wp-block-navigation-item",{"is-editing":n||B,"is-dragging-within":w,"has-link":!!m,"has-child":N,"has-text-color":!!R||!!L,[Object(we.getColorClassName)("color",R)]:!!R,"has-background":!!V||A,[Object(we.getColorClassName)("background-color",V)]:!!V,"open-on-click":O}),style:{color:!R&&L,backgroundColor:!V&&A},onKeyDown:function(e){dt.isKeyboardEvent.primary(e,"k")&&_(!0)}}),F=si(l,!0);x&&Object(Me.pull)(li,"core/navigation-submenu");const D=Object(we.useInnerBlocksProps)({className:tt()("wp-block-navigation__submenu-container",{"is-parent-of-selected-block":B,"has-text-color":!(!F.textColor&&!F.customTextColor),[`has-${F.textColor}-color`]:!!F.textColor,"has-background":!(!F.backgroundColor&&!F.customBackgroundColor),[`has-${F.backgroundColor}-background-color`]:!!F.backgroundColor}),style:{color:F.customTextColor,backgroundColor:F.customBackgroundColor}},{allowedBlocks:li,__experimentalDefaultBlock:ci,__experimentalDirectInsert:!0,renderAppender:!!(n||T&&!P||N)&&we.InnerBlocks.DefaultAppender}),G=O?"button":"a";return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(_e.ToolbarGroup,null,!O&&Object(je.createElement)(_e.ToolbarButton,{name:"link",icon:bt.a,title:Object(ke.__)("Link"),shortcut:dt.displayShortcut.primary("k"),onClick:()=>_(!0)}))),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Link settings")},Object(je.createElement)(_e.TextareaControl,{value:d||"",onChange:e=>{r({description:e})},label:Object(ke.__)("Description"),help:Object(ke.__)("The description will be displayed in the menu if the current theme supports it.")}),Object(je.createElement)(_e.TextControl,{value:p||"",onChange:e=>{r({title:e})},label:Object(ke.__)("Link title"),autoComplete:"off"}),Object(je.createElement)(_e.TextControl,{value:b||"",onChange:e=>{r({rel:e})},label:Object(ke.__)("Link rel"),autoComplete:"off"}))),Object(je.createElement)("div",H,Object(je.createElement)(G,{className:"wp-block-navigation-item__content"},Object(je.createElement)(we.RichText,{ref:C,identifier:"label",className:"wp-block-navigation-item__label",value:i,onChange:e=>r({label:e}),onMerge:o,onReplace:a,"aria-label":Object(ke.__)("Navigation link text"),placeholder:E,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"],onClick:()=>{O||m||_(!0)}}),!O&&f&&Object(je.createElement)(_e.Popover,{position:"bottom center",onClose:()=>_(!1),anchorRef:k.current},Object(je.createElement)(we.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:h,showInitialSuggestions:!0,withCreateSuggestion:M,createSuggestion:async function(e){const t=s||"page",n=await j("postType",t,{title:e,status:"draft"});return{id:n.id,type:t,title:n.title.rendered,url:n.link,kind:"post-type"}},createSuggestionButtonText:e=>{let t;return t="post"===s?Object(ke.__)("Create draft post: <mark>%s</mark>"):Object(ke.__)("Create draft page: <mark>%s</mark>"),Object(je.createInterpolateElement)(Object(ke.sprintf)(t,e),{mark:Object(je.createElement)("mark",null)})},noDirectEntry:!!s,noURLSuggestion:!!s,suggestionsQuery:ii(s,g),onChange:e=>function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{label:r="",kind:o="",type:a=""}=n,{title:l="",url:c="",opensInNewTab:i,id:s,kind:u=o,type:m=a}=e,d=l.replace(/http(s?):\/\//gi,""),b=c.replace(/http(s?):\/\//gi,""),p=""!==l&&d!==b&&r!==l,g=p?Object(Me.escape)(l):r||Object(Me.escape)(b),h="post_tag"===m?"tag":m.replace("-","_"),v=["post","page","tag","category"].indexOf(h)>-1,O=!u&&!v||"custom"===u,j=O?"custom":u;t({...c&&{url:encodeURI(Object(Kr.safeDecodeURI)(c))},...g&&{label:g},...void 0!==i&&{opensInNewTab:i},...s&&Number.isInteger(s)&&{id:s},...j&&{kind:j},...h&&"URL"!==h&&{type:h}})}(e,r,t),onRemove:()=>{r({url:""}),Object(ri.speak)(Object(ke.__)("Link removed."),"assertive")}})),(v||O)&&Object(je.createElement)("span",{className:"wp-block-navigation__submenu-icon"},Object(je.createElement)(oi,null))),Object(je.createElement)("div",D)))},save:function(){return Object(je.createElement)(we.InnerBlocks.Content,null)},transforms:ui};var pi=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M7.8 6c0-.7.6-1.2 1.2-1.2h6c.7 0 1.2.6 1.2 1.2v3h1.5V6c0-1.5-1.2-2.8-2.8-2.8H9C7.5 3.2 6.2 4.5 6.2 6v3h1.5V6zm8.4 11c0 .7-.6 1.2-1.2 1.2H9c-.7 0-1.2-.6-1.2-1.2v-3H6.2v3c0 1.5 1.2 2.8 2.8 2.8h6c1.5 0 2.8-1.2 2.8-2.8v-3h-1.5v3zM4 11v1h16v-1H4z"}));var gi={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&"core/nextpage"===e.dataset.block,transform:()=>Object(Oe.createBlock)("core/nextpage",{})}]};const hi={apiVersion:2,name:"core/nextpage",title:"Page Break",category:"design",description:"Separate your content into a multi-page experience.",keywords:["next page","pagination"],parent:["core/post-content"],textdomain:"default",supports:{customClassName:!1,className:!1,html:!1},editorStyle:"wp-block-nextpage-editor"},{name:vi}=hi,Oi={icon:pi,example:{},transforms:gi,edit:function(){return Object(je.createElement)("div",Object(we.useBlockProps)(),Object(je.createElement)("div",{className:"wp-block-nextpage"},Object(je.createElement)("span",null,Object(ke.__)("Page break"))))},save:function(){return Object(je.createElement)(je.RawHTML,null,"\x3c!--nextpage--\x3e")}};var ji=e=>{let{attributes:t,clientId:n}=e;const r=Object(ze.useSelect)(e=>e(we.store).__experimentalGetParsedPattern(t.slug),[t.slug]),{replaceBlocks:o,__unstableMarkNextChangeAsNotPersistent:a}=Object(ze.useDispatch)(we.store);Object(je.useEffect)(()=>{null!=r&&r.blocks&&(a(),o(n,r.blocks))},[null==r?void 0:r.blocks]);const l=Object(we.useBlockProps)();return Object(je.createElement)("div",l)};const yi={apiVersion:2,name:"core/pattern",title:"Pattern",category:"theme",description:"Show a block pattern.",supports:{html:!1,inserter:!1},textdomain:"default",attributes:{slug:{type:"string"}}},{name:fi}=yi,_i={edit:ji};var ki=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M7 13.8h6v-1.5H7v1.5zM18 16V4c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2zM5.5 16V4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5zM7 10.5h8V9H7v1.5zm0-3.3h8V5.8H7v1.4zM20.2 6v13c0 .7-.6 1.2-1.2 1.2H8v1.5h11c1.5 0 2.7-1.2 2.7-2.8V6h-1.5z"}));const wi=["id","title","link","type","parent"],Ei=e=>{let{pages:t,clientId:n,replaceBlock:r,createBlock:o}=e;return()=>{if(!t)return;const e={},a=[];t.forEach(t=>{var n,r;let{id:l,title:c,link:i,type:s,parent:u}=t;const m=null!==(n=null===(r=e[l])||void 0===r?void 0:r.innerBlocks)&&void 0!==n?n:[];if(e[l]=o("core/navigation-link",{id:l,label:c.rendered,url:i,type:s,kind:"post-type"},m),u){e[u]||(e[u]={innerBlocks:[]});e[u].innerBlocks.push(e[l])}else a.push(e[l])});const l=e=>{e.forEach((e,t,n)=>{const{attributes:r,innerBlocks:a}=e;if(0!==a.length){l(a);const e=o("core/navigation-submenu",r,a);n[t]=e}})};l(a),r(n,a)}};function Ci(e){let{onClose:t,clientId:n}=e;const{pages:r,pagesFinished:o}=Object(ze.useSelect)(e=>{const{getEntityRecords:t,hasFinishedResolution:n}=e(It.store),r=["postType","page",{per_page:100,_fields:wi,orderby:"menu_order",order:"asc"}];return{pages:t(...r),pagesFinished:n("getEntityRecords",r)}},[n]),{replaceBlock:a}=Object(ze.useDispatch)(we.store);return Object(je.createElement)(_e.Modal,{closeLabel:Object(ke.__)("Close"),onRequestClose:t,title:Object(ke.__)("Convert to links"),className:"wp-block-page-list-modal",aria:{describedby:"wp-block-page-list-modal__description"}},Object(je.createElement)("p",{id:"wp-block-page-list-modal__description"},Object(ke.__)("To edit this navigation menu, convert it to single page links. This allows you to add, re-order, remove items, or edit their labels.")),Object(je.createElement)("p",null,Object(ke.__)("Note: if you add new pages to your site, you'll need to add them to your navigation menu.")),Object(je.createElement)("div",{className:"wp-block-page-list-modal-buttons"},Object(je.createElement)(_e.Button,{variant:"tertiary",onClick:t},Object(ke.__)("Cancel")),Object(je.createElement)(_e.Button,{variant:"primary",disabled:!o,onClick:Ei({pages:r,replaceBlock:a,clientId:n,createBlock:Oe.createBlock})},Object(ke.__)("Convert"))))}const xi=()=>Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},Object(je.createElement)(_e.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"}));const Si=Object(je.memo)((function e(t){let{context:n,pagesByParentId:r,parentId:o=0,depth:a=0}=t;const l=r.get(o);return null!=l&&l.length?l.map(t=>{var o,l;const c=r.has(t.id),i="showSubmenuIcon"in n;return Object(je.createElement)("li",{key:t.id,className:tt()("wp-block-pages-list__item",{"has-child":c,"wp-block-navigation-item":i,"open-on-click":n.openSubmenusOnClick,"open-on-hover-click":!n.openSubmenusOnClick&&n.showSubmenuIcon})},c&&n.openSubmenusOnClick?Object(je.createElement)(Bi,{title:null===(o=t.title)||void 0===o?void 0:o.rendered}):Object(je.createElement)("a",{className:tt()("wp-block-pages-list__item__link",{"wp-block-navigation-item__content":i}),href:t.link},null===(l=t.title)||void 0===l?void 0:l.rendered),c&&Object(je.createElement)(je.Fragment,null,!n.openSubmenusOnClick&&n.showSubmenuIcon&&Object(je.createElement)(Bi,null),Object(je.createElement)("ul",{className:tt()("submenu-container",{"wp-block-navigation__submenu-container":i})},Object(je.createElement)(e,{context:n,pagesByParentId:r,parentId:t.id,depth:a+1}))))}):[]}));function Bi(e){let{title:t}=e;return Object(je.createElement)("button",{className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle","aria-expanded":"false"},t,Object(je.createElement)("span",{className:"wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon"},Object(je.createElement)(xi,null)))}const Ti={apiVersion:2,name:"core/page-list",title:"Page List",category:"widgets",description:"Display a list of all pages.",keywords:["menu","navigation"],textdomain:"default",attributes:{},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick"],supports:{reusable:!1,html:!1},editorStyle:"wp-block-page-list-editor",style:"wp-block-page-list"},{name:Ni}=Ti,Pi={icon:ki,example:{},edit:function(e){var t;let{context:n,clientId:r}=e;const{pagesByParentId:o,totalPages:a}=function(){const{pages:e}=Object(ze.useSelect)(e=>{const{getEntityRecords:t}=e(It.store);return{pages:t("postType","page",{orderby:"menu_order",order:"asc",_fields:["id","link","parent","title","menu_order"],per_page:-1})}},[]);return Object(je.useMemo)(()=>({pagesByParentId:Object(Me.sortBy)(e,["menu_order","title.rendered"]).reduce((e,t)=>{const{parent:n}=t;return e.has(n)?e.get(n).push(t):e.set(n,[t]),e},new Map),totalPages:null==e?void 0:e.length}),[e])}(),l="showSubmenuIcon"in n&&a<=100,[c,i]=Object(je.useState)(!1),s=Object(we.useBlockProps)({className:tt()("wp-block-page-list",{"has-text-color":!!n.textColor,[Object(we.getColorClassName)("color",n.textColor)]:!!n.textColor,"has-background":!!n.backgroundColor,[Object(we.getColorClassName)("background-color",n.backgroundColor)]:!!n.backgroundColor}),style:{...null===(t=n.style)||void 0===t?void 0:t.color}});return Object(je.createElement)(je.Fragment,null,l&&Object(je.createElement)(we.BlockControls,{group:"other"},Object(je.createElement)(_e.ToolbarButton,{title:Object(ke.__)("Edit"),onClick:()=>i(!0)},Object(ke.__)("Edit"))),l&&c&&Object(je.createElement)(Ci,{onClose:()=>i(!1),clientId:r}),void 0===a&&Object(je.createElement)("div",s,Object(je.createElement)(_e.Placeholder,null,Object(je.createElement)(_e.Spinner,null))),0===a&&Object(je.createElement)("div",s,Object(je.createElement)("span",null,Object(ke.__)("Page List: No pages to show."))),a>0&&Object(je.createElement)("ul",s,Object(je.createElement)(Si,{context:n,pagesByParentId:o})))}};var zi=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M18.3 4H9.9v-.1l-.9.2c-2.3.4-4 2.4-4 4.8s1.7 4.4 4 4.8l.7.1V20h1.5V5.5h2.9V20h1.5V5.5h2.7V4z"}));const Ii={className:!1},Mi={align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:""},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},textColor:{type:"string"},backgroundColor:{type:"string"},fontSize:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]},style:{type:"object"}},Ri=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customFontSize)return e;const t={};return(e.customTextColor||e.customBackgroundColor)&&(t.color={}),e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customFontSize&&(t.typography={fontSize:e.customFontSize}),{...Object(Me.omit)(e,["customTextColor","customBackgroundColor","customFontSize"]),style:t}};var Li=[{supports:Ii,attributes:{...Object(Me.omit)(Mi,["style"]),customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:Ri,save(e){let{attributes:t}=e;const{align:n,content:r,dropCap:o,backgroundColor:a,textColor:l,customBackgroundColor:c,customTextColor:i,fontSize:s,customFontSize:u,direction:m}=t,d=Object(we.getColorClassName)("color",l),b=Object(we.getColorClassName)("background-color",a),p=Object(we.getFontSizeClass)(s),g=tt()({"has-text-color":l||i,"has-background":a||c,"has-drop-cap":o,["has-text-align-"+n]:n,[p]:p,[d]:d,[b]:b}),h={backgroundColor:b?void 0:c,color:d?void 0:i,fontSize:p?void 0:u};return Object(je.createElement)(we.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:r,dir:m})}},{supports:Ii,attributes:{...Object(Me.omit)(Mi,["style"]),customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:Ri,save(e){let{attributes:t}=e;const{align:n,content:r,dropCap:o,backgroundColor:a,textColor:l,customBackgroundColor:c,customTextColor:i,fontSize:s,customFontSize:u,direction:m}=t,d=Object(we.getColorClassName)("color",l),b=Object(we.getColorClassName)("background-color",a),p=Object(we.getFontSizeClass)(s),g=tt()({"has-text-color":l||i,"has-background":a||c,"has-drop-cap":o,[p]:p,[d]:d,[b]:b}),h={backgroundColor:b?void 0:c,color:d?void 0:i,fontSize:p?void 0:u,textAlign:n};return Object(je.createElement)(we.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:r,dir:m})}},{supports:Ii,attributes:{...Object(Me.omit)(Mi,["style"]),customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"},width:{type:"string"}},migrate:Ri,save(e){let{attributes:t}=e;const{width:n,align:r,content:o,dropCap:a,backgroundColor:l,textColor:c,customBackgroundColor:i,customTextColor:s,fontSize:u,customFontSize:m}=t,d=Object(we.getColorClassName)("color",c),b=Object(we.getColorClassName)("background-color",l),p=u&&`is-${u}-text`,g=tt()({["align"+n]:n,"has-background":l||i,"has-drop-cap":a,[p]:p,[d]:d,[b]:b}),h={backgroundColor:b?void 0:i,color:d?void 0:s,fontSize:p?void 0:m,textAlign:r};return Object(je.createElement)(we.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:o})}},{supports:Ii,attributes:Object(Me.omit)({...Mi,fontSize:{type:"number"}},["style"]),save(e){let{attributes:t}=e;const{width:n,align:r,content:o,dropCap:a,backgroundColor:l,textColor:c,fontSize:i}=t,s=tt()({["align"+n]:n,"has-background":l,"has-drop-cap":a}),u={backgroundColor:l,color:c,fontSize:i,textAlign:r};return Object(je.createElement)("p",{style:u,className:s||void 0},o)},migrate:e=>Ri(Object(Me.omit)({...e,customFontSize:Object(Me.isFinite)(e.fontSize)?e.fontSize:void 0,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.backgroundColor&&"#"===e.backgroundColor[0]?e.backgroundColor:void 0}))},{supports:Ii,attributes:{...Mi,content:{type:"string",source:"html",default:""}},save(e){let{attributes:t}=e;return Object(je.createElement)(je.RawHTML,null,t.content)},migrate:e=>e}];var Vi=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(je.createElement)(ye.Path,{d:"M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM14 14l5-4-5-4v8z"}));function Ai(e){let{direction:t,setDirection:n}=e;return Object(ke.isRTL)()&&Object(je.createElement)(_e.ToolbarDropdownMenu,{controls:[{icon:Vi,title:Object(ke._x)("Left to right","editor button"),isActive:"ltr"===t,onClick(){n("ltr"===t?void 0:"ltr")}}]})}var Hi=function(e){let{attributes:t,mergeBlocks:n,onReplace:r,onRemove:o,setAttributes:a,clientId:l}=e;const{align:c,content:i,direction:s,dropCap:u,placeholder:m}=t,d=Object(we.useSetting)("typography.dropCap"),b=Object(we.useBlockProps)({className:tt()({"has-drop-cap":u,["has-text-align-"+c]:c}),style:{direction:s}});return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(we.AlignmentControl,{value:c,onChange:e=>a({align:e})}),Object(je.createElement)(Ai,{direction:s,setDirection:e=>a({direction:e})})),d&&Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Text settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Drop cap"),checked:!!u,onChange:()=>a({dropCap:!u}),help:u?Object(ke.__)("Showing large initial letter."):Object(ke.__)("Toggle to show a large initial letter.")}))),Object(je.createElement)(we.RichText,Object(mt.a)({identifier:"content",tagName:"p"},b,{value:i,onChange:e=>a({content:e}),onSplit:(e,n)=>{let r;(n||e)&&(r={...t,content:e});const o=Object(Oe.createBlock)("core/paragraph",r);return n&&(o.clientId=l),o},onMerge:n,onReplace:r,onRemove:o,"aria-label":i?Object(ke.__)("Paragraph block"):Object(ke.__)("Empty block; start writing or type forward slash to choose a block"),"data-empty":!i,placeholder:m||Object(ke.__)("Type / to choose a block"),__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0})))};const{name:Fi}={apiVersion:2,name:"core/paragraph",title:"Paragraph",category:"text",description:"Start with the building block of all narrative.",keywords:["text"],textdomain:"default",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:"",__experimentalRole:"content"},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]}},supports:{anchor:!0,className:!1,color:{link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:"p",__unstablePasteTextInline:!0},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"};var Di={from:[{type:"raw",priority:20,selector:"p",schema:e=>{let{phrasingContentSchema:t,isPaste:n}=e;return{p:{children:t,attributes:n?[]:["style","id"]}}},transform(e){const t=Object(Oe.getBlockAttributes)(Fi,e.outerHTML),{textAlign:n}=e.style||{};return"left"!==n&&"center"!==n&&"right"!==n||(t.align=n),Object(Oe.createBlock)(Fi,t)}}]};const Gi={apiVersion:2,name:"core/paragraph",title:"Paragraph",category:"text",description:"Start with the building block of all narrative.",keywords:["text"],textdomain:"default",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:"",__experimentalRole:"content"},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]}},supports:{anchor:!0,className:!1,color:{link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:"p",__unstablePasteTextInline:!0},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"},{name:qi}=Gi,Ui={icon:zi,example:{attributes:{content:Object(ke.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing."),style:{typography:{fontSize:28}},dropCap:!0}},__experimentalLabel(e,t){let{context:n}=t;if("accessibility"===n){const{content:t}=e;return Object(Me.isEmpty)(t)?Object(ke.__)("Empty"):t}},transforms:Di,deprecated:Li,merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),edit:Hi,save:function(e){let{attributes:t}=e;const{align:n,content:r,dropCap:o,direction:a}=t,l=tt()({"has-drop-cap":o,["has-text-align-"+n]:n});return Object(je.createElement)("p",we.useBlockProps.save({className:l,dir:a}),Object(je.createElement)(we.RichText.Content,{value:r}))}};var Wi=function(e){let{isSelected:t,context:{postType:n,postId:r,queryId:o},attributes:a,setAttributes:l}=e;const c=!!o,{authorId:i,authorDetails:s,authors:u}=Object(ze.useSelect)(e=>{var t;const{getEditedEntityRecord:o,getUser:a,getUsers:l}=e(It.store),c=null===(t=o("postType",n,r))||void 0===t?void 0:t.author;return{authorId:c,authorDetails:c?a(c):null,authors:l({who:"authors"})}},[n,r]),{editEntityRecord:m}=Object(ze.useDispatch)(It.store),{textAlign:d,showAvatar:b,showBio:p,byline:g}=a,h=[];s&&Object(Me.forEach)(s.avatar_urls,(e,t)=>{h.push({value:t,label:`${t} x ${t}`})});const v=Object(we.useBlockProps)({className:tt()({["has-text-align-"+d]:d})});return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Author Settings")},!c&&!(null==u||!u.length)&&Object(je.createElement)(_e.SelectControl,{label:Object(ke.__)("Author"),value:i,options:u.map(e=>{let{id:t,name:n}=e;return{value:t,label:n}}),onChange:e=>{m("postType",n,r,{author:e})}}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Show avatar"),checked:b,onChange:()=>l({showAvatar:!b})}),b&&Object(je.createElement)(_e.SelectControl,{label:Object(ke.__)("Avatar size"),value:a.avatarSize,options:h,onChange:e=>{l({avatarSize:Number(e)})}}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Show bio"),checked:p,onChange:()=>l({showBio:!p})}))),Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(we.AlignmentControl,{value:d,onChange:e=>{l({textAlign:e})}})),Object(je.createElement)("div",v,b&&s&&Object(je.createElement)("div",{className:"wp-block-post-author__avatar"},Object(je.createElement)("img",{width:a.avatarSize,src:s.avatar_urls[a.avatarSize],alt:s.name})),Object(je.createElement)("div",{className:"wp-block-post-author__content"},(!we.RichText.isEmpty(g)||t)&&Object(je.createElement)(we.RichText,{className:"wp-block-post-author__byline",multiline:!1,"aria-label":Object(ke.__)("Post author byline text"),placeholder:Object(ke.__)("Write byline…"),value:g,onChange:e=>l({byline:e})}),Object(je.createElement)("p",{className:"wp-block-post-author__name"},(null==s?void 0:s.name)||Object(ke.__)("Post Author")),p&&Object(je.createElement)("p",{className:"wp-block-post-author__bio"},null==s?void 0:s.description))))};var $i=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z",fillRule:"evenodd",clipRule:"evenodd"}));const Zi={apiVersion:2,name:"core/post-author",title:"Post Author",category:"theme",description:"Add the author of this post.",textdomain:"default",attributes:{textAlign:{type:"string"},avatarSize:{type:"number",default:48},showAvatar:{type:"boolean",default:!0},showBio:{type:"boolean"},byline:{type:"string"}},usesContext:["postType","postId","queryId"],supports:{html:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDuotone:".wp-block-post-author__avatar img"}},editorStyle:"wp-block-post-author-editor",style:"wp-block-post-author"},{name:Ki}=Zi,Ji={icon:$i,edit:Wi};var Qi=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.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"}));function Yi(e){let{postId:t}=e;return Object(ze.useSelect)(e=>{const n=e(It.store).getEntityRecords("root","comment",{post:t});return n&&n.length?n.map(e=>Object(je.createElement)(je.RawHTML,{className:"wp-block-post-comments__comment",key:e.id},e.content.rendered)):Object(ke.__)("No comments.")},[t])}const Xi={apiVersion:2,name:"core/post-comments",title:"Post Comments",category:"theme",description:"Display a post's comments.",textdomain:"default",attributes:{textAlign:{type:"string"}},usesContext:["postId","postType"],supports:{html:!1,align:["wide","full"],typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0}},style:"wp-block-post-comments"},{name:es}=Xi,ts={icon:Qi,edit:function(e){let{attributes:t,setAttributes:n,context:r}=e;const{postType:o,postId:a}=r,{textAlign:l}=t,c=Object(we.useBlockProps)({className:tt()({["has-text-align-"+l]:l})});return o&&a?Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(we.AlignmentControl,{value:l,onChange:e=>{n({textAlign:e})}})),Object(je.createElement)("div",c,Object(je.createElement)(Yi,{postId:a}))):Object(je.createElement)("div",c,Object(je.createElement)(we.Warning,null,Object(ke.__)("Post comments block: no post found.")))}};var ns=Object(je.createElement)(ye.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M4 20h16v-1.5H4V20zm0-4.8h16v-1.5H4v1.5zm0-6.4v1.5h16V8.8H4zM16 4H4v1.5h12V4z"}));function rs(e,t,n){return Object(ze.useSelect)(r=>r(It.store).canUserEditEntityRecord(e,t,n),[e,t,n])}function os(e){let{userCanEdit:t,postType:n,postId:r}=e;const[,,o]=Object(It.useEntityProp)("postType",n,"content",r),a=Object(we.useBlockProps)();return null!=o&&o.protected&&!t?Object(je.createElement)("div",a,Object(je.createElement)(we.Warning,null,Object(ke.__)("This content is password protected."))):Object(je.createElement)("div",a,Object(je.createElement)(je.RawHTML,{key:"html"},null==o?void 0:o.rendered))}function as(e){let{layout:t,context:n={}}=e;const{postType:r,postId:o}=n,a=Object(ze.useSelect)(e=>{var t;const{getSettings:n}=e(we.store);return null===(t=n())||void 0===t?void 0:t.supportsLayout},[]),l=Object(we.useSetting)("layout")||{},c=t&&t.inherit?l:t,[i,s,u]=Object(It.useEntityBlockEditor)("postType",r,{id:o}),m=Object(we.useInnerBlocksProps)(Object(we.useBlockProps)({className:"entry-content"}),{value:i,onInput:s,onChange:u,__experimentalLayout:a?c:void 0});return Object(je.createElement)("div",m)}function ls(e){const{context:{queryId:t,postType:n,postId:r}={}}=e,o=!!t,a=rs("postType",n,r);return a&&!o?Object(je.createElement)(as,e):Object(je.createElement)(os,{userCanEdit:a,postType:n,postId:r})}function cs(){const e=Object(we.useBlockProps)();return Object(je.createElement)("div",e,Object(je.createElement)("p",null,Object(ke.__)("Post Content")))}function is(){const e=Object(we.useBlockProps)();return Object(je.createElement)("div",e,Object(je.createElement)(we.Warning,null,Object(ke.__)("Block cannot be rendered inside itself.")))}const ss={apiVersion:2,name:"core/post-content",title:"Post Content",category:"theme",description:"Displays the contents of a post or page.",textdomain:"default",usesContext:["postId","postType","queryId"],supports:{align:["wide","full"],html:!1,__experimentalLayout:!0},editorStyle:"wp-block-post-content-editor"},{name:us}=ss,ms={icon:ns,edit:function(e){let{context:t,attributes:n}=e;const{postId:r,postType:o}=t,{layout:a={}}=n,[l,c]=Object(we.__experimentalUseNoRecursiveRenders)(r);return r&&o&&l?Object(je.createElement)(is,null):Object(je.createElement)(c,null,r&&o?Object(je.createElement)(ls,{context:t,layout:a}):Object(je.createElement)(cs,null))}};var ds=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M11.696 13.972c.356-.546.599-.958.728-1.235a1.79 1.79 0 00.203-.783c0-.264-.077-.47-.23-.618-.148-.153-.354-.23-.618-.23-.295 0-.569.07-.82.212a3.413 3.413 0 00-.738.571l-.147-1.188c.289-.234.59-.41.903-.526.313-.117.66-.175 1.041-.175.375 0 .695.08.959.24.264.153.46.362.59.626.135.265.203.556.203.876 0 .362-.08.734-.24 1.115-.154.381-.427.87-.82 1.466l-.756 1.152H14v1.106h-4l1.696-2.609z"}),Object(je.createElement)(ye.Path,{d:"M19.5 7h-15v12a.5.5 0 00.5.5h14a.5.5 0 00.5-.5V7zM3 7V5a2 2 0 012-2h14a2 2 0 012 2v14a2 2 0 01-2 2H5a2 2 0 01-2-2V7z"}));var bs=[{attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:at,isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}}];const ps={apiVersion:2,name:"core/post-date",title:"Post Date",category:"theme",description:"Add the date of this post.",textdomain:"default",attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1}},usesContext:["postId","postType","queryId"],supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:gs}=ps,hs={icon:ds,edit:function(e){let{attributes:{textAlign:t,format:n,isLink:r},context:{postId:o,postType:a,queryId:l},setAttributes:c}=e;const i=!!l,[s]=Object(It.useEntityProp)("root","site","date_format"),[u,m]=Object(It.useEntityProp)("postType",a,"date",o),d=Object($a.__experimentalGetSettings)(),b=/a(?!\\)/i.test(d.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join("")),p=Object.values(d.formats).map(e=>({key:e,name:Object($a.dateI18n)(e,u)})),g=n||s||d.formats.date,h=Object(we.useBlockProps)({className:tt()({["has-text-align-"+t]:t})}),v=Object(je.useRef)();let O=u?Object(je.createElement)("time",{dateTime:Object($a.dateI18n)("c",u),ref:v},Object($a.dateI18n)(g,u)):Object(ke.__)("Post Date");return r&&u&&(O=Object(je.createElement)("a",{href:"#post-date-pseudo-link",onClick:e=>e.preventDefault()},O)),Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(we.AlignmentControl,{value:t,onChange:e=>{c({textAlign:e})}}),u&&!i&&Object(je.createElement)(_e.ToolbarGroup,null,Object(je.createElement)(_e.Dropdown,{popoverProps:{anchorRef:v.current},renderContent:()=>Object(je.createElement)(_e.DateTimePicker,{currentDate:u,onChange:m,is12Hour:b}),renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return Object(je.createElement)(_e.ToolbarButton,{"aria-expanded":t,icon:tr.a,title:Object(ke.__)("Change Date"),onClick:n,onKeyDown:e=>{t||e.keyCode!==dt.DOWN||(e.preventDefault(),n())}})}}))),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Format settings")},Object(je.createElement)(_e.CustomSelectControl,{hideLabelFromVision:!0,label:Object(ke.__)("Date Format"),options:p,onChange:e=>{let{selectedItem:t}=e;return c({format:t.key})},value:p.find(e=>e.key===g)})),Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Link settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.sprintf)(Object(ke.__)("Link to %s"),a),onChange:()=>c({isLink:!r}),checked:r}))),Object(je.createElement)("div",h,O))},deprecated:bs};var vs=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M12.75 9.333c0 .521-.102.977-.327 1.354-.23.386-.555.628-.893.774-.545.234-1.183.227-1.544.222l-.12-.001v-1.5h.123c.414.001.715.002.948-.099a.395.395 0 00.199-.166c.05-.083.114-.253.114-.584V7.2H8.8V4h3.95v5.333zM7.95 9.333c0 .521-.102.977-.327 1.354-.23.386-.555.628-.893.774-.545.234-1.183.227-1.544.222l-.12-.001v-1.5h.123c.414.001.715.002.948-.099a.394.394 0 00.198-.166c.05-.083.115-.253.115-.584V7.2H4V4h3.95v5.333zM13 20H4v-1.5h9V20zM20 16H4v-1.5h16V16z"}));const Os={apiVersion:2,name:"core/post-excerpt",title:"Post Excerpt",category:"theme",description:"Display a post's excerpt.",textdomain:"default",attributes:{textAlign:{type:"string"},moreText:{type:"string"},showMoreOnNewLine:{type:"boolean",default:!0}},usesContext:["postId","postType","queryId"],supports:{html:!1,color:{gradients:!0,link:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-post-excerpt-editor",style:"wp-block-post-excerpt"},{name:js}=Os,ys={icon:vs,edit:function(e){let{attributes:{textAlign:t,moreText:n,showMoreOnNewLine:r},setAttributes:o,isSelected:a,context:{postId:l,postType:c,queryId:i}}=e;const s=!!i,u=rs("postType",c,l),m=u&&!s,[d,b,{rendered:p,protected:g}={}]=Object(It.useEntityProp)("postType",c,"excerpt",l),h=Object(we.useBlockProps)({className:tt()({["has-text-align-"+t]:t})}),v=Object(je.useMemo)(()=>{if(!p)return"";const e=(new window.DOMParser).parseFromString(p,"text/html");return e.body.textContent||e.body.innerText||""},[p]);if(!c||!l)return Object(je.createElement)("div",h,Object(ke.__)("Post Excerpt"));if(g&&!u)return Object(je.createElement)("div",h,Object(je.createElement)(we.Warning,null,Object(ke.__)("There is no excerpt because this is a protected post.")));const O=Object(je.createElement)(we.RichText,{className:"wp-block-post-excerpt__more-link",tagName:"a","aria-label":Object(ke.__)('"Read more" link text'),placeholder:Object(ke.__)('Add "read more" link text'),value:n,onChange:e=>o({moreText:e}),withoutInteractiveFormatting:!0}),j=m?Object(je.createElement)(we.RichText,{className:!r&&"wp-block-post-excerpt__excerpt is-inline","aria-label":Object(ke.__)("Post excerpt text"),value:d||v||(a?"":Object(ke.__)("No post excerpt found")),onChange:b}):p&&Object(je.createElement)(_e.Disabled,null,Object(je.createElement)(je.RawHTML,{key:"html"},p))||Object(ke.__)("No post excerpt found");return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(we.AlignmentToolbar,{value:t,onChange:e=>o({textAlign:e})})),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Post Excerpt Settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Show link on new line"),checked:r,onChange:e=>o({showMoreOnNewLine:e})}))),Object(je.createElement)("div",h,j,!r&&" ",r?Object(je.createElement)("p",{className:"wp-block-post-excerpt__more-text"},O):O))}};var fs=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"}));const _s=Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.__experimentalToggleGroupControlOption,{value:"cover",label:Object(ke._x)("Cover","Scale option for Image dimension control")}),Object(je.createElement)(_e.__experimentalToggleGroupControlOption,{value:"contain",label:Object(ke._x)("Contain","Scale option for Image dimension control")}),Object(je.createElement)(_e.__experimentalToggleGroupControlOption,{value:"fill",label:Object(ke._x)("Fill","Scale option for Image dimension control")})),ks={cover:Object(ke.__)("Image is scaled and cropped to fill the entire space without being distorted."),contain:Object(ke.__)("Image is scaled to fill the space without clipping nor distorting."),fill:Object(ke.__)("Image will be stretched and distorted to completely fill the space.")};var ws=e=>{let{attributes:{width:t,height:n,scale:r},setAttributes:o}=e;const a=Object(_e.__experimentalUseCustomUnits)({availableUnits:Object(we.useSetting)("spacing.units")||["px","%","vw","em","rem"]}),l=(e,t)=>{const n=parseFloat(t);isNaN(n)&&t||o({[e]:n<0?"0":t})},c=Object(ke._x)("Scale","Image scaling options");return Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Dimensions")},Object(je.createElement)(_e.Flex,{justify:"space-between",className:tt()("block-library-post-featured-image-dimension-controls",{"scale-control-is-visible":!!n})},Object(je.createElement)(_e.FlexItem,null,Object(je.createElement)(_e.__experimentalUnitControl,{label:Object(ke.__)("Height"),labelPosition:"top",value:n||"",onChange:e=>{l("height",e)},units:a})),Object(je.createElement)(_e.FlexItem,null,Object(je.createElement)(_e.__experimentalUnitControl,{label:Object(ke.__)("Width"),labelPosition:"top",value:t||"",onChange:e=>{l("width",e)},units:a}))),!!n&&Object(je.createElement)(_e.__experimentalToggleGroupControl,{label:c,value:r,help:ks[r],onChange:e=>{o({scale:e})},isBlock:!0},_s))};const Es=Object(je.createElement)(ye.SVG,{className:"components-placeholder__illustration",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none"},Object(je.createElement)(ye.Path,{vectorEffect:"non-scaling-stroke",d:"M60 60 0 0"})),Cs=["image"],xs=Object(je.createElement)("div",{className:"wp-block-post-featured-image__placeholder"},Es);function Ss(e){let{attributes:t,setAttributes:n,context:{postId:r,postType:o,queryId:a}}=e;const l=!!a,{isLink:c,height:i,width:s,scale:u}=t,[m,d]=Object(It.useEntityProp)("postType",o,"featured_media",r),b=Object(ze.useSelect)(e=>m&&e(It.store).getMedia(m,{context:"view"}),[m]),p=Object(we.useBlockProps)({style:{width:s,height:i}}),g=e=>Object(je.createElement)(_e.Placeholder,{className:"block-editor-media-placeholder"},Es,e),h=e=>{null!=e&&e.id&&d(e.id)},{createErrorNotice:v}=Object(ze.useDispatch)(Fr.store),O=e=>{v(e[2],{type:"snackbar"})};let j;if(!m&&l)return Object(je.createElement)("div",p,xs);const y=Object(ke.__)("Add a featured image");return j=m?b?Object(je.createElement)("img",{src:b.source_url,alt:b.alt_text||Object(ke.__)("Featured image"),style:{height:i,objectFit:i&&u}}):xs:Object(je.createElement)(we.MediaPlaceholder,{onSelect:h,accept:"image/*",allowedTypes:Cs,onError:O,placeholder:g,mediaLibraryButton:e=>{let{open:t}=e;return Object(je.createElement)(_e.Button,{icon:Sa.a,variant:"primary",label:y,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{t()}})}}),Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(ws,{attributes:t,setAttributes:n}),Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Link settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.sprintf)(Object(ke.__)("Link to %s"),o),onChange:()=>n({isLink:!c}),checked:c}))),!!b&&!l&&Object(je.createElement)(we.BlockControls,{group:"other"},Object(je.createElement)(we.MediaReplaceFlow,{mediaId:m,mediaURL:b.source_url,allowedTypes:Cs,accept:"image/*",onSelect:h,onError:O})),Object(je.createElement)("figure",p,j))}const Bs={apiVersion:2,name:"core/post-featured-image",title:"Post Featured Image",category:"theme",description:"Display a post's featured image.",textdomain:"default",attributes:{isLink:{type:"boolean",default:!1},width:{type:"string"},height:{type:"string"},scale:{type:"string",default:"cover"}},usesContext:["postId","postType","queryId"],supports:{align:["left","right","center","wide","full"],color:{__experimentalDuotone:"img",text:!1,background:!1},html:!1,spacing:{margin:!0,padding:!0}},editorStyle:"wp-block-post-featured-image-editor",style:"wp-block-post-featured-image"},{name:Ts}=Bs,Ns={icon:fs,edit:function(e){var t;const n=Object(we.useBlockProps)();return null!==(t=e.context)&&void 0!==t&&t.postId?Object(je.createElement)(Ss,e):Object(je.createElement)("div",n,xs)}};var Ps=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}));var zs=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"}));const Is=[{isDefault:!0,name:"post-next",title:Object(ke.__)("Next post"),description:Object(ke.__)("Displays the post link that follows the current post."),icon:Ps,attributes:{type:"next"},scope:["inserter","transform"]},{name:"post-previous",title:Object(ke.__)("Previous post"),description:Object(ke.__)("Displays the post link that precedes the current post."),icon:zs,attributes:{type:"previous"},scope:["inserter","transform"]}];Is.forEach(e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)});var Ms=Is;const Rs={apiVersion:2,name:"core/post-navigation-link",title:"Post Navigation Link",category:"theme",description:"Displays the next or previous post link that is adjacent to the current post.",textdomain:"default",attributes:{textAlign:{type:"string"},type:{type:"string",default:"next"},label:{type:"string"},showTitle:{type:"boolean",default:!1},linkLabel:{type:"boolean",default:!1}},supports:{reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:Ls}=Rs,Vs={edit:function(e){let{attributes:{type:t,label:n,showTitle:r,textAlign:o,linkLabel:a},setAttributes:l}=e;const c="next"===t;let i=c?Object(ke.__)("Next"):Object(ke.__)("Previous");r&&(i=c?Object(ke.__)("Next: "):Object(ke.__)("Previous: "));const s=c?Object(ke.__)("Next post"):Object(ke.__)("Previous post"),u=Object(we.useBlockProps)({className:tt()({["has-text-align-"+o]:o})});return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,null,Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Display the title as a link"),help:Object(ke.__)("If you have entered a custom label, it will be prepended before the title."),checked:!!r,onChange:()=>l({showTitle:!r})}),r&&Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Include the label as part of the link"),checked:!!a,onChange:()=>l({linkLabel:!a})}))),Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(we.AlignmentToolbar,{value:o,onChange:e=>{l({textAlign:e})}})),Object(je.createElement)("div",u,Object(je.createElement)(we.RichText,{tagName:"a","aria-label":s,placeholder:i,value:n,allowedFormats:["core/bold","core/italic"],onChange:e=>l({label:e})}),r&&Object(je.createElement)("a",{href:"#post-navigation-pseudo-link",onClick:e=>e.preventDefault()},Object(ke.__)("An example title"))))},variations:Ms};var As=n("Civd");const Hs=[["core/post-title"],["core/post-date"],["core/post-excerpt"]];function Fs(){const e=Object(we.useInnerBlocksProps)({},{template:Hs});return Object(je.createElement)("li",e)}const Ds={apiVersion:2,name:"core/post-template",title:"Post Template",category:"design",parent:["core/query"],description:"Contains the block elements used to render a post, like the title, date, featured image, content or excerpt, and more.",textdomain:"default",usesContext:["queryId","query","queryContext","displayLayout","templateSlug"],supports:{reusable:!1,html:!1,align:!0,__experimentalLayout:{allowEditing:!1}},style:"wp-block-post-template",editorStyle:"wp-block-post-template-editor"},{name:Gs}=Ds,qs={icon:As.a,edit:function(e){let{clientId:t,context:{query:{perPage:n,offset:r,categoryIds:o=[],postType:a,tagIds:l=[],order:c,orderBy:i,author:s,search:u,exclude:m,sticky:d,inherit:b}={},queryContext:p=[{page:1}],templateSlug:g,displayLayout:{type:h="flex",columns:v=1}={}}}=e;const[{page:O}]=p,[j,y]=Object(je.useState)(),{posts:f,blocks:_}=Object(ze.useSelect)(e=>{const{getEntityRecords:p}=e(It.store),{getBlocks:h}=e(we.store),v={offset:n?n*(O-1)+r:0,categories:o,tags:l,order:c,orderby:i};return n&&(v.per_page=n),s&&(v.author=s),u&&(v.search=u),null!=m&&m.length&&(v.exclude=m),d&&(v.sticky="only"===d),b&&null!=g&&g.startsWith("archive-")&&(v.postType=g.replace("archive-",""),a=v.postType),{posts:p("postType",a,v),blocks:h(t)}},[n,O,r,o,l,c,i,t,s,u,a,m,d,b,g]),k=Object(je.useMemo)(()=>null==f?void 0:f.map(e=>({postType:e.type,postId:e.id})),[f]),w="flex"===h&&v>1,E=Object(we.useBlockProps)({className:tt()({"is-flex-container":w,["columns-"+v]:w})});return f?f.length?Object(je.createElement)("ul",E,k&&k.map(e=>Object(je.createElement)(we.BlockContextProvider,{key:e.postId,value:e},e===(j||k[0])?Object(je.createElement)(Fs,null):Object(je.createElement)("li",null,Object(je.createElement)(we.BlockPreview,{blocks:_,__experimentalLive:!0,__experimentalOnClick:()=>y(e)}))))):Object(je.createElement)("p",E," ",Object(ke.__)("No results found.")):Object(je.createElement)("p",E,Object(je.createElement)(_e.Spinner,null))},save:function(){return Object(je.createElement)(we.InnerBlocks.Content,null)}};var Us=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M20 4H4v1.5h16V4zm-2 9h-3c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3zM4 9.5h9V8H4v1.5zM9 13H6c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3z",fillRule:"evenodd",clipRule:"evenodd"}));var Ws=[{name:"category",title:Object(ke.__)("Post Categories"),description:Object(ke.__)("Display a post's categories."),icon:Us,isDefault:!0,attributes:{term:"category"},isActive:e=>"category"===e.term},{name:"post_tag",title:Object(ke.__)("Post Tags"),description:Object(ke.__)("Display a post's tags."),icon:Us,attributes:{term:"post_tag"},isActive:e=>"post_tag"===e.term}];const $s={apiVersion:2,name:"core/post-terms",title:"Post Terms",category:"theme",description:"Post terms.",textdomain:"default",attributes:{term:{type:"string"},textAlign:{type:"string"},separator:{type:"string",default:", "}},usesContext:["postId","postType"],supports:{html:!1,color:{gradients:!0,link:!0},typography:{lineHeight:!0,fontSize:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}},style:"wp-block-post-terms"},{name:Zs}=$s,Ks={variations:Ws,edit:function(e){var t;let{attributes:n,context:r,setAttributes:o}=e;const{term:a,textAlign:l,separator:c}=n,{postId:i,postType:s}=r,u=Object(ze.useSelect)(e=>{var t;if(!a)return{};const{getTaxonomy:n}=e(It.store),r=n(a);return null!=r&&null!==(t=r.visibility)&&void 0!==t&&t.publicly_queryable?r:{}},[a]),{postTerms:m,hasPostTerms:d,isLoading:b}=function(e){var t;let{postId:n,postType:r,term:o}=e;const{rest_base:a,slug:l}=o,[c]=Object(It.useEntityProp)("postType",r,a,n);return Object(ze.useSelect)(e=>{var t;if(!(null==o||null===(t=o.visibility)||void 0===t?void 0:t.publicly_queryable))return{postTerms:[],_isLoading:!1,hasPostTerms:!1};var n;if(!c)return{isLoading:null==o||null===(n=o.postTerms)||void 0===n?void 0:n.includes(r)};if(!c.length)return{isLoading:!1};const{getEntityRecords:a,isResolving:i}=e(It.store),s=["taxonomy",l,{include:c,context:"view"}],u=a(...s);return{postTerms:u,isLoading:i("getEntityRecords",s),hasPostTerms:!(null==u||!u.length)}},[c,null==o||null===(t=o.visibility)||void 0===t?void 0:t.publicly_queryable])}({postId:i,postType:s,term:u}),p=i&&s,g=Object(we.useBlockProps)({className:tt()({["has-text-align-"+l]:l,["taxonomy-"+a]:a})});return p&&a?Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(we.AlignmentToolbar,{value:l,onChange:e=>{o({textAlign:e})}})),Object(je.createElement)(we.InspectorControls,{__experimentalGroup:"advanced"},Object(je.createElement)(_e.TextControl,{autoComplete:"off",label:Object(ke.__)("Separator"),value:c||"",onChange:e=>{o({separator:e})},help:Object(ke.__)("Enter character(s) used to separate terms.")})),Object(je.createElement)("div",g,b&&Object(je.createElement)(_e.Spinner,null),!b&&d&&m.map(e=>Object(je.createElement)("a",{key:e.id,href:e.link,onClick:e=>e.preventDefault()},e.name)).reduce((e,t)=>Object(je.createElement)(je.Fragment,null,e,Object(je.createElement)("span",{className:"wp-block-post-terms__separator"},c||" "),t)),!b&&!d&&((null==u||null===(t=u.labels)||void 0===t?void 0:t.no_terms)||Object(ke.__)("Term items not found.")))):Object(je.createElement)("div",g,Object(ke.__)("Post Terms"))}};var Js=[{attributes:{textAlign:{type:"string"},level:{type:"number",default:2},isLink:{type:"boolean",default:!1},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0}},save:()=>null,migrate:at,isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}}];const Qs={apiVersion:2,name:"core/post-title",title:"Post Title",category:"theme",description:"Displays the title of a post, page, or any other content-type.",textdomain:"default",usesContext:["postId","postType","queryId"],attributes:{textAlign:{type:"string"},level:{type:"number",default:2},isLink:{type:"boolean",default:!1},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}}},style:"wp-block-post-title"},{name:Ys}=Qs,Xs={icon:Wc,edit:function(e){let{attributes:{level:t,textAlign:n,isLink:r,rel:o,linkTarget:a},setAttributes:l,context:{postType:c,postId:i,queryId:s}}=e;const u=0===t?"p":"h"+t,m=!!s,d=rs("postType",c,i),[b="",p,g]=Object(It.useEntityProp)("postType",c,"title",i),[h]=Object(It.useEntityProp)("postType",c,"link",i),v=Object(we.useBlockProps)({className:tt()({["has-text-align-"+n]:n})});let O=Object(je.createElement)(u,v,Object(ke.__)("Post Title"));return c&&i&&(O=d&&!m?Object(je.createElement)(we.PlainText,Object(mt.a)({tagName:u,placeholder:Object(ke.__)("No Title"),value:b,onChange:p,__experimentalVersion:2},v)):Object(je.createElement)(u,v,Object(je.createElement)(je.RawHTML,{key:"html"},null==g?void 0:g.rendered))),r&&c&&i&&(O=d&&!m?Object(je.createElement)(u,v,Object(je.createElement)(we.PlainText,{tagName:"a",href:h,target:a,rel:o,placeholder:b.length?null:Object(ke.__)("No Title"),value:b,onChange:p,__experimentalVersion:2})):Object(je.createElement)(u,v,Object(je.createElement)("a",{href:h,target:a,rel:o,onClick:e=>e.preventDefault()},Object(je.createElement)(je.RawHTML,{key:"html"},null==g?void 0:g.rendered)))),Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(sa,{selectedLevel:t,onChange:e=>l({level:e})}),Object(je.createElement)(we.AlignmentControl,{value:n,onChange:e=>{l({textAlign:e})}})),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Link settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Make title a link"),onChange:()=>l({isLink:!r}),checked:r}),r&&Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Open in new tab"),onChange:e=>l({linkTarget:e?"_blank":"_self"}),checked:"_blank"===a}),Object(je.createElement)(_e.TextControl,{label:Object(ke.__)("Link rel"),value:o,onChange:e=>l({rel:e})})))),O)},deprecated:Js};var eu=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z"}));var tu={from:[{type:"block",blocks:["core/code","core/paragraph"],transform:e=>{let{content:t,anchor:n}=e;return Object(Oe.createBlock)("core/preformatted",{content:t,anchor:n})}},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName),schema:e=>{let{phrasingContentSchema:t}=e;return{pre:{children:t}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>Object(Oe.createBlock)("core/paragraph",e)},{type:"block",blocks:["core/code"],transform:e=>Object(Oe.createBlock)("core/code",e)}]};const nu={apiVersion:2,name:"core/preformatted",title:"Preformatted",category:"text",description:"Add text that respects your spacing and tabs, and also allows styling.",textdomain:"default",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"}},supports:{anchor:!0,color:{gradients:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}},style:"wp-block-preformatted"},{name:ru}=nu,ou={icon:eu,example:{attributes:{content:Object(ke.__)("EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)\nWindow, very small in the distance, illuminated.\nAll around this is an almost totally black screen. Now, as the camera moves slowly towards the window which is almost a postage stamp in the frame, other forms appear;")}},transforms:tu,edit:function(e){let{attributes:t,mergeBlocks:n,setAttributes:r,onRemove:o,style:a}=e;const{content:l}=t,c=Object(we.useBlockProps)({style:a});return Object(je.createElement)(we.RichText,Object(mt.a)({tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:l,onChange:e=>{r({content:e})},onRemove:o,"aria-label":Object(ke.__)("Preformatted text"),placeholder:Object(ke.__)("Write preformatted text…"),onMerge:n},c,{__unstablePastePlainText:!0}))},save:function(e){let{attributes:t}=e;const{content:n}=t;return Object(je.createElement)("pre",we.useBlockProps.save(),Object(je.createElement)(we.RichText.Content,{value:n}))},merge:(e,t)=>({content:e.content+t.content})};var au=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"}));const lu={value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}};function cu(e){if(!e)return;const t=e.match(/border-color:([^;]+)[;]?/);return t&&t[1]?t[1]:void 0}var iu=[{attributes:{...lu},save(e){let{attributes:t}=e;const{mainColor:n,customMainColor:r,customTextColor:o,textColor:a,value:l,citation:c,className:i}=t;let s,u;if(Object(Me.includes)(i,"is-style-solid-color")){const e=Object(we.getColorClassName)("background-color",n);s=tt()({"has-background":e||r,[e]:e}),u={backgroundColor:e?void 0:r}}else r&&(u={borderColor:r});const m=Object(we.getColorClassName)("color",a),d=tt()({"has-text-color":a||o,[m]:m}),b=m?void 0:{color:o};return Object(je.createElement)("figure",we.useBlockProps.save({className:s,style:u}),Object(je.createElement)("blockquote",{className:d,style:b},Object(je.createElement)(we.RichText.Content,{value:l,multiline:!0}),!we.RichText.isEmpty(c)&&Object(je.createElement)(we.RichText.Content,{tagName:"cite",value:c})))},migrate(e){let{className:t,mainColor:n,customMainColor:r,customTextColor:o,...a}=e;const l=Object(Me.includes)(t,"is-style-solid-color");let c;return r&&(c=l?{color:{background:r}}:{border:{color:r}}),o&&c&&(c.color={...c.color,text:o}),{className:t,backgroundColor:l?n:void 0,borderColor:l?void 0:n,textAlign:l?"left":void 0,style:c,...a}}},{attributes:{...lu,figureStyle:{source:"attribute",selector:"figure",attribute:"style"}},save(e){let{attributes:t}=e;const{mainColor:n,customMainColor:r,textColor:o,customTextColor:a,value:l,citation:c,className:i,figureStyle:s}=t;let u,m;if(Object(Me.includes)(i,"is-style-solid-color")){const e=Object(we.getColorClassName)("background-color",n);u=tt()({"has-background":e||r,[e]:e}),m={backgroundColor:e?void 0:r}}else if(r)m={borderColor:r};else if(n){m={borderColor:cu(s)}}const d=Object(we.getColorClassName)("color",o),b=(o||a)&&tt()("has-text-color",{[d]:d}),p=d?void 0:{color:a};return Object(je.createElement)("figure",{className:u,style:m},Object(je.createElement)("blockquote",{className:b,style:p},Object(je.createElement)(we.RichText.Content,{value:l,multiline:!0}),!we.RichText.isEmpty(c)&&Object(je.createElement)(we.RichText.Content,{tagName:"cite",value:c})))},migrate(e){let{className:t,figureStyle:n,mainColor:r,customMainColor:o,customTextColor:a,...l}=e;const c=Object(Me.includes)(t,"is-style-solid-color");let i;if(o&&(i=c?{color:{background:o}}:{border:{color:o}}),a&&i&&(i.color={...i.color,text:a}),!c&&r&&n){const e=cu(n);if(e)return{...l,className:t,style:{border:{color:e}}}}return{className:t,backgroundColor:c?r:void 0,borderColor:c?void 0:r,textAlign:c?"left":void 0,style:i,...l}}},{attributes:lu,save(e){let{attributes:t}=e;const{mainColor:n,customMainColor:r,textColor:o,customTextColor:a,value:l,citation:c,className:i}=t;let s,u;if(Object(Me.includes)(i,"is-style-solid-color"))s=Object(we.getColorClassName)("background-color",n),s||(u={backgroundColor:r});else if(r)u={borderColor:r};else if(n){const e=Object(Me.get)(Object(ze.select)(we.store).getSettings(),["colors"],[]);u={borderColor:Object(we.getColorObjectByAttributeValues)(e,n).color}}const m=Object(we.getColorClassName)("color",o),d=o||a?tt()("has-text-color",{[m]:m}):void 0,b=m?void 0:{color:a};return Object(je.createElement)("figure",{className:s,style:u},Object(je.createElement)("blockquote",{className:d,style:b},Object(je.createElement)(we.RichText.Content,{value:l,multiline:!0}),!we.RichText.isEmpty(c)&&Object(je.createElement)(we.RichText.Content,{tagName:"cite",value:c})))},migrate(e){let{className:t,mainColor:n,customMainColor:r,customTextColor:o,...a}=e;const l=Object(Me.includes)(t,"is-style-solid-color");let c={};return r&&(c=l?{color:{background:r}}:{border:{color:r}}),o&&c&&(c.color={...c.color,text:o}),{className:t,backgroundColor:l?n:void 0,borderColor:l?void 0:n,textAlign:l?"left":void 0,style:c,...a}}},{attributes:{...lu},save(e){let{attributes:t}=e;const{value:n,citation:r}=t;return Object(je.createElement)("blockquote",null,Object(je.createElement)(we.RichText.Content,{value:n,multiline:!0}),!we.RichText.isEmpty(r)&&Object(je.createElement)(we.RichText.Content,{tagName:"cite",value:r}))}},{attributes:{...lu,citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}},save(e){let{attributes:t}=e;const{value:n,citation:r,align:o}=t;return Object(je.createElement)("blockquote",{className:"align"+o},Object(je.createElement)(we.RichText.Content,{value:n,multiline:!0}),!we.RichText.isEmpty(r)&&Object(je.createElement)(we.RichText.Content,{tagName:"footer",value:r}))}}];var su=function(e){let{attributes:t,setAttributes:n,isSelected:r,insertBlocksAfter:o}=e;const{textAlign:a,citation:l,value:c}=t,i=Object(we.useBlockProps)({className:tt()({["has-text-align-"+a]:a})}),s=!we.RichText.isEmpty(l)||r;return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(we.AlignmentControl,{value:a,onChange:e=>{n({textAlign:e})}})),Object(je.createElement)("figure",i,Object(je.createElement)("blockquote",null,Object(je.createElement)(we.RichText,{identifier:"value",multiline:!0,value:c,onChange:e=>n({value:e}),"aria-label":Object(ke.__)("Pullquote text"),placeholder:Object(ke.__)("Add quote"),textAlign:"center"}),s&&Object(je.createElement)(we.RichText,{identifier:"citation",value:l,"aria-label":Object(ke.__)("Pullquote citation text"),placeholder:Object(ke.__)("Add citation"),onChange:e=>n({citation:e}),className:"wp-block-pullquote__citation",__unstableMobileNoFocusOnMount:!0,textAlign:"center",__unstableOnSplitAtEnd:()=>o(Object(Oe.createBlock)("core/paragraph"))}))))};var uu={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>Object(Oe.createBlock)("core/pullquote",{value:Object(kt.toHTMLString)({value:Object(kt.join)(e.map(e=>{let{content:t}=e;return Object(kt.create)({html:t})}),"\u2028"),multilineTag:"p"}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:e=>{let{content:t,anchor:n}=e;return Object(Oe.createBlock)("core/pullquote",{value:`<p>${t}</p>`,anchor:n})}}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{value:t,citation:n}=e;const r=[];return t&&"<p></p>"!==t&&r.push(...Object(kt.split)(Object(kt.create)({html:t,multilineTag:"p"}),"\u2028").map(e=>Object(Oe.createBlock)("core/paragraph",{content:Object(kt.toHTMLString)({value:e})}))),n&&"<p></p>"!==n&&r.push(Object(Oe.createBlock)("core/paragraph",{content:n})),0===r.length?Object(Oe.createBlock)("core/paragraph",{content:""}):r}},{type:"block",blocks:["core/heading"],transform:e=>{let{value:t,citation:n,...r}=e;if("<p></p>"===t)return Object(Oe.createBlock)("core/heading",{content:n});const o=Object(kt.split)(Object(kt.create)({html:t,multilineTag:"p"}),"\u2028"),a=Object(Oe.createBlock)("core/heading",{content:Object(kt.toHTMLString)({value:o[0]})});if(!n&&1===o.length)return a;const l=o.slice(1);return[a,Object(Oe.createBlock)("core/pullquote",{...r,citation:n,value:Object(kt.toHTMLString)({value:l.length?Object(kt.join)(o.slice(1),"\u2028"):Object(kt.create)(),multilineTag:"p"})})]}}]};const mu={apiVersion:2,name:"core/pullquote",title:"Pullquote",category:"text",description:"Give special visual emphasis to a quote from your text.",textdomain:"default",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"],color:{gradients:!0,background:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0}},editorStyle:"wp-block-pullquote-editor",style:"wp-block-pullquote"},{name:du}=mu,bu={icon:au,example:{attributes:{value:"<p>"+Object(ke.__)("One of the hardest things to do in technology is disrupt yourself.")+"</p>",citation:Object(ke.__)("Matt Mullenweg")}},transforms:uu,edit:su,save:function(e){let{attributes:t}=e;const{textAlign:n,citation:r,value:o}=t,a=!we.RichText.isEmpty(r);return Object(je.createElement)("figure",we.useBlockProps.save({className:tt()({["has-text-align-"+n]:n})}),Object(je.createElement)("blockquote",null,Object(je.createElement)(we.RichText.Content,{value:o,multiline:!0}),a&&Object(je.createElement)(we.RichText.Content,{tagName:"cite",value:r})))},deprecated:iu};var pu=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M18.1823 11.6392C18.1823 13.0804 17.0139 14.2487 15.5727 14.2487C14.3579 14.2487 13.335 13.4179 13.0453 12.2922L13.0377 12.2625L13.0278 12.2335L12.3985 10.377L12.3942 10.3785C11.8571 8.64997 10.246 7.39405 8.33961 7.39405C5.99509 7.39405 4.09448 9.29465 4.09448 11.6392C4.09448 13.9837 5.99509 15.8843 8.33961 15.8843C8.88499 15.8843 9.40822 15.781 9.88943 15.5923L9.29212 14.0697C8.99812 14.185 8.67729 14.2487 8.33961 14.2487C6.89838 14.2487 5.73003 13.0804 5.73003 11.6392C5.73003 10.1979 6.89838 9.02959 8.33961 9.02959C9.55444 9.02959 10.5773 9.86046 10.867 10.9862L10.8772 10.9836L11.4695 12.7311C11.9515 14.546 13.6048 15.8843 15.5727 15.8843C17.9172 15.8843 19.8178 13.9837 19.8178 11.6392C19.8178 9.29465 17.9172 7.39404 15.5727 7.39404C15.0287 7.39404 14.5066 7.4968 14.0264 7.6847L14.6223 9.20781C14.9158 9.093 15.2358 9.02959 15.5727 9.02959C17.0139 9.02959 18.1823 10.1979 18.1823 11.6392Z"})),gu=n("mi6C");function hu(e){let{attributes:{query:t,displayLayout:n},setQuery:r,setDisplayLayout:o}=e;const a=Object(nt.useInstanceId)(hu,"blocks-query-pagination-max-page-input"),l=[{icon:Za,title:Object(ke.__)("List view"),onClick:()=>o({type:"list"}),isActive:"list"===(null==n?void 0:n.type)},{icon:Ka.a,title:Object(ke.__)("Grid view"),onClick:()=>o({type:"flex",columns:(null==n?void 0:n.columns)||3}),isActive:"flex"===(null==n?void 0:n.type)}];return Object(je.createElement)(je.Fragment,null,!t.inherit&&Object(je.createElement)(_e.ToolbarGroup,null,Object(je.createElement)(_e.Dropdown,{contentClassName:"block-library-query-toolbar__popover",renderToggle:e=>{let{onToggle:t}=e;return Object(je.createElement)(_e.ToolbarButton,{icon:gu.a,label:Object(ke.__)("Display settings"),onClick:t})},renderContent:()=>Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.BaseControl,null,Object(je.createElement)(_e.__experimentalNumberControl,{__unstableInputWidth:"60px",label:Object(ke.__)("Items per Page"),labelPosition:"edge",min:1,max:100,onChange:e=>{isNaN(e)||e<1||e>100||r({perPage:e})},step:"1",value:t.perPage,isDragEnabled:!1})),Object(je.createElement)(_e.BaseControl,null,Object(je.createElement)(_e.__experimentalNumberControl,{__unstableInputWidth:"60px",label:Object(ke.__)("Offset"),labelPosition:"edge",min:0,max:100,onChange:e=>{isNaN(e)||e<0||e>100||r({offset:e})},step:"1",value:t.offset,isDragEnabled:!1})),Object(je.createElement)(_e.BaseControl,{id:a,help:Object(ke.__)("Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero).")},Object(je.createElement)(_e.__experimentalNumberControl,{id:a,__unstableInputWidth:"60px",label:Object(ke.__)("Max page to show"),labelPosition:"edge",min:0,onChange:e=>{isNaN(e)||e<0||r({pages:e})},step:"1",value:t.pages,isDragEnabled:!1})))})),Object(je.createElement)(_e.ToolbarGroup,{controls:l}))}const vu=e=>{const t=null==e?void 0:e.reduce((e,t)=>{const{mapById:n,mapByName:r,names:o}=e;return n[t.id]=t,r[t.name]=t,o.push(t.name),e},{mapById:{},mapByName:{},names:[]});return{terms:e,...t}};const Ou=[{label:Object(ke.__)("Include"),value:""},{label:Object(ke.__)("Exclude"),value:"exclude"},{label:Object(ke.__)("Only"),value:"only"}];function ju(e){var t,n;let{attributes:{query:r,displayLayout:o},setQuery:a,setDisplayLayout:l}=e;const{order:c,orderBy:i,author:s,postType:u,sticky:m,inherit:d}=r,[b,p]=Object(je.useState)(!0),[g,h]=Object(je.useState)(!0),[v,O]=Object(je.useState)("post"===u),{postTypesTaxonomiesMap:j,postTypesSelectOptions:y}=(()=>{const{postTypes:e}=Object(ze.useSelect)(e=>{var t;const{getPostTypes:n}=e(It.store),r=["attachment"];return{postTypes:null===(t=n({per_page:-1}))||void 0===t?void 0:t.filter(e=>{let{viewable:t,slug:n}=e;return t&&!r.includes(n)})}},[]);return{postTypesTaxonomiesMap:Object(je.useMemo)(()=>{if(null!=e&&e.length)return e.reduce((e,t)=>(e[t.slug]=t.taxonomies,e),{})},[e]),postTypesSelectOptions:Object(je.useMemo)(()=>(e||[]).map(e=>{let{labels:t,slug:n}=e;return{label:t.singular_name,value:n}}),[e])}})(),{authorList:f,categories:_,tags:k}=Object(ze.useSelect)(e=>{const{getEntityRecords:t}=e(It.store),n={per_page:100},r=t("taxonomy","category",n),o=t("taxonomy","post_tag",n);return{categories:vu(r),tags:vu(o),authorList:t("root","user",{per_page:-1})}},[]);Object(je.useEffect)(()=>{if(!j)return;const e=j[u];p(e.includes("category")),h(e.includes("post_tag"))},[u,j]),Object(je.useEffect)(()=>{O("post"===u)},[u]);const w=(e,t)=>n=>{const r=Array.from(n.reduce((t,n)=>{const r=((e,t)=>{var n;const r=(null==t?void 0:t.id)||(null===(n=e[t])||void 0===n?void 0:n.id);if(r)return r;const o=t.toLocaleLowerCase();for(const t in e)if(t.toLocaleLowerCase()===o)return e[t].id})(e.mapByName,n);return r&&t.add(r),t},new Set));a({[t]:r})},E=w(_,"categoryIds"),C=w(k,"tagIds"),[x,S]=Object(je.useState)(r.search),B=Object(je.useCallback)(Object(Me.debounce)(()=>{r.search!==x&&a({search:x})},250),[x,r.search]);Object(je.useEffect)(()=>(B(),B.cancel),[x,B]);const T=e=>{const t={category:{queryProp:"categoryIds",terms:_},post_tag:{queryProp:"tagIds",terms:k}}[e];return(r[t.queryProp]||[]).reduce((e,n)=>{const r=t.terms.mapById[n];return r&&e.push({id:n,value:r.name}),e},[])};return Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Inherit query from template"),help:Object(ke.__)("Toggle to use the global query context that is set with the current template, such as an archive or search. Disable to customize the settings independently."),checked:!!d,onChange:e=>a({inherit:!!e})}),!d&&Object(je.createElement)(_e.SelectControl,{options:y,value:u,label:Object(ke.__)("Post Type"),onChange:e=>{const t={postType:e};j[e].includes("category")||(t.categoryIds=[]),j[e].includes("post_tag")||(t.tagIds=[]),"post"!==e&&(t.sticky=""),a(t)},help:Object(ke.__)('WordPress contains different types of content and they are divided into collections called "Post Types". By default there are a few different ones such as blog posts and pages, but plugins could add more.')}),"flex"===(null==o?void 0:o.type)&&Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Columns"),value:o.columns,onChange:e=>l({columns:e}),min:2,max:Math.max(6,o.columns)}),o.columns>6&&Object(je.createElement)(_e.Notice,{status:"warning",isDismissible:!1},Object(ke.__)("This column count exceeds the recommended amount and may cause visual breakage."))),!d&&Object(je.createElement)(_e.QueryControls,{order:c,orderBy:i,onOrderChange:e=>a({order:e}),onOrderByChange:e=>a({orderBy:e})}),v&&Object(je.createElement)(_e.SelectControl,{label:Object(ke.__)("Sticky posts"),options:Ou,value:m,onChange:e=>a({sticky:e}),help:Object(ke.__)('Blog posts can be "stickied", a feature that places them at the top of the front page of posts, keeping it there until new sticky posts are published.')})),!d&&Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Filters")},b&&(null==_||null===(t=_.terms)||void 0===t?void 0:t.length)>0&&Object(je.createElement)(_e.FormTokenField,{label:Object(ke.__)("Categories"),value:T("category"),suggestions:_.names,onChange:E}),g&&(null==k||null===(n=k.terms)||void 0===n?void 0:n.length)>0&&Object(je.createElement)(_e.FormTokenField,{label:Object(ke.__)("Tags"),value:T("post_tag"),suggestions:k.names,onChange:C}),Object(je.createElement)(_e.QueryControls,{selectedAuthorId:s,authorList:f,onAuthorChange:e=>a({author:""!==e?+e:void 0})}),Object(je.createElement)(_e.TextControl,{label:Object(ke.__)("Keyword"),value:x,onChange:S})))}var yu=e=>{var t;let{clientId:n,name:r,attributes:o,setAttributes:a}=e;const{blockType:l,defaultVariation:c,scopeVariations:i,allVariations:s}=Object(ze.useSelect)(e=>{const{getBlockVariations:t,getBlockType:n,getDefaultBlockVariation:o}=e(Oe.store);return{blockType:n(r),defaultVariation:o(r,"block"),scopeVariations:t(r,"block"),allVariations:t(r)}},[r]),{replaceInnerBlocks:u}=Object(ze.useDispatch)(we.store),m=Object(we.useBlockProps)(),d=Object(we.__experimentalGetMatchingVariation)(o,s),b=(null==d?void 0:d.icon)||(null==l||null===(t=l.icon)||void 0===t?void 0:t.src),p=(null==d?void 0:d.title)||(null==l?void 0:l.title);return Object(je.createElement)("div",m,Object(je.createElement)(we.__experimentalBlockVariationPicker,{icon:b,label:p,variations:i,onSelect:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;e.attributes&&a(e.attributes),e.innerBlocks&&u(n,Object(Oe.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!1)}}))};const fu=[["core/post-template"]];function _u(e){let{attributes:t,setAttributes:n}=e;const{queryId:r,query:o,displayLayout:a,tagName:l="div",layout:c={}}=t,{__unstableMarkNextChangeAsNotPersistent:i}=Object(ze.useDispatch)(we.store),s=Object(nt.useInstanceId)(_u),{themeSupportsLayout:u}=Object(ze.useSelect)(e=>{var t;const{getSettings:n}=e(we.store);return{themeSupportsLayout:null===(t=n())||void 0===t?void 0:t.supportsLayout}},[]),m=Object(we.useSetting)("layout")||{},d=c&&c.inherit?m:c,b=Object(we.useBlockProps)(),p=Object(we.useInnerBlocksProps)(b,{template:fu,__experimentalLayout:u?d:void 0}),{postsPerPage:g}=Object(ze.useSelect)(e=>{const{getSettings:t}=e(we.store);return{postsPerPage:+t().postsPerPage||3}},[]);Object(je.useEffect)(()=>{const e={};!o.perPage&&g&&(e.perPage=g),Object.keys(e).length&&(i(),h(e))},[o.perPage]),Object(je.useEffect)(()=>{r||(i(),n({queryId:s}))},[r,s]);const h=e=>n({query:{...o,...e}}),v=e=>n({displayLayout:{...a,...e}});return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(ju,{attributes:t,setQuery:h,setDisplayLayout:v}),Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(hu,{attributes:t,setQuery:h,setDisplayLayout:v})),Object(je.createElement)(we.InspectorControls,{__experimentalGroup:"advanced"},Object(je.createElement)(_e.SelectControl,{label:Object(ke.__)("HTML element"),options:[{label:Object(ke.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}],value:l,onChange:e=>n({tagName:e})})),Object(je.createElement)(l,p))}function ku(e){const{clientId:t,name:n}=e,r=Object(we.useBlockProps)(),{replaceBlock:o,selectBlock:a}=Object(ze.useDispatch)(we.store);return Object(je.createElement)("div",r,Object(je.createElement)(we.__experimentalBlockPatternSetup,{blockName:n,clientId:t,startBlankComponent:Object(je.createElement)(yu,e),onBlockPatternSelect:e=>{const n=e.map(e=>Object(Oe.cloneBlock)(e)),r=(e=>{const t=[...e];for(;t.length>0;){var n;const e=t.shift();if("core/query"===e.name)return e.clientId;null===(n=e.innerBlocks)||void 0===n||n.forEach(e=>{t.push(e)})}})(n);o(t,n),r&&a(r)}}))}var wu=e=>{const{clientId:t}=e,n=Object(ze.useSelect)(e=>!!e(we.store).getBlocks(t).length,[t])?_u:ku;return Object(je.createElement)(n,e)};const Eu=Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},Object(je.createElement)(_e.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zM7 26h12v1H7v-1zm34-5H7v3h34v-3zM7 38h12v1H7v-1zm34-5H7v3h34v-3z"})),Cu=Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},Object(je.createElement)(_e.Path,{d:"M41 9H7v3h34V9zm-4 5H7v1h30v-1zm4 3H7v1h34v-1zM7 20h30v1H7v-1zm0 12h30v1H7v-1zm34 3H7v1h34v-1zM7 38h30v1H7v-1zm34-11H7v3h34v-3z"})),xu=Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},Object(je.createElement)(_e.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zm22 3H7v1h34v-1zM7 20h34v1H7v-1zm0 12h12v1H7v-1zm34 3H7v1h34v-1zM7 38h34v1H7v-1zm34-11H7v3h34v-3z"})),Su=Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},Object(je.createElement)(_e.Path,{d:"M7 9h34v6H7V9zm12 8H7v1h12v-1zm18 3H7v1h30v-1zm0 18H7v1h30v-1zM7 35h12v1H7v-1zm34-8H7v6h34v-6z"})),Bu={query:{perPage:3,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!1}};var Tu=[{name:"posts-list",title:Object(ke.__)("Posts List"),description:Object(ke.__)("Display a list of your most recent posts, excluding sticky posts."),icon:qa,attributes:{query:{perPage:4,pages:1,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",sticky:"exclude",inherit:!1}},scope:["inserter"]},{name:"title-date",title:Object(ke.__)("Title & Date"),icon:Eu,attributes:{...Bu},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-date"]]],["core/query-pagination"]],scope:["block"]},{name:"title-excerpt",title:Object(ke.__)("Title & Excerpt"),icon:Cu,attributes:{...Bu},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-excerpt"]]],["core/query-pagination"]],scope:["block"]},{name:"title-date-excerpt",title:Object(ke.__)("Title, Date, & Excerpt"),icon:xu,attributes:{...Bu},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-date"],["core/post-excerpt"]]],["core/query-pagination"]],scope:["block"]},{name:"image-date-title",title:Object(ke.__)("Image, Date, & Title"),icon:Su,attributes:{...Bu},innerBlocks:[["core/post-template",{},[["core/post-featured-image"],["core/post-date"],["core/post-title"]]],["core/query-pagination"]],scope:["block"]}];var Nu=[{attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0}},layout:{type:"object",default:{type:"list"}}},supports:{html:!1},migrate:e=>({...Object(Me.omit)(e,["layout"]),displayLayout:e.layout}),save:()=>Object(je.createElement)(we.InnerBlocks.Content,null)}];const Pu=e=>{let{attributes:{query:{postType:t}={}}={}}=e;if(!t)return null;const n=Object(Kr.addQueryArgs)("post-new.php",{post_type:t});return Object(je.createElement)("div",{className:"wp-block-query__create-new-link"},Object(je.createInterpolateElement)(Object(ke.__)("<a>Create a new post</a> for this feed."),{a:Object(je.createElement)("a",{href:n})}))};var zu=Object(nt.createHigherOrderComponent)(e=>t=>{const{name:n,isSelected:r}=t;return"core/query"===n&&r?Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(Pu,t)),Object(je.createElement)(e,Object(mt.a)({key:"edit"},t))):Object(je.createElement)(e,Object(mt.a)({key:"edit"},t))},"withInspectorControls");const Iu={apiVersion:2,name:"core/query",title:"Query Loop",category:"theme",description:"An advanced block that allows displaying post types based on different query parameters and visual configurations.",textdomain:"default",attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}}},providesContext:{queryId:"queryId",query:"query",displayLayout:"displayLayout"},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},__experimentalLayout:!0},editorStyle:"wp-block-query-editor"},{name:Mu}=Iu,Ru={icon:pu,edit:wu,save:function(e){let{attributes:{tagName:t="div"}}=e;const n=we.useBlockProps.save(),r=we.useInnerBlocksProps.save(n);return Object(je.createElement)(t,r)},variations:Tu,deprecated:Nu};Object(Vo.addFilter)("editor.BlockEdit","core/query",zu);var Lu=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Rect,{x:"4",y:"10.5",width:"6",height:"3",rx:"1.5",fill:"#000"}),Object(je.createElement)(ye.Rect,{x:"12",y:"10.5",width:"3",height:"3",rx:"1.5",fill:"#000"}),Object(je.createElement)(ye.Rect,{x:"17",y:"10.5",width:"3",height:"3",rx:"1.5",fill:"#000"}));function Vu(e){let{value:t,onChange:n}=e;return Object(je.createElement)(_e.__experimentalToggleGroupControl,{label:Object(ke.__)("Arrow"),value:t,onChange:n,help:Object(ke.__)("A decorative arrow appended to the next and previous page link."),isBlock:!0},Object(je.createElement)(_e.__experimentalToggleGroupControlOption,{value:"none",label:Object(ke._x)("None","Arrow option for Query Pagination Next/Previous blocks")}),Object(je.createElement)(_e.__experimentalToggleGroupControlOption,{value:"arrow",label:Object(ke._x)("Arrow","Arrow option for Query Pagination Next/Previous blocks")}),Object(je.createElement)(_e.__experimentalToggleGroupControlOption,{value:"chevron",label:Object(ke._x)("Chevron","Arrow option for Query Pagination Next/Previous blocks")}))}const Au=[["core/query-pagination-previous"],["core/query-pagination-numbers"],["core/query-pagination-next"]];var Hu=[{save:()=>Object(je.createElement)("div",we.useBlockProps.save(),Object(je.createElement)(we.InnerBlocks.Content,null))}];const Fu={apiVersion:2,name:"core/query-pagination",title:"Query Pagination",category:"design",parent:["core/query"],description:"Displays a paginated navigation to next/previous set of posts, when applicable.",textdomain:"default",attributes:{paginationArrow:{type:"string",default:"none"}},usesContext:["queryId","query"],providesContext:{paginationArrow:"paginationArrow"},supports:{align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0},__experimentalLayout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},editorStyle:"wp-block-query-pagination-editor",style:"wp-block-query-pagination"},{name:Du}=Fu,Gu={icon:Lu,edit:function(e){let{attributes:{paginationArrow:t,layout:n},setAttributes:r,clientId:o,name:a}=e;const l=n||(e=>{const t=Object(Oe.getBlockSupport)(e,"__experimentalLayout");return null==t?void 0:t.default})(a),c=Object(ze.useSelect)(e=>{const{getBlocks:t}=e(we.store),n=t(o);return null==n?void 0:n.find(e=>["core/query-pagination-next","core/query-pagination-previous"].includes(e.name))},[]),i=Object(we.useBlockProps)(),s=Object(we.useInnerBlocksProps)(i,{template:Au,allowedBlocks:["core/query-pagination-previous","core/query-pagination-numbers","core/query-pagination-next"],__experimentalLayout:l});return Object(je.createElement)(je.Fragment,null,c&&Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Settings")},Object(je.createElement)(Vu,{value:t,onChange:e=>{r({paginationArrow:e})}}))),Object(je.createElement)("div",s))},save:function(){return Object(je.createElement)(we.InnerBlocks.Content,null)},deprecated:Hu};var qu=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Rect,{x:"6",y:"10.5",width:"3",height:"3",rx:"1.5",fill:"#000"}),Object(je.createElement)(ye.Rect,{x:"11",y:"10.5",width:"3",height:"3",rx:"1.5",fill:"#000"}),Object(je.createElement)(ye.Path,{d:"M16.5 9.5L19 12l-2.5 2.5",stroke:"#1E1E1E",strokeWidth:"1.5"}));const Uu={none:"",arrow:"→",chevron:"»"};const Wu={apiVersion:2,name:"core/query-pagination-next",title:"Query Pagination Next",category:"design",parent:["core/query-pagination"],description:"Displays the next posts page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["queryId","query","paginationArrow"],supports:{reusable:!1,html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:$u}=Wu,Zu={icon:qu,edit:function(e){let{attributes:{label:t},setAttributes:n,context:{paginationArrow:r}}=e;const o=Uu[r];return Object(je.createElement)("a",Object(mt.a)({href:"#pagination-next-pseudo-link",onClick:e=>e.preventDefault()},Object(we.useBlockProps)()),Object(je.createElement)(we.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":Object(ke.__)("Next page link"),placeholder:Object(ke.__)("Next Page"),value:t,onChange:e=>n({label:e})}),o&&Object(je.createElement)("span",{className:"wp-block-query-pagination-next-arrow is-arrow-"+r},o))}};var Ku=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Rect,{x:"4",y:"10.5",width:"6",height:"3",rx:"1.5",fill:"#000"}),Object(je.createElement)(ye.Path,{d:"M13.5 14v-4l-1.5.5",stroke:"#1E1E1E"}),Object(je.createElement)(ye.Path,{d:"M19.266 9.805c-.473-.611-1.22-.51-1.702-.367a3.854 3.854 0 00-.718.307l.13 1.082c.192-.17.47-.422.782-.515.34-.1.578.025.668.141.21.27-.034.835-.16 1.055-.49.85-.93 1.594-1.45 2.492H19.5v-1h-.914c.277-.574.814-1.443.914-2.106.052-.343.02-.762-.234-1.09z",fill:"#1E1E1E"}));const Ju=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"a",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return Object(je.createElement)(t,{className:"page-numbers "+n},e)};const Qu={apiVersion:2,name:"core/query-pagination-numbers",title:"Query Pagination Numbers",category:"design",parent:["core/query-pagination"],description:"Displays a list of page numbers for pagination",textdomain:"default",usesContext:["queryId","query"],supports:{reusable:!1,html:!1},editorStyle:"query-pagination-numbers-editor"},{name:Yu}=Qu,Xu={icon:Ku,edit:function(){const e=Object(je.createElement)(je.Fragment,null,Ju(1),Ju(2),Ju(3,"span","current"),Ju(4),Ju(5),Ju("...","span","dots"),Ju(8));return Object(je.createElement)("div",Object(we.useBlockProps)(),e)}};var em=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Rect,{x:"18",y:"13.5",width:"3",height:"3",rx:"1.5",transform:"rotate(-180 18 13.5)",fill:"#000"}),Object(je.createElement)(ye.Rect,{x:"13",y:"13.5",width:"3",height:"3",rx:"1.5",transform:"rotate(-180 13 13.5)",fill:"#000"}),Object(je.createElement)(ye.Path,{d:"M7.5 14.5L5 12l2.5-2.5",stroke:"#1E1E1E",strokeWidth:"1.5"}));const tm={none:"",arrow:"←",chevron:"«"};const nm={apiVersion:2,name:"core/query-pagination-previous",title:"Query Pagination Previous",category:"design",parent:["core/query-pagination"],description:"Displays the previous posts page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["queryId","query","paginationArrow"],supports:{reusable:!1,html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:rm}=nm,om={icon:em,edit:function(e){let{attributes:{label:t},setAttributes:n,context:{paginationArrow:r}}=e;const o=tm[r];return Object(je.createElement)("a",Object(mt.a)({href:"#pagination-previous-pseudo-link",onClick:e=>e.preventDefault()},Object(we.useBlockProps)()),o&&Object(je.createElement)("span",{className:"wp-block-query-pagination-previous-arrow is-arrow-"+r},o),Object(je.createElement)(we.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":Object(ke.__)("Previous page link"),placeholder:Object(ke.__)("Previous Page"),value:t,onChange:e=>n({label:e})}))}},am=["archive"];var lm=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{stroke:"#1E1E1E",strokeWidth:"1.5",d:"M4 19.25h9M4 15.25h16"}),Object(je.createElement)(ye.Path,{d:"M8.994 10.103H6.08L5.417 12H4l2.846-8h1.383l2.845 8H9.657l-.663-1.897zm-.457-1.28l-.994-2.857-1.006 2.857h2z",fill:"#1E1E1E"}));const cm=[{isDefault:!0,name:"archive-title",title:Object(ke.__)("Archive Title"),description:Object(ke.__)("Display the archive title based on the queried object."),icon:lm,attributes:{type:"archive"},scope:["inserter"]}];cm.forEach(e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)});var im=cm;var sm=[{attributes:{type:{type:"string"},textAlign:{type:"string"},level:{type:"number",default:1}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0}},save:()=>null,migrate:at,isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}}];const um={apiVersion:2,name:"core/query-title",title:"Query Title",category:"theme",description:"Display the query title.",textdomain:"default",attributes:{type:{type:"string"},textAlign:{type:"string"},level:{type:"number",default:1}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}}},editorStyle:"wp-block-query-title-editor"},{name:mm}=um,dm={edit:function(e){let{attributes:{type:t,level:n,textAlign:r},setAttributes:o}=e;const a="h"+n,l=Object(we.useBlockProps)({className:tt()({["has-text-align-"+r]:r,"wp-block-query-title__placeholder":"archive"===t})});if(!am.includes(t))return Object(je.createElement)("div",l,Object(je.createElement)(we.Warning,null,Object(ke.__)("Provided type is not supported.")));let c;return"archive"===t&&(c=Object(je.createElement)(a,l,Object(ke.__)("Archive title"))),Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(sa,{selectedLevel:n,onChange:e=>o({level:e})}),Object(je.createElement)(we.AlignmentControl,{value:r,onChange:e=>{o({textAlign:e})}})),c)},variations:im,deprecated:sm};var bm=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M13 6v6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H13zm-9 6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H4v6z"}));const pm={value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}};var gm=[{attributes:pm,save(e){let{attributes:t}=e;const{align:n,value:r,citation:o}=t;return Object(je.createElement)("blockquote",{style:{textAlign:n||null}},Object(je.createElement)(we.RichText.Content,{multiline:!0,value:r}),!we.RichText.isEmpty(o)&&Object(je.createElement)(we.RichText.Content,{tagName:"cite",value:o}))}},{attributes:{...pm,style:{type:"number",default:1}},migrate:e=>2===e.style?{...Object(Me.omit)(e,["style"]),className:e.className?e.className+" is-style-large":"is-style-large"}:e,save(e){let{attributes:t}=e;const{align:n,value:r,citation:o,style:a}=t;return Object(je.createElement)("blockquote",{className:2===a?"is-large":"",style:{textAlign:n||null}},Object(je.createElement)(we.RichText.Content,{multiline:!0,value:r}),!we.RichText.isEmpty(o)&&Object(je.createElement)(we.RichText.Content,{tagName:"cite",value:o}))}},{attributes:{...pm,citation:{type:"string",source:"html",selector:"footer",default:""},style:{type:"number",default:1}},migrate:e=>isNaN(parseInt(e.style))?e:{...Object(Me.omit)(e,["style"])},save(e){let{attributes:t}=e;const{align:n,value:r,citation:o,style:a}=t;return Object(je.createElement)("blockquote",{className:"blocks-quote-style-"+a,style:{textAlign:n||null}},Object(je.createElement)(we.RichText.Content,{multiline:!0,value:r}),!we.RichText.isEmpty(o)&&Object(je.createElement)(we.RichText.Content,{tagName:"footer",value:o}))}}];const hm="web"===je.Platform.OS;var vm={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>Object(Oe.createBlock)("core/quote",{value:Object(kt.toHTMLString)({value:Object(kt.join)(e.map(e=>{let{content:t}=e;return Object(kt.create)({html:t})}),"\u2028"),multilineTag:"p"}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:e=>{let{content:t,anchor:n}=e;return Object(Oe.createBlock)("core/quote",{value:`<p>${t}</p>`,anchor:n})}},{type:"block",blocks:["core/pullquote"],transform:e=>{let{value:t,citation:n,anchor:r}=e;return Object(Oe.createBlock)("core/quote",{value:t,citation:n,anchor:r})}},{type:"prefix",prefix:">",transform:e=>Object(Oe.createBlock)("core/quote",{value:`<p>${e}</p>`})},{type:"raw",isMatch:e=>{const t=(()=>{let e=!1;return t=>"P"===t.nodeName||(e||"CITE"!==t.nodeName?void 0:(e=!0,!0))})();return"BLOCKQUOTE"===e.nodeName&&Array.from(e.childNodes).every(t)},schema:e=>{let{phrasingContentSchema:t}=e;return{blockquote:{children:{p:{children:t},cite:{children:t}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{value:t,citation:n}=e;const r=[];return t&&"<p></p>"!==t&&r.push(...Object(kt.split)(Object(kt.create)({html:t,multilineTag:"p"}),"\u2028").map(e=>Object(Oe.createBlock)("core/paragraph",{content:Object(kt.toHTMLString)({value:e})}))),n&&"<p></p>"!==n&&r.push(Object(Oe.createBlock)("core/paragraph",{content:n})),0===r.length?Object(Oe.createBlock)("core/paragraph",{content:""}):r}},{type:"block",blocks:["core/heading"],transform:e=>{let{value:t,citation:n,...r}=e;if("<p></p>"===t)return Object(Oe.createBlock)("core/heading",{content:n});const o=Object(kt.split)(Object(kt.create)({html:t,multilineTag:"p"}),"\u2028"),a=Object(Oe.createBlock)("core/heading",{content:Object(kt.toHTMLString)({value:o[0]})});if(!n&&1===o.length)return a;const l=o.slice(1);return[a,Object(Oe.createBlock)("core/quote",{...r,citation:n,value:Object(kt.toHTMLString)({value:l.length?Object(kt.join)(o.slice(1),"\u2028"):Object(kt.create)(),multilineTag:"p"})})]}},{type:"block",blocks:["core/pullquote"],transform:e=>{let{value:t,citation:n,anchor:r}=e;return Object(Oe.createBlock)("core/pullquote",{value:t,citation:n,anchor:r})}}]};const Om={apiVersion:2,name:"core/quote",title:"Quote",category:"text",description:'Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar',keywords:["blockquote","cite"],textdomain:"default",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},align:{type:"string"}},supports:{anchor:!0,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"plain",label:"Plain"},{name:"large",label:"Large"}],editorStyle:"wp-block-quote-editor",style:"wp-block-quote"},{name:jm}=Om,ym={icon:bm,example:{attributes:{value:"<p>"+Object(ke.__)("In quoting others, we cite ourselves.")+"</p>",citation:"Julio Cortázar",className:"is-style-large"}},transforms:vm,edit:function(e){let{attributes:t,setAttributes:n,isSelected:r,mergeBlocks:o,onReplace:a,className:l,insertBlocksAfter:c,style:i}=e;const{align:s,value:u,citation:m}=t,d=Object(we.useBlockProps)({className:tt()(l,{["has-text-align-"+s]:s}),style:i});return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(we.AlignmentControl,{value:s,onChange:e=>{n({align:e})}})),Object(je.createElement)(_e.BlockQuotation,d,Object(je.createElement)(we.RichText,{identifier:"value",multiline:!0,value:u,onChange:e=>n({value:e}),onMerge:o,onRemove:e=>{const t=!m||0===m.length;!e&&t&&a([])},"aria-label":Object(ke.__)("Quote text"),placeholder:Object(ke.__)("Add quote"),onReplace:a,onSplit:e=>Object(Oe.createBlock)("core/quote",{...t,value:e}),__unstableOnSplitMiddle:()=>Object(Oe.createBlock)("core/paragraph"),textAlign:s}),(!we.RichText.isEmpty(m)||r)&&Object(je.createElement)(we.RichText,{identifier:"citation",tagName:hm?"cite":void 0,style:{display:"block"},value:m,onChange:e=>n({citation:e}),__unstableMobileNoFocusOnMount:!0,"aria-label":Object(ke.__)("Quote citation text"),placeholder:Object(ke.__)("Add citation"),className:"wp-block-quote__citation",textAlign:s,__unstableOnSplitAtEnd:()=>c(Object(Oe.createBlock)("core/paragraph"))})))},save:function(e){let{attributes:t}=e;const{align:n,value:r,citation:o}=t,a=tt()({["has-text-align-"+n]:n});return Object(je.createElement)("blockquote",we.useBlockProps.save({className:a}),Object(je.createElement)(we.RichText.Content,{multiline:!0,value:r}),!we.RichText.isEmpty(o)&&Object(je.createElement)(we.RichText.Content,{tagName:"cite",value:o}))},merge(e,t){let{value:n,citation:r}=t;return r||(r=e.citation),n&&"<p></p>"!==n?{...e,value:e.value+n,citation:r}:{...e,citation:r}},deprecated:gm};var fm=n("+WrK"),_m=n("diJD");var km=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7zm-5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h1V9H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-1h-1.5v1z"}));const wm={apiVersion:2,name:"core/block",title:"Reusable block",category:"reusable",description:"Create and save content to reuse across your site. Update the block, and the changes apply everywhere it’s used.",textdomain:"default",attributes:{ref:{type:"number"}},supports:{customClassName:!1,html:!1,inserter:!1},editorStyle:"wp-block-editor"},{name:Em}=wm,Cm={edit:function(e){let{attributes:{ref:t},clientId:n}=e;const[r,o]=Object(we.__experimentalUseNoRecursiveRenders)(t),{isMissing:a,hasResolved:l}=Object(ze.useSelect)(e=>{const n=e(It.store).getEntityRecord("postType","wp_block",t),r=e(It.store).hasFinishedResolution("getEntityRecord",["postType","wp_block",t]);return{hasResolved:r,isMissing:r&&!n}},[t,n]),{__experimentalConvertBlockToStatic:c}=Object(ze.useDispatch)(_m.store),[i,s,u]=Object(It.useEntityBlockEditor)("postType","wp_block",{id:t}),[m,d]=Object(It.useEntityProp)("postType","wp_block","title",t),b=Object(we.useBlockProps)(),p=Object(we.useInnerBlocksProps)({},{value:i,onInput:s,onChange:u,renderAppender:null!=i&&i.length?void 0:we.InnerBlocks.ButtonBlockAppender});return r?Object(je.createElement)("div",b,Object(je.createElement)(we.Warning,null,Object(ke.__)("Block cannot be rendered inside itself."))):a?Object(je.createElement)("div",b,Object(je.createElement)(we.Warning,null,Object(ke.__)("Block has been deleted or is unavailable."))):l?Object(je.createElement)(o,null,Object(je.createElement)("div",b,Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(_e.ToolbarGroup,null,Object(je.createElement)(_e.ToolbarButton,{onClick:()=>c(n),label:Object(ke.__)("Convert to regular blocks"),icon:km,showTooltip:!0}))),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,null,Object(je.createElement)(_e.TextControl,{label:Object(ke.__)("Name"),value:m,onChange:d}))),Object(je.createElement)(we.__experimentalBlockContentOverlay,{clientId:n,wrapperProps:p,className:"block-library-block__reusable-block-container"}))):Object(je.createElement)("div",b,Object(je.createElement)(_e.Placeholder,null,Object(je.createElement)(_e.Spinner,null)))},icon:fm.a};var xm=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z"}));const Sm={apiVersion:2,name:"core/rss",title:"RSS",category:"widgets",description:"Display entries from any RSS or Atom feed.",keywords:["atom","feed"],textdomain:"default",attributes:{columns:{type:"number",default:2},blockLayout:{type:"string",default:"list"},feedURL:{type:"string",default:""},itemsToShow:{type:"number",default:5},displayExcerpt:{type:"boolean",default:!1},displayAuthor:{type:"boolean",default:!1},displayDate:{type:"boolean",default:!1},excerptLength:{type:"number",default:55}},supports:{align:!0,html:!1},editorStyle:"wp-block-rss-editor",style:"wp-block-rss"},{name:Bm}=Sm,Tm={icon:xm,example:{attributes:{feedURL:"https://wordpress.org"}},edit:function(e){let{attributes:t,setAttributes:n}=e;const[r,o]=Object(je.useState)(!t.feedURL),{blockLayout:a,columns:l,displayAuthor:c,displayDate:i,displayExcerpt:s,excerptLength:u,feedURL:m,itemsToShow:d}=t;function b(e){return()=>{const r=t[e];n({[e]:!r})}}const p=Object(we.useBlockProps)();if(r)return Object(je.createElement)("div",p,Object(je.createElement)(_e.Placeholder,{icon:xm,label:"RSS"},Object(je.createElement)("form",{onSubmit:function(e){e.preventDefault(),m&&o(!1)},className:"wp-block-rss__placeholder-form"},Object(je.createElement)(_e.TextControl,{placeholder:Object(ke.__)("Enter URL here…"),value:m,onChange:e=>n({feedURL:e}),className:"wp-block-rss__placeholder-input"}),Object(je.createElement)(_e.Button,{variant:"primary",type:"submit"},Object(ke.__)("Use URL")))));const g=[{icon:tr.a,title:Object(ke.__)("Edit RSS URL"),onClick:()=>o(!0)},{icon:Za,title:Object(ke.__)("List view"),onClick:()=>n({blockLayout:"list"}),isActive:"list"===a},{icon:Ka.a,title:Object(ke.__)("Grid view"),onClick:()=>n({blockLayout:"grid"}),isActive:"grid"===a}];return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(_e.ToolbarGroup,{controls:g})),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("RSS settings")},Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Number of items"),value:d,onChange:e=>n({itemsToShow:e}),min:1,max:10,required:!0}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Display author"),checked:c,onChange:b("displayAuthor")}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Display date"),checked:i,onChange:b("displayDate")}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Display excerpt"),checked:s,onChange:b("displayExcerpt")}),s&&Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Max number of words in excerpt"),value:u,onChange:e=>n({excerptLength:e}),min:10,max:100,required:!0}),"grid"===a&&Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Columns"),value:l,onChange:e=>n({columns:e}),min:2,max:6,required:!0}))),Object(je.createElement)("div",p,Object(je.createElement)(_e.Disabled,null,Object(je.createElement)(Ce.a,{block:"core/rss",attributes:t}))))}},Nm=Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(_e.Rect,{x:"7",y:"10",width:"10",height:"4",rx:"1",fill:"currentColor"})),Pm=Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(_e.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"9.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),Object(je.createElement)(_e.Rect,{x:"16",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),zm=Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(_e.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),Object(je.createElement)(_e.Rect,{x:"14",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),Im=Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(_e.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",fill:"none",strokeWidth:"1.5"})),Mm=Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(_e.Rect,{x:"4.75",y:"7.75",width:"14.5",height:"8.5",rx:"1.25",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),Object(je.createElement)(_e.Rect,{x:"8",y:"11",width:"8",height:"2",fill:"currentColor"})),Rm=Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(_e.Rect,{x:"4.75",y:"17.25",width:"5.5",height:"14.5",transform:"rotate(-90 4.75 17.25)",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),Object(je.createElement)(_e.Rect,{x:"4",y:"7",width:"10",height:"2",fill:"currentColor"}));var Lm=[{name:"default",isDefault:!0,attributes:{buttonText:Object(ke.__)("Search"),label:Object(ke.__)("Search")}}];const Vm={apiVersion:2,name:"core/search",title:"Search",category:"widgets",description:"Help visitors find your content.",keywords:["find"],textdomain:"default",attributes:{label:{type:"string",__experimentalRole:"content"},showLabel:{type:"boolean",default:!0},placeholder:{type:"string",default:"",__experimentalRole:"content"},width:{type:"number"},widthUnit:{type:"string"},buttonText:{type:"string",__experimentalRole:"content"},buttonPosition:{type:"string",default:"button-outside"},buttonUseIcon:{type:"boolean",default:!1}},supports:{align:["left","center","right"],color:{gradients:!0,__experimentalSkipSerialization:!0},__experimentalBorder:{color:!0,radius:!0,__experimentalSkipSerialization:!0},html:!1},editorStyle:"wp-block-search-editor",style:"wp-block-search"},{name:Am}=Vm,Hm={icon:cc.a,example:{},variations:Lm,edit:function(e){var t,n;let{className:r,attributes:o,setAttributes:a,toggleSelection:l,isSelected:c,clientId:i}=e;const{label:s,showLabel:u,placeholder:m,width:d,widthUnit:b,align:p,buttonText:g,buttonPosition:h,buttonUseIcon:v,style:O}=o,j=Object(ze.useSelect)(e=>{var t;const{getBlockParentsByBlockName:n,wasBlockJustInserted:r}=e(we.store);return!(null===(t=n(i,"core/navigation"))||void 0===t||!t.length)&&r(i)},[i]),{__unstableMarkNextChangeAsNotPersistent:y}=Object(ze.useDispatch)(we.store);Object(je.useEffect)(()=>{j&&(y(),a({showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"}))},[j]);const f=null==O||null===(t=O.border)||void 0===t?void 0:t.radius,_=null==O||null===(n=O.border)||void 0===n?void 0:n.color,k=Object(we.__experimentalUseBorderProps)(o);"number"==typeof f&&(k.style.borderRadius=f+"px");const w=Object(we.__experimentalUseColorProps)(o),E="wp-block-search__width-"+Object(nt.useInstanceId)(we.__experimentalUnitControl),C="button-inside"===h,x="button-outside"===h,S="no-button"===h,B="button-only"===h,T=Object(_e.__experimentalUseCustomUnits)({availableUnits:["%","px"],defaultValues:{"%":50,px:350}}),N=[{role:"menuitemradio",title:Object(ke.__)("Button outside"),isActive:"button-outside"===h,icon:Pm,onClick:()=>{a({buttonPosition:"button-outside"})}},{role:"menuitemradio",title:Object(ke.__)("Button inside"),isActive:"button-inside"===h,icon:zm,onClick:()=>{a({buttonPosition:"button-inside"})}},{role:"menuitemradio",title:Object(ke.__)("No button"),isActive:"no-button"===h,icon:Im,onClick:()=>{a({buttonPosition:"no-button"})}}],P=()=>{const e=tt()("wp-block-search__input",C?void 0:k.className),t=C?{borderRadius:f}:k.style;return Object(je.createElement)("input",{className:e,style:t,"aria-label":Object(ke.__)("Optional placeholder text"),placeholder:m?void 0:Object(ke.__)("Optional placeholder…"),value:m,onChange:e=>a({placeholder:e.target.value})})},z=()=>{const e=tt()("wp-block-search__button",w.className,C?void 0:k.className,v?"has-icon":void 0),t={...w.style,...C?{borderRadius:f}:k.style};return Object(je.createElement)(je.Fragment,null,v&&Object(je.createElement)("button",{type:"button",className:e,style:t},Object(je.createElement)(nc.a,{icon:cc.a})),!v&&Object(je.createElement)(we.RichText,{className:e,style:t,"aria-label":Object(ke.__)("Button text"),placeholder:Object(ke.__)("Add button text…"),withoutInteractiveFormatting:!0,value:g,onChange:e=>a({buttonText:e})}))},I=Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(_e.ToolbarGroup,null,Object(je.createElement)(_e.ToolbarButton,{title:Object(ke.__)("Toggle search label"),icon:Rm,onClick:()=>{a({showLabel:!u})},className:u?"is-pressed":void 0}),Object(je.createElement)(_e.ToolbarDropdownMenu,{icon:(()=>{switch(h){case"button-inside":return zm;case"button-outside":return Pm;case"no-button":return Im;case"button-only":return Nm}})(),label:Object(ke.__)("Change button position"),controls:N}),!S&&Object(je.createElement)(_e.ToolbarButton,{title:Object(ke.__)("Use button with icon"),icon:Mm,onClick:()=>{a({buttonUseIcon:!v})},className:v?"is-pressed":void 0}))),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Display Settings")},Object(je.createElement)(_e.BaseControl,{label:Object(ke.__)("Width"),id:E},Object(je.createElement)(we.__experimentalUnitControl,{id:E,min:"220px",onChange:e=>{const t="%"===b&&parseInt(e,10)>100?100:e;a({width:parseInt(t,10)})},onUnitChange:e=>{a({width:"%"===e?50:350,widthUnit:e})},style:{maxWidth:80},value:`${d}${b}`,unit:b,units:T}),Object(je.createElement)(_e.ButtonGroup,{className:"wp-block-search__components-button-group","aria-label":Object(ke.__)("Percentage Width")},[25,50,75,100].map(e=>Object(je.createElement)(_e.Button,{key:e,isSmall:!0,variant:e+"%"==`${d}${b}`?"primary":void 0,onClick:()=>a({width:e,widthUnit:"%"})},e,"%"))))))),M=e=>e?`calc(${e} + 4px)`:void 0,R=Object(we.useBlockProps)({className:tt()(r,C?void 0:k.className,C?"wp-block-search__button-inside":void 0,x?"wp-block-search__button-outside":void 0,S?"wp-block-search__no-button":void 0,B?"wp-block-search__button-only":void 0,v||S?void 0:"wp-block-search__text-button",v&&!S?"wp-block-search__icon-button":void 0)});return Object(je.createElement)("div",R,I,u&&Object(je.createElement)(we.RichText,{className:"wp-block-search__label","aria-label":Object(ke.__)("Label text"),placeholder:Object(ke.__)("Add label…"),withoutInteractiveFormatting:!0,value:s,onChange:e=>a({label:e})}),Object(je.createElement)(_e.ResizableBox,{size:{width:`${d}${b}`},className:tt()("wp-block-search__inside-wrapper",C?k.className:void 0),style:(()=>{const e={borderColor:_},t=0!==parseInt(f,10);if(C&&t){if("object"==typeof f){const{topLeft:t,topRight:n,bottomLeft:r,bottomRight:o}=f;return{borderTopLeftRadius:M(t),borderTopRightRadius:M(n),borderBottomLeftRadius:M(r),borderBottomRightRadius:M(o),...e}}const t=Number.isInteger(f)?f+"px":f;e.borderRadius=`calc(${t} + 4px)`}return e})(),minWidth:220,enable:B?{}:{right:"right"!==p,left:"right"===p},onResizeStart:(e,t,n)=>{a({width:parseInt(n.offsetWidth,10),widthUnit:"px"}),l(!1)},onResizeStop:(e,t,n,r)=>{a({width:parseInt(d+r.width,10)}),l(!0)},showHandle:c},(C||x)&&Object(je.createElement)(je.Fragment,null,P(),z()),B&&z(),S&&P()))}};var Fm=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M20.2 7v4H3.8V7H2.2v9h1.6v-3.5h16.4V16h1.6V7z"}));var Dm=e=>{let{color:t,setColor:n}=e;return Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(we.PanelColorSettings,{__experimentalHasMultipleOrigins:!0,title:Object(ke.__)("Color"),colorSettings:[{value:t.color,onChange:n,label:Object(ke.__)("Color")}]}))};var Gm=Object(we.withColors)("color",{textColor:"color"})((function(e){let{color:t,setColor:n,className:r}=e;return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.HorizontalRule,Object(we.useBlockProps)({className:tt()(r,{"has-background":t.color,[t.class]:t.class}),style:{backgroundColor:t.color,color:t.color}})),Object(je.createElement)(Dm,{color:t,setColor:n}))}));var qm={from:[{type:"enter",regExp:/^-{3,}$/,transform:()=>Object(Oe.createBlock)("core/separator")},{type:"raw",selector:"hr",schema:{hr:{}}}]};const Um={apiVersion:2,name:"core/separator",title:"Separator",category:"design",description:"Create a break between ideas or sections with a horizontal separator.",keywords:["horizontal-line","hr","divider"],textdomain:"default",attributes:{color:{type:"string"},customColor:{type:"string"}},supports:{anchor:!0,align:["center","wide","full"]},styles:[{name:"default",label:"Default",isDefault:!0},{name:"wide",label:"Wide Line"},{name:"dots",label:"Dots"}],editorStyle:"wp-block-separator-editor",style:"wp-block-separator"},{name:Wm}=Um,$m={icon:Fm,example:{attributes:{customColor:"#065174",className:"is-style-wide"}},transforms:qm,edit:Gm,save:function(e){let{attributes:t}=e;const{color:n,customColor:r}=t,o=Object(we.getColorClassName)("background-color",n),a=Object(we.getColorClassName)("color",n),l=tt()({"has-text-color has-background":n||r,[o]:o,[a]:a}),c={backgroundColor:o?void 0:r,color:a?void 0:r};return Object(je.createElement)("hr",we.useBlockProps.save({className:l,style:c}))}};var Zm=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z"}));var Km=n("UuzZ");var Jm={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:(e,t)=>{let{content:n}=t;return Object(Km.removep)(Object(Km.autop)(n))}}},priority:20}]};const Qm={apiVersion:2,name:"core/shortcode",title:"Shortcode",category:"widgets",description:"Insert additional custom elements with a WordPress shortcode.",textdomain:"default",attributes:{text:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,html:!1},editorStyle:"wp-block-shortcode-editor"},{name:Ym}=Qm,Xm={icon:Zm,transforms:Jm,edit:function e(t){let{attributes:n,setAttributes:r}=t;const o="blocks-shortcode-input-"+Object(nt.useInstanceId)(e);return Object(je.createElement)("div",Object(we.useBlockProps)({className:"components-placeholder"}),Object(je.createElement)("label",{htmlFor:o,className:"components-placeholder__label"},Object(je.createElement)(nc.a,{icon:Zm}),Object(ke.__)("Shortcode")),Object(je.createElement)(we.PlainText,{className:"blocks-shortcode__textarea",id:o,value:n.text,"aria-label":Object(ke.__)("Shortcode text"),placeholder:Object(ke.__)("Write shortcode here…"),onChange:e=>r({text:e})}))},save:function(e){let{attributes:t}=e;return Object(je.createElement)(je.RawHTML,null,t.text)}};var ed=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 1.5c4.1 0 7.5 3.4 7.5 7.5v.1c-1.4-.8-3.3-1.7-3.4-1.8-.2-.1-.5-.1-.8.1l-2.9 2.1L9 11.3c-.2-.1-.4 0-.6.1l-3.7 2.2c-.1-.5-.2-1-.2-1.5 0-4.2 3.4-7.6 7.5-7.6zm0 15c-3.1 0-5.7-1.9-6.9-4.5l3.7-2.2 3.5 1.2c.2.1.5 0 .7-.1l2.9-2.1c.8.4 2.5 1.2 3.5 1.9-.9 3.3-3.9 5.8-7.4 5.8z"}));const td=["image"],nd=e=>{let{alt:t,attributes:{align:n,width:r,height:o,isLink:a,linkTarget:l},containerRef:c,isSelected:i,setAttributes:s,setLogo:u,logoUrl:m,siteUrl:d,logoId:b}=e;const p=Ta(c,[n]),g=Object(nt.useViewportMatch)("medium"),h=!Object(Me.includes)(["wide","full"],n)&&g,[{naturalWidth:v,naturalHeight:O},j]=Object(je.useState)({}),[y,f]=Object(je.useState)(!1),{toggleSelection:_}=Object(ze.useDispatch)(we.store),k=tt()("custom-logo-link",{"is-transient":Object(Pe.isBlobURL)(m)}),{imageEditing:w,maxWidth:E,title:C}=Object(ze.useSelect)(e=>{const{getSettings:t}=e(we.store);return{title:e(It.store).getEditedEntityRecord("root","site").title,...Object(Me.pick)(t(),["imageEditing","maxWidth"])}},[]);Object(je.useEffect)(()=>{i||f(!1)},[i]);const x=Object(je.createElement)("img",{className:"custom-logo",src:m,alt:t,onLoad:e=>{j(Object(Me.pick)(e.target,["naturalWidth","naturalHeight"]))}});let S,B=x;if(a&&(B=Object(je.createElement)("a",{href:d,className:k,rel:"home",title:C,onClick:e=>e.preventDefault()},x)),p&&v&&O){S=v>p?p:v}if(!h||!S)return Object(je.createElement)("div",{style:{width:r,height:o}},B);const T=r||S,N=v/O,P=T/N,z=v<O?20:20*N,I=O<v?20:20/N,M=2.5*E;let R=!1,L=!1;"center"===n?(R=!0,L=!0):Object(ke.isRTL)()?"left"===n?R=!0:L=!0:"right"===n?L=!0:R=!0;const V=b&&v&&O&&w,A=V&&y?Object(je.createElement)(we.__experimentalImageEditingProvider,{id:b,url:m,naturalWidth:v,naturalHeight:O,clientWidth:p,onSaveImage:e=>{u(e.id)},isEditing:y,onFinishEditing:()=>f(!1)},Object(je.createElement)(we.__experimentalImageEditor,{url:m,width:T,height:P,clientWidth:p,naturalHeight:O,naturalWidth:v})):Object(je.createElement)(_e.ResizableBox,{size:{width:T,height:P},showHandle:i,minWidth:z,maxWidth:M,minHeight:I,maxHeight:M/N,lockAspectRatio:!0,enable:{top:!1,right:R,bottom:!0,left:L},onResizeStart:function(){_(!1)},onResizeStop:(e,t,n,r)=>{_(!0),s({width:parseInt(T+r.width,10),height:parseInt(P+r.height,10)})}},B);return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Settings")},Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Image width"),onChange:e=>s({width:e}),min:z,max:M,initialPosition:Math.min(120,M),value:r||"",disabled:!h}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Link image to home"),onChange:()=>s({isLink:!a}),checked:a}),a&&Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Open in new tab"),onChange:e=>s({linkTarget:e?"_blank":"_self"}),checked:"_blank"===l})))),Object(je.createElement)(we.BlockControls,{group:"block"},V&&!y&&Object(je.createElement)(_e.ToolbarButton,{onClick:()=>f(!0),icon:xa,label:Object(ke.__)("Crop")})),A)};const rd={apiVersion:2,name:"core/site-logo",title:"Site Logo",category:"theme",description:"Display a graphic to represent this site. Update the block, and the changes apply everywhere it’s used. This is different than the site icon, which is the smaller image visible in your dashboard, browser tabs, etc used to help others recognize this site.",textdomain:"default",attributes:{align:{type:"string"},width:{type:"number"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"}},example:{viewportWidth:500,attributes:{width:350}},supports:{html:!1,align:!0,alignWide:!1,color:{__experimentalDuotone:"img",text:!1,background:!1}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],editorStyle:"wp-block-site-logo-editor",style:"wp-block-site-logo"},{name:od}=rd,ad={icon:ed,edit:function(e){let{attributes:t,className:n,setAttributes:r,isSelected:o}=e;const{width:a}=t,[l,c]=Object(je.useState)(),i=Object(je.useRef)(),{siteLogoId:s,canUserEdit:u,url:m,mediaItemData:d,isRequestingMediaItem:b}=Object(ze.useSelect)(e=>{const{canUser:t,getEntityRecord:n,getEditedEntityRecord:r}=e(It.store),o=r("root","site"),a=n("root","__unstableBase"),l=null==o?void 0:o.site_logo,c=null==a?void 0:a.site_logo,i=t("update","settings"),s=i?l:c,u=s&&e(It.store).getMedia(s,{context:"view"}),m=s&&!e(It.store).hasFinishedResolution("getMedia",[s,{context:"view"}]);return{siteLogoId:s,canUserEdit:i,url:null==a?void 0:a.url,mediaItemData:u&&{id:u.id,url:u.source_url,alt:u.alt_text},isRequestingMediaItem:m}},[]),{editEntityRecord:p}=Object(ze.useDispatch)(It.store),g=e=>p("root","site",void 0,{site_logo:e});let h=null;d&&(h=d.alt,l!==d.url&&c(d.url));const v=e=>{if(e)return!e.id&&e.url?(g(void 0),void c(e.url)):void g(e.id)},{createErrorNotice:O}=Object(ze.useDispatch)(Fr.store),j=e=>{O(e[2],{type:"snackbar"})},y=u&&l&&Object(je.createElement)(we.BlockControls,{group:"other"},Object(je.createElement)(we.MediaReplaceFlow,{mediaURL:l,allowedTypes:td,accept:"image/*",onSelect:v,onError:j},Object(je.createElement)(_e.MenuItem,{onClick:()=>{g(null),c(void 0)}},Object(ke.__)("Reset"))));let f;const _=void 0===s||b;_&&(f=Object(je.createElement)(_e.Spinner,null)),l&&(f=Object(je.createElement)(nd,{alt:h,attributes:t,className:n,containerRef:i,isSelected:o,setAttributes:r,logoUrl:l,setLogo:g,logoId:(null==d?void 0:d.id)||s,siteUrl:m}));const k=tt()(n,{"is-default-size":!a}),w=Object(we.useBlockProps)({ref:i,className:k}),E=Object(ke.__)("Add a site logo");return Object(je.createElement)("div",w,y,!!l&&f,!l&&!u&&Object(je.createElement)(_e.Placeholder,{className:"site-logo_placeholder"},_&&Object(je.createElement)("span",{className:"components-placeholder__preview"},Object(je.createElement)(_e.Spinner,null))),!l&&u&&Object(je.createElement)(we.MediaPlaceholder,{onSelect:v,accept:"image/*",allowedTypes:td,onError:j,placeholder:e=>{const t=tt()("block-editor-media-placeholder",n);return Object(je.createElement)(_e.Placeholder,{className:t,preview:f},Object(je.createElement)(ye.SVG,{className:"components-placeholder__illustration",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60"},Object(je.createElement)(ye.Path,{vectorEffect:"non-scaling-stroke",d:"m61 32.622-13.555-9.137-15.888 9.859a5 5 0 0 1-5.386-.073l-9.095-5.989L1 37.5"})),e)},mediaLibraryButton:e=>{let{open:t}=e;return Object(je.createElement)(_e.Button,{icon:Sa.a,variant:"primary",label:E,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{t()}})}}))}};var ld=Object(je.createElement)(_e.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},Object(je.createElement)(_e.Path,{fill:"none",d:"M0 0h24v24H0z"}),Object(je.createElement)(_e.Path,{d:"M4 9h16v2H4V9zm0 4h10v2H4v-2z"}));var cd=[{attributes:{textAlign:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:at,isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}}];const id={apiVersion:2,name:"core/site-tagline",title:"Site Tagline",category:"theme",description:"Describe in a few words what the website is about. The tagline can be used in search results or when sharing on social networks even if it's not displayed in the theme design.",keywords:["description"],textdomain:"default",attributes:{textAlign:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-site-tagline-editor"},{name:sd}=id,ud={icon:ld,edit:function(e){let{attributes:t,setAttributes:n}=e;const{textAlign:r}=t,[o,a]=Object(It.useEntityProp)("root","site","description"),{canUserEdit:l,readOnlySiteTagLine:c}=Object(ze.useSelect)(e=>{const{canUser:t,getEntityRecord:n}=e(It.store),r=n("root","__unstableBase");return{canUserEdit:t("update","settings"),readOnlySiteTagLine:null==r?void 0:r.description}},[]),i=Object(we.useBlockProps)({className:tt()({["has-text-align-"+r]:r,"wp-block-site-tagline__placeholder":!l&&!c})}),s=l?Object(je.createElement)(we.RichText,Object(mt.a)({allowedFormats:[],onChange:a,"aria-label":Object(ke.__)("Site tagline text"),placeholder:Object(ke.__)("Write site tagline…"),tagName:"p",value:o},i)):Object(je.createElement)("p",i,c||Object(ke.__)("Site Tagline placeholder"));return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(we.AlignmentControl,{onChange:e=>n({textAlign:e}),value:r})),s)},deprecated:cd};var md=Object(je.createElement)(ye.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M12 9c-.8 0-1.5.7-1.5 1.5S11.2 12 12 12s1.5-.7 1.5-1.5S12.8 9 12 9zm0-5c-3.6 0-6.5 2.8-6.5 6.2 0 .8.3 1.8.9 3.1.5 1.1 1.2 2.3 2 3.6.7 1 3 3.8 3.2 3.9l.4.5.4-.5c.2-.2 2.6-2.9 3.2-3.9.8-1.2 1.5-2.5 2-3.6.6-1.3.9-2.3.9-3.1C18.5 6.8 15.6 4 12 4zm4.3 8.7c-.5 1-1.1 2.2-1.9 3.4-.5.7-1.7 2.2-2.4 3-.7-.8-1.9-2.3-2.4-3-.8-1.2-1.4-2.3-1.9-3.3-.6-1.4-.7-2.2-.7-2.5 0-2.6 2.2-4.7 5-4.7s5 2.1 5 4.7c0 .2-.1 1-.7 2.4z"}));function dd(e){let{level:t,isPressed:n=!1}=e;if(0===t)return zi;return Object(je.createElement)(_e.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:n},Object(je.createElement)(_e.Path,{d:{1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z"}[t]}))}function bd(e){let{level:t,onChange:n}=e;const r=[1,2,3,4,5,6,0].map(e=>{const r=e===t;return{icon:Object(je.createElement)(dd,{level:e,isPressed:r}),title:0===e?Object(ke.__)("Paragraph"):Object(ke.sprintf)(Object(ke.__)("Heading %d"),e),isActive:r,onClick:()=>n(e)}});return Object(je.createElement)(_e.ToolbarDropdownMenu,{label:Object(ke.__)("Change heading level"),icon:Object(je.createElement)(dd,{level:t}),controls:r})}var pd=[{attributes:{level:{type:"number",default:1},textAlign:{type:"string"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:at,isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}}];const gd={apiVersion:2,name:"core/site-title",title:"Site Title",category:"theme",description:"Displays the name of this site. Update the block, and the changes apply everywhere it’s used. This will also appear in the browser title bar and in search results.",textdomain:"default",attributes:{level:{type:"number",default:1},textAlign:{type:"string"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"}},example:{viewportWidth:500},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,lineHeight:!0,fontAppearance:!0,letterSpacing:!0,textTransform:!0}}},editorStyle:"wp-block-site-title-editor"},{name:hd}=gd,vd={icon:md,edit:function(e){let{attributes:t,setAttributes:n,insertBlocksAfter:r}=e;const{level:o,textAlign:a,isLink:l,linkTarget:c}=t,[i,s]=Object(It.useEntityProp)("root","site","title"),{canUserEdit:u,readOnlyTitle:m}=Object(ze.useSelect)(e=>{const{canUser:t,getEntityRecord:n}=e(It.store),r=n("root","__unstableBase");return{canUserEdit:t("update","settings"),readOnlyTitle:Object(rc.decodeEntities)(null==r?void 0:r.name)}},[]),d=0===o?"p":"h"+o,b=Object(we.useBlockProps)({className:tt()({["has-text-align-"+a]:a,"wp-block-site-title__placeholder":!u&&!m})}),p=u?Object(je.createElement)(d,b,Object(je.createElement)(we.RichText,{tagName:l?"a":"span",href:l?"#site-title-pseudo-link":void 0,"aria-label":Object(ke.__)("Site title text"),placeholder:Object(ke.__)("Write site title…"),value:i,onChange:s,allowedFormats:[],disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>r(Object(Oe.createBlock)(Object(Oe.getDefaultBlockName)()))})):Object(je.createElement)(d,b,l?Object(je.createElement)("a",{href:"#site-title-pseudo-link",onClick:e=>e.preventDefault()},m||Object(ke.__)("Site Title placeholder")):Object(je.createElement)("span",null,i||m));return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(bd,{level:o,onChange:e=>n({level:e})}),Object(je.createElement)(we.AlignmentControl,{value:a,onChange:e=>{n({textAlign:e})}})),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Link settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Make title link to home"),onChange:()=>n({isLink:!l}),checked:l}),l&&Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Open in new tab"),onChange:e=>n({linkTarget:e?"_blank":"_self"}),checked:"_blank"===c}))),p)},deprecated:pd};var Od=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M9 11.8l6.1-4.5c.1.4.4.7.9.7h2c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-2c-.6 0-1 .4-1 1v.4l-6.4 4.8c-.2-.1-.4-.2-.6-.2H6c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.2 0 .4-.1.6-.2l6.4 4.8v.4c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1h-2c-.5 0-.8.3-.9.7L9 12.2v-.4z"})),jd=n("btIw");const yd=()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M19.647,16.706a1.134,1.134,0,0,0-.343-.833l-2.549-2.549a1.134,1.134,0,0,0-.833-.343,1.168,1.168,0,0,0-.883.392l.233.226q.2.189.264.264a2.922,2.922,0,0,1,.184.233.986.986,0,0,1,.159.312,1.242,1.242,0,0,1,.043.337,1.172,1.172,0,0,1-1.176,1.176,1.237,1.237,0,0,1-.337-.043,1,1,0,0,1-.312-.159,2.76,2.76,0,0,1-.233-.184q-.073-.068-.264-.264l-.226-.233a1.19,1.19,0,0,0-.4.895,1.134,1.134,0,0,0,.343.833L15.837,19.3a1.13,1.13,0,0,0,.833.331,1.18,1.18,0,0,0,.833-.318l1.8-1.789a1.12,1.12,0,0,0,.343-.821Zm-8.615-8.64a1.134,1.134,0,0,0-.343-.833L8.163,4.7a1.134,1.134,0,0,0-.833-.343,1.184,1.184,0,0,0-.833.331L4.7,6.473a1.12,1.12,0,0,0-.343.821,1.134,1.134,0,0,0,.343.833l2.549,2.549a1.13,1.13,0,0,0,.833.331,1.184,1.184,0,0,0,.883-.38L8.728,10.4q-.2-.189-.264-.264A2.922,2.922,0,0,1,8.28,9.9a.986.986,0,0,1-.159-.312,1.242,1.242,0,0,1-.043-.337A1.172,1.172,0,0,1,9.254,8.079a1.237,1.237,0,0,1,.337.043,1,1,0,0,1,.312.159,2.761,2.761,0,0,1,.233.184q.073.068.264.264l.226.233a1.19,1.19,0,0,0,.4-.895ZM22,16.706a3.343,3.343,0,0,1-1.042,2.488l-1.8,1.789a3.536,3.536,0,0,1-4.988-.025l-2.525-2.537a3.384,3.384,0,0,1-1.017-2.488,3.448,3.448,0,0,1,1.078-2.561l-1.078-1.078a3.434,3.434,0,0,1-2.549,1.078,3.4,3.4,0,0,1-2.5-1.029L3.029,9.794A3.4,3.4,0,0,1,2,7.294,3.343,3.343,0,0,1,3.042,4.806l1.8-1.789A3.384,3.384,0,0,1,7.331,2a3.357,3.357,0,0,1,2.5,1.042l2.525,2.537a3.384,3.384,0,0,1,1.017,2.488,3.448,3.448,0,0,1-1.078,2.561l1.078,1.078a3.551,3.551,0,0,1,5.049-.049l2.549,2.549A3.4,3.4,0,0,1,22,16.706Z"})),fd=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:"WordPress",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M12.158,12.786L9.46,20.625c0.806,0.237,1.657,0.366,2.54,0.366c1.047,0,2.051-0.181,2.986-0.51 c-0.024-0.038-0.046-0.079-0.065-0.124L12.158,12.786z M3.009,12c0,3.559,2.068,6.634,5.067,8.092L3.788,8.341 C3.289,9.459,3.009,10.696,3.009,12z M18.069,11.546c0-1.112-0.399-1.881-0.741-2.48c-0.456-0.741-0.883-1.368-0.883-2.109 c0-0.826,0.627-1.596,1.51-1.596c0.04,0,0.078,0.005,0.116,0.007C16.472,3.904,14.34,3.009,12,3.009 c-3.141,0-5.904,1.612-7.512,4.052c0.211,0.007,0.41,0.011,0.579,0.011c0.94,0,2.396-0.114,2.396-0.114 C7.947,6.93,8.004,7.642,7.52,7.699c0,0-0.487,0.057-1.029,0.085l3.274,9.739l1.968-5.901l-1.401-3.838 C9.848,7.756,9.389,7.699,9.389,7.699C8.904,7.67,8.961,6.93,9.446,6.958c0,0,1.484,0.114,2.368,0.114 c0.94,0,2.397-0.114,2.397-0.114c0.485-0.028,0.542,0.684,0.057,0.741c0,0-0.488,0.057-1.029,0.085l3.249,9.665l0.897-2.996 C17.841,13.284,18.069,12.316,18.069,11.546z M19.889,7.686c0.039,0.286,0.06,0.593,0.06,0.924c0,0.912-0.171,1.938-0.684,3.22 l-2.746,7.94c2.673-1.558,4.47-4.454,4.47-7.771C20.991,10.436,20.591,8.967,19.889,7.686z M12,22C6.486,22,2,17.514,2,12 C2,6.486,6.486,2,12,2c5.514,0,10,4.486,10,10C22,17.514,17.514,22,12,22z"}))},{name:"fivehundredpx",attributes:{service:"fivehundredpx"},title:"500px",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M6.94026,15.1412c.00437.01213.108.29862.168.44064a6.55008,6.55008,0,1,0,6.03191-9.09557,6.68654,6.68654,0,0,0-2.58357.51467A8.53914,8.53914,0,0,0,8.21268,8.61344L8.209,8.61725V3.22948l9.0504-.00008c.32934-.0036.32934-.46353.32934-.61466s0-.61091-.33035-.61467L7.47248,2a.43.43,0,0,0-.43131.42692v7.58355c0,.24466.30476.42131.58793.4819.553.11812.68074-.05864.81617-.2457l.018-.02481A10.52673,10.52673,0,0,1,9.32258,9.258a5.35268,5.35268,0,1,1,7.58985,7.54976,5.417,5.417,0,0,1-3.80867,1.56365,5.17483,5.17483,0,0,1-2.69822-.74478l.00342-4.61111a2.79372,2.79372,0,0,1,.71372-1.78792,2.61611,2.61611,0,0,1,1.98282-.89477,2.75683,2.75683,0,0,1,1.95525.79477,2.66867,2.66867,0,0,1,.79656,1.909,2.724,2.724,0,0,1-2.75849,2.748,4.94651,4.94651,0,0,1-.86254-.13719c-.31234-.093-.44519.34058-.48892.48349-.16811.54966.08453.65862.13687.67489a3.75751,3.75751,0,0,0,1.25234.18375,3.94634,3.94634,0,1,0-2.82444-6.742,3.67478,3.67478,0,0,0-1.13028,2.584l-.00041.02323c-.0035.11667-.00579,2.881-.00644,3.78811l-.00407-.00451a6.18521,6.18521,0,0,1-1.0851-1.86092c-.10544-.27856-.34358-.22925-.66857-.12917-.14192.04372-.57386.17677-.47833.489Zm4.65165-1.08338a.51346.51346,0,0,0,.19513.31818l.02276.022a.52945.52945,0,0,0,.3517.18416.24242.24242,0,0,0,.16577-.0611c.05473-.05082.67382-.67812.73287-.738l.69041.68819a.28978.28978,0,0,0,.21437.11032.53239.53239,0,0,0,.35708-.19486c.29792-.30419.14885-.46821.07676-.54751l-.69954-.69975.72952-.73469c.16-.17311.01874-.35708-.12218-.498-.20461-.20461-.402-.25742-.52855-.14083l-.7254.72665-.73354-.73375a.20128.20128,0,0,0-.14179-.05695.54135.54135,0,0,0-.34379.19648c-.22561.22555-.274.38149-.15656.5059l.73374.7315-.72942.73072A.26589.26589,0,0,0,11.59191,14.05782Zm1.59866-9.915A8.86081,8.86081,0,0,0,9.854,4.776a.26169.26169,0,0,0-.16938.22759.92978.92978,0,0,0,.08619.42094c.05682.14524.20779.531.50006.41955a8.40969,8.40969,0,0,1,2.91968-.55484,7.87875,7.87875,0,0,1,3.086.62286,8.61817,8.61817,0,0,1,2.30562,1.49315.2781.2781,0,0,0,.18318.07586c.15529,0,.30425-.15253.43167-.29551.21268-.23861.35873-.4369.1492-.63538a8.50425,8.50425,0,0,0-2.62312-1.694A9.0177,9.0177,0,0,0,13.19058,4.14283ZM19.50945,18.6236h0a.93171.93171,0,0,0-.36642-.25406.26589.26589,0,0,0-.27613.06613l-.06943.06929A7.90606,7.90606,0,0,1,7.60639,18.505a7.57284,7.57284,0,0,1-1.696-2.51537,8.58715,8.58715,0,0,1-.5147-1.77754l-.00871-.04864c-.04939-.25873-.28755-.27684-.62981-.22448-.14234.02178-.5755.088-.53426.39969l.001.00712a9.08807,9.08807,0,0,0,15.406,4.99094c.00193-.00192.04753-.04718.0725-.07436C19.79425,19.16234,19.87422,18.98728,19.50945,18.6236Z"}))},{name:"amazon",attributes:{service:"amazon"},title:"Amazon",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M13.582,8.182C11.934,8.367,9.78,8.49,8.238,9.166c-1.781,0.769-3.03,2.337-3.03,4.644 c0,2.953,1.86,4.429,4.253,4.429c2.02,0,3.125-0.477,4.685-2.065c0.516,0.747,0.685,1.109,1.629,1.894 c0.212,0.114,0.483,0.103,0.672-0.066l0.006,0.006c0.567-0.505,1.599-1.401,2.18-1.888c0.231-0.188,0.19-0.496,0.009-0.754 c-0.52-0.718-1.072-1.303-1.072-2.634V8.305c0-1.876,0.133-3.599-1.249-4.891C15.23,2.369,13.422,2,12.04,2 C9.336,2,6.318,3.01,5.686,6.351C5.618,6.706,5.877,6.893,6.109,6.945l2.754,0.298C9.121,7.23,9.308,6.977,9.357,6.72 c0.236-1.151,1.2-1.706,2.284-1.706c0.584,0,1.249,0.215,1.595,0.738c0.398,0.584,0.346,1.384,0.346,2.061V8.182z M13.049,14.088 c-0.451,0.8-1.169,1.291-1.967,1.291c-1.09,0-1.728-0.83-1.728-2.061c0-2.42,2.171-2.86,4.227-2.86v0.615 C13.582,12.181,13.608,13.104,13.049,14.088z M20.683,19.339C18.329,21.076,14.917,22,11.979,22c-4.118,0-7.826-1.522-10.632-4.057 c-0.22-0.199-0.024-0.471,0.241-0.317c3.027,1.762,6.771,2.823,10.639,2.823c2.608,0,5.476-0.541,8.115-1.66 C20.739,18.62,21.072,19.051,20.683,19.339z M21.336,21.043c-0.194,0.163-0.379,0.076-0.293-0.139 c0.284-0.71,0.92-2.298,0.619-2.684c-0.301-0.386-1.99-0.183-2.749-0.092c-0.23,0.027-0.266-0.173-0.059-0.319 c1.348-0.946,3.555-0.673,3.811-0.356C22.925,17.773,22.599,19.986,21.336,21.043z"}))},{name:"bandcamp",attributes:{service:"bandcamp"},title:"Bandcamp",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"}))},{name:"behance",attributes:{service:"behance"},title:"Behance",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M7.799,5.698c0.589,0,1.12,0.051,1.606,0.156c0.482,0.102,0.894,0.273,1.241,0.507c0.344,0.235,0.612,0.546,0.804,0.938 c0.188,0.387,0.281,0.871,0.281,1.443c0,0.619-0.141,1.137-0.421,1.551c-0.284,0.413-0.7,0.751-1.255,1.014 c0.756,0.218,1.317,0.601,1.689,1.146c0.374,0.549,0.557,1.205,0.557,1.975c0,0.623-0.12,1.161-0.359,1.612 c-0.241,0.457-0.569,0.828-0.973,1.114c-0.408,0.288-0.876,0.5-1.399,0.637C9.052,17.931,8.514,18,7.963,18H2V5.698H7.799 M7.449,10.668c0.481,0,0.878-0.114,1.192-0.345c0.311-0.228,0.463-0.603,0.463-1.119c0-0.286-0.051-0.523-0.152-0.707 C8.848,8.315,8.711,8.171,8.536,8.07C8.362,7.966,8.166,7.894,7.94,7.854c-0.224-0.044-0.457-0.06-0.697-0.06H4.709v2.874H7.449z M7.6,15.905c0.267,0,0.521-0.024,0.759-0.077c0.243-0.053,0.457-0.137,0.637-0.261c0.182-0.12,0.332-0.283,0.441-0.491 C9.547,14.87,9.6,14.602,9.6,14.278c0-0.633-0.18-1.084-0.533-1.357c-0.356-0.27-0.83-0.404-1.413-0.404H4.709v3.388L7.6,15.905z M16.162,15.864c0.367,0.358,0.897,0.538,1.583,0.538c0.493,0,0.92-0.125,1.277-0.374c0.354-0.248,0.571-0.514,0.654-0.79h2.155 c-0.347,1.072-0.872,1.838-1.589,2.299C19.534,18,18.67,18.23,17.662,18.23c-0.701,0-1.332-0.113-1.899-0.337 c-0.567-0.227-1.041-0.544-1.439-0.958c-0.389-0.415-0.689-0.907-0.904-1.484c-0.213-0.574-0.32-1.21-0.32-1.899 c0-0.666,0.11-1.288,0.329-1.863c0.222-0.577,0.529-1.075,0.933-1.492c0.406-0.42,0.885-0.751,1.444-0.994 c0.558-0.241,1.175-0.363,1.857-0.363c0.754,0,1.414,0.145,1.98,0.44c0.563,0.291,1.026,0.686,1.389,1.181 c0.363,0.493,0.622,1.057,0.783,1.69c0.16,0.632,0.217,1.292,0.171,1.983h-6.428C15.557,14.84,15.795,15.506,16.162,15.864 M18.973,11.184c-0.291-0.321-0.783-0.496-1.384-0.496c-0.39,0-0.714,0.066-0.973,0.2c-0.254,0.132-0.461,0.297-0.621,0.491 c-0.157,0.197-0.265,0.405-0.328,0.628c-0.063,0.217-0.101,0.413-0.111,0.587h3.98C19.478,11.969,19.265,11.509,18.973,11.184z M15.057,7.738h4.985V6.524h-4.985L15.057,7.738z"}))},{name:"chain",attributes:{service:"chain"},title:"Link",icon:yd},{name:"codepen",attributes:{service:"codepen"},title:"CodePen",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M22.016,8.84c-0.002-0.013-0.005-0.025-0.007-0.037c-0.005-0.025-0.008-0.048-0.015-0.072 c-0.003-0.015-0.01-0.028-0.013-0.042c-0.008-0.02-0.015-0.04-0.023-0.062c-0.007-0.015-0.013-0.028-0.02-0.042 c-0.008-0.02-0.018-0.037-0.03-0.057c-0.007-0.013-0.017-0.027-0.025-0.038c-0.012-0.018-0.023-0.035-0.035-0.052 c-0.01-0.013-0.02-0.025-0.03-0.037c-0.015-0.017-0.028-0.032-0.043-0.045c-0.01-0.012-0.022-0.023-0.035-0.035 c-0.015-0.015-0.032-0.028-0.048-0.04c-0.012-0.01-0.025-0.02-0.037-0.03c-0.005-0.003-0.01-0.008-0.015-0.012l-9.161-6.096 c-0.289-0.192-0.666-0.192-0.955,0L2.359,8.237C2.354,8.24,2.349,8.245,2.344,8.249L2.306,8.277 c-0.017,0.013-0.033,0.027-0.048,0.04C2.246,8.331,2.234,8.342,2.222,8.352c-0.015,0.015-0.028,0.03-0.042,0.047 c-0.012,0.013-0.022,0.023-0.03,0.037C2.139,8.453,2.125,8.471,2.115,8.488C2.107,8.501,2.099,8.514,2.09,8.526 C2.079,8.548,2.069,8.565,2.06,8.585C2.054,8.6,2.047,8.613,2.04,8.626C2.032,8.648,2.025,8.67,2.019,8.69 c-0.005,0.013-0.01,0.027-0.013,0.042C1.999,8.755,1.995,8.778,1.99,8.803C1.989,8.817,1.985,8.828,1.984,8.84 C1.978,8.879,1.975,8.915,1.975,8.954v6.093c0,0.037,0.003,0.075,0.008,0.112c0.002,0.012,0.005,0.025,0.007,0.038 c0.005,0.023,0.008,0.047,0.015,0.072c0.003,0.015,0.008,0.028,0.013,0.04c0.007,0.022,0.013,0.042,0.022,0.063 c0.007,0.015,0.013,0.028,0.02,0.04c0.008,0.02,0.018,0.038,0.03,0.058c0.007,0.013,0.015,0.027,0.025,0.038 c0.012,0.018,0.023,0.035,0.035,0.052c0.01,0.013,0.02,0.025,0.03,0.037c0.013,0.015,0.028,0.032,0.042,0.045 c0.012,0.012,0.023,0.023,0.035,0.035c0.015,0.013,0.032,0.028,0.048,0.04l0.038,0.03c0.005,0.003,0.01,0.007,0.013,0.01 l9.163,6.095C11.668,21.953,11.833,22,12,22c0.167,0,0.332-0.047,0.478-0.144l9.163-6.095l0.015-0.01 c0.013-0.01,0.027-0.02,0.037-0.03c0.018-0.013,0.035-0.028,0.048-0.04c0.013-0.012,0.025-0.023,0.035-0.035 c0.017-0.015,0.03-0.032,0.043-0.045c0.01-0.013,0.02-0.025,0.03-0.037c0.013-0.018,0.025-0.035,0.035-0.052 c0.008-0.013,0.018-0.027,0.025-0.038c0.012-0.02,0.022-0.038,0.03-0.058c0.007-0.013,0.013-0.027,0.02-0.04 c0.008-0.022,0.015-0.042,0.023-0.063c0.003-0.013,0.01-0.027,0.013-0.04c0.007-0.025,0.01-0.048,0.015-0.072 c0.002-0.013,0.005-0.027,0.007-0.037c0.003-0.042,0.007-0.079,0.007-0.117V8.954C22.025,8.915,22.022,8.879,22.016,8.84z M12.862,4.464l6.751,4.49l-3.016,2.013l-3.735-2.492V4.464z M11.138,4.464v4.009l-3.735,2.494L4.389,8.954L11.138,4.464z M3.699,10.562L5.853,12l-2.155,1.438V10.562z M11.138,19.536l-6.749-4.491l3.015-2.011l3.735,2.492V19.536z M12,14.035L8.953,12 L12,9.966L15.047,12L12,14.035z M12.862,19.536v-4.009l3.735-2.492l3.016,2.011L12.862,19.536z M20.303,13.438L18.147,12 l2.156-1.438L20.303,13.438z"}))},{name:"deviantart",attributes:{service:"deviantart"},title:"DeviantArt",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M 18.19 5.636 18.19 2 18.188 2 14.553 2 14.19 2.366 12.474 5.636 11.935 6 5.81 6 5.81 10.994 9.177 10.994 9.477 11.357 5.81 18.363 5.81 22 5.811 22 9.447 22 9.81 21.634 11.526 18.364 12.065 18 18.19 18 18.19 13.006 14.823 13.006 14.523 12.641 18.19 5.636z"}))},{name:"dribbble",attributes:{service:"dribbble"},title:"Dribbble",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M12,22C6.486,22,2,17.514,2,12S6.486,2,12,2c5.514,0,10,4.486,10,10S17.514,22,12,22z M20.434,13.369 c-0.292-0.092-2.644-0.794-5.32-0.365c1.117,3.07,1.572,5.57,1.659,6.09C18.689,17.798,20.053,15.745,20.434,13.369z M15.336,19.876c-0.127-0.749-0.623-3.361-1.822-6.477c-0.019,0.006-0.038,0.013-0.056,0.019c-4.818,1.679-6.547,5.02-6.701,5.334 c1.448,1.129,3.268,1.803,5.243,1.803C13.183,20.555,14.311,20.313,15.336,19.876z M5.654,17.724 c0.193-0.331,2.538-4.213,6.943-5.637c0.111-0.036,0.224-0.07,0.337-0.102c-0.214-0.485-0.448-0.971-0.692-1.45 c-4.266,1.277-8.405,1.223-8.778,1.216c-0.003,0.087-0.004,0.174-0.004,0.261C3.458,14.207,4.29,16.21,5.654,17.724z M3.639,10.264 c0.382,0.005,3.901,0.02,7.897-1.041c-1.415-2.516-2.942-4.631-3.167-4.94C5.979,5.41,4.193,7.613,3.639,10.264z M9.998,3.709 c0.236,0.316,1.787,2.429,3.187,5c3.037-1.138,4.323-2.867,4.477-3.085C16.154,4.286,14.17,3.471,12,3.471 C11.311,3.471,10.641,3.554,9.998,3.709z M18.612,6.612C18.432,6.855,17,8.69,13.842,9.979c0.199,0.407,0.389,0.821,0.567,1.237 c0.063,0.148,0.124,0.295,0.184,0.441c2.842-0.357,5.666,0.215,5.948,0.275C20.522,9.916,19.801,8.065,18.612,6.612z"}))},{name:"dropbox",attributes:{service:"dropbox"},title:"Dropbox",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M12,6.134L6.069,9.797L2,6.54l5.883-3.843L12,6.134z M2,13.054l5.883,3.843L12,13.459L6.069,9.797L2,13.054z M12,13.459 l4.116,3.439L22,13.054l-4.069-3.257L12,13.459z M22,6.54l-5.884-3.843L12,6.134l5.931,3.663L22,6.54z M12.011,14.2l-4.129,3.426 l-1.767-1.153v1.291l5.896,3.539l5.897-3.539v-1.291l-1.769,1.153L12.011,14.2z"}))},{name:"etsy",attributes:{service:"etsy"},title:"Etsy",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M9.16033,4.038c0-.27174.02717-.43478.48913-.43478h6.22283c1.087,0,1.68478.92391,2.11957,2.663l.35326,1.38587h1.05978C19.59511,3.712,19.75815,2,19.75815,2s-2.663.29891-4.23913.29891h-7.962L3.29076,2.163v1.1413L4.731,3.57609c1.00543.19022,1.25.40761,1.33152,1.33152,0,0,.08152,2.71739.08152,7.20109s-.08152,7.17391-.08152,7.17391c0,.81522-.32609,1.11413-1.33152,1.30435l-1.44022.27174V22l4.2663-.13587h7.11957c1.60326,0,5.32609.13587,5.32609.13587.08152-.97826.625-5.40761.70652-5.89674H19.7038L18.644,18.52174c-.84239,1.90217-2.06522,2.038-3.42391,2.038H11.1712c-1.3587,0-2.01087-.54348-2.01087-1.712V12.65217s3.0163,0,3.99457.08152c.76087.05435,1.22283.27174,1.46739,1.33152l.32609,1.413h1.16848l-.08152-3.55978.163-3.587H15.02989l-.38043,1.57609c-.24457,1.03261-.40761,1.22283-1.46739,1.33152-1.38587.13587-4.02174.1087-4.02174.1087Z"}))},{name:"facebook",attributes:{service:"facebook"},title:"Facebook",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10z"}))},{name:"feed",attributes:{service:"feed"},title:"RSS Feed",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M2,8.667V12c5.515,0,10,4.485,10,10h3.333C15.333,14.637,9.363,8.667,2,8.667z M2,2v3.333 c9.19,0,16.667,7.477,16.667,16.667H22C22,10.955,13.045,2,2,2z M4.5,17C3.118,17,2,18.12,2,19.5S3.118,22,4.5,22S7,20.88,7,19.5 S5.882,17,4.5,17z"}))},{name:"flickr",attributes:{service:"flickr"},title:"Flickr",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M6.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5S9.25,7,6.5,7z M17.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5 S20.25,7,17.5,7z"}))},{name:"foursquare",attributes:{service:"foursquare"},title:"Foursquare",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M17.573,2c0,0-9.197,0-10.668,0S5,3.107,5,3.805s0,16.948,0,16.948c0,0.785,0.422,1.077,0.66,1.172 c0.238,0.097,0.892,0.177,1.285-0.275c0,0,5.035-5.843,5.122-5.93c0.132-0.132,0.132-0.132,0.262-0.132h3.26 c1.368,0,1.588-0.977,1.732-1.552c0.078-0.318,0.692-3.428,1.225-6.122l0.675-3.368C19.56,2.893,19.14,2,17.573,2z M16.495,7.22 c-0.053,0.252-0.372,0.518-0.665,0.518c-0.293,0-4.157,0-4.157,0c-0.467,0-0.802,0.318-0.802,0.787v0.508 c0,0.467,0.337,0.798,0.805,0.798c0,0,3.197,0,3.528,0s0.655,0.362,0.583,0.715c-0.072,0.353-0.407,2.102-0.448,2.295 c-0.04,0.193-0.262,0.523-0.655,0.523c-0.33,0-2.88,0-2.88,0c-0.523,0-0.683,0.068-1.033,0.503 c-0.35,0.437-3.505,4.223-3.505,4.223c-0.032,0.035-0.063,0.027-0.063-0.015V4.852c0-0.298,0.26-0.648,0.648-0.648 c0,0,8.228,0,8.562,0c0.315,0,0.61,0.297,0.528,0.683L16.495,7.22z"}))},{name:"goodreads",attributes:{service:"goodreads"},title:"Goodreads",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M17.3,17.5c-0.2,0.8-0.5,1.4-1,1.9c-0.4,0.5-1,0.9-1.7,1.2C13.9,20.9,13.1,21,12,21c-0.6,0-1.3-0.1-1.9-0.2 c-0.6-0.1-1.1-0.4-1.6-0.7c-0.5-0.3-0.9-0.7-1.2-1.2c-0.3-0.5-0.5-1.1-0.5-1.7h1.5c0.1,0.5,0.2,0.9,0.5,1.2 c0.2,0.3,0.5,0.6,0.9,0.8c0.3,0.2,0.7,0.3,1.1,0.4c0.4,0.1,0.8,0.1,1.2,0.1c1.4,0,2.5-0.4,3.1-1.2c0.6-0.8,1-2,1-3.5v-1.7h0 c-0.4,0.8-0.9,1.4-1.6,1.9c-0.7,0.5-1.5,0.7-2.4,0.7c-1,0-1.9-0.2-2.6-0.5C8.7,15,8.1,14.5,7.7,14c-0.5-0.6-0.8-1.3-1-2.1 c-0.2-0.8-0.3-1.6-0.3-2.5c0-0.9,0.1-1.7,0.4-2.5c0.3-0.8,0.6-1.5,1.1-2c0.5-0.6,1.1-1,1.8-1.4C10.3,3.2,11.1,3,12,3 c0.5,0,0.9,0.1,1.3,0.2c0.4,0.1,0.8,0.3,1.1,0.5c0.3,0.2,0.6,0.5,0.9,0.8c0.3,0.3,0.5,0.6,0.6,1h0V3.4h1.5V15 C17.6,15.9,17.5,16.7,17.3,17.5z M13.8,14.1c0.5-0.3,0.9-0.7,1.3-1.1c0.3-0.5,0.6-1,0.8-1.6c0.2-0.6,0.3-1.2,0.3-1.9 c0-0.6-0.1-1.2-0.2-1.9c-0.1-0.6-0.4-1.2-0.7-1.7c-0.3-0.5-0.7-0.9-1.3-1.2c-0.5-0.3-1.1-0.5-1.9-0.5s-1.4,0.2-1.9,0.5 c-0.5,0.3-1,0.7-1.3,1.2C8.5,6.4,8.3,7,8.1,7.6C8,8.2,7.9,8.9,7.9,9.5c0,0.6,0.1,1.3,0.2,1.9C8.3,12,8.6,12.5,8.9,13 c0.3,0.5,0.8,0.8,1.3,1.1c0.5,0.3,1.1,0.4,1.9,0.4C12.7,14.5,13.3,14.4,13.8,14.1z"}))},{name:"google",attributes:{service:"google"},title:"Google",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M12.02,10.18v3.72v0.01h5.51c-0.26,1.57-1.67,4.22-5.5,4.22c-3.31,0-6.01-2.75-6.01-6.12s2.7-6.12,6.01-6.12 c1.87,0,3.13,0.8,3.85,1.48l2.84-2.76C16.99,2.99,14.73,2,12.03,2c-5.52,0-10,4.48-10,10s4.48,10,10,10c5.77,0,9.6-4.06,9.6-9.77 c0-0.83-0.11-1.42-0.25-2.05H12.02z"}))},{name:"github",attributes:{service:"github"},title:"GitHub",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,4.419,2.865,8.166,6.839,9.489c0.5,0.09,0.682-0.218,0.682-0.484 c0-0.236-0.009-0.866-0.014-1.699c-2.782,0.602-3.369-1.34-3.369-1.34c-0.455-1.157-1.11-1.465-1.11-1.465 c-0.909-0.62,0.069-0.608,0.069-0.608c1.004,0.071,1.532,1.03,1.532,1.03c0.891,1.529,2.341,1.089,2.91,0.833 c0.091-0.647,0.349-1.086,0.635-1.337c-2.22-0.251-4.555-1.111-4.555-4.943c0-1.091,0.39-1.984,1.03-2.682 C6.546,8.54,6.202,7.524,6.746,6.148c0,0,0.84-0.269,2.75,1.025C10.295,6.95,11.15,6.84,12,6.836 c0.85,0.004,1.705,0.114,2.504,0.336c1.909-1.294,2.748-1.025,2.748-1.025c0.546,1.376,0.202,2.394,0.1,2.646 c0.64,0.699,1.026,1.591,1.026,2.682c0,3.841-2.337,4.687-4.565,4.935c0.359,0.307,0.679,0.917,0.679,1.852 c0,1.335-0.012,2.415-0.012,2.741c0,0.269,0.18,0.579,0.688,0.481C19.138,20.161,22,16.416,22,12C22,6.477,17.523,2,12,2z"}))},{name:"instagram",attributes:{service:"instagram"},title:"Instagram",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M12,4.622c2.403,0,2.688,0.009,3.637,0.052c0.877,0.04,1.354,0.187,1.671,0.31c0.42,0.163,0.72,0.358,1.035,0.673 c0.315,0.315,0.51,0.615,0.673,1.035c0.123,0.317,0.27,0.794,0.31,1.671c0.043,0.949,0.052,1.234,0.052,3.637 s-0.009,2.688-0.052,3.637c-0.04,0.877-0.187,1.354-0.31,1.671c-0.163,0.42-0.358,0.72-0.673,1.035 c-0.315,0.315-0.615,0.51-1.035,0.673c-0.317,0.123-0.794,0.27-1.671,0.31c-0.949,0.043-1.233,0.052-3.637,0.052 s-2.688-0.009-3.637-0.052c-0.877-0.04-1.354-0.187-1.671-0.31c-0.42-0.163-0.72-0.358-1.035-0.673 c-0.315-0.315-0.51-0.615-0.673-1.035c-0.123-0.317-0.27-0.794-0.31-1.671C4.631,14.688,4.622,14.403,4.622,12 s0.009-2.688,0.052-3.637c0.04-0.877,0.187-1.354,0.31-1.671c0.163-0.42,0.358-0.72,0.673-1.035 c0.315-0.315,0.615-0.51,1.035-0.673c0.317-0.123,0.794-0.27,1.671-0.31C9.312,4.631,9.597,4.622,12,4.622 M12,3 C9.556,3,9.249,3.01,8.289,3.054C7.331,3.098,6.677,3.25,6.105,3.472C5.513,3.702,5.011,4.01,4.511,4.511 c-0.5,0.5-0.808,1.002-1.038,1.594C3.25,6.677,3.098,7.331,3.054,8.289C3.01,9.249,3,9.556,3,12c0,2.444,0.01,2.751,0.054,3.711 c0.044,0.958,0.196,1.612,0.418,2.185c0.23,0.592,0.538,1.094,1.038,1.594c0.5,0.5,1.002,0.808,1.594,1.038 c0.572,0.222,1.227,0.375,2.185,0.418C9.249,20.99,9.556,21,12,21s2.751-0.01,3.711-0.054c0.958-0.044,1.612-0.196,2.185-0.418 c0.592-0.23,1.094-0.538,1.594-1.038c0.5-0.5,0.808-1.002,1.038-1.594c0.222-0.572,0.375-1.227,0.418-2.185 C20.99,14.751,21,14.444,21,12s-0.01-2.751-0.054-3.711c-0.044-0.958-0.196-1.612-0.418-2.185c-0.23-0.592-0.538-1.094-1.038-1.594 c-0.5-0.5-1.002-0.808-1.594-1.038c-0.572-0.222-1.227-0.375-2.185-0.418C14.751,3.01,14.444,3,12,3L12,3z M12,7.378 c-2.552,0-4.622,2.069-4.622,4.622S9.448,16.622,12,16.622s4.622-2.069,4.622-4.622S14.552,7.378,12,7.378z M12,15 c-1.657,0-3-1.343-3-3s1.343-3,3-3s3,1.343,3,3S13.657,15,12,15z M16.804,6.116c-0.596,0-1.08,0.484-1.08,1.08 s0.484,1.08,1.08,1.08c0.596,0,1.08-0.484,1.08-1.08S17.401,6.116,16.804,6.116z"}))},{name:"lastfm",attributes:{service:"lastfm"},title:"Last.fm",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M 12.0002 1.5 C 6.2006 1.5 1.5 6.2011 1.5 11.9998 C 1.5 17.799 6.2006 22.5 12.0002 22.5 C 17.799 22.5 22.5 17.799 22.5 11.9998 C 22.5 6.2011 17.799 1.5 12.0002 1.5 Z M 16.1974 16.2204 C 14.8164 16.2152 13.9346 15.587 13.3345 14.1859 L 13.1816 13.8451 L 11.8541 10.8101 C 11.4271 9.7688 10.3526 9.0712 9.1801 9.0712 C 7.5695 9.0712 6.2593 10.3851 6.2593 12.001 C 6.2593 13.6165 7.5695 14.9303 9.1801 14.9303 C 10.272 14.9303 11.2651 14.3275 11.772 13.3567 C 11.7893 13.3235 11.8239 13.302 11.863 13.3038 C 11.9007 13.3054 11.9353 13.3288 11.9504 13.3632 L 12.4865 14.6046 C 12.5016 14.639 12.4956 14.6778 12.4723 14.7069 C 11.6605 15.6995 10.4602 16.2683 9.1801 16.2683 C 6.8331 16.2683 4.9234 14.3536 4.9234 12.001 C 4.9234 9.6468 6.833 7.732 9.1801 7.732 C 10.9572 7.732 12.3909 8.6907 13.1138 10.3636 C 13.1206 10.3802 13.8412 12.0708 14.4744 13.5191 C 14.8486 14.374 15.1462 14.896 16.1288 14.9292 C 17.0663 14.9613 17.7538 14.4122 17.7538 13.6485 C 17.7538 12.9691 17.3321 12.8004 16.3803 12.4822 C 14.7365 11.9398 13.845 11.3861 13.845 10.0182 C 13.845 8.6809 14.7667 7.8162 16.192 7.8162 C 17.1288 7.8162 17.8155 8.2287 18.2921 9.0768 C 18.305 9.1006 18.3079 9.1281 18.3004 9.1542 C 18.2929 9.1803 18.2748 9.2021 18.2507 9.2138 L 17.3614 9.669 C 17.3178 9.692 17.2643 9.6781 17.2356 9.6385 C 16.9329 9.2135 16.5956 9.0251 16.1423 9.0251 C 15.5512 9.0251 15.122 9.429 15.122 9.9865 C 15.122 10.6738 15.6529 10.8414 16.5339 11.1192 C 16.6491 11.1558 16.7696 11.194 16.8939 11.2343 C 18.2763 11.6865 19.0768 12.2311 19.0768 13.6836 C 19.0769 15.1297 17.8389 16.2204 16.1974 16.2204 Z"}))},{name:"linkedin",attributes:{service:"linkedin"},title:"LinkedIn",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"}))},{name:"mail",attributes:{service:"mail"},title:"Mail",keywords:["email","e-mail"],icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M20,4H4C2.895,4,2,4.895,2,6v12c0,1.105,0.895,2,2,2h16c1.105,0,2-0.895,2-2V6C22,4.895,21.105,4,20,4z M20,8.236l-8,4.882 L4,8.236V6h16V8.236z"}))},{name:"mastodon",attributes:{service:"mastodon"},title:"Mastodon",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M23.193 7.879c0-5.206-3.411-6.732-3.411-6.732C18.062.357 15.108.025 12.041 0h-.076c-3.068.025-6.02.357-7.74 1.147 0 0-3.411 1.526-3.411 6.732 0 1.192-.023 2.618.015 4.129.124 5.092.934 10.109 5.641 11.355 2.17.574 4.034.695 5.535.612 2.722-.15 4.25-.972 4.25-.972l-.09-1.975s-1.945.613-4.129.539c-2.165-.074-4.449-.233-4.799-2.891a5.499 5.499 0 0 1-.048-.745s2.125.52 4.817.643c1.646.075 3.19-.097 4.758-.283 3.007-.359 5.625-2.212 5.954-3.905.517-2.665.475-6.507.475-6.507zm-4.024 6.709h-2.497V8.469c0-1.29-.543-1.944-1.628-1.944-1.2 0-1.802.776-1.802 2.312v3.349h-2.483v-3.35c0-1.536-.602-2.312-1.802-2.312-1.085 0-1.628.655-1.628 1.944v6.119H4.832V8.284c0-1.289.328-2.313.987-3.07.68-.758 1.569-1.146 2.674-1.146 1.278 0 2.246.491 2.886 1.474L12 6.585l.622-1.043c.64-.983 1.608-1.474 2.886-1.474 1.104 0 1.994.388 2.674 1.146.658.757.986 1.781.986 3.07v6.304z"}))},{name:"meetup",attributes:{service:"meetup"},title:"Meetup",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M19.24775,14.722a3.57032,3.57032,0,0,1-2.94457,3.52073,3.61886,3.61886,0,0,1-.64652.05634c-.07314-.0008-.10187.02846-.12507.09547A2.38881,2.38881,0,0,1,13.49453,20.094a2.33092,2.33092,0,0,1-1.827-.50716.13635.13635,0,0,0-.19878-.00408,3.191,3.191,0,0,1-2.104.60248,3.26309,3.26309,0,0,1-3.00324-2.71993,2.19076,2.19076,0,0,1-.03512-.30865c-.00156-.08579-.03413-.1189-.11608-.13493a2.86421,2.86421,0,0,1-1.23189-.56111,2.945,2.945,0,0,1-1.166-2.05749,2.97484,2.97484,0,0,1,.87524-2.50774.112.112,0,0,0,.02091-.16107,2.7213,2.7213,0,0,1-.36648-1.48A2.81256,2.81256,0,0,1,6.57673,7.58838a.35764.35764,0,0,0,.28869-.22819,4.2208,4.2208,0,0,1,6.02892-1.90111.25161.25161,0,0,0,.22023.0243,3.65608,3.65608,0,0,1,3.76031.90678A3.57244,3.57244,0,0,1,17.95918,8.626a2.97339,2.97339,0,0,1,.01829.57356.10637.10637,0,0,0,.0853.12792,1.97669,1.97669,0,0,1,1.27939,1.33733,2.00266,2.00266,0,0,1-.57112,2.12652c-.05284.05166-.04168.08328-.01173.13489A3.51189,3.51189,0,0,1,19.24775,14.722Zm-6.35959-.27836a1.6984,1.6984,0,0,0,1.14556,1.61113,3.82039,3.82039,0,0,0,1.036.17935,1.46888,1.46888,0,0,0,.73509-.12255.44082.44082,0,0,0,.26057-.44274.45312.45312,0,0,0-.29211-.43375.97191.97191,0,0,0-.20678-.063c-.21326-.03806-.42754-.0701-.63973-.11215a.54787.54787,0,0,1-.50172-.60926,2.75864,2.75864,0,0,1,.1773-.901c.1763-.535.414-1.045.64183-1.55913A12.686,12.686,0,0,0,15.85,10.47863a1.58461,1.58461,0,0,0,.04861-.87208,1.04531,1.04531,0,0,0-.85432-.83981,1.60658,1.60658,0,0,0-1.23654.16594.27593.27593,0,0,1-.36286-.03413c-.085-.0747-.16594-.15379-.24918-.23055a.98682.98682,0,0,0-1.33577-.04933,6.1468,6.1468,0,0,1-.4989.41615.47762.47762,0,0,1-.51535.03566c-.17448-.09307-.35512-.175-.53531-.25665a1.74949,1.74949,0,0,0-.56476-.2016,1.69943,1.69943,0,0,0-1.61654.91787,8.05815,8.05815,0,0,0-.32952.80126c-.45471,1.2557-.82507,2.53825-1.20838,3.81639a1.24151,1.24151,0,0,0,.51532,1.44389,1.42659,1.42659,0,0,0,1.22008.17166,1.09728,1.09728,0,0,0,.66994-.69764c.44145-1.04111.839-2.09989,1.25981-3.14926.11581-.28876.22792-.57874.35078-.86438a.44548.44548,0,0,1,.69189-.19539.50521.50521,0,0,1,.15044.43836,1.75625,1.75625,0,0,1-.14731.50453c-.27379.69219-.55265,1.38236-.82766,2.074a2.0836,2.0836,0,0,0-.14038.42876.50719.50719,0,0,0,.27082.57722.87236.87236,0,0,0,.66145.02739.99137.99137,0,0,0,.53406-.532q.61571-1.20914,1.228-2.42031.28423-.55863.57585-1.1133a.87189.87189,0,0,1,.29055-.35253.34987.34987,0,0,1,.37634-.01265.30291.30291,0,0,1,.12434.31459.56716.56716,0,0,1-.04655.1915c-.05318.12739-.10286.25669-.16183.38156-.34118.71775-.68754,1.43273-1.02568,2.152A2.00213,2.00213,0,0,0,12.88816,14.44366Zm4.78568,5.28972a.88573.88573,0,0,0-1.77139.00465.8857.8857,0,0,0,1.77139-.00465Zm-14.83838-7.296a.84329.84329,0,1,0,.00827-1.68655.8433.8433,0,0,0-.00827,1.68655Zm10.366-9.43673a.83506.83506,0,1,0-.0091,1.67.83505.83505,0,0,0,.0091-1.67Zm6.85014,5.22a.71651.71651,0,0,0-1.433.0093.71656.71656,0,0,0,1.433-.0093ZM5.37528,6.17908A.63823.63823,0,1,0,6.015,5.54483.62292.62292,0,0,0,5.37528,6.17908Zm6.68214,14.80843a.54949.54949,0,1,0-.55052.541A.54556.54556,0,0,0,12.05742,20.98752Zm8.53235-8.49689a.54777.54777,0,0,0-.54027.54023.53327.53327,0,0,0,.532.52293.51548.51548,0,0,0,.53272-.5237A.53187.53187,0,0,0,20.58977,12.49063ZM7.82846,2.4715a.44927.44927,0,1,0,.44484.44766A.43821.43821,0,0,0,7.82846,2.4715Zm13.775,7.60492a.41186.41186,0,0,0-.40065.39623.40178.40178,0,0,0,.40168.40168A.38994.38994,0,0,0,22,10.48172.39946.39946,0,0,0,21.60349,10.07642ZM5.79193,17.96207a.40469.40469,0,0,0-.397-.39646.399.399,0,0,0-.396.405.39234.39234,0,0,0,.39939.389A.39857.39857,0,0,0,5.79193,17.96207Z"}))},{name:"medium",attributes:{service:"medium"},title:"Medium",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M20.962,7.257l-5.457,8.867l-3.923-6.375l3.126-5.08c0.112-0.182,0.319-0.286,0.527-0.286c0.05,0,0.1,0.008,0.149,0.02 c0.039,0.01,0.078,0.023,0.114,0.041l5.43,2.715l0.006,0.003c0.004,0.002,0.007,0.006,0.011,0.008 C20.971,7.191,20.98,7.227,20.962,7.257z M9.86,8.592v5.783l5.14,2.57L9.86,8.592z M15.772,17.331l4.231,2.115 C20.554,19.721,21,19.529,21,19.016V8.835L15.772,17.331z M8.968,7.178L3.665,4.527C3.569,4.479,3.478,4.456,3.395,4.456 C3.163,4.456,3,4.636,3,4.938v11.45c0,0.306,0.224,0.669,0.498,0.806l4.671,2.335c0.12,0.06,0.234,0.088,0.337,0.088 c0.29,0,0.494-0.225,0.494-0.602V7.231C9,7.208,8.988,7.188,8.968,7.178z"}))},{name:"patreon",attributes:{service:"patreon"},title:"Patreon",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 569 546",version:"1.1"},Object(je.createElement)(ye.Circle,{cx:"363",cy:"205",r:"205"}),Object(je.createElement)(ye.Rect,{width:"100",height:"546",x:"0",y:"0"}))},{name:"pinterest",attributes:{service:"pinterest"},title:"Pinterest",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"}))},{name:"pocket",attributes:{service:"pocket"},title:"Pocket",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M21.927,4.194C21.667,3.48,20.982,3,20.222,3h-0.01h-1.721H3.839C3.092,3,2.411,3.47,2.145,4.17 C2.066,4.378,2.026,4.594,2.026,4.814v6.035l0.069,1.2c0.29,2.73,1.707,5.115,3.899,6.778c0.039,0.03,0.079,0.059,0.119,0.089 l0.025,0.018c1.175,0.859,2.491,1.441,3.91,1.727c0.655,0.132,1.325,0.2,1.991,0.2c0.615,0,1.232-0.057,1.839-0.17 c0.073-0.014,0.145-0.028,0.219-0.044c0.02-0.004,0.042-0.012,0.064-0.023c1.359-0.297,2.621-0.864,3.753-1.691l0.025-0.018 c0.04-0.029,0.08-0.058,0.119-0.089c2.192-1.664,3.609-4.049,3.898-6.778l0.069-1.2V4.814C22.026,4.605,22,4.398,21.927,4.194z M17.692,10.481l-4.704,4.512c-0.266,0.254-0.608,0.382-0.949,0.382c-0.342,0-0.684-0.128-0.949-0.382l-4.705-4.512 C5.838,9.957,5.82,9.089,6.344,8.542c0.524-0.547,1.392-0.565,1.939-0.04l3.756,3.601l3.755-3.601 c0.547-0.524,1.415-0.506,1.939,0.04C18.256,9.089,18.238,9.956,17.692,10.481z"}))},{name:"reddit",attributes:{service:"reddit"},title:"Reddit",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M22,11.816c0-1.256-1.021-2.277-2.277-2.277c-0.593,0-1.122,0.24-1.526,0.614c-1.481-0.965-3.455-1.594-5.647-1.69 l1.171-3.702l3.18,0.748c0.008,1.028,0.846,1.862,1.876,1.862c1.035,0,1.877-0.842,1.877-1.878c0-1.035-0.842-1.877-1.877-1.877 c-0.769,0-1.431,0.466-1.72,1.13l-3.508-0.826c-0.203-0.047-0.399,0.067-0.46,0.261l-1.35,4.268 c-2.316,0.038-4.411,0.67-5.97,1.671C5.368,9.765,4.853,9.539,4.277,9.539C3.021,9.539,2,10.56,2,11.816 c0,0.814,0.433,1.523,1.078,1.925c-0.037,0.221-0.061,0.444-0.061,0.672c0,3.292,4.011,5.97,8.941,5.97s8.941-2.678,8.941-5.97 c0-0.214-0.02-0.424-0.053-0.632C21.533,13.39,22,12.661,22,11.816z M18.776,4.394c0.606,0,1.1,0.493,1.1,1.1s-0.493,1.1-1.1,1.1 s-1.1-0.494-1.1-1.1S18.169,4.394,18.776,4.394z M2.777,11.816c0-0.827,0.672-1.5,1.499-1.5c0.313,0,0.598,0.103,0.838,0.269 c-0.851,0.676-1.477,1.479-1.812,2.36C2.983,12.672,2.777,12.27,2.777,11.816z M11.959,19.606c-4.501,0-8.164-2.329-8.164-5.193 S7.457,9.22,11.959,9.22s8.164,2.329,8.164,5.193S16.46,19.606,11.959,19.606z M20.636,13.001c-0.326-0.89-0.948-1.701-1.797-2.384 c0.248-0.186,0.55-0.301,0.883-0.301c0.827,0,1.5,0.673,1.5,1.5C21.223,12.299,20.992,12.727,20.636,13.001z M8.996,14.704 c-0.76,0-1.397-0.616-1.397-1.376c0-0.76,0.637-1.397,1.397-1.397c0.76,0,1.376,0.637,1.376,1.397 C10.372,14.088,9.756,14.704,8.996,14.704z M16.401,13.328c0,0.76-0.616,1.376-1.376,1.376c-0.76,0-1.399-0.616-1.399-1.376 c0-0.76,0.639-1.397,1.399-1.397C15.785,11.931,16.401,12.568,16.401,13.328z M15.229,16.708c0.152,0.152,0.152,0.398,0,0.55 c-0.674,0.674-1.727,1.002-3.219,1.002c-0.004,0-0.007-0.002-0.011-0.002c-0.004,0-0.007,0.002-0.011,0.002 c-1.492,0-2.544-0.328-3.218-1.002c-0.152-0.152-0.152-0.398,0-0.55c0.152-0.152,0.399-0.151,0.55,0 c0.521,0.521,1.394,0.775,2.669,0.775c0.004,0,0.007,0.002,0.011,0.002c0.004,0,0.007-0.002,0.011-0.002 c1.275,0,2.148-0.253,2.669-0.775C14.831,16.556,15.078,16.556,15.229,16.708z"}))},{name:"skype",attributes:{service:"skype"},title:"Skype",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M10.113,2.699c0.033-0.006,0.067-0.013,0.1-0.02c0.033,0.017,0.066,0.033,0.098,0.051L10.113,2.699z M2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223z M21.275,13.771 c0.007-0.035,0.011-0.071,0.018-0.106c-0.018-0.031-0.033-0.064-0.052-0.095L21.275,13.771z M13.563,21.199 c0.032,0.019,0.065,0.035,0.096,0.053c0.036-0.006,0.071-0.011,0.105-0.017L13.563,21.199z M22,16.386 c0,1.494-0.581,2.898-1.637,3.953c-1.056,1.057-2.459,1.637-3.953,1.637c-0.967,0-1.914-0.251-2.75-0.725 c0.036-0.006,0.071-0.011,0.105-0.017l-0.202-0.035c0.032,0.019,0.065,0.035,0.096,0.053c-0.543,0.096-1.099,0.147-1.654,0.147 c-1.275,0-2.512-0.25-3.676-0.743c-1.125-0.474-2.135-1.156-3.002-2.023c-0.867-0.867-1.548-1.877-2.023-3.002 c-0.493-1.164-0.743-2.401-0.743-3.676c0-0.546,0.049-1.093,0.142-1.628c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103C2.244,9.5,2,8.566,2,7.615c0-1.493,0.582-2.898,1.637-3.953 c1.056-1.056,2.46-1.638,3.953-1.638c0.915,0,1.818,0.228,2.622,0.655c-0.033,0.007-0.067,0.013-0.1,0.02l0.199,0.031 c-0.032-0.018-0.066-0.034-0.098-0.051c0.002,0,0.003-0.001,0.004-0.001c0.586-0.112,1.187-0.169,1.788-0.169 c1.275,0,2.512,0.249,3.676,0.742c1.124,0.476,2.135,1.156,3.002,2.024c0.868,0.867,1.548,1.877,2.024,3.002 c0.493,1.164,0.743,2.401,0.743,3.676c0,0.575-0.054,1.15-0.157,1.712c-0.018-0.031-0.033-0.064-0.052-0.095l0.034,0.201 c0.007-0.035,0.011-0.071,0.018-0.106C21.754,14.494,22,15.432,22,16.386z M16.817,14.138c0-1.331-0.613-2.743-3.033-3.282 l-2.209-0.49c-0.84-0.192-1.807-0.444-1.807-1.237c0-0.794,0.679-1.348,1.903-1.348c2.468,0,2.243,1.696,3.468,1.696 c0.645,0,1.209-0.379,1.209-1.031c0-1.521-2.435-2.663-4.5-2.663c-2.242,0-4.63,0.952-4.63,3.488c0,1.221,0.436,2.521,2.839,3.123 l2.984,0.745c0.903,0.223,1.129,0.731,1.129,1.189c0,0.762-0.758,1.507-2.129,1.507c-2.679,0-2.307-2.062-3.743-2.062 c-0.645,0-1.113,0.444-1.113,1.078c0,1.236,1.501,2.886,4.856,2.886C15.236,17.737,16.817,16.199,16.817,14.138z"}))},{name:"snapchat",attributes:{service:"snapchat"},title:"Snapchat",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M12.065,2a5.526,5.526,0,0,1,3.132.892A5.854,5.854,0,0,1,17.326,5.4a5.821,5.821,0,0,1,.351,2.33q0,.612-.117,2.487a.809.809,0,0,0,.365.091,1.93,1.93,0,0,0,.664-.176,1.93,1.93,0,0,1,.664-.176,1.3,1.3,0,0,1,.729.234.7.7,0,0,1,.351.6.839.839,0,0,1-.41.7,2.732,2.732,0,0,1-.9.41,3.192,3.192,0,0,0-.9.378.728.728,0,0,0-.41.618,1.575,1.575,0,0,0,.156.56,6.9,6.9,0,0,0,1.334,1.953,5.6,5.6,0,0,0,1.881,1.315,5.875,5.875,0,0,0,1.042.3.42.42,0,0,1,.365.456q0,.911-2.852,1.341a1.379,1.379,0,0,0-.143.507,1.8,1.8,0,0,1-.182.605.451.451,0,0,1-.429.241,5.878,5.878,0,0,1-.807-.085,5.917,5.917,0,0,0-.833-.085,4.217,4.217,0,0,0-.807.065,2.42,2.42,0,0,0-.82.293,6.682,6.682,0,0,0-.755.5q-.351.267-.755.527a3.886,3.886,0,0,1-.989.436A4.471,4.471,0,0,1,11.831,22a4.307,4.307,0,0,1-1.256-.176,3.784,3.784,0,0,1-.976-.436q-.4-.26-.749-.527a6.682,6.682,0,0,0-.755-.5,2.422,2.422,0,0,0-.807-.293,4.432,4.432,0,0,0-.82-.065,5.089,5.089,0,0,0-.853.1,5,5,0,0,1-.762.1.474.474,0,0,1-.456-.241,1.819,1.819,0,0,1-.182-.618,1.411,1.411,0,0,0-.143-.521q-2.852-.429-2.852-1.341a.42.42,0,0,1,.365-.456,5.793,5.793,0,0,0,1.042-.3,5.524,5.524,0,0,0,1.881-1.315,6.789,6.789,0,0,0,1.334-1.953A1.575,1.575,0,0,0,6,12.9a.728.728,0,0,0-.41-.618,3.323,3.323,0,0,0-.9-.384,2.912,2.912,0,0,1-.9-.41.814.814,0,0,1-.41-.684.71.71,0,0,1,.338-.593,1.208,1.208,0,0,1,.716-.241,1.976,1.976,0,0,1,.625.169,2.008,2.008,0,0,0,.69.169.919.919,0,0,0,.416-.091q-.117-1.849-.117-2.474A5.861,5.861,0,0,1,6.385,5.4,5.516,5.516,0,0,1,8.625,2.819,7.075,7.075,0,0,1,12.062,2Z"}))},{name:"soundcloud",attributes:{service:"soundcloud"},title:"SoundCloud",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M8.9,16.1L9,14L8.9,9.5c0-0.1,0-0.1-0.1-0.1c0,0-0.1-0.1-0.1-0.1c-0.1,0-0.1,0-0.1,0.1c0,0-0.1,0.1-0.1,0.1L8.3,14l0.1,2.1 c0,0.1,0,0.1,0.1,0.1c0,0,0.1,0.1,0.1,0.1C8.8,16.3,8.9,16.3,8.9,16.1z M11.4,15.9l0.1-1.8L11.4,9c0-0.1,0-0.2-0.1-0.2 c0,0-0.1,0-0.1,0s-0.1,0-0.1,0c-0.1,0-0.1,0.1-0.1,0.2l0,0.1l-0.1,5c0,0,0,0.7,0.1,2v0c0,0.1,0,0.1,0.1,0.1c0.1,0.1,0.1,0.1,0.2,0.1 c0.1,0,0.1,0,0.2-0.1c0.1,0,0.1-0.1,0.1-0.2L11.4,15.9z M2.4,12.9L2.5,14l-0.2,1.1c0,0.1,0,0.1-0.1,0.1c0,0-0.1,0-0.1-0.1L2.1,14 l0.1-1.1C2.2,12.9,2.3,12.9,2.4,12.9C2.3,12.9,2.4,12.9,2.4,12.9z M3.1,12.2L3.3,14l-0.2,1.8c0,0.1,0,0.1-0.1,0.1 c-0.1,0-0.1,0-0.1-0.1L2.8,14L3,12.2C3,12.2,3,12.2,3.1,12.2C3.1,12.2,3.1,12.2,3.1,12.2z M3.9,11.9L4.1,14l-0.2,2.1 c0,0.1,0,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L3.5,14l0.2-2.1c0-0.1,0-0.1,0.1-0.1C3.9,11.8,3.9,11.8,3.9,11.9z M4.7,11.9L4.9,14 l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L4.3,14l0.2-2.2c0-0.1,0-0.1,0.1-0.1C4.7,11.7,4.7,11.8,4.7,11.9z M5.6,12 l0.2,2l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c0,0-0.1,0-0.1,0c0,0,0-0.1,0-0.1L5.1,14l0.2-2c0,0,0-0.1,0-0.1s0.1,0,0.1,0 C5.5,11.9,5.5,11.9,5.6,12L5.6,12z M6.4,10.7L6.6,14l-0.2,2.1c0,0,0,0.1,0,0.1c0,0-0.1,0-0.1,0c-0.1,0-0.1-0.1-0.2-0.2L5.9,14 l0.2-3.3c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0C6.4,10.7,6.4,10.7,6.4,10.7z M7.2,10l0.2,4.1l-0.2,2.1c0,0,0,0.1,0,0.1 c0,0-0.1,0-0.1,0c-0.1,0-0.2-0.1-0.2-0.2l-0.1-2.1L6.8,10c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0S7.2,9.9,7.2,10z M8,9.6L8.2,14 L8,16.1c0,0.1-0.1,0.2-0.2,0.2c-0.1,0-0.2-0.1-0.2-0.2L7.5,14l0.1-4.4c0-0.1,0-0.1,0.1-0.1c0,0,0.1-0.1,0.1-0.1c0.1,0,0.1,0,0.1,0.1 C8,9.6,8,9.6,8,9.6z M11.4,16.1L11.4,16.1L11.4,16.1z M9.7,9.6L9.8,14l-0.1,2.1c0,0.1,0,0.1-0.1,0.2s-0.1,0.1-0.2,0.1 c-0.1,0-0.1,0-0.1-0.1s-0.1-0.1-0.1-0.2L9.2,14l0.1-4.4c0-0.1,0-0.1,0.1-0.2s0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S9.7,9.5,9.7,9.6 L9.7,9.6z M10.6,9.8l0.1,4.3l-0.1,2c0,0.1,0,0.1-0.1,0.2c0,0-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c0,0-0.1-0.1-0.1-0.2L10,14 l0.1-4.3c0-0.1,0-0.1,0.1-0.2c0,0,0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S10.6,9.7,10.6,9.8z M12.4,14l-0.1,2c0,0.1,0,0.1-0.1,0.2 c-0.1,0.1-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2l-0.1-1l-0.1-1l0.1-5.5v0c0-0.1,0-0.2,0.1-0.2 c0.1,0,0.1-0.1,0.2-0.1c0,0,0.1,0,0.1,0c0.1,0,0.1,0.1,0.1,0.2L12.4,14z M22.1,13.9c0,0.7-0.2,1.3-0.7,1.7c-0.5,0.5-1.1,0.7-1.7,0.7 h-6.8c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2V8.2c0-0.1,0.1-0.2,0.2-0.3c0.5-0.2,1-0.3,1.6-0.3c1.1,0,2.1,0.4,2.9,1.1 c0.8,0.8,1.3,1.7,1.4,2.8c0.3-0.1,0.6-0.2,1-0.2c0.7,0,1.3,0.2,1.7,0.7C21.8,12.6,22.1,13.2,22.1,13.9L22.1,13.9z"}))},{name:"spotify",attributes:{service:"spotify"},title:"Spotify",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,5.523,4.477,10,10,10c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2 M16.586,16.424 c-0.18,0.295-0.563,0.387-0.857,0.207c-2.348-1.435-5.304-1.76-8.785-0.964c-0.335,0.077-0.67-0.133-0.746-0.469 c-0.077-0.335,0.132-0.67,0.469-0.746c3.809-0.871,7.077-0.496,9.713,1.115C16.673,15.746,16.766,16.13,16.586,16.424 M17.81,13.7 c-0.226,0.367-0.706,0.482-1.072,0.257c-2.687-1.652-6.785-2.131-9.965-1.166C6.36,12.917,5.925,12.684,5.8,12.273 C5.675,11.86,5.908,11.425,6.32,11.3c3.632-1.102,8.147-0.568,11.234,1.328C17.92,12.854,18.035,13.335,17.81,13.7 M17.915,10.865 c-3.223-1.914-8.54-2.09-11.618-1.156C5.804,9.859,5.281,9.58,5.131,9.086C4.982,8.591,5.26,8.069,5.755,7.919 c3.532-1.072,9.404-0.865,13.115,1.338c0.445,0.264,0.59,0.838,0.327,1.282C18.933,10.983,18.359,11.129,17.915,10.865"}))},{name:"telegram",attributes:{service:"telegram"},title:"Telegram",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 128 128",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M28.9700376,63.3244248 C47.6273373,55.1957357 60.0684594,49.8368063 66.2934036,47.2476366 C84.0668845,39.855031 87.7600616,38.5708563 90.1672227,38.528 C90.6966555,38.5191258 91.8804274,38.6503351 92.6472251,39.2725385 C93.294694,39.7979149 93.4728387,40.5076237 93.5580865,41.0057381 C93.6433345,41.5038525 93.7494885,42.63857 93.6651041,43.5252052 C92.7019529,53.6451182 88.5344133,78.2034783 86.4142057,89.5379542 C85.5170662,94.3339958 83.750571,95.9420841 82.0403991,96.0994568 C78.3237996,96.4414641 75.5015827,93.6432685 71.9018743,91.2836143 C66.2690414,87.5912212 63.0868492,85.2926952 57.6192095,81.6896017 C51.3004058,77.5256038 55.3966232,75.2369981 58.9976911,71.4967761 C59.9401076,70.5179421 76.3155302,55.6232293 76.6324771,54.2720454 C76.6721165,54.1030573 76.7089039,53.4731496 76.3346867,53.1405352 C75.9604695,52.8079208 75.4081573,52.921662 75.0095933,53.0121213 C74.444641,53.1403447 65.4461175,59.0880351 48.0140228,70.8551922 C45.4598218,72.6091037 43.1463059,73.4636682 41.0734751,73.4188859 C38.7883453,73.3695169 34.3926725,72.1268388 31.1249416,71.0646282 C27.1169366,69.7617838 23.931454,69.0729605 24.208838,66.8603276 C24.3533167,65.7078514 25.9403832,64.5292172 28.9700376,63.3244248 Z"}))},{name:"tiktok",attributes:{service:"tiktok"},title:"TikTok",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 32 32",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M16.708 0.027c1.745-0.027 3.48-0.011 5.213-0.027 0.105 2.041 0.839 4.12 2.333 5.563 1.491 1.479 3.6 2.156 5.652 2.385v5.369c-1.923-0.063-3.855-0.463-5.6-1.291-0.76-0.344-1.468-0.787-2.161-1.24-0.009 3.896 0.016 7.787-0.025 11.667-0.104 1.864-0.719 3.719-1.803 5.255-1.744 2.557-4.771 4.224-7.88 4.276-1.907 0.109-3.812-0.411-5.437-1.369-2.693-1.588-4.588-4.495-4.864-7.615-0.032-0.667-0.043-1.333-0.016-1.984 0.24-2.537 1.495-4.964 3.443-6.615 2.208-1.923 5.301-2.839 8.197-2.297 0.027 1.975-0.052 3.948-0.052 5.923-1.323-0.428-2.869-0.308-4.025 0.495-0.844 0.547-1.485 1.385-1.819 2.333-0.276 0.676-0.197 1.427-0.181 2.145 0.317 2.188 2.421 4.027 4.667 3.828 1.489-0.016 2.916-0.88 3.692-2.145 0.251-0.443 0.532-0.896 0.547-1.417 0.131-2.385 0.079-4.76 0.095-7.145 0.011-5.375-0.016-10.735 0.025-16.093z"}))},{name:"tumblr",attributes:{service:"tumblr"},title:"Tumblr",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M17.04 21.28h-3.28c-2.84 0-4.94-1.37-4.94-5.02v-5.67H6.08V7.5c2.93-.73 4.11-3.3 4.3-5.48h3.01v4.93h3.47v3.65H13.4v4.93c0 1.47.73 2.01 1.92 2.01h1.73v3.75z"}))},{name:"twitch",attributes:{service:"twitch"},title:"Twitch",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M16.499,8.089h-1.636v4.91h1.636V8.089z M12,8.089h-1.637v4.91H12V8.089z M4.228,3.178L3,6.451v13.092h4.499V22h2.456 l2.454-2.456h3.681L21,14.636V3.178H4.228z M19.364,13.816l-2.864,2.865H12l-2.453,2.453V16.68H5.863V4.814h13.501V13.816z"}))},{name:"twitter",attributes:{service:"twitter"},title:"Twitter",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M22.23,5.924c-0.736,0.326-1.527,0.547-2.357,0.646c0.847-0.508,1.498-1.312,1.804-2.27 c-0.793,0.47-1.671,0.812-2.606,0.996C18.324,4.498,17.257,4,16.077,4c-2.266,0-4.103,1.837-4.103,4.103 c0,0.322,0.036,0.635,0.106,0.935C8.67,8.867,5.647,7.234,3.623,4.751C3.27,5.357,3.067,6.062,3.067,6.814 c0,1.424,0.724,2.679,1.825,3.415c-0.673-0.021-1.305-0.206-1.859-0.513c0,0.017,0,0.034,0,0.052c0,1.988,1.414,3.647,3.292,4.023 c-0.344,0.094-0.707,0.144-1.081,0.144c-0.264,0-0.521-0.026-0.772-0.074c0.522,1.63,2.038,2.816,3.833,2.85 c-1.404,1.1-3.174,1.756-5.096,1.756c-0.331,0-0.658-0.019-0.979-0.057c1.816,1.164,3.973,1.843,6.29,1.843 c7.547,0,11.675-6.252,11.675-11.675c0-0.178-0.004-0.355-0.012-0.531C20.985,7.47,21.68,6.747,22.23,5.924z"}))},{name:"vimeo",attributes:{service:"vimeo"},title:"Vimeo",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M22.396,7.164c-0.093,2.026-1.507,4.799-4.245,8.32C15.322,19.161,12.928,21,10.97,21c-1.214,0-2.24-1.119-3.079-3.359 c-0.56-2.053-1.119-4.106-1.68-6.159C5.588,9.243,4.921,8.122,4.206,8.122c-0.156,0-0.701,0.328-1.634,0.98L1.594,7.841 c1.027-0.902,2.04-1.805,3.037-2.708C6.001,3.95,7.03,3.327,7.715,3.264c1.619-0.156,2.616,0.951,2.99,3.321 c0.404,2.557,0.685,4.147,0.841,4.769c0.467,2.121,0.981,3.181,1.542,3.181c0.435,0,1.09-0.688,1.963-2.065 c0.871-1.376,1.338-2.422,1.401-3.142c0.125-1.187-0.343-1.782-1.401-1.782c-0.498,0-1.012,0.115-1.541,0.341 c1.023-3.35,2.977-4.977,5.862-4.884C21.511,3.066,22.52,4.453,22.396,7.164z"}))},{name:"vk",attributes:{service:"vk"},title:"VK",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M22,7.1c0.2,0.4-0.4,1.5-1.6,3.1c-0.2,0.2-0.4,0.5-0.7,0.9c-0.5,0.7-0.9,1.1-0.9,1.4c-0.1,0.3-0.1,0.6,0.1,0.8 c0.1,0.1,0.4,0.4,0.8,0.9h0l0,0c1,0.9,1.6,1.7,2,2.3c0,0,0,0.1,0.1,0.1c0,0.1,0,0.1,0.1,0.3c0,0.1,0,0.2,0,0.4 c0,0.1-0.1,0.2-0.3,0.3c-0.1,0.1-0.4,0.1-0.6,0.1l-2.7,0c-0.2,0-0.4,0-0.6-0.1c-0.2-0.1-0.4-0.1-0.5-0.2l-0.2-0.1 c-0.2-0.1-0.5-0.4-0.7-0.7s-0.5-0.6-0.7-0.8c-0.2-0.2-0.4-0.4-0.6-0.6C14.8,15,14.6,15,14.4,15c0,0,0,0-0.1,0c0,0-0.1,0.1-0.2,0.2 c-0.1,0.1-0.2,0.2-0.2,0.3c-0.1,0.1-0.1,0.3-0.2,0.5c-0.1,0.2-0.1,0.5-0.1,0.8c0,0.1,0,0.2,0,0.3c0,0.1-0.1,0.2-0.1,0.2l0,0.1 c-0.1,0.1-0.3,0.2-0.6,0.2h-1.2c-0.5,0-1,0-1.5-0.2c-0.5-0.1-1-0.3-1.4-0.6s-0.7-0.5-1.1-0.7s-0.6-0.4-0.7-0.6l-0.3-0.3 c-0.1-0.1-0.2-0.2-0.3-0.3s-0.4-0.5-0.7-0.9s-0.7-1-1.1-1.6c-0.4-0.6-0.8-1.3-1.3-2.2C2.9,9.4,2.5,8.5,2.1,7.5C2,7.4,2,7.3,2,7.2 c0-0.1,0-0.1,0-0.2l0-0.1c0.1-0.1,0.3-0.2,0.6-0.2l2.9,0c0.1,0,0.2,0,0.2,0.1S5.9,6.9,5.9,7L6,7c0.1,0.1,0.2,0.2,0.3,0.3 C6.4,7.7,6.5,8,6.7,8.4C6.9,8.8,7,9,7.1,9.2l0.2,0.3c0.2,0.4,0.4,0.8,0.6,1.1c0.2,0.3,0.4,0.5,0.5,0.7s0.3,0.3,0.4,0.4 c0.1,0.1,0.3,0.1,0.4,0.1c0.1,0,0.2,0,0.3-0.1c0,0,0,0,0.1-0.1c0,0,0.1-0.1,0.1-0.2c0.1-0.1,0.1-0.3,0.1-0.5c0-0.2,0.1-0.5,0.1-0.8 c0-0.4,0-0.8,0-1.3c0-0.3,0-0.5-0.1-0.8c0-0.2-0.1-0.4-0.1-0.5L9.6,7.6C9.4,7.3,9.1,7.2,8.7,7.1C8.6,7.1,8.6,7,8.7,6.9 C8.9,6.7,9,6.6,9.1,6.5c0.4-0.2,1.2-0.3,2.5-0.3c0.6,0,1,0.1,1.4,0.1c0.1,0,0.3,0.1,0.3,0.1c0.1,0.1,0.2,0.1,0.2,0.3 c0,0.1,0.1,0.2,0.1,0.3s0,0.3,0,0.5c0,0.2,0,0.4,0,0.6c0,0.2,0,0.4,0,0.7c0,0.3,0,0.6,0,0.9c0,0.1,0,0.2,0,0.4c0,0.2,0,0.4,0,0.5 c0,0.1,0,0.3,0,0.4s0.1,0.3,0.1,0.4c0.1,0.1,0.1,0.2,0.2,0.3c0.1,0,0.1,0,0.2,0c0.1,0,0.2,0,0.3-0.1c0.1-0.1,0.2-0.2,0.4-0.4 s0.3-0.4,0.5-0.7c0.2-0.3,0.5-0.7,0.7-1.1c0.4-0.7,0.8-1.5,1.1-2.3c0-0.1,0.1-0.1,0.1-0.2c0-0.1,0.1-0.1,0.1-0.1l0,0l0.1,0 c0,0,0,0,0.1,0s0.2,0,0.2,0l3,0c0.3,0,0.5,0,0.7,0S21.9,7,21.9,7L22,7.1z"}))},{name:"yelp",attributes:{service:"yelp"},title:"Yelp",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M12.271,16.718v1.417q-.011,3.257-.067,3.4a.707.707,0,0,1-.569.446,4.637,4.637,0,0,1-2.024-.424A4.609,4.609,0,0,1,7.8,20.565a.844.844,0,0,1-.19-.4.692.692,0,0,1,.044-.29,3.181,3.181,0,0,1,.379-.524q.335-.412,2.019-2.409.011,0,.669-.781a.757.757,0,0,1,.44-.274.965.965,0,0,1,.552.039.945.945,0,0,1,.418.324.732.732,0,0,1,.139.468Zm-1.662-2.8a.783.783,0,0,1-.58.781l-1.339.435q-3.067.981-3.257.981a.711.711,0,0,1-.6-.4,2.636,2.636,0,0,1-.19-.836,9.134,9.134,0,0,1,.011-1.857,3.559,3.559,0,0,1,.335-1.389.659.659,0,0,1,.625-.357,22.629,22.629,0,0,1,2.253.859q.781.324,1.283.524l.937.379a.771.771,0,0,1,.4.34A.982.982,0,0,1,10.609,13.917Zm9.213,3.313a4.467,4.467,0,0,1-1.021,1.8,4.559,4.559,0,0,1-1.512,1.417.671.671,0,0,1-.7-.078q-.156-.112-2.052-3.2l-.524-.859a.761.761,0,0,1-.128-.513.957.957,0,0,1,.217-.513.774.774,0,0,1,.926-.29q.011.011,1.327.446,2.264.736,2.7.887a2.082,2.082,0,0,1,.524.229.673.673,0,0,1,.245.68Zm-7.5-7.049q.056,1.137-.6,1.361-.647.19-1.272-.792L6.237,4.08a.7.7,0,0,1,.212-.691,5.788,5.788,0,0,1,2.314-1,5.928,5.928,0,0,1,2.5-.352.681.681,0,0,1,.547.5q.034.2.245,3.407T12.327,10.181Zm7.384,1.2a.679.679,0,0,1-.29.658q-.167.112-3.67.959-.747.167-1.015.257l.011-.022a.769.769,0,0,1-.513-.044.914.914,0,0,1-.413-.357.786.786,0,0,1,0-.971q.011-.011.836-1.137,1.394-1.908,1.673-2.275a2.423,2.423,0,0,1,.379-.435A.7.7,0,0,1,17.435,8a4.482,4.482,0,0,1,1.372,1.489,4.81,4.81,0,0,1,.9,1.868v.034Z"}))},{name:"youtube",attributes:{service:"youtube"},title:"YouTube",icon:()=>Object(je.createElement)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(je.createElement)(ye.Path,{d:"M21.8,8.001c0,0-0.195-1.378-0.795-1.985c-0.76-0.797-1.613-0.801-2.004-0.847c-2.799-0.202-6.997-0.202-6.997-0.202 h-0.009c0,0-4.198,0-6.997,0.202C4.608,5.216,3.756,5.22,2.995,6.016C2.395,6.623,2.2,8.001,2.2,8.001S2,9.62,2,11.238v1.517 c0,1.618,0.2,3.237,0.2,3.237s0.195,1.378,0.795,1.985c0.761,0.797,1.76,0.771,2.205,0.855c1.6,0.153,6.8,0.201,6.8,0.201 s4.203-0.006,7.001-0.209c0.391-0.047,1.243-0.051,2.004-0.847c0.6-0.607,0.795-1.985,0.795-1.985s0.2-1.618,0.2-3.237v-1.517 C22,9.62,21.8,8.001,21.8,8.001z M9.935,14.594l-0.001-5.62l5.404,2.82L9.935,14.594z"}))}];fd.forEach(e=>{e.isActive||(e.isActive=(e,t)=>e.service===t.service)});var _d=fd;const kd=e=>{let{url:t,setAttributes:n,setPopover:r,anchorRef:o}=e;return Object(je.createElement)(we.URLPopover,{anchorRef:null==o?void 0:o.current,onClose:()=>r(!1)},Object(je.createElement)("form",{className:"block-editor-url-popover__link-editor",onSubmit:e=>{e.preventDefault(),r(!1)}},Object(je.createElement)("div",{className:"block-editor-url-input"},Object(je.createElement)(we.URLInput,{value:t,onChange:e=>n({url:e}),placeholder:Object(ke.__)("Enter address"),disableSuggestions:!0})),Object(je.createElement)(_e.Button,{icon:jd.a,label:Object(ke.__)("Apply"),type:"submit"})))};var wd=e=>{let{attributes:t,context:n,isSelected:r,setAttributes:o}=e;const{url:a,service:l,label:c}=t,{iconColorValue:i,iconBackgroundColorValue:s}=n,[u,m]=Object(je.useState)(!1),d=tt()("wp-social-link","wp-social-link-"+l,{"wp-social-link__is-incomplete":!a}),b=Object(je.useRef)(),p=(e=>{const t=Object(Me.find)(_d,{name:e});return t?t.icon:yd})(l),g=(e=>{const t=Object(Me.find)(_d,{name:e});return t?t.title:Object(ke.__)("Social Icon")})(l),h=Object(we.useBlockProps)({className:d,style:{color:i,backgroundColor:s}});return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.sprintf)(Object(ke.__)("%s label"),g),initialOpen:!1},Object(je.createElement)(_e.PanelRow,null,Object(je.createElement)(_e.TextControl,{label:Object(ke.__)("Link label"),help:Object(ke.__)("Briefly describe the link to help screen reader users."),value:c,onChange:e=>o({label:e})})))),Object(je.createElement)("li",h,Object(je.createElement)(_e.Button,{ref:b,onClick:()=>m(!0)},Object(je.createElement)(p,null),r&&u&&Object(je.createElement)(kd,{url:a,setAttributes:o,setPopover:m,anchorRef:b}))))};const Ed={apiVersion:2,name:"core/social-link",title:"Social Icon",category:"widgets",parent:["core/social-links"],description:"Display an icon linking to a social media profile or website.",textdomain:"default",attributes:{url:{type:"string"},service:{type:"string"},label:{type:"string"}},usesContext:["openInNewTab","iconColorValue","iconBackgroundColorValue"],supports:{reusable:!1,html:!1},editorStyle:"wp-block-social-link-editor"},{name:Cd}=Ed,xd={icon:Od,edit:wd,variations:_d},Sd=e=>{var t,n;if(e.layout)return e;const{className:r}=e,o=new RegExp("\\bitems-justified-[^ ]*[ ]?\\b","g"),a={...e,className:null==r?void 0:r.replace(o,"").trim()},l=null==r||null===(t=r.match(o))||void 0===t||null===(n=t[0])||void 0===n?void 0:n.trim();return l&&Object.assign(a,{layout:{type:"flex",justifyContent:l.slice("items-justified-".length)}}),a};var Bd=[{attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},size:{type:"string"}},supports:{align:["left","center","right"],anchor:!0,__experimentalExposeControlsToChildren:!0},isEligible:e=>{let{layout:t}=e;return!t},migrate:Sd,save(e){const{attributes:{iconBackgroundColorValue:t,iconColorValue:n,itemsJustification:r,size:o}}=e,a=tt()(o,{"has-icon-color":n,"has-icon-background-color":t,["items-justified-"+r]:r});return Object(je.createElement)("ul",we.useBlockProps.save({className:a}),Object(je.createElement)(we.InnerBlocks.Content,null))}},{attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},size:{type:"string"}},providesContext:{openInNewTab:"openInNewTab"},supports:{align:["left","center","right"],anchor:!0},migrate:Sd,save:e=>{const{attributes:{iconBackgroundColorValue:t,iconColorValue:n,itemsJustification:r,size:o}}=e,a=tt()(o,{"has-icon-color":n,"has-icon-background-color":t,["items-justified-"+r]:r}),l={"--wp--social-links--icon-color":n,"--wp--social-links--icon-background-color":t};return Object(je.createElement)("ul",we.useBlockProps.save({className:a,style:l}),Object(je.createElement)(we.InnerBlocks.Content,null))}}],Td=n("RMJe");const Nd=["core/social-link"],Pd=[{name:Object(ke.__)("Small"),value:"has-small-icon-size"},{name:Object(ke.__)("Normal"),value:"has-normal-icon-size"},{name:Object(ke.__)("Large"),value:"has-large-icon-size"},{name:Object(ke.__)("Huge"),value:"has-huge-icon-size"}];var zd=Object(we.withColors)({iconColor:"icon-color",iconBackgroundColor:"icon-background-color"})((function(e){var t;const{name:n,attributes:r,iconBackgroundColor:o,iconColor:a,isSelected:l,setAttributes:c,setIconBackgroundColor:i,setIconColor:s}=e,{iconBackgroundColorValue:u,iconColorValue:m,openInNewTab:d,size:b,layout:p}=r,g=p||(e=>{const t=Object(Oe.getBlockSupport)(e,"__experimentalLayout");return null==t?void 0:t.default})(n),h=(null===(t=r.className)||void 0===t?void 0:t.indexOf("is-style-logos-only"))>=0;Object(je.useEffect)(()=>{h&&c({iconBackgroundColor:void 0,customIconBackgroundColor:void 0,iconBackgroundColorValue:void 0})},[h,c]);const v=Object(je.createElement)("li",{className:"wp-block-social-links__social-placeholder"},Object(je.createElement)("div",{className:"wp-social-link"}),Object(je.createElement)("div",{className:"wp-block-social-links__social-placeholder-icons"},Object(je.createElement)("div",{className:"wp-social-link wp-social-link-twitter"}),Object(je.createElement)("div",{className:"wp-social-link wp-social-link-facebook"}),Object(je.createElement)("div",{className:"wp-social-link wp-social-link-instagram"}))),O=Object(je.createElement)("li",{className:"wp-block-social-links__social-prompt"},Object(ke.__)("Click plus to add")),j=tt()(b,{"has-icon-color":a.color||m,"has-icon-background-color":o.color||u}),y=Object(we.useBlockProps)({className:j}),f=Object(we.useInnerBlocksProps)(y,{allowedBlocks:Nd,placeholder:l?O:v,templateLock:!1,__experimentalAppenderTagName:"li",__experimentalLayout:g});return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"other"},Object(je.createElement)(_e.ToolbarDropdownMenu,{label:Object(ke.__)("Size"),text:Object(ke.__)("Size"),icon:null,popoverProps:{position:"bottom right"}},e=>{let{onClose:t}=e;return Object(je.createElement)(_e.MenuGroup,null,Pd.map(e=>Object(je.createElement)(_e.MenuItem,{icon:(b===e.value||!b&&"has-normal-icon-size"===e.value)&&Td.a,isSelected:b===e.value,key:e.value,onClick:()=>{c({size:e.value})},onClose:t,role:"menuitemradio"},e.name)))})),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Link settings")},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Open links in new tab"),checked:d,onChange:()=>c({openInNewTab:!d})})),Object(je.createElement)(we.PanelColorSettings,{__experimentalHasMultipleOrigins:!0,title:Object(ke.__)("Color"),colorSettings:[{value:a.color||m,onChange:e=>{s(e),c({iconColorValue:e})},label:Object(ke.__)("Icon color")},!h&&{value:o.color||u,onChange:e=>{i(e),c({iconBackgroundColorValue:e})},label:Object(ke.__)("Icon background color")}]}),!h&&Object(je.createElement)(we.ContrastChecker,{textColor:m,backgroundColor:u,isLargeText:!1})),Object(je.createElement)("ul",f))}));const Id={apiVersion:2,name:"core/social-links",title:"Social Icons",category:"widgets",description:"Display icons linking to your social media profiles or websites.",keywords:["links"],textdomain:"default",attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},size:{type:"string"}},providesContext:{openInNewTab:"openInNewTab",iconColorValue:"iconColorValue",iconBackgroundColorValue:"iconBackgroundColorValue"},supports:{align:["left","center","right"],anchor:!0,__experimentalExposeControlsToChildren:!0,__experimentalLayout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},spacing:{blockGap:!0,margin:["top","bottom"],units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"logos-only",label:"Logos Only"},{name:"pill-shape",label:"Pill Shape"}],editorStyle:"wp-block-social-links-editor",style:"wp-block-social-links"},{name:Md}=Id,Rd={example:{innerBlocks:[{name:"core/social-link",attributes:{service:"wordpress",url:"https://wordpress.org"}},{name:"core/social-link",attributes:{service:"facebook",url:"https://www.facebook.com/WordPress/"}},{name:"core/social-link",attributes:{service:"twitter",url:"https://twitter.com/WordPress"}}]},icon:Od,edit:zd,save:function(e){const{attributes:{iconBackgroundColorValue:t,iconColorValue:n,size:r}}=e,o=tt()(r,{"has-icon-color":n,"has-icon-background-color":t}),a=we.useBlockProps.save({className:o}),l=we.useInnerBlocksProps.save(a);return Object(je.createElement)("ul",l)},deprecated:Bd};var Ld=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M12.5 4.2v1.6h4.7L5.8 17.2V12H4.2v7.8H12v-1.6H6.8L18.2 6.8v4.7h1.6V4.2z"}));var Vd=Object(nt.compose)([Object(ze.withDispatch)(e=>{const{toggleSelection:t}=e(we.store);return{onResizeStart:()=>t(!1),onResizeStop:()=>t(!0)}}),nt.withInstanceId])(e=>{let{attributes:t,isSelected:n,setAttributes:r,onResizeStart:o,onResizeStop:a,context:l}=e;const{orientation:c}=l,[i,s]=Object(je.useState)(!1),{height:u,width:m}=t,d=e=>{r({height:e})},b=e=>{r({width:e})},p=function(){o(...arguments),s(!0)},g=(e,t,n,r)=>{a();const o=Math.min(parseInt(u+r.height,10),500);d(o),s(!1)},h=(e,t,n,r)=>{a();const o=Math.min(parseInt(m+r.width,10),500);b(o),s(!1)};return Object(je.useEffect)(()=>{"horizontal"!==c||m||(b(72),d(0))},[]),Object(je.createElement)(je.Fragment,null,Object(je.createElement)(ye.View,Object(we.useBlockProps)(),"horizontal"===c?Object(je.createElement)(_e.ResizableBox,{className:tt()("block-library-spacer__resize-container","resize-horizontal",{"is-selected":n}),size:{width:m,height:24},minWidth:1,enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:p,onResizeStop:h,showHandle:n,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"x",position:"corner",isVisible:i}}):Object(je.createElement)(_e.ResizableBox,{className:tt()("block-library-spacer__resize-container",{"is-selected":n}),size:{height:u},minHeight:1,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:p,onResizeStop:g,showHandle:n,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:i}})),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Spacer settings")},"horizontal"===c&&Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Width in pixels"),min:1,max:Math.max(500,m),value:m,onChange:b}),"horizontal"!==c&&Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Height in pixels"),min:1,max:Math.max(500,u),value:u,onChange:d}))))});const Ad={apiVersion:2,name:"core/spacer",title:"Spacer",category:"design",description:"Add white space between blocks and customize its height.",textdomain:"default",attributes:{height:{type:"number",default:100},width:{type:"number"}},usesContext:["orientation"],supports:{anchor:!0},editorStyle:"wp-block-spacer-editor",style:"wp-block-spacer"},{name:Hd}=Ad,Fd={icon:Ld,edit:Vd,save:function(e){let{attributes:t}=e;return Object(je.createElement)("div",we.useBlockProps.save({style:{height:t.height,width:t.width},"aria-hidden":!0}))}};var Dd=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"}));const Gd={"subtle-light-gray":"#f3f4f5","subtle-pale-green":"#e9fbe5","subtle-pale-blue":"#e7f5fe","subtle-pale-pink":"#fcf0ef"};var qd=[{attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption",default:""},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}}},supports:{anchor:!0,align:!0,__experimentalSelector:".wp-block-table > table"},save:e=>{let{attributes:t}=e;const{hasFixedLayout:n,head:r,body:o,foot:a,backgroundColor:l,caption:c}=t;if(!r.length&&!o.length&&!a.length)return null;const i=Object(we.getColorClassName)("background-color",l),s=tt()(i,{"has-fixed-layout":n,"has-background":!!i}),u=!we.RichText.isEmpty(c),m=e=>{let{type:t,rows:n}=e;if(!n.length)return null;const r="t"+t;return Object(je.createElement)(r,null,n.map((e,t)=>{let{cells:n}=e;return Object(je.createElement)("tr",{key:t},n.map((e,t)=>{let{content:n,tag:r,scope:o,align:a}=e;const l=tt()({["has-text-align-"+a]:a});return Object(je.createElement)(we.RichText.Content,{className:l||void 0,"data-align":a,tagName:r,value:n,key:t,scope:"th"===r?o:void 0})}))}))};return Object(je.createElement)("figure",we.useBlockProps.save(),Object(je.createElement)("table",{className:""===s?void 0:s},Object(je.createElement)(m,{type:"head",rows:r}),Object(je.createElement)(m,{type:"body",rows:o}),Object(je.createElement)(m,{type:"foot",rows:a})),u&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",value:c}))},isEligible:e=>e.backgroundColor&&!e.style,migrate:e=>({...e,backgroundColor:void 0,style:{color:{background:Gd[e.backgroundColor]}}})},{attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}}},supports:{align:!0},save(e){let{attributes:t}=e;const{hasFixedLayout:n,head:r,body:o,foot:a,backgroundColor:l}=t;if(!r.length&&!o.length&&!a.length)return null;const c=Object(we.getColorClassName)("background-color",l),i=tt()(c,{"has-fixed-layout":n,"has-background":!!c}),s=e=>{let{type:t,rows:n}=e;if(!n.length)return null;const r="t"+t;return Object(je.createElement)(r,null,n.map((e,t)=>{let{cells:n}=e;return Object(je.createElement)("tr",{key:t},n.map((e,t)=>{let{content:n,tag:r,scope:o}=e;return Object(je.createElement)(we.RichText.Content,{tagName:r,value:n,key:t,scope:"th"===r?o:void 0})}))}))};return Object(je.createElement)("table",{className:i},Object(je.createElement)(s,{type:"head",rows:r}),Object(je.createElement)(s,{type:"body",rows:o}),Object(je.createElement)(s,{type:"foot",rows:a}))}}],Ud=n("fPbg"),Wd=n("plpT"),$d=n("ziDm");var Zd=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(je.createElement)(ye.Path,{d:"M6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84zM6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84z"}));var Kd=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(je.createElement)(ye.Path,{d:"M13.824 10.176h-2.88v-2.88H9.536v2.88h-2.88v1.344h2.88v2.88h1.408v-2.88h2.88zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm6.4 0H7.68v3.84h5.12V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.056H1.28v9.024H19.2V6.336z"}));var Jd=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(je.createElement)(ye.Path,{d:"M17.728 11.456L14.592 8.32l3.2-3.2-1.536-1.536-3.2 3.2L9.92 3.648 8.384 5.12l3.2 3.2-3.264 3.264 1.536 1.536 3.264-3.264 3.136 3.136 1.472-1.536zM0 17.92V0h20.48v17.92H0zm19.2-6.4h-.448l-1.28-1.28H19.2V6.4h-1.792l1.28-1.28h.512V1.28H1.28v3.84h6.208l1.28 1.28H1.28v3.84h7.424l-1.28 1.28H1.28v3.84H19.2v-3.84z"}));var Qd=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(je.createElement)(ye.Path,{d:"M6.4 3.776v3.648H2.752v1.792H6.4v3.648h1.728V9.216h3.712V7.424H8.128V3.776zM0 17.92V0h20.48v17.92H0zM12.8 1.28H1.28v14.08H12.8V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.12h-5.12v3.84h5.12V6.4zm0 5.12h-5.12v3.84h5.12v-3.84z"}));var Yd=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(je.createElement)(ye.Path,{d:"M14.08 12.864V9.216h3.648V7.424H14.08V3.776h-1.728v3.648H8.64v1.792h3.712v3.648zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm0 5.12H1.28v3.84H6.4V6.4zm0 5.12H1.28v3.84H6.4v-3.84zM19.2 1.28H7.68v14.08H19.2V1.28z"}));var Xd=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(je.createElement)(ye.Path,{d:"M6.4 9.98L7.68 8.7v-.256L6.4 7.164V9.98zm6.4-1.532l1.28-1.28V9.92L12.8 8.64v-.192zm7.68 9.472V0H0v17.92h20.48zm-1.28-2.56h-5.12v-1.024l-.256.256-1.024-1.024v1.792H7.68v-1.792l-1.024 1.024-.256-.256v1.024H1.28V1.28H6.4v2.368l.704-.704.576.576V1.216h5.12V3.52l.96-.96.32.32V1.216h5.12V15.36zm-5.76-2.112l-3.136-3.136-3.264 3.264-1.536-1.536 3.264-3.264L5.632 5.44l1.536-1.536 3.136 3.136 3.2-3.2 1.536 1.536-3.2 3.2 3.136 3.136-1.536 1.536z"}));var eb=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{d:"M4 6v11.5h16V6H4zm1.5 1.5h6V11h-6V7.5zm0 8.5v-3.5h6V16h-6zm13 0H13v-3.5h5.5V16zM13 11V7.5h5.5V11H13z"}));const tb=["align"];function nb(e,t,n){if(!t)return e;const r=Object(Me.pick)(e,["head","body","foot"]),{sectionName:o,rowIndex:a}=t;return Object(Me.mapValues)(r,(e,r)=>o&&o!==r?e:e.map((e,o)=>a&&a!==o?e:{cells:e.cells.map((e,a)=>function(e,t){if(!e||!t)return!1;switch(t.type){case"column":return"column"===t.type&&e.columnIndex===t.columnIndex;case"cell":return"cell"===t.type&&e.sectionName===t.sectionName&&e.columnIndex===t.columnIndex&&e.rowIndex===t.rowIndex}}({sectionName:r,columnIndex:a,rowIndex:o},t)?n(e):e)}))}function rb(e,t){let{sectionName:n,rowIndex:r,columnCount:o}=t;const a=function(e){return lb(e.head)?lb(e.body)?lb(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),l=void 0===o?Object(Me.get)(a,["cells","length"]):o;return l?{[n]:[...e[n].slice(0,r),{cells:Object(Me.times)(l,e=>{const t=Object(Me.get)(a,["cells",e],{});return{...Object(Me.pick)(t,tb),content:"",tag:"head"===n?"th":"td"}})},...e[n].slice(r)]}:e}function ob(e,t){let{columnIndex:n}=t;const r=Object(Me.pick)(e,["head","body","foot"]);return Object(Me.mapValues)(r,(e,t)=>lb(e)?e:e.map(e=>cb(e)||e.cells.length<n?e:{cells:[...e.cells.slice(0,n),{content:"",tag:"head"===t?"th":"td"},...e.cells.slice(n)]}))}function ab(e,t){if(!lb(e[t]))return{[t]:[]};return rb(e,{sectionName:t,rowIndex:0,columnCount:Object(Me.get)(e,["body",0,"cells","length"],1)})}function lb(e){return!e||!e.length||Object(Me.every)(e,cb)}function cb(e){return!(e.cells&&e.cells.length)}const ib=[{icon:Ud.a,title:Object(ke.__)("Align column left"),align:"left"},{icon:Wd.a,title:Object(ke.__)("Align column center"),align:"center"},{icon:$d.a,title:Object(ke.__)("Align column right"),align:"right"}],sb={head:Object(ke.__)("Header cell text"),body:Object(ke.__)("Body cell text"),foot:Object(ke.__)("Footer cell text")},ub={head:Object(ke.__)("Header label"),foot:Object(ke.__)("Footer label")};function mb(e){let{name:t,...n}=e;const r="t"+t;return Object(je.createElement)(r,n)}var db=function(e){let{attributes:t,setAttributes:n,insertBlocksAfter:r,isSelected:o}=e;const{hasFixedLayout:a,caption:l,head:c,foot:i}=t,[s,u]=Object(je.useState)(2),[m,d]=Object(je.useState)(2),[b,p]=Object(je.useState)(),g=Object(we.__experimentalUseColorProps)(t),h=Object(we.__experimentalUseBorderProps)(t);function v(e){b&&n(nb(t,b,t=>({...t,content:e})))}function O(e){if(!b)return;const{sectionName:r,rowIndex:o}=b,a=o+e;n(rb(t,{sectionName:r,rowIndex:a})),p({sectionName:r,rowIndex:a,columnIndex:0,type:"cell"})}function j(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!b)return;const{columnIndex:r}=b,o=r+e;n(ob(t,{columnIndex:o})),p({rowIndex:0,columnIndex:o,type:"cell"})}Object(je.useEffect)(()=>{o||p()},[o]);const y=["head","body","foot"].filter(e=>!lb(t[e])),f=[{icon:Zd,title:Object(ke.__)("Insert row before"),isDisabled:!b,onClick:function(){O(0)}},{icon:Kd,title:Object(ke.__)("Insert row after"),isDisabled:!b,onClick:function(){O(1)}},{icon:Jd,title:Object(ke.__)("Delete row"),isDisabled:!b,onClick:function(){if(!b)return;const{sectionName:e,rowIndex:r}=b;p(),n(function(e,t){let{sectionName:n,rowIndex:r}=t;return{[n]:e[n].filter((e,t)=>t!==r)}}(t,{sectionName:e,rowIndex:r}))}},{icon:Qd,title:Object(ke.__)("Insert column before"),isDisabled:!b,onClick:function(){j(0)}},{icon:Yd,title:Object(ke.__)("Insert column after"),isDisabled:!b,onClick:function(){j(1)}},{icon:Xd,title:Object(ke.__)("Delete column"),isDisabled:!b,onClick:function(){if(!b)return;const{sectionName:e,columnIndex:r}=b;p(),n(function(e,t){let{columnIndex:n}=t;const r=Object(Me.pick)(e,["head","body","foot"]);return Object(Me.mapValues)(r,e=>lb(e)?e:e.map(e=>({cells:e.cells.length>=n?e.cells.filter((e,t)=>t!==n):e.cells})).filter(e=>e.cells.length))}(t,{sectionName:e,columnIndex:r}))}}],_=["head","body","foot"].map(e=>Object(je.createElement)(mb,{name:e,key:e},t[e].map((t,n)=>{let{cells:r}=t;return Object(je.createElement)("tr",{key:n},r.map((t,r)=>{let{content:o,tag:a,scope:l,align:c}=t;return Object(je.createElement)(we.RichText,{tagName:a,key:r,className:tt()({["has-text-align-"+c]:c},"wp-block-table__cell-content"),scope:"th"===a?l:void 0,value:o,onChange:v,unstableOnFocus:()=>{p({sectionName:e,rowIndex:n,columnIndex:r,type:"cell"})},"aria-label":sb[e],placeholder:ub[e]})}))}))),k=!y.length;return Object(je.createElement)("figure",Object(we.useBlockProps)(),!k&&Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(we.AlignmentControl,{label:Object(ke.__)("Change column alignment"),alignmentControls:ib,value:function(){if(b)return function(e,t,n){const{sectionName:r,rowIndex:o,columnIndex:a}=t;return Object(Me.get)(e,[r,o,"cells",a,n])}(t,b,"align")}(),onChange:e=>function(e){if(!b)return;const r={type:"column",columnIndex:b.columnIndex},o=nb(t,r,t=>({...t,align:e}));n(o)}(e)})),Object(je.createElement)(we.BlockControls,{group:"other"},Object(je.createElement)(_e.ToolbarDropdownMenu,{hasArrowIndicator:!0,icon:eb,label:Object(ke.__)("Edit table"),controls:f}))),!k&&Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Table settings"),className:"blocks-table-settings"},Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Fixed width table cells"),checked:!!a,onChange:function(){n({hasFixedLayout:!a})}}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Header section"),checked:!(!c||!c.length),onChange:function(){n(ab(t,"head"))}}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Footer section"),checked:!(!i||!i.length),onChange:function(){n(ab(t,"foot"))}}))),!k&&Object(je.createElement)("table",{className:tt()(g.className,h.className,{"has-fixed-layout":a}),style:{...g.style,...h.style}},_),!k&&Object(je.createElement)(we.RichText,{tagName:"figcaption","aria-label":Object(ke.__)("Table caption text"),placeholder:Object(ke.__)("Add caption"),value:l,onChange:e=>n({caption:e}),unstableOnFocus:()=>p(),__unstableOnSplitAtEnd:()=>r(Object(Oe.createBlock)("core/paragraph"))}),k&&Object(je.createElement)(_e.Placeholder,{label:Object(ke.__)("Table"),icon:Object(je.createElement)(we.BlockIcon,{icon:Dd,showColors:!0}),instructions:Object(ke.__)("Insert a table for sharing data.")},Object(je.createElement)("form",{className:"blocks-table__placeholder-form",onSubmit:function(e){e.preventDefault(),n(function(e){let{rowCount:t,columnCount:n}=e;return{body:Object(Me.times)(t,()=>({cells:Object(Me.times)(n,()=>({content:"",tag:"td"}))}))}}({rowCount:parseInt(s,10)||2,columnCount:parseInt(m,10)||2}))}},Object(je.createElement)(_e.TextControl,{type:"number",label:Object(ke.__)("Column count"),value:m,onChange:function(e){d(e)},min:"1",className:"blocks-table__placeholder-input"}),Object(je.createElement)(_e.TextControl,{type:"number",label:Object(ke.__)("Row count"),value:s,onChange:function(e){u(e)},min:"1",className:"blocks-table__placeholder-input"}),Object(je.createElement)(_e.Button,{className:"blocks-table__placeholder-button",variant:"primary",type:"submit"},Object(ke.__)("Create Table")))))};const bb=e=>{let{phrasingContentSchema:t}=e;return{tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:t,attributes:["scope"]},td:{allowEmpty:!0,children:t}}}}};var pb={from:[{type:"raw",selector:"table",schema:e=>({table:{children:{thead:{allowEmpty:!0,children:bb(e)},tfoot:{allowEmpty:!0,children:bb(e)},tbody:{allowEmpty:!0,children:bb(e)}}}})}]};const gb={apiVersion:2,name:"core/table",title:"Table",category:"text",description:"Create structured content in rows and columns to display information.",textdomain:"default",attributes:{hasFixedLayout:{type:"boolean",default:!1},caption:{type:"string",source:"html",selector:"figcaption",default:""},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0},__experimentalSelector:".wp-block-table > table"},styles:[{name:"regular",label:"Default",isDefault:!0},{name:"stripes",label:"Stripes"}],editorStyle:"wp-block-table-editor",style:"wp-block-table"},{name:hb}=gb,vb={icon:Dd,example:{attributes:{head:[{cells:[{content:Object(ke.__)("Version"),tag:"th"},{content:Object(ke.__)("Jazz Musician"),tag:"th"},{content:Object(ke.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:Object(ke.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:Object(ke.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:Object(ke.__)("December 6, 2018"),tag:"td"}]}]}},transforms:pb,edit:db,save:function(e){let{attributes:t}=e;const{hasFixedLayout:n,head:r,body:o,foot:a,caption:l}=t;if(!r.length&&!o.length&&!a.length)return null;const c=Object(we.__experimentalGetColorClassesAndStyles)(t),i=Object(we.__experimentalGetBorderClassesAndStyles)(t),s=tt()(c.className,i.className,{"has-fixed-layout":n}),u=!we.RichText.isEmpty(l),m=e=>{let{type:t,rows:n}=e;if(!n.length)return null;const r="t"+t;return Object(je.createElement)(r,null,n.map((e,t)=>{let{cells:n}=e;return Object(je.createElement)("tr",{key:t},n.map((e,t)=>{let{content:n,tag:r,scope:o,align:a}=e;const l=tt()({["has-text-align-"+a]:a});return Object(je.createElement)(we.RichText.Content,{className:l||void 0,"data-align":a,tagName:r,value:n,key:t,scope:"th"===r?o:void 0})}))}))};return Object(je.createElement)("figure",we.useBlockProps.save(),Object(je.createElement)("table",{className:""===s?void 0:s,style:{...c.style,...i.style}},Object(je.createElement)(m,{type:"head",rows:r}),Object(je.createElement)(m,{type:"body",rows:o}),Object(je.createElement)(m,{type:"foot",rows:a})),u&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",value:l}))},deprecated:qd};var Ob=Object(ze.withSelect)(e=>({taxonomies:e(It.store).getTaxonomies({per_page:-1})}))((function(e){let{attributes:t,setAttributes:n,taxonomies:r}=e;const{taxonomy:o,showTagCounts:a,numberOfTags:l}=t,c=Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Tag Cloud settings")},Object(je.createElement)(_e.SelectControl,{label:Object(ke.__)("Taxonomy"),options:[{label:Object(ke.__)("- Select -"),value:"",disabled:!0},...Object(Me.map)(Object(Me.filter)(r,"show_cloud"),e=>({value:e.slug,label:e.name}))],value:o,onChange:e=>n({taxonomy:e})}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Show post counts"),checked:a,onChange:()=>n({showTagCounts:!a})}),Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Number of tags"),value:l,onChange:e=>n({numberOfTags:e}),min:1,max:100,required:!0})));return Object(je.createElement)(je.Fragment,null,c,Object(je.createElement)("div",Object(we.useBlockProps)(),Object(je.createElement)(Ce.a,{key:"tag-cloud",block:"core/tag-cloud",attributes:t})))}));const jb={apiVersion:2,name:"core/tag-cloud",title:"Tag Cloud",category:"widgets",description:"A cloud of your most used tags.",textdomain:"default",attributes:{numberOfTags:{type:"number",default:45,minimum:1,maximum:100},taxonomy:{type:"string",default:"post_tag"},showTagCounts:{type:"boolean",default:!1}},supports:{html:!1,align:!0},editorStyle:"wp-block-tag-cloud-editor"},{name:yb}=jb,fb={icon:Zc,example:{},edit:Ob};var _b=n("OE6V");function kb(e){return Object(ke.sprintf)(Object(ke.__)("Area: %s"),e)}function wb(){return Object(je.createElement)("div",{className:"wp-block-template-part__selection-preview-item is-placeholder",tabIndex:0})}function Eb(e){let{templatePart:t,setAttributes:n,onClose:r,composite:o}=e;const{slug:a,theme:l,title:{rendered:c}}=t,i=t.content.raw||"",s=Object(je.useMemo)(()=>Object(Oe.parse)(i),[i]),{createSuccessNotice:u}=Object(ze.useDispatch)(Fr.store),m=Object(je.useCallback)(()=>{n({slug:a,theme:l,area:void 0}),u(Object(ke.sprintf)(Object(ke.__)('Template Part "%s" inserted.'),c||a),{type:"snackbar"}),r()},[a,l]);return Object(je.createElement)(_e.__unstableCompositeItem,Object(mt.a)({as:"div",className:"wp-block-template-part__selection-preview-item",role:"option",onClick:m,onKeyDown:e=>{dt.ENTER!==e.keyCode&&dt.SPACE!==e.keyCode||m()},tabIndex:0,"aria-label":c||a},o),Object(je.createElement)(we.BlockPreview,{blocks:s}),Object(je.createElement)("div",{className:"wp-block-template-part__selection-preview-item-title"},c||a))}function Cb(e){let{title:t,icon:n,children:r}=e;return Object(je.createElement)(je.Fragment,null,Object(je.createElement)("div",{className:"wp-block-template-part__selection-panel-group-header"},Object(je.createElement)("span",{className:"wp-block-template-part__selection-panel-group-title"},t),Object(je.createElement)(_e.Icon,{icon:n})),Object(je.createElement)("div",{className:"wp-block-template-part__selection-panel-group-content"},r))}function xb(e){let{templateParts:t,setAttributes:n,onClose:r,composite:o,area:a="uncategorized",labelsByArea:l}=e;const{templatePartsByArea:c,templatePartsToShow:i}=Object(je.useMemo)(()=>{const e=t.filter(e=>"uncategorized"===a||e.area===a)||[];return{templatePartsByArea:Object.values(Object(Me.groupBy)(e,"area")),templatePartsToShow:Object(Me.flatten)(e)}},[t,a]),s=Object(nt.useAsyncList)(i);return i.length?c.map(e=>Object(je.createElement)(Cb,{key:e[0].area,title:kb(l[e[0].area]||l.uncategorized)},e.map(e=>s.includes(e)?Object(je.createElement)(Eb,{key:e.id,templatePart:e,setAttributes:n,onClose:r,composite:o}):Object(je.createElement)(wb,{key:e.id})))):Object(je.createElement)(Cb,{title:kb(l[a]||l.uncategorized)},Object(ke.sprintf)(Object(ke.__)("There is no other %s available. If you are looking for another type of template part, try searching for it using the input above."),a&&"uncategorized"!==a?l[a]||a:Object(ke.__)("Template Part")))}function Sb(e){let{templateParts:t,setAttributes:n,filterValue:r,onClose:o,composite:a,labelsByArea:l}=e;const{filteredTPs:c,groupedResults:i}=Object(je.useMemo)(()=>{const e=Object(Me.deburr)(r).toLowerCase(),n=t.filter(t=>{let{title:{rendered:n},area:r}=t;return Object(Me.deburr)(n).toLowerCase().includes(e)||Object(Me.deburr)(l[r]).toLowerCase().includes(e)});n.sort((t,n)=>{const r=Object(Me.deburr)(t.title.rendered).toLowerCase().indexOf(e),o=Object(Me.deburr)(n.title.rendered).toLowerCase().indexOf(e);return-1!==r&&-1!==o?r-o:-1!==r?-1:-1!==o?1:Object(Me.deburr)(l[t.area]).toLowerCase().indexOf(e)-Object(Me.deburr)(l[n.area]).toLowerCase().indexOf(e)});const o=[];for(let e=0;e<n.length;e++)0!==e&&n[e].area===n[e-1].area?o[o.length-1].push(n[e]):o.push([n[e]]);return{filteredTPs:n,groupedResults:o}},[r,t]),s=Object(nt.useAsyncList)(c);return i.map(e=>Object(je.createElement)(Cb,{key:e[0].id,title:kb(l[e[0].area]||l.uncategorized)},e.map(e=>s.includes(e)?Object(je.createElement)(Eb,{key:e.id,templatePart:e,setAttributes:n,onClose:o,composite:a}):Object(je.createElement)(wb,{key:e.id}))))}function Bb(e){let{setAttributes:t,filterValue:n,onClose:r,area:o,templatePartId:a}=e;const l=Object(_e.__unstableUseCompositeState)(),{templateParts:c,labelsByArea:i}=Object(ze.useSelect)(e=>{const t=(e(It.store).getEntityRecords("postType","wp_template_part",{per_page:-1})||[]).filter(e=>uc(e.theme,e.slug)!==a),n=e("core/editor").__experimentalGetDefaultTemplatePartAreas(),r={};return n.forEach(e=>{r[e.area]=e.label}),{templateParts:t,labelsByArea:r}},[]);return c&&c.length?n?Object(je.createElement)(_e.__unstableComposite,Object(mt.a)({},l,{role:"listbox","aria-label":Object(ke.__)("List of template parts")}),Object(je.createElement)(Sb,{templateParts:c,setAttributes:t,filterValue:n,onClose:r,composite:l,labelsByArea:i})):Object(je.createElement)(_e.__unstableComposite,Object(mt.a)({},l,{role:"listbox","aria-label":Object(ke.__)("List of template parts")}),Object(je.createElement)(xb,{templateParts:c,setAttributes:t,onClose:r,composite:l,area:o,labelsByArea:i})):Object(je.createElement)(Cb,null,Object(ke.__)("There are no existing template parts to select."))}function Tb(e){let{setAttributes:t,onClose:n,area:r,templatePartId:o=null}=e;const[a,l]=Object(je.useState)("");return Object(je.createElement)("div",null,Object(je.createElement)(_e.SearchControl,{value:a,onChange:l,className:"wp-block-template-part__selection-preview-search-form"}),Object(je.createElement)("div",{className:"wp-block-template-part__selection-preview-container"},Object(je.createElement)(Bb,{setAttributes:t,filterValue:a,onClose:n,area:r,templatePartId:o})))}function Nb(e){let{area:t,areaLabel:n,areaIcon:r,clientId:o,onCreate:a,resetPlaceholder:l}=e;const c=t?"core/template-part/"+t:"core/template-part",[i,s]=Object(je.useState)(Object(ke.__)("Untitled Template Part")),[u,m]=Object(je.useState)([]),[d,b]=Object(je.useState)(!1);return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.__experimentalBlockPatternSetup,{clientId:o,startBlankComponent:Object(je.createElement)(Pb,{setTitleStep:b,areaLabel:n,areaIcon:r}),onBlockPatternSelect:e=>{m(e),b(!0)},filterPatternsFn:e=>{var t,n;return null==e||null===(t=e.blockTypes)||void 0===t||null===(n=t.some)||void 0===n?void 0:n.call(t,e=>e===c)}}),d&&Object(je.createElement)(_e.Modal,{title:Object(ke.sprintf)(Object(ke.__)("Name and create your new %s"),n.toLowerCase()),closeLabel:Object(ke.__)("Cancel"),onRequestClose:l,overlayClassName:"wp-block-template-part__placeholder-create-new__title-form"},Object(je.createElement)("form",{onSubmit:e=>{e.preventDefault(),a(u,i)}},Object(je.createElement)(_e.TextControl,{label:Object(ke.__)("Name"),value:i,onChange:s}),Object(je.createElement)(_e.Flex,{className:"wp-block-template-part__placeholder-create-new__title-form-actions",justify:"flex-end"},Object(je.createElement)(_e.FlexItem,null,Object(je.createElement)(_e.Button,{variant:"secondary",onClick:l},Object(ke.__)("Cancel"))),Object(je.createElement)(_e.FlexItem,null,Object(je.createElement)(_e.Button,{variant:"primary",type:"submit",disabled:!i.length,"aria-disabled":!i.length},Object(ke.__)("Create")))))))}function Pb(e){let{setTitleStep:t,areaLabel:n,areaIcon:r}=e;return Object(je.useEffect)(()=>{t(!0)},[]),Object(je.createElement)(_e.Placeholder,{label:n,icon:r,instructions:Object(ke.sprintf)(Object(ke.__)("Creating your new %s…"),n.toLowerCase())})}const zb=1,Ib=2;function Mb(e){let{area:t,clientId:n,setAttributes:r,enableSelection:o,hasResolvedReplacements:a}=e;const{saveEntityRecord:l}=Object(ze.useDispatch)(It.store),[c,i]=Object(je.useState)(zb),{areaIcon:s,areaLabel:u}=Object(ze.useSelect)(e=>{const n=e("core/editor").__experimentalGetDefaultTemplatePartAreas(),r=Object(Me.find)(n,{area:t}),o=Object(Me.find)(n,{area:"uncategorized"});return{areaIcon:(null==r?void 0:r.icon)||(null==o?void 0:o.icon),areaLabel:(null==r?void 0:r.label)||Object(ke.__)("Template Part")}},[t]),m=Object(je.useCallback)((async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(ke.__)("Untitled Template Part");const o={title:n,slug:Object(Me.kebabCase)(n),content:Object(Oe.serialize)(e),area:t},a=await l("postType","wp_template_part",o);r({slug:a.slug,theme:a.theme,area:void 0})}),[r,t]);return Object(je.createElement)(je.Fragment,null,c===zb&&Object(je.createElement)(_e.Placeholder,{icon:s,label:u,instructions:o?Object(ke.sprintf)(Object(ke.__)("Choose an existing %s or create a new one."),u.toLowerCase()):Object(ke.sprintf)(Object(ke.__)("Create a new %s."),u.toLowerCase())},a?Object(je.createElement)(_e.Dropdown,{contentClassName:"wp-block-template-part__placeholder-preview-dropdown-content",position:"bottom right left",renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return Object(je.createElement)(je.Fragment,null,o&&Object(je.createElement)(_e.Button,{variant:"primary",onClick:n,"aria-expanded":t},Object(ke.__)("Choose existing")),Object(je.createElement)(_e.Button,{variant:o?"tertiary":"primary",onClick:()=>i(Ib)},Object(ke.sprintf)(Object(ke.__)("New %s"),u.toLowerCase())))},renderContent:e=>{let{onClose:n}=e;return Object(je.createElement)(Tb,{setAttributes:r,onClose:n,area:t})}}):Object(je.createElement)(_e.Spinner,null)),c===Ib&&Object(je.createElement)(Nb,{area:t,areaLabel:u,areaIcon:s,onCreate:m,clientId:n,resetPlaceholder:()=>i(zb)}))}function Rb(e){let{tagName:t,setAttributes:n,isEntityAvailable:r,templatePartId:o,defaultWrapper:a}=e;const[l,c]=Object(It.useEntityProp)("postType","wp_template_part","area",o),[i,s]=Object(It.useEntityProp)("postType","wp_template_part","title",o),{areaOptions:u}=Object(ze.useSelect)(e=>({areaOptions:e("core/editor").__experimentalGetDefaultTemplatePartAreas().map(e=>{let{label:t,area:n}=e;return{label:t,value:n}})}),[]);return Object(je.createElement)(we.InspectorControls,{__experimentalGroup:"advanced"},r&&Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.TextControl,{label:Object(ke.__)("Title"),value:i,onChange:e=>{s(e)},onFocus:e=>e.target.select()}),Object(je.createElement)(_e.SelectControl,{label:Object(ke.__)("Area"),labelPosition:"top",options:u,value:l,onChange:c})),Object(je.createElement)(_e.SelectControl,{label:Object(ke.__)("HTML element"),options:[{label:Object(ke.sprintf)(Object(ke.__)("Default based on area (%s)"),`<${a}>`),value:""},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"},{label:"<div>",value:"div"}],value:t||"",onChange:e=>n({tagName:e})}))}function Lb(e){let{postId:t,hasInnerBlocks:n,layout:r,tagName:o,blockProps:a,clientId:l}=e;const c=Object(ze.useSelect)(e=>{var t;const{getSettings:n}=e(we.store);return null===(t=n())||void 0===t?void 0:t.supportsLayout},[]),i=Object(we.useSetting)("layout")||{},s=r&&r.inherit?i:r,[u,m,d]=Object(It.useEntityBlockEditor)("postType","wp_template_part",{id:t}),b=Object(we.useInnerBlocksProps)(a,{value:u,onInput:m,onChange:d,renderAppender:n?void 0:we.InnerBlocks.ButtonBlockAppender,__experimentalLayout:c?s:void 0});return Object(je.createElement)(we.__experimentalBlockContentOverlay,{clientId:l,tagName:o,wrapperProps:b})}var Vb=n("G8mJ"),Ab=n("//kF"),Hb=n("rvQu");const Fb=[{name:"header",icon:Vb.a,title:Object(ke.__)("Header"),description:Object(ke.__)("The Header template defines a page area that typically contains a title, logo, and main navigation."),attributes:{area:"header"},scope:["inserter"]},{name:"footer",icon:Ab.a,title:Object(ke.__)("Footer"),description:Object(ke.__)("The Footer template defines a page area that typically contains site credits, social links, or any other combination of blocks."),attributes:{area:"footer"},scope:["inserter"]}];Fb.forEach(e=>{e.isActive||(e.isActive=(e,t)=>{const{area:n,theme:r,slug:o}=e;if(n)return n===t.area;if(!o)return!1;const a=Object(ze.select)(It.store).getEntityRecord("postType","wp_template_part",`${r}//${o}`);return(null==a?void 0:a.area)===t.area})});var Db=Fb;const Gb={apiVersion:2,name:"core/template-part",title:"Template Part",category:"theme",description:"Edit the different global regions of your site, like the header, footer, sidebar, or create your own.",textdomain:"default",attributes:{slug:{type:"string"},theme:{type:"string"},tagName:{type:"string"},area:{type:"string"}},supports:{align:!0,html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0},__experimentalLayout:!0,reusable:!1},editorStyle:"wp-block-template-part-editor"},{name:qb}=Gb,Ub={icon:_b.a,__experimentalLabel:e=>{var t;let{slug:n,theme:r}=e;if(!n)return;const o=Object(ze.select)(It.store).getEntityRecord("postType","wp_template_part",r+"//"+n);return o?Object(Me.startCase)((null===(t=o.title)||void 0===t?void 0:t.rendered)||o.slug):void 0},edit:function(e){let{attributes:t,setAttributes:n,clientId:r}=e;const{slug:o,theme:a,tagName:l,layout:c={}}=t,i=uc(a,o),[s,u]=Object(we.__experimentalUseNoRecursiveRenders)(i),{isResolved:m,innerBlocks:d,isMissing:b,defaultWrapper:p,area:g,enableSelection:h,hasResolvedReplacements:v}=Object(ze.useSelect)(e=>{var n;const{getEditedEntityRecord:o,getEntityRecords:a,hasFinishedResolution:l}=e(It.store),{getBlocks:c}=e(we.store),s=["postType","wp_template_part",i],u=i?o(...s):null,m=(null==u?void 0:u.area)||t.area,d=["postType","wp_template_part",m&&"uncategorized"!==m&&{area:m}],b=a(...d),p=i?(null==b?void 0:b.length)>1:(null==b?void 0:b.length)>0,g=!!i&&l("getEditedEntityRecord",s),h=null===(n=e("core/editor").__experimentalGetDefaultTemplatePartAreas().find(e=>{let{area:t}=e;return t===m}))||void 0===n?void 0:n.area_tag;return{innerBlocks:c(r),isResolved:g,isMissing:g&&!u,defaultWrapper:h||"div",area:m,enableSelection:p,hasResolvedReplacements:l("getEntityRecords",d)}},[i,r]),O=Object(we.useBlockProps)(),j=!o,y=!j&&!b&&m,f=l||p;return 0===d.length&&(o&&!a||o&&b)?Object(je.createElement)(f,O,Object(je.createElement)(we.Warning,null,Object(ke.sprintf)(Object(ke.__)("Template part has been deleted or is unavailable: %s"),o))):y&&s?Object(je.createElement)(f,O,Object(je.createElement)(we.Warning,null,Object(ke.__)("Block cannot be rendered inside itself."))):Object(je.createElement)(u,null,Object(je.createElement)(Rb,{tagName:l,setAttributes:n,isEntityAvailable:y,templatePartId:i,defaultWrapper:p}),j&&Object(je.createElement)(f,O,Object(je.createElement)(Mb,{area:t.area,clientId:r,setAttributes:n,enableSelection:h,hasResolvedReplacements:v})),y&&h&&Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(_e.ToolbarGroup,{className:"wp-block-template-part__block-control-group"},Object(je.createElement)(_e.Dropdown,{className:"wp-block-template-part__preview-dropdown-button",contentClassName:"wp-block-template-part__preview-dropdown-content",position:"bottom right left",renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return Object(je.createElement)(_e.ToolbarButton,{"aria-expanded":t,onClick:n},Object(ke.__)("Replace"))},renderContent:e=>{let{onClose:t}=e;return Object(je.createElement)(Tb,{setAttributes:n,onClose:t,area:g,templatePartId:i})}}))),y&&Object(je.createElement)(Lb,{clientId:r,tagName:f,blockProps:O,postId:i,hasInnerBlocks:d.length>0,layout:c}),!j&&!m&&Object(je.createElement)(f,O,Object(je.createElement)(_e.Spinner,null)))}};Object(Vo.addFilter)("blocks.registerBlockType","core/template-part",(function(e,t){if("core/template-part"!==t)return e;if(!e.variations||!e.variations.length)return{...e,variations:Db};if(e.variations){const t=(e,t)=>{const{area:n,theme:r,slug:o}=e;if(n)return n===t.area;if(!o)return!1;const a=Object(ze.select)(It.store).getEntityRecord("postType","wp_template_part",`${r}//${o}`);return(null==a?void 0:a.area)===t.area},n=e.variations.map(e=>{return{...e,...!e.isActive&&{isActive:t},..."string"==typeof e.icon&&{icon:(n=e.icon,"header"===n?Vb.a:"footer"===n?Ab.a:"sidebar"===n?Hb.a:_b.a)}};var n});return{...e,variations:n}}return e}));var Wb=Object(je.createElement)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(je.createElement)(ye.Path,{stroke:"#1E1E1E",strokeWidth:"1.5",d:"M9 19.25h6M4 19.25h4M12 15.25h8M4 15.25h7"}),Object(je.createElement)(ye.Path,{d:"M8.994 10.103H6.08L5.417 12H4l2.846-8h1.383l2.845 8H9.657l-.663-1.897zm-.457-1.28l-.994-2.857-1.006 2.857h2z",fill:"#1E1E1E"}));const $b={apiVersion:2,name:"core/term-description",title:"Term Description",category:"theme",description:"Display the description of categories, tags and custom taxonomies when viewing an archive.",textdomain:"default",attributes:{textAlign:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-term-description-editor"},{name:Zb}=$b,Kb={icon:Wb,edit:function(e){let{attributes:t,setAttributes:n,mergedStyle:r}=e;const{textAlign:o}=t,a=Object(we.useBlockProps)({className:tt()({["has-text-align-"+o]:o}),style:r});return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(we.AlignmentControl,{value:o,onChange:e=>{n({textAlign:e})}})),Object(je.createElement)("div",a,Object(je.createElement)("div",{className:"wp-block-term-description__placeholder"},Object(je.createElement)("span",null,Object(ke.__)("Term Description")))))}};var Jb=n("NMb1"),Qb=n.n(Jb);var Yb={to:[{type:"block",blocks:["core/columns"],transform:e=>{let{className:t,columns:n,content:r,width:o}=e;return Object(Oe.createBlock)("core/columns",{align:"wide"===o||"full"===o?o:void 0,className:t,columns:n},r.map(e=>{let{children:t}=e;return Object(Oe.createBlock)("core/column",{},[Object(Oe.createBlock)("core/paragraph",{content:t})])}))}}]};const Xb={apiVersion:2,name:"core/text-columns",title:"Text Columns (deprecated)",icon:"columns",category:"design",description:"This block is deprecated. Please use the Columns block instead.",textdomain:"default",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}},supports:{inserter:!1},editorStyle:"wp-block-text-columns-editor",style:"wp-block-text-columns"},{name:ep}=Xb,tp={transforms:Yb,getEditWrapperProps(e){const{width:t}=e;if("wide"===t||"full"===t)return{"data-align":t}},edit:function(e){let{attributes:t,setAttributes:n}=e;const{width:r,content:o,columns:a}=t;return Qb()("The Text Columns block",{since:"5.3",alternative:"the Columns block"}),Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(we.BlockAlignmentToolbar,{value:r,onChange:e=>n({width:e}),controls:["center","wide","full"]})),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,null,Object(je.createElement)(_e.RangeControl,{label:Object(ke.__)("Columns"),value:a,onChange:e=>n({columns:e}),min:2,max:4,required:!0}))),Object(je.createElement)("div",Object(we.useBlockProps)({className:`align${r} columns-${a}`}),Object(Me.times)(a,e=>Object(je.createElement)("div",{className:"wp-block-column",key:"column-"+e},Object(je.createElement)(we.RichText,{tagName:"p",value:Object(Me.get)(o,[e,"children"]),onChange:t=>{n({content:[...o.slice(0,e),{children:t},...o.slice(e+1)]})},"aria-label":Object(ke.sprintf)(Object(ke.__)("Column %d text"),e+1),placeholder:Object(ke.__)("New Column")})))))},save:function(e){let{attributes:t}=e;const{width:n,content:r,columns:o}=t;return Object(je.createElement)("div",we.useBlockProps.save({className:`align${n} columns-${o}`}),Object(Me.times)(o,e=>Object(je.createElement)("div",{className:"wp-block-column",key:"column-"+e},Object(je.createElement)(we.RichText.Content,{tagName:"p",value:Object(Me.get)(r,[e,"children"])}))))}};var np=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z"}));var rp=[{attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},spacing:{padding:!0}},save(e){let{attributes:t}=e;const{textAlign:n,content:r}=t,o=tt()({["has-text-align-"+n]:n});return Object(je.createElement)("pre",we.useBlockProps.save({className:o}),Object(je.createElement)(we.RichText.Content,{value:r}))},migrate:at,isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}},{attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save(e){let{attributes:t}=e;const{textAlign:n,content:r}=t;return Object(je.createElement)(we.RichText.Content,{tagName:"pre",style:{textAlign:n},value:r})}}];var op={from:[{type:"block",blocks:["core/paragraph"],transform:e=>Object(Oe.createBlock)("core/verse",e)}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>Object(Oe.createBlock)("core/paragraph",e)}]};const ap={apiVersion:2,name:"core/verse",title:"Verse",category:"text",description:"Insert poetry. Use special spacing formats. Or quote song lyrics.",keywords:["poetry","poem"],textdomain:"default",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0},typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}},spacing:{padding:!0}},style:"wp-block-verse",editorStyle:"wp-block-verse-editor"},{name:lp}=ap,cp={icon:np,example:{attributes:{content:Object(ke.__)("WHAT was he doing, the great god Pan,\n\tDown in the reeds by the river?\nSpreading ruin and scattering ban,\nSplashing and paddling with hoofs of a goat,\nAnd breaking the golden lilies afloat\n With the dragon-fly on the river.")}},transforms:op,deprecated:rp,merge:(e,t)=>({content:e.content+t.content}),edit:function(e){let{attributes:t,setAttributes:n,mergeBlocks:r,onRemove:o,style:a}=e;const{textAlign:l,content:c}=t,i=Object(we.useBlockProps)({className:tt()({["has-text-align-"+l]:l}),style:a});return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,null,Object(je.createElement)(we.AlignmentToolbar,{value:l,onChange:e=>{n({textAlign:e})}})),Object(je.createElement)(we.RichText,Object(mt.a)({tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:c,onChange:e=>{n({content:e})},"aria-label":Object(ke.__)("Verse text"),placeholder:Object(ke.__)("Write verse…"),onRemove:o,onMerge:r,textAlign:l},i,{__unstablePastePlainText:!0})))},save:function(e){let{attributes:t}=e;const{textAlign:n,content:r}=t,o=tt()({["has-text-align-"+n]:n});return Object(je.createElement)("pre",we.useBlockProps.save({className:o}),Object(je.createElement)(we.RichText.Content,{value:r}))}};var ip=Object(je.createElement)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(je.createElement)(ye.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"}));const sp=[{value:"auto",label:Object(ke.__)("Auto")},{value:"metadata",label:Object(ke.__)("Metadata")},{value:"none",label:Object(ke._x)("None","Preload value")}];var up=e=>{let{setAttributes:t,attributes:n}=e;const{autoplay:r,controls:o,loop:a,muted:l,playsInline:c,preload:i}=n,s=Object(ke.__)("Autoplay may cause usability issues for some users."),u=je.Platform.select({web:Object(je.useCallback)(e=>e?s:null,[]),native:s}),m=Object(je.useMemo)(()=>{const e=e=>n=>{t({[e]:n})};return{autoplay:e("autoplay"),loop:e("loop"),muted:e("muted"),controls:e("controls"),playsInline:e("playsInline")}},[]),d=Object(je.useCallback)(e=>{t({preload:e})},[]);return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Autoplay"),onChange:m.autoplay,checked:r,help:u}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Loop"),onChange:m.loop,checked:a}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Muted"),onChange:m.muted,checked:l}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Playback controls"),onChange:m.controls,checked:o}),Object(je.createElement)(_e.ToggleControl,{label:Object(ke.__)("Play inline"),onChange:m.playsInline,checked:c}),Object(je.createElement)(_e.SelectControl,{label:Object(ke.__)("Preload"),value:i,onChange:d,options:sp,hideCancelButton:!0}))},mp=n("rH4q");const dp=["text/vtt"],bp="subtitles",pp=[{label:Object(ke.__)("Subtitles"),value:"subtitles"},{label:Object(ke.__)("Captions"),value:"captions"},{label:Object(ke.__)("Descriptions"),value:"descriptions"},{label:Object(ke.__)("Chapters"),value:"chapters"},{label:Object(ke.__)("Metadata"),value:"metadata"}],gp=Object(je.createElement)(_e.SVG,{width:"18",height:"14",viewBox:"0 0 18 14",role:"img",fill:"none"},Object(je.createElement)(_e.Rect,{x:"0.75",y:"0.75",width:"16.5",height:"12.5",rx:"1.25",stroke:"black",strokeWidth:"1.5",fill:"none"}),Object(je.createElement)(_e.Path,{d:"M3 7H15",stroke:"black",strokeWidth:"1.5"}),Object(je.createElement)(_e.Path,{d:"M3 10L15 10",stroke:"black",strokeWidth:"1.5"}));function hp(e){let t,{tracks:n,onEditPress:r}=e;return t=0===n.length?Object(je.createElement)("p",{className:"block-library-video-tracks-editor__tracks-informative-message"},Object(ke.__)("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.")):n.map((e,t)=>Object(je.createElement)("div",{key:t,className:"block-library-video-tracks-editor__track-list-track"},Object(je.createElement)("span",null,e.label," "),Object(je.createElement)(_e.Button,{variant:"tertiary",onClick:()=>r(t),"aria-label":Object(ke.sprintf)(Object(ke.__)("Edit %s"),e.label)},Object(ke.__)("Edit")))),Object(je.createElement)(_e.MenuGroup,{label:Object(ke.__)("Text tracks"),className:"block-library-video-tracks-editor__track-list"},t)}function vp(e){let{track:t,onChange:n,onClose:r,onRemove:o}=e;const{src:a="",label:l="",srcLang:c="",kind:i=bp}=t,s=a.startsWith("blob:")?"":Object(Kr.getFilename)(a)||"";return Object(je.createElement)(_e.NavigableMenu,null,Object(je.createElement)("div",{className:"block-library-video-tracks-editor__single-track-editor"},Object(je.createElement)("span",{className:"block-library-video-tracks-editor__single-track-editor-edit-track-label"},Object(ke.__)("Edit track")),Object(je.createElement)("span",null,Object(ke.__)("File"),": ",Object(je.createElement)("b",null,s)),Object(je.createElement)("div",{className:"block-library-video-tracks-editor__single-track-editor-label-language"},Object(je.createElement)(_e.TextControl,{autoFocus:!0,onChange:e=>n({...t,label:e}),label:Object(ke.__)("Label"),value:l,help:Object(ke.__)("Title of track")}),Object(je.createElement)(_e.TextControl,{onChange:e=>n({...t,srcLang:e}),label:Object(ke.__)("Source language"),value:c,help:Object(ke.__)("Language tag (en, fr, etc.)")})),Object(je.createElement)(_e.SelectControl,{className:"block-library-video-tracks-editor__single-track-editor-kind-select",options:pp,value:i,label:Object(ke.__)("Kind"),onChange:e=>{n({...t,kind:e})}}),Object(je.createElement)("div",{className:"block-library-video-tracks-editor__single-track-editor-buttons-container"},Object(je.createElement)(_e.Button,{variant:"secondary",onClick:()=>{const e={};let o=!1;""===l&&(e.label=Object(ke.__)("English"),o=!0),""===c&&(e.srcLang="en",o=!0),void 0===t.kind&&(e.kind=bp,o=!0),o&&n({...t,...e}),r()}},Object(ke.__)("Close")),Object(je.createElement)(_e.Button,{isDestructive:!0,variant:"link",onClick:o},Object(ke.__)("Remove track")))))}function Op(e){let{tracks:t=[],onChange:n}=e;const r=Object(ze.useSelect)(e=>e(we.store).getSettings().mediaUpload,[]),[o,a]=Object(je.useState)(null);return r?Object(je.createElement)(_e.Dropdown,{contentClassName:"block-library-video-tracks-editor",renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return Object(je.createElement)(_e.ToolbarButton,{label:Object(ke.__)("Text tracks"),showTooltip:!0,"aria-expanded":t,"aria-haspopup":"true",onClick:n,icon:gp})},renderContent:e=>{let{}=e;return null!==o?Object(je.createElement)(vp,{track:t[o],onChange:e=>{const r=[...t];r[o]=e,n(r)},onClose:()=>a(null),onRemove:()=>{n(t.filter((e,t)=>t!==o)),a(null)}}):Object(je.createElement)(je.Fragment,null,Object(je.createElement)(_e.NavigableMenu,null,Object(je.createElement)(hp,{tracks:t,onEditPress:a}),Object(je.createElement)(_e.MenuGroup,{className:"block-library-video-tracks-editor__add-tracks-container",label:Object(ke.__)("Add tracks")},Object(je.createElement)(we.MediaUpload,{onSelect:e=>{let{url:r}=e;const o=t.length;n([...t,{src:r}]),a(o)},allowedTypes:dp,render:e=>{let{open:t}=e;return Object(je.createElement)(_e.MenuItem,{icon:mp.a,onClick:t},Object(ke.__)("Open Media Library"))}}),Object(je.createElement)(we.MediaUploadCheck,null,Object(je.createElement)(_e.FormFileUpload,{onChange:e=>{const o=e.target.files,l=t.length;r({allowedTypes:dp,filesList:o,onFileChange:e=>{let[{url:r}]=e;const o=[...t];o[l]||(o[l]={}),o[l]={...t[l],src:r},n(o),a(l)}})},accept:".vtt,text/vtt",render:e=>{let{openFileDialog:t}=e;return Object(je.createElement)(_e.MenuItem,{icon:Sa.a,onClick:()=>{t()}},Object(ke.__)("Upload"))}})))))}}):null}function jp(e){let{tracks:t=[]}=e;return t.map(e=>Object(je.createElement)("track",Object(mt.a)({key:e.src},e)))}const yp=["video"],fp=["image"];var _p=Object(_e.withNotices)((function e(t){let{isSelected:n,noticeUI:r,attributes:o,className:a,setAttributes:l,insertBlocksAfter:c,onReplace:i,noticeOperations:s}=t;const u=Object(nt.useInstanceId)(e),m=Object(je.useRef)(),d=Object(je.useRef)(),{id:b,caption:p,controls:g,poster:h,src:v,tracks:O}=o,j=!b&&Object(Pe.isBlobURL)(v),y=Object(ze.useSelect)(e=>e(we.store).getSettings().mediaUpload);function f(e){var t,n;e&&e.url?l({src:e.url,id:e.id,poster:(null===(t=e.image)||void 0===t?void 0:t.src)!==e.icon?null===(n=e.image)||void 0===n?void 0:n.src:void 0}):l({src:void 0,id:void 0,poster:void 0})}function _(e){if(e!==v){const t=Ge({attributes:{url:e}});if(void 0!==t)return void i(t);l({src:e,id:void 0,poster:void 0})}}function k(e){s.removeAllNotices(),s.createErrorNotice(e)}Object(je.useEffect)(()=>{if(!b&&Object(Pe.isBlobURL)(v)){const e=Object(Pe.getBlobByURL)(v);e&&y({filesList:[e],onFileChange:e=>{let[{url:t}]=e;l({src:t})},onError:e=>{s.createErrorNotice(e)},allowedTypes:yp})}},[]),Object(je.useEffect)(()=>{m.current&&m.current.load()},[h]);const w=tt()(a,{"is-transient":j}),E=Object(we.useBlockProps)({className:w});if(!v)return Object(je.createElement)("div",E,Object(je.createElement)(we.MediaPlaceholder,{icon:Object(je.createElement)(we.BlockIcon,{icon:ip}),onSelect:f,onSelectURL:_,accept:"video/*",allowedTypes:yp,value:o,notices:r,onError:k}));const C="video-block__poster-image-description-"+u;return Object(je.createElement)(je.Fragment,null,Object(je.createElement)(we.BlockControls,{group:"block"},Object(je.createElement)(Op,{tracks:O,onChange:e=>{l({tracks:e})}})),Object(je.createElement)(we.BlockControls,{group:"other"},Object(je.createElement)(we.MediaReplaceFlow,{mediaId:b,mediaURL:v,allowedTypes:yp,accept:"video/*",onSelect:f,onSelectURL:_,onError:k})),Object(je.createElement)(we.InspectorControls,null,Object(je.createElement)(_e.PanelBody,{title:Object(ke.__)("Video settings")},Object(je.createElement)(up,{setAttributes:l,attributes:o}),Object(je.createElement)(we.MediaUploadCheck,null,Object(je.createElement)(_e.BaseControl,{className:"editor-video-poster-control"},Object(je.createElement)(_e.BaseControl.VisualLabel,null,Object(ke.__)("Poster image")),Object(je.createElement)(we.MediaUpload,{title:Object(ke.__)("Select poster image"),onSelect:function(e){l({poster:e.url})},allowedTypes:fp,render:e=>{let{open:t}=e;return Object(je.createElement)(_e.Button,{variant:"primary",onClick:t,ref:d,"aria-describedby":C},h?Object(ke.__)("Replace"):Object(ke.__)("Select"))}}),Object(je.createElement)("p",{id:C,hidden:!0},h?Object(ke.sprintf)(Object(ke.__)("The current poster image url is %s"),h):Object(ke.__)("There is no poster image currently selected")),!!h&&Object(je.createElement)(_e.Button,{onClick:function(){l({poster:void 0}),d.current.focus()},variant:"tertiary"},Object(ke.__)("Remove")))))),Object(je.createElement)("figure",E,Object(je.createElement)(_e.Disabled,{isDisabled:!n},Object(je.createElement)("video",{controls:g,poster:h,src:v,ref:m},Object(je.createElement)(jp,{tracks:O}))),j&&Object(je.createElement)(_e.Spinner,null),(!we.RichText.isEmpty(p)||n)&&Object(je.createElement)(we.RichText,{tagName:"figcaption","aria-label":Object(ke.__)("Video caption text"),placeholder:Object(ke.__)("Add caption"),value:p,onChange:e=>l({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>c(Object(Oe.createBlock)("core/paragraph"))})))}));var kp={from:[{type:"files",isMatch:e=>1===e.length&&0===e[0].type.indexOf("video/"),transform(e){const t=e[0];return Object(Oe.createBlock)("core/video",{src:Object(Pe.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:e=>{let{named:{src:t,mp4:n,m4v:r,webm:o,ogv:a,flv:l}}=e;return t||n||r||o||a||l}},poster:{type:"string",shortcode:e=>{let{named:{poster:t}}=e;return t}},loop:{type:"string",shortcode:e=>{let{named:{loop:t}}=e;return t}},autoplay:{type:"string",shortcode:e=>{let{named:{autoplay:t}}=e;return t}},preload:{type:"string",shortcode:e=>{let{named:{preload:t}}=e;return t}}}}]};const Ep={apiVersion:2,name:"core/video",title:"Video",category:"media",description:"Embed a video from your media library or upload a new one.",keywords:["movie"],textdomain:"default",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number"},loop:{type:"boolean",source:"attribute",selector:"video",attribute:"loop"},muted:{type:"boolean",source:"attribute",selector:"video",attribute:"muted"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},preload:{type:"string",source:"attribute",selector:"video",attribute:"preload",default:"metadata"},src:{type:"string",source:"attribute",selector:"video",attribute:"src"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"},tracks:{type:"array",items:{type:"object"},default:[]}},supports:{anchor:!0,align:!0},editorStyle:"wp-block-video-editor",style:"wp-block-video"},{name:Cp}=Ep,xp={icon:ip,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm",caption:Object(ke.__)("Wood thrush singing in Central Park, NYC.")}},transforms:kp,edit:_p,save:function(e){let{attributes:t}=e;const{autoplay:n,caption:r,controls:o,loop:a,muted:l,poster:c,preload:i,src:s,playsInline:u,tracks:m}=t;return Object(je.createElement)("figure",we.useBlockProps.save(),s&&Object(je.createElement)("video",{autoPlay:n,controls:o,loop:a,muted:l,poster:c,preload:"metadata"!==i?i:void 0,src:s,playsInline:u},Object(je.createElement)(jp,{tracks:m})),!we.RichText.isEmpty(r)&&Object(je.createElement)(we.RichText.Content,{tagName:"figcaption",value:r}))}},Sp=e=>{if(!e)return;const{metadata:t,settings:n,name:r}=e;Object(Oe.registerBlockType)({name:r,...t},n)},Bp=()=>[I,y,O,h,k,X,r,o,a,l,c,i,window.wp&&window.wp.oldEditor?s:null,u,m,d,b,p,g,v,j,f,_,E,C,x,N,z,P,U,W,ee,te,ne,re,oe,ie,se,ue,me,de,ge,he,ve,S,B,T,ae,ce,le,$,be,q,A,H,L,M,V,G,F,D,Z,K,J,Q,R,w,pe,Y],Tp=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Bp();e.forEach(Sp),Object(Oe.setDefaultBlockName)(qi),window.wp&&window.wp.oldEditor&&Object(Oe.setFreeformContentHandlerName)(Zt),Object(Oe.setUnregisteredTypeHandlerName)(ql),Object(Oe.setGroupingBlockName)(Qo)},Np=void 0},K9lf:function(e,t){e.exports=window.wp.compose},KEfo:function(e,t){e.exports=window.wp.viewport},Mmq9:function(e,t){e.exports=window.wp.url},Mp0b:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"}));t.a=a},NMb1:function(e,t){e.exports=window.wp.deprecated},NTP4:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=a},OE6V:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));t.a=a},OzlF:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));t.a=a},RMJe:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));t.a=a},RxS6:function(e,t){e.exports=window.wp.keycodes},TSYQ:function(e,t,n){var r; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see diff --git a/wp-includes/js/dist/components.js b/wp-includes/js/dist/components.js index 290c055cc1..318c3e7e85 100644 --- a/wp-includes/js/dist/components.js +++ b/wp-includes/js/dist/components.js @@ -5452,7 +5452,7 @@ function getCalendarDaySettings(day, ariaLabelFormat, daySize, modifiers, phrase /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _emotion_cache__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("+1VY"); -/* harmony import */ var _emotion_element_1c22787f_browser_esm_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("vAQN"); +/* harmony import */ var _emotion_element_699e6908_browser_esm_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("ek6p"); /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("pVnL"); /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _emotion_weak_memoize__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("gRFL"); @@ -5475,7 +5475,7 @@ function getCalendarDaySettings(day, ariaLabelFormat, daySize, modifiers, phrase var pkg = { name: "@emotion/react", - version: "11.6.0", + version: "11.7.0", main: "dist/emotion-react.cjs.js", module: "dist/emotion-react.esm.js", browser: { @@ -5552,15 +5552,15 @@ var pkg = { var jsx = function jsx(type, props) { var args = arguments; - if (props == null || !_emotion_element_1c22787f_browser_esm_js__WEBPACK_IMPORTED_MODULE_2__[/* h */ "f"].call(props, 'css')) { + if (props == null || !_emotion_element_699e6908_browser_esm_js__WEBPACK_IMPORTED_MODULE_2__[/* h */ "f"].call(props, 'css')) { // $FlowFixMe return react__WEBPACK_IMPORTED_MODULE_0__["createElement"].apply(undefined, args); } var argsLength = args.length; var createElementArgArray = new Array(argsLength); - createElementArgArray[0] = _emotion_element_1c22787f_browser_esm_js__WEBPACK_IMPORTED_MODULE_2__[/* E */ "b"]; - createElementArgArray[1] = Object(_emotion_element_1c22787f_browser_esm_js__WEBPACK_IMPORTED_MODULE_2__[/* c */ "e"])(type, props); + createElementArgArray[0] = _emotion_element_699e6908_browser_esm_js__WEBPACK_IMPORTED_MODULE_2__[/* E */ "b"]; + createElementArgArray[1] = Object(_emotion_element_699e6908_browser_esm_js__WEBPACK_IMPORTED_MODULE_2__[/* c */ "e"])(type, props); for (var i = 2; i < argsLength; i++) { createElementArgArray[i] = args[i]; @@ -5574,11 +5574,11 @@ var warnedAboutCssPropForGlobal = false; // maintain place over rerenders. // initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild // initial client-side render from SSR, use place of hydrating tag -var Global = /* #__PURE__ */Object(_emotion_element_1c22787f_browser_esm_js__WEBPACK_IMPORTED_MODULE_2__[/* w */ "g"])(function (props, cache) { +var Global = /* #__PURE__ */Object(_emotion_element_699e6908_browser_esm_js__WEBPACK_IMPORTED_MODULE_2__[/* w */ "g"])(function (props, cache) { if (false) {} var styles = props.styles; - var serialized = Object(_emotion_serialize__WEBPACK_IMPORTED_MODULE_7__[/* serializeStyles */ "a"])([styles], undefined, Object(react__WEBPACK_IMPORTED_MODULE_0__["useContext"])(_emotion_element_1c22787f_browser_esm_js__WEBPACK_IMPORTED_MODULE_2__[/* T */ "c"])); + var serialized = Object(_emotion_serialize__WEBPACK_IMPORTED_MODULE_7__[/* serializeStyles */ "a"])([styles], undefined, Object(react__WEBPACK_IMPORTED_MODULE_0__["useContext"])(_emotion_element_699e6908_browser_esm_js__WEBPACK_IMPORTED_MODULE_2__[/* T */ "c"])); // but it is based on a constant that will never change at runtime // it's effectively like having two implementations and switching them out // so it's not actually breaking anything @@ -5728,7 +5728,7 @@ var Noop = function Noop() { return null; }; -var ClassNames = /* #__PURE__ */Object(_emotion_element_1c22787f_browser_esm_js__WEBPACK_IMPORTED_MODULE_2__[/* w */ "g"])(function (props, cache) { +var ClassNames = /* #__PURE__ */Object(_emotion_element_699e6908_browser_esm_js__WEBPACK_IMPORTED_MODULE_2__[/* w */ "g"])(function (props, cache) { var hasRendered = false; var css = function css() { @@ -5764,7 +5764,7 @@ var ClassNames = /* #__PURE__ */Object(_emotion_element_1c22787f_browser_esm_js_ var content = { css: css, cx: cx, - theme: Object(react__WEBPACK_IMPORTED_MODULE_0__["useContext"])(_emotion_element_1c22787f_browser_esm_js__WEBPACK_IMPORTED_MODULE_2__[/* T */ "c"]) + theme: Object(react__WEBPACK_IMPORTED_MODULE_0__["useContext"])(_emotion_element_699e6908_browser_esm_js__WEBPACK_IMPORTED_MODULE_2__[/* T */ "c"]) }; var ele = props.children(content); hasRendered = true; @@ -6305,8 +6305,8 @@ var isPropValid = /* #__PURE__ */Object(emotion_memoize_browser_esm["a" /* defau /* harmony default export */ var emotion_is_prop_valid_browser_esm = (isPropValid); -// EXTERNAL MODULE: ./node_modules/@emotion/react/dist/emotion-element-1c22787f.browser.esm.js -var emotion_element_1c22787f_browser_esm = __webpack_require__("vAQN"); +// EXTERNAL MODULE: ./node_modules/@emotion/react/dist/emotion-element-699e6908.browser.esm.js +var emotion_element_699e6908_browser_esm = __webpack_require__("ek6p"); // EXTERNAL MODULE: ./node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js var emotion_utils_browser_esm = __webpack_require__("eVQB"); @@ -6398,7 +6398,7 @@ var emotion_styled_base_browser_esm_createStyled = function createStyled(tag, op } // $FlowFixMe: we need to cast StatelessFunctionalComponent to our PrivateStyledComponent class - var Styled = Object(emotion_element_1c22787f_browser_esm["g" /* w */])(function (props, cache, ref) { + var Styled = Object(emotion_element_699e6908_browser_esm["g" /* w */])(function (props, cache, ref) { var finalTag = shouldUseAs && props.as || baseTag; var className = ''; var classInterpolations = []; @@ -6411,7 +6411,7 @@ var emotion_styled_base_browser_esm_createStyled = function createStyled(tag, op mergedProps[key] = props[key]; } - mergedProps.theme = Object(external_React_["useContext"])(emotion_element_1c22787f_browser_esm["c" /* T */]); + mergedProps.theme = Object(external_React_["useContext"])(emotion_element_699e6908_browser_esm["c" /* T */]); } if (typeof props.className === 'string') { @@ -12401,7 +12401,7 @@ __webpack_require__.d(__webpack_exports__, "CardHeader", function() { return /* __webpack_require__.d(__webpack_exports__, "CardMedia", function() { return /* reexport */ card_media_component; }); __webpack_require__.d(__webpack_exports__, "CheckboxControl", function() { return /* reexport */ CheckboxControl; }); __webpack_require__.d(__webpack_exports__, "ClipboardButton", function() { return /* reexport */ ClipboardButton; }); -__webpack_require__.d(__webpack_exports__, "__experimentalColorEdit", function() { return /* reexport */ ColorEdit; }); +__webpack_require__.d(__webpack_exports__, "__experimentalPaletteEdit", function() { return /* reexport */ PaletteEdit; }); __webpack_require__.d(__webpack_exports__, "ColorIndicator", function() { return /* reexport */ color_indicator; }); __webpack_require__.d(__webpack_exports__, "ColorPalette", function() { return /* reexport */ ColorPalette; }); __webpack_require__.d(__webpack_exports__, "ColorPicker", function() { return /* reexport */ LegacyAdapter; }); @@ -35634,45 +35634,6 @@ var shallowEqual = __webpack_require__("uqqE"); // EXTERNAL MODULE: ./node_modules/reakit-utils/es/dom.js var dom = __webpack_require__("reMF"); -// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js -// import { isHTMLElement } from './instanceOf'; -function getBoundingClientRect(element, // eslint-disable-next-line unused-imports/no-unused-vars -includeScale) { - if (includeScale === void 0) { - includeScale = false; - } - - var rect = element.getBoundingClientRect(); - var scaleX = 1; - var scaleY = 1; // FIXME: - // `offsetWidth` returns an integer while `getBoundingClientRect` - // returns a float. This results in `scaleX` or `scaleY` being - // non-1 when it should be for elements that aren't a full pixel in - // width or height. - // if (isHTMLElement(element) && includeScale) { - // const offsetHeight = element.offsetHeight; - // const offsetWidth = element.offsetWidth; - // // Do not attempt to divide by 0, otherwise we get `Infinity` as scale - // // Fallback to 1 in case both values are `0` - // if (offsetWidth > 0) { - // scaleX = rect.width / offsetWidth || 1; - // } - // if (offsetHeight > 0) { - // scaleY = rect.height / offsetHeight || 1; - // } - // } - - return { - width: rect.width / scaleX, - height: rect.height / scaleY, - top: rect.top / scaleY, - right: rect.right / scaleX, - bottom: rect.bottom / scaleY, - left: rect.left / scaleX, - x: rect.left / scaleX, - y: rect.top / scaleY - }; -} // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getWindow.js function getWindow_getWindow(node) { if (node == null) { @@ -35686,17 +35647,6 @@ function getWindow_getWindow(node) { return node; } -// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js - -function getWindowScroll(node) { - var win = getWindow_getWindow(node); - var scrollLeft = win.pageXOffset; - var scrollTop = win.pageYOffset; - return { - scrollLeft: scrollLeft, - scrollTop: scrollTop - }; -} // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js @@ -35721,6 +35671,58 @@ function isShadowRoot(node) { } +// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/math.js +var math_max = Math.max; +var math_min = Math.min; +var round = Math.round; +// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js + + +function getBoundingClientRect(element, includeScale) { + if (includeScale === void 0) { + includeScale = false; + } + + var rect = element.getBoundingClientRect(); + var scaleX = 1; + var scaleY = 1; + + if (isHTMLElement(element) && includeScale) { + var offsetHeight = element.offsetHeight; + var offsetWidth = element.offsetWidth; // Do not attempt to divide by 0, otherwise we get `Infinity` as scale + // Fallback to 1 in case both values are `0` + + if (offsetWidth > 0) { + scaleX = round(rect.width) / offsetWidth || 1; + } + + if (offsetHeight > 0) { + scaleY = round(rect.height) / offsetHeight || 1; + } + } + + return { + width: rect.width / scaleX, + height: rect.height / scaleY, + top: rect.top / scaleY, + right: rect.right / scaleX, + bottom: rect.bottom / scaleY, + left: rect.left / scaleX, + x: rect.left / scaleX, + y: rect.top / scaleY + }; +} +// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js + +function getWindowScroll(node) { + var win = getWindow_getWindow(node); + var scrollLeft = win.pageXOffset; + var scrollTop = win.pageYOffset; + return { + scrollLeft: scrollLeft, + scrollTop: scrollTop + }; +} // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js function getHTMLElementScroll(element) { return { @@ -35790,10 +35792,11 @@ function isScrollParent(element) { + function isElementScaled(element) { var rect = element.getBoundingClientRect(); - var scaleX = rect.width / element.offsetWidth || 1; - var scaleY = rect.height / element.offsetHeight || 1; + var scaleX = round(rect.width) / element.offsetWidth || 1; + var scaleY = round(rect.height) / element.offsetHeight || 1; return scaleX !== 1 || scaleY !== 1; } // Returns the composite rect of an element relative to its offsetParent. // Composite means it takes into account transforms as well as layout. @@ -36485,10 +36488,6 @@ function popperOffsets_popperOffsets(_ref) { fn: popperOffsets_popperOffsets, data: {} }); -// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/math.js -var math_max = Math.max; -var math_min = Math.min; -var round = Math.round; // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/computeStyles.js @@ -36514,8 +36513,8 @@ function roundOffsetsByDPR(_ref) { var win = window; var dpr = win.devicePixelRatio || 1; return { - x: round(round(x * dpr) / dpr) || 0, - y: round(round(y * dpr) / dpr) || 0 + x: round(x * dpr) / dpr || 0, + y: round(y * dpr) / dpr || 0 }; } @@ -36530,7 +36529,8 @@ function mapToStyles(_ref2) { position = _ref2.position, gpuAcceleration = _ref2.gpuAcceleration, adaptive = _ref2.adaptive, - roundOffsets = _ref2.roundOffsets; + roundOffsets = _ref2.roundOffsets, + isFixed = _ref2.isFixed; var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets, _ref3$x = _ref3.x, @@ -36562,16 +36562,18 @@ function mapToStyles(_ref2) { offsetParent = offsetParent; if (placement === enums_top || (placement === enums_left || placement === enums_right) && variation === enums_end) { - sideY = enums_bottom; // $FlowFixMe[prop-missing] - - y -= offsetParent[heightProp] - popperRect.height; + sideY = enums_bottom; + var offsetY = isFixed && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing] + offsetParent[heightProp]; + y -= offsetY - popperRect.height; y *= gpuAcceleration ? 1 : -1; } if (placement === enums_left || (placement === enums_top || placement === enums_bottom) && variation === enums_end) { - sideX = enums_right; // $FlowFixMe[prop-missing] - - x -= offsetParent[widthProp] - popperRect.width; + sideX = enums_right; + var offsetX = isFixed && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing] + offsetParent[widthProp]; + x -= offsetX - popperRect.width; x *= gpuAcceleration ? 1 : -1; } } @@ -36606,7 +36608,8 @@ function computeStyles(_ref4) { variation: getVariation(state.placement), popper: state.elements.popper, popperRect: state.rects.popper, - gpuAcceleration: gpuAcceleration + gpuAcceleration: gpuAcceleration, + isFixed: state.options.strategy === 'fixed' }; if (state.modifiersData.popperOffsets != null) { @@ -36727,6 +36730,7 @@ function applyStyles_effect(_ref2) { }); // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/offset.js + // eslint-disable-next-line import/no-unused-modules function distanceAndSkiddingToXY(placement, rects, offset) { var basePlacement = getBasePlacement(placement); @@ -36935,7 +36939,7 @@ function getInnerBoundingClientRect(element) { } function getClientRectFromMixedType(element, clippingParent) { - return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isHTMLElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element))); + return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element))); } // A "clipping parent" is an overflowable container with the characteristic of // clipping (or hiding) overflowing elements with a position different from // `initial` @@ -36952,7 +36956,7 @@ function getClippingParents(element) { return clippingParents.filter(function (clippingParent) { - return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body'; + return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body' && (canEscapeClipping ? getComputedStyle_getComputedStyle(clippingParent).position !== 'static' : true); }); } // Gets the maximum area that the element is visible in due to any number of // clipping parents @@ -37264,6 +37268,10 @@ function getAltAxis(axis) { function within(min, value, max) { return math_max(min, math_min(value, max)); } +function withinMaxClamp(min, value, max) { + var v = within(min, value, max); + return v > max ? max : v; +} // CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js @@ -37310,6 +37318,14 @@ function preventOverflow_preventOverflow(_ref) { var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, { placement: state.placement })) : tetherOffset; + var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? { + mainAxis: tetherOffsetValue, + altAxis: tetherOffsetValue + } : Object.assign({ + mainAxis: 0, + altAxis: 0 + }, tetherOffsetValue); + var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null; var data = { x: 0, y: 0 @@ -37319,13 +37335,15 @@ function preventOverflow_preventOverflow(_ref) { return; } - if (checkMainAxis || checkAltAxis) { + if (checkMainAxis) { + var _offsetModifierState$; + var mainSide = mainAxis === 'y' ? enums_top : enums_left; var altSide = mainAxis === 'y' ? enums_bottom : enums_right; var len = mainAxis === 'y' ? 'height' : 'width'; var offset = popperOffsets[mainAxis]; - var min = popperOffsets[mainAxis] + overflow[mainSide]; - var max = popperOffsets[mainAxis] - overflow[altSide]; + var min = offset + overflow[mainSide]; + var max = offset - overflow[altSide]; var additive = tether ? -popperRect[len] / 2 : 0; var minLen = variation === enums_start ? referenceRect[len] : popperRect[len]; var maxLen = variation === enums_start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go @@ -37345,36 +37363,45 @@ function preventOverflow_preventOverflow(_ref) { // width or height) var arrowLen = within(0, referenceRect[len], arrowRect[len]); - var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - tetherOffsetValue : minLen - arrowLen - arrowPaddingMin - tetherOffsetValue; - var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + tetherOffsetValue : maxLen + arrowLen + arrowPaddingMax + tetherOffsetValue; + var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis; + var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis; var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow); var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0; - var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0; - var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset; - var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue; + var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0; + var tetherMin = offset + minOffset - offsetModifierValue - clientOffset; + var tetherMax = offset + maxOffset - offsetModifierValue; + var preventedOffset = within(tether ? math_min(min, tetherMin) : min, offset, tether ? math_max(max, tetherMax) : max); + popperOffsets[mainAxis] = preventedOffset; + data[mainAxis] = preventedOffset - offset; + } - if (checkMainAxis) { - var preventedOffset = within(tether ? math_min(min, tetherMin) : min, offset, tether ? math_max(max, tetherMax) : max); - popperOffsets[mainAxis] = preventedOffset; - data[mainAxis] = preventedOffset - offset; - } + if (checkAltAxis) { + var _offsetModifierState$2; - if (checkAltAxis) { - var _mainSide = mainAxis === 'x' ? enums_top : enums_left; + var _mainSide = mainAxis === 'x' ? enums_top : enums_left; - var _altSide = mainAxis === 'x' ? enums_bottom : enums_right; + var _altSide = mainAxis === 'x' ? enums_bottom : enums_right; - var _offset = popperOffsets[altAxis]; + var _offset = popperOffsets[altAxis]; - var _min = _offset + overflow[_mainSide]; + var _len = altAxis === 'y' ? 'height' : 'width'; - var _max = _offset - overflow[_altSide]; + var _min = _offset + overflow[_mainSide]; - var _preventedOffset = within(tether ? math_min(_min, tetherMin) : _min, _offset, tether ? math_max(_max, tetherMax) : _max); + var _max = _offset - overflow[_altSide]; - popperOffsets[altAxis] = _preventedOffset; - data[altAxis] = _preventedOffset - _offset; - } + var isOriginSide = [enums_top, enums_left].indexOf(basePlacement) !== -1; + + var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0; + + var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis; + + var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max; + + var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max); + + popperOffsets[altAxis] = _preventedOffset; + data[altAxis] = _preventedOffset - _offset; } state.modifiersData[name] = data; @@ -39480,9 +39507,6 @@ function VStack(props, forwardedRef) { const ConnectedVStack = Object(context_connect["a" /* contextConnect */])(VStack, 'VStack'); /* harmony default export */ var v_stack_component = (ConnectedVStack); -// EXTERNAL MODULE: ./node_modules/colord/plugins/a11y.mjs -var a11y = __webpack_require__("7bKH"); - // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/dropdown/index.js @@ -39624,10 +39648,10 @@ function Option(_ref) { } = _ref; const optionButton = Object(external_wp_element_["createElement"])(build_module_button["a" /* default */], Object(esm_extends["a" /* default */])({ isPressed: isSelected, - className: classnames_default()(className, 'components-circular-option-picker__option') + className: "components-circular-option-picker__option" }, additionalProps)); return Object(external_wp_element_["createElement"])("div", { - className: "components-circular-option-picker__option-wrapper" + className: classnames_default()(className, 'components-circular-option-picker__option-wrapper') }, tooltipText ? Object(external_wp_element_["createElement"])(build_module_tooltip["a" /* default */], { text: tooltipText }, optionButton) : optionButton, isSelected && Object(external_wp_element_["createElement"])(build_module_icon["a" /* default */], Object(esm_extends["a" /* default */])({ @@ -39691,6 +39715,978 @@ CircularOptionPicker.Option = Option; CircularOptionPicker.ButtonAction = ButtonAction; CircularOptionPicker.DropdownLinkAction = DropdownLinkAction; +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-bar/constants.js +const COLOR_POPOVER_PROPS = { + className: 'components-custom-gradient-picker__color-picker-popover', + position: 'top' +}; +const GRADIENT_MARKERS_WIDTH = 16; +const INSERT_POINT_WIDTH = 16; +const MINIMUM_ABSOLUTE_LEFT_POSITION = 5; +const MINIMUM_DISTANCE_BETWEEN_INSERTER_AND_POINT = 10; +const MINIMUM_DISTANCE_BETWEEN_POINTS = 0; +const MINIMUM_SIGNIFICANT_MOVE = 5; +const KEYBOARD_CONTROL_POINT_VARIATION = MINIMUM_DISTANCE_BETWEEN_INSERTER_AND_POINT; +const MINIMUM_DISTANCE_BETWEEN_INSERTER_AND_MARKER = (INSERT_POINT_WIDTH + GRADIENT_MARKERS_WIDTH) / 2; + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-bar/utils.js +/** + * Internal dependencies + */ + +/** + * Control point for the gradient bar. + * + * @typedef {Object} ControlPoint + * @property {string} color Color of the control point. + * @property {number} position Integer position of the control point as a percentage. + */ + +/** + * Color as parsed from the gradient by gradient-parser. + * + * @typedef {Object} Color + * @property {string} r Red component. + * @property {string} g Green component. + * @property {string} b Green component. + * @property {string} [a] Optional alpha component. + */ + +/** + * Clamps a number between 0 and 100. + * + * @param {number} value Value to clamp. + * + * @return {number} Value clamped between 0 and 100. + */ + +function clampPercent(value) { + return Math.max(0, Math.min(100, value)); +} +/** + * Check if a control point is overlapping with another. + * + * @param {ControlPoint[]} value Array of control points. + * @param {number} initialIndex Index of the position to test. + * @param {number} newPosition New position of the control point. + * @param {number} minDistance Distance considered to be overlapping. + * + * @return {boolean} True if the point is overlapping. + */ + +function isOverlapping(value, initialIndex, newPosition) { + let minDistance = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : MINIMUM_DISTANCE_BETWEEN_POINTS; + const initialPosition = value[initialIndex].position; + const minPosition = Math.min(initialPosition, newPosition); + const maxPosition = Math.max(initialPosition, newPosition); + return value.some((_ref, index) => { + let { + position + } = _ref; + return index !== initialIndex && (Math.abs(position - newPosition) < minDistance || minPosition < position && position < maxPosition); + }); +} +/** + * Adds a control point from an array and returns the new array. + * + * @param {ControlPoint[]} points Array of control points. + * @param {number} position Position to insert the new point. + * @param {Color} color Color to update the control point at index. + * + * @return {ControlPoint[]} New array of control points. + */ + +function addControlPoint(points, position, color) { + const nextIndex = points.findIndex(point => point.position > position); + const newPoint = { + color, + position + }; + const newPoints = points.slice(); + newPoints.splice(nextIndex - 1, 0, newPoint); + return newPoints; +} +/** + * Removes a control point from an array and returns the new array. + * + * @param {ControlPoint[]} points Array of control points. + * @param {number} index Index to remove. + * + * @return {ControlPoint[]} New array of control points. + */ + +function removeControlPoint(points, index) { + return points.filter((point, pointIndex) => { + return pointIndex !== index; + }); +} +/** + * Updates a control point from an array and returns the new array. + * + * @param {ControlPoint[]} points Array of control points. + * @param {number} index Index to update. + * @param {ControlPoint[]} newPoint New control point to replace the index. + * + * @return {ControlPoint[]} New array of control points. + */ + +function updateControlPoint(points, index, newPoint) { + const newValue = points.slice(); + newValue[index] = newPoint; + return newValue; +} +/** + * Updates the position of a control point from an array and returns the new array. + * + * @param {ControlPoint[]} points Array of control points. + * @param {number} index Index to update. + * @param {number} newPosition Position to move the control point at index. + * + * @return {ControlPoint[]} New array of control points. + */ + +function updateControlPointPosition(points, index, newPosition) { + if (isOverlapping(points, index, newPosition)) { + return points; + } + + const newPoint = { ...points[index], + position: newPosition + }; + return updateControlPoint(points, index, newPoint); +} +/** + * Updates the position of a control point from an array and returns the new array. + * + * @param {ControlPoint[]} points Array of control points. + * @param {number} index Index to update. + * @param {Color} newColor Color to update the control point at index. + * + * @return {ControlPoint[]} New array of control points. + */ + +function updateControlPointColor(points, index, newColor) { + const newPoint = { ...points[index], + color: newColor + }; + return updateControlPoint(points, index, newPoint); +} +/** + * Updates the position of a control point from an array and returns the new array. + * + * @param {ControlPoint[]} points Array of control points. + * @param {number} position Position of the color stop. + * @param {string} newColor Color to update the control point at index. + * + * @return {ControlPoint[]} New array of control points. + */ + +function updateControlPointColorByPosition(points, position, newColor) { + const index = points.findIndex(point => point.position === position); + return updateControlPointColor(points, index, newColor); +} +/** + * Gets the horizontal coordinate when dragging a control point with the mouse. + * + * @param {number} mouseXCoordinate Horizontal coordinate of the mouse position. + * @param {Element} containerElement Container for the gradient picker. + * @param {number} positionedElementWidth Width of the positioned element. + * + * @return {number} Whole number percentage from the left. + */ + +function getHorizontalRelativeGradientPosition(mouseXCoordinate, containerElement, positionedElementWidth) { + if (!containerElement) { + return; + } + + const { + x, + width + } = containerElement.getBoundingClientRect(); + const absolutePositionValue = mouseXCoordinate - x - MINIMUM_ABSOLUTE_LEFT_POSITION - positionedElementWidth / 2; + const availableWidth = width - MINIMUM_ABSOLUTE_LEFT_POSITION - INSERT_POINT_WIDTH; + return Math.round(clampPercent(absolutePositionValue * 100 / availableWidth)); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-bar/control-points.js + + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + +/** + * Internal dependencies + */ + + + + + + + + +function ControlPointButton(_ref) { + let { + isOpen, + position, + color, + ...additionalProps + } = _ref; + const instanceId = Object(external_wp_compose_["useInstanceId"])(ControlPointButton); + const descriptionId = `components-custom-gradient-picker__control-point-button-description-${instanceId}`; + return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(build_module_button["a" /* default */], Object(esm_extends["a" /* default */])({ + "aria-label": Object(external_wp_i18n_["sprintf"])( // translators: %1$s: gradient position e.g: 70, %2$s: gradient color code e.g: rgb(52,121,151). + Object(external_wp_i18n_["__"])('Gradient control point at position %1$s%% with color code %2$s.'), position, color), + "aria-describedby": descriptionId, + "aria-haspopup": "true", + "aria-expanded": isOpen, + className: classnames_default()('components-custom-gradient-picker__control-point-button', { + 'is-active': isOpen + }), + style: { + left: `${position}%` + } + }, additionalProps)), Object(external_wp_element_["createElement"])(component["a" /* default */], { + id: descriptionId + }, Object(external_wp_i18n_["__"])('Use your left or right arrow keys or drag and drop with the mouse to change the gradient position. Press the button to change the color or remove the control point.'))); +} + +function ControlPoints(_ref2) { + let { + disableRemove, + disableAlpha, + gradientPickerDomRef, + ignoreMarkerPosition, + value: controlPoints, + onChange, + onStartControlPointChange, + onStopControlPointChange + } = _ref2; + const controlPointMoveState = Object(external_wp_element_["useRef"])(); + + const onMouseMove = event => { + const relativePosition = getHorizontalRelativeGradientPosition(event.clientX, gradientPickerDomRef.current, GRADIENT_MARKERS_WIDTH); + const { + initialPosition, + index, + significantMoveHappened + } = controlPointMoveState.current; + + if (!significantMoveHappened && Math.abs(initialPosition - relativePosition) >= MINIMUM_SIGNIFICANT_MOVE) { + controlPointMoveState.current.significantMoveHappened = true; + } + + onChange(updateControlPointPosition(controlPoints, index, relativePosition)); + }; + + const cleanEventListeners = () => { + if (window && window.removeEventListener && controlPointMoveState.current && controlPointMoveState.current.listenersActivated) { + window.removeEventListener('mousemove', onMouseMove); + window.removeEventListener('mouseup', cleanEventListeners); + onStopControlPointChange(); + controlPointMoveState.current.listenersActivated = false; + } + }; + + Object(external_wp_element_["useEffect"])(() => { + return () => { + cleanEventListeners(); + }; + }, []); + return controlPoints.map((point, index) => { + const initialPosition = point === null || point === void 0 ? void 0 : point.position; + return ignoreMarkerPosition !== initialPosition && Object(external_wp_element_["createElement"])(Dropdown, { + key: index, + onClose: onStopControlPointChange, + renderToggle: _ref3 => { + let { + isOpen, + onToggle + } = _ref3; + return Object(external_wp_element_["createElement"])(ControlPointButton, { + key: index, + onClick: () => { + if (controlPointMoveState.current && controlPointMoveState.current.significantMoveHappened) { + return; + } + + if (isOpen) { + onStopControlPointChange(); + } else { + onStartControlPointChange(); + } + + onToggle(); + }, + onMouseDown: () => { + if (window && window.addEventListener) { + controlPointMoveState.current = { + initialPosition, + index, + significantMoveHappened: false, + listenersActivated: true + }; + onStartControlPointChange(); + window.addEventListener('mousemove', onMouseMove); + window.addEventListener('mouseup', cleanEventListeners); + } + }, + onKeyDown: event => { + if (event.keyCode === external_wp_keycodes_["LEFT"]) { + // Stop propagation of the key press event to avoid focus moving + // to another editor area. + event.stopPropagation(); + onChange(updateControlPointPosition(controlPoints, index, clampPercent(point.position - KEYBOARD_CONTROL_POINT_VARIATION))); + } else if (event.keyCode === external_wp_keycodes_["RIGHT"]) { + // Stop propagation of the key press event to avoid focus moving + // to another editor area. + event.stopPropagation(); + onChange(updateControlPointPosition(controlPoints, index, clampPercent(point.position + KEYBOARD_CONTROL_POINT_VARIATION))); + } + }, + isOpen: isOpen, + position: point.position, + color: point.color + }); + }, + renderContent: _ref4 => { + let { + onClose + } = _ref4; + return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(LegacyAdapter, { + enableAlpha: !disableAlpha, + color: point.color, + onChange: color => { + onChange(updateControlPointColor(controlPoints, index, Object(colord["a" /* colord */])(color).toRgbString())); + } + }), !disableRemove && Object(external_wp_element_["createElement"])(build_module_button["a" /* default */], { + className: "components-custom-gradient-picker__remove-control-point", + onClick: () => { + onChange(removeControlPoint(controlPoints, index)); + onClose(); + }, + variant: "link" + }, Object(external_wp_i18n_["__"])('Remove Control Point'))); + }, + popoverProps: COLOR_POPOVER_PROPS + }); + }); +} + +function InsertPoint(_ref5) { + let { + value: controlPoints, + onChange, + onOpenInserter, + onCloseInserter, + insertPosition, + disableAlpha + } = _ref5; + const [alreadyInsertedPoint, setAlreadyInsertedPoint] = Object(external_wp_element_["useState"])(false); + return Object(external_wp_element_["createElement"])(Dropdown, { + className: "components-custom-gradient-picker__inserter", + onClose: () => { + onCloseInserter(); + }, + renderToggle: _ref6 => { + let { + isOpen, + onToggle + } = _ref6; + return Object(external_wp_element_["createElement"])(build_module_button["a" /* default */], { + "aria-expanded": isOpen, + "aria-haspopup": "true", + onClick: () => { + if (isOpen) { + onCloseInserter(); + } else { + setAlreadyInsertedPoint(false); + onOpenInserter(); + } + + onToggle(); + }, + className: "components-custom-gradient-picker__insert-point", + icon: plus["a" /* default */], + style: { + left: insertPosition !== null ? `${insertPosition}%` : undefined + } + }); + }, + renderContent: () => Object(external_wp_element_["createElement"])(LegacyAdapter, { + enableAlpha: !disableAlpha, + onChange: color => { + if (!alreadyInsertedPoint) { + onChange(addControlPoint(controlPoints, insertPosition, Object(colord["a" /* colord */])(color).toRgbString())); + setAlreadyInsertedPoint(true); + } else { + onChange(updateControlPointColorByPosition(controlPoints, insertPosition, Object(colord["a" /* colord */])(color).toRgbString())); + } + } + }), + popoverProps: COLOR_POPOVER_PROPS + }); +} + +ControlPoints.InsertPoint = InsertPoint; +/* harmony default export */ var control_points = (ControlPoints); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-bar/index.js + + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + + + +function customGradientBarReducer(state, action) { + switch (action.type) { + case 'MOVE_INSERTER': + if (state.id === 'IDLE' || state.id === 'MOVING_INSERTER') { + return { + id: 'MOVING_INSERTER', + insertPosition: action.insertPosition + }; + } + + break; + + case 'STOP_INSERTER_MOVE': + if (state.id === 'MOVING_INSERTER') { + return { + id: 'IDLE' + }; + } + + break; + + case 'OPEN_INSERTER': + if (state.id === 'MOVING_INSERTER') { + return { + id: 'INSERTING_CONTROL_POINT', + insertPosition: state.insertPosition + }; + } + + break; + + case 'CLOSE_INSERTER': + if (state.id === 'INSERTING_CONTROL_POINT') { + return { + id: 'IDLE' + }; + } + + break; + + case 'START_CONTROL_CHANGE': + if (state.id === 'IDLE') { + return { + id: 'MOVING_CONTROL_POINT' + }; + } + + break; + + case 'STOP_CONTROL_CHANGE': + if (state.id === 'MOVING_CONTROL_POINT') { + return { + id: 'IDLE' + }; + } + + break; + } + + return state; +} + +const customGradientBarReducerInitialState = { + id: 'IDLE' +}; +function CustomGradientBar(_ref) { + let { + background, + hasGradient, + value: controlPoints, + onChange, + disableInserter = false, + disableAlpha = false + } = _ref; + const gradientPickerDomRef = Object(external_wp_element_["useRef"])(); + const [gradientBarState, gradientBarStateDispatch] = Object(external_wp_element_["useReducer"])(customGradientBarReducer, customGradientBarReducerInitialState); + + const onMouseEnterAndMove = event => { + const insertPosition = getHorizontalRelativeGradientPosition(event.clientX, gradientPickerDomRef.current, INSERT_POINT_WIDTH); // If the insert point is close to an existing control point don't show it. + + if (Object(external_lodash_["some"])(controlPoints, _ref2 => { + let { + position + } = _ref2; + return Math.abs(insertPosition - position) < MINIMUM_DISTANCE_BETWEEN_INSERTER_AND_POINT; + })) { + if (gradientBarState.id === 'MOVING_INSERTER') { + gradientBarStateDispatch({ + type: 'STOP_INSERTER_MOVE' + }); + } + + return; + } + + gradientBarStateDispatch({ + type: 'MOVE_INSERTER', + insertPosition + }); + }; + + const onMouseLeave = () => { + gradientBarStateDispatch({ + type: 'STOP_INSERTER_MOVE' + }); + }; + + const isMovingInserter = gradientBarState.id === 'MOVING_INSERTER'; + const isInsertingControlPoint = gradientBarState.id === 'INSERTING_CONTROL_POINT'; + return Object(external_wp_element_["createElement"])("div", { + ref: gradientPickerDomRef, + className: classnames_default()('components-custom-gradient-picker__gradient-bar', { + 'has-gradient': hasGradient + }), + onMouseEnter: onMouseEnterAndMove, + onMouseMove: onMouseEnterAndMove, + style: { + background + }, + onMouseLeave: onMouseLeave + }, Object(external_wp_element_["createElement"])("div", { + className: "components-custom-gradient-picker__markers-container" + }, !disableInserter && (isMovingInserter || isInsertingControlPoint) && Object(external_wp_element_["createElement"])(control_points.InsertPoint, { + disableAlpha: disableAlpha, + insertPosition: gradientBarState.insertPosition, + value: controlPoints, + onChange: onChange, + onOpenInserter: () => { + gradientBarStateDispatch({ + type: 'OPEN_INSERTER' + }); + }, + onCloseInserter: () => { + gradientBarStateDispatch({ + type: 'CLOSE_INSERTER' + }); + } + }), Object(external_wp_element_["createElement"])(control_points, { + disableAlpha: disableAlpha, + disableRemove: disableInserter, + gradientPickerDomRef: gradientPickerDomRef, + ignoreMarkerPosition: isInsertingControlPoint ? gradientBarState.insertPosition : undefined, + value: controlPoints, + onChange: onChange, + onStartControlPointChange: () => { + gradientBarStateDispatch({ + type: 'START_CONTROL_CHANGE' + }); + }, + onStopControlPointChange: () => { + gradientBarStateDispatch({ + type: 'STOP_CONTROL_CHANGE' + }); + } + }))); +} + +// EXTERNAL MODULE: ./node_modules/gradient-parser/build/node.js +var build_node = __webpack_require__("Jx1U"); +var node_default = /*#__PURE__*/__webpack_require__.n(build_node); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-picker/constants.js +/** + * WordPress dependencies + */ + +const DEFAULT_GRADIENT = 'linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)'; +const DEFAULT_LINEAR_GRADIENT_ANGLE = 180; +const HORIZONTAL_GRADIENT_ORIENTATION = { + type: 'angular', + value: 90 +}; +const GRADIENT_OPTIONS = [{ + value: 'linear-gradient', + label: Object(external_wp_i18n_["__"])('Linear') +}, { + value: 'radial-gradient', + label: Object(external_wp_i18n_["__"])('Radial') +}]; +const DIRECTIONAL_ORIENTATION_ANGLE_MAP = { + top: 0, + 'top right': 45, + 'right top': 45, + right: 90, + 'right bottom': 135, + 'bottom right': 135, + bottom: 180, + 'bottom left': 225, + 'left bottom': 225, + left: 270, + 'top left': 315, + 'left top': 315 +}; + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-picker/serializer.js +/** + * External dependencies + */ + +function serializeGradientColor(_ref) { + let { + type, + value + } = _ref; + + if (type === 'literal') { + return value; + } + + if (type === 'hex') { + return `#${value}`; + } + + return `${type}(${value.join(',')})`; +} +function serializeGradientPosition(position) { + if (!position) { + return ''; + } + + const { + value, + type + } = position; + return `${value}${type}`; +} +function serializeGradientColorStop(_ref2) { + let { + type, + value, + length + } = _ref2; + return `${serializeGradientColor({ + type, + value + })} ${serializeGradientPosition(length)}`; +} +function serializeGradientOrientation(orientation) { + if (!orientation || orientation.type !== 'angular') { + return; + } + + return `${orientation.value}deg`; +} +function serializeGradient(_ref3) { + let { + type, + orientation, + colorStops + } = _ref3; + const serializedOrientation = serializeGradientOrientation(orientation); + const serializedColorStops = colorStops.sort((colorStop1, colorStop2) => { + return Object(external_lodash_["get"])(colorStop1, ['length', 'value'], 0) - Object(external_lodash_["get"])(colorStop2, ['length', 'value'], 0); + }).map(serializeGradientColorStop); + return `${type}(${Object(external_lodash_["compact"])([serializedOrientation, ...serializedColorStops]).join(',')})`; +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-picker/utils.js +/** + * External dependencies + */ + + + +/** + * Internal dependencies + */ + + + +Object(colord["b" /* extend */])([names["a" /* default */]]); +function getLinearGradientRepresentation(gradientAST) { + return serializeGradient({ + type: 'linear-gradient', + orientation: HORIZONTAL_GRADIENT_ORIENTATION, + colorStops: gradientAST.colorStops + }); +} + +function hasUnsupportedLength(item) { + return item.length === undefined || item.length.type !== '%'; +} + +function getGradientAstWithDefault(value) { + var _gradientAST$orientat; + + // gradientAST will contain the gradient AST as parsed by gradient-parser npm module. + // More information of its structure available at https://www.npmjs.com/package/gradient-parser#ast. + let gradientAST; + + try { + gradientAST = node_default.a.parse(value)[0]; + gradientAST.value = value; + } catch (error) { + gradientAST = node_default.a.parse(DEFAULT_GRADIENT)[0]; + gradientAST.value = DEFAULT_GRADIENT; + } + + if (((_gradientAST$orientat = gradientAST.orientation) === null || _gradientAST$orientat === void 0 ? void 0 : _gradientAST$orientat.type) === 'directional') { + gradientAST.orientation.type = 'angular'; + gradientAST.orientation.value = DIRECTIONAL_ORIENTATION_ANGLE_MAP[gradientAST.orientation.value].toString(); + } + + if (gradientAST.colorStops.some(hasUnsupportedLength)) { + const { + colorStops + } = gradientAST; + const step = 100 / (colorStops.length - 1); + colorStops.forEach((stop, index) => { + stop.length = { + value: step * index, + type: '%' + }; + }); + gradientAST.value = serializeGradient(gradientAST); + } + + return gradientAST; +} +function getGradientAstWithControlPoints(gradientAST, newControlPoints) { + return { ...gradientAST, + colorStops: newControlPoints.map(_ref => { + let { + position, + color + } = _ref; + const { + r, + g, + b, + a + } = Object(colord["a" /* colord */])(color).toRgb(); + return { + length: { + type: '%', + value: position.toString() + }, + type: a < 1 ? 'rgba' : 'rgb', + value: a < 1 ? [r, g, b, a] : [r, g, b] + }; + }) + }; +} +function getStopCssColor(colorStop) { + switch (colorStop.type) { + case 'hex': + return `#${colorStop.value}`; + + case 'literal': + return colorStop.value; + + case 'rgb': + case 'rgba': + return `${colorStop.type}(${colorStop.value.join(',')})`; + + default: + // Should be unreachable if passing an AST from gradient-parser. + // See https://github.com/rafaelcaricio/gradient-parser#ast. + return 'transparent'; + } +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-picker/styles/custom-gradient-picker-styles.js + + +function custom_gradient_picker_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } + +/** + * External dependencies + */ + +/** + * Internal dependencies + */ + +const SelectWrapper = /*#__PURE__*/Object(emotion_styled_base_browser_esm["a" /* default */])(flex_block_component, true ? { + target: "e99xvul1" +} : undefined)( true ? { + name: "1gvx10y", + styles: "flex-grow:5" +} : undefined); +const AccessoryWrapper = /*#__PURE__*/Object(emotion_styled_base_browser_esm["a" /* default */])(flex_block_component, true ? { + target: "e99xvul0" +} : undefined)( true ? { + name: "1gvx10y", + styles: "flex-grow:5" +} : undefined); + +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-picker/index.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + + + + + + + + +const GradientAnglePicker = _ref => { + let { + gradientAST, + hasGradient, + onChange + } = _ref; + const angle = Object(external_lodash_["get"])(gradientAST, ['orientation', 'value'], DEFAULT_LINEAR_GRADIENT_ANGLE); + + const onAngleChange = newAngle => { + onChange(serializeGradient({ ...gradientAST, + orientation: { + type: 'angular', + value: newAngle + } + })); + }; + + return Object(external_wp_element_["createElement"])(AnglePickerControl, { + onChange: onAngleChange, + labelPosition: "top", + value: hasGradient ? angle : '' + }); +}; + +const GradientTypePicker = _ref2 => { + let { + gradientAST, + hasGradient, + onChange + } = _ref2; + const { + type + } = gradientAST; + + const onSetLinearGradient = () => { + onChange(serializeGradient({ ...gradientAST, + ...(gradientAST.orientation ? {} : { + orientation: HORIZONTAL_GRADIENT_ORIENTATION + }), + type: 'linear-gradient' + })); + }; + + const onSetRadialGradient = () => { + onChange(serializeGradient({ ...Object(external_lodash_["omit"])(gradientAST, ['orientation']), + type: 'radial-gradient' + })); + }; + + const handleOnChange = next => { + if (next === 'linear-gradient') { + onSetLinearGradient(); + } + + if (next === 'radial-gradient') { + onSetRadialGradient(); + } + }; + + return Object(external_wp_element_["createElement"])(select_control, { + className: "components-custom-gradient-picker__type-picker", + label: Object(external_wp_i18n_["__"])('Type'), + labelPosition: "top", + onChange: handleOnChange, + options: GRADIENT_OPTIONS, + value: hasGradient && type + }); +}; + +function CustomGradientPicker(_ref3) { + let { + value, + onChange + } = _ref3; + const gradientAST = getGradientAstWithDefault(value); // On radial gradients the bar should display a linear gradient. + // On radial gradients the bar represents a slice of the gradient from the center until the outside. + // On liner gradients the bar represents the color stops from left to right independently of the angle. + + const background = getLinearGradientRepresentation(gradientAST); + const hasGradient = gradientAST.value !== DEFAULT_GRADIENT; // Control points color option may be hex from presets, custom colors will be rgb. + // The position should always be a percentage. + + const controlPoints = gradientAST.colorStops.map(colorStop => ({ + color: getStopCssColor(colorStop), + position: parseInt(colorStop.length.value) + })); + return Object(external_wp_element_["createElement"])("div", { + className: "components-custom-gradient-picker" + }, Object(external_wp_element_["createElement"])(CustomGradientBar, { + background: background, + hasGradient: hasGradient, + value: controlPoints, + onChange: newControlPoints => { + onChange(serializeGradient(getGradientAstWithControlPoints(gradientAST, newControlPoints))); + } + }), Object(external_wp_element_["createElement"])(flex_component, { + gap: 3, + className: "components-custom-gradient-picker__ui-line" + }, Object(external_wp_element_["createElement"])(SelectWrapper, null, Object(external_wp_element_["createElement"])(GradientTypePicker, { + gradientAST: gradientAST, + hasGradient: hasGradient, + onChange: onChange + })), Object(external_wp_element_["createElement"])(AccessoryWrapper, null, gradientAST.type === 'linear-gradient' && Object(external_wp_element_["createElement"])(GradientAnglePicker, { + gradientAST: gradientAST, + hasGradient: hasGradient, + onChange: onChange + })))); +} + // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/heading/hook.js /** * Internal dependencies @@ -39786,6 +40782,134 @@ const ColorHeading = /*#__PURE__*/Object(emotion_styled_base_browser_esm["a" /* styles: "text-transform:uppercase;line-height:24px;font-weight:500;&&&{font-size:11px;margin-bottom:0;}" } : undefined); +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/gradient-picker/index.js + + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +/** + * Internal dependencies + */ + + + + + + +function SingleOrigin(_ref) { + let { + className, + clearGradient, + gradients, + onChange, + value, + actions, + content + } = _ref; + const gradientOptions = Object(external_wp_element_["useMemo"])(() => { + return Object(external_lodash_["map"])(gradients, _ref2 => { + let { + gradient, + name + } = _ref2; + return Object(external_wp_element_["createElement"])(CircularOptionPicker.Option, { + key: gradient, + value: gradient, + isSelected: value === gradient, + tooltipText: name || // translators: %s: gradient code e.g: "linear-gradient(90deg, rgba(98,16,153,1) 0%, rgba(172,110,22,1) 100%);". + Object(external_wp_i18n_["sprintf"])(Object(external_wp_i18n_["__"])('Gradient code: %s'), gradient), + style: { + color: 'rgba( 0,0,0,0 )', + background: gradient + }, + onClick: value === gradient ? clearGradient : () => onChange(gradient), + "aria-label": name ? // translators: %s: The name of the gradient e.g: "Angular red to blue". + Object(external_wp_i18n_["sprintf"])(Object(external_wp_i18n_["__"])('Gradient: %s'), name) : // translators: %s: gradient code e.g: "linear-gradient(90deg, rgba(98,16,153,1) 0%, rgba(172,110,22,1) 100%);". + Object(external_wp_i18n_["sprintf"])(Object(external_wp_i18n_["__"])('Gradient code: %s'), gradient) + }); + }); + }, [gradients, value, onChange, clearGradient]); + return Object(external_wp_element_["createElement"])(CircularOptionPicker, { + className: className, + options: gradientOptions, + actions: actions + }, content); +} + +function MultipleOrigin(_ref3) { + let { + className, + clearGradient, + gradients, + onChange, + value, + actions, + content + } = _ref3; + return Object(external_wp_element_["createElement"])(v_stack_component, { + spacing: 3, + className: className + }, gradients.map((_ref4, index) => { + let { + name, + gradients: gradientSet + } = _ref4; + return Object(external_wp_element_["createElement"])(v_stack_component, { + spacing: 2, + key: index + }, Object(external_wp_element_["createElement"])(ColorHeading, null, name), Object(external_wp_element_["createElement"])(SingleOrigin, Object(esm_extends["a" /* default */])({ + clearGradient: clearGradient, + gradients: gradientSet, + onChange: onChange, + value: value + }, gradients.length === index + 1 ? { + actions, + content + } : {}))); + })); +} + +function GradientPicker(_ref5) { + let { + className, + gradients, + onChange, + value, + clearable = true, + disableCustomGradients = false, + __experimentalHasMultipleOrigins + } = _ref5; + const clearGradient = Object(external_wp_element_["useCallback"])(() => onChange(undefined), [onChange]); + const Component = __experimentalHasMultipleOrigins ? MultipleOrigin : SingleOrigin; + return Object(external_wp_element_["createElement"])(Component, { + className: className, + clearable: clearable, + clearGradient: clearGradient, + gradients: gradients, + onChange: onChange, + value: value, + actions: clearable && Object(external_wp_element_["createElement"])(CircularOptionPicker.ButtonAction, { + onClick: clearGradient + }, Object(external_wp_i18n_["__"])('Clear')), + content: !disableCustomGradients && Object(external_wp_element_["createElement"])(CustomGradientPicker, { + value: value, + onChange: onChange + }) + }); +} + +// EXTERNAL MODULE: ./node_modules/colord/plugins/a11y.mjs +var a11y = __webpack_require__("7bKH"); + // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-palette/index.js @@ -40346,31 +41470,6 @@ function DropdownMenu(dropdownMenuProps) { /* harmony default export */ var dropdown_menu = (DropdownMenu); -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-indicator/index.js - - - -/** - * External dependencies - */ - - -const ColorIndicator = _ref => { - let { - className, - colorValue, - ...props - } = _ref; - return Object(external_wp_element_["createElement"])("span", Object(esm_extends["a" /* default */])({ - className: classnames_default()('component-color-indicator', className), - style: { - background: colorValue - } - }, props)); -}; - -/* harmony default export */ var color_indicator = (ColorIndicator); - // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/item-group/item/hook.js /** * External dependencies @@ -40449,10 +41548,10 @@ function component_Item(props, forwardedRef) { /* harmony default export */ var item_component = (Object(context_connect["a" /* contextConnect */])(component_Item, 'Item')); -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-edit/styles.js +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/palette-edit/styles.js -function color_edit_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } +function palette_edit_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /** * External dependencies @@ -40471,41 +41570,41 @@ function color_edit_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have t -const ColorIndicatorStyled = /*#__PURE__*/Object(emotion_styled_base_browser_esm["a" /* default */])(color_indicator, true ? { - target: "e3doru19" -} : undefined)("&&{display:block;border-radius:50%;border:0;height:", space(6), ";width:", space(6), ";margin-left:0;padding:0;}" + ( true ? "" : undefined)); -const ColorNameInputControl = /*#__PURE__*/Object(emotion_styled_base_browser_esm["a" /* default */])(input_control, true ? { - target: "e3doru18" +const IndicatorStyled = /*#__PURE__*/Object(emotion_styled_base_browser_esm["a" /* default */])(CircularOptionPicker.Option, true ? { + target: "e5bw3229" +} : undefined)("width:", space(6), ";height:", space(6), ";pointer-events:none;" + ( true ? "" : undefined)); +const NameInputControl = /*#__PURE__*/Object(emotion_styled_base_browser_esm["a" /* default */])(input_control, true ? { + target: "e5bw3228" } : undefined)(Container, "{background:", COLORS.gray[100], ";border-radius:2px;", Input, Input, Input, Input, "{height:", space(8), ";}", BackdropUI, BackdropUI, BackdropUI, "{border-color:transparent;box-shadow:none;}}" + ( true ? "" : undefined)); -const ColorItem = /*#__PURE__*/Object(emotion_styled_base_browser_esm["a" /* default */])(item_component, true ? { - target: "e3doru17" +const PaletteItem = /*#__PURE__*/Object(emotion_styled_base_browser_esm["a" /* default */])(item_component, true ? { + target: "e5bw3227" } : undefined)("padding:3px 0 3px ", space(3), ";height:calc( 40px - ", config_values.borderWidth, " );" + ( true ? "" : undefined)); -const ColorNameContainer = Object(emotion_styled_base_browser_esm["a" /* default */])("span", true ? { - target: "e3doru16" -} : undefined)("line-height:", space(8), ";margin-left:", space(2), ";" + ( true ? "" : undefined)); -const styles_ColorHeading = /*#__PURE__*/Object(emotion_styled_base_browser_esm["a" /* default */])(heading_component, true ? { - target: "e3doru15" +const NameContainer = Object(emotion_styled_base_browser_esm["a" /* default */])("div", true ? { + target: "e5bw3226" +} : undefined)("line-height:", space(8), ";margin-left:", space(2), ";margin-right:", space(2), ";white-space:nowrap;overflow:hidden;" + ( true ? "" : undefined)); +const PaletteHeading = /*#__PURE__*/Object(emotion_styled_base_browser_esm["a" /* default */])(heading_component, true ? { + target: "e5bw3225" } : undefined)("text-transform:uppercase;line-height:", space(6), ";font-weight:500;&&&{font-size:11px;margin-bottom:0;}" + ( true ? "" : undefined)); -const ColorActionsContainer = /*#__PURE__*/Object(emotion_styled_base_browser_esm["a" /* default */])(view_component["a" /* default */], true ? { - target: "e3doru14" +const PaletteActionsContainer = /*#__PURE__*/Object(emotion_styled_base_browser_esm["a" /* default */])(view_component["a" /* default */], true ? { + target: "e5bw3224" } : undefined)("height:", space(6), ";display:flex;" + ( true ? "" : undefined)); -const ColorHStackHeader = /*#__PURE__*/Object(emotion_styled_base_browser_esm["a" /* default */])(h_stack_component, true ? { - target: "e3doru13" +const PaletteHStackHeader = /*#__PURE__*/Object(emotion_styled_base_browser_esm["a" /* default */])(h_stack_component, true ? { + target: "e5bw3223" } : undefined)("margin-bottom:", space(2), ";" + ( true ? "" : undefined)); -const ColorEditStyles = /*#__PURE__*/Object(emotion_styled_base_browser_esm["a" /* default */])(view_component["a" /* default */], true ? { - target: "e3doru12" +const PaletteEditStyles = /*#__PURE__*/Object(emotion_styled_base_browser_esm["a" /* default */])(view_component["a" /* default */], true ? { + target: "e5bw3222" } : undefined)( true ? { name: "u6wnko", styles: "&&&{.components-button.has-icon{min-width:0;padding:0;}}" } : undefined); const DoneButton = /*#__PURE__*/Object(emotion_styled_base_browser_esm["a" /* default */])(build_module_button["a" /* default */], true ? { - target: "e3doru11" + target: "e5bw3221" } : undefined)("&&{color:", COLORS.ui.theme, ";}" + ( true ? "" : undefined)); const RemoveButton = /*#__PURE__*/Object(emotion_styled_base_browser_esm["a" /* default */])(build_module_button["a" /* default */], true ? { - target: "e3doru10" + target: "e5bw3220" } : undefined)("&&{margin-top:", space(1), ";}" + ( true ? "" : undefined)); -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-edit/index.js +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/palette-edit/index.js @@ -40537,89 +41636,105 @@ const RemoveButton = /*#__PURE__*/Object(emotion_styled_base_browser_esm["a" /* -function ColorNameInput(_ref) { + + + +function NameInput(_ref) { let { value, - onChange + onChange, + label } = _ref; - return Object(external_wp_element_["createElement"])(ColorNameInputControl, { - label: Object(external_wp_i18n_["__"])('Color name'), + return Object(external_wp_element_["createElement"])(NameInputControl, { + label: label, hideLabelFromVision: true, value: value, onChange: onChange }); } -function ColorOption(_ref2) { +function palette_edit_Option(_ref2) { let { canOnlyChangeValues, - color, + element, onChange, isEditing, onStartEditing, onRemove, onStopEditing, - slugPrefix + slugPrefix, + isGradient } = _ref2; const focusOutsideProps = Object(external_wp_compose_["__experimentalUseFocusOutside"])(onStopEditing); - return Object(external_wp_element_["createElement"])(ColorItem, Object(esm_extends["a" /* default */])({ + const value = isGradient ? element.gradient : element.color; + return Object(external_wp_element_["createElement"])(PaletteItem, Object(esm_extends["a" /* default */])({ as: "div", onClick: onStartEditing }, isEditing ? focusOutsideProps : {}), Object(external_wp_element_["createElement"])(h_stack_component, { justify: "flex-start" - }, Object(external_wp_element_["createElement"])(flex_item_component, null, Object(external_wp_element_["createElement"])(ColorIndicatorStyled, { - colorValue: color.color - })), Object(external_wp_element_["createElement"])(flex_item_component, null, isEditing && !canOnlyChangeValues ? Object(external_wp_element_["createElement"])(ColorNameInput, { - value: color.name, - onChange: nextName => onChange({ ...color, + }, Object(external_wp_element_["createElement"])(flex_item_component, null, Object(external_wp_element_["createElement"])(IndicatorStyled, { + style: { + background: value, + color: 'transparent' + } + })), Object(external_wp_element_["createElement"])(flex_item_component, null, isEditing && !canOnlyChangeValues ? Object(external_wp_element_["createElement"])(NameInput, { + label: isGradient ? Object(external_wp_i18n_["__"])('Gradient name') : Object(external_wp_i18n_["__"])('Color name'), + value: element.name, + onChange: nextName => onChange({ ...element, name: nextName, slug: slugPrefix + Object(external_lodash_["kebabCase"])(nextName) }) - }) : Object(external_wp_element_["createElement"])(ColorNameContainer, null, color.name)), isEditing && !canOnlyChangeValues && Object(external_wp_element_["createElement"])(flex_item_component, null, Object(external_wp_element_["createElement"])(RemoveButton, { + }) : Object(external_wp_element_["createElement"])(NameContainer, null, element.name)), isEditing && !canOnlyChangeValues && Object(external_wp_element_["createElement"])(flex_item_component, null, Object(external_wp_element_["createElement"])(RemoveButton, { isSmall: true, icon: line_solid["a" /* default */], label: Object(external_wp_i18n_["__"])('Remove color'), onClick: onRemove }))), isEditing && Object(external_wp_element_["createElement"])(build_module_popover["a" /* default */], { position: "bottom left", - className: "components-color-edit__color-popover" - }, Object(external_wp_element_["createElement"])(LegacyAdapter, { - color: color.color, - onChange: newColor => onChange({ ...color, + className: "components-palette-edit__popover" + }, !isGradient && Object(external_wp_element_["createElement"])(LegacyAdapter, { + color: value, + onChange: newColor => onChange({ ...element, color: newColor }) + }), isGradient && Object(external_wp_element_["createElement"])(CustomGradientPicker, { + value: value, + onChange: newGradient => onChange({ ...element, + gradient: newGradient + }) }))); } -function ColorPaletteEditListView(_ref3) { +function PaletteEditListView(_ref3) { let { - colors, + elements, onChange, - editingColor, - setEditingColor, + editingElement, + setEditingElement, canOnlyChangeValues, - slugPrefix + slugPrefix, + isGradient } = _ref3; - // When unmounting the component if there are empty colors (the user did not complete the insertion) clean them. - const colorReference = Object(external_wp_element_["useRef"])(); + // When unmounting the component if there are empty elements (the user did not complete the insertion) clean them. + const elementsReference = Object(external_wp_element_["useRef"])(); Object(external_wp_element_["useEffect"])(() => { - colorReference.current = colors; - }, [colors]); + elementsReference.current = elements; + }, [elements]); Object(external_wp_element_["useEffect"])(() => { return () => { - if (colorReference.current.some(_ref4 => { + if (elementsReference.current.some(_ref4 => { let { slug } = _ref4; return !slug; })) { - const newColors = colorReference.current.filter(_ref5 => { + const newElements = elementsReference.current.filter(_ref5 => { let { slug } = _ref5; return slug; }); - onChange(newColors.length ? newColors : undefined); + onChange(newElements.length ? newElements : undefined); } }; }, []); @@ -40628,39 +41743,40 @@ function ColorPaletteEditListView(_ref3) { }, Object(external_wp_element_["createElement"])(item_group_component, { isBordered: true, isSeparated: true - }, colors.map((color, index) => Object(external_wp_element_["createElement"])(ColorOption, { + }, elements.map((element, index) => Object(external_wp_element_["createElement"])(palette_edit_Option, { + isGradient: isGradient, canOnlyChangeValues: canOnlyChangeValues, key: index, - color: color, + element: element, onStartEditing: () => { - if (editingColor !== index) { - setEditingColor(index); + if (editingElement !== index) { + setEditingElement(index); } }, - onChange: newColor => { - onChange(colors.map((currentColor, currentIndex) => { + onChange: newElement => { + onChange(elements.map((currentElement, currentIndex) => { if (currentIndex === index) { - return newColor; + return newElement; } - return currentColor; + return currentElement; })); }, onRemove: () => { - setEditingColor(null); - const newColors = colors.filter((_currentColor, currentIndex) => { + setEditingElement(null); + const newElements = elements.filter((_currentElement, currentIndex) => { if (currentIndex === index) { return false; } return true; }); - onChange(newColors.length ? newColors : undefined); + onChange(newElements.length ? newElements : undefined); }, - isEditing: index === editingColor, + isEditing: index === editingElement, onStopEditing: () => { - if (index === editingColor) { - setEditingColor(null); + if (index === editingElement) { + setEditingElement(null); } }, slugPrefix: slugPrefix @@ -40668,8 +41784,9 @@ function ColorPaletteEditListView(_ref3) { } const EMPTY_ARRAY = []; -function ColorEdit(_ref6) { +function PaletteEdit(_ref6) { let { + gradients, colors = EMPTY_ARRAY, onChange, paletteLabel, @@ -40678,41 +41795,46 @@ function ColorEdit(_ref6) { canReset, slugPrefix = '' } = _ref6; + const isGradient = !!gradients; + const elements = isGradient ? gradients : colors; const [isEditing, setIsEditing] = Object(external_wp_element_["useState"])(false); - const [editingColor, setEditingColor] = Object(external_wp_element_["useState"])(null); - const isAdding = isEditing && editingColor && colors[editingColor] && !colors[editingColor].slug; - const hasColors = colors.length > 0; - return Object(external_wp_element_["createElement"])(ColorEditStyles, null, Object(external_wp_element_["createElement"])(ColorHStackHeader, null, Object(external_wp_element_["createElement"])(styles_ColorHeading, null, paletteLabel), Object(external_wp_element_["createElement"])(ColorActionsContainer, null, isEditing && Object(external_wp_element_["createElement"])(DoneButton, { + const [editingElement, setEditingElement] = Object(external_wp_element_["useState"])(null); + const isAdding = isEditing && editingElement && elements[editingElement] && !elements[editingElement].slug; + const hasElements = elements.length > 0; + return Object(external_wp_element_["createElement"])(PaletteEditStyles, null, Object(external_wp_element_["createElement"])(PaletteHStackHeader, null, Object(external_wp_element_["createElement"])(PaletteHeading, null, paletteLabel), Object(external_wp_element_["createElement"])(PaletteActionsContainer, null, isEditing && Object(external_wp_element_["createElement"])(DoneButton, { isSmall: true, onClick: () => { setIsEditing(false); - setEditingColor(null); + setEditingElement(null); } }, Object(external_wp_i18n_["__"])('Done')), !canOnlyChangeValues && Object(external_wp_element_["createElement"])(build_module_button["a" /* default */], { isSmall: true, isPressed: isAdding, icon: plus["a" /* default */], - label: Object(external_wp_i18n_["__"])('Add color'), + label: isGradient ? Object(external_wp_i18n_["__"])('Add gradient') : Object(external_wp_i18n_["__"])('Add color'), onClick: () => { - onChange([...colors, { - color: '#000', + onChange([...elements, { ...(isGradient ? { + gradient: DEFAULT_GRADIENT + } : { + color: '#000' + }), name: '', slug: '' }]); setIsEditing(true); - setEditingColor(colors.length); + setEditingElement(elements.length); } }), !isEditing && Object(external_wp_element_["createElement"])(build_module_button["a" /* default */], { - disabled: !hasColors, + disabled: !hasElements, isSmall: true, icon: more_vertical["a" /* default */], - label: Object(external_wp_i18n_["__"])('Edit colors'), + label: isGradient ? Object(external_wp_i18n_["__"])('Edit gradients') : Object(external_wp_i18n_["__"])('Edit colors'), onClick: () => { setIsEditing(true); } }), isEditing && (canReset || !canOnlyChangeValues) && Object(external_wp_element_["createElement"])(dropdown_menu, { icon: more_vertical["a" /* default */], - label: Object(external_wp_i18n_["__"])('Color options'), + label: isGradient ? Object(external_wp_i18n_["__"])('Gradient options') : Object(external_wp_i18n_["__"])('Color options'), toggleProps: { isSmall: true } @@ -40725,34 +41847,65 @@ function ColorEdit(_ref6) { }, !canOnlyChangeValues && Object(external_wp_element_["createElement"])(build_module_button["a" /* default */], { variant: "tertiary", onClick: () => { - setEditingColor(null); + setEditingElement(null); setIsEditing(false); onChange(); onClose(); } - }, Object(external_wp_i18n_["__"])('Remove all colors')), canReset && Object(external_wp_element_["createElement"])(build_module_button["a" /* default */], { + }, isGradient ? Object(external_wp_i18n_["__"])('Remove all gradients') : Object(external_wp_i18n_["__"])('Remove all colors')), canReset && Object(external_wp_element_["createElement"])(build_module_button["a" /* default */], { variant: "tertiary", onClick: () => { - setEditingColor(null); + setEditingElement(null); onChange(); onClose(); } - }, Object(external_wp_i18n_["__"])('Reset colors')))); - }))), hasColors && Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, isEditing && Object(external_wp_element_["createElement"])(ColorPaletteEditListView, { + }, isGradient ? Object(external_wp_i18n_["__"])('Reset gradient') : Object(external_wp_i18n_["__"])('Reset colors')))); + }))), hasElements && Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, isEditing && Object(external_wp_element_["createElement"])(PaletteEditListView, { canOnlyChangeValues: canOnlyChangeValues, - colors: colors, + elements: elements, onChange: onChange, - editingColor: editingColor, - setEditingColor: setEditingColor, - slugPrefix: slugPrefix - }), !isEditing && Object(external_wp_element_["createElement"])(ColorPalette, { + editingElement: editingElement, + setEditingElement: setEditingElement, + slugPrefix: slugPrefix, + isGradient: isGradient + }), !isEditing && (isGradient ? Object(external_wp_element_["createElement"])(GradientPicker, { + gradients: gradients, + onChange: () => {}, + clearable: false, + disableCustomGradients: true + }) : Object(external_wp_element_["createElement"])(ColorPalette, { colors: colors, onChange: () => {}, clearable: false, disableCustomColors: true - })), !hasColors && emptyMessage); + }))), !hasElements && emptyMessage); } +// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-indicator/index.js + + + +/** + * External dependencies + */ + + +const ColorIndicator = _ref => { + let { + className, + colorValue, + ...props + } = _ref; + return Object(external_wp_element_["createElement"])("span", Object(esm_extends["a" /* default */])({ + className: classnames_default()('component-color-indicator', className), + style: { + background: colorValue + } + }, props)); +}; + +/* harmony default export */ var color_indicator = (ColorIndicator); + // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close-small.js var close_small = __webpack_require__("bWcr"); @@ -46039,6 +47192,10 @@ const TimeZone = () => { */ const time_TIMEZONELESS_FORMAT = 'YYYY-MM-DDTHH:mm:ss'; + +function from12hTo24h(hours, isPm) { + return isPm ? (hours % 12 + 12) % 24 : hours % 12; +} /** * <UpdateOnBlurAsIntegerField> * A shared component to parse, validate, and handle remounting of the underlying form field element like <input> and <select>. @@ -46049,6 +47206,7 @@ const time_TIMEZONELESS_FORMAT = 'YYYY-MM-DDTHH:mm:ss'; * @param {Function} props.onUpdate Call back when blurred and validated. */ + function UpdateOnBlurAsIntegerField(_ref) { let { as, @@ -46137,8 +47295,17 @@ function TimePicker(_ref2) { } function update(name, value) { - // Clone the date and call the specific setter function according to `name`. - const newDate = date.clone()[name](value); + // If the 12-hour format is being used and the 'PM' period is selected, then + // the incoming value (which ranges 1-12) should be increased by 12 to match + // the expected 24-hour format. + let adjustedValue = value; + + if (name === 'hours' && is12Hour) { + adjustedValue = from12hTo24h(value, am === 'PM'); + } // Clone the date and call the specific setter function according to `name`. + + + const newDate = date.clone()[name](adjustedValue); changeDate(newDate); } @@ -46149,7 +47316,7 @@ function TimePicker(_ref2) { } const parsedHours = parseInt(hours, 10); - const newDate = date.clone().hours(value === 'PM' ? (parsedHours % 12 + 12) % 24 : parsedHours % 12); + const newDate = date.clone().hours(from12hTo24h(parsedHours, value === 'PM')); changeDate(newDate); }; } @@ -47436,7 +48603,7 @@ function DuotoneSwatch(_ref) { -function color_list_picker_ColorOption(_ref) { +function ColorOption(_ref) { let { label, value, @@ -47474,7 +48641,7 @@ function ColorListPicker(_ref2) { } = _ref2; return Object(external_wp_element_["createElement"])("div", { className: "components-color-list-picker" - }, labels.map((label, index) => Object(external_wp_element_["createElement"])(color_list_picker_ColorOption, { + }, labels.map((label, index) => Object(external_wp_element_["createElement"])(ColorOption, { key: index, label: label, value: value[index], @@ -47491,613 +48658,6 @@ function ColorListPicker(_ref2) { /* harmony default export */ var color_list_picker = (ColorListPicker); -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-bar/constants.js -const COLOR_POPOVER_PROPS = { - className: 'components-custom-gradient-picker__color-picker-popover', - position: 'top' -}; -const GRADIENT_MARKERS_WIDTH = 16; -const INSERT_POINT_WIDTH = 16; -const MINIMUM_ABSOLUTE_LEFT_POSITION = 5; -const MINIMUM_DISTANCE_BETWEEN_INSERTER_AND_POINT = 10; -const MINIMUM_DISTANCE_BETWEEN_POINTS = 0; -const MINIMUM_SIGNIFICANT_MOVE = 5; -const KEYBOARD_CONTROL_POINT_VARIATION = MINIMUM_DISTANCE_BETWEEN_INSERTER_AND_POINT; -const MINIMUM_DISTANCE_BETWEEN_INSERTER_AND_MARKER = (INSERT_POINT_WIDTH + GRADIENT_MARKERS_WIDTH) / 2; - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-bar/utils.js -/** - * Internal dependencies - */ - -/** - * Control point for the gradient bar. - * - * @typedef {Object} ControlPoint - * @property {string} color Color of the control point. - * @property {number} position Integer position of the control point as a percentage. - */ - -/** - * Color as parsed from the gradient by gradient-parser. - * - * @typedef {Object} Color - * @property {string} r Red component. - * @property {string} g Green component. - * @property {string} b Green component. - * @property {string} [a] Optional alpha component. - */ - -/** - * Clamps a number between 0 and 100. - * - * @param {number} value Value to clamp. - * - * @return {number} Value clamped between 0 and 100. - */ - -function clampPercent(value) { - return Math.max(0, Math.min(100, value)); -} -/** - * Check if a control point is overlapping with another. - * - * @param {ControlPoint[]} value Array of control points. - * @param {number} initialIndex Index of the position to test. - * @param {number} newPosition New position of the control point. - * @param {number} minDistance Distance considered to be overlapping. - * - * @return {boolean} True if the point is overlapping. - */ - -function isOverlapping(value, initialIndex, newPosition) { - let minDistance = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : MINIMUM_DISTANCE_BETWEEN_POINTS; - const initialPosition = value[initialIndex].position; - const minPosition = Math.min(initialPosition, newPosition); - const maxPosition = Math.max(initialPosition, newPosition); - return value.some((_ref, index) => { - let { - position - } = _ref; - return index !== initialIndex && (Math.abs(position - newPosition) < minDistance || minPosition < position && position < maxPosition); - }); -} -/** - * Adds a control point from an array and returns the new array. - * - * @param {ControlPoint[]} points Array of control points. - * @param {number} position Position to insert the new point. - * @param {Color} color Color to update the control point at index. - * - * @return {ControlPoint[]} New array of control points. - */ - -function addControlPoint(points, position, color) { - const nextIndex = points.findIndex(point => point.position > position); - const newPoint = { - color, - position - }; - const newPoints = points.slice(); - newPoints.splice(nextIndex - 1, 0, newPoint); - return newPoints; -} -/** - * Removes a control point from an array and returns the new array. - * - * @param {ControlPoint[]} points Array of control points. - * @param {number} index Index to remove. - * - * @return {ControlPoint[]} New array of control points. - */ - -function removeControlPoint(points, index) { - return points.filter((point, pointIndex) => { - return pointIndex !== index; - }); -} -/** - * Updates a control point from an array and returns the new array. - * - * @param {ControlPoint[]} points Array of control points. - * @param {number} index Index to update. - * @param {ControlPoint[]} newPoint New control point to replace the index. - * - * @return {ControlPoint[]} New array of control points. - */ - -function updateControlPoint(points, index, newPoint) { - const newValue = points.slice(); - newValue[index] = newPoint; - return newValue; -} -/** - * Updates the position of a control point from an array and returns the new array. - * - * @param {ControlPoint[]} points Array of control points. - * @param {number} index Index to update. - * @param {number} newPosition Position to move the control point at index. - * - * @return {ControlPoint[]} New array of control points. - */ - -function updateControlPointPosition(points, index, newPosition) { - if (isOverlapping(points, index, newPosition)) { - return points; - } - - const newPoint = { ...points[index], - position: newPosition - }; - return updateControlPoint(points, index, newPoint); -} -/** - * Updates the position of a control point from an array and returns the new array. - * - * @param {ControlPoint[]} points Array of control points. - * @param {number} index Index to update. - * @param {Color} newColor Color to update the control point at index. - * - * @return {ControlPoint[]} New array of control points. - */ - -function updateControlPointColor(points, index, newColor) { - const newPoint = { ...points[index], - color: newColor - }; - return updateControlPoint(points, index, newPoint); -} -/** - * Updates the position of a control point from an array and returns the new array. - * - * @param {ControlPoint[]} points Array of control points. - * @param {number} position Position of the color stop. - * @param {string} newColor Color to update the control point at index. - * - * @return {ControlPoint[]} New array of control points. - */ - -function updateControlPointColorByPosition(points, position, newColor) { - const index = points.findIndex(point => point.position === position); - return updateControlPointColor(points, index, newColor); -} -/** - * Gets the horizontal coordinate when dragging a control point with the mouse. - * - * @param {number} mouseXCoordinate Horizontal coordinate of the mouse position. - * @param {Element} containerElement Container for the gradient picker. - * @param {number} positionedElementWidth Width of the positioned element. - * - * @return {number} Whole number percentage from the left. - */ - -function getHorizontalRelativeGradientPosition(mouseXCoordinate, containerElement, positionedElementWidth) { - if (!containerElement) { - return; - } - - const { - x, - width - } = containerElement.getBoundingClientRect(); - const absolutePositionValue = mouseXCoordinate - x - MINIMUM_ABSOLUTE_LEFT_POSITION - positionedElementWidth / 2; - const availableWidth = width - MINIMUM_ABSOLUTE_LEFT_POSITION - INSERT_POINT_WIDTH; - return Math.round(clampPercent(absolutePositionValue * 100 / availableWidth)); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-bar/control-points.js - - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - - -/** - * Internal dependencies - */ - - - - - - - - -function ControlPointButton(_ref) { - let { - isOpen, - position, - color, - ...additionalProps - } = _ref; - const instanceId = Object(external_wp_compose_["useInstanceId"])(ControlPointButton); - const descriptionId = `components-custom-gradient-picker__control-point-button-description-${instanceId}`; - return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(build_module_button["a" /* default */], Object(esm_extends["a" /* default */])({ - "aria-label": Object(external_wp_i18n_["sprintf"])( // translators: %1$s: gradient position e.g: 70, %2$s: gradient color code e.g: rgb(52,121,151). - Object(external_wp_i18n_["__"])('Gradient control point at position %1$s%% with color code %2$s.'), position, color), - "aria-describedby": descriptionId, - "aria-haspopup": "true", - "aria-expanded": isOpen, - className: classnames_default()('components-custom-gradient-picker__control-point-button', { - 'is-active': isOpen - }), - style: { - left: `${position}%` - } - }, additionalProps)), Object(external_wp_element_["createElement"])(component["a" /* default */], { - id: descriptionId - }, Object(external_wp_i18n_["__"])('Use your left or right arrow keys or drag and drop with the mouse to change the gradient position. Press the button to change the color or remove the control point.'))); -} - -function ControlPoints(_ref2) { - let { - disableRemove, - disableAlpha, - gradientPickerDomRef, - ignoreMarkerPosition, - value: controlPoints, - onChange, - onStartControlPointChange, - onStopControlPointChange - } = _ref2; - const controlPointMoveState = Object(external_wp_element_["useRef"])(); - - const onMouseMove = event => { - const relativePosition = getHorizontalRelativeGradientPosition(event.clientX, gradientPickerDomRef.current, GRADIENT_MARKERS_WIDTH); - const { - initialPosition, - index, - significantMoveHappened - } = controlPointMoveState.current; - - if (!significantMoveHappened && Math.abs(initialPosition - relativePosition) >= MINIMUM_SIGNIFICANT_MOVE) { - controlPointMoveState.current.significantMoveHappened = true; - } - - onChange(updateControlPointPosition(controlPoints, index, relativePosition)); - }; - - const cleanEventListeners = () => { - if (window && window.removeEventListener && controlPointMoveState.current && controlPointMoveState.current.listenersActivated) { - window.removeEventListener('mousemove', onMouseMove); - window.removeEventListener('mouseup', cleanEventListeners); - onStopControlPointChange(); - controlPointMoveState.current.listenersActivated = false; - } - }; - - Object(external_wp_element_["useEffect"])(() => { - return () => { - cleanEventListeners(); - }; - }, []); - return controlPoints.map((point, index) => { - const initialPosition = point === null || point === void 0 ? void 0 : point.position; - return ignoreMarkerPosition !== initialPosition && Object(external_wp_element_["createElement"])(Dropdown, { - key: index, - onClose: onStopControlPointChange, - renderToggle: _ref3 => { - let { - isOpen, - onToggle - } = _ref3; - return Object(external_wp_element_["createElement"])(ControlPointButton, { - key: index, - onClick: () => { - if (controlPointMoveState.current && controlPointMoveState.current.significantMoveHappened) { - return; - } - - if (isOpen) { - onStopControlPointChange(); - } else { - onStartControlPointChange(); - } - - onToggle(); - }, - onMouseDown: () => { - if (window && window.addEventListener) { - controlPointMoveState.current = { - initialPosition, - index, - significantMoveHappened: false, - listenersActivated: true - }; - onStartControlPointChange(); - window.addEventListener('mousemove', onMouseMove); - window.addEventListener('mouseup', cleanEventListeners); - } - }, - onKeyDown: event => { - if (event.keyCode === external_wp_keycodes_["LEFT"]) { - // Stop propagation of the key press event to avoid focus moving - // to another editor area. - event.stopPropagation(); - onChange(updateControlPointPosition(controlPoints, index, clampPercent(point.position - KEYBOARD_CONTROL_POINT_VARIATION))); - } else if (event.keyCode === external_wp_keycodes_["RIGHT"]) { - // Stop propagation of the key press event to avoid focus moving - // to another editor area. - event.stopPropagation(); - onChange(updateControlPointPosition(controlPoints, index, clampPercent(point.position + KEYBOARD_CONTROL_POINT_VARIATION))); - } - }, - isOpen: isOpen, - position: point.position, - color: point.color - }); - }, - renderContent: _ref4 => { - let { - onClose - } = _ref4; - return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(LegacyAdapter, { - enableAlpha: !disableAlpha, - color: point.color, - onChange: color => { - onChange(updateControlPointColor(controlPoints, index, Object(colord["a" /* colord */])(color).toRgbString())); - } - }), !disableRemove && Object(external_wp_element_["createElement"])(build_module_button["a" /* default */], { - className: "components-custom-gradient-picker__remove-control-point", - onClick: () => { - onChange(removeControlPoint(controlPoints, index)); - onClose(); - }, - variant: "link" - }, Object(external_wp_i18n_["__"])('Remove Control Point'))); - }, - popoverProps: COLOR_POPOVER_PROPS - }); - }); -} - -function InsertPoint(_ref5) { - let { - value: controlPoints, - onChange, - onOpenInserter, - onCloseInserter, - insertPosition, - disableAlpha - } = _ref5; - const [alreadyInsertedPoint, setAlreadyInsertedPoint] = Object(external_wp_element_["useState"])(false); - return Object(external_wp_element_["createElement"])(Dropdown, { - className: "components-custom-gradient-picker__inserter", - onClose: () => { - onCloseInserter(); - }, - renderToggle: _ref6 => { - let { - isOpen, - onToggle - } = _ref6; - return Object(external_wp_element_["createElement"])(build_module_button["a" /* default */], { - "aria-expanded": isOpen, - "aria-haspopup": "true", - onClick: () => { - if (isOpen) { - onCloseInserter(); - } else { - setAlreadyInsertedPoint(false); - onOpenInserter(); - } - - onToggle(); - }, - className: "components-custom-gradient-picker__insert-point", - icon: plus["a" /* default */], - style: { - left: insertPosition !== null ? `${insertPosition}%` : undefined - } - }); - }, - renderContent: () => Object(external_wp_element_["createElement"])(LegacyAdapter, { - enableAlpha: !disableAlpha, - onChange: color => { - if (!alreadyInsertedPoint) { - onChange(addControlPoint(controlPoints, insertPosition, Object(colord["a" /* colord */])(color).toRgbString())); - setAlreadyInsertedPoint(true); - } else { - onChange(updateControlPointColorByPosition(controlPoints, insertPosition, Object(colord["a" /* colord */])(color).toRgbString())); - } - } - }), - popoverProps: COLOR_POPOVER_PROPS - }); -} - -ControlPoints.InsertPoint = InsertPoint; -/* harmony default export */ var control_points = (ControlPoints); - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-bar/index.js - - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - - - - -function customGradientBarReducer(state, action) { - switch (action.type) { - case 'MOVE_INSERTER': - if (state.id === 'IDLE' || state.id === 'MOVING_INSERTER') { - return { - id: 'MOVING_INSERTER', - insertPosition: action.insertPosition - }; - } - - break; - - case 'STOP_INSERTER_MOVE': - if (state.id === 'MOVING_INSERTER') { - return { - id: 'IDLE' - }; - } - - break; - - case 'OPEN_INSERTER': - if (state.id === 'MOVING_INSERTER') { - return { - id: 'INSERTING_CONTROL_POINT', - insertPosition: state.insertPosition - }; - } - - break; - - case 'CLOSE_INSERTER': - if (state.id === 'INSERTING_CONTROL_POINT') { - return { - id: 'IDLE' - }; - } - - break; - - case 'START_CONTROL_CHANGE': - if (state.id === 'IDLE') { - return { - id: 'MOVING_CONTROL_POINT' - }; - } - - break; - - case 'STOP_CONTROL_CHANGE': - if (state.id === 'MOVING_CONTROL_POINT') { - return { - id: 'IDLE' - }; - } - - break; - } - - return state; -} - -const customGradientBarReducerInitialState = { - id: 'IDLE' -}; -function CustomGradientBar(_ref) { - let { - background, - hasGradient, - value: controlPoints, - onChange, - disableInserter = false, - disableAlpha = false - } = _ref; - const gradientPickerDomRef = Object(external_wp_element_["useRef"])(); - const [gradientBarState, gradientBarStateDispatch] = Object(external_wp_element_["useReducer"])(customGradientBarReducer, customGradientBarReducerInitialState); - - const onMouseEnterAndMove = event => { - const insertPosition = getHorizontalRelativeGradientPosition(event.clientX, gradientPickerDomRef.current, INSERT_POINT_WIDTH); // If the insert point is close to an existing control point don't show it. - - if (Object(external_lodash_["some"])(controlPoints, _ref2 => { - let { - position - } = _ref2; - return Math.abs(insertPosition - position) < MINIMUM_DISTANCE_BETWEEN_INSERTER_AND_POINT; - })) { - if (gradientBarState.id === 'MOVING_INSERTER') { - gradientBarStateDispatch({ - type: 'STOP_INSERTER_MOVE' - }); - } - - return; - } - - gradientBarStateDispatch({ - type: 'MOVE_INSERTER', - insertPosition - }); - }; - - const onMouseLeave = () => { - gradientBarStateDispatch({ - type: 'STOP_INSERTER_MOVE' - }); - }; - - const isMovingInserter = gradientBarState.id === 'MOVING_INSERTER'; - const isInsertingControlPoint = gradientBarState.id === 'INSERTING_CONTROL_POINT'; - return Object(external_wp_element_["createElement"])("div", { - ref: gradientPickerDomRef, - className: classnames_default()('components-custom-gradient-picker__gradient-bar', { - 'has-gradient': hasGradient - }), - onMouseEnter: onMouseEnterAndMove, - onMouseMove: onMouseEnterAndMove, - style: { - background - }, - onMouseLeave: onMouseLeave - }, Object(external_wp_element_["createElement"])("div", { - className: "components-custom-gradient-picker__markers-container" - }, !disableInserter && (isMovingInserter || isInsertingControlPoint) && Object(external_wp_element_["createElement"])(control_points.InsertPoint, { - disableAlpha: disableAlpha, - insertPosition: gradientBarState.insertPosition, - value: controlPoints, - onChange: onChange, - onOpenInserter: () => { - gradientBarStateDispatch({ - type: 'OPEN_INSERTER' - }); - }, - onCloseInserter: () => { - gradientBarStateDispatch({ - type: 'CLOSE_INSERTER' - }); - } - }), Object(external_wp_element_["createElement"])(control_points, { - disableAlpha: disableAlpha, - disableRemove: disableInserter, - gradientPickerDomRef: gradientPickerDomRef, - ignoreMarkerPosition: isInsertingControlPoint ? gradientBarState.insertPosition : undefined, - value: controlPoints, - onChange: onChange, - onStartControlPointChange: () => { - gradientBarStateDispatch({ - type: 'START_CONTROL_CHANGE' - }); - }, - onStopControlPointChange: () => { - gradientBarStateDispatch({ - type: 'STOP_CONTROL_CHANGE' - }); - } - }))); -} - // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/duotone-picker/custom-duotone-bar.js @@ -51367,15 +51927,31 @@ const medium = /*#__PURE__*/Object(emotion_react_browser_esm["a" /* css */])("mi + const { ButtonContentView: component_ButtonContentView, LabelPlaceholderView: component_LabelPlaceholderView, LabelView: component_LabelView } = toggle_group_control_option_styles_namespaceObject; -function ToggleGroupControlOption(props, forwardedRef) { - var _radioProps$ariaLabe; +const WithToolTip = _ref => { + let { + showTooltip, + text, + children + } = _ref; + if (showTooltip && text) { + return Object(external_wp_element_["createElement"])(build_module_tooltip["a" /* default */], { + text: text, + position: "top center" + }, children); + } + + return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, children); +}; + +function ToggleGroupControlOption(props, forwardedRef) { const toggleGroupControlContext = useToggleGroupControlContext(); const id = Object(external_wp_compose_["useInstanceId"])(ToggleGroupControlOption, toggleGroupControlContext.baseId || 'toggle-group-control-option'); const buttonProps = Object(use_context_system["a" /* useContextSystem */])({ ...props, @@ -51386,6 +51962,7 @@ function ToggleGroupControlOption(props, forwardedRef) { isBlock = false, label, value, + showTooltip = false, ...radioProps } = { ...toggleGroupControlContext, ...buttonProps @@ -51394,19 +51971,23 @@ function ToggleGroupControlOption(props, forwardedRef) { const cx = Object(use_cx["a" /* useCx */])(); const labelViewClasses = cx(isBlock && labelBlock); const classes = cx(buttonView, className, isActive && buttonActive); + const optionLabel = !!radioProps['aria-label'] ? radioProps['aria-label'] : label; return Object(external_wp_element_["createElement"])(component_LabelView, { className: labelViewClasses, "data-active": isActive + }, Object(external_wp_element_["createElement"])(WithToolTip, { + showTooltip: showTooltip, + text: optionLabel }, Object(external_wp_element_["createElement"])(Radio, Object(esm_extends["a" /* default */])({}, radioProps, { as: "button", - "aria-label": (_radioProps$ariaLabe = radioProps['aria-label']) !== null && _radioProps$ariaLabe !== void 0 ? _radioProps$ariaLabe : label, + "aria-label": optionLabel, className: classes, "data-value": value, ref: forwardedRef, value: value }), Object(external_wp_element_["createElement"])(component_ButtonContentView, null, label), Object(external_wp_element_["createElement"])(component_LabelPlaceholderView, { "aria-hidden": true - }, label))); + }, label)))); } /** * `ToggleGroupControlOption` is a form component and is meant to be used as a @@ -51685,7 +52266,8 @@ function FontSizePicker(_ref, ref) { key: option.key, value: option.value, label: option.label, - "aria-label": option.name + "aria-label": option.name, + showTooltip: true }))), !withSlider && !disableCustomFontSizes && showCustomValueControl && Object(external_wp_element_["createElement"])(flex_component, { justify: "space-between", className: `${baseClassName}__custom-size-control` @@ -52570,496 +53152,6 @@ form_token_field_FormTokenField.defaultProps = { }; /* harmony default export */ var form_token_field = (with_spoken_messages(Object(external_wp_compose_["withInstanceId"])(form_token_field_FormTokenField))); -// EXTERNAL MODULE: ./node_modules/gradient-parser/build/node.js -var build_node = __webpack_require__("Jx1U"); -var node_default = /*#__PURE__*/__webpack_require__.n(build_node); - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-picker/constants.js -/** - * WordPress dependencies - */ - -const DEFAULT_GRADIENT = 'linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)'; -const DEFAULT_LINEAR_GRADIENT_ANGLE = 180; -const HORIZONTAL_GRADIENT_ORIENTATION = { - type: 'angular', - value: 90 -}; -const GRADIENT_OPTIONS = [{ - value: 'linear-gradient', - label: Object(external_wp_i18n_["__"])('Linear') -}, { - value: 'radial-gradient', - label: Object(external_wp_i18n_["__"])('Radial') -}]; -const DIRECTIONAL_ORIENTATION_ANGLE_MAP = { - top: 0, - 'top right': 45, - 'right top': 45, - right: 90, - 'right bottom': 135, - 'bottom right': 135, - bottom: 180, - 'bottom left': 225, - 'left bottom': 225, - left: 270, - 'top left': 315, - 'left top': 315 -}; - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-picker/serializer.js -/** - * External dependencies - */ - -function serializeGradientColor(_ref) { - let { - type, - value - } = _ref; - - if (type === 'literal') { - return value; - } - - if (type === 'hex') { - return `#${value}`; - } - - return `${type}(${value.join(',')})`; -} -function serializeGradientPosition(position) { - if (!position) { - return ''; - } - - const { - value, - type - } = position; - return `${value}${type}`; -} -function serializeGradientColorStop(_ref2) { - let { - type, - value, - length - } = _ref2; - return `${serializeGradientColor({ - type, - value - })} ${serializeGradientPosition(length)}`; -} -function serializeGradientOrientation(orientation) { - if (!orientation || orientation.type !== 'angular') { - return; - } - - return `${orientation.value}deg`; -} -function serializeGradient(_ref3) { - let { - type, - orientation, - colorStops - } = _ref3; - const serializedOrientation = serializeGradientOrientation(orientation); - const serializedColorStops = colorStops.sort((colorStop1, colorStop2) => { - return Object(external_lodash_["get"])(colorStop1, ['length', 'value'], 0) - Object(external_lodash_["get"])(colorStop2, ['length', 'value'], 0); - }).map(serializeGradientColorStop); - return `${type}(${Object(external_lodash_["compact"])([serializedOrientation, ...serializedColorStops]).join(',')})`; -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-picker/utils.js -/** - * External dependencies - */ - - - -/** - * Internal dependencies - */ - - - -Object(colord["b" /* extend */])([names["a" /* default */]]); -function getLinearGradientRepresentation(gradientAST) { - return serializeGradient({ - type: 'linear-gradient', - orientation: HORIZONTAL_GRADIENT_ORIENTATION, - colorStops: gradientAST.colorStops - }); -} - -function hasUnsupportedLength(item) { - return item.length === undefined || item.length.type !== '%'; -} - -function getGradientAstWithDefault(value) { - var _gradientAST$orientat; - - // gradientAST will contain the gradient AST as parsed by gradient-parser npm module. - // More information of its structure available at https://www.npmjs.com/package/gradient-parser#ast. - let gradientAST; - - try { - gradientAST = node_default.a.parse(value)[0]; - gradientAST.value = value; - } catch (error) { - gradientAST = node_default.a.parse(DEFAULT_GRADIENT)[0]; - gradientAST.value = DEFAULT_GRADIENT; - } - - if (((_gradientAST$orientat = gradientAST.orientation) === null || _gradientAST$orientat === void 0 ? void 0 : _gradientAST$orientat.type) === 'directional') { - gradientAST.orientation.type = 'angular'; - gradientAST.orientation.value = DIRECTIONAL_ORIENTATION_ANGLE_MAP[gradientAST.orientation.value].toString(); - } - - if (gradientAST.colorStops.some(hasUnsupportedLength)) { - const { - colorStops - } = gradientAST; - const step = 100 / (colorStops.length - 1); - colorStops.forEach((stop, index) => { - stop.length = { - value: step * index, - type: '%' - }; - }); - gradientAST.value = serializeGradient(gradientAST); - } - - return gradientAST; -} -function getGradientAstWithControlPoints(gradientAST, newControlPoints) { - return { ...gradientAST, - colorStops: newControlPoints.map(_ref => { - let { - position, - color - } = _ref; - const { - r, - g, - b, - a - } = Object(colord["a" /* colord */])(color).toRgb(); - return { - length: { - type: '%', - value: position.toString() - }, - type: a < 1 ? 'rgba' : 'rgb', - value: a < 1 ? [r, g, b, a] : [r, g, b] - }; - }) - }; -} -function getStopCssColor(colorStop) { - switch (colorStop.type) { - case 'hex': - return `#${colorStop.value}`; - - case 'literal': - return colorStop.value; - - case 'rgb': - case 'rgba': - return `${colorStop.type}(${colorStop.value.join(',')})`; - - default: - // Should be unreachable if passing an AST from gradient-parser. - // See https://github.com/rafaelcaricio/gradient-parser#ast. - return 'transparent'; - } -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-picker/styles/custom-gradient-picker-styles.js - - -function custom_gradient_picker_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } - -/** - * External dependencies - */ - -/** - * Internal dependencies - */ - -const SelectWrapper = /*#__PURE__*/Object(emotion_styled_base_browser_esm["a" /* default */])(flex_block_component, true ? { - target: "e99xvul1" -} : undefined)( true ? { - name: "1gvx10y", - styles: "flex-grow:5" -} : undefined); -const AccessoryWrapper = /*#__PURE__*/Object(emotion_styled_base_browser_esm["a" /* default */])(flex_block_component, true ? { - target: "e99xvul0" -} : undefined)( true ? { - name: "1gvx10y", - styles: "flex-grow:5" -} : undefined); - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-picker/index.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - - - - - - - - - -const GradientAnglePicker = _ref => { - let { - gradientAST, - hasGradient, - onChange - } = _ref; - const angle = Object(external_lodash_["get"])(gradientAST, ['orientation', 'value'], DEFAULT_LINEAR_GRADIENT_ANGLE); - - const onAngleChange = newAngle => { - onChange(serializeGradient({ ...gradientAST, - orientation: { - type: 'angular', - value: newAngle - } - })); - }; - - return Object(external_wp_element_["createElement"])(AnglePickerControl, { - onChange: onAngleChange, - labelPosition: "top", - value: hasGradient ? angle : '' - }); -}; - -const GradientTypePicker = _ref2 => { - let { - gradientAST, - hasGradient, - onChange - } = _ref2; - const { - type - } = gradientAST; - - const onSetLinearGradient = () => { - onChange(serializeGradient({ ...gradientAST, - ...(gradientAST.orientation ? {} : { - orientation: HORIZONTAL_GRADIENT_ORIENTATION - }), - type: 'linear-gradient' - })); - }; - - const onSetRadialGradient = () => { - onChange(serializeGradient({ ...Object(external_lodash_["omit"])(gradientAST, ['orientation']), - type: 'radial-gradient' - })); - }; - - const handleOnChange = next => { - if (next === 'linear-gradient') { - onSetLinearGradient(); - } - - if (next === 'radial-gradient') { - onSetRadialGradient(); - } - }; - - return Object(external_wp_element_["createElement"])(select_control, { - className: "components-custom-gradient-picker__type-picker", - label: Object(external_wp_i18n_["__"])('Type'), - labelPosition: "top", - onChange: handleOnChange, - options: GRADIENT_OPTIONS, - value: hasGradient && type - }); -}; - -function CustomGradientPicker(_ref3) { - let { - value, - onChange - } = _ref3; - const gradientAST = getGradientAstWithDefault(value); // On radial gradients the bar should display a linear gradient. - // On radial gradients the bar represents a slice of the gradient from the center until the outside. - // On liner gradients the bar represents the color stops from left to right independently of the angle. - - const background = getLinearGradientRepresentation(gradientAST); - const hasGradient = gradientAST.value !== DEFAULT_GRADIENT; // Control points color option may be hex from presets, custom colors will be rgb. - // The position should always be a percentage. - - const controlPoints = gradientAST.colorStops.map(colorStop => ({ - color: getStopCssColor(colorStop), - position: parseInt(colorStop.length.value) - })); - return Object(external_wp_element_["createElement"])("div", { - className: "components-custom-gradient-picker" - }, Object(external_wp_element_["createElement"])(CustomGradientBar, { - background: background, - hasGradient: hasGradient, - value: controlPoints, - onChange: newControlPoints => { - onChange(serializeGradient(getGradientAstWithControlPoints(gradientAST, newControlPoints))); - } - }), Object(external_wp_element_["createElement"])(flex_component, { - gap: 3, - className: "components-custom-gradient-picker__ui-line" - }, Object(external_wp_element_["createElement"])(SelectWrapper, null, Object(external_wp_element_["createElement"])(GradientTypePicker, { - gradientAST: gradientAST, - hasGradient: hasGradient, - onChange: onChange - })), Object(external_wp_element_["createElement"])(AccessoryWrapper, null, gradientAST.type === 'linear-gradient' && Object(external_wp_element_["createElement"])(GradientAnglePicker, { - gradientAST: gradientAST, - hasGradient: hasGradient, - onChange: onChange - })))); -} - -// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/gradient-picker/index.js - - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -/** - * Internal dependencies - */ - - - - - - -function SingleOrigin(_ref) { - let { - className, - clearGradient, - gradients, - onChange, - value, - actions, - content - } = _ref; - const gradientOptions = Object(external_wp_element_["useMemo"])(() => { - return Object(external_lodash_["map"])(gradients, _ref2 => { - let { - gradient, - name - } = _ref2; - return Object(external_wp_element_["createElement"])(CircularOptionPicker.Option, { - key: gradient, - value: gradient, - isSelected: value === gradient, - tooltipText: name || // translators: %s: gradient code e.g: "linear-gradient(90deg, rgba(98,16,153,1) 0%, rgba(172,110,22,1) 100%);". - Object(external_wp_i18n_["sprintf"])(Object(external_wp_i18n_["__"])('Gradient code: %s'), gradient), - style: { - color: 'rgba( 0,0,0,0 )', - background: gradient - }, - onClick: value === gradient ? clearGradient : () => onChange(gradient), - "aria-label": name ? // translators: %s: The name of the gradient e.g: "Angular red to blue". - Object(external_wp_i18n_["sprintf"])(Object(external_wp_i18n_["__"])('Gradient: %s'), name) : // translators: %s: gradient code e.g: "linear-gradient(90deg, rgba(98,16,153,1) 0%, rgba(172,110,22,1) 100%);". - Object(external_wp_i18n_["sprintf"])(Object(external_wp_i18n_["__"])('Gradient code: %s'), gradient) - }); - }); - }, [gradients, value, onChange, clearGradient]); - return Object(external_wp_element_["createElement"])(CircularOptionPicker, { - className: className, - options: gradientOptions, - actions: actions - }, content); -} - -function MultipleOrigin(_ref3) { - let { - className, - clearGradient, - gradients, - onChange, - value, - actions, - content - } = _ref3; - return Object(external_wp_element_["createElement"])(v_stack_component, { - spacing: 3, - className: className - }, gradients.map((_ref4, index) => { - let { - name, - gradients: gradientSet - } = _ref4; - return Object(external_wp_element_["createElement"])(v_stack_component, { - spacing: 2, - key: index - }, Object(external_wp_element_["createElement"])(ColorHeading, null, name), Object(external_wp_element_["createElement"])(SingleOrigin, Object(esm_extends["a" /* default */])({ - clearGradient: clearGradient, - gradients: gradientSet, - onChange: onChange, - value: value - }, gradients.length === index + 1 ? { - actions, - content - } : {}))); - })); -} - -function GradientPicker(_ref5) { - let { - className, - gradients, - onChange, - value, - clearable = true, - disableCustomGradients = false, - __experimentalHasMultipleOrigins - } = _ref5; - const clearGradient = Object(external_wp_element_["useCallback"])(() => onChange(undefined), [onChange]); - const Component = __experimentalHasMultipleOrigins ? MultipleOrigin : SingleOrigin; - return Object(external_wp_element_["createElement"])(Component, { - className: className, - clearable: clearable, - clearGradient: clearGradient, - gradients: gradients, - onChange: onChange, - value: value, - actions: clearable && Object(external_wp_element_["createElement"])(CircularOptionPicker.ButtonAction, { - onClick: clearGradient - }, Object(external_wp_i18n_["__"])('Clear')), - content: !disableCustomGradients && Object(external_wp_element_["createElement"])(CustomGradientPicker, { - value: value, - onChange: onChange - }) - }); -} - // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/grid/utils.js const grid_utils_ALIGNMENTS = { bottom: { @@ -53301,8 +53393,8 @@ function showApp() { isHidden = false; } -// EXTERNAL MODULE: ./node_modules/@emotion/react/dist/emotion-element-1c22787f.browser.esm.js -var emotion_element_1c22787f_browser_esm = __webpack_require__("vAQN"); +// EXTERNAL MODULE: ./node_modules/@emotion/react/dist/emotion-element-699e6908.browser.esm.js +var emotion_element_699e6908_browser_esm = __webpack_require__("ek6p"); // EXTERNAL MODULE: ./node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js + 1 modules var emotion_cache_browser_esm = __webpack_require__("+1VY"); @@ -53346,7 +53438,7 @@ function StyleProvider(_ref) { } const cache = memoizedCreateCacheWithContainer(document.head); - return Object(external_wp_element_["createElement"])(emotion_element_1c22787f_browser_esm["a" /* C */], { + return Object(external_wp_element_["createElement"])(emotion_element_699e6908_browser_esm["a" /* C */], { value: cache }, children); } @@ -54220,45 +54312,48 @@ function navigation_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have t const NavigationUI = Object(emotion_styled_base_browser_esm["a" /* default */])("div", true ? { - target: "ejwewyf10" + target: "ejwewyf11" } : undefined)("width:100%;box-sizing:border-box;padding:0 ", space(4), ";overflow:hidden;" + ( true ? "" : undefined)); const MenuUI = Object(emotion_styled_base_browser_esm["a" /* default */])("div", true ? { - target: "ejwewyf9" + target: "ejwewyf10" } : undefined)("margin-top:", space(6), ";margin-bottom:", space(6), ";display:flex;flex-direction:column;ul{padding:0;margin:0;list-style:none;}.components-navigation__back-button{margin-bottom:", space(6), ";}.components-navigation__group+.components-navigation__group{margin-top:", space(6), ";}" + ( true ? "" : undefined)); const MenuBackButtonUI = /*#__PURE__*/Object(emotion_styled_base_browser_esm["a" /* default */])(build_module_button["a" /* default */], true ? { - target: "ejwewyf8" + target: "ejwewyf9" } : undefined)( true ? { name: "26l0q2", styles: "&.is-tertiary{color:inherit;opacity:0.7;&:hover:not( :disabled ){opacity:1;box-shadow:none;color:inherit;}&:active:not( :disabled ){background:transparent;opacity:1;color:inherit;}}" } : undefined); const MenuTitleUI = Object(emotion_styled_base_browser_esm["a" /* default */])("div", true ? { - target: "ejwewyf7" + target: "ejwewyf8" } : undefined)( true ? { name: "1aubja5", styles: "overflow:hidden;width:100%" } : undefined); const MenuTitleActionsUI = Object(emotion_styled_base_browser_esm["a" /* default */])("span", true ? { - target: "ejwewyf6" + target: "ejwewyf7" } : undefined)("height:", space(6), ";.components-button.is-small{color:inherit;opacity:0.7;margin-right:", space(1), ";padding:0;&:active:not( :disabled ){background:none;opacity:1;color:inherit;}&:hover:not( :disabled ){box-shadow:none;opacity:1;color:inherit;}}" + ( true ? "" : undefined)); const MenuTitleSearchUI = /*#__PURE__*/Object(emotion_styled_base_browser_esm["a" /* default */])(search_control, true ? { - target: "ejwewyf5" + target: "ejwewyf6" } : undefined)( true ? { name: "za3n3e", styles: "input[type='search'].components-search-control__input{margin:0;background:#303030;color:#fff;&:focus{background:#434343;color:#fff;}&::placeholder{color:rgba( 255, 255, 255, 0.6 );}}svg{fill:white;}.components-button.has-icon{padding:0;min-width:auto;}" } : undefined); const GroupTitleUI = /*#__PURE__*/Object(emotion_styled_base_browser_esm["a" /* default */])(heading_component, true ? { - target: "ejwewyf4" + target: "ejwewyf5" } : undefined)("min-height:", space(12), ";align-items:center;color:inherit;display:flex;justify-content:space-between;margin-bottom:", space(2), ";padding:", () => Object(external_wp_i18n_["isRTL"])() ? `${space(1)} ${space(4)} ${space(1)} ${space(2)}` : `${space(1)} ${space(2)} ${space(1)} ${space(4)}`, ";" + ( true ? "" : undefined)); const ItemBaseUI = Object(emotion_styled_base_browser_esm["a" /* default */])("li", true ? { - target: "ejwewyf3" + target: "ejwewyf4" } : undefined)("border-radius:2px;color:inherit;margin-bottom:0;>button,>a.components-button,>a{width:100%;color:inherit;opacity:0.7;padding:", space(2), " ", space(4), ";", rtl_rtl({ textAlign: 'left' }, { textAlign: 'right' }), " &:hover,&:focus:not( [aria-disabled='true'] ):active,&:active:not( [aria-disabled='true'] ):active{color:inherit;opacity:1;}}&.is-active{background-color:", UI.theme, ";color:", BASE.white, ";>button,>a{color:", BASE.white, ";opacity:1;}}>svg path{color:", G2.lightGray.ui, ";}" + ( true ? "" : undefined)); const ItemUI = Object(emotion_styled_base_browser_esm["a" /* default */])("div", true ? { - target: "ejwewyf2" + target: "ejwewyf3" } : undefined)("display:flex;align-items:center;height:auto;min-height:40px;margin:0;padding:", space(1.5), " ", space(4), ";font-weight:400;line-height:20px;width:100%;color:inherit;opacity:0.7;" + ( true ? "" : undefined)); +const ItemIconUI = Object(emotion_styled_base_browser_esm["a" /* default */])("span", true ? { + target: "ejwewyf2" +} : undefined)("display:flex;margin-right:", space(2), ";" + ( true ? "" : undefined)); const ItemBadgeUI = Object(emotion_styled_base_browser_esm["a" /* default */])("span", true ? { target: "ejwewyf1" } : undefined)("margin-left:", () => Object(external_wp_i18n_["isRTL"])() ? '0' : space(2), ";margin-right:", () => Object(external_wp_i18n_["isRTL"])() ? space(2) : '0', ";display:inline-flex;padding:", space(1), " ", space(3), ";border-radius:2px;animation:fade-in 250ms ease-out;@keyframes fade-in{from{opacity:0;}to{opacity:1;}}", reduceMotion('animation'), ";" + ( true ? "" : undefined)); @@ -54776,6 +54871,7 @@ function NavigationItem(props) { navigateToMenu, onClick = external_lodash_["noop"], title, + icon, hideIfTargetMenuEmpty, isText, ...restProps @@ -54806,7 +54902,7 @@ function NavigationItem(props) { onClick(event); }; - const icon = Object(external_wp_i18n_["isRTL"])() ? chevron_left["a" /* default */] : chevron_right["a" /* default */]; + const navigationIcon = Object(external_wp_i18n_["isRTL"])() ? chevron_left["a" /* default */] : chevron_right["a" /* default */]; const baseProps = children ? props : { ...props, onClick: undefined }; @@ -54818,11 +54914,13 @@ function NavigationItem(props) { }; return Object(external_wp_element_["createElement"])(NavigationItemBase, Object(esm_extends["a" /* default */])({}, baseProps, { className: classes - }), children || Object(external_wp_element_["createElement"])(ItemUI, itemProps, Object(external_wp_element_["createElement"])(NavigationItemBaseContent, { + }), children || Object(external_wp_element_["createElement"])(ItemUI, itemProps, icon && Object(external_wp_element_["createElement"])(ItemIconUI, null, Object(external_wp_element_["createElement"])(build_module_icon["a" /* default */], { + icon: icon + })), Object(external_wp_element_["createElement"])(NavigationItemBaseContent, { title: title, badge: badge }), navigateToMenu && Object(external_wp_element_["createElement"])(build_module_icon["a" /* default */], { - icon: icon + icon: navigationIcon }))); } @@ -62454,21 +62552,21 @@ const emitToChild = (children, eventName, event) => { } }; -function Tooltip(_ref4) { - let { +function Tooltip(props) { + const { children, position, text, shortcut, delay = TOOLTIP_DELAY - } = _ref4; - + } = props; /** * Whether a mouse is currently pressed, used in determining whether * to handle a focus event as displaying the tooltip immediately. * * @type {boolean} */ + const [isMouseDown, setIsMouseDown] = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["useState"])(false); const [isOver, setIsOver] = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["useState"])(false); const delayedSetIsOver = Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_2__["useDebounce"])(setIsOver, delay); @@ -65485,6 +65583,235 @@ var insertStyles = function insertStyles(cache, serialized, isStringTag) { +/***/ }), + +/***/ "ek6p": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CacheProvider; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return Emotion; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return ThemeContext; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __unsafe_useEmotionCache; }); +/* unused harmony export a */ +/* unused harmony export b */ +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return createEmotionProps; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return hasOwnProperty; }); +/* unused harmony export u */ +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return withEmotionCache; }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd"); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _emotion_cache__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("+1VY"); +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wx14"); +/* harmony import */ var _emotion_weak_memoize__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("gRFL"); +/* harmony import */ var _isolated_hnrs_dist_emotion_react_isolated_hnrs_browser_esm_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("i2T3"); +/* harmony import */ var _emotion_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("eVQB"); +/* harmony import */ var _emotion_serialize__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("Exhd"); + + + + + + + + +var hasOwnProperty = {}.hasOwnProperty; + +var EmotionCacheContext = /* #__PURE__ */Object(react__WEBPACK_IMPORTED_MODULE_0__["createContext"])( // we're doing this to avoid preconstruct's dead code elimination in this one case +// because this module is primarily intended for the browser and node +// but it's also required in react native and similar environments sometimes +// and we could have a special build just for that +// but this is much easier and the native packages +// might use a different theme context in the future anyway +typeof HTMLElement !== 'undefined' ? /* #__PURE__ */Object(_emotion_cache__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])({ + key: 'css' +}) : null); + +if (false) {} + +var CacheProvider = EmotionCacheContext.Provider; +var __unsafe_useEmotionCache = function useEmotionCache() { + return Object(react__WEBPACK_IMPORTED_MODULE_0__["useContext"])(EmotionCacheContext); +}; + +var withEmotionCache = function withEmotionCache(func) { + // $FlowFixMe + return /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(function (props, ref) { + // the cache will never be null in the browser + var cache = Object(react__WEBPACK_IMPORTED_MODULE_0__["useContext"])(EmotionCacheContext); + return func(props, cache, ref); + }); +}; + +var ThemeContext = /* #__PURE__ */Object(react__WEBPACK_IMPORTED_MODULE_0__["createContext"])({}); + +if (false) {} + +var useTheme = function useTheme() { + return Object(react__WEBPACK_IMPORTED_MODULE_0__["useContext"])(ThemeContext); +}; + +var getTheme = function getTheme(outerTheme, theme) { + if (typeof theme === 'function') { + var mergedTheme = theme(outerTheme); + + if (false) {} + + return mergedTheme; + } + + if (false) {} + + return Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])({}, outerTheme, theme); +}; + +var createCacheWithTheme = /* #__PURE__ */Object(_emotion_weak_memoize__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(function (outerTheme) { + return Object(_emotion_weak_memoize__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(function (theme) { + return getTheme(outerTheme, theme); + }); +}); +var ThemeProvider = function ThemeProvider(props) { + var theme = Object(react__WEBPACK_IMPORTED_MODULE_0__["useContext"])(ThemeContext); + + if (props.theme !== theme) { + theme = createCacheWithTheme(theme)(props.theme); + } + + return /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_0__["createElement"])(ThemeContext.Provider, { + value: theme + }, props.children); +}; +function withTheme(Component) { + var componentName = Component.displayName || Component.name || 'Component'; + + var render = function render(props, ref) { + var theme = Object(react__WEBPACK_IMPORTED_MODULE_0__["useContext"])(ThemeContext); + return /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_0__["createElement"])(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])({ + theme: theme, + ref: ref + }, props)); + }; // $FlowFixMe + + + var WithTheme = /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(render); + WithTheme.displayName = "WithTheme(" + componentName + ")"; + return Object(_isolated_hnrs_dist_emotion_react_isolated_hnrs_browser_esm_js__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(WithTheme, Component); +} + +var getFunctionNameFromStackTraceLine = function getFunctionNameFromStackTraceLine(line) { + // V8 + var match = /^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(line); + + if (match) { + // The match may be something like 'Object.createEmotionProps' + var parts = match[1].split('.'); + return parts[parts.length - 1]; + } // Safari / Firefox + + + match = /^([A-Za-z0-9$.]+)@/.exec(line); + if (match) return match[1]; + return undefined; +}; + +var internalReactFunctionNames = /* #__PURE__ */new Set(['renderWithHooks', 'processChild', 'finishClassComponent', 'renderToString']); // These identifiers come from error stacks, so they have to be valid JS +// identifiers, thus we only need to replace what is a valid character for JS, +// but not for CSS. + +var sanitizeIdentifier = function sanitizeIdentifier(identifier) { + return identifier.replace(/\$/g, '-'); +}; + +var getLabelFromStackTrace = function getLabelFromStackTrace(stackTrace) { + if (!stackTrace) return undefined; + var lines = stackTrace.split('\n'); + + for (var i = 0; i < lines.length; i++) { + var functionName = getFunctionNameFromStackTraceLine(lines[i]); // The first line of V8 stack traces is just "Error" + + if (!functionName) continue; // If we reach one of these, we have gone too far and should quit + + if (internalReactFunctionNames.has(functionName)) break; // The component name is the first function in the stack that starts with an + // uppercase letter + + if (/^[A-Z]/.test(functionName)) return sanitizeIdentifier(functionName); + } + + return undefined; +}; + +var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__'; +var labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__'; +var createEmotionProps = function createEmotionProps(type, props) { + if (false) {} + + var newProps = {}; + + for (var key in props) { + if (hasOwnProperty.call(props, key)) { + newProps[key] = props[key]; + } + } + + newProps[typePropName] = type; // For performance, only call getLabelFromStackTrace in development and when + // the label hasn't already been computed + + if (false) { var label; } + + return newProps; +}; + +var Noop = function Noop() { + return null; +}; + +var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) { + var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works + // not passing the registered cache to serializeStyles because it would + // make certain babel optimisations not possible + + if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) { + cssProp = cache.registered[cssProp]; + } + + var type = props[typePropName]; + var registeredStyles = [cssProp]; + var className = ''; + + if (typeof props.className === 'string') { + className = Object(_emotion_utils__WEBPACK_IMPORTED_MODULE_5__[/* getRegisteredStyles */ "a"])(cache.registered, registeredStyles, props.className); + } else if (props.className != null) { + className = props.className + " "; + } + + var serialized = Object(_emotion_serialize__WEBPACK_IMPORTED_MODULE_6__[/* serializeStyles */ "a"])(registeredStyles, undefined, Object(react__WEBPACK_IMPORTED_MODULE_0__["useContext"])(ThemeContext)); + + if (false) { var labelFromStack; } + + var rules = Object(_emotion_utils__WEBPACK_IMPORTED_MODULE_5__[/* insertStyles */ "b"])(cache, serialized, typeof type === 'string'); + className += cache.key + "-" + serialized.name; + var newProps = {}; + + for (var key in props) { + if (hasOwnProperty.call(props, key) && key !== 'css' && key !== typePropName && ( true || false)) { + newProps[key] = props[key]; + } + } + + newProps.ref = ref; + newProps.className = className; + var ele = /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_0__["createElement"])(type, newProps); + var possiblyStyleElement = /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_0__["createElement"])(Noop, null); + + + return /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_0__["createElement"])(react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, possiblyStyleElement, ele); +}); + +if (false) {} + + + + /***/ }), /***/ "ep+1": @@ -65813,8 +66140,8 @@ function isBeforeDay(a, b) { // EXPORTS __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ useCx; }); -// EXTERNAL MODULE: ./node_modules/@emotion/react/dist/emotion-element-1c22787f.browser.esm.js -var emotion_element_1c22787f_browser_esm = __webpack_require__("vAQN"); +// EXTERNAL MODULE: ./node_modules/@emotion/react/dist/emotion-element-699e6908.browser.esm.js +var emotion_element_699e6908_browser_esm = __webpack_require__("ek6p"); // EXTERNAL MODULE: ./node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js var emotion_utils_browser_esm = __webpack_require__("eVQB"); @@ -66033,7 +66360,7 @@ const isSerializedStyles = o => typeof o !== 'undefined' && o !== null && ['name const useCx = () => { - const cache = Object(emotion_element_1c22787f_browser_esm["d" /* _ */])(); + const cache = Object(emotion_element_699e6908_browser_esm["d" /* _ */])(); const cx = Object(external_wp_element_["useCallback"])(function () { if (cache === null) { throw new Error('The `useCx` hook should be only used within a valid Emotion Cache Context'); @@ -69780,7 +70107,7 @@ function computeAnchorRect(anchorRefFallback, anchorRect, getAnchorRect) { const { parentNode } = anchorRefFallback.current; - const rect = parentNode.getBoundingClientRect(); + const rect = offsetIframe(parentNode.getBoundingClientRect(), parentNode.ownerDocument, container); if (shouldAnchorIncludePadding) { return rect; @@ -71872,198 +72199,6 @@ module.exports = function GetIntrinsic(name, allowMissing) { }; -/***/ }), - -/***/ "vAQN": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CacheProvider; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return Emotion; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return ThemeContext; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __unsafe_useEmotionCache; }); -/* unused harmony export a */ -/* unused harmony export b */ -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return createEmotionProps; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return hasOwnProperty; }); -/* unused harmony export u */ -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return withEmotionCache; }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _emotion_cache__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("+1VY"); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("wx14"); -/* harmony import */ var _emotion_weak_memoize__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("gRFL"); -/* harmony import */ var _isolated_hnrs_dist_emotion_react_isolated_hnrs_browser_esm_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("i2T3"); -/* harmony import */ var _emotion_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("eVQB"); -/* harmony import */ var _emotion_serialize__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("Exhd"); - - - - - - - - -var hasOwnProperty = {}.hasOwnProperty; - -var EmotionCacheContext = /* #__PURE__ */Object(react__WEBPACK_IMPORTED_MODULE_0__["createContext"])( // we're doing this to avoid preconstruct's dead code elimination in this one case -// because this module is primarily intended for the browser and node -// but it's also required in react native and similar environments sometimes -// and we could have a special build just for that -// but this is much easier and the native packages -// might use a different theme context in the future anyway -typeof HTMLElement !== 'undefined' ? /* #__PURE__ */Object(_emotion_cache__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])({ - key: 'css' -}) : null); - -if (false) {} - -var CacheProvider = EmotionCacheContext.Provider; -var __unsafe_useEmotionCache = function useEmotionCache() { - return Object(react__WEBPACK_IMPORTED_MODULE_0__["useContext"])(EmotionCacheContext); -}; - -var withEmotionCache = function withEmotionCache(func) { - // $FlowFixMe - return /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(function (props, ref) { - // the cache will never be null in the browser - var cache = Object(react__WEBPACK_IMPORTED_MODULE_0__["useContext"])(EmotionCacheContext); - return func(props, cache, ref); - }); -}; - -var ThemeContext = /* #__PURE__ */Object(react__WEBPACK_IMPORTED_MODULE_0__["createContext"])({}); - -if (false) {} - -var useTheme = function useTheme() { - return Object(react__WEBPACK_IMPORTED_MODULE_0__["useContext"])(ThemeContext); -}; - -var getTheme = function getTheme(outerTheme, theme) { - if (typeof theme === 'function') { - var mergedTheme = theme(outerTheme); - - if (false) {} - - return mergedTheme; - } - - if (false) {} - - return Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])({}, outerTheme, theme); -}; - -var createCacheWithTheme = /* #__PURE__ */Object(_emotion_weak_memoize__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(function (outerTheme) { - return Object(_emotion_weak_memoize__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(function (theme) { - return getTheme(outerTheme, theme); - }); -}); -var ThemeProvider = function ThemeProvider(props) { - var theme = Object(react__WEBPACK_IMPORTED_MODULE_0__["useContext"])(ThemeContext); - - if (props.theme !== theme) { - theme = createCacheWithTheme(theme)(props.theme); - } - - return /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_0__["createElement"])(ThemeContext.Provider, { - value: theme - }, props.children); -}; -function withTheme(Component) { - var componentName = Component.displayName || Component.name || 'Component'; - - var render = function render(props, ref) { - var theme = Object(react__WEBPACK_IMPORTED_MODULE_0__["useContext"])(ThemeContext); - return /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_0__["createElement"])(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])({ - theme: theme, - ref: ref - }, props)); - }; // $FlowFixMe - - - var WithTheme = /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(render); - WithTheme.displayName = "WithTheme(" + componentName + ")"; - return Object(_isolated_hnrs_dist_emotion_react_isolated_hnrs_browser_esm_js__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(WithTheme, Component); -} - -// thus we only need to replace what is a valid character for JS, but not for CSS - -var sanitizeIdentifier = function sanitizeIdentifier(identifier) { - return identifier.replace(/\$/g, '-'); -}; - -var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__'; -var labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__'; -var createEmotionProps = function createEmotionProps(type, props) { - if (false) {} - - var newProps = {}; - - for (var key in props) { - if (hasOwnProperty.call(props, key)) { - newProps[key] = props[key]; - } - } - - newProps[typePropName] = type; - - if (false) { var match, error; } - - return newProps; -}; - -var Noop = function Noop() { - return null; -}; - -var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) { - var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works - // not passing the registered cache to serializeStyles because it would - // make certain babel optimisations not possible - - if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) { - cssProp = cache.registered[cssProp]; - } - - var type = props[typePropName]; - var registeredStyles = [cssProp]; - var className = ''; - - if (typeof props.className === 'string') { - className = Object(_emotion_utils__WEBPACK_IMPORTED_MODULE_5__[/* getRegisteredStyles */ "a"])(cache.registered, registeredStyles, props.className); - } else if (props.className != null) { - className = props.className + " "; - } - - var serialized = Object(_emotion_serialize__WEBPACK_IMPORTED_MODULE_6__[/* serializeStyles */ "a"])(registeredStyles, undefined, Object(react__WEBPACK_IMPORTED_MODULE_0__["useContext"])(ThemeContext)); - - if (false) { var labelFromStack; } - - var rules = Object(_emotion_utils__WEBPACK_IMPORTED_MODULE_5__[/* insertStyles */ "b"])(cache, serialized, typeof type === 'string'); - className += cache.key + "-" + serialized.name; - var newProps = {}; - - for (var key in props) { - if (hasOwnProperty.call(props, key) && key !== 'css' && key !== typePropName && ( true || false)) { - newProps[key] = props[key]; - } - } - - newProps.ref = ref; - newProps.className = className; - var ele = /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_0__["createElement"])(type, newProps); - var possiblyStyleElement = /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_0__["createElement"])(Noop, null); - - - return /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_0__["createElement"])(react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, possiblyStyleElement, ele); -}); - -if (false) {} - - - - /***/ }), /***/ "vLdR": diff --git a/wp-includes/js/dist/components.min.js b/wp-includes/js/dist/components.min.js index 0891f2d0d1..58f60e10d5 100644 --- a/wp-includes/js/dist/components.min.js +++ b/wp-includes/js/dist/components.min.js @@ -7,7 +7,7 @@ this.wp=this.wp||{},this.wp.components=function(e){var t={};function n(r){if(t[r * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var r=60103,o=60106,a=60107,i=60108,c=60114,s=60109,l=60110,u=60112,d=60113,f=60120,p=60115,b=60116,h=60121,m=60122,v=60117,g=60129,y=60131;if("function"==typeof Symbol&&Symbol.for){var O=Symbol.for;r=O("react.element"),o=O("react.portal"),a=O("react.fragment"),i=O("react.strict_mode"),c=O("react.profiler"),s=O("react.provider"),l=O("react.context"),u=O("react.forward_ref"),d=O("react.suspense"),f=O("react.suspense_list"),p=O("react.memo"),b=O("react.lazy"),h=O("react.block"),m=O("react.server.block"),v=O("react.fundamental"),g=O("react.debug_trace_mode"),y=O("react.legacy_hidden")}function j(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case a:case c:case i:case d:case f:return e;default:switch(e=e&&e.$$typeof){case l:case u:case b:case p:case s:return e;default:return t}}case o:return t}}}var w=s,x=r,_=u,E=a,k=b,S=p,C=o,P=c,T=i,M=d;t.ContextConsumer=l,t.ContextProvider=w,t.Element=x,t.ForwardRef=_,t.Fragment=E,t.Lazy=k,t.Memo=S,t.Portal=C,t.Profiler=P,t.StrictMode=T,t.Suspense=M,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return j(e)===l},t.isContextProvider=function(e){return j(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return j(e)===u},t.isFragment=function(e){return j(e)===a},t.isLazy=function(e){return j(e)===b},t.isMemo=function(e){return j(e)===p},t.isPortal=function(e){return j(e)===o},t.isProfiler=function(e){return j(e)===c},t.isStrictMode=function(e){return j(e)===i},t.isSuspense=function(e){return j(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===c||e===g||e===i||e===d||e===f||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===p||e.$$typeof===s||e.$$typeof===l||e.$$typeof===u||e.$$typeof===v||e.$$typeof===h||e[0]===m)},t.typeOf=j},"5yQQ":function(e,t,n){"use strict";var r=n("nRDI");e.exports=function(){if("undefined"!=typeof document){if(document.contains)return document.contains;if(document.body&&document.body.contains)try{if("boolean"==typeof document.body.contains.call(document,""))return document.body.contains}catch(e){}}return r}},"6/BL":function(e,t,n){"use strict";var r=n("oNNP"),o=n("10Kj"),a=n("PoQ0");e.exports=function(e){return void 0!==e&&(o(a,"Property Descriptor","Desc",e),!(!r(e,"[[Value]]")&&!r(e,"[[Writable]]")))}},"60zJ":function(e,t,n){"use strict";e.exports=function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0}},"6Ehn":function(e,t,n){"use strict";var r=n("j1Hc"),o=r("%Array.prototype%"),a=r("%RangeError%"),i=r("%SyntaxError%"),c=r("%TypeError%"),s=n("J2ba"),l=Math.pow(2,32)-1,u=r("%Object.setPrototypeOf%",!0)||([].__proto__!==o?null:function(e,t){return e.__proto__=t,e});e.exports=function(e){if(!s(e)||e<0)throw new c("Assertion failed: `length` must be an integer Number >= 0");if(e>l)throw new a("length is greater than (2**32 - 1)");var t=arguments.length>1?arguments[1]:o,n=[];if(t!==o){if(!u)throw new i("ArrayCreate: a `proto` argument that is not `Array.prototype` is not supported in an environment that does not support setting the [[Prototype]]");u(n,t)}return 0!==e&&(n.length=e),n}},"6HWY":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!r.default.isMoment(e)||!r.default.isMoment(t))&&(0,o.default)(e.clone().add(1,"month"),t)};var r=a(n("wy2R")),o=a(n("ulUS"));function a(e){return e&&e.__esModule?e:{default:e}}},"6I5v":function(e,t,n){"use strict";e.exports=function(e){return e>=0?1:-1}},"6XE+":function(e,t,n){"use strict";var r=n("j1Hc"),o=n("knm9"),a=r("%TypeError%"),i=n("qeuH")("Object.prototype.propertyIsEnumerable"),c=n("oNNP"),s=n("Bl8U"),l=n("nR7C"),u=n("a73V"),d=n("6orR"),f=n("PoQ0");e.exports=function(e,t){if("Object"!==f(e))throw new a("Assertion failed: O must be an Object");if(!l(t))throw new a("Assertion failed: P must be a Property Key");if(c(e,t)){if(!o){var n=s(e)&&"length"===t,r=u(e)&&"lastIndex"===t;return{"[[Configurable]]":!(n||r),"[[Enumerable]]":i(e,t),"[[Value]]":e[t],"[[Writable]]":!0}}return d(o(e,t))}}},"6orR":function(e,t,n){"use strict";var r=n("oNNP"),o=n("j1Hc")("%TypeError%"),a=n("PoQ0"),i=n("e87w"),c=n("1P9b");e.exports=function(e){if("Object"!==a(e))throw new o("ToPropertyDescriptor requires an object");var t={};if(r(e,"enumerable")&&(t["[[Enumerable]]"]=i(e.enumerable)),r(e,"configurable")&&(t["[[Configurable]]"]=i(e.configurable)),r(e,"value")&&(t["[[Value]]"]=e.value),r(e,"writable")&&(t["[[Writable]]"]=i(e.writable)),r(e,"get")){var n=e.get;if(void 0!==n&&!c(n))throw new o("getter must be a function");t["[[Get]]"]=n}if(r(e,"set")){var s=e.set;if(void 0!==s&&!c(s))throw new o("setter must be a function");t["[[Set]]"]=s}if((r(t,"[[Get]]")||r(t,"[[Set]]"))&&(r(t,"[[Value]]")||r(t,"[[Writable]]")))throw new o("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}},"6zzY":function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return s}));var r=n("GRId"),o=n("YLtl");n("Z23Y");const a=Object(r.createContext)({}),i=()=>Object(r.useContext)(a);function c(t){let{value:n}=t;const a=i(),c=Object(r.useRef)(n);!function(e,t){const n=Object(r.useRef)(!1);Object(r.useEffect)(()=>{if(n.current)return e();n.current=!0},t)}(()=>{Object(o.isEqual)(c.current,n)&&c.current!==n&&void 0!==e&&e.env},[n]);return Object(r.useMemo)(()=>Object(o.merge)(Object(o.cloneDeep)(a),n),[a,n])}const s=Object(r.memo)(e=>{let{children:t,value:n}=e;const o=c({value:n});return Object(r.createElement)(a.Provider,{value:o},t)})}).call(this,n("8oxB"))},"71Og":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=["button","color","file","image","reset","submit"];function o(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){var t=e;return-1!==r.indexOf(t.type)}return!1}},"75pU":function(e,t){function n(e,t,n,r){var o,a=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),i=t.get(a);return void 0===i&&(i=e.call(this,r),t.set(a,i)),i}function r(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),a=t.get(o);return void 0===a&&(a=e.apply(this,r),t.set(o,a)),a}function o(e,t,n,r,o){return n.bind(t,e,r,o)}function a(e,t){return o(e,this,1===e.length?n:r,t.cache.create(),t.serializer)}function i(){return JSON.stringify(arguments)}function c(){this.cache=Object.create(null)}c.prototype.has=function(e){return e in this.cache},c.prototype.get=function(e){return this.cache[e]},c.prototype.set=function(e,t){this.cache[e]=t};var s={create:function(){return new c}};e.exports=function(e,t){var n=t&&t.cache?t.cache:s,r=t&&t.serializer?t.serializer:i;return(t&&t.strategy?t.strategy:a)(e,{cache:n,serializer:r})},e.exports.strategies={variadic:function(e,t){return o(e,this,r,t.cache.create(),t.serializer)},monadic:function(e,t){return o(e,this,n,t.cache.create(),t.serializer)}}},"7Cbv":function(e,t,n){"use strict";var r,o=new Uint8Array(16);function a(){if(!r&&!(r="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 r(o)}var i=/^(?:[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 c=function(e){return"string"==typeof e&&i.test(e)},s=[],l=0;l<256;++l)s.push((l+256).toString(16).substr(1));var u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!c(n))throw TypeError("Stringified UUID is invalid");return n};t.a=function(e,t,n){var r=(e=e||{}).random||(e.rng||a)();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 u(r)}},"7Jlx":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));var r=n("YLtl"),o=n("GRId"),a=(n("Z23Y"),n("tQ+x")),i=n("UAm0");function c(t,n){let c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{memo:s=!1}=c;let l=Object(o.forwardRef)(t);s&&(l=Object(o.memo)(l)),void 0===n&&void 0!==e&&e.env;let u=l[a.c]||[n];return Array.isArray(n)&&(u=[...u,...n]),"string"==typeof n&&(u=[...u,n]),l.displayName=n,l[a.c]=Object(r.uniq)(u),l.selector="."+Object(i.a)(n),l}function s(e){if(!e)return[];let t=[];return e[a.c]&&(t=e[a.c]),e.type&&e.type[a.c]&&(t=e.type[a.c]),t}function l(e,t){return!!e&&("string"==typeof t?s(e).includes(t):!!Array.isArray(t)&&t.some(t=>s(e).includes(t)))}}).call(this,n("8oxB"))},"7bKH":function(e,t,n){"use strict";var r=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},o=function(e){return.2126*r(e.r)+.7152*r(e.g)+.0722*r(e.b)};t.a=function(e){e.prototype.luminance=function(){return e=o(this.rgba),void 0===(t=2)&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var n,r,a,i,c,s,l,u=t instanceof e?t:new e(t);return i=this.rgba,c=u.toRgb(),n=(s=o(i))>(l=o(c))?(s+.05)/(l+.05):(l+.05)/(s+.05),void 0===(r=2)&&(r=0),void 0===a&&(a=Math.pow(10,r)),Math.floor(a*n)/a+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(i=void 0===(a=(n=t).size)?"normal":a,"AAA"===(o=void 0===(r=n.level)?"AA":r)&&"normal"===i?7:"AA"===o&&"large"===i?3:4.5);var n,r,o,a,i}}},"82c2":function(e,t,n){"use strict";var r=n("1seS"),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),a=Object.prototype.toString,i=Array.prototype.concat,c=Object.defineProperty,s=c&&function(){var e={};try{for(var t in c(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),l=function(e,t,n,r){var o;(!(t in e)||"function"==typeof(o=r)&&"[object Function]"===a.call(o)&&r())&&(s?c(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},u=function(e,t){var n=arguments.length>2?arguments[2]:{},a=r(t);o&&(a=i.call(a,Object.getOwnPropertySymbols(t)));for(var c=0;c<a.length;c+=1)l(e,a[c],t[a[c]],n[a[c]])};u.supportsDescriptors=!!s,e.exports=u},"8R9v":function(e,t,n){"use strict";var r=n("82c2"),o=n("yLpt");e.exports=function(){var e=o();return r(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e}},"8oxB":function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var s,l=[],u=!1,d=-1;function f(){u&&s&&(u=!1,s.length?l=s.concat(l):d=-1,l.length&&p())}function p(){if(!u){var e=c(f);u=!0;for(var t=l.length;t;){for(s=l,l=[];++d<t;)s&&s[d].run();d=-1,t=l.length}s=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function b(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new b(e,t)),1!==l.length||u||c(p)},b.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},"8sMu":function(e,t,n){"use strict";var r=Math.floor;e.exports=function(e){return r(e)}},"9Do8":function(e,t,n){"use strict";e.exports=n("zt9T")},"9VDH":function(e,t,n){"use strict";var r=n("wx14"),o=n("GRId"),a=n("Tqx9"),i=n("vUUf");t.a=function(e){let{icon:t=null,size:n=24,...c}=e;if("string"==typeof t)return Object(o.createElement)(i.a,Object(r.a)({icon:t},c));if(Object(o.isValidElement)(t)&&i.a===t.type)return Object(o.cloneElement)(t,{...c});if("function"==typeof t)return t.prototype instanceof o.Component?Object(o.createElement)(t,{size:n,...c}):t({size:n,...c});if(t&&("svg"===t.type||t.type===a.SVG)){const e={width:n,height:n,...t.props,...c};return Object(o.createElement)(a.SVG,e)}return Object(o.isValidElement)(t)?Object(o.cloneElement)(t,{size:n,...c}):t}},"9Zbq":function(e,t,n){"use strict";function r(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}n.d(t,"a",(function(){return r}))},"9cOx":function(e,t,n){"use strict";var r=n("j1Hc")("%Array%"),o=!r.isArray&&n("qeuH")("Object.prototype.toString");e.exports=r.isArray||function(e){return"[object Array]"===o(e)}},"9gmn":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("cDcd"),a=(r=o)&&r.__esModule?r:{default:r};var i=function(e){return a.default.createElement("svg",e,a.default.createElement("path",{d:"M32.1 712.6l453.2-452.2c11-11 21-11 32 0l453.2 452.2c4 5 6 10 6 16 0 13-10 23-22 23-7 0-12-2-16-7L501.3 308.5 64.1 744.7c-4 5-9 7-15 7-7 0-12-2-17-7-9-11-9-21 0-32.1z"}))};i.defaultProps={viewBox:"0 0 1000 1000"},t.default=i},"9pTB":function(e,t,n){"use strict";(function(t){var r=n("82c2"),o=n("/sVA"),a="__ global cache key __";"function"==typeof Symbol&&o(Symbol("foo"))&&"function"==typeof Symbol.for&&(a=Symbol.for(a));var i=function(){return!0},c=function(){if(!t[a]){var e={};e[a]={};var n={};n[a]=i,r(t,e,n)}return t[a]},s=c(),l=function(e){return o(e)?Symbol.prototype.valueOf.call(e):typeof e+" | "+String(e)},u=function(e){if(!function(e){return null===e||"object"!=typeof e&&"function"!=typeof e}(e))throw new TypeError("key must not be an object")},d={clear:function(){delete t[a],s=c()},delete:function(e){return u(e),delete s[l(e)],!d.has(e)},get:function(e){return u(e),s[l(e)]},has:function(e){return u(e),l(e)in s},set:function(e,t){u(e);var n=l(e),o={};o[n]=t;var a={};return a[n]=i,r(s,o,a),d.has(e)},setIfMissingThenGet:function(e,t){if(d.has(e))return d.get(e);var n=t();return d.set(e,n),n}};e.exports=d}).call(this,n("yLpj"))},AClM:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("Nym8");function o(e){var t=Object(r.a)(e);if(!t)return!1;if(t===e)return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function a(e,t){var n=void 0===t?{}:t,r=n.preventScroll,a=n.isActive,i=void 0===a?o:a;return i(e)?-1:(e.focus({preventScroll:r}),i(e)?-1:requestAnimationFrame((function(){e.focus({preventScroll:r})})))}},AM7I:function(e,t,n){"use strict";var r=SyntaxError,o=Function,a=TypeError,i=function(e){try{return Function('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var s=function(){throw new a},l=c?function(){try{return s}catch(e){try{return c(arguments,"callee").get}catch(e){return s}}}():s,u=n("UVaH")(),d=Object.getPrototypeOf||function(e){return e.__proto__},f=i("async function* () {}"),p=f?f.prototype:void 0,b=p?p.prototype:void 0,h="undefined"==typeof Uint8Array?void 0:d(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":u?d([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":i("async function () {}"),"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":b?d(b):void 0,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":i("function* () {}"),"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u?d(d([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u?d((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&u?d((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u?d(""[Symbol.iterator]()):void 0,"%Symbol%":u?Symbol:void 0,"%SyntaxError%":r,"%ThrowTypeError%":l,"%TypedArray%":h,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=n("D3zA"),y=n("oNNP"),O=g.call(Function.call,Array.prototype.concat),j=g.call(Function.apply,Array.prototype.splice),w=g.call(Function.call,String.prototype.replace),x=g.call(Function.call,String.prototype.slice),_=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E=/\\(\\)?/g,k=function(e){var t=x(e,0,1),n=x(e,-1);if("%"===t&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new r("invalid intrinsic syntax, expected opening `%`");var o=[];return w(e,_,(function(e,t,n,r){o[o.length]=n?w(r,E,"$1"):t||e})),o},S=function(e,t){var n,o=e;if(y(v,o)&&(o="%"+(n=v[o])[0]+"%"),y(m,o)){var i=m[o];if(void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:i}}throw new r("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');var n=k(e),o=n.length>0?n[0]:"",i=S("%"+o+"%",t),s=i.name,l=i.value,u=!1,d=i.alias;d&&(o=d[0],j(n,O([0,1],d)));for(var f=1,p=!0;f<n.length;f+=1){var b=n[f],h=x(b,0,1),v=x(b,-1);if(('"'===h||"'"===h||"`"===h||'"'===v||"'"===v||"`"===v)&&h!==v)throw new r("property names with quotes must have matching quotes");if("constructor"!==b&&p||(u=!0),y(m,s="%"+(o+="."+b)+"%"))l=m[s];else if(null!=l){if(!(b in l)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&f+1>=n.length){var g=c(l,b);l=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:l[b]}else p=y(l,b),l=l[b];p&&!u&&(m[s]=l)}}return l}},AP2z:function(e,t,n){var r=n("nmnc"),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,c=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[c]=n:delete e[c]),o}},APjL:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("9Zbq");function o(e,t){if("closest"in e)return e.closest(t);do{if(Object(r.a)(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}},AXvK:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("cDcd"),o=n("+ipW").a?r.useLayoutEffect:r.useEffect},Ae65:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,o){var c=o.chooseAvailableDate,s=o.dateIsUnavailable,l=o.dateIsSelected,u={width:n,height:n-1},d=r.has("blocked-minimum-nights")||r.has("blocked-calendar")||r.has("blocked-out-of-range"),f=r.has("selected")||r.has("selected-start")||r.has("selected-end"),p=!f&&(r.has("hovered-span")||r.has("after-hovered-start")),b=r.has("blocked-out-of-range"),h={date:e.format(t)},m=(0,a.default)(c,h);r.has(i.BLOCKED_MODIFIER)?m=(0,a.default)(s,h):f&&(m=(0,a.default)(l,h));return{daySizeStyles:u,useDefaultCursor:d,selected:f,hoveredSpan:p,isOutsideRange:b,ariaLabel:m}};var r,o=n("oOcr"),a=(r=o)&&r.__esModule?r:{default:r},i=n("Fv1B")},AeFk:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));n("cDcd"),n("+1VY"),n("vAQN"),n("pVnL"),n("gRFL"),n("2mql"),n("eVQB");var r=n("Exhd");n("ep+1");function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(r.a)(t)}var a=function(){var e=o.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},Asd8:function(e,t,n){"use strict";var r,o,a=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{r=Object.defineProperty({},"length",{get:function(){throw o}}),o={},i((function(){throw 42}),null,r)}catch(e){e!==o&&(i=null)}else i=null;var c=/^\s*class\b/,s=function(e){try{var t=a.call(e);return c.test(t)}catch(e){return!1}},l=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,d="object"==typeof document&&void 0===document.all&&void 0!==document.all?document.all:{};e.exports=i?function(e){if(e===d)return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{i(e,null,r)}catch(e){if(e!==o)return!1}return!s(e)}:function(e){if(e===d)return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(u)return function(e){try{return!s(e)&&(a.call(e),!0)}catch(e){return!1}}(e);if(s(e))return!1;var t=l.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},"B6Q+":function(e,t,n){"use strict";var r=n("qGip");e.exports=function(){return r()&&!!Symbol.toStringTag}},BZp5:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s}))},BeK9:function(e,t,n){"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},Bl8U:function(e,t,n){"use strict";var r=n("j1Hc")("%Array%"),o=!r.isArray&&n("qeuH")("Object.prototype.toString");e.exports=r.isArray||function(e){return"[object Array]"===o(e)}},Bpkj:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));t.a=a},C6yU:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));n("Z23Y");var r=n("6zzY"),o=n("Ohaz"),a=n("UAm0"),i=n("h9+V");function c(t,n){const c=Object(r.b)();void 0===n&&void 0!==e&&e.env;const s=(null==c?void 0:c[n])||{},l={...Object(o.a)(),...Object(o.b)(n)},{_overrides:u,...d}=s,f=Object.entries(d).length?Object.assign({},d,t):t,p=Object(i.a)()(Object(a.a)(n),t.className),b="function"==typeof f.renderChildren?f.renderChildren(f):f.children;for(const e in f)l[e]=f[e];for(const e in u)l[e]=u[e];return l.children=b,l.className=p,l}}).call(this,n("8oxB"))},"Cw+6":function(e,t,n){"use strict";var r=n("GRId"),o=n("YLtl");t.a=function(e){let t,n,{shortcut:a,className:i}=e;return a?(Object(o.isString)(a)&&(t=a),Object(o.isObject)(a)&&(t=a.display,n=a.ariaLabel),Object(r.createElement)("span",{className:i,"aria-label":n},t)):null}},Cx2f:function(e,t,n){"use strict";var r=n("WZeS");e.exports=function(e){return arguments.length>1?r(e,arguments[1]):r(e)}},D3zA:function(e,t,n){"use strict";var r=n("aI7X");e.exports=Function.prototype.bind||r},DHWS:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("cDcd"),a=(r=o)&&r.__esModule?r:{default:r};var i=function(e){return a.default.createElement("svg",e,a.default.createElement("path",{d:"M967.5 288.5L514.3 740.7c-11 11-21 11-32 0L29.1 288.5c-4-5-6-11-6-16 0-13 10-23 23-23 6 0 11 2 15 7l437.2 436.2 437.2-436.2c4-5 9-7 16-7 6 0 11 2 16 7 9 10.9 9 21 0 32z"}))};i.defaultProps={viewBox:"0 0 1000 1000"},t.default=i},DZdY:function(e,t,n){"use strict";var r=n("wx14"),o=n("cDcd"),a=n("SVgp"),i=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,c=Object(a.a)((function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),s=n("vAQN"),l=n("eVQB"),u=n("Exhd"),d=c,f=function(e){return"theme"!==e},p=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?d:f},b=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},h=function(){return null};t.a=function e(t,n){var a,i,c=t.__emotion_real===t,d=c&&t.__emotion_base||t;void 0!==n&&(a=n.label,i=n.target);var f=b(t,n,c),m=f||p(d),v=!m("as");return function(){var g=arguments,y=c&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==a&&y.push("label:"+a+";"),null==g[0]||void 0===g[0].raw)y.push.apply(y,g);else{0,y.push(g[0][0]);for(var O=g.length,j=1;j<O;j++)y.push(g[j],g[0][j])}var w=Object(s.g)((function(e,t,n){var r=v&&e.as||d,a="",c=[],b=e;if(null==e.theme){for(var g in b={},e)b[g]=e[g];b.theme=Object(o.useContext)(s.c)}"string"==typeof e.className?a=Object(l.a)(t.registered,c,e.className):null!=e.className&&(a=e.className+" ");var O=Object(u.a)(y.concat(c),t.registered,b);Object(l.b)(t,O,"string"==typeof r);a+=t.key+"-"+O.name,void 0!==i&&(a+=" "+i);var j=v&&void 0===f?p(r):m,w={};for(var x in e)v&&"as"===x||j(x)&&(w[x]=e[x]);w.className=a,w.ref=n;var _=Object(o.createElement)(r,w),E=Object(o.createElement)(h,null);return Object(o.createElement)(o.Fragment,null,E,_)}));return w.displayName=void 0!==a?a:"Styled("+("string"==typeof d?d:d.displayName||d.name||"Component")+")",w.defaultProps=t.defaultProps,w.__emotion_real=w,w.__emotion_base=d,w.__emotion_styles=y,w.__emotion_forwardProp=f,Object.defineProperty(w,"toString",{value:function(){return"."+i}}),w.withComponent=function(t,o){return e(t,Object(r.a)({},n,o,{shouldForwardProp:b(w,o,!0)})).apply(void 0,y)},w}}},DciD:function(e,t,n){"use strict";function r(){return null}function o(){return r}r.isRequired=r,e.exports={and:o,between:o,booleanSome:o,childrenHavePropXorChildren:o,childrenOf:o,childrenOfType:o,childrenSequenceOf:o,componentWithName:o,disallowedIf:o,elementType:o,empty:o,explicitNull:o,forbidExtraProps:Object,integer:o,keysOf:o,mutuallyExclusiveProps:o,mutuallyExclusiveTrueProps:o,nChildren:o,nonNegativeInteger:r,nonNegativeNumber:o,numericString:o,object:o,or:o,predicate:o,range:o,ref:o,requiredBy:o,restrictedProp:o,sequenceOf:o,shape:o,stringEndsWith:o,stringStartsWith:o,uniqueArray:o,uniqueArrayOf:o,valuesOf:o,withShape:o}},DmXP:function(e,t,n){"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"object"==typeof e&&null!==e&&(a?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},DzJC:function(e,t,n){var r=n("sEfC"),o=n("GoyQ");e.exports=function(e,t,n){var a=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(a="leading"in n?!!n.leading:a,i="trailing"in n?!!n.trailing:i),r(e,t,{leading:a,maxWait:t,trailing:i})}},ExA7:function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},Exhd:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},o={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},a=n("SVgp"),i=/[A-Z]|^ms/g,c=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!=typeof e},u=Object(a.a)((function(e){return s(e)?e:e.replace(i,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(c,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===o[e]||s(e)||"number"!=typeof t||0===t?t:t+"px"};function f(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)p={name:r.name,styles:r.styles,next:p},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=f(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":l(i)&&(r+=u(a)+":"+d(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var c=f(e,t,i);switch(a){case"animation":case"animationName":r+=u(a)+":"+c+";";break;default:r+=a+"{"+c+"}"}}else for(var s=0;s<i.length;s++)l(i[s])&&(r+=u(a)+":"+d(a,i[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=p,a=n(e);return p=o,f(e,t,a)}break;case"string":}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var p,b=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var h=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,a="";p=void 0;var i=e[0];null==i||void 0===i.raw?(o=!1,a+=f(n,t,i)):a+=i[0];for(var c=1;c<e.length;c++)a+=f(n,t,e[c]),o&&(a+=i[c]);b.lastIndex=0;for(var s,l="";null!==(s=b.exec(a));)l+="-"+s[1];return{name:r(a)+l,styles:a,next:p}}},F7ZS:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.default.localeData().firstDayOfWeek();if(!a.default.isMoment(e)||!e.isValid())throw new TypeError("`month` must be a valid moment object");if(-1===i.WEEKDAYS.indexOf(n))throw new TypeError("`firstDayOfWeek` must be an integer between 0 and 6");for(var r=e.clone().startOf("month").hour(12),o=e.clone().endOf("month").hour(12),c=(r.day()+7-n)%7,s=(n+6-o.day())%7,l=r.clone().subtract(c,"day"),u=o.clone().add(s,"day"),d=u.diff(l,"days")+1,f=l.clone(),p=[],b=0;b<d;b+=1){b%7==0&&p.push([]);var h=null;(b>=c&&b<d-s||t)&&(h=f.clone()),p[p.length-1].push(h),f.add(1,"day")}return p};var r,o=n("wy2R"),a=(r=o)&&r.__esModule?r:{default:r},i=n("Fv1B")},FpZJ:function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},FqII:function(e,t){e.exports=window.wp.date},FufO:function(e,t,n){"use strict";var r=n("1seS"),o=function(e){return null!=e},a=n("FpZJ")(),i=n("VF6F"),c=Object,s=i("Array.prototype.push"),l=i("Object.prototype.propertyIsEnumerable"),u=a?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(!o(e))throw new TypeError("target must be an object");var n,i,d,f,p,b,h,m=c(e);for(n=1;n<arguments.length;++n){i=c(arguments[n]),f=r(i);var v=a&&(Object.getOwnPropertySymbols||u);if(v)for(p=v(i),d=0;d<p.length;++d)h=p[d],l(i,h)&&s(f,h);for(d=0;d<f.length;++d)b=i[h=f[d]],l(i,h)&&(m[h]=b)}return m}},Fv1B:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.DISPLAY_FORMAT="L",t.ISO_FORMAT="YYYY-MM-DD",t.ISO_MONTH_FORMAT="YYYY-MM",t.START_DATE="startDate",t.END_DATE="endDate",t.HORIZONTAL_ORIENTATION="horizontal",t.VERTICAL_ORIENTATION="vertical",t.VERTICAL_SCROLLABLE="verticalScrollable",t.ICON_BEFORE_POSITION="before",t.ICON_AFTER_POSITION="after",t.INFO_POSITION_TOP="top",t.INFO_POSITION_BOTTOM="bottom",t.INFO_POSITION_BEFORE="before",t.INFO_POSITION_AFTER="after",t.ANCHOR_LEFT="left",t.ANCHOR_RIGHT="right",t.OPEN_DOWN="down",t.OPEN_UP="up",t.DAY_SIZE=39,t.BLOCKED_MODIFIER="blocked",t.WEEKDAYS=[0,1,2,3,4,5,6],t.FANG_WIDTH_PX=20,t.FANG_HEIGHT_PX=10,t.DEFAULT_VERTICAL_SPACING=22,t.MODIFIER_KEY_NAMES=new Set(["Shift","Control","Alt","Meta"])},G3V0:function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var r=n("BZp5"),o=n("hE48"),a=n("qdes"),i=n("cDcd"),c=n("aU41"),s=n("71Og"),l=(n("KA1K"),n("eNtd")),u=n("AXvK"),d=n("PcHe"),f=n("Vq1w"),p=n("reMF"),b=n("kqkJ"),h=n("zGFp"),m=Object(p.a)("Mac")&&!Object(p.a)("Chrome")&&(Object(p.a)("Safari")||Object(p.a)("Firefox"));function v(e){!Object(d.a)(e)&&Object(b.c)(e)&&e.focus()}function g(e,t,n,r){return e?t&&!n?-1:void 0:t?r:r||0}function y(e,t){return Object(i.useCallback)((function(n){var r;null===(r=e.current)||void 0===r||r.call(e,n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}),[e,t])}var O=Object(a.a)({name:"Tabbable",compose:h.a,keys:["disabled","focusable"],useOptions:function(e,t){var n=t.disabled;return Object(r.b)({disabled:n},e)},useProps:function(e,t){var n=t.ref,o=t.tabIndex,a=t.onClickCapture,d=t.onMouseDownCapture,p=t.onMouseDown,b=t.onKeyPressCapture,h=t.style,O=Object(r.a)(t,["ref","tabIndex","onClickCapture","onMouseDownCapture","onMouseDown","onKeyPressCapture","style"]),j=Object(i.useRef)(null),w=Object(l.a)(a),x=Object(l.a)(d),_=Object(l.a)(p),E=Object(l.a)(b),k=!!e.disabled&&!e.focusable,S=Object(i.useState)(!0),C=S[0],P=S[1],T=Object(i.useState)(!0),M=T[0],D=T[1],I=e.disabled?Object(r.b)({pointerEvents:"none"},h):h;Object(u.a)((function(){var e=j.current;e&&(["BUTTON","INPUT","SELECT","TEXTAREA","A"].includes(e.tagName)||P(!1),function(e){return["BUTTON","INPUT","SELECT","TEXTAREA"].includes(e.tagName)}(e)||D(!1))}),[]);var R=y(w,e.disabled),A=y(x,e.disabled),N=y(E,e.disabled),L=Object(i.useCallback)((function(e){var t;null===(t=_.current)||void 0===t||t.call(_,e);var n=e.currentTarget;if(!e.defaultPrevented&&m&&!Object(f.a)(e)&&Object(s.a)(n)){var r=requestAnimationFrame((function(){n.removeEventListener("mouseup",o,!0),v(n)})),o=function(){cancelAnimationFrame(r),v(n)};n.addEventListener("mouseup",o,{once:!0,capture:!0})}}),[]);return Object(r.b)({ref:Object(c.a)(j,n),style:I,tabIndex:g(k,C,M,o),disabled:!(!k||!M)||void 0,"aria-disabled":!!e.disabled||void 0,onClickCapture:R,onMouseDownCapture:A,onMouseDown:L,onKeyPressCapture:N},O)}});Object(o.a)({as:"div",useHook:O})},GET3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureCustomizableCalendarDay=t.selectedStyles=t.lastInRangeStyles=t.selectedSpanStyles=t.hoveredSpanStyles=t.blockedOutOfRangeStyles=t.blockedCalendarStyles=t.blockedMinNightsStyles=t.highlightedCalendarStyles=t.outsideStyles=t.defaultStyles=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=v(n("Koq/")),i=v(n("cDcd")),c=v(n("17x9")),s=v(n("YZDV")),l=v(n("XGBb")),u=n("Hsqg"),d=n("TG4+"),f=v(n("wy2R")),p=n("vV+G"),b=v(n("yc2e")),h=v(n("Ae65")),m=n("Fv1B");function v(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var O=v(n("xOhs")).default.reactDates.color;function j(e,t){if(!e)return null;var n=e.hover;return t&&n?n:e}var w=c.default.shape({background:c.default.string,border:(0,u.or)([c.default.string,c.default.number]),color:c.default.string,hover:c.default.shape({background:c.default.string,border:(0,u.or)([c.default.string,c.default.number]),color:c.default.string})}),x=(0,u.forbidExtraProps)((0,a.default)({},d.withStylesPropTypes,{day:l.default.momentObj,daySize:u.nonNegativeInteger,isOutsideDay:c.default.bool,modifiers:c.default.instanceOf(Set),isFocused:c.default.bool,tabIndex:c.default.oneOf([0,-1]),onDayClick:c.default.func,onDayMouseEnter:c.default.func,onDayMouseLeave:c.default.func,renderDayContents:c.default.func,ariaLabelFormat:c.default.string,defaultStyles:w,outsideStyles:w,todayStyles:w,firstDayOfWeekStyles:w,lastDayOfWeekStyles:w,highlightedCalendarStyles:w,blockedMinNightsStyles:w,blockedCalendarStyles:w,blockedOutOfRangeStyles:w,hoveredSpanStyles:w,selectedSpanStyles:w,lastInRangeStyles:w,selectedStyles:w,selectedStartStyles:w,selectedEndStyles:w,afterHoveredStartStyles:w,phrases:c.default.shape((0,b.default)(p.CalendarDayPhrases))})),_=t.defaultStyles={border:"1px solid "+String(O.core.borderLight),color:O.text,background:O.background,hover:{background:O.core.borderLight,border:"1px double "+String(O.core.borderLight),color:"inherit"}},E=t.outsideStyles={background:O.outside.backgroundColor,border:0,color:O.outside.color},k=t.highlightedCalendarStyles={background:O.highlighted.backgroundColor,color:O.highlighted.color,hover:{background:O.highlighted.backgroundColor_hover,color:O.highlighted.color_active}},S=t.blockedMinNightsStyles={background:O.minimumNights.backgroundColor,border:"1px solid "+String(O.minimumNights.borderColor),color:O.minimumNights.color,hover:{background:O.minimumNights.backgroundColor_hover,color:O.minimumNights.color_active}},C=t.blockedCalendarStyles={background:O.blocked_calendar.backgroundColor,border:"1px solid "+String(O.blocked_calendar.borderColor),color:O.blocked_calendar.color,hover:{background:O.blocked_calendar.backgroundColor_hover,border:"1px solid "+String(O.blocked_calendar.borderColor),color:O.blocked_calendar.color_active}},P=t.blockedOutOfRangeStyles={background:O.blocked_out_of_range.backgroundColor,border:"1px solid "+String(O.blocked_out_of_range.borderColor),color:O.blocked_out_of_range.color,hover:{background:O.blocked_out_of_range.backgroundColor_hover,border:"1px solid "+String(O.blocked_out_of_range.borderColor),color:O.blocked_out_of_range.color_active}},T=t.hoveredSpanStyles={background:O.hoveredSpan.backgroundColor,border:"1px solid "+String(O.hoveredSpan.borderColor),color:O.hoveredSpan.color,hover:{background:O.hoveredSpan.backgroundColor_hover,border:"1px solid "+String(O.hoveredSpan.borderColor),color:O.hoveredSpan.color_active}},M=t.selectedSpanStyles={background:O.selectedSpan.backgroundColor,border:"1px solid "+String(O.selectedSpan.borderColor),color:O.selectedSpan.color,hover:{background:O.selectedSpan.backgroundColor_hover,border:"1px solid "+String(O.selectedSpan.borderColor),color:O.selectedSpan.color_active}},D=t.lastInRangeStyles={borderRight:O.core.primary},I=t.selectedStyles={background:O.selected.backgroundColor,border:"1px solid "+String(O.selected.borderColor),color:O.selected.color,hover:{background:O.selected.backgroundColor_hover,border:"1px solid "+String(O.selected.borderColor),color:O.selected.color_active}},R={day:(0,f.default)(),daySize:m.DAY_SIZE,isOutsideDay:!1,modifiers:new Set,isFocused:!1,tabIndex:-1,onDayClick:function(){},onDayMouseEnter:function(){},onDayMouseLeave:function(){},renderDayContents:null,ariaLabelFormat:"dddd, LL",defaultStyles:_,outsideStyles:E,todayStyles:{},highlightedCalendarStyles:k,blockedMinNightsStyles:S,blockedCalendarStyles:C,blockedOutOfRangeStyles:P,hoveredSpanStyles:T,selectedSpanStyles:M,lastInRangeStyles:D,selectedStyles:I,selectedStartStyles:{},selectedEndStyles:{},afterHoveredStartStyles:{},firstDayOfWeekStyles:{},lastDayOfWeekStyles:{},phrases:p.CalendarDayPhrases},A=function(e){function t(){var e;g(this,t);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var a=y(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r)));return a.state={isHovered:!1},a.setButtonRef=a.setButtonRef.bind(a),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"shouldComponentUpdate",value:function(e,t){return(0,s.default)(this,e,t)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isFocused,r=t.tabIndex;0===r&&(n||r!==e.tabIndex)&&this.buttonRef.focus()}},{key:"onDayClick",value:function(e,t){(0,this.props.onDayClick)(e,t)}},{key:"onDayMouseEnter",value:function(e,t){var n=this.props.onDayMouseEnter;this.setState({isHovered:!0}),n(e,t)}},{key:"onDayMouseLeave",value:function(e,t){var n=this.props.onDayMouseLeave;this.setState({isHovered:!1}),n(e,t)}},{key:"onKeyDown",value:function(e,t){var n=this.props.onDayClick,r=t.key;"Enter"!==r&&" "!==r||n(e,t)}},{key:"setButtonRef",value:function(e){this.buttonRef=e}},{key:"render",value:function(){var e=this,t=this.props,n=t.day,o=t.ariaLabelFormat,a=t.daySize,c=t.isOutsideDay,s=t.modifiers,l=t.tabIndex,u=t.renderDayContents,f=t.styles,p=t.phrases,b=t.defaultStyles,m=t.outsideStyles,v=t.todayStyles,g=t.firstDayOfWeekStyles,y=t.lastDayOfWeekStyles,O=t.highlightedCalendarStyles,w=t.blockedMinNightsStyles,x=t.blockedCalendarStyles,_=t.blockedOutOfRangeStyles,E=t.hoveredSpanStyles,k=t.selectedSpanStyles,S=t.lastInRangeStyles,C=t.selectedStyles,P=t.selectedStartStyles,T=t.selectedEndStyles,M=t.afterHoveredStartStyles,D=this.state.isHovered;if(!n)return i.default.createElement("td",null);var I=(0,h.default)(n,o,a,s,p),R=I.daySizeStyles,A=I.useDefaultCursor,N=I.selected,L=I.hoveredSpan,F=I.isOutsideRange,z=I.ariaLabel;return i.default.createElement("td",r({},(0,d.css)(f.CalendarDay,A&&f.CalendarDay__defaultCursor,R,j(b,D),c&&j(m,D),s.has("today")&&j(v,D),s.has("first-day-of-week")&&j(g,D),s.has("last-day-of-week")&&j(y,D),s.has("highlighted-calendar")&&j(O,D),s.has("blocked-minimum-nights")&&j(w,D),s.has("blocked-calendar")&&j(x,D),L&&j(E,D),s.has("after-hovered-start")&&j(M,D),s.has("selected-span")&&j(k,D),s.has("last-in-range")&&j(S,D),N&&j(C,D),s.has("selected-start")&&j(P,D),s.has("selected-end")&&j(T,D),F&&j(_,D)),{role:"button",ref:this.setButtonRef,"aria-label":z,onMouseEnter:function(t){e.onDayMouseEnter(n,t)},onMouseLeave:function(t){e.onDayMouseLeave(n,t)},onMouseUp:function(e){e.currentTarget.blur()},onClick:function(t){e.onDayClick(n,t)},onKeyDown:function(t){e.onKeyDown(n,t)},tabIndex:l}),u?u(n,s):n.format("D"))}}]),t}(i.default.Component);A.propTypes=x,A.defaultProps=R,t.PureCustomizableCalendarDay=A,t.default=(0,d.withStyles)((function(e){return{CalendarDay:{boxSizing:"border-box",cursor:"pointer",fontSize:e.reactDates.font.size,textAlign:"center",":active":{outline:0}},CalendarDay__defaultCursor:{cursor:"default"}}}))(A)},GG7f:function(e,t,n){n("H24B")},GK4x:function(e,t,n){"use strict";var r=n("GRId");const o=Object(r.createContext)();t.a=o},GRId:function(e,t){e.exports=window.wp.element},Gn0q:function(e,t,n){"use strict";var r=n("82c2"),o=n("5yQQ");e.exports=function(){var e=o();return"undefined"!=typeof document&&(r(document,{contains:e},{contains:function(){return document.contains!==e}}),"undefined"!=typeof Element&&r(Element.prototype,{contains:e},{contains:function(){return Element.prototype.contains!==e}})),e}},GoyQ:function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},H24B:function(e,t,n){"use strict";var r,o=n("TUyu");(0,((r=o)&&r.__esModule?r:{default:r}).default)()},Hsqg:function(e,t,n){e.exports=n("DciD")},HwJD:function(e,t,n){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},HyUg:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n("eJkf");e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},"I/A+":function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}))},IVEb:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("cDcd"),o=n("eUCI"),a=n("RDTF");var i=function(e,t,n){void 0===n&&(n=t.children);var i=Object(r.useContext)(o.a);if(i.useCreateElement)return i.useCreateElement(e,t,n);if("string"==typeof e&&function(e){return"function"==typeof e}(n)){t.children;return n(Object(a.b)(t,["children"]))}return Object(r.createElement)(e,t,n)}},IdCN:function(e,t,n){"use strict";var r,o,a=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{r=Object.defineProperty({},"length",{get:function(){throw o}}),o={},i((function(){throw 42}),null,r)}catch(e){e!==o&&(i=null)}else i=null;var c=/^\s*class\b/,s=function(e){try{var t=a.call(e);return c.test(t)}catch(e){return!1}},l=Object.prototype.toString,u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=i?function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{i(e,null,r)}catch(e){if(e!==o)return!1}return!s(e)}:function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(u)return function(e){try{return!s(e)&&(a.call(e),!0)}catch(e){return!1}}(e);if(s(e))return!1;var t=l.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},IgE5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,a){var i=t.clone().startOf("month");a&&(i=i.startOf("week"));if((0,r.default)(e,i))return!1;var c=t.clone().add(n-1,"months").endOf("month");a&&(c=c.endOf("week"));return!(0,o.default)(e,c)};var r=a(n("h6xH")),o=a(n("Nho6"));function a(e){return e&&e.__esModule?e:{default:e}}},J2ba:function(e,t,n){"use strict";var r=n("S8ty"),o=n("8sMu"),a=n("PoQ0"),i=n("HwJD"),c=n("ald4");e.exports=function(e){if("Number"!==a(e)||i(e)||!c(e))return!1;var t=r(e);return o(t)===t}},J7JS:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("17x9"),a=(r=o)&&r.__esModule?r:{default:r},i=n("Hsqg");function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.default=(0,i.and)([a.default.instanceOf(Set),function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=e[t],l=void 0;return[].concat(s(i)).some((function(e,n){var o,i=String(t)+": index "+String(n);return null!=(l=(o=a.default.string).isRequired.apply(o,[c({},i,e),i].concat(r)))})),null==l?null:l}],"Modifiers (Set of Strings)")},JLmN:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n("BZp5"),o=n("hE48"),a=n("qdes"),i=n("cDcd"),c=n("71Og"),s=(n("KA1K"),n("eNtd")),l=n("k2cL"),u=n("G3V0");var d=Object(a.a)({name:"Clickable",compose:u.a,keys:["unstable_clickOnEnter","unstable_clickOnSpace"],useOptions:function(e){var t=e.unstable_clickOnEnter,n=void 0===t||t,o=e.unstable_clickOnSpace,a=void 0===o||o,i=Object(r.a)(e,["unstable_clickOnEnter","unstable_clickOnSpace"]);return Object(r.b)({unstable_clickOnEnter:n,unstable_clickOnSpace:a},i)},useProps:function(e,t){var n=t.onKeyDown,o=t.onKeyUp,a=Object(r.a)(t,["onKeyDown","onKeyUp"]),u=Object(i.useState)(!1),d=u[0],f=u[1],p=Object(s.a)(n),b=Object(s.a)(o),h=Object(i.useCallback)((function(t){var n;if(null===(n=p.current)||void 0===n||n.call(p,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey&&Object(l.a)(t)){var r=e.unstable_clickOnEnter&&"Enter"===t.key,o=e.unstable_clickOnSpace&&" "===t.key;if(r||o){if(function(e){var t=e.currentTarget;return!!e.isTrusted&&(Object(c.a)(t)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"A"===t.tagName||"SELECT"===t.tagName)}(t))return;t.preventDefault(),r?t.currentTarget.click():o&&f(!0)}}}),[e.disabled,e.unstable_clickOnEnter,e.unstable_clickOnSpace]),m=Object(i.useCallback)((function(t){var n;if(null===(n=b.current)||void 0===n||n.call(b,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey){var r=e.unstable_clickOnSpace&&" "===t.key;d&&r&&(f(!1),t.currentTarget.click())}}),[e.disabled,e.unstable_clickOnSpace,d]);return Object(r.b)({"data-active":d||void 0,onKeyDown:h,onKeyUp:m},a)}});Object(o.a)({as:"button",memo:!0,useHook:d})},JYkG:function(e,t,n){"use strict";(function(e){var r=n("GRId");n("Z23Y");const o=Object(r.createContext)({slots:{},fills:{},registerSlot:()=>{void 0!==e&&e.env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}});t.a=o}).call(this,n("8oxB"))},Jt44:function(e,t,n){"use strict";e.exports=n("j1Hc")},Jx1U:function(e,t){var n={};n.parse=function(){var e=/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,t=/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,n=/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,r=/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,o=/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,a=/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,i=/^(left|center|right|top|bottom)/i,c=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,s=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,l=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,u=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,d=/^\(/,f=/^\)/,p=/^,/,b=/^\#([0-9a-fA-F]+)/,h=/^([a-zA-Z]+)/,m=/^rgb/i,v=/^rgba/i,g=/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/,y="";function O(e){var t=new Error(y+": "+e);throw t.source=y,t}function j(){var e=T(w);return y.length>0&&O("Invalid input not EOF"),e}function w(){return x("linear-gradient",e,E)||x("repeating-linear-gradient",t,E)||x("radial-gradient",n,k)||x("repeating-radial-gradient",r,k)}function x(e,t,n){return _(t,(function(t){var r=n();return r&&(N(p)||O("Missing comma before color stops")),{type:e,orientation:r,colorStops:T(M)}}))}function _(e,t){var n=N(e);if(n)return N(d)||O("Missing ("),result=t(n),N(f)||O("Missing )"),result}function E(){return A("directional",o,1)||A("angular",u,1)}function k(){var e,t,n=S();return n&&((e=[]).push(n),t=y,N(p)&&((n=S())?e.push(n):y=t)),e}function S(){var e=function(){var e=A("shape",/^(circle)/i,0);e&&(e.style=R()||C());return e}()||function(){var e=A("shape",/^(ellipse)/i,0);e&&(e.style=I()||C());return e}();if(e)e.at=function(){if(A("position",/^at/,0)){var e=P();return e||O("Missing positioning value"),e}}();else{var t=P();t&&(e={type:"default-radial",at:t})}return e}function C(){return A("extent-keyword",a,1)}function P(){var e={x:I(),y:I()};if(e.x||e.y)return{type:"position",value:e}}function T(e){var t=e(),n=[];if(t)for(n.push(t);N(p);)(t=e())?n.push(t):O("One extra comma");return n}function M(){var e=A("hex",b,1)||_(v,(function(){return{type:"rgba",value:T(D)}}))||_(m,(function(){return{type:"rgb",value:T(D)}}))||A("literal",h,0);return e||O("Expected color definition"),e.length=I(),e}function D(){return N(g)[1]}function I(){return A("%",s,1)||A("position-keyword",i,1)||R()}function R(){return A("px",c,1)||A("em",l,1)}function A(e,t,n){var r=N(t);if(r)return{type:e,value:r[n]}}function N(e){var t,n;return(n=/^[\n\r\t\s]+/.exec(y))&&L(n[0].length),(t=e.exec(y))&&L(t[0].length),t}function L(e){y=y.substr(e)}return function(e){return y=e.toString(),j()}}(),t.parse=(n||{}).parse},"K+tz":function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"}));t.a=a},K9lf:function(e,t){e.exports=window.wp.compose},KA1K:function(e,t,n){"use strict";n("WnOg"),n("cDcd"),n("Ptb8")},KCH1:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("cDcd");function o(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)}var a=Object(r.createContext)(o)},KfNM:function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},"Koq/":function(e,t,n){"use strict";var r=n("82c2"),o=n("PrET"),a=n("FufO"),i=n("yLpt"),c=n("8R9v"),s=o.apply(i()),l=function(e,t){return s(Object,arguments)};r(l,{getPolyfill:i,implementation:a,shim:c}),e.exports=l},KtDd:function(e,t,n){"use strict";var r=n("j1Hc"),o=r("%Symbol.species%",!0),a=r("%TypeError%"),i=n("6Ehn"),c=n("aBsX"),s=n("Bl8U"),l=n("TFEf"),u=n("J2ba"),d=n("PoQ0");e.exports=function(e,t){if(!u(t)||t<0)throw new a("Assertion failed: length must be an integer >= 0");if(!s(e))return i(t);var n=c(e,"constructor");if(o&&"Object"===d(n)&&null===(n=c(n,o))&&(n=void 0),void 0===n)return i(t);if(!l(n))throw new a("C must be a constructor");return new n(t)}},Kz5y:function(e,t,n){var r=n("WFqU"),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},L8Kx:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return c}));var r=n("TSYQ"),o=n.n(r);function a(e){return"appear"===e?"top":"left"}function i(e){if("loading"===e.type)return o()("components-animate__loading");const{type:t,origin:n=a(t)}=e;if("appear"===t){const[e,t="center"]=n.split(" ");return o()("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?o()("components-animate__slide-in","is-from-"+n):void 0}function c(e){let{type:t,options:n={},children:r}=e;return r({className:i({type:t,...n})})}},LTAC:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!("undefined"==typeof window||!("ontouchstart"in window||window.DocumentTouch&&"undefined"!=typeof document&&document instanceof window.DocumentTouch))||!("undefined"==typeof navigator||!navigator.maxTouchPoints&&!navigator.msMaxTouchPoints)},e.exports=t.default},Lxf3:function(e,t,n){"use strict";var r=Object.prototype.toString,o=n("Teho"),a=n("IdCN"),i=function(e){var t;if((t=arguments.length>1?arguments[1]:"[object Date]"===r.call(e)?String:Number)===String||t===Number){var n,i,c=t===String?["toString","valueOf"]:["valueOf","toString"];for(i=0;i<c.length;++i)if(a(e[c[i]])&&(n=e[c[i]](),o(n)))return n;throw new TypeError("No default value")}throw new TypeError("invalid [[DefaultValue]] hint supplied")};e.exports=function(e){return o(e)?e:arguments.length>1?i(e,arguments[1]):i(e)}},Mih7:function(e,t,n){"use strict";function r(e){e.userFocus=!0,e.focus(),e.userFocus=!1}function o(e){return!!e.userFocus}function a(e,t){e.userFocus=t}n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return r}))},Mp0b:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"}));t.a=a},N3k4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureCalendarDay=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=g(n("Koq/")),i=g(n("cDcd")),c=g(n("17x9")),s=g(n("YZDV")),l=g(n("XGBb")),u=n("Hsqg"),d=n("TG4+"),f=g(n("wy2R")),p=n("vV+G"),b=g(n("yc2e")),h=g(n("Ae65")),m=g(n("J7JS")),v=n("Fv1B");function g(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var j=(0,u.forbidExtraProps)((0,a.default)({},d.withStylesPropTypes,{day:l.default.momentObj,daySize:u.nonNegativeInteger,isOutsideDay:c.default.bool,modifiers:m.default,isFocused:c.default.bool,tabIndex:c.default.oneOf([0,-1]),onDayClick:c.default.func,onDayMouseEnter:c.default.func,onDayMouseLeave:c.default.func,renderDayContents:c.default.func,ariaLabelFormat:c.default.string,phrases:c.default.shape((0,b.default)(p.CalendarDayPhrases))})),w={day:(0,f.default)(),daySize:v.DAY_SIZE,isOutsideDay:!1,modifiers:new Set,isFocused:!1,tabIndex:-1,onDayClick:function(){},onDayMouseEnter:function(){},onDayMouseLeave:function(){},renderDayContents:null,ariaLabelFormat:"dddd, LL",phrases:p.CalendarDayPhrases},x=function(e){function t(){var e;y(this,t);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var a=O(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r)));return a.setButtonRef=a.setButtonRef.bind(a),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"shouldComponentUpdate",value:function(e,t){return(0,s.default)(this,e,t)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isFocused,r=t.tabIndex;0===r&&(n||r!==e.tabIndex)&&this.buttonRef.focus()}},{key:"onDayClick",value:function(e,t){(0,this.props.onDayClick)(e,t)}},{key:"onDayMouseEnter",value:function(e,t){(0,this.props.onDayMouseEnter)(e,t)}},{key:"onDayMouseLeave",value:function(e,t){(0,this.props.onDayMouseLeave)(e,t)}},{key:"onKeyDown",value:function(e,t){var n=this.props.onDayClick,r=t.key;"Enter"!==r&&" "!==r||n(e,t)}},{key:"setButtonRef",value:function(e){this.buttonRef=e}},{key:"render",value:function(){var e=this,t=this.props,n=t.day,o=t.ariaLabelFormat,a=t.daySize,c=t.isOutsideDay,s=t.modifiers,l=t.renderDayContents,u=t.tabIndex,f=t.styles,p=t.phrases;if(!n)return i.default.createElement("td",null);var b=(0,h.default)(n,o,a,s,p),m=b.daySizeStyles,v=b.useDefaultCursor,g=b.selected,y=b.hoveredSpan,O=b.isOutsideRange,j=b.ariaLabel;return i.default.createElement("td",r({},(0,d.css)(f.CalendarDay,v&&f.CalendarDay__defaultCursor,f.CalendarDay__default,c&&f.CalendarDay__outside,s.has("today")&&f.CalendarDay__today,s.has("first-day-of-week")&&f.CalendarDay__firstDayOfWeek,s.has("last-day-of-week")&&f.CalendarDay__lastDayOfWeek,s.has("hovered-offset")&&f.CalendarDay__hovered_offset,s.has("highlighted-calendar")&&f.CalendarDay__highlighted_calendar,s.has("blocked-minimum-nights")&&f.CalendarDay__blocked_minimum_nights,s.has("blocked-calendar")&&f.CalendarDay__blocked_calendar,y&&f.CalendarDay__hovered_span,s.has("selected-span")&&f.CalendarDay__selected_span,s.has("last-in-range")&&f.CalendarDay__last_in_range,s.has("selected-start")&&f.CalendarDay__selected_start,s.has("selected-end")&&f.CalendarDay__selected_end,g&&f.CalendarDay__selected,O&&f.CalendarDay__blocked_out_of_range,m),{role:"button",ref:this.setButtonRef,"aria-label":j,onMouseEnter:function(t){e.onDayMouseEnter(n,t)},onMouseLeave:function(t){e.onDayMouseLeave(n,t)},onMouseUp:function(e){e.currentTarget.blur()},onClick:function(t){e.onDayClick(n,t)},onKeyDown:function(t){e.onKeyDown(n,t)},tabIndex:u}),l?l(n,s):n.format("D"))}}]),t}(i.default.Component);x.propTypes=j,x.defaultProps=w,t.PureCalendarDay=x,t.default=(0,d.withStyles)((function(e){var t=e.reactDates,n=t.color;return{CalendarDay:{boxSizing:"border-box",cursor:"pointer",fontSize:t.font.size,textAlign:"center",":active":{outline:0}},CalendarDay__defaultCursor:{cursor:"default"},CalendarDay__default:{border:"1px solid "+String(n.core.borderLight),color:n.text,background:n.background,":hover":{background:n.core.borderLight,border:"1px double "+String(n.core.borderLight),color:"inherit"}},CalendarDay__hovered_offset:{background:n.core.borderBright,border:"1px double "+String(n.core.borderLight),color:"inherit"},CalendarDay__outside:{border:0,background:n.outside.backgroundColor,color:n.outside.color,":hover":{border:0}},CalendarDay__blocked_minimum_nights:{background:n.minimumNights.backgroundColor,border:"1px solid "+String(n.minimumNights.borderColor),color:n.minimumNights.color,":hover":{background:n.minimumNights.backgroundColor_hover,color:n.minimumNights.color_active},":active":{background:n.minimumNights.backgroundColor_active,color:n.minimumNights.color_active}},CalendarDay__highlighted_calendar:{background:n.highlighted.backgroundColor,color:n.highlighted.color,":hover":{background:n.highlighted.backgroundColor_hover,color:n.highlighted.color_active},":active":{background:n.highlighted.backgroundColor_active,color:n.highlighted.color_active}},CalendarDay__selected_span:{background:n.selectedSpan.backgroundColor,border:"1px solid "+String(n.selectedSpan.borderColor),color:n.selectedSpan.color,":hover":{background:n.selectedSpan.backgroundColor_hover,border:"1px solid "+String(n.selectedSpan.borderColor),color:n.selectedSpan.color_active},":active":{background:n.selectedSpan.backgroundColor_active,border:"1px solid "+String(n.selectedSpan.borderColor),color:n.selectedSpan.color_active}},CalendarDay__last_in_range:{borderRight:n.core.primary},CalendarDay__selected:{background:n.selected.backgroundColor,border:"1px solid "+String(n.selected.borderColor),color:n.selected.color,":hover":{background:n.selected.backgroundColor_hover,border:"1px solid "+String(n.selected.borderColor),color:n.selected.color_active},":active":{background:n.selected.backgroundColor_active,border:"1px solid "+String(n.selected.borderColor),color:n.selected.color_active}},CalendarDay__hovered_span:{background:n.hoveredSpan.backgroundColor,border:"1px solid "+String(n.hoveredSpan.borderColor),color:n.hoveredSpan.color,":hover":{background:n.hoveredSpan.backgroundColor_hover,border:"1px solid "+String(n.hoveredSpan.borderColor),color:n.hoveredSpan.color_active},":active":{background:n.hoveredSpan.backgroundColor_active,border:"1px solid "+String(n.hoveredSpan.borderColor),color:n.hoveredSpan.color_active}},CalendarDay__blocked_calendar:{background:n.blocked_calendar.backgroundColor,border:"1px solid "+String(n.blocked_calendar.borderColor),color:n.blocked_calendar.color,":hover":{background:n.blocked_calendar.backgroundColor_hover,border:"1px solid "+String(n.blocked_calendar.borderColor),color:n.blocked_calendar.color_active},":active":{background:n.blocked_calendar.backgroundColor_active,border:"1px solid "+String(n.blocked_calendar.borderColor),color:n.blocked_calendar.color_active}},CalendarDay__blocked_out_of_range:{background:n.blocked_out_of_range.backgroundColor,border:"1px solid "+String(n.blocked_out_of_range.borderColor),color:n.blocked_out_of_range.color,":hover":{background:n.blocked_out_of_range.backgroundColor_hover,border:"1px solid "+String(n.blocked_out_of_range.borderColor),color:n.blocked_out_of_range.color_active},":active":{background:n.blocked_out_of_range.backgroundColor_active,border:"1px solid "+String(n.blocked_out_of_range.borderColor),color:n.blocked_out_of_range.color_active}},CalendarDay__selected_start:{},CalendarDay__selected_end:{},CalendarDay__today:{},CalendarDay__firstDayOfWeek:{},CalendarDay__lastDayOfWeek:{}}}))(x)},NMb1:function(e,t){e.exports=window.wp.deprecated},NTP4:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=a},NWDH:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=a},Nho6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!r.default.isMoment(e)||!r.default.isMoment(t))&&(!(0,o.default)(e,t)&&!(0,a.default)(e,t))};var r=i(n("wy2R")),o=i(n("h6xH")),a=i(n("pRvc"));function i(e){return e&&e.__esModule?e:{default:e}}},Nloh:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureDayPicker=t.defaultProps=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=M(n("Koq/")),i=M(n("cDcd")),c=M(n("17x9")),s=M(n("YZDV")),l=n("Hsqg"),u=n("TG4+"),d=M(n("wy2R")),f=M(n("DzJC")),p=M(n("LTAC")),b=M(n("3gBW")),h=n("vV+G"),m=M(n("yc2e")),v=M(n("Thzv")),g=M(n("zfJ5")),y=n("1+Kn"),O=M(y),j=M(n("0Dl3")),w=M(n("m2ax")),x=M(n("ixyq")),_=M(n("+51k")),E=M(n("IgE5")),k=M(n("J7JS")),S=M(n("aE6U")),C=M(n("2S2E")),P=M(n("oR9Z")),T=n("Fv1B");function M(e){return e&&e.__esModule?e:{default:e}}function D(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var I=(0,l.forbidExtraProps)((0,a.default)({},u.withStylesPropTypes,{enableOutsideDays:c.default.bool,numberOfMonths:c.default.number,orientation:S.default,withPortal:c.default.bool,onOutsideClick:c.default.func,hidden:c.default.bool,initialVisibleMonth:c.default.func,firstDayOfWeek:C.default,renderCalendarInfo:c.default.func,calendarInfoPosition:P.default,hideKeyboardShortcutsPanel:c.default.bool,daySize:l.nonNegativeInteger,isRTL:c.default.bool,verticalHeight:l.nonNegativeInteger,noBorder:c.default.bool,transitionDuration:l.nonNegativeInteger,verticalBorderSpacing:l.nonNegativeInteger,horizontalMonthPadding:l.nonNegativeInteger,navPrev:c.default.node,navNext:c.default.node,noNavButtons:c.default.bool,onPrevMonthClick:c.default.func,onNextMonthClick:c.default.func,onMonthChange:c.default.func,onYearChange:c.default.func,onMultiplyScrollableMonths:c.default.func,renderMonthText:(0,l.mutuallyExclusiveProps)(c.default.func,"renderMonthText","renderMonthElement"),renderMonthElement:(0,l.mutuallyExclusiveProps)(c.default.func,"renderMonthText","renderMonthElement"),modifiers:c.default.objectOf(c.default.objectOf(k.default)),renderCalendarDay:c.default.func,renderDayContents:c.default.func,onDayClick:c.default.func,onDayMouseEnter:c.default.func,onDayMouseLeave:c.default.func,isFocused:c.default.bool,getFirstFocusableDay:c.default.func,onBlur:c.default.func,showKeyboardShortcuts:c.default.bool,monthFormat:c.default.string,weekDayFormat:c.default.string,phrases:c.default.shape((0,m.default)(h.DayPickerPhrases)),dayAriaLabelFormat:c.default.string})),R=t.defaultProps={enableOutsideDays:!1,numberOfMonths:2,orientation:T.HORIZONTAL_ORIENTATION,withPortal:!1,onOutsideClick:function(){},hidden:!1,initialVisibleMonth:function(){return(0,d.default)()},firstDayOfWeek:null,renderCalendarInfo:null,calendarInfoPosition:T.INFO_POSITION_BOTTOM,hideKeyboardShortcutsPanel:!1,daySize:T.DAY_SIZE,isRTL:!1,verticalHeight:null,noBorder:!1,transitionDuration:void 0,verticalBorderSpacing:void 0,horizontalMonthPadding:13,navPrev:null,navNext:null,noNavButtons:!1,onPrevMonthClick:function(){},onNextMonthClick:function(){},onMonthChange:function(){},onYearChange:function(){},onMultiplyScrollableMonths:function(){},renderMonthText:null,renderMonthElement:null,modifiers:{},renderCalendarDay:void 0,renderDayContents:null,onDayClick:function(){},onDayMouseEnter:function(){},onDayMouseLeave:function(){},isFocused:!1,getFirstFocusableDay:null,onBlur:function(){},showKeyboardShortcuts:!1,monthFormat:"MMMM YYYY",weekDayFormat:"dd",phrases:h.DayPickerPhrases,dayAriaLabelFormat:void 0},A=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=e.hidden?(0,d.default)():e.initialVisibleMonth(),o=r.clone().startOf("month");e.getFirstFocusableDay&&(o=e.getFirstFocusableDay(r));var a=e.horizontalMonthPadding,i=e.isRTL&&n.isHorizontal()?-(0,w.default)(e.daySize,a):0;return n.hasSetInitialVisibleMonth=!e.hidden,n.state={currentMonth:r,monthTransition:null,translationValue:i,scrollableMonthMultiple:1,calendarMonthWidth:(0,w.default)(e.daySize,a),focusedDate:!e.hidden||e.isFocused?o:null,nextFocusedDate:null,showKeyboardShortcuts:e.showKeyboardShortcuts,onKeyboardShortcutsPanelClose:function(){},isTouchDevice:(0,p.default)(),withMouseInteractions:!0,calendarInfoWidth:0,monthTitleHeight:null,hasSetHeight:!1},n.setCalendarMonthWeeks(r),n.calendarMonthGridHeight=0,n.setCalendarInfoWidthTimeout=null,n.onKeyDown=n.onKeyDown.bind(n),n.throttledKeyDown=(0,f.default)(n.onFinalKeyDown,200,{trailing:!1}),n.onPrevMonthClick=n.onPrevMonthClick.bind(n),n.onNextMonthClick=n.onNextMonthClick.bind(n),n.onMonthChange=n.onMonthChange.bind(n),n.onYearChange=n.onYearChange.bind(n),n.multiplyScrollableMonths=n.multiplyScrollableMonths.bind(n),n.updateStateAfterMonthTransition=n.updateStateAfterMonthTransition.bind(n),n.openKeyboardShortcutsPanel=n.openKeyboardShortcutsPanel.bind(n),n.closeKeyboardShortcutsPanel=n.closeKeyboardShortcutsPanel.bind(n),n.setCalendarInfoRef=n.setCalendarInfoRef.bind(n),n.setContainerRef=n.setContainerRef.bind(n),n.setTransitionContainerRef=n.setTransitionContainerRef.bind(n),n.setMonthTitleHeight=n.setMonthTitleHeight.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){var e=this.state.currentMonth;this.calendarInfo?this.setState({isTouchDevice:(0,p.default)(),calendarInfoWidth:(0,x.default)(this.calendarInfo,"width",!0,!0)}):this.setState({isTouchDevice:(0,p.default)()}),this.setCalendarMonthWeeks(e)}},{key:"componentWillReceiveProps",value:function(e){var t=e.hidden,n=e.isFocused,r=e.showKeyboardShortcuts,o=e.onBlur,a=e.renderMonthText,i=e.horizontalMonthPadding,c=this.state.currentMonth;t||this.hasSetInitialVisibleMonth||(this.hasSetInitialVisibleMonth=!0,this.setState({currentMonth:e.initialVisibleMonth()}));var s=this.props,l=s.daySize,u=s.isFocused,d=s.renderMonthText;if(e.daySize!==l&&this.setState({calendarMonthWidth:(0,w.default)(e.daySize,i)}),n!==u)if(n){var f=this.getFocusedDay(c),p=this.state.onKeyboardShortcutsPanelClose;e.showKeyboardShortcuts&&(p=o),this.setState({showKeyboardShortcuts:r,onKeyboardShortcutsPanelClose:p,focusedDate:f,withMouseInteractions:!1})}else this.setState({focusedDate:null});a!==d&&this.setState({monthTitleHeight:null})}},{key:"shouldComponentUpdate",value:function(e,t){return(0,s.default)(this,e,t)}},{key:"componentWillUpdate",value:function(){var e=this,t=this.props.transitionDuration;this.calendarInfo&&(this.setCalendarInfoWidthTimeout=setTimeout((function(){var t=e.state.calendarInfoWidth,n=(0,x.default)(e.calendarInfo,"width",!0,!0);t!==n&&e.setState({calendarInfoWidth:n})}),t))}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.orientation,r=t.daySize,o=t.isFocused,a=t.numberOfMonths,i=this.state,c=i.focusedDate,s=i.monthTitleHeight;if(this.isHorizontal()&&(n!==e.orientation||r!==e.daySize)){var l=this.calendarMonthWeeks.slice(1,a+1),u=s+Math.max.apply(Math,[0].concat(D(l)))*(r-1)+1;this.adjustDayPickerHeight(u)}e.isFocused||!o||c||this.container.focus()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.setCalendarInfoWidthTimeout)}},{key:"onKeyDown",value:function(e){e.stopPropagation(),T.MODIFIER_KEY_NAMES.has(e.key)||this.throttledKeyDown(e)}},{key:"onFinalKeyDown",value:function(e){this.setState({withMouseInteractions:!1});var t=this.props,n=t.onBlur,r=t.isRTL,o=this.state,a=o.focusedDate,i=o.showKeyboardShortcuts;if(a){var c=a.clone(),s=!1,l=(0,_.default)(),u=function(){l&&l.focus()};switch(e.key){case"ArrowUp":e.preventDefault(),c.subtract(1,"week"),s=this.maybeTransitionPrevMonth(c);break;case"ArrowLeft":e.preventDefault(),r?c.add(1,"day"):c.subtract(1,"day"),s=this.maybeTransitionPrevMonth(c);break;case"Home":e.preventDefault(),c.startOf("week"),s=this.maybeTransitionPrevMonth(c);break;case"PageUp":e.preventDefault(),c.subtract(1,"month"),s=this.maybeTransitionPrevMonth(c);break;case"ArrowDown":e.preventDefault(),c.add(1,"week"),s=this.maybeTransitionNextMonth(c);break;case"ArrowRight":e.preventDefault(),r?c.subtract(1,"day"):c.add(1,"day"),s=this.maybeTransitionNextMonth(c);break;case"End":e.preventDefault(),c.endOf("week"),s=this.maybeTransitionNextMonth(c);break;case"PageDown":e.preventDefault(),c.add(1,"month"),s=this.maybeTransitionNextMonth(c);break;case"?":this.openKeyboardShortcutsPanel(u);break;case"Escape":i?this.closeKeyboardShortcutsPanel():n()}s||this.setState({focusedDate:c})}}},{key:"onPrevMonthClick",value:function(e,t){var n=this.props,r=n.daySize,o=n.isRTL,a=n.numberOfMonths,i=this.state,c=i.calendarMonthWidth,s=i.monthTitleHeight;t&&t.preventDefault();var l=void 0;if(this.isVertical())l=s+this.calendarMonthWeeks[0]*(r-1)+1;else if(this.isHorizontal()){l=c,o&&(l=-2*c);var u=this.calendarMonthWeeks.slice(0,a),d=s+Math.max.apply(Math,[0].concat(D(u)))*(r-1)+1;this.adjustDayPickerHeight(d)}this.setState({monthTransition:"prev",translationValue:l,focusedDate:null,nextFocusedDate:e})}},{key:"onMonthChange",value:function(e){this.setCalendarMonthWeeks(e),this.calculateAndSetDayPickerHeight(),this.setState({monthTransition:"month_selection",translationValue:1e-5,focusedDate:null,nextFocusedDate:e,currentMonth:e})}},{key:"onYearChange",value:function(e){this.setCalendarMonthWeeks(e),this.calculateAndSetDayPickerHeight(),this.setState({monthTransition:"year_selection",translationValue:1e-4,focusedDate:null,nextFocusedDate:e,currentMonth:e})}},{key:"onNextMonthClick",value:function(e,t){var n=this.props,r=n.isRTL,o=n.numberOfMonths,a=n.daySize,i=this.state,c=i.calendarMonthWidth,s=i.monthTitleHeight;t&&t.preventDefault();var l=void 0;if(this.isVertical()&&(l=-(s+this.calendarMonthWeeks[1]*(a-1)+1)),this.isHorizontal()){l=-c,r&&(l=0);var u=this.calendarMonthWeeks.slice(2,o+2),d=s+Math.max.apply(Math,[0].concat(D(u)))*(a-1)+1;this.adjustDayPickerHeight(d)}this.setState({monthTransition:"next",translationValue:l,focusedDate:null,nextFocusedDate:e})}},{key:"getFirstDayOfWeek",value:function(){var e=this.props.firstDayOfWeek;return null==e?d.default.localeData().firstDayOfWeek():e}},{key:"getFirstVisibleIndex",value:function(){var e=this.props.orientation,t=this.state.monthTransition;if(e===T.VERTICAL_SCROLLABLE)return 0;var n=1;return"prev"===t?n-=1:"next"===t&&(n+=1),n}},{key:"getFocusedDay",value:function(e){var t=this.props,n=t.getFirstFocusableDay,r=t.numberOfMonths,o=void 0;return n&&(o=n(e)),!e||o&&(0,E.default)(o,e,r)||(o=e.clone().startOf("month")),o}},{key:"setMonthTitleHeight",value:function(e){var t=this;this.setState({monthTitleHeight:e},(function(){t.calculateAndSetDayPickerHeight()}))}},{key:"setCalendarMonthWeeks",value:function(e){var t=this.props.numberOfMonths;this.calendarMonthWeeks=[];for(var n=e.clone().subtract(1,"months"),r=this.getFirstDayOfWeek(),o=0;o<t+2;o+=1){var a=(0,j.default)(n,r);this.calendarMonthWeeks.push(a),n=n.add(1,"months")}}},{key:"setContainerRef",value:function(e){this.container=e}},{key:"setCalendarInfoRef",value:function(e){this.calendarInfo=e}},{key:"setTransitionContainerRef",value:function(e){this.transitionContainer=e}},{key:"maybeTransitionNextMonth",value:function(e){var t=this.props.numberOfMonths,n=this.state,r=n.currentMonth,o=n.focusedDate,a=e.month(),i=o.month(),c=(0,E.default)(e,r,t);return a!==i&&!c&&(this.onNextMonthClick(e),!0)}},{key:"maybeTransitionPrevMonth",value:function(e){var t=this.props.numberOfMonths,n=this.state,r=n.currentMonth,o=n.focusedDate,a=e.month(),i=o.month(),c=(0,E.default)(e,r,t);return a!==i&&!c&&(this.onPrevMonthClick(e),!0)}},{key:"multiplyScrollableMonths",value:function(e){var t=this.props.onMultiplyScrollableMonths;e&&e.preventDefault(),t&&t(e),this.setState((function(e){return{scrollableMonthMultiple:e.scrollableMonthMultiple+1}}))}},{key:"isHorizontal",value:function(){return this.props.orientation===T.HORIZONTAL_ORIENTATION}},{key:"isVertical",value:function(){var e=this.props.orientation;return e===T.VERTICAL_ORIENTATION||e===T.VERTICAL_SCROLLABLE}},{key:"updateStateAfterMonthTransition",value:function(){var e=this,t=this.props,n=t.onPrevMonthClick,r=t.onNextMonthClick,o=t.numberOfMonths,a=t.onMonthChange,i=t.onYearChange,c=t.isRTL,s=this.state,l=s.currentMonth,u=s.monthTransition,d=s.focusedDate,f=s.nextFocusedDate,p=s.withMouseInteractions,b=s.calendarMonthWidth;if(u){var h=l.clone(),m=this.getFirstDayOfWeek();if("prev"===u){h.subtract(1,"month"),n&&n(h);var v=h.clone().subtract(1,"month"),g=(0,j.default)(v,m);this.calendarMonthWeeks=[g].concat(D(this.calendarMonthWeeks.slice(0,-1)))}else if("next"===u){h.add(1,"month"),r&&r(h);var y=h.clone().add(o,"month"),O=(0,j.default)(y,m);this.calendarMonthWeeks=[].concat(D(this.calendarMonthWeeks.slice(1)),[O])}else"month_selection"===u?a&&a(h):"year_selection"===u&&i&&i(h);var w=null;f?w=f:d||p||(w=this.getFocusedDay(h)),this.setState({currentMonth:h,monthTransition:null,translationValue:c&&this.isHorizontal()?-b:0,nextFocusedDate:null,focusedDate:w},(function(){if(p){var t=(0,_.default)();t&&t!==document.body&&e.container.contains(t)&&t.blur()}}))}}},{key:"adjustDayPickerHeight",value:function(e){var t=this,n=e+23;n!==this.calendarMonthGridHeight&&(this.transitionContainer.style.height=String(n)+"px",this.calendarMonthGridHeight||setTimeout((function(){t.setState({hasSetHeight:!0})}),0),this.calendarMonthGridHeight=n)}},{key:"calculateAndSetDayPickerHeight",value:function(){var e=this.props,t=e.daySize,n=e.numberOfMonths,r=this.state.monthTitleHeight,o=this.calendarMonthWeeks.slice(1,n+1),a=r+Math.max.apply(Math,[0].concat(D(o)))*(t-1)+1;this.isHorizontal()&&this.adjustDayPickerHeight(a)}},{key:"openKeyboardShortcutsPanel",value:function(e){this.setState({showKeyboardShortcuts:!0,onKeyboardShortcutsPanelClose:e})}},{key:"closeKeyboardShortcutsPanel",value:function(){var e=this.state.onKeyboardShortcutsPanelClose;e&&e(),this.setState({onKeyboardShortcutsPanelClose:null,showKeyboardShortcuts:!1})}},{key:"renderNavigation",value:function(){var e=this,t=this.props,n=t.navPrev,r=t.navNext,o=t.noNavButtons,a=t.orientation,c=t.phrases,s=t.isRTL;if(o)return null;var l=void 0;return l=a===T.VERTICAL_SCROLLABLE?this.multiplyScrollableMonths:function(t){e.onNextMonthClick(null,t)},i.default.createElement(g.default,{onPrevMonthClick:function(t){e.onPrevMonthClick(null,t)},onNextMonthClick:l,navPrev:n,navNext:r,orientation:a,phrases:c,isRTL:s})}},{key:"renderWeekHeader",value:function(e){var t=this.props,n=t.daySize,o=t.horizontalMonthPadding,a=t.orientation,c=t.weekDayFormat,s=t.styles,l=this.state.calendarMonthWidth,f=a===T.VERTICAL_SCROLLABLE,p={left:e*l},b={marginLeft:-l/2},h={};this.isHorizontal()?h=p:this.isVertical()&&!f&&(h=b);for(var m=this.getFirstDayOfWeek(),v=[],g=0;g<7;g+=1)v.push(i.default.createElement("li",r({key:g},(0,u.css)(s.DayPicker_weekHeader_li,{width:n})),i.default.createElement("small",null,(0,d.default)().day((g+m)%7).format(c))));return i.default.createElement("div",r({},(0,u.css)(s.DayPicker_weekHeader,this.isVertical()&&s.DayPicker_weekHeader__vertical,f&&s.DayPicker_weekHeader__verticalScrollable,h,{padding:"0 "+String(o)+"px"}),{key:"week-"+String(e)}),i.default.createElement("ul",(0,u.css)(s.DayPicker_weekHeader_ul),v))}},{key:"render",value:function(){for(var e=this,t=this.state,n=t.calendarMonthWidth,o=t.currentMonth,a=t.monthTransition,c=t.translationValue,s=t.scrollableMonthMultiple,l=t.focusedDate,d=t.showKeyboardShortcuts,f=t.isTouchDevice,p=t.hasSetHeight,h=t.calendarInfoWidth,m=t.monthTitleHeight,g=this.props,j=g.enableOutsideDays,w=g.numberOfMonths,x=g.orientation,_=g.modifiers,E=g.withPortal,k=g.onDayClick,S=g.onDayMouseEnter,C=g.onDayMouseLeave,P=g.firstDayOfWeek,M=g.renderMonthText,D=g.renderCalendarDay,I=g.renderDayContents,R=g.renderCalendarInfo,A=g.renderMonthElement,N=g.calendarInfoPosition,L=g.hideKeyboardShortcutsPanel,F=g.onOutsideClick,z=g.monthFormat,B=g.daySize,H=g.isFocused,V=g.isRTL,W=g.styles,U=g.theme,K=g.phrases,G=g.verticalHeight,$=g.dayAriaLabelFormat,q=g.noBorder,Y=g.transitionDuration,X=g.verticalBorderSpacing,Z=g.horizontalMonthPadding,J=U.reactDates.spacing.dayPickerHorizontalPadding,Q=this.isHorizontal(),ee=this.isVertical()?1:w,te=[],ne=0;ne<ee;ne+=1)te.push(this.renderWeekHeader(ne));var re=x===T.VERTICAL_SCROLLABLE,oe=void 0;Q?oe=this.calendarMonthGridHeight:!this.isVertical()||re||E||(oe=G||1.75*n);var ae=null!==a,ie=!ae&&H,ce=y.BOTTOM_RIGHT;this.isVertical()&&(ce=E?y.TOP_LEFT:y.TOP_RIGHT);var se=Q&&p,le=N===T.INFO_POSITION_TOP,ue=N===T.INFO_POSITION_BOTTOM,de=N===T.INFO_POSITION_BEFORE,fe=N===T.INFO_POSITION_AFTER,pe=de||fe,be=R&&i.default.createElement("div",r({ref:this.setCalendarInfoRef},(0,u.css)(pe&&W.DayPicker_calendarInfo__horizontal)),R()),he=R&&pe?h:0,me=this.getFirstVisibleIndex(),ve=n*w+2*J,ge=ve+he+1,ye={width:Q&&ve,height:oe},Oe={width:Q&&ve},je={width:Q&&ge,marginLeft:Q&&E?-ge/2:null,marginTop:Q&&E?-n/2:null};return i.default.createElement("div",r({role:"application","aria-label":K.calendarLabel},(0,u.css)(W.DayPicker,Q&&W.DayPicker__horizontal,re&&W.DayPicker__verticalScrollable,Q&&E&&W.DayPicker_portal__horizontal,this.isVertical()&&E&&W.DayPicker_portal__vertical,je,!m&&W.DayPicker__hidden,!q&&W.DayPicker__withBorder)),i.default.createElement(b.default,{onOutsideClick:F},(le||de)&&be,i.default.createElement("div",(0,u.css)(Oe,pe&&Q&&W.DayPicker_wrapper__horizontal),i.default.createElement("div",r({},(0,u.css)(W.DayPicker_weekHeaders,Q&&W.DayPicker_weekHeaders__horizontal),{"aria-hidden":"true",role:"presentation"}),te),i.default.createElement("div",r({},(0,u.css)(W.DayPicker_focusRegion),{ref:this.setContainerRef,onClick:function(e){e.stopPropagation()},onKeyDown:this.onKeyDown,onMouseUp:function(){e.setState({withMouseInteractions:!0})},role:"region",tabIndex:-1}),!re&&this.renderNavigation(),i.default.createElement("div",r({},(0,u.css)(W.DayPicker_transitionContainer,se&&W.DayPicker_transitionContainer__horizontal,this.isVertical()&&W.DayPicker_transitionContainer__vertical,re&&W.DayPicker_transitionContainer__verticalScrollable,ye),{ref:this.setTransitionContainerRef}),i.default.createElement(v.default,{setMonthTitleHeight:m?void 0:this.setMonthTitleHeight,translationValue:c,enableOutsideDays:j,firstVisibleMonthIndex:me,initialMonth:o,isAnimating:ae,modifiers:_,orientation:x,numberOfMonths:w*s,onDayClick:k,onDayMouseEnter:S,onDayMouseLeave:C,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,renderMonthText:M,renderCalendarDay:D,renderDayContents:I,renderMonthElement:A,onMonthTransitionEnd:this.updateStateAfterMonthTransition,monthFormat:z,daySize:B,firstDayOfWeek:P,isFocused:ie,focusedDate:l,phrases:K,isRTL:V,dayAriaLabelFormat:$,transitionDuration:Y,verticalBorderSpacing:X,horizontalMonthPadding:Z}),re&&this.renderNavigation()),!f&&!L&&i.default.createElement(O.default,{block:this.isVertical()&&!E,buttonLocation:ce,showKeyboardShortcutsPanel:d,openKeyboardShortcutsPanel:this.openKeyboardShortcutsPanel,closeKeyboardShortcutsPanel:this.closeKeyboardShortcutsPanel,phrases:K}))),(ue||fe)&&be))}}]),t}(i.default.Component);A.propTypes=I,A.defaultProps=R,t.PureDayPicker=A,t.default=(0,u.withStyles)((function(e){var t=e.reactDates,n=t.color,r=t.font,o=t.noScrollBarOnVerticalScrollable,i=t.spacing,c=t.zIndex;return{DayPicker:{background:n.background,position:"relative",textAlign:"left"},DayPicker__horizontal:{background:n.background},DayPicker__verticalScrollable:{height:"100%"},DayPicker__hidden:{visibility:"hidden"},DayPicker__withBorder:{boxShadow:"0 2px 6px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.07)",borderRadius:3},DayPicker_portal__horizontal:{boxShadow:"none",position:"absolute",left:"50%",top:"50%"},DayPicker_portal__vertical:{position:"initial"},DayPicker_focusRegion:{outline:"none"},DayPicker_calendarInfo__horizontal:{display:"inline-block",verticalAlign:"top"},DayPicker_wrapper__horizontal:{display:"inline-block",verticalAlign:"top"},DayPicker_weekHeaders:{position:"relative"},DayPicker_weekHeaders__horizontal:{marginLeft:i.dayPickerHorizontalPadding},DayPicker_weekHeader:{color:n.placeholderText,position:"absolute",top:62,zIndex:c+2,textAlign:"left"},DayPicker_weekHeader__vertical:{left:"50%"},DayPicker_weekHeader__verticalScrollable:{top:0,display:"table-row",borderBottom:"1px solid "+String(n.core.border),background:n.background,marginLeft:0,left:0,width:"100%",textAlign:"center"},DayPicker_weekHeader_ul:{listStyle:"none",margin:"1px 0",paddingLeft:0,paddingRight:0,fontSize:r.size},DayPicker_weekHeader_li:{display:"inline-block",textAlign:"center"},DayPicker_transitionContainer:{position:"relative",overflow:"hidden",borderRadius:3},DayPicker_transitionContainer__horizontal:{transition:"height 0.2s ease-in-out"},DayPicker_transitionContainer__vertical:{width:"100%"},DayPicker_transitionContainer__verticalScrollable:(0,a.default)({paddingTop:20,height:"100%",position:"absolute",top:0,bottom:0,right:0,left:0,overflowY:"scroll"},o&&{"-webkitOverflowScrolling":"touch","::-webkit-scrollbar":{"-webkit-appearance":"none",display:"none"}})}}))(A)},NykK:function(e,t,n){var r=n("nmnc"),o=n("AP2z"),a=n("KfNM"),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},Nym8:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("ouKs");function o(e){var t=Object(r.a)(e).activeElement;return null!=t&&t.nodeName?t:null}},Ohaz:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var r=n("tQ+x");function o(e){return{[r.a]:e}}function a(){return{[r.b]:!0}}},PFEc:function(e,t,n){"use strict";var r=n("j1Hc")("%Object%"),o=n("eH4f");e.exports=function(e){return o(e),r(e)}},PcHe:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("Nym8"),o=n("utzN");function a(e){var t=Object(r.a)(e);if(!t)return!1;if(Object(o.a)(e,t))return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&(n===e.id||!!e.querySelector("#"+n))}},Pjai:function(e,t,n){"use strict";var r=n("vLdR");e.exports=function(e){var t=r(e,Number);if("string"!=typeof t)return+t;var n=t.replace(/^[ \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u0085]+|[ \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u0085]+$/g,"");return/^0[ob]|^[+-]0x/.test(n)?NaN:+n}},PoQ0:function(e,t,n){"use strict";var r=n("60zJ");e.exports=function(e){return"symbol"==typeof e?"Symbol":"bigint"==typeof e?"BigInt":r(e)}},Pq96:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!r.default.isMoment(e)||!r.default.isMoment(t))&&(0,o.default)(e.clone().subtract(1,"month"),t)};var r=a(n("wy2R")),o=a(n("ulUS"));function a(e){return e&&e.__esModule?e:{default:e}}},PrET:function(e,t,n){"use strict";var r=n("D3zA"),o=n("AM7I"),a=o("%Function.prototype.apply%"),i=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(i,a),s=o("%Object.defineProperty%",!0);if(s)try{s({},"a",{value:1})}catch(e){s=null}e.exports=function(){return c(r,i,arguments)};var l=function(){return c(r,a,arguments)};s?s(e.exports,"apply",{value:l}):e.exports.apply=l},Ptb8:function(e,t,n){"use strict";function r(e){return"object"==typeof e&&null!=e}n.d(t,"a",(function(){return r}))},Q4Sy:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));t.a=a},QEu6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.CHANNEL="__direction__",t.DIRECTIONS={LTR:"ltr",RTL:"rtl"}},QIyF:function(e,t,n){var r=n("Kz5y");e.exports=function(){return r.Date.now()}},Qmvf:function(e,t,n){"use strict";var r=n("j1Hc"),o=n("oNNP"),a=r("%TypeError%");e.exports=function(e,t){if("Object"!==e.Type(t))return!1;var n={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in t)if(o(t,r)&&!n[r])return!1;if(e.IsDataDescriptor(t)&&e.IsAccessorDescriptor(t))throw new a("Property Descriptors may not be both accessor and data descriptors");return!0}},RDTF:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return s}))},RMJe:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));t.a=a},Rhcr:function(e,t,n){"use strict";var r=n("j1Hc"),o=r("%TypeError%"),a=r("%Number%"),i=r("%RegExp%"),c=r("%parseInt%"),s=n("qeuH"),l=n("ZbWB"),u=n("BeK9"),d=s("String.prototype.slice"),f=l(/^0b[01]+$/i),p=l(/^0o[0-7]+$/i),b=l(/^[-+]0x[0-9a-f]+$/i),h=l(new i("["+["…","​","￾"].join("")+"]","g")),m=["\t\n\v\f\r   ᠎    ","          \u2028","\u2029\ufeff"].join(""),v=new RegExp("(^["+m+"]+)|(["+m+"]+$)","g"),g=s("String.prototype.replace"),y=n("Cx2f");e.exports=function e(t){var n=u(t)?t:y(t,a);if("symbol"==typeof n)throw new o("Cannot convert a Symbol value to a number");if("bigint"==typeof n)throw new o("Conversion from 'BigInt' to 'number' is not allowed.");if("string"==typeof n){if(f(n))return e(c(d(n,2),2));if(p(n))return e(c(d(n,2),8));if(h(n)||b(n))return NaN;var r=function(e){return g(e,v,"")}(n);if(r!==n)return e(r)}return a(n)}},RxS6:function(e,t){e.exports=window.wp.keycodes},S3lO:function(e,t,n){"use strict";var r=n("j1Hc")("%TypeError%"),o=n("wTIp"),a=n("rQBh"),i=n("6XE+"),c=n("6/BL"),s=n("UaFt"),l=n("nR7C"),u=n("uug5"),d=n("PoQ0");e.exports=function(e,t,n){if("Object"!==d(e))throw new r("Assertion failed: Type(O) is not Object");if(!l(t))throw new r("Assertion failed: IsPropertyKey(P) is not true");var f=i(e,t),p=!f||s(e);return!(f&&(!f["[[Writable]]"]||!f["[[Configurable]]"])||!p)&&o(c,u,a,e,t,{"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":n,"[[Writable]]":!0})}},S8ty:function(e,t,n){"use strict";var r=n("j1Hc")("%Math.abs%");e.exports=function(e){return r(e)}},SB3u:function(e,t,n){"use strict";n.r(t),n.d(t,"SVG",(function(){return i.SVG})),n.d(t,"Path",(function(){return i.Path})),n.d(t,"Circle",(function(){return i.Circle})),n.d(t,"Polygon",(function(){return i.Polygon})),n.d(t,"Rect",(function(){return i.Rect})),n.d(t,"G",(function(){return i.G})),n.d(t,"HorizontalRule",(function(){return i.HorizontalRule})),n.d(t,"BlockQuotation",(function(){return i.BlockQuotation})),n.d(t,"__experimentalAlignmentMatrixControl",(function(){return nt})),n.d(t,"Animate",(function(){return rt.a})),n.d(t,"__unstableGetAnimateClassName",(function(){return rt.b})),n.d(t,"__unstableMotion",(function(){return rs})),n.d(t,"AnglePickerControl",(function(){return ad})),n.d(t,"Autocomplete",(function(){return pd})),n.d(t,"__unstableUseAutocompleteProps",(function(){return fd})),n.d(t,"BaseControl",(function(){return jd})),n.d(t,"__experimentalBoxControl",(function(){return Qf})),n.d(t,"Button",(function(){return ld.a})),n.d(t,"ButtonGroup",(function(){return ep})),n.d(t,"Card",(function(){return Mp})),n.d(t,"CardBody",(function(){return zp})),n.d(t,"CardDivider",(function(){return Up})),n.d(t,"CardFooter",(function(){return Kp})),n.d(t,"CardHeader",(function(){return Gp})),n.d(t,"CardMedia",(function(){return $p})),n.d(t,"CheckboxControl",(function(){return Xp})),n.d(t,"ClipboardButton",(function(){return Zp})),n.d(t,"__experimentalColorEdit",(function(){return xg})),n.d(t,"ColorIndicator",(function(){return cg})),n.d(t,"ColorPalette",(function(){return Zv})),n.d(t,"ColorPicker",(function(){return kv})),n.d(t,"ComboboxControl",(function(){return Ig})),n.d(t,"__unstableComposite",(function(){return $e})),n.d(t,"__unstableCompositeGroup",(function(){return Ze})),n.d(t,"__unstableCompositeItem",(function(){return b.a})),n.d(t,"__unstableUseCompositeState",(function(){return we})),n.d(t,"CustomSelectControl",(function(){return By})),n.d(t,"Dashicon",(function(){return Hy.a})),n.d(t,"DateTimePicker",(function(){return Qy})),n.d(t,"DatePicker",(function(){return qy})),n.d(t,"TimePicker",(function(){return Jy})),n.d(t,"__experimentalDimensionControl",(function(){return tO})),n.d(t,"Disabled",(function(){return sO})),n.d(t,"__unstableDisclosureContent",(function(){return bm})),n.d(t,"__experimentalDivider",(function(){return Wp})),n.d(t,"Draggable",(function(){return uO})),n.d(t,"DropZone",(function(){return gO})),n.d(t,"DropZoneProvider",(function(){return yO})),n.d(t,"Dropdown",(function(){return Kv})),n.d(t,"DropdownMenu",(function(){return ig})),n.d(t,"DuotoneSwatch",(function(){return xO})),n.d(t,"DuotonePicker",(function(){return BO})),n.d(t,"__experimentalElevation",(function(){return op})),n.d(t,"ExternalLink",(function(){return WO})),n.d(t,"Flex",(function(){return Ms})),n.d(t,"FlexBlock",(function(){return hs})),n.d(t,"FlexItem",(function(){return ms})),n.d(t,"__experimentalFlyout",(function(){return Vj})),n.d(t,"FocalPointPicker",(function(){return hw})),n.d(t,"FocusableIframe",(function(){return mw})),n.d(t,"FontSizePicker",(function(){return Jw})),n.d(t,"FormFileUpload",(function(){return Qw})),n.d(t,"FormToggle",(function(){return ex})),n.d(t,"FormTokenField",(function(){return cx})),n.d(t,"GradientPicker",(function(){return Ex})),n.d(t,"CustomGradientPicker",(function(){return wx})),n.d(t,"__experimentalGrid",(function(){return Cx})),n.d(t,"Guide",(function(){return Ux})),n.d(t,"GuidePage",(function(){return Kx})),n.d(t,"__experimentalHeading",(function(){return $v})),n.d(t,"__experimentalHStack",(function(){return ib})),n.d(t,"Icon",(function(){return fb.a})),n.d(t,"IconButton",(function(){return Gx})),n.d(t,"__experimentalItemGroup",(function(){return Vv})),n.d(t,"__experimentalItem",(function(){return sg})),n.d(t,"__experimentalInputControl",(function(){return Zu})),n.d(t,"KeyboardShortcuts",(function(){return qx})),n.d(t,"MenuGroup",(function(){return Yx})),n.d(t,"MenuItem",(function(){return Zx})),n.d(t,"MenuItemsChoice",(function(){return Jx})),n.d(t,"Modal",(function(){return Bx})),n.d(t,"ScrollLock",(function(){return Qx.a})),n.d(t,"NavigableMenu",(function(){return og})),n.d(t,"TabbableContainer",(function(){return e_})),n.d(t,"__experimentalNavigation",(function(){return g_})),n.d(t,"__experimentalNavigationBackButton",(function(){return j_})),n.d(t,"__experimentalNavigationGroup",(function(){return x_})),n.d(t,"__experimentalNavigationItem",(function(){return T_})),n.d(t,"__experimentalNavigationMenu",(function(){return R_})),n.d(t,"__experimentalNavigatorProvider",(function(){return L_})),n.d(t,"__experimentalNavigatorScreen",(function(){return z_})),n.d(t,"__experimentalUseNavigator",(function(){return B_})),n.d(t,"Notice",(function(){return W_})),n.d(t,"__experimentalNumberControl",(function(){return Pd})),n.d(t,"NoticeList",(function(){return U_})),n.d(t,"Panel",(function(){return G_})),n.d(t,"PanelBody",(function(){return X_})),n.d(t,"PanelHeader",(function(){return K_})),n.d(t,"PanelRow",(function(){return Z_})),n.d(t,"Placeholder",(function(){return J_})),n.d(t,"Popover",(function(){return ud.a})),n.d(t,"QueryControls",(function(){return iE})),n.d(t,"__experimentalRadio",(function(){return sE})),n.d(t,"__experimentalRadioGroup",(function(){return lE})),n.d(t,"RadioControl",(function(){return uE})),n.d(t,"RangeControl",(function(){return zb})),n.d(t,"ResizableBox",(function(){return $E})),n.d(t,"ResponsiveWrapper",(function(){return qE})),n.d(t,"SandBox",(function(){return ZE})),n.d(t,"SearchControl",(function(){return a_})),n.d(t,"SelectControl",(function(){return db})),n.d(t,"Snackbar",(function(){return JE.a})),n.d(t,"SnackbarList",(function(){return tk})),n.d(t,"__experimentalSpacer",(function(){return od})),n.d(t,"__experimentalScrollable",(function(){return Fp})),n.d(t,"Spinner",(function(){return ak})),n.d(t,"__experimentalSurface",(function(){return ik})),n.d(t,"TabPanel",(function(){return sk})),n.d(t,"__experimentalText",(function(){return cl})),n.d(t,"TextControl",(function(){return lk})),n.d(t,"TextareaControl",(function(){return hk})),n.d(t,"TextHighlight",(function(){return mk})),n.d(t,"Tip",(function(){return vk})),n.d(t,"ToggleControl",(function(){return gk})),n.d(t,"__experimentalToggleGroupControl",(function(){return Tw})),n.d(t,"__experimentalToggleGroupControlOption",(function(){return Gw})),n.d(t,"Toolbar",(function(){return Tk})),n.d(t,"ToolbarButton",(function(){return wk})),n.d(t,"ToolbarDropdownMenu",(function(){return Mk})),n.d(t,"__experimentalToolbarContext",(function(){return Ok.a})),n.d(t,"ToolbarGroup",(function(){return Ek})),n.d(t,"ToolbarItem",(function(){return yk.a})),n.d(t,"__experimentalToolsPanel",(function(){return Xk})),n.d(t,"__experimentalToolsPanelItem",(function(){return Zk})),n.d(t,"__experimentalToolsPanelContext",(function(){return Vk})),n.d(t,"Tooltip",(function(){return h.a})),n.d(t,"__experimentalTreeGrid",(function(){return nS})),n.d(t,"__experimentalTreeGridRow",(function(){return rS})),n.d(t,"__experimentalTreeGridCell",(function(){return iS})),n.d(t,"__experimentalTreeGridItem",(function(){return aS})),n.d(t,"TreeSelect",(function(){return tE})),n.d(t,"__experimentalTruncate",(function(){return cS})),n.d(t,"__experimentalUnitControl",(function(){return Zd})),n.d(t,"__experimentalUseCustomUnits",(function(){return $d})),n.d(t,"__experimentalParseUnit",(function(){return Kd})),n.d(t,"__experimentalView",(function(){return as.a})),n.d(t,"VisuallyHidden",(function(){return m.a})),n.d(t,"__experimentalVStack",(function(){return Wv})),n.d(t,"IsolatedEventContainer",(function(){return lS})),n.d(t,"createSlotFill",(function(){return uS.d})),n.d(t,"Slot",(function(){return uS.c})),n.d(t,"Fill",(function(){return uS.a})),n.d(t,"SlotFillProvider",(function(){return uS.b})),n.d(t,"__experimentalUseSlot",(function(){return dS.a})),n.d(t,"__experimentalStyleProvider",(function(){return Fx})),n.d(t,"__experimentalZStack",(function(){return mS})),n.d(t,"navigateRegions",(function(){return yS})),n.d(t,"__unstableUseNavigateRegions",(function(){return gS})),n.d(t,"withConstrainedTabbing",(function(){return OS})),n.d(t,"withFallbackStyles",(function(){return jS})),n.d(t,"withFilters",(function(){return xS})),n.d(t,"withFocusOutside",(function(){return Mg})),n.d(t,"withFocusReturn",(function(){return _S})),n.d(t,"FocusReturnProvider",(function(){return ES})),n.d(t,"withNotices",(function(){return kS})),n.d(t,"withSpokenMessages",(function(){return ox}));var r={};n.r(r),n.d(r,"Text",(function(){return Gs})),n.d(r,"block",(function(){return $s})),n.d(r,"positive",(function(){return qs})),n.d(r,"destructive",(function(){return Ys})),n.d(r,"muted",(function(){return Xs})),n.d(r,"highlighterText",(function(){return Zs})),n.d(r,"upperCase",(function(){return Js}));var o={};n.r(o),n.d(o,"TooltipContent",(function(){return xm})),n.d(o,"TooltipPopoverView",(function(){return _m})),n.d(o,"noOutline",(function(){return Em})),n.d(o,"TooltipShortcut",(function(){return km}));var a={};n.r(a),n.d(a,"LabelView",(function(){return Aw})),n.d(a,"labelBlock",(function(){return Nw})),n.d(a,"buttonView",(function(){return Lw})),n.d(a,"buttonActive",(function(){return Fw})),n.d(a,"ButtonContentView",(function(){return zw})),n.d(a,"separatorActive",(function(){return Bw})),n.d(a,"LabelPlaceholderView",(function(){return Hw})),n.d(a,"medium",(function(){return Vw}));var i=n("Tqx9"),c=n("wx14"),s=n("GRId"),l=n("YLtl"),u=n("TSYQ"),d=n.n(u),f=n("l3Sj"),p=n("K9lf"),b=n("kTC8"),h=n("W/NR"),m=n("iSWJ");const v=[["top left","top center","top right"],["center left","center center","center right"],["bottom left","bottom center","bottom right"]],g={"top left":Object(f.__)("Top Left"),"top center":Object(f.__)("Top Center"),"top right":Object(f.__)("Top Right"),"center left":Object(f.__)("Center Left"),"center center":Object(f.__)("Center Center"),"center right":Object(f.__)("Center Right"),"bottom left":Object(f.__)("Bottom Left"),"bottom center":Object(f.__)("Bottom Center"),"bottom right":Object(f.__)("Bottom Right")},y=Object(l.flattenDeep)(v);function O(e){return("center"===e?"center center":e).replace("-"," ")}function j(e,t){return`${e}-${O(t).replace(" ","-")}`}var w=n("DZdY"),x=n("AeFk"),_=n("fHnH"),E=n("abaT");function k(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Object(_.a)(e).alpha(t).toRgbString()}Object(_.b)([E.a]);const S={black:"#000",white:"#fff"},C={blue:{medium:{focus:"#007cba",focusDark:"#fff"}},gray:{900:"#1e1e1e",700:"#757575",600:"#949494",400:"#ccc",200:"#ddd",100:"#f0f0f0"},darkGray:{primary:"#1e1e1e",heading:"#050505"},mediumGray:{text:"#757575"},lightGray:{ui:"#949494",secondary:"#ccc",tertiary:"#e7e8e9"}},P={900:"#191e23",800:"#23282d",700:"#32373c",600:"#40464d",500:"#555d66",400:"#606a73",300:"#6c7781",200:"#7e8993",150:"#8d96a0",100:"#8f98a1",placeholder:k(C.gray[900],.62)},T={900:k("#000510",.9),800:k("#00000a",.85),700:k("#06060b",.8),600:k("#000913",.75),500:k("#0a1829",.7),400:k("#0a1829",.65),300:k("#0e1c2e",.62),200:k("#162435",.55),100:k("#223443",.5),backgroundFill:k(P[700],.7)},M={900:k("#304455",.45),800:k("#425863",.4),700:k("#667886",.35),600:k("#7b86a2",.3),500:k("#9197a2",.25),400:k("#95959c",.2),300:k("#829493",.15),200:k("#8b8b96",.1),100:k("#747474",.05)},D={900:"#a2aab2",800:"#b5bcc2",700:"#ccd0d4",600:"#d7dade",500:"#e2e4e7",400:"#e8eaeb",300:"#edeff0",200:"#f3f4f5",100:"#f8f9f9",placeholder:k(S.white,.65)},I={900:k(S.white,.5),800:k(S.white,.45),700:k(S.white,.4),600:k(S.white,.35),500:k(S.white,.3),400:k(S.white,.25),300:k(S.white,.2),200:k(S.white,.15),100:k(S.white,.1),backgroundFill:k(D[300],.8)},R={wordpress:{700:"#00669b"},dark:{900:"#0071a1"},medium:{900:"#006589",800:"#00739c",700:"#007fac",600:"#008dbe",500:"#00a0d2",400:"#33b3db",300:"#66c6e4",200:"#bfe7f3",100:"#e5f5fa",highlight:"#b3e7fe",focus:"#007cba"}},A={theme:`var( --wp-admin-theme-color, ${R.wordpress[700]})`,themeDark10:`var( --wp-admin-theme-color-darker-10, ${R.medium.focus})`},N={theme:A.theme,background:S.white,backgroundDisabled:D[200],border:C.gray[700],borderHover:C.gray[700],borderFocus:A.themeDark10,borderDisabled:C.gray[400],borderLight:C.gray[200],label:P[500],textDisabled:P[150],textDark:S.white,textLight:S.black},L={...S,darkGray:Object(l.merge)({},P,C.darkGray),darkOpacity:T,darkOpacityLight:M,mediumGray:C.mediumGray,gray:C.gray,lightGray:Object(l.merge)({},D,C.lightGray),lightGrayLight:I,blue:Object(l.merge)({},R,C.blue),alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},admin:A,ui:N};function F(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transition";switch(t){case"transition":e="transition-duration: 0ms;";break;case"animation":e="animation-duration: 1ms;";break;default:e="\n\t\t\t\tanimation-duration: 1ms;\n\t\t\t\ttransition-duration: 0ms;\n\t\t\t"}return`\n\t\t@media ( prefers-reduced-motion: reduce ) {\n\t\t\t${e};\n\t\t}\n\t`}var z={name:"lp9rn7",styles:"border-radius:2px;box-sizing:border-box;display:grid;grid-template-columns:repeat( 3, 1fr );outline:none"};const B=()=>z,H=Object(w.a)("div",{target:"e1od1u4s3"})(B,";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;",e=>{let{size:t=92}=e;return Object(x.a)("grid-template-rows:repeat( 3, calc( ",t,"px / 3 ) );width:",t,"px;","")},";"),V=Object(w.a)("div",{target:"e1od1u4s2"})({name:"1x5gbbj",styles:"box-sizing:border-box;display:grid;grid-template-columns:repeat( 3, 1fr )"}),W=e=>Object(x.a)("background:currentColor;box-sizing:border-box;display:grid;margin:auto;transition:all 120ms linear;",F("transition")," ",(e=>{let{isActive:t}=e;const n=t?"0 0 0 2px "+L.black:null,r=t?L.black:L.lightGray[800],o=t?L.black:L.blue.medium.focus;return Object(x.a)("box-shadow:",n,";color:",r,";*:hover>&{color:",o,";}","")})(e),";",""),U=Object(w.a)("span",{target:"e1od1u4s1"})("height:6px;width:6px;",W,";"),K=Object(w.a)("span",{target:"e1od1u4s0"})({name:"rjf3ub",styles:"appearance:none;border:none;box-sizing:border-box;margin:0;display:flex;position:relative;outline:none;align-items:center;justify-content:center;padding:0"});function G(e){let{isActive:t=!1,value:n,...r}=e;const o=g[n];return Object(s.createElement)(h.a,{text:o},Object(s.createElement)(b.a,Object(c.a)({as:K,role:"gridcell"},r),Object(s.createElement)(m.a,null,n),Object(s.createElement)(U,{isActive:t,role:"presentation"})))}var $=n("BZp5"),q=n("cDcd"),Y=n.n(q),X=n("AXvK");function Z(e){return Object(q.useState)(e)[0]}var J=n("ouKs");function Q(e){for(var t,n=[[]],r=function(){var e=t.value,r=n.find((function(t){return!t[0]||t[0].groupId===e.groupId}));r?r.push(e):n.push([e])},o=Object($.c)(e);!(t=o()).done;)r();return n}function ee(e){for(var t,n=[],r=Object($.c)(e);!(t=r()).done;){var o=t.value;n.push.apply(n,o)}return n}function te(e){return e.slice().reverse()}var ne=n("iYXd");function re(e,t){if(t)return null==e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}function oe(e,t){return function(e){return"function"==typeof e}(e)?e(t):e}var ae=n("KCH1");function ie(e){void 0===e&&(e={});var t=Z(e).baseId,n=Object(q.useContext)(ae.a),r=Object(q.useRef)(0),o=Object(q.useState)((function(){return t||n()}));return{baseId:o[0],setBaseId:o[1],unstable_idCountRef:r}}function ce(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function se(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&ce(t.ref.current,e.ref.current)}))}function le(e){for(var t,n=0,r=Object($.c)(e);!(t=r()).done;){var o=t.value.length;o>n&&(n=o)}return n}function ue(e){for(var t=Q(e),n=le(t),r=[],o=0;o<n;o+=1)for(var a,i=Object($.c)(t);!(a=i()).done;){var c=a.value;c[o]&&r.push(Object($.b)(Object($.b)({},c[o]),{},{groupId:c[o].groupId?""+o:void 0}))}return r}function de(e,t,n){for(var r,o=le(e),a=Object($.c)(e);!(r=a()).done;)for(var i=r.value,c=0;c<o;c+=1){var s=i[c];if(!s||n&&s.disabled){var l=0===c&&n?Object(ne.a)(i):i[c-1];i[c]=l&&t!==(null==l?void 0:l.id)&&n?l:{id:"__EMPTY_ITEM__",disabled:!0,ref:{current:null},groupId:null==l?void 0:l.groupId}}}return e}var fe={id:null,ref:{current:null}};function pe(e,t){return e.filter((function(e){return e.groupId===t}))}var be={horizontal:"vertical",vertical:"horizontal"};function he(e,t,n){return n in e?[].concat(e.slice(0,n),[t],e.slice(n)):[].concat(e,[t])}function me(e){var t=e.map((function(e,t){return[t,e]})),n=!1;return t.sort((function(e,t){var r=e[0],o=e[1],a=t[0],i=t[1],c=o.ref.current,s=i.ref.current;return c&&s?ce(c,s)?(r>a&&(n=!0),-1):(r<a&&(n=!0),1):0})),n?t.map((function(e){e[0];return e[1]})):e}function ve(e,t){var n=me(e);e!==n&&t(n)}function ge(e,t){var n=Object(q.useRef)([]);Object(q.useEffect)((function(){for(var r,o=function(e){for(var t,n=e[0],r=e.slice(1),o=null==n||null===(t=n.ref.current)||void 0===t?void 0:t.parentElement,a=function(){var e=o;if(r.every((function(t){return e.contains(t.ref.current)})))return{v:o};o=o.parentElement};o;){var i=a();if("object"==typeof i)return i.v}return Object(J.a)(o).body}(e),a=new IntersectionObserver((function(){!!n.current.length&&ve(e,t),n.current=e}),{root:o}),i=Object($.c)(e);!(r=i()).done;){var c=r.value;c.ref.current&&a.observe(c.ref.current)}return function(){a.disconnect()}}),[e])}function ye(e,t){"function"==typeof IntersectionObserver?ge(e,t):function(e,t){Object(q.useEffect)((function(){var n=setTimeout((function(){return ve(e,t)}),250);return function(){return clearTimeout(n)}}))}(e,t)}function Oe(e,t){var n=e.unstable_virtual,r=e.rtl,o=e.orientation,a=e.items,i=e.groups,c=e.currentId,s=e.loop,l=e.wrap,u=e.pastIds,d=e.shift,f=e.unstable_moves,p=e.unstable_includesBaseElement,b=e.initialVirtual,h=e.initialRTL,m=e.initialOrientation,v=e.initialCurrentId,g=e.initialLoop,y=e.initialWrap,O=e.initialShift,j=e.hasSetCurrentId;switch(t.type){case"registerGroup":var w=t.group;if(0===i.length)return Object($.b)(Object($.b)({},e),{},{groups:[w]});var x=se(i,w);return Object($.b)(Object($.b)({},e),{},{groups:he(i,w,x)});case"unregisterGroup":var _=t.id,E=i.filter((function(e){return e.id!==_}));return E.length===i.length?e:Object($.b)(Object($.b)({},e),{},{groups:E});case"registerItem":var k,S=t.item,C=i.find((function(e){var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(S.ref.current)})),P=Object($.b)({groupId:null==C?void 0:C.id},S),T=se(a,P),M=Object($.b)(Object($.b)({},e),{},{items:he(a,P,T)});return j||f||void 0!==v?M:Object($.b)(Object($.b)({},M),{},{currentId:null===(k=Object(ne.a)(M.items))||void 0===k?void 0:k.id});case"unregisterItem":var D=t.id,I=a.filter((function(e){return e.id!==D}));if(I.length===a.length)return e;var R=u.filter((function(e){return e!==D})),A=Object($.b)(Object($.b)({},e),{},{pastIds:R,items:I});if(c&&c===D){var N=p?null:Object(ne.b)(Object($.b)(Object($.b)({},A),{},{currentId:R[0]}));return Object($.b)(Object($.b)({},A),{},{currentId:N})}return A;case"move":var L=t.id;if(void 0===L)return e;var F=u.filter((function(e){return e!==c&&e!==L})),z=c?[c].concat(F):F,B=Object($.b)(Object($.b)({},e),{},{pastIds:z});if(null===L)return Object($.b)(Object($.b)({},B),{},{unstable_moves:f+1,currentId:Object(ne.b)(B,L)});var H=re(a,L);return Object($.b)(Object($.b)({},B),{},{unstable_moves:H?f+1:f,currentId:Object(ne.b)(B,null==H?void 0:H.id)});case"next":if(null==c)return Oe(e,Object($.b)(Object($.b)({},t),{},{type:"first"}));var V=r&&"vertical"!==o,W=V?te(a):a,U=W.find((function(e){return e.id===c}));if(!U)return Oe(e,Object($.b)(Object($.b)({},t),{},{type:"first"}));var K=!!U.groupId,G=W.indexOf(U),q=W.slice(G+1),Y=pe(q,U.groupId);if(t.allTheWay){var X=Object(ne.a)(V?pe(W,U.groupId):te(Y));return Oe(e,Object($.b)(Object($.b)({},t),{},{type:"move",id:null==X?void 0:X.id}))}var Z=function(e){return e&&be[e]}(K?o||"horizontal":o),J=s&&s!==Z,ae=K&&l&&l!==Z,ie=t.hasNullItem||!K&&J&&p;if(J){var ce=function(e,t,n){var r=e.findIndex((function(e){return e.id===t}));return[].concat(e.slice(r+1),n?[fe]:[],e.slice(0,r))}(ae&&!ie?W:pe(W,U.groupId),c,ie),le=Object(ne.a)(ce,c);return Oe(e,Object($.b)(Object($.b)({},t),{},{type:"move",id:null==le?void 0:le.id}))}if(ae){var ve=Object(ne.a)(ie?Y:q,c),ge=ie?(null==ve?void 0:ve.id)||null:null==ve?void 0:ve.id;return Oe(e,Object($.b)(Object($.b)({},t),{},{type:"move",id:ge}))}var ye=Object(ne.a)(Y,c);return Oe(e,!ye&&ie?Object($.b)(Object($.b)({},t),{},{type:"move",id:null}):Object($.b)(Object($.b)({},t),{},{type:"move",id:null==ye?void 0:ye.id}));case"previous":var je=!!!i.length&&p,we=Oe(Object($.b)(Object($.b)({},e),{},{items:te(a)}),Object($.b)(Object($.b)({},t),{},{type:"next",hasNullItem:je}));return Object($.b)(Object($.b)({},we),{},{items:a});case"down":var xe=d&&!t.allTheWay,_e=ue(ee(de(Q(a),c,xe))),Ee=s&&"horizontal"!==s&&p,ke=Oe(Object($.b)(Object($.b)({},e),{},{orientation:"vertical",items:_e}),Object($.b)(Object($.b)({},t),{},{type:"next",hasNullItem:Ee}));return Object($.b)(Object($.b)({},ke),{},{orientation:o,items:a});case"up":var Se=d&&!t.allTheWay,Ce=ue(te(ee(de(Q(a),c,Se)))),Pe=p,Te=Oe(Object($.b)(Object($.b)({},e),{},{orientation:"vertical",items:Ce}),Object($.b)(Object($.b)({},t),{},{type:"next",hasNullItem:Pe}));return Object($.b)(Object($.b)({},Te),{},{orientation:o,items:a});case"first":var Me=Object(ne.a)(a);return Oe(e,Object($.b)(Object($.b)({},t),{},{type:"move",id:null==Me?void 0:Me.id}));case"last":var De=Oe(Object($.b)(Object($.b)({},e),{},{items:te(a)}),Object($.b)(Object($.b)({},t),{},{type:"first"}));return Object($.b)(Object($.b)({},De),{},{items:a});case"sort":return Object($.b)(Object($.b)({},e),{},{items:me(a),groups:me(i)});case"setVirtual":return Object($.b)(Object($.b)({},e),{},{unstable_virtual:oe(t.virtual,n)});case"setRTL":return Object($.b)(Object($.b)({},e),{},{rtl:oe(t.rtl,r)});case"setOrientation":return Object($.b)(Object($.b)({},e),{},{orientation:oe(t.orientation,o)});case"setCurrentId":var Ie=Object(ne.b)(Object($.b)(Object($.b)({},e),{},{currentId:oe(t.currentId,c)}));return Object($.b)(Object($.b)({},e),{},{currentId:Ie,hasSetCurrentId:!0});case"setLoop":return Object($.b)(Object($.b)({},e),{},{loop:oe(t.loop,s)});case"setWrap":return Object($.b)(Object($.b)({},e),{},{wrap:oe(t.wrap,l)});case"setShift":return Object($.b)(Object($.b)({},e),{},{shift:oe(t.shift,d)});case"setIncludesBaseElement":return Object($.b)(Object($.b)({},e),{},{unstable_includesBaseElement:oe(t.includesBaseElement,p)});case"reset":return Object($.b)(Object($.b)({},e),{},{unstable_virtual:b,rtl:h,orientation:m,currentId:Object(ne.b)(Object($.b)(Object($.b)({},e),{},{currentId:v})),loop:g,wrap:y,shift:O,unstable_moves:0,pastIds:[]});case"setItems":return Object($.b)(Object($.b)({},e),{},{items:t.items});default:throw new Error}}function je(e){return Object(q.useCallback)(e,[])}function we(e){void 0===e&&(e={});var t=Z(e),n=t.unstable_virtual,r=void 0!==n&&n,o=t.rtl,a=void 0!==o&&o,i=t.orientation,c=t.currentId,s=t.loop,l=void 0!==s&&s,u=t.wrap,d=void 0!==u&&u,f=t.shift,p=void 0!==f&&f,b=t.unstable_includesBaseElement,h=ie(Object($.a)(t,["unstable_virtual","rtl","orientation","currentId","loop","wrap","shift","unstable_includesBaseElement"])),m=Object(q.useReducer)(Oe,{unstable_virtual:r,rtl:a,orientation:i,items:[],groups:[],currentId:c,loop:l,wrap:d,shift:p,unstable_moves:0,pastIds:[],unstable_includesBaseElement:null!=b?b:null===c,initialVirtual:r,initialRTL:a,initialOrientation:i,initialCurrentId:c,initialLoop:l,initialWrap:d,initialShift:p}),v=m[0],g=(v.pastIds,v.initialVirtual,v.initialRTL,v.initialOrientation,v.initialCurrentId,v.initialLoop,v.initialWrap,v.initialShift,v.hasSetCurrentId,Object($.a)(v,["pastIds","initialVirtual","initialRTL","initialOrientation","initialCurrentId","initialLoop","initialWrap","initialShift","hasSetCurrentId"])),y=m[1],O=Object(q.useState)(!1),j=O[0],w=O[1],x=function(){var e=Object(q.useRef)(!1);return Object(X.a)((function(){return function(){e.current=!0}}),[]),e}(),_=Object(q.useCallback)((function(e){return y({type:"setItems",items:e})}),[]);return ye(g.items,_),Object($.b)(Object($.b)(Object($.b)({},h),g),{},{unstable_hasActiveWidget:j,unstable_setHasActiveWidget:w,registerItem:je((function(e){x.current||y({type:"registerItem",item:e})})),unregisterItem:je((function(e){x.current||y({type:"unregisterItem",id:e})})),registerGroup:je((function(e){x.current||y({type:"registerGroup",group:e})})),unregisterGroup:je((function(e){x.current||y({type:"unregisterGroup",id:e})})),move:je((function(e){return y({type:"move",id:e})})),next:je((function(e){return y({type:"next",allTheWay:e})})),previous:je((function(e){return y({type:"previous",allTheWay:e})})),up:je((function(e){return y({type:"up",allTheWay:e})})),down:je((function(e){return y({type:"down",allTheWay:e})})),first:je((function(){return y({type:"first"})})),last:je((function(){return y({type:"last"})})),sort:je((function(){return y({type:"sort"})})),unstable_setVirtual:je((function(e){return y({type:"setVirtual",virtual:e})})),setRTL:je((function(e){return y({type:"setRTL",rtl:e})})),setOrientation:je((function(e){return y({type:"setOrientation",orientation:e})})),setCurrentId:je((function(e){return y({type:"setCurrentId",currentId:e})})),setLoop:je((function(e){return y({type:"setLoop",loop:e})})),setWrap:je((function(e){return y({type:"setWrap",wrap:e})})),setShift:je((function(e){return y({type:"setShift",shift:e})})),unstable_setIncludesBaseElement:je((function(e){return y({type:"setIncludesBaseElement",includesBaseElement:e})})),reset:je((function(){return y({type:"reset"})}))})}var xe=n("hE48"),_e=n("qdes"),Ee=n("aU41"),ke=(n("KA1K"),n("eNtd")),Se=n("k2cL"),Ce=n("zGFp"),Pe=n("G3V0"),Te=n("IVEb"),Me=n("I/A+"),De=n("khzz");function Ie(e,t,n){return void 0===n&&(n={}),"function"==typeof FocusEvent?new FocusEvent(t,n):Object(De.a)(e,t,n)}function Re(e,t){var n=Ie(e,"blur",t),r=e.dispatchEvent(n),o=Object(Me.b)(Object(Me.b)({},t),{},{bubbles:!0});return e.dispatchEvent(Ie(e,"focusout",o)),r}var Ae=n("SyVe");function Ne(e,t,n){return e.dispatchEvent(function(e,t,n){if(void 0===n&&(n={}),"function"==typeof KeyboardEvent)return new KeyboardEvent(t,n);var r=Object(J.a)(e).createEvent("KeyboardEvent");return r.initKeyboardEvent(t,n.bubbles,n.cancelable,Object(Ae.a)(e),n.key,n.location,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey),r}(e,t,n))}var Le=n("+ipW"),Fe=n("Nym8"),ze=Le.a&&"msCrypto"in window;function Be(e){return ze?Object(Fe.a)(e.currentTarget):e.relatedTarget}var He=n("TFuP"),Ve=n("Mih7"),We=Le.a&&"msCrypto"in window;function Ue(e,t,n){var r=Object(ke.a)(n);return Object(q.useCallback)((function(n){var o;if(null===(o=r.current)||void 0===o||o.call(r,n),!n.defaultPrevented&&e&&function(e){return!!Object(Se.a)(e)&&(!e.metaKey&&"Tab"!==e.key)}(n)){var a=null==t?void 0:t.ref.current;a&&(Ne(a,n.type,n)||n.preventDefault(),n.currentTarget.contains(a)&&n.stopPropagation())}}),[e,t])}function Ke(e,t){return null==e?void 0:e.some((function(e){return!!t&&e.ref.current===t}))}var Ge=Object(_e.a)({name:"Composite",compose:[Pe.a],keys:He.a,useOptions:function(e){return Object($.b)(Object($.b)({},e),{},{currentId:Object(ne.b)(e)})},useProps:function(e,t){var n=t.ref,r=t.onFocusCapture,o=t.onFocus,a=t.onBlurCapture,i=t.onKeyDown,c=t.onKeyDownCapture,s=t.onKeyUpCapture,l=Object($.a)(t,["ref","onFocusCapture","onFocus","onBlurCapture","onKeyDown","onKeyDownCapture","onKeyUpCapture"]),u=Object(q.useRef)(null),d=re(e.items,e.currentId),f=Object(q.useRef)(null),p=Object(ke.a)(r),b=Object(ke.a)(o),h=Object(ke.a)(a),m=Object(ke.a)(i),v=function(e){var t=Object(ke.a)(e),n=Object(q.useReducer)((function(e){return e+1}),0),r=n[0],o=n[1];return Object(q.useEffect)((function(){var e,n=null===(e=t.current)||void 0===e?void 0:e.ref.current;r&&n&&Object(Ve.c)(n)}),[r]),o}(d),g=We?function(e){var t=Object(q.useRef)(null);return Object(q.useEffect)((function(){var n=Object(J.a)(e.current),r=function(e){var n=e.target;t.current=n};return n.addEventListener("focus",r,!0),function(){n.removeEventListener("focus",r,!0)}}),[]),t}(u):void 0;Object(q.useEffect)((function(){var t=u.current;e.unstable_moves&&!d&&(null==t||t.focus())}),[e.unstable_moves,d]);var y=Ue(e.unstable_virtual,d,c),O=Ue(e.unstable_virtual,d,s),j=Object(q.useCallback)((function(t){var n;if(null===(n=p.current)||void 0===n||n.call(p,t),!t.defaultPrevented&&e.unstable_virtual){var r=(null==g?void 0:g.current)||t.relatedTarget,o=Ke(e.items,r);Object(Se.a)(t)&&o&&(t.stopPropagation(),f.current=r)}}),[e.unstable_virtual,e.items]),w=Object(q.useCallback)((function(t){var n;if(null===(n=b.current)||void 0===n||n.call(b,t),!t.defaultPrevented)if(e.unstable_virtual)Object(Se.a)(t)&&v();else if(Object(Se.a)(t)){var r;null===(r=e.setCurrentId)||void 0===r||r.call(e,null)}}),[e.unstable_virtual,e.setCurrentId]),x=Object(q.useCallback)((function(t){var n;if(null===(n=h.current)||void 0===n||n.call(h,t),!t.defaultPrevented&&e.unstable_virtual){var r=(null==d?void 0:d.ref.current)||null,o=Be(t),a=Ke(e.items,o);if(Object(Se.a)(t)&&a)o===r?f.current&&f.current!==o&&Re(f.current,t):r&&Re(r,t),t.stopPropagation();else!Ke(e.items,t.target)&&r&&Re(r,t)}}),[e.unstable_virtual,e.items,d]),_=Object(q.useCallback)((function(t){var n,r;if(null===(n=m.current)||void 0===n||n.call(m,t),!t.defaultPrevented&&null===e.currentId&&Object(Se.a)(t)){var o="horizontal"!==e.orientation,a="vertical"!==e.orientation,i=!(null===(r=e.groups)||void 0===r||!r.length),c={ArrowUp:(i||o)&&function(){if(i){var t,n=(o=e.items,Object(ne.a)(ee(te(Q(o)))));if(null!=n&&n.id)null===(t=e.move)||void 0===t||t.call(e,n.id)}else{var r;null===(r=e.last)||void 0===r||r.call(e)}var o},ArrowRight:(i||a)&&e.first,ArrowDown:(i||o)&&e.first,ArrowLeft:(i||a)&&e.last,Home:e.first,End:e.last,PageUp:e.first,PageDown:e.last}[t.key];c&&(t.preventDefault(),c())}}),[e.currentId,e.orientation,e.groups,e.items,e.move,e.last,e.first]);return Object($.b)({ref:Object(Ee.a)(u,n),id:e.baseId,onFocus:w,onFocusCapture:j,onBlurCapture:x,onKeyDownCapture:y,onKeyDown:_,onKeyUpCapture:O,"aria-activedescendant":e.unstable_virtual&&(null==d?void 0:d.id)||void 0},l)},useComposeProps:function(e,t){t=Object(Ce.a)(e,t,!0);var n=Object(Pe.a)(e,t,!0);return e.unstable_virtual||null===e.currentId?Object($.b)({tabIndex:0},n):Object($.b)(Object($.b)({},t),{},{ref:n.ref})}}),$e=Object(xe.a)({as:"div",useHook:Ge,useCreateElement:function(e,t,n){return Object(Te.a)(e,t,n)}}),qe=n("ym77"),Ye=Object(_e.a)({name:"Group",compose:Ce.a,keys:[],useProps:function(e,t){return Object($.b)({role:"group"},t)}}),Xe=(Object(xe.a)({as:"div",useHook:Ye}),Object(_e.a)({name:"CompositeGroup",compose:[Ye,qe.a],keys:He.b,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return Ye.unstable_propsAreEqual(e,t);var n=e.currentId,r=(e.unstable_moves,Object($.a)(e,["currentId","unstable_moves"])),o=t.currentId,a=(t.unstable_moves,Object($.a)(t,["currentId","unstable_moves"]));if(e.items&&t.items){var i=re(e.items,n),c=re(t.items,o),s=null==i?void 0:i.groupId,l=null==c?void 0:c.groupId;if(t.id===l||t.id===s)return!1}return Ye.unstable_propsAreEqual(r,a)},useProps:function(e,t){var n=t.ref,r=Object($.a)(t,["ref"]),o=Object(q.useRef)(null),a=e.id;return Object(X.a)((function(){var t;if(a)return null===(t=e.registerGroup)||void 0===t||t.call(e,{id:a,ref:o}),function(){var t;null===(t=e.unregisterGroup)||void 0===t||t.call(e,a)}}),[a,e.registerGroup,e.unregisterGroup]),Object($.b)({ref:Object(Ee.a)(o,n)},r)}})),Ze=Object(xe.a)({as:"div",useHook:Xe});Object(w.a)("div",{target:"elqsdmc2"})({name:"ogl07i",styles:"box-sizing:border-box;padding:2px"});const Je=Object(w.a)("div",{target:"elqsdmc1"})("transform-origin:top left;height:100%;width:100%;",B,";",()=>Object(x.a)({gridTemplateRows:"repeat( 3, calc( 21px / 3))",padding:1.5,maxHeight:24,maxWidth:24},"",""),";",e=>{let{disablePointerEvents:t}=e;return Object(x.a)({pointerEvents:t?"none":null},"","")},";"),Qe=Object(w.a)("span",{target:"elqsdmc0"})("height:2px;width:2px;",W,";",e=>{let{isActive:t}=e;const n=t?"0 0 0 1px currentColor":null;return Object(x.a)("box-shadow:",n,";color:currentColor;*:hover>&{color:currentColor;}","")},";"),et=K,tt=24;function nt(e){let{className:t,id:n,label:r=Object(f.__)("Alignment Matrix Control"),defaultValue:o="center center",value:a,onChange:i=l.noop,width:u=92,...b}=e;const[h]=Object(s.useState)(null!=a?a:o),m=function(e){const t=Object(p.useInstanceId)(nt,"alignment-matrix-control");return e||t}(n),g=j(m,h),y=we({baseId:m,currentId:g,rtl:Object(f.isRTL)()});Object(s.useEffect)(()=>{void 0!==a&&y.setCurrentId(j(m,a))},[a,y.setCurrentId]);const O=d()("component-alignment-matrix-control",t);return Object(s.createElement)($e,Object(c.a)({},b,y,{"aria-label":r,as:H,className:O,role:"grid",width:u}),v.map((e,t)=>Object(s.createElement)(Ze,Object(c.a)({},y,{as:V,role:"row",key:t}),e.map(e=>{const t=j(m,e),n=y.currentId===t;return Object(s.createElement)(G,Object(c.a)({},y,{id:t,isActive:n,key:e,value:e,onFocus:()=>{i(e)},tabIndex:n?0:-1}))}))))}nt.Icon=function(e){let{className:t,disablePointerEvents:n=!0,size:r=tt,style:o={},value:a="center",...i}=e;const l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"center";const t=O(e).replace("-"," "),n=y.indexOf(t);return n>-1?n:void 0}(a),u=(r/tt).toFixed(2),f=d()("component-alignment-matrix-control-icon",t),p={...o,transform:`scale(${u})`};return Object(s.createElement)(Je,Object(c.a)({},i,{className:f,disablePointerEvents:n,role:"presentation",size:r,style:p}),y.map((e,t)=>{const n=l===t;return Object(s.createElement)(et,{key:e},Object(s.createElement)(Qe,{isActive:n}))}))};var rt=n("L8Kx"),ot=function(e,t){return(ot=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)}; + */var r=60103,o=60106,a=60107,i=60108,c=60114,s=60109,l=60110,u=60112,d=60113,f=60120,p=60115,b=60116,h=60121,m=60122,v=60117,g=60129,y=60131;if("function"==typeof Symbol&&Symbol.for){var O=Symbol.for;r=O("react.element"),o=O("react.portal"),a=O("react.fragment"),i=O("react.strict_mode"),c=O("react.profiler"),s=O("react.provider"),l=O("react.context"),u=O("react.forward_ref"),d=O("react.suspense"),f=O("react.suspense_list"),p=O("react.memo"),b=O("react.lazy"),h=O("react.block"),m=O("react.server.block"),v=O("react.fundamental"),g=O("react.debug_trace_mode"),y=O("react.legacy_hidden")}function j(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case a:case c:case i:case d:case f:return e;default:switch(e=e&&e.$$typeof){case l:case u:case b:case p:case s:return e;default:return t}}case o:return t}}}var w=s,x=r,_=u,E=a,k=b,S=p,C=o,P=c,T=i,M=d;t.ContextConsumer=l,t.ContextProvider=w,t.Element=x,t.ForwardRef=_,t.Fragment=E,t.Lazy=k,t.Memo=S,t.Portal=C,t.Profiler=P,t.StrictMode=T,t.Suspense=M,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return j(e)===l},t.isContextProvider=function(e){return j(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return j(e)===u},t.isFragment=function(e){return j(e)===a},t.isLazy=function(e){return j(e)===b},t.isMemo=function(e){return j(e)===p},t.isPortal=function(e){return j(e)===o},t.isProfiler=function(e){return j(e)===c},t.isStrictMode=function(e){return j(e)===i},t.isSuspense=function(e){return j(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===c||e===g||e===i||e===d||e===f||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===p||e.$$typeof===s||e.$$typeof===l||e.$$typeof===u||e.$$typeof===v||e.$$typeof===h||e[0]===m)},t.typeOf=j},"5yQQ":function(e,t,n){"use strict";var r=n("nRDI");e.exports=function(){if("undefined"!=typeof document){if(document.contains)return document.contains;if(document.body&&document.body.contains)try{if("boolean"==typeof document.body.contains.call(document,""))return document.body.contains}catch(e){}}return r}},"6/BL":function(e,t,n){"use strict";var r=n("oNNP"),o=n("10Kj"),a=n("PoQ0");e.exports=function(e){return void 0!==e&&(o(a,"Property Descriptor","Desc",e),!(!r(e,"[[Value]]")&&!r(e,"[[Writable]]")))}},"60zJ":function(e,t,n){"use strict";e.exports=function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0}},"6Ehn":function(e,t,n){"use strict";var r=n("j1Hc"),o=r("%Array.prototype%"),a=r("%RangeError%"),i=r("%SyntaxError%"),c=r("%TypeError%"),s=n("J2ba"),l=Math.pow(2,32)-1,u=r("%Object.setPrototypeOf%",!0)||([].__proto__!==o?null:function(e,t){return e.__proto__=t,e});e.exports=function(e){if(!s(e)||e<0)throw new c("Assertion failed: `length` must be an integer Number >= 0");if(e>l)throw new a("length is greater than (2**32 - 1)");var t=arguments.length>1?arguments[1]:o,n=[];if(t!==o){if(!u)throw new i("ArrayCreate: a `proto` argument that is not `Array.prototype` is not supported in an environment that does not support setting the [[Prototype]]");u(n,t)}return 0!==e&&(n.length=e),n}},"6HWY":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!r.default.isMoment(e)||!r.default.isMoment(t))&&(0,o.default)(e.clone().add(1,"month"),t)};var r=a(n("wy2R")),o=a(n("ulUS"));function a(e){return e&&e.__esModule?e:{default:e}}},"6I5v":function(e,t,n){"use strict";e.exports=function(e){return e>=0?1:-1}},"6XE+":function(e,t,n){"use strict";var r=n("j1Hc"),o=n("knm9"),a=r("%TypeError%"),i=n("qeuH")("Object.prototype.propertyIsEnumerable"),c=n("oNNP"),s=n("Bl8U"),l=n("nR7C"),u=n("a73V"),d=n("6orR"),f=n("PoQ0");e.exports=function(e,t){if("Object"!==f(e))throw new a("Assertion failed: O must be an Object");if(!l(t))throw new a("Assertion failed: P must be a Property Key");if(c(e,t)){if(!o){var n=s(e)&&"length"===t,r=u(e)&&"lastIndex"===t;return{"[[Configurable]]":!(n||r),"[[Enumerable]]":i(e,t),"[[Value]]":e[t],"[[Writable]]":!0}}return d(o(e,t))}}},"6orR":function(e,t,n){"use strict";var r=n("oNNP"),o=n("j1Hc")("%TypeError%"),a=n("PoQ0"),i=n("e87w"),c=n("1P9b");e.exports=function(e){if("Object"!==a(e))throw new o("ToPropertyDescriptor requires an object");var t={};if(r(e,"enumerable")&&(t["[[Enumerable]]"]=i(e.enumerable)),r(e,"configurable")&&(t["[[Configurable]]"]=i(e.configurable)),r(e,"value")&&(t["[[Value]]"]=e.value),r(e,"writable")&&(t["[[Writable]]"]=i(e.writable)),r(e,"get")){var n=e.get;if(void 0!==n&&!c(n))throw new o("getter must be a function");t["[[Get]]"]=n}if(r(e,"set")){var s=e.set;if(void 0!==s&&!c(s))throw new o("setter must be a function");t["[[Set]]"]=s}if((r(t,"[[Get]]")||r(t,"[[Set]]"))&&(r(t,"[[Value]]")||r(t,"[[Writable]]")))throw new o("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}},"6zzY":function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return s}));var r=n("GRId"),o=n("YLtl");n("Z23Y");const a=Object(r.createContext)({}),i=()=>Object(r.useContext)(a);function c(t){let{value:n}=t;const a=i(),c=Object(r.useRef)(n);!function(e,t){const n=Object(r.useRef)(!1);Object(r.useEffect)(()=>{if(n.current)return e();n.current=!0},t)}(()=>{Object(o.isEqual)(c.current,n)&&c.current!==n&&void 0!==e&&e.env},[n]);return Object(r.useMemo)(()=>Object(o.merge)(Object(o.cloneDeep)(a),n),[a,n])}const s=Object(r.memo)(e=>{let{children:t,value:n}=e;const o=c({value:n});return Object(r.createElement)(a.Provider,{value:o},t)})}).call(this,n("8oxB"))},"71Og":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=["button","color","file","image","reset","submit"];function o(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){var t=e;return-1!==r.indexOf(t.type)}return!1}},"75pU":function(e,t){function n(e,t,n,r){var o,a=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),i=t.get(a);return void 0===i&&(i=e.call(this,r),t.set(a,i)),i}function r(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),a=t.get(o);return void 0===a&&(a=e.apply(this,r),t.set(o,a)),a}function o(e,t,n,r,o){return n.bind(t,e,r,o)}function a(e,t){return o(e,this,1===e.length?n:r,t.cache.create(),t.serializer)}function i(){return JSON.stringify(arguments)}function c(){this.cache=Object.create(null)}c.prototype.has=function(e){return e in this.cache},c.prototype.get=function(e){return this.cache[e]},c.prototype.set=function(e,t){this.cache[e]=t};var s={create:function(){return new c}};e.exports=function(e,t){var n=t&&t.cache?t.cache:s,r=t&&t.serializer?t.serializer:i;return(t&&t.strategy?t.strategy:a)(e,{cache:n,serializer:r})},e.exports.strategies={variadic:function(e,t){return o(e,this,r,t.cache.create(),t.serializer)},monadic:function(e,t){return o(e,this,n,t.cache.create(),t.serializer)}}},"7Cbv":function(e,t,n){"use strict";var r,o=new Uint8Array(16);function a(){if(!r&&!(r="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 r(o)}var i=/^(?:[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 c=function(e){return"string"==typeof e&&i.test(e)},s=[],l=0;l<256;++l)s.push((l+256).toString(16).substr(1));var u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!c(n))throw TypeError("Stringified UUID is invalid");return n};t.a=function(e,t,n){var r=(e=e||{}).random||(e.rng||a)();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 u(r)}},"7Jlx":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));var r=n("YLtl"),o=n("GRId"),a=(n("Z23Y"),n("tQ+x")),i=n("UAm0");function c(t,n){let c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{memo:s=!1}=c;let l=Object(o.forwardRef)(t);s&&(l=Object(o.memo)(l)),void 0===n&&void 0!==e&&e.env;let u=l[a.c]||[n];return Array.isArray(n)&&(u=[...u,...n]),"string"==typeof n&&(u=[...u,n]),l.displayName=n,l[a.c]=Object(r.uniq)(u),l.selector="."+Object(i.a)(n),l}function s(e){if(!e)return[];let t=[];return e[a.c]&&(t=e[a.c]),e.type&&e.type[a.c]&&(t=e.type[a.c]),t}function l(e,t){return!!e&&("string"==typeof t?s(e).includes(t):!!Array.isArray(t)&&t.some(t=>s(e).includes(t)))}}).call(this,n("8oxB"))},"7bKH":function(e,t,n){"use strict";var r=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},o=function(e){return.2126*r(e.r)+.7152*r(e.g)+.0722*r(e.b)};t.a=function(e){e.prototype.luminance=function(){return e=o(this.rgba),void 0===(t=2)&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var n,r,a,i,c,s,l,u=t instanceof e?t:new e(t);return i=this.rgba,c=u.toRgb(),n=(s=o(i))>(l=o(c))?(s+.05)/(l+.05):(l+.05)/(s+.05),void 0===(r=2)&&(r=0),void 0===a&&(a=Math.pow(10,r)),Math.floor(a*n)/a+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(i=void 0===(a=(n=t).size)?"normal":a,"AAA"===(o=void 0===(r=n.level)?"AA":r)&&"normal"===i?7:"AA"===o&&"large"===i?3:4.5);var n,r,o,a,i}}},"82c2":function(e,t,n){"use strict";var r=n("1seS"),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),a=Object.prototype.toString,i=Array.prototype.concat,c=Object.defineProperty,s=c&&function(){var e={};try{for(var t in c(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),l=function(e,t,n,r){var o;(!(t in e)||"function"==typeof(o=r)&&"[object Function]"===a.call(o)&&r())&&(s?c(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},u=function(e,t){var n=arguments.length>2?arguments[2]:{},a=r(t);o&&(a=i.call(a,Object.getOwnPropertySymbols(t)));for(var c=0;c<a.length;c+=1)l(e,a[c],t[a[c]],n[a[c]])};u.supportsDescriptors=!!s,e.exports=u},"8R9v":function(e,t,n){"use strict";var r=n("82c2"),o=n("yLpt");e.exports=function(){var e=o();return r(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e}},"8oxB":function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var s,l=[],u=!1,d=-1;function f(){u&&s&&(u=!1,s.length?l=s.concat(l):d=-1,l.length&&p())}function p(){if(!u){var e=c(f);u=!0;for(var t=l.length;t;){for(s=l,l=[];++d<t;)s&&s[d].run();d=-1,t=l.length}s=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function b(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new b(e,t)),1!==l.length||u||c(p)},b.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},"8sMu":function(e,t,n){"use strict";var r=Math.floor;e.exports=function(e){return r(e)}},"9Do8":function(e,t,n){"use strict";e.exports=n("zt9T")},"9VDH":function(e,t,n){"use strict";var r=n("wx14"),o=n("GRId"),a=n("Tqx9"),i=n("vUUf");t.a=function(e){let{icon:t=null,size:n=24,...c}=e;if("string"==typeof t)return Object(o.createElement)(i.a,Object(r.a)({icon:t},c));if(Object(o.isValidElement)(t)&&i.a===t.type)return Object(o.cloneElement)(t,{...c});if("function"==typeof t)return t.prototype instanceof o.Component?Object(o.createElement)(t,{size:n,...c}):t({size:n,...c});if(t&&("svg"===t.type||t.type===a.SVG)){const e={width:n,height:n,...t.props,...c};return Object(o.createElement)(a.SVG,e)}return Object(o.isValidElement)(t)?Object(o.cloneElement)(t,{size:n,...c}):t}},"9Zbq":function(e,t,n){"use strict";function r(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}n.d(t,"a",(function(){return r}))},"9cOx":function(e,t,n){"use strict";var r=n("j1Hc")("%Array%"),o=!r.isArray&&n("qeuH")("Object.prototype.toString");e.exports=r.isArray||function(e){return"[object Array]"===o(e)}},"9gmn":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("cDcd"),a=(r=o)&&r.__esModule?r:{default:r};var i=function(e){return a.default.createElement("svg",e,a.default.createElement("path",{d:"M32.1 712.6l453.2-452.2c11-11 21-11 32 0l453.2 452.2c4 5 6 10 6 16 0 13-10 23-22 23-7 0-12-2-16-7L501.3 308.5 64.1 744.7c-4 5-9 7-15 7-7 0-12-2-17-7-9-11-9-21 0-32.1z"}))};i.defaultProps={viewBox:"0 0 1000 1000"},t.default=i},"9pTB":function(e,t,n){"use strict";(function(t){var r=n("82c2"),o=n("/sVA"),a="__ global cache key __";"function"==typeof Symbol&&o(Symbol("foo"))&&"function"==typeof Symbol.for&&(a=Symbol.for(a));var i=function(){return!0},c=function(){if(!t[a]){var e={};e[a]={};var n={};n[a]=i,r(t,e,n)}return t[a]},s=c(),l=function(e){return o(e)?Symbol.prototype.valueOf.call(e):typeof e+" | "+String(e)},u=function(e){if(!function(e){return null===e||"object"!=typeof e&&"function"!=typeof e}(e))throw new TypeError("key must not be an object")},d={clear:function(){delete t[a],s=c()},delete:function(e){return u(e),delete s[l(e)],!d.has(e)},get:function(e){return u(e),s[l(e)]},has:function(e){return u(e),l(e)in s},set:function(e,t){u(e);var n=l(e),o={};o[n]=t;var a={};return a[n]=i,r(s,o,a),d.has(e)},setIfMissingThenGet:function(e,t){if(d.has(e))return d.get(e);var n=t();return d.set(e,n),n}};e.exports=d}).call(this,n("yLpj"))},AClM:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("Nym8");function o(e){var t=Object(r.a)(e);if(!t)return!1;if(t===e)return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function a(e,t){var n=void 0===t?{}:t,r=n.preventScroll,a=n.isActive,i=void 0===a?o:a;return i(e)?-1:(e.focus({preventScroll:r}),i(e)?-1:requestAnimationFrame((function(){e.focus({preventScroll:r})})))}},AM7I:function(e,t,n){"use strict";var r=SyntaxError,o=Function,a=TypeError,i=function(e){try{return Function('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var s=function(){throw new a},l=c?function(){try{return s}catch(e){try{return c(arguments,"callee").get}catch(e){return s}}}():s,u=n("UVaH")(),d=Object.getPrototypeOf||function(e){return e.__proto__},f=i("async function* () {}"),p=f?f.prototype:void 0,b=p?p.prototype:void 0,h="undefined"==typeof Uint8Array?void 0:d(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":u?d([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":i("async function () {}"),"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":b?d(b):void 0,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":i("function* () {}"),"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u?d(d([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u?d((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&u?d((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u?d(""[Symbol.iterator]()):void 0,"%Symbol%":u?Symbol:void 0,"%SyntaxError%":r,"%ThrowTypeError%":l,"%TypedArray%":h,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=n("D3zA"),y=n("oNNP"),O=g.call(Function.call,Array.prototype.concat),j=g.call(Function.apply,Array.prototype.splice),w=g.call(Function.call,String.prototype.replace),x=g.call(Function.call,String.prototype.slice),_=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E=/\\(\\)?/g,k=function(e){var t=x(e,0,1),n=x(e,-1);if("%"===t&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new r("invalid intrinsic syntax, expected opening `%`");var o=[];return w(e,_,(function(e,t,n,r){o[o.length]=n?w(r,E,"$1"):t||e})),o},S=function(e,t){var n,o=e;if(y(v,o)&&(o="%"+(n=v[o])[0]+"%"),y(m,o)){var i=m[o];if(void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:i}}throw new r("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');var n=k(e),o=n.length>0?n[0]:"",i=S("%"+o+"%",t),s=i.name,l=i.value,u=!1,d=i.alias;d&&(o=d[0],j(n,O([0,1],d)));for(var f=1,p=!0;f<n.length;f+=1){var b=n[f],h=x(b,0,1),v=x(b,-1);if(('"'===h||"'"===h||"`"===h||'"'===v||"'"===v||"`"===v)&&h!==v)throw new r("property names with quotes must have matching quotes");if("constructor"!==b&&p||(u=!0),y(m,s="%"+(o+="."+b)+"%"))l=m[s];else if(null!=l){if(!(b in l)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&f+1>=n.length){var g=c(l,b);l=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:l[b]}else p=y(l,b),l=l[b];p&&!u&&(m[s]=l)}}return l}},AP2z:function(e,t,n){var r=n("nmnc"),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,c=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[c]=n:delete e[c]),o}},APjL:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("9Zbq");function o(e,t){if("closest"in e)return e.closest(t);do{if(Object(r.a)(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}},AXvK:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("cDcd"),o=n("+ipW").a?r.useLayoutEffect:r.useEffect},Ae65:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,o){var c=o.chooseAvailableDate,s=o.dateIsUnavailable,l=o.dateIsSelected,u={width:n,height:n-1},d=r.has("blocked-minimum-nights")||r.has("blocked-calendar")||r.has("blocked-out-of-range"),f=r.has("selected")||r.has("selected-start")||r.has("selected-end"),p=!f&&(r.has("hovered-span")||r.has("after-hovered-start")),b=r.has("blocked-out-of-range"),h={date:e.format(t)},m=(0,a.default)(c,h);r.has(i.BLOCKED_MODIFIER)?m=(0,a.default)(s,h):f&&(m=(0,a.default)(l,h));return{daySizeStyles:u,useDefaultCursor:d,selected:f,hoveredSpan:p,isOutsideRange:b,ariaLabel:m}};var r,o=n("oOcr"),a=(r=o)&&r.__esModule?r:{default:r},i=n("Fv1B")},AeFk:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));n("cDcd"),n("+1VY"),n("ek6p"),n("pVnL"),n("gRFL"),n("2mql"),n("eVQB");var r=n("Exhd");n("ep+1");function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(r.a)(t)}var a=function(){var e=o.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},Asd8:function(e,t,n){"use strict";var r,o,a=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{r=Object.defineProperty({},"length",{get:function(){throw o}}),o={},i((function(){throw 42}),null,r)}catch(e){e!==o&&(i=null)}else i=null;var c=/^\s*class\b/,s=function(e){try{var t=a.call(e);return c.test(t)}catch(e){return!1}},l=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,d="object"==typeof document&&void 0===document.all&&void 0!==document.all?document.all:{};e.exports=i?function(e){if(e===d)return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{i(e,null,r)}catch(e){if(e!==o)return!1}return!s(e)}:function(e){if(e===d)return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(u)return function(e){try{return!s(e)&&(a.call(e),!0)}catch(e){return!1}}(e);if(s(e))return!1;var t=l.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},"B6Q+":function(e,t,n){"use strict";var r=n("qGip");e.exports=function(){return r()&&!!Symbol.toStringTag}},BZp5:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s}))},BeK9:function(e,t,n){"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},Bl8U:function(e,t,n){"use strict";var r=n("j1Hc")("%Array%"),o=!r.isArray&&n("qeuH")("Object.prototype.toString");e.exports=r.isArray||function(e){return"[object Array]"===o(e)}},Bpkj:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));t.a=a},C6yU:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));n("Z23Y");var r=n("6zzY"),o=n("Ohaz"),a=n("UAm0"),i=n("h9+V");function c(t,n){const c=Object(r.b)();void 0===n&&void 0!==e&&e.env;const s=(null==c?void 0:c[n])||{},l={...Object(o.a)(),...Object(o.b)(n)},{_overrides:u,...d}=s,f=Object.entries(d).length?Object.assign({},d,t):t,p=Object(i.a)()(Object(a.a)(n),t.className),b="function"==typeof f.renderChildren?f.renderChildren(f):f.children;for(const e in f)l[e]=f[e];for(const e in u)l[e]=u[e];return l.children=b,l.className=p,l}}).call(this,n("8oxB"))},"Cw+6":function(e,t,n){"use strict";var r=n("GRId"),o=n("YLtl");t.a=function(e){let t,n,{shortcut:a,className:i}=e;return a?(Object(o.isString)(a)&&(t=a),Object(o.isObject)(a)&&(t=a.display,n=a.ariaLabel),Object(r.createElement)("span",{className:i,"aria-label":n},t)):null}},Cx2f:function(e,t,n){"use strict";var r=n("WZeS");e.exports=function(e){return arguments.length>1?r(e,arguments[1]):r(e)}},D3zA:function(e,t,n){"use strict";var r=n("aI7X");e.exports=Function.prototype.bind||r},DHWS:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("cDcd"),a=(r=o)&&r.__esModule?r:{default:r};var i=function(e){return a.default.createElement("svg",e,a.default.createElement("path",{d:"M967.5 288.5L514.3 740.7c-11 11-21 11-32 0L29.1 288.5c-4-5-6-11-6-16 0-13 10-23 23-23 6 0 11 2 15 7l437.2 436.2 437.2-436.2c4-5 9-7 16-7 6 0 11 2 16 7 9 10.9 9 21 0 32z"}))};i.defaultProps={viewBox:"0 0 1000 1000"},t.default=i},DZdY:function(e,t,n){"use strict";var r=n("wx14"),o=n("cDcd"),a=n("SVgp"),i=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,c=Object(a.a)((function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),s=n("ek6p"),l=n("eVQB"),u=n("Exhd"),d=c,f=function(e){return"theme"!==e},p=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?d:f},b=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},h=function(){return null};t.a=function e(t,n){var a,i,c=t.__emotion_real===t,d=c&&t.__emotion_base||t;void 0!==n&&(a=n.label,i=n.target);var f=b(t,n,c),m=f||p(d),v=!m("as");return function(){var g=arguments,y=c&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==a&&y.push("label:"+a+";"),null==g[0]||void 0===g[0].raw)y.push.apply(y,g);else{0,y.push(g[0][0]);for(var O=g.length,j=1;j<O;j++)y.push(g[j],g[0][j])}var w=Object(s.g)((function(e,t,n){var r=v&&e.as||d,a="",c=[],b=e;if(null==e.theme){for(var g in b={},e)b[g]=e[g];b.theme=Object(o.useContext)(s.c)}"string"==typeof e.className?a=Object(l.a)(t.registered,c,e.className):null!=e.className&&(a=e.className+" ");var O=Object(u.a)(y.concat(c),t.registered,b);Object(l.b)(t,O,"string"==typeof r);a+=t.key+"-"+O.name,void 0!==i&&(a+=" "+i);var j=v&&void 0===f?p(r):m,w={};for(var x in e)v&&"as"===x||j(x)&&(w[x]=e[x]);w.className=a,w.ref=n;var _=Object(o.createElement)(r,w),E=Object(o.createElement)(h,null);return Object(o.createElement)(o.Fragment,null,E,_)}));return w.displayName=void 0!==a?a:"Styled("+("string"==typeof d?d:d.displayName||d.name||"Component")+")",w.defaultProps=t.defaultProps,w.__emotion_real=w,w.__emotion_base=d,w.__emotion_styles=y,w.__emotion_forwardProp=f,Object.defineProperty(w,"toString",{value:function(){return"."+i}}),w.withComponent=function(t,o){return e(t,Object(r.a)({},n,o,{shouldForwardProp:b(w,o,!0)})).apply(void 0,y)},w}}},DciD:function(e,t,n){"use strict";function r(){return null}function o(){return r}r.isRequired=r,e.exports={and:o,between:o,booleanSome:o,childrenHavePropXorChildren:o,childrenOf:o,childrenOfType:o,childrenSequenceOf:o,componentWithName:o,disallowedIf:o,elementType:o,empty:o,explicitNull:o,forbidExtraProps:Object,integer:o,keysOf:o,mutuallyExclusiveProps:o,mutuallyExclusiveTrueProps:o,nChildren:o,nonNegativeInteger:r,nonNegativeNumber:o,numericString:o,object:o,or:o,predicate:o,range:o,ref:o,requiredBy:o,restrictedProp:o,sequenceOf:o,shape:o,stringEndsWith:o,stringStartsWith:o,uniqueArray:o,uniqueArrayOf:o,valuesOf:o,withShape:o}},DmXP:function(e,t,n){"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"object"==typeof e&&null!==e&&(a?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},DzJC:function(e,t,n){var r=n("sEfC"),o=n("GoyQ");e.exports=function(e,t,n){var a=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(a="leading"in n?!!n.leading:a,i="trailing"in n?!!n.trailing:i),r(e,t,{leading:a,maxWait:t,trailing:i})}},ExA7:function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},Exhd:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},o={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},a=n("SVgp"),i=/[A-Z]|^ms/g,c=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!=typeof e},u=Object(a.a)((function(e){return s(e)?e:e.replace(i,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(c,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===o[e]||s(e)||"number"!=typeof t||0===t?t:t+"px"};function f(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)p={name:r.name,styles:r.styles,next:p},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=f(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":l(i)&&(r+=u(a)+":"+d(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var c=f(e,t,i);switch(a){case"animation":case"animationName":r+=u(a)+":"+c+";";break;default:r+=a+"{"+c+"}"}}else for(var s=0;s<i.length;s++)l(i[s])&&(r+=u(a)+":"+d(a,i[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=p,a=n(e);return p=o,f(e,t,a)}break;case"string":}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var p,b=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var h=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,a="";p=void 0;var i=e[0];null==i||void 0===i.raw?(o=!1,a+=f(n,t,i)):a+=i[0];for(var c=1;c<e.length;c++)a+=f(n,t,e[c]),o&&(a+=i[c]);b.lastIndex=0;for(var s,l="";null!==(s=b.exec(a));)l+="-"+s[1];return{name:r(a)+l,styles:a,next:p}}},F7ZS:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.default.localeData().firstDayOfWeek();if(!a.default.isMoment(e)||!e.isValid())throw new TypeError("`month` must be a valid moment object");if(-1===i.WEEKDAYS.indexOf(n))throw new TypeError("`firstDayOfWeek` must be an integer between 0 and 6");for(var r=e.clone().startOf("month").hour(12),o=e.clone().endOf("month").hour(12),c=(r.day()+7-n)%7,s=(n+6-o.day())%7,l=r.clone().subtract(c,"day"),u=o.clone().add(s,"day"),d=u.diff(l,"days")+1,f=l.clone(),p=[],b=0;b<d;b+=1){b%7==0&&p.push([]);var h=null;(b>=c&&b<d-s||t)&&(h=f.clone()),p[p.length-1].push(h),f.add(1,"day")}return p};var r,o=n("wy2R"),a=(r=o)&&r.__esModule?r:{default:r},i=n("Fv1B")},FpZJ:function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},FqII:function(e,t){e.exports=window.wp.date},FufO:function(e,t,n){"use strict";var r=n("1seS"),o=function(e){return null!=e},a=n("FpZJ")(),i=n("VF6F"),c=Object,s=i("Array.prototype.push"),l=i("Object.prototype.propertyIsEnumerable"),u=a?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(!o(e))throw new TypeError("target must be an object");var n,i,d,f,p,b,h,m=c(e);for(n=1;n<arguments.length;++n){i=c(arguments[n]),f=r(i);var v=a&&(Object.getOwnPropertySymbols||u);if(v)for(p=v(i),d=0;d<p.length;++d)h=p[d],l(i,h)&&s(f,h);for(d=0;d<f.length;++d)b=i[h=f[d]],l(i,h)&&(m[h]=b)}return m}},Fv1B:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.DISPLAY_FORMAT="L",t.ISO_FORMAT="YYYY-MM-DD",t.ISO_MONTH_FORMAT="YYYY-MM",t.START_DATE="startDate",t.END_DATE="endDate",t.HORIZONTAL_ORIENTATION="horizontal",t.VERTICAL_ORIENTATION="vertical",t.VERTICAL_SCROLLABLE="verticalScrollable",t.ICON_BEFORE_POSITION="before",t.ICON_AFTER_POSITION="after",t.INFO_POSITION_TOP="top",t.INFO_POSITION_BOTTOM="bottom",t.INFO_POSITION_BEFORE="before",t.INFO_POSITION_AFTER="after",t.ANCHOR_LEFT="left",t.ANCHOR_RIGHT="right",t.OPEN_DOWN="down",t.OPEN_UP="up",t.DAY_SIZE=39,t.BLOCKED_MODIFIER="blocked",t.WEEKDAYS=[0,1,2,3,4,5,6],t.FANG_WIDTH_PX=20,t.FANG_HEIGHT_PX=10,t.DEFAULT_VERTICAL_SPACING=22,t.MODIFIER_KEY_NAMES=new Set(["Shift","Control","Alt","Meta"])},G3V0:function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var r=n("BZp5"),o=n("hE48"),a=n("qdes"),i=n("cDcd"),c=n("aU41"),s=n("71Og"),l=(n("KA1K"),n("eNtd")),u=n("AXvK"),d=n("PcHe"),f=n("Vq1w"),p=n("reMF"),b=n("kqkJ"),h=n("zGFp"),m=Object(p.a)("Mac")&&!Object(p.a)("Chrome")&&(Object(p.a)("Safari")||Object(p.a)("Firefox"));function v(e){!Object(d.a)(e)&&Object(b.c)(e)&&e.focus()}function g(e,t,n,r){return e?t&&!n?-1:void 0:t?r:r||0}function y(e,t){return Object(i.useCallback)((function(n){var r;null===(r=e.current)||void 0===r||r.call(e,n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}),[e,t])}var O=Object(a.a)({name:"Tabbable",compose:h.a,keys:["disabled","focusable"],useOptions:function(e,t){var n=t.disabled;return Object(r.b)({disabled:n},e)},useProps:function(e,t){var n=t.ref,o=t.tabIndex,a=t.onClickCapture,d=t.onMouseDownCapture,p=t.onMouseDown,b=t.onKeyPressCapture,h=t.style,O=Object(r.a)(t,["ref","tabIndex","onClickCapture","onMouseDownCapture","onMouseDown","onKeyPressCapture","style"]),j=Object(i.useRef)(null),w=Object(l.a)(a),x=Object(l.a)(d),_=Object(l.a)(p),E=Object(l.a)(b),k=!!e.disabled&&!e.focusable,S=Object(i.useState)(!0),C=S[0],P=S[1],T=Object(i.useState)(!0),M=T[0],D=T[1],I=e.disabled?Object(r.b)({pointerEvents:"none"},h):h;Object(u.a)((function(){var e=j.current;e&&(["BUTTON","INPUT","SELECT","TEXTAREA","A"].includes(e.tagName)||P(!1),function(e){return["BUTTON","INPUT","SELECT","TEXTAREA"].includes(e.tagName)}(e)||D(!1))}),[]);var R=y(w,e.disabled),A=y(x,e.disabled),N=y(E,e.disabled),L=Object(i.useCallback)((function(e){var t;null===(t=_.current)||void 0===t||t.call(_,e);var n=e.currentTarget;if(!e.defaultPrevented&&m&&!Object(f.a)(e)&&Object(s.a)(n)){var r=requestAnimationFrame((function(){n.removeEventListener("mouseup",o,!0),v(n)})),o=function(){cancelAnimationFrame(r),v(n)};n.addEventListener("mouseup",o,{once:!0,capture:!0})}}),[]);return Object(r.b)({ref:Object(c.a)(j,n),style:I,tabIndex:g(k,C,M,o),disabled:!(!k||!M)||void 0,"aria-disabled":!!e.disabled||void 0,onClickCapture:R,onMouseDownCapture:A,onMouseDown:L,onKeyPressCapture:N},O)}});Object(o.a)({as:"div",useHook:O})},GET3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureCustomizableCalendarDay=t.selectedStyles=t.lastInRangeStyles=t.selectedSpanStyles=t.hoveredSpanStyles=t.blockedOutOfRangeStyles=t.blockedCalendarStyles=t.blockedMinNightsStyles=t.highlightedCalendarStyles=t.outsideStyles=t.defaultStyles=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=v(n("Koq/")),i=v(n("cDcd")),c=v(n("17x9")),s=v(n("YZDV")),l=v(n("XGBb")),u=n("Hsqg"),d=n("TG4+"),f=v(n("wy2R")),p=n("vV+G"),b=v(n("yc2e")),h=v(n("Ae65")),m=n("Fv1B");function v(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var O=v(n("xOhs")).default.reactDates.color;function j(e,t){if(!e)return null;var n=e.hover;return t&&n?n:e}var w=c.default.shape({background:c.default.string,border:(0,u.or)([c.default.string,c.default.number]),color:c.default.string,hover:c.default.shape({background:c.default.string,border:(0,u.or)([c.default.string,c.default.number]),color:c.default.string})}),x=(0,u.forbidExtraProps)((0,a.default)({},d.withStylesPropTypes,{day:l.default.momentObj,daySize:u.nonNegativeInteger,isOutsideDay:c.default.bool,modifiers:c.default.instanceOf(Set),isFocused:c.default.bool,tabIndex:c.default.oneOf([0,-1]),onDayClick:c.default.func,onDayMouseEnter:c.default.func,onDayMouseLeave:c.default.func,renderDayContents:c.default.func,ariaLabelFormat:c.default.string,defaultStyles:w,outsideStyles:w,todayStyles:w,firstDayOfWeekStyles:w,lastDayOfWeekStyles:w,highlightedCalendarStyles:w,blockedMinNightsStyles:w,blockedCalendarStyles:w,blockedOutOfRangeStyles:w,hoveredSpanStyles:w,selectedSpanStyles:w,lastInRangeStyles:w,selectedStyles:w,selectedStartStyles:w,selectedEndStyles:w,afterHoveredStartStyles:w,phrases:c.default.shape((0,b.default)(p.CalendarDayPhrases))})),_=t.defaultStyles={border:"1px solid "+String(O.core.borderLight),color:O.text,background:O.background,hover:{background:O.core.borderLight,border:"1px double "+String(O.core.borderLight),color:"inherit"}},E=t.outsideStyles={background:O.outside.backgroundColor,border:0,color:O.outside.color},k=t.highlightedCalendarStyles={background:O.highlighted.backgroundColor,color:O.highlighted.color,hover:{background:O.highlighted.backgroundColor_hover,color:O.highlighted.color_active}},S=t.blockedMinNightsStyles={background:O.minimumNights.backgroundColor,border:"1px solid "+String(O.minimumNights.borderColor),color:O.minimumNights.color,hover:{background:O.minimumNights.backgroundColor_hover,color:O.minimumNights.color_active}},C=t.blockedCalendarStyles={background:O.blocked_calendar.backgroundColor,border:"1px solid "+String(O.blocked_calendar.borderColor),color:O.blocked_calendar.color,hover:{background:O.blocked_calendar.backgroundColor_hover,border:"1px solid "+String(O.blocked_calendar.borderColor),color:O.blocked_calendar.color_active}},P=t.blockedOutOfRangeStyles={background:O.blocked_out_of_range.backgroundColor,border:"1px solid "+String(O.blocked_out_of_range.borderColor),color:O.blocked_out_of_range.color,hover:{background:O.blocked_out_of_range.backgroundColor_hover,border:"1px solid "+String(O.blocked_out_of_range.borderColor),color:O.blocked_out_of_range.color_active}},T=t.hoveredSpanStyles={background:O.hoveredSpan.backgroundColor,border:"1px solid "+String(O.hoveredSpan.borderColor),color:O.hoveredSpan.color,hover:{background:O.hoveredSpan.backgroundColor_hover,border:"1px solid "+String(O.hoveredSpan.borderColor),color:O.hoveredSpan.color_active}},M=t.selectedSpanStyles={background:O.selectedSpan.backgroundColor,border:"1px solid "+String(O.selectedSpan.borderColor),color:O.selectedSpan.color,hover:{background:O.selectedSpan.backgroundColor_hover,border:"1px solid "+String(O.selectedSpan.borderColor),color:O.selectedSpan.color_active}},D=t.lastInRangeStyles={borderRight:O.core.primary},I=t.selectedStyles={background:O.selected.backgroundColor,border:"1px solid "+String(O.selected.borderColor),color:O.selected.color,hover:{background:O.selected.backgroundColor_hover,border:"1px solid "+String(O.selected.borderColor),color:O.selected.color_active}},R={day:(0,f.default)(),daySize:m.DAY_SIZE,isOutsideDay:!1,modifiers:new Set,isFocused:!1,tabIndex:-1,onDayClick:function(){},onDayMouseEnter:function(){},onDayMouseLeave:function(){},renderDayContents:null,ariaLabelFormat:"dddd, LL",defaultStyles:_,outsideStyles:E,todayStyles:{},highlightedCalendarStyles:k,blockedMinNightsStyles:S,blockedCalendarStyles:C,blockedOutOfRangeStyles:P,hoveredSpanStyles:T,selectedSpanStyles:M,lastInRangeStyles:D,selectedStyles:I,selectedStartStyles:{},selectedEndStyles:{},afterHoveredStartStyles:{},firstDayOfWeekStyles:{},lastDayOfWeekStyles:{},phrases:p.CalendarDayPhrases},A=function(e){function t(){var e;g(this,t);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var a=y(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r)));return a.state={isHovered:!1},a.setButtonRef=a.setButtonRef.bind(a),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"shouldComponentUpdate",value:function(e,t){return(0,s.default)(this,e,t)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isFocused,r=t.tabIndex;0===r&&(n||r!==e.tabIndex)&&this.buttonRef.focus()}},{key:"onDayClick",value:function(e,t){(0,this.props.onDayClick)(e,t)}},{key:"onDayMouseEnter",value:function(e,t){var n=this.props.onDayMouseEnter;this.setState({isHovered:!0}),n(e,t)}},{key:"onDayMouseLeave",value:function(e,t){var n=this.props.onDayMouseLeave;this.setState({isHovered:!1}),n(e,t)}},{key:"onKeyDown",value:function(e,t){var n=this.props.onDayClick,r=t.key;"Enter"!==r&&" "!==r||n(e,t)}},{key:"setButtonRef",value:function(e){this.buttonRef=e}},{key:"render",value:function(){var e=this,t=this.props,n=t.day,o=t.ariaLabelFormat,a=t.daySize,c=t.isOutsideDay,s=t.modifiers,l=t.tabIndex,u=t.renderDayContents,f=t.styles,p=t.phrases,b=t.defaultStyles,m=t.outsideStyles,v=t.todayStyles,g=t.firstDayOfWeekStyles,y=t.lastDayOfWeekStyles,O=t.highlightedCalendarStyles,w=t.blockedMinNightsStyles,x=t.blockedCalendarStyles,_=t.blockedOutOfRangeStyles,E=t.hoveredSpanStyles,k=t.selectedSpanStyles,S=t.lastInRangeStyles,C=t.selectedStyles,P=t.selectedStartStyles,T=t.selectedEndStyles,M=t.afterHoveredStartStyles,D=this.state.isHovered;if(!n)return i.default.createElement("td",null);var I=(0,h.default)(n,o,a,s,p),R=I.daySizeStyles,A=I.useDefaultCursor,N=I.selected,L=I.hoveredSpan,F=I.isOutsideRange,z=I.ariaLabel;return i.default.createElement("td",r({},(0,d.css)(f.CalendarDay,A&&f.CalendarDay__defaultCursor,R,j(b,D),c&&j(m,D),s.has("today")&&j(v,D),s.has("first-day-of-week")&&j(g,D),s.has("last-day-of-week")&&j(y,D),s.has("highlighted-calendar")&&j(O,D),s.has("blocked-minimum-nights")&&j(w,D),s.has("blocked-calendar")&&j(x,D),L&&j(E,D),s.has("after-hovered-start")&&j(M,D),s.has("selected-span")&&j(k,D),s.has("last-in-range")&&j(S,D),N&&j(C,D),s.has("selected-start")&&j(P,D),s.has("selected-end")&&j(T,D),F&&j(_,D)),{role:"button",ref:this.setButtonRef,"aria-label":z,onMouseEnter:function(t){e.onDayMouseEnter(n,t)},onMouseLeave:function(t){e.onDayMouseLeave(n,t)},onMouseUp:function(e){e.currentTarget.blur()},onClick:function(t){e.onDayClick(n,t)},onKeyDown:function(t){e.onKeyDown(n,t)},tabIndex:l}),u?u(n,s):n.format("D"))}}]),t}(i.default.Component);A.propTypes=x,A.defaultProps=R,t.PureCustomizableCalendarDay=A,t.default=(0,d.withStyles)((function(e){return{CalendarDay:{boxSizing:"border-box",cursor:"pointer",fontSize:e.reactDates.font.size,textAlign:"center",":active":{outline:0}},CalendarDay__defaultCursor:{cursor:"default"}}}))(A)},GG7f:function(e,t,n){n("H24B")},GK4x:function(e,t,n){"use strict";var r=n("GRId");const o=Object(r.createContext)();t.a=o},GRId:function(e,t){e.exports=window.wp.element},Gn0q:function(e,t,n){"use strict";var r=n("82c2"),o=n("5yQQ");e.exports=function(){var e=o();return"undefined"!=typeof document&&(r(document,{contains:e},{contains:function(){return document.contains!==e}}),"undefined"!=typeof Element&&r(Element.prototype,{contains:e},{contains:function(){return Element.prototype.contains!==e}})),e}},GoyQ:function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},H24B:function(e,t,n){"use strict";var r,o=n("TUyu");(0,((r=o)&&r.__esModule?r:{default:r}).default)()},Hsqg:function(e,t,n){e.exports=n("DciD")},HwJD:function(e,t,n){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},HyUg:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n("eJkf");e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},"I/A+":function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}))},IVEb:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("cDcd"),o=n("eUCI"),a=n("RDTF");var i=function(e,t,n){void 0===n&&(n=t.children);var i=Object(r.useContext)(o.a);if(i.useCreateElement)return i.useCreateElement(e,t,n);if("string"==typeof e&&function(e){return"function"==typeof e}(n)){t.children;return n(Object(a.b)(t,["children"]))}return Object(r.createElement)(e,t,n)}},IdCN:function(e,t,n){"use strict";var r,o,a=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{r=Object.defineProperty({},"length",{get:function(){throw o}}),o={},i((function(){throw 42}),null,r)}catch(e){e!==o&&(i=null)}else i=null;var c=/^\s*class\b/,s=function(e){try{var t=a.call(e);return c.test(t)}catch(e){return!1}},l=Object.prototype.toString,u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=i?function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{i(e,null,r)}catch(e){if(e!==o)return!1}return!s(e)}:function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(u)return function(e){try{return!s(e)&&(a.call(e),!0)}catch(e){return!1}}(e);if(s(e))return!1;var t=l.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},IgE5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,a){var i=t.clone().startOf("month");a&&(i=i.startOf("week"));if((0,r.default)(e,i))return!1;var c=t.clone().add(n-1,"months").endOf("month");a&&(c=c.endOf("week"));return!(0,o.default)(e,c)};var r=a(n("h6xH")),o=a(n("Nho6"));function a(e){return e&&e.__esModule?e:{default:e}}},J2ba:function(e,t,n){"use strict";var r=n("S8ty"),o=n("8sMu"),a=n("PoQ0"),i=n("HwJD"),c=n("ald4");e.exports=function(e){if("Number"!==a(e)||i(e)||!c(e))return!1;var t=r(e);return o(t)===t}},J7JS:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("17x9"),a=(r=o)&&r.__esModule?r:{default:r},i=n("Hsqg");function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.default=(0,i.and)([a.default.instanceOf(Set),function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=e[t],l=void 0;return[].concat(s(i)).some((function(e,n){var o,i=String(t)+": index "+String(n);return null!=(l=(o=a.default.string).isRequired.apply(o,[c({},i,e),i].concat(r)))})),null==l?null:l}],"Modifiers (Set of Strings)")},JLmN:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n("BZp5"),o=n("hE48"),a=n("qdes"),i=n("cDcd"),c=n("71Og"),s=(n("KA1K"),n("eNtd")),l=n("k2cL"),u=n("G3V0");var d=Object(a.a)({name:"Clickable",compose:u.a,keys:["unstable_clickOnEnter","unstable_clickOnSpace"],useOptions:function(e){var t=e.unstable_clickOnEnter,n=void 0===t||t,o=e.unstable_clickOnSpace,a=void 0===o||o,i=Object(r.a)(e,["unstable_clickOnEnter","unstable_clickOnSpace"]);return Object(r.b)({unstable_clickOnEnter:n,unstable_clickOnSpace:a},i)},useProps:function(e,t){var n=t.onKeyDown,o=t.onKeyUp,a=Object(r.a)(t,["onKeyDown","onKeyUp"]),u=Object(i.useState)(!1),d=u[0],f=u[1],p=Object(s.a)(n),b=Object(s.a)(o),h=Object(i.useCallback)((function(t){var n;if(null===(n=p.current)||void 0===n||n.call(p,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey&&Object(l.a)(t)){var r=e.unstable_clickOnEnter&&"Enter"===t.key,o=e.unstable_clickOnSpace&&" "===t.key;if(r||o){if(function(e){var t=e.currentTarget;return!!e.isTrusted&&(Object(c.a)(t)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"A"===t.tagName||"SELECT"===t.tagName)}(t))return;t.preventDefault(),r?t.currentTarget.click():o&&f(!0)}}}),[e.disabled,e.unstable_clickOnEnter,e.unstable_clickOnSpace]),m=Object(i.useCallback)((function(t){var n;if(null===(n=b.current)||void 0===n||n.call(b,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey){var r=e.unstable_clickOnSpace&&" "===t.key;d&&r&&(f(!1),t.currentTarget.click())}}),[e.disabled,e.unstable_clickOnSpace,d]);return Object(r.b)({"data-active":d||void 0,onKeyDown:h,onKeyUp:m},a)}});Object(o.a)({as:"button",memo:!0,useHook:d})},JYkG:function(e,t,n){"use strict";(function(e){var r=n("GRId");n("Z23Y");const o=Object(r.createContext)({slots:{},fills:{},registerSlot:()=>{void 0!==e&&e.env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}});t.a=o}).call(this,n("8oxB"))},Jt44:function(e,t,n){"use strict";e.exports=n("j1Hc")},Jx1U:function(e,t){var n={};n.parse=function(){var e=/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,t=/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,n=/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,r=/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,o=/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,a=/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,i=/^(left|center|right|top|bottom)/i,c=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,s=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,l=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,u=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,d=/^\(/,f=/^\)/,p=/^,/,b=/^\#([0-9a-fA-F]+)/,h=/^([a-zA-Z]+)/,m=/^rgb/i,v=/^rgba/i,g=/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/,y="";function O(e){var t=new Error(y+": "+e);throw t.source=y,t}function j(){var e=T(w);return y.length>0&&O("Invalid input not EOF"),e}function w(){return x("linear-gradient",e,E)||x("repeating-linear-gradient",t,E)||x("radial-gradient",n,k)||x("repeating-radial-gradient",r,k)}function x(e,t,n){return _(t,(function(t){var r=n();return r&&(N(p)||O("Missing comma before color stops")),{type:e,orientation:r,colorStops:T(M)}}))}function _(e,t){var n=N(e);if(n)return N(d)||O("Missing ("),result=t(n),N(f)||O("Missing )"),result}function E(){return A("directional",o,1)||A("angular",u,1)}function k(){var e,t,n=S();return n&&((e=[]).push(n),t=y,N(p)&&((n=S())?e.push(n):y=t)),e}function S(){var e=function(){var e=A("shape",/^(circle)/i,0);e&&(e.style=R()||C());return e}()||function(){var e=A("shape",/^(ellipse)/i,0);e&&(e.style=I()||C());return e}();if(e)e.at=function(){if(A("position",/^at/,0)){var e=P();return e||O("Missing positioning value"),e}}();else{var t=P();t&&(e={type:"default-radial",at:t})}return e}function C(){return A("extent-keyword",a,1)}function P(){var e={x:I(),y:I()};if(e.x||e.y)return{type:"position",value:e}}function T(e){var t=e(),n=[];if(t)for(n.push(t);N(p);)(t=e())?n.push(t):O("One extra comma");return n}function M(){var e=A("hex",b,1)||_(v,(function(){return{type:"rgba",value:T(D)}}))||_(m,(function(){return{type:"rgb",value:T(D)}}))||A("literal",h,0);return e||O("Expected color definition"),e.length=I(),e}function D(){return N(g)[1]}function I(){return A("%",s,1)||A("position-keyword",i,1)||R()}function R(){return A("px",c,1)||A("em",l,1)}function A(e,t,n){var r=N(t);if(r)return{type:e,value:r[n]}}function N(e){var t,n;return(n=/^[\n\r\t\s]+/.exec(y))&&L(n[0].length),(t=e.exec(y))&&L(t[0].length),t}function L(e){y=y.substr(e)}return function(e){return y=e.toString(),j()}}(),t.parse=(n||{}).parse},"K+tz":function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"}));t.a=a},K9lf:function(e,t){e.exports=window.wp.compose},KA1K:function(e,t,n){"use strict";n("WnOg"),n("cDcd"),n("Ptb8")},KCH1:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("cDcd");function o(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)}var a=Object(r.createContext)(o)},KfNM:function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},"Koq/":function(e,t,n){"use strict";var r=n("82c2"),o=n("PrET"),a=n("FufO"),i=n("yLpt"),c=n("8R9v"),s=o.apply(i()),l=function(e,t){return s(Object,arguments)};r(l,{getPolyfill:i,implementation:a,shim:c}),e.exports=l},KtDd:function(e,t,n){"use strict";var r=n("j1Hc"),o=r("%Symbol.species%",!0),a=r("%TypeError%"),i=n("6Ehn"),c=n("aBsX"),s=n("Bl8U"),l=n("TFEf"),u=n("J2ba"),d=n("PoQ0");e.exports=function(e,t){if(!u(t)||t<0)throw new a("Assertion failed: length must be an integer >= 0");if(!s(e))return i(t);var n=c(e,"constructor");if(o&&"Object"===d(n)&&null===(n=c(n,o))&&(n=void 0),void 0===n)return i(t);if(!l(n))throw new a("C must be a constructor");return new n(t)}},Kz5y:function(e,t,n){var r=n("WFqU"),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},L8Kx:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return c}));var r=n("TSYQ"),o=n.n(r);function a(e){return"appear"===e?"top":"left"}function i(e){if("loading"===e.type)return o()("components-animate__loading");const{type:t,origin:n=a(t)}=e;if("appear"===t){const[e,t="center"]=n.split(" ");return o()("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?o()("components-animate__slide-in","is-from-"+n):void 0}function c(e){let{type:t,options:n={},children:r}=e;return r({className:i({type:t,...n})})}},LTAC:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!("undefined"==typeof window||!("ontouchstart"in window||window.DocumentTouch&&"undefined"!=typeof document&&document instanceof window.DocumentTouch))||!("undefined"==typeof navigator||!navigator.maxTouchPoints&&!navigator.msMaxTouchPoints)},e.exports=t.default},Lxf3:function(e,t,n){"use strict";var r=Object.prototype.toString,o=n("Teho"),a=n("IdCN"),i=function(e){var t;if((t=arguments.length>1?arguments[1]:"[object Date]"===r.call(e)?String:Number)===String||t===Number){var n,i,c=t===String?["toString","valueOf"]:["valueOf","toString"];for(i=0;i<c.length;++i)if(a(e[c[i]])&&(n=e[c[i]](),o(n)))return n;throw new TypeError("No default value")}throw new TypeError("invalid [[DefaultValue]] hint supplied")};e.exports=function(e){return o(e)?e:arguments.length>1?i(e,arguments[1]):i(e)}},Mih7:function(e,t,n){"use strict";function r(e){e.userFocus=!0,e.focus(),e.userFocus=!1}function o(e){return!!e.userFocus}function a(e,t){e.userFocus=t}n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return r}))},Mp0b:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"}));t.a=a},N3k4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureCalendarDay=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=g(n("Koq/")),i=g(n("cDcd")),c=g(n("17x9")),s=g(n("YZDV")),l=g(n("XGBb")),u=n("Hsqg"),d=n("TG4+"),f=g(n("wy2R")),p=n("vV+G"),b=g(n("yc2e")),h=g(n("Ae65")),m=g(n("J7JS")),v=n("Fv1B");function g(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var j=(0,u.forbidExtraProps)((0,a.default)({},d.withStylesPropTypes,{day:l.default.momentObj,daySize:u.nonNegativeInteger,isOutsideDay:c.default.bool,modifiers:m.default,isFocused:c.default.bool,tabIndex:c.default.oneOf([0,-1]),onDayClick:c.default.func,onDayMouseEnter:c.default.func,onDayMouseLeave:c.default.func,renderDayContents:c.default.func,ariaLabelFormat:c.default.string,phrases:c.default.shape((0,b.default)(p.CalendarDayPhrases))})),w={day:(0,f.default)(),daySize:v.DAY_SIZE,isOutsideDay:!1,modifiers:new Set,isFocused:!1,tabIndex:-1,onDayClick:function(){},onDayMouseEnter:function(){},onDayMouseLeave:function(){},renderDayContents:null,ariaLabelFormat:"dddd, LL",phrases:p.CalendarDayPhrases},x=function(e){function t(){var e;y(this,t);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var a=O(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r)));return a.setButtonRef=a.setButtonRef.bind(a),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"shouldComponentUpdate",value:function(e,t){return(0,s.default)(this,e,t)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isFocused,r=t.tabIndex;0===r&&(n||r!==e.tabIndex)&&this.buttonRef.focus()}},{key:"onDayClick",value:function(e,t){(0,this.props.onDayClick)(e,t)}},{key:"onDayMouseEnter",value:function(e,t){(0,this.props.onDayMouseEnter)(e,t)}},{key:"onDayMouseLeave",value:function(e,t){(0,this.props.onDayMouseLeave)(e,t)}},{key:"onKeyDown",value:function(e,t){var n=this.props.onDayClick,r=t.key;"Enter"!==r&&" "!==r||n(e,t)}},{key:"setButtonRef",value:function(e){this.buttonRef=e}},{key:"render",value:function(){var e=this,t=this.props,n=t.day,o=t.ariaLabelFormat,a=t.daySize,c=t.isOutsideDay,s=t.modifiers,l=t.renderDayContents,u=t.tabIndex,f=t.styles,p=t.phrases;if(!n)return i.default.createElement("td",null);var b=(0,h.default)(n,o,a,s,p),m=b.daySizeStyles,v=b.useDefaultCursor,g=b.selected,y=b.hoveredSpan,O=b.isOutsideRange,j=b.ariaLabel;return i.default.createElement("td",r({},(0,d.css)(f.CalendarDay,v&&f.CalendarDay__defaultCursor,f.CalendarDay__default,c&&f.CalendarDay__outside,s.has("today")&&f.CalendarDay__today,s.has("first-day-of-week")&&f.CalendarDay__firstDayOfWeek,s.has("last-day-of-week")&&f.CalendarDay__lastDayOfWeek,s.has("hovered-offset")&&f.CalendarDay__hovered_offset,s.has("highlighted-calendar")&&f.CalendarDay__highlighted_calendar,s.has("blocked-minimum-nights")&&f.CalendarDay__blocked_minimum_nights,s.has("blocked-calendar")&&f.CalendarDay__blocked_calendar,y&&f.CalendarDay__hovered_span,s.has("selected-span")&&f.CalendarDay__selected_span,s.has("last-in-range")&&f.CalendarDay__last_in_range,s.has("selected-start")&&f.CalendarDay__selected_start,s.has("selected-end")&&f.CalendarDay__selected_end,g&&f.CalendarDay__selected,O&&f.CalendarDay__blocked_out_of_range,m),{role:"button",ref:this.setButtonRef,"aria-label":j,onMouseEnter:function(t){e.onDayMouseEnter(n,t)},onMouseLeave:function(t){e.onDayMouseLeave(n,t)},onMouseUp:function(e){e.currentTarget.blur()},onClick:function(t){e.onDayClick(n,t)},onKeyDown:function(t){e.onKeyDown(n,t)},tabIndex:u}),l?l(n,s):n.format("D"))}}]),t}(i.default.Component);x.propTypes=j,x.defaultProps=w,t.PureCalendarDay=x,t.default=(0,d.withStyles)((function(e){var t=e.reactDates,n=t.color;return{CalendarDay:{boxSizing:"border-box",cursor:"pointer",fontSize:t.font.size,textAlign:"center",":active":{outline:0}},CalendarDay__defaultCursor:{cursor:"default"},CalendarDay__default:{border:"1px solid "+String(n.core.borderLight),color:n.text,background:n.background,":hover":{background:n.core.borderLight,border:"1px double "+String(n.core.borderLight),color:"inherit"}},CalendarDay__hovered_offset:{background:n.core.borderBright,border:"1px double "+String(n.core.borderLight),color:"inherit"},CalendarDay__outside:{border:0,background:n.outside.backgroundColor,color:n.outside.color,":hover":{border:0}},CalendarDay__blocked_minimum_nights:{background:n.minimumNights.backgroundColor,border:"1px solid "+String(n.minimumNights.borderColor),color:n.minimumNights.color,":hover":{background:n.minimumNights.backgroundColor_hover,color:n.minimumNights.color_active},":active":{background:n.minimumNights.backgroundColor_active,color:n.minimumNights.color_active}},CalendarDay__highlighted_calendar:{background:n.highlighted.backgroundColor,color:n.highlighted.color,":hover":{background:n.highlighted.backgroundColor_hover,color:n.highlighted.color_active},":active":{background:n.highlighted.backgroundColor_active,color:n.highlighted.color_active}},CalendarDay__selected_span:{background:n.selectedSpan.backgroundColor,border:"1px solid "+String(n.selectedSpan.borderColor),color:n.selectedSpan.color,":hover":{background:n.selectedSpan.backgroundColor_hover,border:"1px solid "+String(n.selectedSpan.borderColor),color:n.selectedSpan.color_active},":active":{background:n.selectedSpan.backgroundColor_active,border:"1px solid "+String(n.selectedSpan.borderColor),color:n.selectedSpan.color_active}},CalendarDay__last_in_range:{borderRight:n.core.primary},CalendarDay__selected:{background:n.selected.backgroundColor,border:"1px solid "+String(n.selected.borderColor),color:n.selected.color,":hover":{background:n.selected.backgroundColor_hover,border:"1px solid "+String(n.selected.borderColor),color:n.selected.color_active},":active":{background:n.selected.backgroundColor_active,border:"1px solid "+String(n.selected.borderColor),color:n.selected.color_active}},CalendarDay__hovered_span:{background:n.hoveredSpan.backgroundColor,border:"1px solid "+String(n.hoveredSpan.borderColor),color:n.hoveredSpan.color,":hover":{background:n.hoveredSpan.backgroundColor_hover,border:"1px solid "+String(n.hoveredSpan.borderColor),color:n.hoveredSpan.color_active},":active":{background:n.hoveredSpan.backgroundColor_active,border:"1px solid "+String(n.hoveredSpan.borderColor),color:n.hoveredSpan.color_active}},CalendarDay__blocked_calendar:{background:n.blocked_calendar.backgroundColor,border:"1px solid "+String(n.blocked_calendar.borderColor),color:n.blocked_calendar.color,":hover":{background:n.blocked_calendar.backgroundColor_hover,border:"1px solid "+String(n.blocked_calendar.borderColor),color:n.blocked_calendar.color_active},":active":{background:n.blocked_calendar.backgroundColor_active,border:"1px solid "+String(n.blocked_calendar.borderColor),color:n.blocked_calendar.color_active}},CalendarDay__blocked_out_of_range:{background:n.blocked_out_of_range.backgroundColor,border:"1px solid "+String(n.blocked_out_of_range.borderColor),color:n.blocked_out_of_range.color,":hover":{background:n.blocked_out_of_range.backgroundColor_hover,border:"1px solid "+String(n.blocked_out_of_range.borderColor),color:n.blocked_out_of_range.color_active},":active":{background:n.blocked_out_of_range.backgroundColor_active,border:"1px solid "+String(n.blocked_out_of_range.borderColor),color:n.blocked_out_of_range.color_active}},CalendarDay__selected_start:{},CalendarDay__selected_end:{},CalendarDay__today:{},CalendarDay__firstDayOfWeek:{},CalendarDay__lastDayOfWeek:{}}}))(x)},NMb1:function(e,t){e.exports=window.wp.deprecated},NTP4:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=a},NWDH:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=a},Nho6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!r.default.isMoment(e)||!r.default.isMoment(t))&&(!(0,o.default)(e,t)&&!(0,a.default)(e,t))};var r=i(n("wy2R")),o=i(n("h6xH")),a=i(n("pRvc"));function i(e){return e&&e.__esModule?e:{default:e}}},Nloh:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureDayPicker=t.defaultProps=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=M(n("Koq/")),i=M(n("cDcd")),c=M(n("17x9")),s=M(n("YZDV")),l=n("Hsqg"),u=n("TG4+"),d=M(n("wy2R")),f=M(n("DzJC")),p=M(n("LTAC")),b=M(n("3gBW")),h=n("vV+G"),m=M(n("yc2e")),v=M(n("Thzv")),g=M(n("zfJ5")),y=n("1+Kn"),O=M(y),j=M(n("0Dl3")),w=M(n("m2ax")),x=M(n("ixyq")),_=M(n("+51k")),E=M(n("IgE5")),k=M(n("J7JS")),S=M(n("aE6U")),C=M(n("2S2E")),P=M(n("oR9Z")),T=n("Fv1B");function M(e){return e&&e.__esModule?e:{default:e}}function D(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var I=(0,l.forbidExtraProps)((0,a.default)({},u.withStylesPropTypes,{enableOutsideDays:c.default.bool,numberOfMonths:c.default.number,orientation:S.default,withPortal:c.default.bool,onOutsideClick:c.default.func,hidden:c.default.bool,initialVisibleMonth:c.default.func,firstDayOfWeek:C.default,renderCalendarInfo:c.default.func,calendarInfoPosition:P.default,hideKeyboardShortcutsPanel:c.default.bool,daySize:l.nonNegativeInteger,isRTL:c.default.bool,verticalHeight:l.nonNegativeInteger,noBorder:c.default.bool,transitionDuration:l.nonNegativeInteger,verticalBorderSpacing:l.nonNegativeInteger,horizontalMonthPadding:l.nonNegativeInteger,navPrev:c.default.node,navNext:c.default.node,noNavButtons:c.default.bool,onPrevMonthClick:c.default.func,onNextMonthClick:c.default.func,onMonthChange:c.default.func,onYearChange:c.default.func,onMultiplyScrollableMonths:c.default.func,renderMonthText:(0,l.mutuallyExclusiveProps)(c.default.func,"renderMonthText","renderMonthElement"),renderMonthElement:(0,l.mutuallyExclusiveProps)(c.default.func,"renderMonthText","renderMonthElement"),modifiers:c.default.objectOf(c.default.objectOf(k.default)),renderCalendarDay:c.default.func,renderDayContents:c.default.func,onDayClick:c.default.func,onDayMouseEnter:c.default.func,onDayMouseLeave:c.default.func,isFocused:c.default.bool,getFirstFocusableDay:c.default.func,onBlur:c.default.func,showKeyboardShortcuts:c.default.bool,monthFormat:c.default.string,weekDayFormat:c.default.string,phrases:c.default.shape((0,m.default)(h.DayPickerPhrases)),dayAriaLabelFormat:c.default.string})),R=t.defaultProps={enableOutsideDays:!1,numberOfMonths:2,orientation:T.HORIZONTAL_ORIENTATION,withPortal:!1,onOutsideClick:function(){},hidden:!1,initialVisibleMonth:function(){return(0,d.default)()},firstDayOfWeek:null,renderCalendarInfo:null,calendarInfoPosition:T.INFO_POSITION_BOTTOM,hideKeyboardShortcutsPanel:!1,daySize:T.DAY_SIZE,isRTL:!1,verticalHeight:null,noBorder:!1,transitionDuration:void 0,verticalBorderSpacing:void 0,horizontalMonthPadding:13,navPrev:null,navNext:null,noNavButtons:!1,onPrevMonthClick:function(){},onNextMonthClick:function(){},onMonthChange:function(){},onYearChange:function(){},onMultiplyScrollableMonths:function(){},renderMonthText:null,renderMonthElement:null,modifiers:{},renderCalendarDay:void 0,renderDayContents:null,onDayClick:function(){},onDayMouseEnter:function(){},onDayMouseLeave:function(){},isFocused:!1,getFirstFocusableDay:null,onBlur:function(){},showKeyboardShortcuts:!1,monthFormat:"MMMM YYYY",weekDayFormat:"dd",phrases:h.DayPickerPhrases,dayAriaLabelFormat:void 0},A=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=e.hidden?(0,d.default)():e.initialVisibleMonth(),o=r.clone().startOf("month");e.getFirstFocusableDay&&(o=e.getFirstFocusableDay(r));var a=e.horizontalMonthPadding,i=e.isRTL&&n.isHorizontal()?-(0,w.default)(e.daySize,a):0;return n.hasSetInitialVisibleMonth=!e.hidden,n.state={currentMonth:r,monthTransition:null,translationValue:i,scrollableMonthMultiple:1,calendarMonthWidth:(0,w.default)(e.daySize,a),focusedDate:!e.hidden||e.isFocused?o:null,nextFocusedDate:null,showKeyboardShortcuts:e.showKeyboardShortcuts,onKeyboardShortcutsPanelClose:function(){},isTouchDevice:(0,p.default)(),withMouseInteractions:!0,calendarInfoWidth:0,monthTitleHeight:null,hasSetHeight:!1},n.setCalendarMonthWeeks(r),n.calendarMonthGridHeight=0,n.setCalendarInfoWidthTimeout=null,n.onKeyDown=n.onKeyDown.bind(n),n.throttledKeyDown=(0,f.default)(n.onFinalKeyDown,200,{trailing:!1}),n.onPrevMonthClick=n.onPrevMonthClick.bind(n),n.onNextMonthClick=n.onNextMonthClick.bind(n),n.onMonthChange=n.onMonthChange.bind(n),n.onYearChange=n.onYearChange.bind(n),n.multiplyScrollableMonths=n.multiplyScrollableMonths.bind(n),n.updateStateAfterMonthTransition=n.updateStateAfterMonthTransition.bind(n),n.openKeyboardShortcutsPanel=n.openKeyboardShortcutsPanel.bind(n),n.closeKeyboardShortcutsPanel=n.closeKeyboardShortcutsPanel.bind(n),n.setCalendarInfoRef=n.setCalendarInfoRef.bind(n),n.setContainerRef=n.setContainerRef.bind(n),n.setTransitionContainerRef=n.setTransitionContainerRef.bind(n),n.setMonthTitleHeight=n.setMonthTitleHeight.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){var e=this.state.currentMonth;this.calendarInfo?this.setState({isTouchDevice:(0,p.default)(),calendarInfoWidth:(0,x.default)(this.calendarInfo,"width",!0,!0)}):this.setState({isTouchDevice:(0,p.default)()}),this.setCalendarMonthWeeks(e)}},{key:"componentWillReceiveProps",value:function(e){var t=e.hidden,n=e.isFocused,r=e.showKeyboardShortcuts,o=e.onBlur,a=e.renderMonthText,i=e.horizontalMonthPadding,c=this.state.currentMonth;t||this.hasSetInitialVisibleMonth||(this.hasSetInitialVisibleMonth=!0,this.setState({currentMonth:e.initialVisibleMonth()}));var s=this.props,l=s.daySize,u=s.isFocused,d=s.renderMonthText;if(e.daySize!==l&&this.setState({calendarMonthWidth:(0,w.default)(e.daySize,i)}),n!==u)if(n){var f=this.getFocusedDay(c),p=this.state.onKeyboardShortcutsPanelClose;e.showKeyboardShortcuts&&(p=o),this.setState({showKeyboardShortcuts:r,onKeyboardShortcutsPanelClose:p,focusedDate:f,withMouseInteractions:!1})}else this.setState({focusedDate:null});a!==d&&this.setState({monthTitleHeight:null})}},{key:"shouldComponentUpdate",value:function(e,t){return(0,s.default)(this,e,t)}},{key:"componentWillUpdate",value:function(){var e=this,t=this.props.transitionDuration;this.calendarInfo&&(this.setCalendarInfoWidthTimeout=setTimeout((function(){var t=e.state.calendarInfoWidth,n=(0,x.default)(e.calendarInfo,"width",!0,!0);t!==n&&e.setState({calendarInfoWidth:n})}),t))}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.orientation,r=t.daySize,o=t.isFocused,a=t.numberOfMonths,i=this.state,c=i.focusedDate,s=i.monthTitleHeight;if(this.isHorizontal()&&(n!==e.orientation||r!==e.daySize)){var l=this.calendarMonthWeeks.slice(1,a+1),u=s+Math.max.apply(Math,[0].concat(D(l)))*(r-1)+1;this.adjustDayPickerHeight(u)}e.isFocused||!o||c||this.container.focus()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.setCalendarInfoWidthTimeout)}},{key:"onKeyDown",value:function(e){e.stopPropagation(),T.MODIFIER_KEY_NAMES.has(e.key)||this.throttledKeyDown(e)}},{key:"onFinalKeyDown",value:function(e){this.setState({withMouseInteractions:!1});var t=this.props,n=t.onBlur,r=t.isRTL,o=this.state,a=o.focusedDate,i=o.showKeyboardShortcuts;if(a){var c=a.clone(),s=!1,l=(0,_.default)(),u=function(){l&&l.focus()};switch(e.key){case"ArrowUp":e.preventDefault(),c.subtract(1,"week"),s=this.maybeTransitionPrevMonth(c);break;case"ArrowLeft":e.preventDefault(),r?c.add(1,"day"):c.subtract(1,"day"),s=this.maybeTransitionPrevMonth(c);break;case"Home":e.preventDefault(),c.startOf("week"),s=this.maybeTransitionPrevMonth(c);break;case"PageUp":e.preventDefault(),c.subtract(1,"month"),s=this.maybeTransitionPrevMonth(c);break;case"ArrowDown":e.preventDefault(),c.add(1,"week"),s=this.maybeTransitionNextMonth(c);break;case"ArrowRight":e.preventDefault(),r?c.subtract(1,"day"):c.add(1,"day"),s=this.maybeTransitionNextMonth(c);break;case"End":e.preventDefault(),c.endOf("week"),s=this.maybeTransitionNextMonth(c);break;case"PageDown":e.preventDefault(),c.add(1,"month"),s=this.maybeTransitionNextMonth(c);break;case"?":this.openKeyboardShortcutsPanel(u);break;case"Escape":i?this.closeKeyboardShortcutsPanel():n()}s||this.setState({focusedDate:c})}}},{key:"onPrevMonthClick",value:function(e,t){var n=this.props,r=n.daySize,o=n.isRTL,a=n.numberOfMonths,i=this.state,c=i.calendarMonthWidth,s=i.monthTitleHeight;t&&t.preventDefault();var l=void 0;if(this.isVertical())l=s+this.calendarMonthWeeks[0]*(r-1)+1;else if(this.isHorizontal()){l=c,o&&(l=-2*c);var u=this.calendarMonthWeeks.slice(0,a),d=s+Math.max.apply(Math,[0].concat(D(u)))*(r-1)+1;this.adjustDayPickerHeight(d)}this.setState({monthTransition:"prev",translationValue:l,focusedDate:null,nextFocusedDate:e})}},{key:"onMonthChange",value:function(e){this.setCalendarMonthWeeks(e),this.calculateAndSetDayPickerHeight(),this.setState({monthTransition:"month_selection",translationValue:1e-5,focusedDate:null,nextFocusedDate:e,currentMonth:e})}},{key:"onYearChange",value:function(e){this.setCalendarMonthWeeks(e),this.calculateAndSetDayPickerHeight(),this.setState({monthTransition:"year_selection",translationValue:1e-4,focusedDate:null,nextFocusedDate:e,currentMonth:e})}},{key:"onNextMonthClick",value:function(e,t){var n=this.props,r=n.isRTL,o=n.numberOfMonths,a=n.daySize,i=this.state,c=i.calendarMonthWidth,s=i.monthTitleHeight;t&&t.preventDefault();var l=void 0;if(this.isVertical()&&(l=-(s+this.calendarMonthWeeks[1]*(a-1)+1)),this.isHorizontal()){l=-c,r&&(l=0);var u=this.calendarMonthWeeks.slice(2,o+2),d=s+Math.max.apply(Math,[0].concat(D(u)))*(a-1)+1;this.adjustDayPickerHeight(d)}this.setState({monthTransition:"next",translationValue:l,focusedDate:null,nextFocusedDate:e})}},{key:"getFirstDayOfWeek",value:function(){var e=this.props.firstDayOfWeek;return null==e?d.default.localeData().firstDayOfWeek():e}},{key:"getFirstVisibleIndex",value:function(){var e=this.props.orientation,t=this.state.monthTransition;if(e===T.VERTICAL_SCROLLABLE)return 0;var n=1;return"prev"===t?n-=1:"next"===t&&(n+=1),n}},{key:"getFocusedDay",value:function(e){var t=this.props,n=t.getFirstFocusableDay,r=t.numberOfMonths,o=void 0;return n&&(o=n(e)),!e||o&&(0,E.default)(o,e,r)||(o=e.clone().startOf("month")),o}},{key:"setMonthTitleHeight",value:function(e){var t=this;this.setState({monthTitleHeight:e},(function(){t.calculateAndSetDayPickerHeight()}))}},{key:"setCalendarMonthWeeks",value:function(e){var t=this.props.numberOfMonths;this.calendarMonthWeeks=[];for(var n=e.clone().subtract(1,"months"),r=this.getFirstDayOfWeek(),o=0;o<t+2;o+=1){var a=(0,j.default)(n,r);this.calendarMonthWeeks.push(a),n=n.add(1,"months")}}},{key:"setContainerRef",value:function(e){this.container=e}},{key:"setCalendarInfoRef",value:function(e){this.calendarInfo=e}},{key:"setTransitionContainerRef",value:function(e){this.transitionContainer=e}},{key:"maybeTransitionNextMonth",value:function(e){var t=this.props.numberOfMonths,n=this.state,r=n.currentMonth,o=n.focusedDate,a=e.month(),i=o.month(),c=(0,E.default)(e,r,t);return a!==i&&!c&&(this.onNextMonthClick(e),!0)}},{key:"maybeTransitionPrevMonth",value:function(e){var t=this.props.numberOfMonths,n=this.state,r=n.currentMonth,o=n.focusedDate,a=e.month(),i=o.month(),c=(0,E.default)(e,r,t);return a!==i&&!c&&(this.onPrevMonthClick(e),!0)}},{key:"multiplyScrollableMonths",value:function(e){var t=this.props.onMultiplyScrollableMonths;e&&e.preventDefault(),t&&t(e),this.setState((function(e){return{scrollableMonthMultiple:e.scrollableMonthMultiple+1}}))}},{key:"isHorizontal",value:function(){return this.props.orientation===T.HORIZONTAL_ORIENTATION}},{key:"isVertical",value:function(){var e=this.props.orientation;return e===T.VERTICAL_ORIENTATION||e===T.VERTICAL_SCROLLABLE}},{key:"updateStateAfterMonthTransition",value:function(){var e=this,t=this.props,n=t.onPrevMonthClick,r=t.onNextMonthClick,o=t.numberOfMonths,a=t.onMonthChange,i=t.onYearChange,c=t.isRTL,s=this.state,l=s.currentMonth,u=s.monthTransition,d=s.focusedDate,f=s.nextFocusedDate,p=s.withMouseInteractions,b=s.calendarMonthWidth;if(u){var h=l.clone(),m=this.getFirstDayOfWeek();if("prev"===u){h.subtract(1,"month"),n&&n(h);var v=h.clone().subtract(1,"month"),g=(0,j.default)(v,m);this.calendarMonthWeeks=[g].concat(D(this.calendarMonthWeeks.slice(0,-1)))}else if("next"===u){h.add(1,"month"),r&&r(h);var y=h.clone().add(o,"month"),O=(0,j.default)(y,m);this.calendarMonthWeeks=[].concat(D(this.calendarMonthWeeks.slice(1)),[O])}else"month_selection"===u?a&&a(h):"year_selection"===u&&i&&i(h);var w=null;f?w=f:d||p||(w=this.getFocusedDay(h)),this.setState({currentMonth:h,monthTransition:null,translationValue:c&&this.isHorizontal()?-b:0,nextFocusedDate:null,focusedDate:w},(function(){if(p){var t=(0,_.default)();t&&t!==document.body&&e.container.contains(t)&&t.blur()}}))}}},{key:"adjustDayPickerHeight",value:function(e){var t=this,n=e+23;n!==this.calendarMonthGridHeight&&(this.transitionContainer.style.height=String(n)+"px",this.calendarMonthGridHeight||setTimeout((function(){t.setState({hasSetHeight:!0})}),0),this.calendarMonthGridHeight=n)}},{key:"calculateAndSetDayPickerHeight",value:function(){var e=this.props,t=e.daySize,n=e.numberOfMonths,r=this.state.monthTitleHeight,o=this.calendarMonthWeeks.slice(1,n+1),a=r+Math.max.apply(Math,[0].concat(D(o)))*(t-1)+1;this.isHorizontal()&&this.adjustDayPickerHeight(a)}},{key:"openKeyboardShortcutsPanel",value:function(e){this.setState({showKeyboardShortcuts:!0,onKeyboardShortcutsPanelClose:e})}},{key:"closeKeyboardShortcutsPanel",value:function(){var e=this.state.onKeyboardShortcutsPanelClose;e&&e(),this.setState({onKeyboardShortcutsPanelClose:null,showKeyboardShortcuts:!1})}},{key:"renderNavigation",value:function(){var e=this,t=this.props,n=t.navPrev,r=t.navNext,o=t.noNavButtons,a=t.orientation,c=t.phrases,s=t.isRTL;if(o)return null;var l=void 0;return l=a===T.VERTICAL_SCROLLABLE?this.multiplyScrollableMonths:function(t){e.onNextMonthClick(null,t)},i.default.createElement(g.default,{onPrevMonthClick:function(t){e.onPrevMonthClick(null,t)},onNextMonthClick:l,navPrev:n,navNext:r,orientation:a,phrases:c,isRTL:s})}},{key:"renderWeekHeader",value:function(e){var t=this.props,n=t.daySize,o=t.horizontalMonthPadding,a=t.orientation,c=t.weekDayFormat,s=t.styles,l=this.state.calendarMonthWidth,f=a===T.VERTICAL_SCROLLABLE,p={left:e*l},b={marginLeft:-l/2},h={};this.isHorizontal()?h=p:this.isVertical()&&!f&&(h=b);for(var m=this.getFirstDayOfWeek(),v=[],g=0;g<7;g+=1)v.push(i.default.createElement("li",r({key:g},(0,u.css)(s.DayPicker_weekHeader_li,{width:n})),i.default.createElement("small",null,(0,d.default)().day((g+m)%7).format(c))));return i.default.createElement("div",r({},(0,u.css)(s.DayPicker_weekHeader,this.isVertical()&&s.DayPicker_weekHeader__vertical,f&&s.DayPicker_weekHeader__verticalScrollable,h,{padding:"0 "+String(o)+"px"}),{key:"week-"+String(e)}),i.default.createElement("ul",(0,u.css)(s.DayPicker_weekHeader_ul),v))}},{key:"render",value:function(){for(var e=this,t=this.state,n=t.calendarMonthWidth,o=t.currentMonth,a=t.monthTransition,c=t.translationValue,s=t.scrollableMonthMultiple,l=t.focusedDate,d=t.showKeyboardShortcuts,f=t.isTouchDevice,p=t.hasSetHeight,h=t.calendarInfoWidth,m=t.monthTitleHeight,g=this.props,j=g.enableOutsideDays,w=g.numberOfMonths,x=g.orientation,_=g.modifiers,E=g.withPortal,k=g.onDayClick,S=g.onDayMouseEnter,C=g.onDayMouseLeave,P=g.firstDayOfWeek,M=g.renderMonthText,D=g.renderCalendarDay,I=g.renderDayContents,R=g.renderCalendarInfo,A=g.renderMonthElement,N=g.calendarInfoPosition,L=g.hideKeyboardShortcutsPanel,F=g.onOutsideClick,z=g.monthFormat,B=g.daySize,H=g.isFocused,V=g.isRTL,W=g.styles,U=g.theme,K=g.phrases,G=g.verticalHeight,$=g.dayAriaLabelFormat,q=g.noBorder,Y=g.transitionDuration,X=g.verticalBorderSpacing,Z=g.horizontalMonthPadding,J=U.reactDates.spacing.dayPickerHorizontalPadding,Q=this.isHorizontal(),ee=this.isVertical()?1:w,te=[],ne=0;ne<ee;ne+=1)te.push(this.renderWeekHeader(ne));var re=x===T.VERTICAL_SCROLLABLE,oe=void 0;Q?oe=this.calendarMonthGridHeight:!this.isVertical()||re||E||(oe=G||1.75*n);var ae=null!==a,ie=!ae&&H,ce=y.BOTTOM_RIGHT;this.isVertical()&&(ce=E?y.TOP_LEFT:y.TOP_RIGHT);var se=Q&&p,le=N===T.INFO_POSITION_TOP,ue=N===T.INFO_POSITION_BOTTOM,de=N===T.INFO_POSITION_BEFORE,fe=N===T.INFO_POSITION_AFTER,pe=de||fe,be=R&&i.default.createElement("div",r({ref:this.setCalendarInfoRef},(0,u.css)(pe&&W.DayPicker_calendarInfo__horizontal)),R()),he=R&&pe?h:0,me=this.getFirstVisibleIndex(),ve=n*w+2*J,ge=ve+he+1,ye={width:Q&&ve,height:oe},Oe={width:Q&&ve},je={width:Q&&ge,marginLeft:Q&&E?-ge/2:null,marginTop:Q&&E?-n/2:null};return i.default.createElement("div",r({role:"application","aria-label":K.calendarLabel},(0,u.css)(W.DayPicker,Q&&W.DayPicker__horizontal,re&&W.DayPicker__verticalScrollable,Q&&E&&W.DayPicker_portal__horizontal,this.isVertical()&&E&&W.DayPicker_portal__vertical,je,!m&&W.DayPicker__hidden,!q&&W.DayPicker__withBorder)),i.default.createElement(b.default,{onOutsideClick:F},(le||de)&&be,i.default.createElement("div",(0,u.css)(Oe,pe&&Q&&W.DayPicker_wrapper__horizontal),i.default.createElement("div",r({},(0,u.css)(W.DayPicker_weekHeaders,Q&&W.DayPicker_weekHeaders__horizontal),{"aria-hidden":"true",role:"presentation"}),te),i.default.createElement("div",r({},(0,u.css)(W.DayPicker_focusRegion),{ref:this.setContainerRef,onClick:function(e){e.stopPropagation()},onKeyDown:this.onKeyDown,onMouseUp:function(){e.setState({withMouseInteractions:!0})},role:"region",tabIndex:-1}),!re&&this.renderNavigation(),i.default.createElement("div",r({},(0,u.css)(W.DayPicker_transitionContainer,se&&W.DayPicker_transitionContainer__horizontal,this.isVertical()&&W.DayPicker_transitionContainer__vertical,re&&W.DayPicker_transitionContainer__verticalScrollable,ye),{ref:this.setTransitionContainerRef}),i.default.createElement(v.default,{setMonthTitleHeight:m?void 0:this.setMonthTitleHeight,translationValue:c,enableOutsideDays:j,firstVisibleMonthIndex:me,initialMonth:o,isAnimating:ae,modifiers:_,orientation:x,numberOfMonths:w*s,onDayClick:k,onDayMouseEnter:S,onDayMouseLeave:C,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,renderMonthText:M,renderCalendarDay:D,renderDayContents:I,renderMonthElement:A,onMonthTransitionEnd:this.updateStateAfterMonthTransition,monthFormat:z,daySize:B,firstDayOfWeek:P,isFocused:ie,focusedDate:l,phrases:K,isRTL:V,dayAriaLabelFormat:$,transitionDuration:Y,verticalBorderSpacing:X,horizontalMonthPadding:Z}),re&&this.renderNavigation()),!f&&!L&&i.default.createElement(O.default,{block:this.isVertical()&&!E,buttonLocation:ce,showKeyboardShortcutsPanel:d,openKeyboardShortcutsPanel:this.openKeyboardShortcutsPanel,closeKeyboardShortcutsPanel:this.closeKeyboardShortcutsPanel,phrases:K}))),(ue||fe)&&be))}}]),t}(i.default.Component);A.propTypes=I,A.defaultProps=R,t.PureDayPicker=A,t.default=(0,u.withStyles)((function(e){var t=e.reactDates,n=t.color,r=t.font,o=t.noScrollBarOnVerticalScrollable,i=t.spacing,c=t.zIndex;return{DayPicker:{background:n.background,position:"relative",textAlign:"left"},DayPicker__horizontal:{background:n.background},DayPicker__verticalScrollable:{height:"100%"},DayPicker__hidden:{visibility:"hidden"},DayPicker__withBorder:{boxShadow:"0 2px 6px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.07)",borderRadius:3},DayPicker_portal__horizontal:{boxShadow:"none",position:"absolute",left:"50%",top:"50%"},DayPicker_portal__vertical:{position:"initial"},DayPicker_focusRegion:{outline:"none"},DayPicker_calendarInfo__horizontal:{display:"inline-block",verticalAlign:"top"},DayPicker_wrapper__horizontal:{display:"inline-block",verticalAlign:"top"},DayPicker_weekHeaders:{position:"relative"},DayPicker_weekHeaders__horizontal:{marginLeft:i.dayPickerHorizontalPadding},DayPicker_weekHeader:{color:n.placeholderText,position:"absolute",top:62,zIndex:c+2,textAlign:"left"},DayPicker_weekHeader__vertical:{left:"50%"},DayPicker_weekHeader__verticalScrollable:{top:0,display:"table-row",borderBottom:"1px solid "+String(n.core.border),background:n.background,marginLeft:0,left:0,width:"100%",textAlign:"center"},DayPicker_weekHeader_ul:{listStyle:"none",margin:"1px 0",paddingLeft:0,paddingRight:0,fontSize:r.size},DayPicker_weekHeader_li:{display:"inline-block",textAlign:"center"},DayPicker_transitionContainer:{position:"relative",overflow:"hidden",borderRadius:3},DayPicker_transitionContainer__horizontal:{transition:"height 0.2s ease-in-out"},DayPicker_transitionContainer__vertical:{width:"100%"},DayPicker_transitionContainer__verticalScrollable:(0,a.default)({paddingTop:20,height:"100%",position:"absolute",top:0,bottom:0,right:0,left:0,overflowY:"scroll"},o&&{"-webkitOverflowScrolling":"touch","::-webkit-scrollbar":{"-webkit-appearance":"none",display:"none"}})}}))(A)},NykK:function(e,t,n){var r=n("nmnc"),o=n("AP2z"),a=n("KfNM"),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},Nym8:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("ouKs");function o(e){var t=Object(r.a)(e).activeElement;return null!=t&&t.nodeName?t:null}},Ohaz:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var r=n("tQ+x");function o(e){return{[r.a]:e}}function a(){return{[r.b]:!0}}},PFEc:function(e,t,n){"use strict";var r=n("j1Hc")("%Object%"),o=n("eH4f");e.exports=function(e){return o(e),r(e)}},PcHe:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("Nym8"),o=n("utzN");function a(e){var t=Object(r.a)(e);if(!t)return!1;if(Object(o.a)(e,t))return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&(n===e.id||!!e.querySelector("#"+n))}},Pjai:function(e,t,n){"use strict";var r=n("vLdR");e.exports=function(e){var t=r(e,Number);if("string"!=typeof t)return+t;var n=t.replace(/^[ \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u0085]+|[ \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u0085]+$/g,"");return/^0[ob]|^[+-]0x/.test(n)?NaN:+n}},PoQ0:function(e,t,n){"use strict";var r=n("60zJ");e.exports=function(e){return"symbol"==typeof e?"Symbol":"bigint"==typeof e?"BigInt":r(e)}},Pq96:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!r.default.isMoment(e)||!r.default.isMoment(t))&&(0,o.default)(e.clone().subtract(1,"month"),t)};var r=a(n("wy2R")),o=a(n("ulUS"));function a(e){return e&&e.__esModule?e:{default:e}}},PrET:function(e,t,n){"use strict";var r=n("D3zA"),o=n("AM7I"),a=o("%Function.prototype.apply%"),i=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(i,a),s=o("%Object.defineProperty%",!0);if(s)try{s({},"a",{value:1})}catch(e){s=null}e.exports=function(){return c(r,i,arguments)};var l=function(){return c(r,a,arguments)};s?s(e.exports,"apply",{value:l}):e.exports.apply=l},Ptb8:function(e,t,n){"use strict";function r(e){return"object"==typeof e&&null!=e}n.d(t,"a",(function(){return r}))},Q4Sy:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));t.a=a},QEu6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.CHANNEL="__direction__",t.DIRECTIONS={LTR:"ltr",RTL:"rtl"}},QIyF:function(e,t,n){var r=n("Kz5y");e.exports=function(){return r.Date.now()}},Qmvf:function(e,t,n){"use strict";var r=n("j1Hc"),o=n("oNNP"),a=r("%TypeError%");e.exports=function(e,t){if("Object"!==e.Type(t))return!1;var n={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in t)if(o(t,r)&&!n[r])return!1;if(e.IsDataDescriptor(t)&&e.IsAccessorDescriptor(t))throw new a("Property Descriptors may not be both accessor and data descriptors");return!0}},RDTF:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return s}))},RMJe:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));t.a=a},Rhcr:function(e,t,n){"use strict";var r=n("j1Hc"),o=r("%TypeError%"),a=r("%Number%"),i=r("%RegExp%"),c=r("%parseInt%"),s=n("qeuH"),l=n("ZbWB"),u=n("BeK9"),d=s("String.prototype.slice"),f=l(/^0b[01]+$/i),p=l(/^0o[0-7]+$/i),b=l(/^[-+]0x[0-9a-f]+$/i),h=l(new i("["+["…","​","￾"].join("")+"]","g")),m=["\t\n\v\f\r   ᠎    ","          \u2028","\u2029\ufeff"].join(""),v=new RegExp("(^["+m+"]+)|(["+m+"]+$)","g"),g=s("String.prototype.replace"),y=n("Cx2f");e.exports=function e(t){var n=u(t)?t:y(t,a);if("symbol"==typeof n)throw new o("Cannot convert a Symbol value to a number");if("bigint"==typeof n)throw new o("Conversion from 'BigInt' to 'number' is not allowed.");if("string"==typeof n){if(f(n))return e(c(d(n,2),2));if(p(n))return e(c(d(n,2),8));if(h(n)||b(n))return NaN;var r=function(e){return g(e,v,"")}(n);if(r!==n)return e(r)}return a(n)}},RxS6:function(e,t){e.exports=window.wp.keycodes},S3lO:function(e,t,n){"use strict";var r=n("j1Hc")("%TypeError%"),o=n("wTIp"),a=n("rQBh"),i=n("6XE+"),c=n("6/BL"),s=n("UaFt"),l=n("nR7C"),u=n("uug5"),d=n("PoQ0");e.exports=function(e,t,n){if("Object"!==d(e))throw new r("Assertion failed: Type(O) is not Object");if(!l(t))throw new r("Assertion failed: IsPropertyKey(P) is not true");var f=i(e,t),p=!f||s(e);return!(f&&(!f["[[Writable]]"]||!f["[[Configurable]]"])||!p)&&o(c,u,a,e,t,{"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":n,"[[Writable]]":!0})}},S8ty:function(e,t,n){"use strict";var r=n("j1Hc")("%Math.abs%");e.exports=function(e){return r(e)}},SB3u:function(e,t,n){"use strict";n.r(t),n.d(t,"SVG",(function(){return i.SVG})),n.d(t,"Path",(function(){return i.Path})),n.d(t,"Circle",(function(){return i.Circle})),n.d(t,"Polygon",(function(){return i.Polygon})),n.d(t,"Rect",(function(){return i.Rect})),n.d(t,"G",(function(){return i.G})),n.d(t,"HorizontalRule",(function(){return i.HorizontalRule})),n.d(t,"BlockQuotation",(function(){return i.BlockQuotation})),n.d(t,"__experimentalAlignmentMatrixControl",(function(){return nt})),n.d(t,"Animate",(function(){return rt.a})),n.d(t,"__unstableGetAnimateClassName",(function(){return rt.b})),n.d(t,"__unstableMotion",(function(){return rs})),n.d(t,"AnglePickerControl",(function(){return ad})),n.d(t,"Autocomplete",(function(){return pd})),n.d(t,"__unstableUseAutocompleteProps",(function(){return fd})),n.d(t,"BaseControl",(function(){return jd})),n.d(t,"__experimentalBoxControl",(function(){return Qf})),n.d(t,"Button",(function(){return ld.a})),n.d(t,"ButtonGroup",(function(){return ep})),n.d(t,"Card",(function(){return Mp})),n.d(t,"CardBody",(function(){return zp})),n.d(t,"CardDivider",(function(){return Up})),n.d(t,"CardFooter",(function(){return Kp})),n.d(t,"CardHeader",(function(){return Gp})),n.d(t,"CardMedia",(function(){return $p})),n.d(t,"CheckboxControl",(function(){return Xp})),n.d(t,"ClipboardButton",(function(){return Zp})),n.d(t,"__experimentalPaletteEdit",(function(){return Xg})),n.d(t,"ColorIndicator",(function(){return Zg})),n.d(t,"ColorPalette",(function(){return Eg})),n.d(t,"ColorPicker",(function(){return _v})),n.d(t,"ComboboxControl",(function(){return cy})),n.d(t,"__unstableComposite",(function(){return $e})),n.d(t,"__unstableCompositeGroup",(function(){return Ze})),n.d(t,"__unstableCompositeItem",(function(){return b.a})),n.d(t,"__unstableUseCompositeState",(function(){return we})),n.d(t,"CustomSelectControl",(function(){return bO})),n.d(t,"Dashicon",(function(){return hO.a})),n.d(t,"DateTimePicker",(function(){return CO})),n.d(t,"DatePicker",(function(){return wO})),n.d(t,"TimePicker",(function(){return SO})),n.d(t,"__experimentalDimensionControl",(function(){return TO})),n.d(t,"Disabled",(function(){return LO})),n.d(t,"__unstableDisclosureContent",(function(){return fm})),n.d(t,"__experimentalDivider",(function(){return Wp})),n.d(t,"Draggable",(function(){return zO})),n.d(t,"DropZone",(function(){return $O})),n.d(t,"DropZoneProvider",(function(){return qO})),n.d(t,"Dropdown",(function(){return Vv})),n.d(t,"DropdownMenu",(function(){return Rg})),n.d(t,"DuotoneSwatch",(function(){return JO})),n.d(t,"DuotonePicker",(function(){return rj})),n.d(t,"__experimentalElevation",(function(){return op})),n.d(t,"ExternalLink",(function(){return ij})),n.d(t,"Flex",(function(){return Ms})),n.d(t,"FlexBlock",(function(){return hs})),n.d(t,"FlexItem",(function(){return ms})),n.d(t,"__experimentalFlyout",(function(){return aw})),n.d(t,"FocalPointPicker",(function(){return Dw})),n.d(t,"FocusableIframe",(function(){return Iw})),n.d(t,"FontSizePicker",(function(){return mx})),n.d(t,"FormFileUpload",(function(){return vx})),n.d(t,"FormToggle",(function(){return gx})),n.d(t,"FormTokenField",(function(){return Ex})),n.d(t,"GradientPicker",(function(){return jg})),n.d(t,"CustomGradientPicker",(function(){return mg})),n.d(t,"__experimentalGrid",(function(){return Cx})),n.d(t,"Guide",(function(){return Ux})),n.d(t,"GuidePage",(function(){return Kx})),n.d(t,"__experimentalHeading",(function(){return vg})),n.d(t,"__experimentalHStack",(function(){return ib})),n.d(t,"Icon",(function(){return fb.a})),n.d(t,"IconButton",(function(){return Gx})),n.d(t,"__experimentalItemGroup",(function(){return Bv})),n.d(t,"__experimentalItem",(function(){return Ag})),n.d(t,"__experimentalInputControl",(function(){return Zu})),n.d(t,"KeyboardShortcuts",(function(){return qx})),n.d(t,"MenuGroup",(function(){return Yx})),n.d(t,"MenuItem",(function(){return Zx})),n.d(t,"MenuItemsChoice",(function(){return Jx})),n.d(t,"Modal",(function(){return Bx})),n.d(t,"ScrollLock",(function(){return Qx.a})),n.d(t,"NavigableMenu",(function(){return Dg})),n.d(t,"TabbableContainer",(function(){return e_})),n.d(t,"__experimentalNavigation",(function(){return y_})),n.d(t,"__experimentalNavigationBackButton",(function(){return w_})),n.d(t,"__experimentalNavigationGroup",(function(){return __})),n.d(t,"__experimentalNavigationItem",(function(){return M_})),n.d(t,"__experimentalNavigationMenu",(function(){return A_})),n.d(t,"__experimentalNavigatorProvider",(function(){return F_})),n.d(t,"__experimentalNavigatorScreen",(function(){return B_})),n.d(t,"__experimentalUseNavigator",(function(){return H_})),n.d(t,"Notice",(function(){return U_})),n.d(t,"__experimentalNumberControl",(function(){return Pd})),n.d(t,"NoticeList",(function(){return K_})),n.d(t,"Panel",(function(){return $_})),n.d(t,"PanelBody",(function(){return Z_})),n.d(t,"PanelHeader",(function(){return G_})),n.d(t,"PanelRow",(function(){return J_})),n.d(t,"Placeholder",(function(){return Q_})),n.d(t,"Popover",(function(){return ud.a})),n.d(t,"QueryControls",(function(){return cE})),n.d(t,"__experimentalRadio",(function(){return lE})),n.d(t,"__experimentalRadioGroup",(function(){return uE})),n.d(t,"RadioControl",(function(){return dE})),n.d(t,"RangeControl",(function(){return zb})),n.d(t,"ResizableBox",(function(){return qE})),n.d(t,"ResponsiveWrapper",(function(){return YE})),n.d(t,"SandBox",(function(){return JE})),n.d(t,"SearchControl",(function(){return a_})),n.d(t,"SelectControl",(function(){return db})),n.d(t,"Snackbar",(function(){return QE.a})),n.d(t,"SnackbarList",(function(){return nk})),n.d(t,"__experimentalSpacer",(function(){return od})),n.d(t,"__experimentalScrollable",(function(){return Fp})),n.d(t,"Spinner",(function(){return ik})),n.d(t,"__experimentalSurface",(function(){return ck})),n.d(t,"TabPanel",(function(){return lk})),n.d(t,"__experimentalText",(function(){return cl})),n.d(t,"TextControl",(function(){return uk})),n.d(t,"TextareaControl",(function(){return mk})),n.d(t,"TextHighlight",(function(){return vk})),n.d(t,"Tip",(function(){return gk})),n.d(t,"ToggleControl",(function(){return yk})),n.d(t,"__experimentalToggleGroupControl",(function(){return $w})),n.d(t,"__experimentalToggleGroupControlOption",(function(){return ux})),n.d(t,"Toolbar",(function(){return Mk})),n.d(t,"ToolbarButton",(function(){return xk})),n.d(t,"ToolbarDropdownMenu",(function(){return Dk})),n.d(t,"__experimentalToolbarContext",(function(){return jk.a})),n.d(t,"ToolbarGroup",(function(){return kk})),n.d(t,"ToolbarItem",(function(){return Ok.a})),n.d(t,"__experimentalToolsPanel",(function(){return Zk})),n.d(t,"__experimentalToolsPanelItem",(function(){return Jk})),n.d(t,"__experimentalToolsPanelContext",(function(){return Wk})),n.d(t,"Tooltip",(function(){return h.a})),n.d(t,"__experimentalTreeGrid",(function(){return rS})),n.d(t,"__experimentalTreeGridRow",(function(){return oS})),n.d(t,"__experimentalTreeGridCell",(function(){return cS})),n.d(t,"__experimentalTreeGridItem",(function(){return iS})),n.d(t,"TreeSelect",(function(){return nE})),n.d(t,"__experimentalTruncate",(function(){return sS})),n.d(t,"__experimentalUnitControl",(function(){return Zd})),n.d(t,"__experimentalUseCustomUnits",(function(){return $d})),n.d(t,"__experimentalParseUnit",(function(){return Kd})),n.d(t,"__experimentalView",(function(){return as.a})),n.d(t,"VisuallyHidden",(function(){return m.a})),n.d(t,"__experimentalVStack",(function(){return Hv})),n.d(t,"IsolatedEventContainer",(function(){return uS})),n.d(t,"createSlotFill",(function(){return dS.d})),n.d(t,"Slot",(function(){return dS.c})),n.d(t,"Fill",(function(){return dS.a})),n.d(t,"SlotFillProvider",(function(){return dS.b})),n.d(t,"__experimentalUseSlot",(function(){return fS.a})),n.d(t,"__experimentalStyleProvider",(function(){return Fx})),n.d(t,"__experimentalZStack",(function(){return vS})),n.d(t,"navigateRegions",(function(){return OS})),n.d(t,"__unstableUseNavigateRegions",(function(){return yS})),n.d(t,"withConstrainedTabbing",(function(){return jS})),n.d(t,"withFallbackStyles",(function(){return wS})),n.d(t,"withFilters",(function(){return _S})),n.d(t,"withFocusOutside",(function(){return ay})),n.d(t,"withFocusReturn",(function(){return ES})),n.d(t,"FocusReturnProvider",(function(){return kS})),n.d(t,"withNotices",(function(){return SS})),n.d(t,"withSpokenMessages",(function(){return wx}));var r={};n.r(r),n.d(r,"Text",(function(){return Gs})),n.d(r,"block",(function(){return $s})),n.d(r,"positive",(function(){return qs})),n.d(r,"destructive",(function(){return Ys})),n.d(r,"muted",(function(){return Xs})),n.d(r,"highlighterText",(function(){return Zs})),n.d(r,"upperCase",(function(){return Js}));var o={};n.r(o),n.d(o,"TooltipContent",(function(){return jm})),n.d(o,"TooltipPopoverView",(function(){return wm})),n.d(o,"noOutline",(function(){return xm})),n.d(o,"TooltipShortcut",(function(){return _m}));var a={};n.r(a),n.d(a,"LabelView",(function(){return Jw})),n.d(a,"labelBlock",(function(){return Qw})),n.d(a,"buttonView",(function(){return ex})),n.d(a,"buttonActive",(function(){return tx})),n.d(a,"ButtonContentView",(function(){return nx})),n.d(a,"separatorActive",(function(){return rx})),n.d(a,"LabelPlaceholderView",(function(){return ox})),n.d(a,"medium",(function(){return ax}));var i=n("Tqx9"),c=n("wx14"),s=n("GRId"),l=n("YLtl"),u=n("TSYQ"),d=n.n(u),f=n("l3Sj"),p=n("K9lf"),b=n("kTC8"),h=n("W/NR"),m=n("iSWJ");const v=[["top left","top center","top right"],["center left","center center","center right"],["bottom left","bottom center","bottom right"]],g={"top left":Object(f.__)("Top Left"),"top center":Object(f.__)("Top Center"),"top right":Object(f.__)("Top Right"),"center left":Object(f.__)("Center Left"),"center center":Object(f.__)("Center Center"),"center right":Object(f.__)("Center Right"),"bottom left":Object(f.__)("Bottom Left"),"bottom center":Object(f.__)("Bottom Center"),"bottom right":Object(f.__)("Bottom Right")},y=Object(l.flattenDeep)(v);function O(e){return("center"===e?"center center":e).replace("-"," ")}function j(e,t){return`${e}-${O(t).replace(" ","-")}`}var w=n("DZdY"),x=n("AeFk"),_=n("fHnH"),E=n("abaT");function k(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Object(_.a)(e).alpha(t).toRgbString()}Object(_.b)([E.a]);const S={black:"#000",white:"#fff"},C={blue:{medium:{focus:"#007cba",focusDark:"#fff"}},gray:{900:"#1e1e1e",700:"#757575",600:"#949494",400:"#ccc",200:"#ddd",100:"#f0f0f0"},darkGray:{primary:"#1e1e1e",heading:"#050505"},mediumGray:{text:"#757575"},lightGray:{ui:"#949494",secondary:"#ccc",tertiary:"#e7e8e9"}},P={900:"#191e23",800:"#23282d",700:"#32373c",600:"#40464d",500:"#555d66",400:"#606a73",300:"#6c7781",200:"#7e8993",150:"#8d96a0",100:"#8f98a1",placeholder:k(C.gray[900],.62)},T={900:k("#000510",.9),800:k("#00000a",.85),700:k("#06060b",.8),600:k("#000913",.75),500:k("#0a1829",.7),400:k("#0a1829",.65),300:k("#0e1c2e",.62),200:k("#162435",.55),100:k("#223443",.5),backgroundFill:k(P[700],.7)},M={900:k("#304455",.45),800:k("#425863",.4),700:k("#667886",.35),600:k("#7b86a2",.3),500:k("#9197a2",.25),400:k("#95959c",.2),300:k("#829493",.15),200:k("#8b8b96",.1),100:k("#747474",.05)},D={900:"#a2aab2",800:"#b5bcc2",700:"#ccd0d4",600:"#d7dade",500:"#e2e4e7",400:"#e8eaeb",300:"#edeff0",200:"#f3f4f5",100:"#f8f9f9",placeholder:k(S.white,.65)},I={900:k(S.white,.5),800:k(S.white,.45),700:k(S.white,.4),600:k(S.white,.35),500:k(S.white,.3),400:k(S.white,.25),300:k(S.white,.2),200:k(S.white,.15),100:k(S.white,.1),backgroundFill:k(D[300],.8)},R={wordpress:{700:"#00669b"},dark:{900:"#0071a1"},medium:{900:"#006589",800:"#00739c",700:"#007fac",600:"#008dbe",500:"#00a0d2",400:"#33b3db",300:"#66c6e4",200:"#bfe7f3",100:"#e5f5fa",highlight:"#b3e7fe",focus:"#007cba"}},A={theme:`var( --wp-admin-theme-color, ${R.wordpress[700]})`,themeDark10:`var( --wp-admin-theme-color-darker-10, ${R.medium.focus})`},N={theme:A.theme,background:S.white,backgroundDisabled:D[200],border:C.gray[700],borderHover:C.gray[700],borderFocus:A.themeDark10,borderDisabled:C.gray[400],borderLight:C.gray[200],label:P[500],textDisabled:P[150],textDark:S.white,textLight:S.black},L={...S,darkGray:Object(l.merge)({},P,C.darkGray),darkOpacity:T,darkOpacityLight:M,mediumGray:C.mediumGray,gray:C.gray,lightGray:Object(l.merge)({},D,C.lightGray),lightGrayLight:I,blue:Object(l.merge)({},R,C.blue),alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},admin:A,ui:N};function F(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transition";switch(t){case"transition":e="transition-duration: 0ms;";break;case"animation":e="animation-duration: 1ms;";break;default:e="\n\t\t\t\tanimation-duration: 1ms;\n\t\t\t\ttransition-duration: 0ms;\n\t\t\t"}return`\n\t\t@media ( prefers-reduced-motion: reduce ) {\n\t\t\t${e};\n\t\t}\n\t`}var z={name:"lp9rn7",styles:"border-radius:2px;box-sizing:border-box;display:grid;grid-template-columns:repeat( 3, 1fr );outline:none"};const B=()=>z,H=Object(w.a)("div",{target:"e1od1u4s3"})(B,";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;",e=>{let{size:t=92}=e;return Object(x.a)("grid-template-rows:repeat( 3, calc( ",t,"px / 3 ) );width:",t,"px;","")},";"),V=Object(w.a)("div",{target:"e1od1u4s2"})({name:"1x5gbbj",styles:"box-sizing:border-box;display:grid;grid-template-columns:repeat( 3, 1fr )"}),W=e=>Object(x.a)("background:currentColor;box-sizing:border-box;display:grid;margin:auto;transition:all 120ms linear;",F("transition")," ",(e=>{let{isActive:t}=e;const n=t?"0 0 0 2px "+L.black:null,r=t?L.black:L.lightGray[800],o=t?L.black:L.blue.medium.focus;return Object(x.a)("box-shadow:",n,";color:",r,";*:hover>&{color:",o,";}","")})(e),";",""),U=Object(w.a)("span",{target:"e1od1u4s1"})("height:6px;width:6px;",W,";"),K=Object(w.a)("span",{target:"e1od1u4s0"})({name:"rjf3ub",styles:"appearance:none;border:none;box-sizing:border-box;margin:0;display:flex;position:relative;outline:none;align-items:center;justify-content:center;padding:0"});function G(e){let{isActive:t=!1,value:n,...r}=e;const o=g[n];return Object(s.createElement)(h.a,{text:o},Object(s.createElement)(b.a,Object(c.a)({as:K,role:"gridcell"},r),Object(s.createElement)(m.a,null,n),Object(s.createElement)(U,{isActive:t,role:"presentation"})))}var $=n("BZp5"),q=n("cDcd"),Y=n.n(q),X=n("AXvK");function Z(e){return Object(q.useState)(e)[0]}var J=n("ouKs");function Q(e){for(var t,n=[[]],r=function(){var e=t.value,r=n.find((function(t){return!t[0]||t[0].groupId===e.groupId}));r?r.push(e):n.push([e])},o=Object($.c)(e);!(t=o()).done;)r();return n}function ee(e){for(var t,n=[],r=Object($.c)(e);!(t=r()).done;){var o=t.value;n.push.apply(n,o)}return n}function te(e){return e.slice().reverse()}var ne=n("iYXd");function re(e,t){if(t)return null==e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}function oe(e,t){return function(e){return"function"==typeof e}(e)?e(t):e}var ae=n("KCH1");function ie(e){void 0===e&&(e={});var t=Z(e).baseId,n=Object(q.useContext)(ae.a),r=Object(q.useRef)(0),o=Object(q.useState)((function(){return t||n()}));return{baseId:o[0],setBaseId:o[1],unstable_idCountRef:r}}function ce(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function se(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&ce(t.ref.current,e.ref.current)}))}function le(e){for(var t,n=0,r=Object($.c)(e);!(t=r()).done;){var o=t.value.length;o>n&&(n=o)}return n}function ue(e){for(var t=Q(e),n=le(t),r=[],o=0;o<n;o+=1)for(var a,i=Object($.c)(t);!(a=i()).done;){var c=a.value;c[o]&&r.push(Object($.b)(Object($.b)({},c[o]),{},{groupId:c[o].groupId?""+o:void 0}))}return r}function de(e,t,n){for(var r,o=le(e),a=Object($.c)(e);!(r=a()).done;)for(var i=r.value,c=0;c<o;c+=1){var s=i[c];if(!s||n&&s.disabled){var l=0===c&&n?Object(ne.a)(i):i[c-1];i[c]=l&&t!==(null==l?void 0:l.id)&&n?l:{id:"__EMPTY_ITEM__",disabled:!0,ref:{current:null},groupId:null==l?void 0:l.groupId}}}return e}var fe={id:null,ref:{current:null}};function pe(e,t){return e.filter((function(e){return e.groupId===t}))}var be={horizontal:"vertical",vertical:"horizontal"};function he(e,t,n){return n in e?[].concat(e.slice(0,n),[t],e.slice(n)):[].concat(e,[t])}function me(e){var t=e.map((function(e,t){return[t,e]})),n=!1;return t.sort((function(e,t){var r=e[0],o=e[1],a=t[0],i=t[1],c=o.ref.current,s=i.ref.current;return c&&s?ce(c,s)?(r>a&&(n=!0),-1):(r<a&&(n=!0),1):0})),n?t.map((function(e){e[0];return e[1]})):e}function ve(e,t){var n=me(e);e!==n&&t(n)}function ge(e,t){var n=Object(q.useRef)([]);Object(q.useEffect)((function(){for(var r,o=function(e){for(var t,n=e[0],r=e.slice(1),o=null==n||null===(t=n.ref.current)||void 0===t?void 0:t.parentElement,a=function(){var e=o;if(r.every((function(t){return e.contains(t.ref.current)})))return{v:o};o=o.parentElement};o;){var i=a();if("object"==typeof i)return i.v}return Object(J.a)(o).body}(e),a=new IntersectionObserver((function(){!!n.current.length&&ve(e,t),n.current=e}),{root:o}),i=Object($.c)(e);!(r=i()).done;){var c=r.value;c.ref.current&&a.observe(c.ref.current)}return function(){a.disconnect()}}),[e])}function ye(e,t){"function"==typeof IntersectionObserver?ge(e,t):function(e,t){Object(q.useEffect)((function(){var n=setTimeout((function(){return ve(e,t)}),250);return function(){return clearTimeout(n)}}))}(e,t)}function Oe(e,t){var n=e.unstable_virtual,r=e.rtl,o=e.orientation,a=e.items,i=e.groups,c=e.currentId,s=e.loop,l=e.wrap,u=e.pastIds,d=e.shift,f=e.unstable_moves,p=e.unstable_includesBaseElement,b=e.initialVirtual,h=e.initialRTL,m=e.initialOrientation,v=e.initialCurrentId,g=e.initialLoop,y=e.initialWrap,O=e.initialShift,j=e.hasSetCurrentId;switch(t.type){case"registerGroup":var w=t.group;if(0===i.length)return Object($.b)(Object($.b)({},e),{},{groups:[w]});var x=se(i,w);return Object($.b)(Object($.b)({},e),{},{groups:he(i,w,x)});case"unregisterGroup":var _=t.id,E=i.filter((function(e){return e.id!==_}));return E.length===i.length?e:Object($.b)(Object($.b)({},e),{},{groups:E});case"registerItem":var k,S=t.item,C=i.find((function(e){var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(S.ref.current)})),P=Object($.b)({groupId:null==C?void 0:C.id},S),T=se(a,P),M=Object($.b)(Object($.b)({},e),{},{items:he(a,P,T)});return j||f||void 0!==v?M:Object($.b)(Object($.b)({},M),{},{currentId:null===(k=Object(ne.a)(M.items))||void 0===k?void 0:k.id});case"unregisterItem":var D=t.id,I=a.filter((function(e){return e.id!==D}));if(I.length===a.length)return e;var R=u.filter((function(e){return e!==D})),A=Object($.b)(Object($.b)({},e),{},{pastIds:R,items:I});if(c&&c===D){var N=p?null:Object(ne.b)(Object($.b)(Object($.b)({},A),{},{currentId:R[0]}));return Object($.b)(Object($.b)({},A),{},{currentId:N})}return A;case"move":var L=t.id;if(void 0===L)return e;var F=u.filter((function(e){return e!==c&&e!==L})),z=c?[c].concat(F):F,B=Object($.b)(Object($.b)({},e),{},{pastIds:z});if(null===L)return Object($.b)(Object($.b)({},B),{},{unstable_moves:f+1,currentId:Object(ne.b)(B,L)});var H=re(a,L);return Object($.b)(Object($.b)({},B),{},{unstable_moves:H?f+1:f,currentId:Object(ne.b)(B,null==H?void 0:H.id)});case"next":if(null==c)return Oe(e,Object($.b)(Object($.b)({},t),{},{type:"first"}));var V=r&&"vertical"!==o,W=V?te(a):a,U=W.find((function(e){return e.id===c}));if(!U)return Oe(e,Object($.b)(Object($.b)({},t),{},{type:"first"}));var K=!!U.groupId,G=W.indexOf(U),q=W.slice(G+1),Y=pe(q,U.groupId);if(t.allTheWay){var X=Object(ne.a)(V?pe(W,U.groupId):te(Y));return Oe(e,Object($.b)(Object($.b)({},t),{},{type:"move",id:null==X?void 0:X.id}))}var Z=function(e){return e&&be[e]}(K?o||"horizontal":o),J=s&&s!==Z,ae=K&&l&&l!==Z,ie=t.hasNullItem||!K&&J&&p;if(J){var ce=function(e,t,n){var r=e.findIndex((function(e){return e.id===t}));return[].concat(e.slice(r+1),n?[fe]:[],e.slice(0,r))}(ae&&!ie?W:pe(W,U.groupId),c,ie),le=Object(ne.a)(ce,c);return Oe(e,Object($.b)(Object($.b)({},t),{},{type:"move",id:null==le?void 0:le.id}))}if(ae){var ve=Object(ne.a)(ie?Y:q,c),ge=ie?(null==ve?void 0:ve.id)||null:null==ve?void 0:ve.id;return Oe(e,Object($.b)(Object($.b)({},t),{},{type:"move",id:ge}))}var ye=Object(ne.a)(Y,c);return Oe(e,!ye&&ie?Object($.b)(Object($.b)({},t),{},{type:"move",id:null}):Object($.b)(Object($.b)({},t),{},{type:"move",id:null==ye?void 0:ye.id}));case"previous":var je=!!!i.length&&p,we=Oe(Object($.b)(Object($.b)({},e),{},{items:te(a)}),Object($.b)(Object($.b)({},t),{},{type:"next",hasNullItem:je}));return Object($.b)(Object($.b)({},we),{},{items:a});case"down":var xe=d&&!t.allTheWay,_e=ue(ee(de(Q(a),c,xe))),Ee=s&&"horizontal"!==s&&p,ke=Oe(Object($.b)(Object($.b)({},e),{},{orientation:"vertical",items:_e}),Object($.b)(Object($.b)({},t),{},{type:"next",hasNullItem:Ee}));return Object($.b)(Object($.b)({},ke),{},{orientation:o,items:a});case"up":var Se=d&&!t.allTheWay,Ce=ue(te(ee(de(Q(a),c,Se)))),Pe=p,Te=Oe(Object($.b)(Object($.b)({},e),{},{orientation:"vertical",items:Ce}),Object($.b)(Object($.b)({},t),{},{type:"next",hasNullItem:Pe}));return Object($.b)(Object($.b)({},Te),{},{orientation:o,items:a});case"first":var Me=Object(ne.a)(a);return Oe(e,Object($.b)(Object($.b)({},t),{},{type:"move",id:null==Me?void 0:Me.id}));case"last":var De=Oe(Object($.b)(Object($.b)({},e),{},{items:te(a)}),Object($.b)(Object($.b)({},t),{},{type:"first"}));return Object($.b)(Object($.b)({},De),{},{items:a});case"sort":return Object($.b)(Object($.b)({},e),{},{items:me(a),groups:me(i)});case"setVirtual":return Object($.b)(Object($.b)({},e),{},{unstable_virtual:oe(t.virtual,n)});case"setRTL":return Object($.b)(Object($.b)({},e),{},{rtl:oe(t.rtl,r)});case"setOrientation":return Object($.b)(Object($.b)({},e),{},{orientation:oe(t.orientation,o)});case"setCurrentId":var Ie=Object(ne.b)(Object($.b)(Object($.b)({},e),{},{currentId:oe(t.currentId,c)}));return Object($.b)(Object($.b)({},e),{},{currentId:Ie,hasSetCurrentId:!0});case"setLoop":return Object($.b)(Object($.b)({},e),{},{loop:oe(t.loop,s)});case"setWrap":return Object($.b)(Object($.b)({},e),{},{wrap:oe(t.wrap,l)});case"setShift":return Object($.b)(Object($.b)({},e),{},{shift:oe(t.shift,d)});case"setIncludesBaseElement":return Object($.b)(Object($.b)({},e),{},{unstable_includesBaseElement:oe(t.includesBaseElement,p)});case"reset":return Object($.b)(Object($.b)({},e),{},{unstable_virtual:b,rtl:h,orientation:m,currentId:Object(ne.b)(Object($.b)(Object($.b)({},e),{},{currentId:v})),loop:g,wrap:y,shift:O,unstable_moves:0,pastIds:[]});case"setItems":return Object($.b)(Object($.b)({},e),{},{items:t.items});default:throw new Error}}function je(e){return Object(q.useCallback)(e,[])}function we(e){void 0===e&&(e={});var t=Z(e),n=t.unstable_virtual,r=void 0!==n&&n,o=t.rtl,a=void 0!==o&&o,i=t.orientation,c=t.currentId,s=t.loop,l=void 0!==s&&s,u=t.wrap,d=void 0!==u&&u,f=t.shift,p=void 0!==f&&f,b=t.unstable_includesBaseElement,h=ie(Object($.a)(t,["unstable_virtual","rtl","orientation","currentId","loop","wrap","shift","unstable_includesBaseElement"])),m=Object(q.useReducer)(Oe,{unstable_virtual:r,rtl:a,orientation:i,items:[],groups:[],currentId:c,loop:l,wrap:d,shift:p,unstable_moves:0,pastIds:[],unstable_includesBaseElement:null!=b?b:null===c,initialVirtual:r,initialRTL:a,initialOrientation:i,initialCurrentId:c,initialLoop:l,initialWrap:d,initialShift:p}),v=m[0],g=(v.pastIds,v.initialVirtual,v.initialRTL,v.initialOrientation,v.initialCurrentId,v.initialLoop,v.initialWrap,v.initialShift,v.hasSetCurrentId,Object($.a)(v,["pastIds","initialVirtual","initialRTL","initialOrientation","initialCurrentId","initialLoop","initialWrap","initialShift","hasSetCurrentId"])),y=m[1],O=Object(q.useState)(!1),j=O[0],w=O[1],x=function(){var e=Object(q.useRef)(!1);return Object(X.a)((function(){return function(){e.current=!0}}),[]),e}(),_=Object(q.useCallback)((function(e){return y({type:"setItems",items:e})}),[]);return ye(g.items,_),Object($.b)(Object($.b)(Object($.b)({},h),g),{},{unstable_hasActiveWidget:j,unstable_setHasActiveWidget:w,registerItem:je((function(e){x.current||y({type:"registerItem",item:e})})),unregisterItem:je((function(e){x.current||y({type:"unregisterItem",id:e})})),registerGroup:je((function(e){x.current||y({type:"registerGroup",group:e})})),unregisterGroup:je((function(e){x.current||y({type:"unregisterGroup",id:e})})),move:je((function(e){return y({type:"move",id:e})})),next:je((function(e){return y({type:"next",allTheWay:e})})),previous:je((function(e){return y({type:"previous",allTheWay:e})})),up:je((function(e){return y({type:"up",allTheWay:e})})),down:je((function(e){return y({type:"down",allTheWay:e})})),first:je((function(){return y({type:"first"})})),last:je((function(){return y({type:"last"})})),sort:je((function(){return y({type:"sort"})})),unstable_setVirtual:je((function(e){return y({type:"setVirtual",virtual:e})})),setRTL:je((function(e){return y({type:"setRTL",rtl:e})})),setOrientation:je((function(e){return y({type:"setOrientation",orientation:e})})),setCurrentId:je((function(e){return y({type:"setCurrentId",currentId:e})})),setLoop:je((function(e){return y({type:"setLoop",loop:e})})),setWrap:je((function(e){return y({type:"setWrap",wrap:e})})),setShift:je((function(e){return y({type:"setShift",shift:e})})),unstable_setIncludesBaseElement:je((function(e){return y({type:"setIncludesBaseElement",includesBaseElement:e})})),reset:je((function(){return y({type:"reset"})}))})}var xe=n("hE48"),_e=n("qdes"),Ee=n("aU41"),ke=(n("KA1K"),n("eNtd")),Se=n("k2cL"),Ce=n("zGFp"),Pe=n("G3V0"),Te=n("IVEb"),Me=n("I/A+"),De=n("khzz");function Ie(e,t,n){return void 0===n&&(n={}),"function"==typeof FocusEvent?new FocusEvent(t,n):Object(De.a)(e,t,n)}function Re(e,t){var n=Ie(e,"blur",t),r=e.dispatchEvent(n),o=Object(Me.b)(Object(Me.b)({},t),{},{bubbles:!0});return e.dispatchEvent(Ie(e,"focusout",o)),r}var Ae=n("SyVe");function Ne(e,t,n){return e.dispatchEvent(function(e,t,n){if(void 0===n&&(n={}),"function"==typeof KeyboardEvent)return new KeyboardEvent(t,n);var r=Object(J.a)(e).createEvent("KeyboardEvent");return r.initKeyboardEvent(t,n.bubbles,n.cancelable,Object(Ae.a)(e),n.key,n.location,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey),r}(e,t,n))}var Le=n("+ipW"),Fe=n("Nym8"),ze=Le.a&&"msCrypto"in window;function Be(e){return ze?Object(Fe.a)(e.currentTarget):e.relatedTarget}var He=n("TFuP"),Ve=n("Mih7"),We=Le.a&&"msCrypto"in window;function Ue(e,t,n){var r=Object(ke.a)(n);return Object(q.useCallback)((function(n){var o;if(null===(o=r.current)||void 0===o||o.call(r,n),!n.defaultPrevented&&e&&function(e){return!!Object(Se.a)(e)&&(!e.metaKey&&"Tab"!==e.key)}(n)){var a=null==t?void 0:t.ref.current;a&&(Ne(a,n.type,n)||n.preventDefault(),n.currentTarget.contains(a)&&n.stopPropagation())}}),[e,t])}function Ke(e,t){return null==e?void 0:e.some((function(e){return!!t&&e.ref.current===t}))}var Ge=Object(_e.a)({name:"Composite",compose:[Pe.a],keys:He.a,useOptions:function(e){return Object($.b)(Object($.b)({},e),{},{currentId:Object(ne.b)(e)})},useProps:function(e,t){var n=t.ref,r=t.onFocusCapture,o=t.onFocus,a=t.onBlurCapture,i=t.onKeyDown,c=t.onKeyDownCapture,s=t.onKeyUpCapture,l=Object($.a)(t,["ref","onFocusCapture","onFocus","onBlurCapture","onKeyDown","onKeyDownCapture","onKeyUpCapture"]),u=Object(q.useRef)(null),d=re(e.items,e.currentId),f=Object(q.useRef)(null),p=Object(ke.a)(r),b=Object(ke.a)(o),h=Object(ke.a)(a),m=Object(ke.a)(i),v=function(e){var t=Object(ke.a)(e),n=Object(q.useReducer)((function(e){return e+1}),0),r=n[0],o=n[1];return Object(q.useEffect)((function(){var e,n=null===(e=t.current)||void 0===e?void 0:e.ref.current;r&&n&&Object(Ve.c)(n)}),[r]),o}(d),g=We?function(e){var t=Object(q.useRef)(null);return Object(q.useEffect)((function(){var n=Object(J.a)(e.current),r=function(e){var n=e.target;t.current=n};return n.addEventListener("focus",r,!0),function(){n.removeEventListener("focus",r,!0)}}),[]),t}(u):void 0;Object(q.useEffect)((function(){var t=u.current;e.unstable_moves&&!d&&(null==t||t.focus())}),[e.unstable_moves,d]);var y=Ue(e.unstable_virtual,d,c),O=Ue(e.unstable_virtual,d,s),j=Object(q.useCallback)((function(t){var n;if(null===(n=p.current)||void 0===n||n.call(p,t),!t.defaultPrevented&&e.unstable_virtual){var r=(null==g?void 0:g.current)||t.relatedTarget,o=Ke(e.items,r);Object(Se.a)(t)&&o&&(t.stopPropagation(),f.current=r)}}),[e.unstable_virtual,e.items]),w=Object(q.useCallback)((function(t){var n;if(null===(n=b.current)||void 0===n||n.call(b,t),!t.defaultPrevented)if(e.unstable_virtual)Object(Se.a)(t)&&v();else if(Object(Se.a)(t)){var r;null===(r=e.setCurrentId)||void 0===r||r.call(e,null)}}),[e.unstable_virtual,e.setCurrentId]),x=Object(q.useCallback)((function(t){var n;if(null===(n=h.current)||void 0===n||n.call(h,t),!t.defaultPrevented&&e.unstable_virtual){var r=(null==d?void 0:d.ref.current)||null,o=Be(t),a=Ke(e.items,o);if(Object(Se.a)(t)&&a)o===r?f.current&&f.current!==o&&Re(f.current,t):r&&Re(r,t),t.stopPropagation();else!Ke(e.items,t.target)&&r&&Re(r,t)}}),[e.unstable_virtual,e.items,d]),_=Object(q.useCallback)((function(t){var n,r;if(null===(n=m.current)||void 0===n||n.call(m,t),!t.defaultPrevented&&null===e.currentId&&Object(Se.a)(t)){var o="horizontal"!==e.orientation,a="vertical"!==e.orientation,i=!(null===(r=e.groups)||void 0===r||!r.length),c={ArrowUp:(i||o)&&function(){if(i){var t,n=(o=e.items,Object(ne.a)(ee(te(Q(o)))));if(null!=n&&n.id)null===(t=e.move)||void 0===t||t.call(e,n.id)}else{var r;null===(r=e.last)||void 0===r||r.call(e)}var o},ArrowRight:(i||a)&&e.first,ArrowDown:(i||o)&&e.first,ArrowLeft:(i||a)&&e.last,Home:e.first,End:e.last,PageUp:e.first,PageDown:e.last}[t.key];c&&(t.preventDefault(),c())}}),[e.currentId,e.orientation,e.groups,e.items,e.move,e.last,e.first]);return Object($.b)({ref:Object(Ee.a)(u,n),id:e.baseId,onFocus:w,onFocusCapture:j,onBlurCapture:x,onKeyDownCapture:y,onKeyDown:_,onKeyUpCapture:O,"aria-activedescendant":e.unstable_virtual&&(null==d?void 0:d.id)||void 0},l)},useComposeProps:function(e,t){t=Object(Ce.a)(e,t,!0);var n=Object(Pe.a)(e,t,!0);return e.unstable_virtual||null===e.currentId?Object($.b)({tabIndex:0},n):Object($.b)(Object($.b)({},t),{},{ref:n.ref})}}),$e=Object(xe.a)({as:"div",useHook:Ge,useCreateElement:function(e,t,n){return Object(Te.a)(e,t,n)}}),qe=n("ym77"),Ye=Object(_e.a)({name:"Group",compose:Ce.a,keys:[],useProps:function(e,t){return Object($.b)({role:"group"},t)}}),Xe=(Object(xe.a)({as:"div",useHook:Ye}),Object(_e.a)({name:"CompositeGroup",compose:[Ye,qe.a],keys:He.b,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return Ye.unstable_propsAreEqual(e,t);var n=e.currentId,r=(e.unstable_moves,Object($.a)(e,["currentId","unstable_moves"])),o=t.currentId,a=(t.unstable_moves,Object($.a)(t,["currentId","unstable_moves"]));if(e.items&&t.items){var i=re(e.items,n),c=re(t.items,o),s=null==i?void 0:i.groupId,l=null==c?void 0:c.groupId;if(t.id===l||t.id===s)return!1}return Ye.unstable_propsAreEqual(r,a)},useProps:function(e,t){var n=t.ref,r=Object($.a)(t,["ref"]),o=Object(q.useRef)(null),a=e.id;return Object(X.a)((function(){var t;if(a)return null===(t=e.registerGroup)||void 0===t||t.call(e,{id:a,ref:o}),function(){var t;null===(t=e.unregisterGroup)||void 0===t||t.call(e,a)}}),[a,e.registerGroup,e.unregisterGroup]),Object($.b)({ref:Object(Ee.a)(o,n)},r)}})),Ze=Object(xe.a)({as:"div",useHook:Xe});Object(w.a)("div",{target:"elqsdmc2"})({name:"ogl07i",styles:"box-sizing:border-box;padding:2px"});const Je=Object(w.a)("div",{target:"elqsdmc1"})("transform-origin:top left;height:100%;width:100%;",B,";",()=>Object(x.a)({gridTemplateRows:"repeat( 3, calc( 21px / 3))",padding:1.5,maxHeight:24,maxWidth:24},"",""),";",e=>{let{disablePointerEvents:t}=e;return Object(x.a)({pointerEvents:t?"none":null},"","")},";"),Qe=Object(w.a)("span",{target:"elqsdmc0"})("height:2px;width:2px;",W,";",e=>{let{isActive:t}=e;const n=t?"0 0 0 1px currentColor":null;return Object(x.a)("box-shadow:",n,";color:currentColor;*:hover>&{color:currentColor;}","")},";"),et=K,tt=24;function nt(e){let{className:t,id:n,label:r=Object(f.__)("Alignment Matrix Control"),defaultValue:o="center center",value:a,onChange:i=l.noop,width:u=92,...b}=e;const[h]=Object(s.useState)(null!=a?a:o),m=function(e){const t=Object(p.useInstanceId)(nt,"alignment-matrix-control");return e||t}(n),g=j(m,h),y=we({baseId:m,currentId:g,rtl:Object(f.isRTL)()});Object(s.useEffect)(()=>{void 0!==a&&y.setCurrentId(j(m,a))},[a,y.setCurrentId]);const O=d()("component-alignment-matrix-control",t);return Object(s.createElement)($e,Object(c.a)({},b,y,{"aria-label":r,as:H,className:O,role:"grid",width:u}),v.map((e,t)=>Object(s.createElement)(Ze,Object(c.a)({},y,{as:V,role:"row",key:t}),e.map(e=>{const t=j(m,e),n=y.currentId===t;return Object(s.createElement)(G,Object(c.a)({},y,{id:t,isActive:n,key:e,value:e,onFocus:()=>{i(e)},tabIndex:n?0:-1}))}))))}nt.Icon=function(e){let{className:t,disablePointerEvents:n=!0,size:r=tt,style:o={},value:a="center",...i}=e;const l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"center";const t=O(e).replace("-"," "),n=y.indexOf(t);return n>-1?n:void 0}(a),u=(r/tt).toFixed(2),f=d()("component-alignment-matrix-control-icon",t),p={...o,transform:`scale(${u})`};return Object(s.createElement)(Je,Object(c.a)({},i,{className:f,disablePointerEvents:n,role:"presentation",size:r,style:p}),y.map((e,t)=>{const n=l===t;return Object(s.createElement)(et,{key:e},Object(s.createElement)(Qe,{isActive:n}))}))};var rt=n("L8Kx"),ot=function(e,t){return(ot=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)}; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -49,7 +49,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Sr=function(){return(Sr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function Cr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;Object.create;var Pr=function(e,t,n){return Math.min(Math.max(n,e),t)};function Tr(e){var t,n,r=e.duration,o=void 0===r?800:r,a=e.bounce,i=void 0===a?.25:a,c=e.velocity,s=void 0===c?0:c,l=e.mass,u=void 0===l?1:l,d=1-i;d=Pr(.05,1,d),o=Pr(.01,10,o/1e3),d<1?(t=function(e){var t=e*d,n=t*o;return.001-(t-s)/Mr(e,d)*Math.exp(-n)},n=function(e){var n=e*d*o,r=n*s+s,a=Math.pow(d,2)*Math.pow(e,2)*o,i=Math.exp(-n),c=Mr(Math.pow(e,2),d);return(.001-t(e)>0?-1:1)*((r-a)*i)/c}):(t=function(e){return Math.exp(-e*o)*((e-s)*o+1)-.001},n=function(e){return Math.exp(-e*o)*(o*o*(s-e))});var f=function(e,t,n){for(var r=n,o=1;o<12;o++)r-=e(r)/t(r);return r}(t,n,5/o);if(o*=1e3,isNaN(f))return{stiffness:100,damping:10,duration:o};var p=Math.pow(f,2)*u;return{stiffness:p,damping:2*d*Math.sqrt(u*p),duration:o}}function Mr(e,t){return e*Math.sqrt(1-t*t)}var Dr=["duration","bounce"],Ir=["stiffness","damping","mass"];function Rr(e,t){return t.some((function(t){return void 0!==e[t]}))}function Ar(e){var t=e.from,n=void 0===t?0:t,r=e.to,o=void 0===r?1:r,a=e.restSpeed,i=void 0===a?2:a,c=e.restDelta,s=Cr(e,["from","to","restSpeed","restDelta"]),l={done:!1,value:n},u=function(e){var t=Sr({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Rr(e,Ir)&&Rr(e,Dr)){var n=Tr(e);(t=Sr(Sr(Sr({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(s),d=u.stiffness,f=u.damping,p=u.mass,b=u.velocity,h=u.duration,m=u.isResolvedFromDuration,v=Nr,g=Nr;function y(){var e=b?-b/1e3:0,t=o-n,r=f/(2*Math.sqrt(d*p)),a=Math.sqrt(d/p)/1e3;if(null!=c||(c=Math.abs(o-n)<=1?.01:.4),r<1){var i=Mr(a,r);v=function(n){var c=Math.exp(-r*a*n);return o-c*((e+r*a*t)/i*Math.sin(i*n)+t*Math.cos(i*n))},g=function(n){var o=Math.exp(-r*a*n);return r*a*o*(Math.sin(i*n)*(e+r*a*t)/i+t*Math.cos(i*n))-o*(Math.cos(i*n)*(e+r*a*t)-i*t*Math.sin(i*n))}}else if(1===r)v=function(n){return o-Math.exp(-a*n)*(t+(e+a*t)*n)};else{var s=a*Math.sqrt(r*r-1);v=function(n){var i=Math.exp(-r*a*n),c=Math.min(s*n,300);return o-i*((e+r*a*t)*Math.sinh(c)+s*t*Math.cosh(c))/s}}}return y(),{next:function(e){var t=v(e);if(m)l.done=e>=h;else{var n=1e3*g(e),r=Math.abs(n)<=i,a=Math.abs(o-t)<=c;l.done=r&&a}return l.value=l.done?o:t,l},flipTarget:function(){var e;b=-b,n=(e=[o,n])[0],o=e[1],y()}}}Ar.needsInterpolation=function(e,t){return"string"==typeof e||"string"==typeof t};var Nr=function(e){return 0},Lr=function(e,t,n){var r=t-e;return 0===r?1:(n-e)/r},Fr=function(e,t,n){return-n*e+n*t+e},zr=function(e,t){return function(n){return Boolean(cn(n)&&an.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t))}},Br=function(e,t,n){return function(r){var o;if(!cn(r))return r;var a=r.match(rn),i=a[0],c=a[1],s=a[2],l=a[3];return(o={})[e]=parseFloat(i),o[t]=parseFloat(c),o[n]=parseFloat(s),o.alpha=void 0!==l?parseFloat(l):1,o}},Hr=tn(0,255),Vr=en(en({},hn),{transform:function(e){return Math.round(Hr(e))}}),Wr={test:zr("rgb","red"),parse:Br("red","green","blue"),transform:function(e){var t=e.red,n=e.green,r=e.blue,o=e.alpha,a=void 0===o?1:o;return"rgba("+Vr.transform(t)+", "+Vr.transform(n)+", "+Vr.transform(r)+", "+nn(mn.transform(a))+")"}};var Ur={test:zr("#"),parse:function(e){var t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:Wr.transform},Kr={test:zr("hsl","hue"),parse:Br("hue","saturation","lightness"),transform:function(e){var t=e.hue,n=e.saturation,r=e.lightness,o=e.alpha,a=void 0===o?1:o;return"hsla("+Math.round(t)+", "+un.transform(nn(n))+", "+un.transform(nn(r))+", "+nn(mn.transform(a))+")"}},Gr=function(e,t,n){var r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},$r=[Ur,Wr,Kr],qr=function(e){return $r.find((function(t){return t.test(e)}))},Yr=function(e){return"'"+e+"' is not an animatable color. Use the equivalent color code instead."},Xr=function(e,t){var n=qr(e),r=qr(t);Yr(e),Yr(t),n.transform,r.transform;var o=n.parse(e),a=r.parse(t),i=Sr({},o),c=n===Kr?Fr:Gr;return function(e){for(var t in i)"alpha"!==t&&(i[t]=c(o[t],a[t],e));return i.alpha=Fr(o.alpha,a.alpha,e),n.transform(i)}},Zr={test:function(e){return Wr.test(e)||Ur.test(e)||Kr.test(e)},parse:function(e){return Wr.test(e)?Wr.parse(e):Kr.test(e)?Kr.parse(e):Ur.parse(e)},transform:function(e){return cn(e)?e:e.hasOwnProperty("red")?Wr.transform(e):Kr.transform(e)}};function Jr(e){var t=[],n=0,r=e.match(on);r&&(n=r.length,e=e.replace(on,"${c}"),t.push.apply(t,r.map(Zr.parse)));var o=e.match(rn);return o&&(e=e.replace(rn,"${n}"),t.push.apply(t,o.map(hn.parse))),{values:t,numColors:n,tokenised:e}}function Qr(e){return Jr(e).values}function eo(e){var t=Jr(e),n=t.values,r=t.numColors,o=t.tokenised,a=n.length;return function(e){for(var t=o,n=0;n<a;n++)t=t.replace(n<r?"${c}":"${n}",n<r?Zr.transform(e[n]):nn(e[n]));return t}}var to=function(e){return"number"==typeof e?0:e};var no={test:function(e){var t,n,r,o;return isNaN(e)&&cn(e)&&(null!==(n=null===(t=e.match(rn))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(on))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:Qr,createTransformer:eo,getAnimatableNone:function(e){var t=Qr(e);return eo(e)(t.map(to))}},ro=function(e){return"number"==typeof e};function oo(e,t){return ro(e)?function(n){return Fr(e,t,n)}:Zr.test(e)?Xr(e,t):so(e,t)}var ao=function(e,t){var n=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],e),r=n.length,o=e.map((function(e,n){return oo(e,t[n])}));return function(e){for(var t=0;t<r;t++)n[t]=o[t](e);return n}},io=function(e,t){var n=Sr(Sr({},e),t),r={};for(var o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=oo(e[o],t[o]));return function(e){for(var t in r)n[t]=r[t](e);return n}};function co(e){for(var t=no.parse(e),n=t.length,r=0,o=0,a=0,i=0;i<n;i++)r||"number"==typeof t[i]?r++:void 0!==t[i].hue?a++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:a}}var so=function(e,t){var n=no.createTransformer(t),r=co(e),o=co(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&(r.numNumbers,o.numNumbers),xr(ao(r.parsed,o.parsed),n)},lo=function(e,t){return function(n){return Fr(e,t,n)}};function uo(e,t,n){for(var r,o=[],a=n||("number"==typeof(r=e[0])?lo:"string"==typeof r?Zr.test(r)?Xr:so:Array.isArray(r)?ao:"object"==typeof r?io:void 0),i=e.length-1,c=0;c<i;c++){var s=a(e[c],e[c+1]);if(t){var l=Array.isArray(t)?t[c]:t;s=xr(l,s)}o.push(s)}return o}function fo(e,t,n){var r=void 0===n?{}:n,o=r.clamp,a=void 0===o||o,i=r.ease,c=r.mixer,s=e.length;t.length,!i||!Array.isArray(i)||i.length,e[0]>e[s-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());var l=uo(t,i,c),u=2===s?function(e,t){var n=e[0],r=e[1],o=t[0];return function(e){return o(Lr(n,r,e))}}(e,l):function(e,t){var n=e.length,r=n-1;return function(o){var a=0,i=!1;if(o<=e[0]?i=!0:o>=e[r]&&(a=r-1,i=!0),!i){for(var c=1;c<n&&!(e[c]>o||c===r);c++);a=c-1}var s=Lr(e[a],e[a+1],o);return t[a](s)}}(e,l);return a?function(t){return u(Pr(e[0],e[s-1],t))}:u}var po,bo=function(e){return function(t){return 1-e(1-t)}},ho=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},mo=function(e){return function(t){return t*t*((e+1)*t-e)}},vo=function(e){return e},go=(po=2,function(e){return Math.pow(e,po)}),yo=bo(go),Oo=ho(go),jo=function(e){return 1-Math.sin(Math.acos(e))},wo=bo(jo),xo=ho(wo),_o=mo(1.525),Eo=bo(_o),ko=ho(_o),So=function(e){var t=mo(e);return function(e){return(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))}}(1.525),Co=function(e){if(1===e||0===e)return e;var t=e*e;return e<4/11?7.5625*t:e<8/11?9.075*t-9.9*e+3.4:e<.9?4356/361*t-35442/1805*e+16061/1805:10.8*e*e-20.52*e+10.72},Po=bo(Co);function To(e,t){return e.map((function(){return t||Oo})).splice(0,e.length-1)}function Mo(e){var t=e.from,n=void 0===t?0:t,r=e.to,o=void 0===r?1:r,a=e.ease,i=e.offset,c=e.duration,s=void 0===c?300:c,l={done:!1,value:n},u=Array.isArray(o)?o:[n,o],d=function(e,t){return e.map((function(e){return e*t}))}(i&&i.length===u.length?i:function(e){var t=e.length;return e.map((function(e,n){return 0!==n?n/(t-1):0}))}(u),s);function f(){return fo(d,u,{ease:Array.isArray(a)?a:To(u,a)})}var p=f();return{next:function(e){return l.value=p(e),l.done=e>=s,l},flipTarget:function(){u.reverse(),p=f()}}}var Do={keyframes:Mo,spring:Ar,decay:function(e){var t=e.velocity,n=void 0===t?0:t,r=e.from,o=void 0===r?0:r,a=e.power,i=void 0===a?.8:a,c=e.timeConstant,s=void 0===c?350:c,l=e.restDelta,u=void 0===l?.5:l,d=e.modifyTarget,f={done:!1,value:o},p=i*n,b=o+p,h=void 0===d?b:d(b);return h!==b&&(p=h-o),{next:function(e){var t=-p*Math.exp(-e/s);return f.done=!(t>u||t<-u),f.value=f.done?h:h+t,f},flipTarget:function(){}}}};var Io="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},Ro="undefined"!=typeof window?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout((function(){return e(Io())}),1/60*1e3)};var Ao=!0,No=!1,Lo=!1,Fo={delta:0,timestamp:0},zo=["read","update","preRender","render","postRender"],Bo=zo.reduce((function(e,t){return e[t]=function(e){var t=[],n=[],r=0,o=!1,a=new WeakSet,i={schedule:function(e,i,c){void 0===i&&(i=!1),void 0===c&&(c=!1);var s=c&&o,l=s?t:n;return i&&a.add(e),-1===l.indexOf(e)&&(l.push(e),s&&o&&(r=t.length)),e},cancel:function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:function(c){var s;if(o=!0,t=(s=[n,t])[0],(n=s[1]).length=0,r=t.length)for(var l=0;l<r;l++){var u=t[l];u(c),a.has(u)&&(i.schedule(u),e())}o=!1}};return i}((function(){return No=!0})),e}),{}),Ho=zo.reduce((function(e,t){var n=Bo[t];return e[t]=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),No||Go(),n.schedule(e,t,r)},e}),{}),Vo=zo.reduce((function(e,t){return e[t]=Bo[t].cancel,e}),{}),Wo=zo.reduce((function(e,t){return e[t]=function(){return Bo[t].process(Fo)},e}),{}),Uo=function(e){return Bo[e].process(Fo)},Ko=function(e){No=!1,Fo.delta=Ao?1/60*1e3:Math.max(Math.min(e-Fo.timestamp,40),1),Fo.timestamp=e,Lo=!0,zo.forEach(Uo),Lo=!1,No&&(Ao=!1,Ro(Ko))},Go=function(){No=!0,Ao=!0,Lo||Ro(Ko)},$o=function(){return Fo},qo=Ho;function Yo(e,t,n){return void 0===n&&(n=0),e-t-n}var Xo=function(e){var t=function(t){var n=t.delta;return e(n)};return{start:function(){return qo.update(t,!0)},stop:function(){return Vo.update(t)}}};function Zo(e){var t,n,r,o,a,i=e.from,c=e.autoplay,s=void 0===c||c,l=e.driver,u=void 0===l?Xo:l,d=e.elapsed,f=void 0===d?0:d,p=e.repeat,b=void 0===p?0:p,h=e.repeatType,m=void 0===h?"loop":h,v=e.repeatDelay,g=void 0===v?0:v,y=e.onPlay,O=e.onStop,j=e.onComplete,w=e.onRepeat,x=e.onUpdate,_=Cr(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),E=_.to,k=0,S=_.duration,C=!1,P=!0,T=function(e){if(Array.isArray(e.to))return Mo;if(Do[e.type])return Do[e.type];var t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Mo:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Ar:Mo}(_);(null===(n=(t=T).needsInterpolation)||void 0===n?void 0:n.call(t,i,E))&&(a=fo([0,100],[i,E],{clamp:!1}),i=0,E=100);var M=T(Sr(Sr({},_),{from:i,to:E}));function D(){k++,"reverse"===m?f=function(e,t,n,r){return void 0===n&&(n=0),void 0===r&&(r=!0),r?Yo(t+-e,t,n):t-(e-t)+n}(f,S,g,P=k%2==0):(f=Yo(f,S,g),"mirror"===m&&M.flipTarget()),C=!1,w&&w()}function I(e){if(P||(e=-e),f+=e,!C){var t=M.next(Math.max(0,f));o=t.value,a&&(o=a(o)),C=P?t.done:f<=0}null==x||x(o),C&&(0===k&&(null!=S||(S=f)),k<b?function(e,t,n,r){return r?e>=t+n:e<=-n}(f,S,g,P)&&D():(r.stop(),j&&j()))}return s&&(null==y||y(),(r=u(I)).start()),{stop:function(){null==O||O(),r.stop()}}}function Jo(e,t){return t?e*(1e3/t):0}var Qo=function(e){return 1e3*e},ea=function(e,t){return 1-3*t+3*e},ta=function(e,t){return 3*t-6*e},na=function(e){return 3*e},ra=function(e,t,n){return((ea(t,n)*e+ta(t,n))*e+na(t))*e},oa=function(e,t,n){return 3*ea(t,n)*e*e+2*ta(t,n)*e+na(t)};function aa(e,t,n,r){if(e===t&&n===r)return vo;for(var o=new Float32Array(11),a=0;a<11;++a)o[a]=ra(.1*a,e,n);function i(t){for(var r=0,a=1;10!==a&&o[a]<=t;++a)r+=.1;--a;var i=r+.1*((t-o[a])/(o[a+1]-o[a])),c=oa(i,e,n);return c>=.001?function(e,t,n,r){for(var o=0;o<8;++o){var a=oa(t,n,r);if(0===a)return t;t-=(ra(t,n,r)-e)/a}return t}(t,i,e,n):0===c?i:function(e,t,n,r,o){var a,i,c=0;do{(a=ra(i=t+(n-t)/2,r,o)-e)>0?n=i:t=i}while(Math.abs(a)>1e-7&&++c<10);return i}(t,r,r+.1,e,n)}return function(e){return 0===e||1===e?e:ra(i(e),t,r)}}var ia={linear:vo,easeIn:go,easeInOut:Oo,easeOut:yo,circIn:jo,circInOut:xo,circOut:wo,backIn:_o,backInOut:ko,backOut:Eo,anticipate:So,bounceIn:Po,bounceInOut:function(e){return e<.5?.5*(1-Co(1-2*e)):.5*Co(2*e-1)+.5},bounceOut:Co},ca=function(e){if(Array.isArray(e)){e.length;var t=st(e,4);return aa(t[0],t[1],t[2],t[3])}return"string"==typeof e?ia[e]:e},sa=function(e,t){return"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!no.test(t)||t.startsWith("url(")))},la=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},ua=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}},da=function(){return{type:"keyframes",ease:"linear",duration:.3}},fa=function(e){return{type:"keyframes",duration:.8,values:e}},pa={x:la,y:la,z:la,rotate:la,rotateX:la,rotateY:la,rotateZ:la,scaleX:ua,scaleY:ua,scale:ua,opacity:da,backgroundColor:da,color:da,default:ua},ba=new Set(["brightness","contrast","saturate","opacity"]);function ha(e){var t=e.slice(0,-1).split("("),n=t[0],r=t[1];if("drop-shadow"===n)return e;var o=(r.match(rn)||[])[0];if(!o)return e;var a=r.replace(o,""),i=ba.has(n)?1:0;return o!==r&&(i*=100),n+"("+i+a+")"}var ma=/([a-z-]*)\(.*?\)/g,va=en(en({},no),{getAnimatableNone:function(e){var t=e.match(ma);return t?t.map(ha).join(" "):e}}),ga=it(it({},yn),{color:Zr,backgroundColor:Zr,outlineColor:Zr,fill:Zr,stroke:Zr,borderColor:Zr,borderTopColor:Zr,borderRightColor:Zr,borderBottomColor:Zr,borderLeftColor:Zr,filter:va,WebkitFilter:va}),ya=function(e){return ga[e]};function Oa(e,t){var n,r=ya(e);return r!==va&&(r=no),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}function ja(e){var t=e.ease,n=e.times,r=e.yoyo,o=e.flip,a=e.loop,i=ct(e,["ease","times","yoyo","flip","loop"]),c=it({},i);return n&&(c.offset=n),i.duration&&(c.duration=Qo(i.duration)),i.repeatDelay&&(c.repeatDelay=Qo(i.repeatDelay)),t&&(c.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(ca):ca(t)),"tween"===i.type&&(c.type="keyframes"),(r||a||o)&&(!0,r?c.repeatType="reverse":a?c.repeatType="loop":o&&(c.repeatType="mirror"),c.repeat=a||r||o||i.repeat),"spring"!==i.type&&(c.type="keyframes"),c}function wa(e,t,n){var r,o,a,i;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=lt([],st(e.to)),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=ct(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=it(it({},e),(o=n,a=t.to,i=Kn(a)?fa:pa[o]||pa.default,it({to:a},i(a))))),it(it({},t),ja(e))}function xa(e,t,n,r,o){var a,i=ka(r,e),c=null!==(a=i.from)&&void 0!==a?a:t.get(),s=sa(e,n);"none"===c&&s&&"string"==typeof n?c=Oa(e,n):_a(c)&&"string"==typeof n?c=Ea(n):!Array.isArray(n)&&_a(n)&&"string"==typeof c&&(n=Ea(c));var l=sa(e,c);return l&&s&&!1!==i.type?function(){var r={from:c,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:function(e){return t.set(e)}};return"inertia"===i.type||"decay"===i.type?function(e){var t,n=e.from,r=void 0===n?0:n,o=e.velocity,a=void 0===o?0:o,i=e.min,c=e.max,s=e.power,l=void 0===s?.8:s,u=e.timeConstant,d=void 0===u?750:u,f=e.bounceStiffness,p=void 0===f?500:f,b=e.bounceDamping,h=void 0===b?10:b,m=e.restDelta,v=void 0===m?1:m,g=e.modifyTarget,y=e.driver,O=e.onUpdate,j=e.onComplete;function w(e){return void 0!==i&&e<i||void 0!==c&&e>c}function x(e){return void 0===i?c:void 0===c||Math.abs(i-e)<Math.abs(c-e)?i:c}function _(e){null==t||t.stop(),t=Zo(Sr(Sr({},e),{driver:y,onUpdate:function(t){var n;null==O||O(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:j}))}function E(e){_(Sr({type:"spring",stiffness:p,damping:h,restDelta:v},e))}if(w(r))E({from:r,velocity:a,to:x(r)});else{var k=l*a+r;void 0!==g&&(k=g(k));var S,C,P=x(k),T=P===i?-1:1;_({type:"decay",from:r,velocity:a,timeConstant:d,power:l,restDelta:v,modifyTarget:g,onUpdate:w(k)?function(e){S=C,C=e,a=Jo(e-S,$o().delta),(1===T&&e>P||-1===T&&e<P)&&E({from:e,to:P,velocity:a})}:void 0})}return{stop:function(){return null==t?void 0:t.stop()}}}(it(it({},r),i)):Zo(it(it({},wa(i,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=i.onUpdate)||void 0===t||t.call(i,e)},onComplete:function(){var e;r.onComplete(),null===(e=i.onComplete)||void 0===e||e.call(i)}}))}:function(){var e;return t.set(n),o(),null===(e=null==i?void 0:i.onComplete)||void 0===e||e.call(i),{stop:function(){}}}}function _a(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Ea(e){return"number"==typeof e?0:Oa("",e)}function ka(e,t){return e[t]||e.default||e}function Sa(e,t,n,r){return void 0===r&&(r={}),t.start((function(o){var a,i,c=xa(e,t,n,r,o),s=function(e,t){var n;return null!==(n=(ka(e,t)||{}).delay)&&void 0!==n?n:0}(r,e),l=function(){return i=c()};return s?a=setTimeout(l,Qo(s)):l(),function(){clearTimeout(a),null==i||i.stop()}}))}function Ca(e,t){-1===e.indexOf(t)&&e.push(t)}function Pa(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Ta=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Ca(this.subscriptions,e),function(){return Pa(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var o=0;o<r;o++){var a=this.subscriptions[o];a&&a(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),Ma=function(){function e(e){var t,n=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Ta,this.velocityUpdateSubscribers=new Ta,this.renderSubscribers=new Ta,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),n.prev=n.current,n.current=e;var r=$o(),o=r.delta,a=r.timestamp;n.lastUpdated!==a&&(n.timeDelta=o,n.lastUpdated=a,qo.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),t&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return qo.postRender(n.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t)))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?Jo(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Da(e){return new Ma(e)}var Ia=function(e){return function(t){return t.test(e)}},Ra=[hn,dn,un,ln,pn,fn,{test:function(e){return"auto"===e},parse:function(e){return e}}],Aa=function(e){return Ra.find(Ia(e))},Na=lt(lt([],st(Ra)),[Zr,no]),La=function(e){return Na.find(Ia(e))};function Fa(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Da(n))}function za(e,t){var n=Dt(e,t),r=n?e.makeTargetAnimatable(n,!1):{},o=r.transitionEnd,a=void 0===o?{}:o;r.transition;var i,c=ct(r,["transitionEnd","transition"]);for(var s in c=it(it({},c),a)){Fa(e,s,(i=c[s],Kn(i)?i[i.length-1]||0:i))}}function Ba(e,t){if(t)return(t[e]||t.default||t).from}function Ha(e,t,n){var r;void 0===n&&(n={});var o=Dt(e,t,n.custom),a=(o||{}).transition,i=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(i=n.transitionOverride);var c=o?function(){return Va(e,o,n)}:function(){return Promise.resolve()},s=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var o=i.delayChildren,a=void 0===o?0:o,c=i.staggerChildren,s=i.staggerDirection;return function(e,t,n,r,o,a){void 0===n&&(n=0);void 0===r&&(r=0);void 0===o&&(o=1);var i=[],c=(e.variantChildren.size-1)*r,s=1===o?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),c-e*r};return Array.from(e.variantChildren).sort(Wa).forEach((function(e,r){i.push(Ha(e,t,it(it({},a),{delay:n+s(r)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(i)}(e,t,a+r,c,s,n)}:function(){return Promise.resolve()},l=i.when;if(l){var u=st("beforeChildren"===l?[c,s]:[s,c],2),d=u[0],f=u[1];return d().then(f)}return Promise.all([c(),s(n.delay)])}function Va(e,t,n){var r,o=void 0===n?{}:n,a=o.delay,i=void 0===a?0:a,c=o.transitionOverride,s=o.type,l=e.makeTargetAnimatable(t),u=l.transition,d=void 0===u?e.getDefaultTransition():u,f=l.transitionEnd,p=ct(l,["transition","transitionEnd"]);c&&(d=c);var b=[],h=s&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[s]);for(var m in p){var v=e.getValue(m),g=p[m];if(!(!v||void 0===g||h&&Ua(h,m))){var y=Sa(m,v,g,it({delay:i},d));b.push(y)}}return Promise.all(b).then((function(){f&&za(e,f)}))}function Wa(e,t){return e.sortNodePosition(t)}function Ua(e,t){var n=e.protectedKeys,r=e.needsAnimating,o=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,o}var Ka=[Zn.Animate,Zn.Hover,Zn.Tap,Zn.Drag,Zn.Focus,Zn.Exit],Ga=lt([],st(Ka)).reverse(),$a=Ka.length;function qa(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,r=t.options;return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(),Array.isArray(t)){var o=t.map((function(t){return Ha(e,t,n)}));r=Promise.all(o)}else if("string"==typeof t)r=Ha(e,t,n);else{var a="function"==typeof t?Dt(e,t,n.custom):t;r=Va(e,a,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}function Ya(e){var t,n=qa(e),r=((t={})[Zn.Animate]=Xa(!0),t[Zn.Hover]=Xa(),t[Zn.Tap]=Xa(),t[Zn.Drag]=Xa(),t[Zn.Focus]=Xa(),t[Zn.Exit]=Xa(),t),o={},a=!0,i=function(t,n){var r=Dt(e,n);if(r){r.transition;var o=r.transitionEnd,a=ct(r,["transition","transitionEnd"]);t=it(it(it({},t),a),o)}return t};function c(t,c){for(var s,l=e.getProps(),u=e.getVariantContext(!0)||{},d=[],f=new Set,p={},b=1/0,h=function(n){var o=Ga[n],h=r[o],m=null!==(s=l[o])&&void 0!==s?s:u[o],v=Tt(m),g=o===c?h.isActive:null;!1===g&&(b=n);var y=m===u[o]&&m!==l[o]&&v;if(y&&a&&e.manuallyAnimateOnMount&&(y=!1),h.protectedKeys=it({},p),!h.isActive&&null===g||!m&&!h.prevProp||Un(m)||"boolean"==typeof m)return"continue";var O=function(e,t){if("string"==typeof t)return t!==e;if(Pt(t))return!kr(t,e);return!1}(h.prevProp,m)||o===c&&h.isActive&&!y&&v||n>b&&v,j=Array.isArray(m)?m:[m],w=j.reduce(i,{});!1===g&&(w={});var x=h.prevResolvedValues,_=void 0===x?{}:x,E=it(it({},_),w),k=function(e){O=!0,f.delete(e),h.needsAnimating[e]=!0};for(var S in E){var C=w[S],P=_[S];p.hasOwnProperty(S)||(C!==P?Kn(C)&&Kn(P)?kr(C,P)?h.protectedKeys[S]=!0:k(S):void 0!==C?k(S):f.add(S):void 0!==C&&f.has(S)?k(S):h.protectedKeys[S]=!0)}h.prevProp=m,h.prevResolvedValues=w,h.isActive&&(p=it(it({},p),w)),a&&e.blockInitialAnimation&&(O=!1),O&&!y&&d.push.apply(d,lt([],st(j.map((function(e){return{animation:e,options:it({type:o},t)}})))))},m=0;m<$a;m++)h(m);if(o=it({},p),f.size){var v={};f.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(v[t]=n)})),d.push({animation:v})}var g=Boolean(d.length);return a&&!1===l.initial&&!e.manuallyAnimateOnMount&&(g=!1),a=!1,g?n(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==o[e]},animateChanges:c,setActive:function(t,n,o){var a;return r[t].isActive===n?Promise.resolve():(null===(a=e.variantChildren)||void 0===a||a.forEach((function(e){var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)})),r[t].isActive=n,c(o,t))},setAnimateFunction:function(t){n=t(e)},getState:function(){return r}}}function Xa(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Za={animation:_r((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=Ya(t)),Un(n)&&Object(q.useEffect)((function(){return n.subscribe(t)}),[n])})),exit:_r((function(e){var t=e.custom,n=e.visualElement,r=st(yt(),2),o=r[0],a=r[1],i=Object(q.useContext)(vt);Object(q.useEffect)((function(){var e,r,c=null===(e=n.animationState)||void 0===e?void 0:e.setActive(Zn.Exit,!o,{custom:null!==(r=null==i?void 0:i.custom)&&void 0!==r?r:t});!o&&(null==c||c.then(a))}),[o])}))},Ja=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},Qa=function(e){return Ja(e)&&e.hasOwnProperty("z")},ei=function(e,t){return Math.abs(e-t)};function ti(e,t){if(ro(e)&&ro(t))return ei(e,t);if(Ja(e)&&Ja(t)){var n=ei(e.x,t.x),r=ei(e.y,t.y),o=Qa(e)&&Qa(t)?ei(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}var ni=function(){function e(e,t,n){var r=this,o=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=ai(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=ti(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,a=$o().timestamp;r.history.push(it(it({},o),{timestamp:a}));var i=r.handlers,c=i.onStart,s=i.onMove;t||(c&&c(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),s&&s(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=ri(t,r.transformPagePoint),nr(e)&&0===e.buttons?r.handlePointerUp(e,t):qo.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,o=n.onEnd,a=n.onSessionEnd,i=ai(ri(t,r.transformPagePoint),r.history);r.startEvent&&o&&o(e,i),a&&a(e,i)},!(rr(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var a=ri(cr(e),this.transformPagePoint),i=a.point,c=$o().timestamp;this.history=[it(it({},i),{timestamp:c})];var s=t.onSessionStart;s&&s(e,ai(a,this.history)),this.removeListeners=xr(fr(window,"pointermove",this.handlePointerMove),fr(window,"pointerup",this.handlePointerUp),fr(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Vo.update(this.updatePoint)},e}();function ri(e,t){return t?{point:t(e.point)}:e}function oi(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ai(e,t){var n=e.point;return{point:n,delta:oi(n,ci(t)),offset:oi(n,ii(t)),velocity:si(t,.1)}}function ii(e){return e[0]}function ci(e){return e[e.length-1]}function si(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=ci(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Qo(t)));)n--;if(!r)return{x:0,y:0};var a=(o.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var i={x:(o.x-r.x)/a,y:(o.y-r.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function li(e){return e}function ui(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}var di={translate:0,scale:1,origin:0,originPoint:0};function fi(){return{x:it({},di),y:it({},di)}}function pi(e){return[e("x"),e("y")]}function bi(e,t,n){var r=t.min,o=t.max;return void 0!==r&&e<r?e=n?Fr(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?Fr(o,e,n.max):Math.min(e,o)),e}function hi(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function mi(e,t){var n,r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=st([o,r],2))[0],o=n[1]),{min:e.min+r,max:e.min+o}}function vi(e,t,n){return{min:gi(e,t),max:gi(e,n)}}function gi(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function yi(e,t){return ui(function(e,t){var n=e.top,r=e.left,o=e.bottom,a=e.right;void 0===t&&(t=li);var i=t({x:r,y:n}),c=t({x:a,y:o});return{top:i.y,left:i.x,bottom:c.y,right:c.x}}(e.getBoundingClientRect(),t))}function Oi(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),ti(e,t)<n}function ji(e){return e.max-e.min}function wi(e,t){var n=.5,r=ji(e),o=ji(t);return o>r?n=Lr(t.min,t.max-r,e.min):r>o&&(n=Lr(e.min,e.max-o,t.min)),Pr(0,1,n)}function xi(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=Fr(t.min,t.max,e.origin),e.scale=ji(n)/ji(t),Oi(e.scale,1,1e-4)&&(e.scale=1),e.translate=Fr(n.min,n.max,e.origin)-e.originPoint,Oi(e.translate)&&(e.translate=0)}function _i(e,t,n,r){xi(e.x,t.x,n.x,Ei(r.originX)),xi(e.y,t.y,n.y,Ei(r.originY))}function Ei(e){return"number"==typeof e?e:.5}function ki(e,t,n){e.min=n.min+t.min,e.max=e.min+ji(t)}var Si=function(e,t){return e.depth-t.depth};function Ci(e){return e.projection.isEnabled||e.shouldResetTransform()}function Pi(e,t){void 0===t&&(t=[]);var n=e.parent;return n&&Pi(n,t),Ci(e)&&t.push(e),t}function Ti(e){if(!e.shouldResetTransform()){var t,n=e.getLayoutState();e.notifyBeforeLayoutMeasure(n.layout),n.isHydrated=!0,n.layout=e.measureViewportBox(),n.layoutCorrected=(t=n.layout,{x:it({},t.x),y:it({},t.y)}),e.notifyLayoutMeasure(n.layout,e.prevViewportBox||n.layout),qo.update((function(){return e.rebaseProjectionTarget()}))}}function Mi(e,t){return{min:t.min-e.min,max:t.max-e.min}}function Di(e,t){return{x:Mi(e.x,t.x),y:Mi(e.y,t.y)}}function Ii(e,t){var n=e.getLayoutId(),r=t.getLayoutId();return n!==r||void 0===r&&e!==t}function Ri(e){var t=e.getProps(),n=t.drag,r=t._dragX;return n&&!r}function Ai(e,t){e.min=t.min,e.max=t.max}function Ni(e,t,n){return n+t*(e-n)}function Li(e,t,n,r,o){return void 0!==o&&(e=Ni(e,o,r)),Ni(e,n,r)+t}function Fi(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=Li(e.min,t,n,r,o),e.max=Li(e.max,t,n,r,o)}function zi(e,t){var n=t.x,r=t.y;Fi(e.x,n.translate,n.scale,n.originPoint),Fi(e.y,r.translate,r.scale,r.originPoint)}function Bi(e,t,n,r){var o=st(r,3),a=o[0],i=o[1],c=o[2];e.min=t.min,e.max=t.max;var s=void 0!==n[c]?n[c]:.5,l=Fr(t.min,t.max,s);Fi(e,n[a],n[i],l,n.scale)}var Hi=["x","scaleX","originX"],Vi=["y","scaleY","originY"];function Wi(e,t,n){Bi(e.x,t.x,n,Hi),Bi(e.y,t.y,n,Vi)}function Ui(e,t,n,r,o){return e=Ni(e-=t,1/n,r),void 0!==o&&(e=Ni(e,1/o,r)),e}function Ki(e,t,n){var r=st(n,3),o=r[0],a=r[1],i=r[2];!function(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5);var a=Fr(e.min,e.max,r)-t;e.min=Ui(e.min,t,n,a,o),e.max=Ui(e.max,t,n,a,o)}(e,t[o],t[a],t[i],t.scale)}function Gi(e,t){Ki(e.x,t,Hi),Ki(e.y,t,Vi)}var $i=new Set;function qi(e,t,n){e[n]||(e[n]=[]),e[n].push(t)}function Yi(e){return $i.add(e),function(){return $i.delete(e)}}function Xi(){if($i.size){var e=0,t=[[]],n=[],r=function(n){return qi(t,n,e)},o=function(t){qi(n,t,e),e++};$i.forEach((function(t){t(r,o),e=0})),$i.clear();for(var a=n.length,i=0;i<=a;i++)t[i]&&t[i].forEach(Ji),n[i]&&n[i].forEach(Ji)}}var Zi,Ji=function(e){return e()},Qi=new WeakMap,ec=function(){function e(e){var t=e.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.elastic={x:{min:0,max:1},y:{min:0,max:1}},this.props={},this.hasMutatedConstraints=!1,this.cursorProgress={x:.5,y:.5},this.originPoint={},this.openGlobalLock=null,this.panSession=null,this.visualElement=t,this.visualElement.enableLayoutProjection(),Qi.set(t,this)}return e.prototype.start=function(e,t){var n=this,r=void 0===t?{}:t,o=r.snapToCursor,a=void 0!==o&&o,i=r.cursorProgress,c=this.props.transformPagePoint;this.panSession=new ni(e,{onSessionStart:function(e){var t;n.stopMotion();var r=function(e){return cr(e,"client")}(e).point;null===(t=n.cancelLayout)||void 0===t||t.call(n),n.cancelLayout=Yi((function(e,t){var o=Pi(n.visualElement),c=function(e){var t=[],n=function(e){Ci(e)&&t.push(e),e.children.forEach(n)};return e.children.forEach(n),t.sort(Si)}(n.visualElement),s=lt(lt([],st(o)),st(c)),l=!1;n.isLayoutDrag()&&n.visualElement.lockProjectionTarget(),t((function(){s.forEach((function(e){return e.resetTransform()}))})),e((function(){Ti(n.visualElement),c.forEach(Ti)})),t((function(){s.forEach((function(e){return e.restoreTransform()})),a&&(l=n.snapToCursor(r))})),e((function(){Boolean(n.getAxisMotionValue("x")&&!n.isExternalDrag())||n.visualElement.rebaseProjectionTarget(!0,n.visualElement.measureViewportBox(!1)),n.visualElement.scheduleUpdateLayoutProjection();var e=n.visualElement.projection;pi((function(t){if(!l){var o=e.target[t],a=o.min,c=o.max;n.cursorProgress[t]=i?i[t]:Lr(a,c,r[t])}var s=n.getAxisMotionValue(t);s&&(n.originPoint[t]=s.get())}))})),t((function(){Wo.update(),Wo.preRender(),Wo.render(),Wo.postRender()})),e((function(){return n.resolveDragConstraints()}))}))},onStart:function(e,t){var r,o,a,i=n.props,c=i.drag,s=i.dragPropagation;(!c||s||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=vr(c),n.openGlobalLock))&&(Xi(),n.isDragging=!0,n.currentDirection=null,null===(o=(r=n.props).onDragStart)||void 0===o||o.call(r,e,t),null===(a=n.visualElement.animationState)||void 0===a||a.setActive(Zn.Drag,!0))},onMove:function(e,t){var r,o,a,i,c=n.props,s=c.dragPropagation,l=c.dragDirectionLock;if(s||n.openGlobalLock){var u=t.offset;if(l&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(u),void(null!==n.currentDirection&&(null===(o=(r=n.props).onDirectionLock)||void 0===o||o.call(r,n.currentDirection)));n.updateAxis("x",t.point,u),n.updateAxis("y",t.point,u),null===(i=(a=n.props).onDrag)||void 0===i||i.call(a,e,t),Zi=e}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:c})},e.prototype.resolveDragConstraints=function(){var e=this,t=this.props,n=t.dragConstraints,r=t.dragElastic,o=this.visualElement.getLayoutState().layoutCorrected;this.constraints=!!n&&(Ct(n)?this.resolveRefConstraints(o,n):function(e,t){var n=t.top,r=t.left,o=t.bottom,a=t.right;return{x:hi(e.x,r,a),y:hi(e.y,n,o)}}(o,n)),this.elastic=function(e){return!1===e?e=0:!0===e&&(e=.35),{x:vi(e,"left","right"),y:vi(e,"top","bottom")}}(r),this.constraints&&!this.hasMutatedConstraints&&pi((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(o[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(e,t){var n=this.props,r=n.onMeasureDragConstraints,o=n.transformPagePoint,a=t.current;this.constraintsBox=yi(a,o);var i=function(e,t){return{x:mi(e.x,t.x),y:mi(e.y,t.y)}}(e,this.constraintsBox);if(r){var c=r(function(e){var t=e.x,n=e.y;return{top:n.min,bottom:n.max,left:t.min,right:t.max}}(i));this.hasMutatedConstraints=!!c,c&&(i=ui(c))}return i},e.prototype.cancelDrag=function(){var e,t;this.visualElement.unlockProjectionTarget(),null===(e=this.cancelLayout)||void 0===e||e.call(this),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(Zn.Drag,!1)},e.prototype.stop=function(e,t){var n,r,o;null===(n=this.panSession)||void 0===n||n.end(),this.panSession=null;var a=this.isDragging;if(this.cancelDrag(),a){var i=t.velocity;this.animateDragEnd(i),null===(o=(r=this.props).onDragEnd)||void 0===o||o.call(r,e,t)}},e.prototype.snapToCursor=function(e){var t=this;return pi((function(n){if(tc(n,t.props.drag,t.currentDirection)){var r=t.getAxisMotionValue(n);if(!r)return t.cursorProgress[n]=.5,!0;var o=t.visualElement.getLayoutState().layout,a=o[n].max-o[n].min,i=o[n].min+a/2,c=e[n]-i;t.originPoint[n]=e[n],r.set(c)}})).includes(!0)},e.prototype.updateAxis=function(e,t,n){if(tc(e,this.props.drag,this.currentDirection))return this.getAxisMotionValue(e)?this.updateAxisMotionValue(e,n):this.updateVisualElementAxis(e,t)},e.prototype.updateAxisMotionValue=function(e,t){var n=this.getAxisMotionValue(e);if(t&&n){var r=this.originPoint[e]+t[e],o=this.constraints?bi(r,this.constraints[e],this.elastic[e]):r;n.set(o)}},e.prototype.updateVisualElementAxis=function(e,t){var n,r=this.visualElement.getLayoutState().layout[e],o=r.max-r.min,a=this.cursorProgress[e],i=function(e,t,n,r,o){var a=e-t*n;return r?bi(a,r,o):a}(t[e],o,a,null===(n=this.constraints)||void 0===n?void 0:n[e],this.elastic[e]);this.visualElement.setProjectionTargetAxis(e,i,i+o)},e.prototype.setProps=function(e){var t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,o=void 0!==r&&r,a=e.dragPropagation,i=void 0!==a&&a,c=e.dragConstraints,s=void 0!==c&&c,l=e.dragElastic,u=void 0===l?.35:l,d=e.dragMomentum,f=void 0===d||d,p=ct(e,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=it({drag:n,dragDirectionLock:o,dragPropagation:i,dragConstraints:s,dragElastic:u,dragMomentum:f},p)},e.prototype.getAxisMotionValue=function(e){var t=this.props,n=t.layout,r=t.layoutId,o="_drag"+e.toUpperCase();return this.props[o]?this.props[o]:n||void 0!==r?void 0:this.visualElement.getValue(e,0)},e.prototype.isLayoutDrag=function(){return!this.getAxisMotionValue("x")},e.prototype.isExternalDrag=function(){var e=this.props,t=e._dragX,n=e._dragY;return t||n},e.prototype.animateDragEnd=function(e){var t=this,n=this.props,r=n.drag,o=n.dragMomentum,a=n.dragElastic,i=n.dragTransition,c=function(e,t){void 0===t&&(t=!0);var n,r=e.getProjectionParent();return!!r&&(t?Gi(n=Di(r.projection.target,e.projection.target),r.getLatestValues()):n=Di(r.getLayoutState().layout,e.getLayoutState().layout),pi((function(t){return e.setProjectionTargetAxis(t,n[t].min,n[t].max,!0)})),!0)}(this.visualElement,this.isLayoutDrag()&&!this.isExternalDrag()),s=this.constraints||{};if(c&&Object.keys(s).length&&this.isLayoutDrag()){var l=this.visualElement.getProjectionParent();if(l){var u=Di(l.projection.targetFinal,s);pi((function(e){var t=u[e],n=t.min,r=t.max;s[e]={min:isNaN(n)?void 0:n,max:isNaN(r)?void 0:r}}))}}var d=pi((function(n){var l;if(tc(n,r,t.currentDirection)){var u=null!==(l=null==s?void 0:s[n])&&void 0!==l?l:{},d=a?200:1e6,f=a?40:1e7,p=it(it({type:"inertia",velocity:o?e[n]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10},i),u);return t.getAxisMotionValue(n)?t.startAxisValueAnimation(n,p):t.visualElement.startLayoutAnimation(n,p,c)}}));return Promise.all(d).then((function(){var e,n;null===(n=(e=t.props).onDragTransitionEnd)||void 0===n||n.call(e)}))},e.prototype.stopMotion=function(){var e=this;pi((function(t){var n=e.getAxisMotionValue(t);n?n.stop():e.visualElement.stopLayoutAnimation()}))},e.prototype.startAxisValueAnimation=function(e,t){var n=this.getAxisMotionValue(e);if(n){var r=n.get();return n.set(r),n.set(r),Sa(e,n,0,t)}},e.prototype.scalePoint=function(){var e=this,t=this.props,n=t.drag;if(Ct(t.dragConstraints)&&this.constraintsBox){this.stopMotion();var r={x:0,y:0};pi((function(t){r[t]=wi(e.visualElement.projection.target[t],e.constraintsBox[t])})),this.updateConstraints((function(){pi((function(t){if(tc(t,n,null)){var o=function(e,t,n){var r=e.max-e.min,o=Fr(t.min,t.max-r,n);return{min:o,max:o+r}}(e.visualElement.projection.target[t],e.constraintsBox[t],r[t]),a=o.min,i=o.max;e.visualElement.setProjectionTargetAxis(t,a,i)}}))})),setTimeout(Xi,1)}},e.prototype.updateConstraints=function(e){var t=this;this.cancelLayout=Yi((function(n,r){var o=Pi(t.visualElement);r((function(){return o.forEach((function(e){return e.resetTransform()}))})),n((function(){return Ti(t.visualElement)})),r((function(){return o.forEach((function(e){return e.restoreTransform()}))})),n((function(){t.resolveDragConstraints()})),e&&r(e)}))},e.prototype.mount=function(e){var t=this,n=fr(e.getInstance(),"pointerdown",(function(e){var n=t.props,r=n.drag,o=n.dragListener;r&&(void 0===o||o)&&t.start(e)})),r=er(window,"resize",(function(){t.scalePoint()})),o=e.onLayoutUpdate((function(){t.isDragging&&t.resolveDragConstraints()})),a=e.prevDragCursor;return a&&this.start(Zi,{cursorProgress:a}),function(){null==n||n(),null==r||r(),null==o||o(),t.cancelDrag()}},e}();function tc(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var nc,rc,oc={pan:_r((function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,o=e.onPanSessionStart,a=e.visualElement,i=t||n||r||o,c=Object(q.useRef)(null),s=Object(q.useContext)(ht).transformPagePoint,l={onSessionStart:o,onStart:n,onMove:t,onEnd:function(e,t){c.current=null,r&&r(e,t)}};Object(q.useEffect)((function(){null!==c.current&&c.current.updateHandlers(l)})),pr(a,"pointerdown",i&&function(e){c.current=new ni(e,l,{transformPagePoint:s})}),jr((function(){return c.current&&c.current.end()}))})),drag:_r((function(e){var t=e.dragControls,n=e.visualElement,r=Object(q.useContext)(ht).transformPagePoint,o=gt((function(){return new ec({visualElement:n})}));o.setProps(it(it({},e),{transformPagePoint:r})),Object(q.useEffect)((function(){return t&&t.subscribe(o)}),[o]),Object(q.useEffect)((function(){return o.mount(n)}),[])}))};function ac(e){return"string"==typeof e&&e.startsWith("var(--")}!function(e){e[e.Entering=0]="Entering",e[e.Present=1]="Present",e[e.Exiting=2]="Exiting"}(nc||(nc={})),function(e){e[e.Hide=0]="Hide",e[e.Show=1]="Show"}(rc||(rc={}));var ic=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function cc(e,t,n){void 0===n&&(n=1);var r=st(function(e){var t=ic.exec(e);if(!t)return[,];var n=st(t,3);return[n[1],n[2]]}(e),2),o=r[0],a=r[1];if(o){var i=window.getComputedStyle(t).getPropertyValue(o);return i?i.trim():ac(a)?cc(a,t,n+1):a}}function sc(e,t){return e/(t.max-t.min)*100}var lc={process:function(e,t,n){var r=n.target;if("string"==typeof e){if(!dn.test(e))return e;e=parseFloat(e)}return sc(e,r.x)+"% "+sc(e,r.y)+"%"}},uc={borderRadius:it(it({},lc),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:lc,borderTopRightRadius:lc,borderBottomLeftRadius:lc,borderBottomRightRadius:lc,boxShadow:{process:function(e,t){var n=t.delta,r=t.treeScale,o=e,a=e.includes("var("),i=[];a&&(e=e.replace(ic,(function(e){return i.push(e),"_$css"})));var c=no.parse(e);if(c.length>5)return o;var s=no.createTransformer(e),l="number"!=typeof c[0]?1:0,u=n.x.scale*r.x,d=n.y.scale*r.y;c[0+l]/=u,c[1+l]/=d;var f=Fr(u,d,.5);"number"==typeof c[2+l]&&(c[2+l]/=f),"number"==typeof c[3+l]&&(c[3+l]/=f);var p=s(c);if(a){var b=0;p=p.replace("_$css",(function(){var e=i[b];return b++,e}))}return p}}},dc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.frameTarget={x:{min:0,max:1},y:{min:0,max:1}},t.currentAnimationTarget={x:{min:0,max:1},y:{min:0,max:1}},t.isAnimating={x:!1,y:!1},t.stopAxisAnimation={x:void 0,y:void 0},t.isAnimatingTree=!1,t.animate=function(e,n,r){void 0===r&&(r={});var o=r.originBox,a=r.targetBox,i=r.visibilityAction,c=r.shouldStackAnimate,s=r.onComplete,l=r.prevParent,u=ct(r,["originBox","targetBox","visibilityAction","shouldStackAnimate","onComplete","prevParent"]),d=t.props,f=d.visualElement,p=d.layout;if(!1===c)return t.isAnimatingTree=!1,t.safeToRemove();if(!t.isAnimatingTree||!0===c){c&&(t.isAnimatingTree=!0),n=o||n,e=a||e;var b=!1,h=f.getProjectionParent();if(h){var m=h.prevViewportBox,v=h.getLayoutState().layout;l&&(a&&(v=l.getLayoutState().layout),o&&!Ii(l,h)&&l.prevViewportBox&&(m=l.prevViewportBox)),m&&vc(l,o,a)&&(b=!0,n=Di(m,n),e=Di(v,e))}var g=fc(n,e),y=pi((function(r){var o,a;if("position"===p){var c=e[r].max-e[r].min;n[r].max=n[r].min+c}if(!f.projection.isTargetLocked)return void 0===i?g?t.animateAxis(r,e[r],n[r],it(it({},u),{isRelative:b})):(null===(a=(o=t.stopAxisAnimation)[r])||void 0===a||a.call(o),f.setProjectionTargetAxis(r,e[r].min,e[r].max,b)):void f.setVisibility(i===rc.Show)}));return f.syncRender(),Promise.all(y).then((function(){t.isAnimatingTree=!1,s&&s(),f.notifyLayoutAnimationComplete()}))}},t}return at(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.visualElement;t.animateMotionValue=Sa,t.enableLayoutProjection(),this.unsubLayoutReady=t.onLayoutUpdate(this.animate),t.layoutSafeToRemove=function(){return e.safeToRemove()},function(e){for(var t in e)Ht[t]=e[t]}(uc)},t.prototype.componentWillUnmount=function(){var e=this;this.unsubLayoutReady(),pi((function(t){var n,r;return null===(r=(n=e.stopAxisAnimation)[t])||void 0===r?void 0:r.call(n)}))},t.prototype.animateAxis=function(e,t,n,r){var o,a,i=this,c=void 0===r?{}:r,s=c.transition,l=c.isRelative;if(!this.isAnimating[e]||!hc(t,this.currentAnimationTarget[e])){null===(a=(o=this.stopAxisAnimation)[e])||void 0===a||a.call(o),this.isAnimating[e]=!0;var u=this.props.visualElement,d=this.frameTarget[e],f=u.getProjectionAnimationProgress()[e];f.clearListeners(),f.set(0),f.set(0);var p=function(){var r=f.get()/1e3;!function(e,t,n,r){e.min=Fr(t.min,n.min,r),e.max=Fr(t.max,n.max,r)}(d,n,t,r),u.setProjectionTargetAxis(e,d.min,d.max,l)};p();var b=f.onChange(p);this.stopAxisAnimation[e]=function(){i.isAnimating[e]=!1,f.stop(),b()},this.currentAnimationTarget[e]=t;var h=s||u.getDefaultTransition()||mc;return Sa("x"===e?"layoutX":"layoutY",f,1e3,h&&ka(h,"layout")).then(this.stopAxisAnimation[e])}},t.prototype.safeToRemove=function(){var e,t;null===(t=(e=this.props).safeToRemove)||void 0===t||t.call(e)},t.prototype.render=function(){return null},t}(q.Component);function fc(e,t){return!(bc(e)||bc(t)||hc(e.x,t.x)&&hc(e.y,t.y))}var pc={min:0,max:0};function bc(e){return hc(e.x,pc)&&hc(e.y,pc)}function hc(e,t){return e.min===t.min&&e.max===t.max}var mc={duration:.45,ease:[.4,0,.1,1]};function vc(e,t,n){return e||!e&&!(t||n)}var gc={layoutReady:function(e){return e.notifyLayoutReady()}};function yc(){var e=new Set;return{add:function(t){return e.add(t)},flush:function(t){var n=void 0===t?gc:t,r=n.layoutReady,o=n.parent;Yi((function(t,n){var a=Array.from(e).sort(Si),i=o?Pi(o):[];n((function(){lt(lt([],st(i)),st(a)).forEach((function(e){return e.resetTransform()}))})),t((function(){a.forEach(Ti)})),n((function(){i.forEach((function(e){return e.restoreTransform()})),a.forEach(r)})),t((function(){a.forEach((function(e){e.isPresent&&(e.presence=nc.Present)}))})),n((function(){Wo.preRender(),Wo.render()})),t((function(){qo.postRender((function(){return a.forEach(Oc)})),e.clear()}))})),Xi()}}}function Oc(e){e.prevViewportBox=e.projection.target}var jc=Object(q.createContext)(yc()),wc=Object(q.createContext)(yc());function xc(e){return!!e.forceUpdate}var _c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return at(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.syncLayout,n=e.framerSyncLayout,r=e.visualElement;xc(t)&&t.register(r),xc(n)&&n.register(r),r.onUnmount((function(){xc(t)&&t.remove(r),xc(n)&&n.remove(r)}))},t.prototype.getSnapshotBeforeUpdate=function(){var e=this.props,t=e.syncLayout,n=e.visualElement;return xc(t)?t.syncUpdate():(!function(e){e.shouldResetTransform()||(e.prevViewportBox=e.measureViewportBox(!1),e.rebaseProjectionTarget(!1,e.prevViewportBox))}(n),t.add(n)),null},t.prototype.componentDidUpdate=function(){var e=this.props.syncLayout;xc(e)||e.flush()},t.prototype.render=function(){return null},t}(Y.a.Component);var Ec={measureLayout:function(e){var t=Object(q.useContext)(jc),n=Object(q.useContext)(wc);return Y.a.createElement(_c,it({},e,{syncLayout:t,framerSyncLayout:n}))},layoutAnimation:function(e){var t=st(yt(),2)[1];return q.createElement(dc,it({},e,{safeToRemove:t}))}};function kc(){return{isHydrated:!1,layout:{x:{min:0,max:1},y:{min:0,max:1}},layoutCorrected:{x:{min:0,max:1},y:{min:0,max:1}},treeScale:{x:1,y:1},delta:fi(),deltaFinal:fi(),deltaTransform:""}}var Sc=kc();function Cc(e,t,n){var r=e.x,o=e.y,a="translate3d("+r.translate/t.x+"px, "+o.translate/t.y+"px, 0) ";if(n){var i=n.rotate,c=n.rotateX,s=n.rotateY;i&&(a+="rotate("+i+") "),c&&(a+="rotateX("+c+") "),s&&(a+="rotateY("+s+") ")}return a+="scale("+r.scale+", "+o.scale+")",n||a!==Tc?a:""}function Pc(e){var t=e.deltaFinal;return 100*t.x.origin+"% "+100*t.y.origin+"% 0"}var Tc=Cc(Sc.delta,Sc.treeScale,{x:1,y:1}),Mc=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];function Dc(e,t,n,r){var o,a,i=e.delta,c=e.layout,s=e.layoutCorrected,l=e.treeScale,u=t.target;a=c,Ai((o=s).x,a.x),Ai(o.y,a.y),function(e,t,n){var r=n.length;if(r){var o,a;t.x=t.y=1;for(var i=0;i<r;i++)a=(o=n[i]).getLayoutState().delta,t.x*=a.x.scale,t.y*=a.y.scale,zi(e,a),Ri(o)&&Wi(e,e,o.getLatestValues())}}(s,l,n),_i(i,s,u,r)}var Ic=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Ca(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){Pa(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Si),this.isDirty=!1,this.children.forEach(e)},e}();var Rc=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,o=e.getBaseTarget,a=e.makeTargetAnimatable,i=e.measureViewportBox,c=e.render,s=e.readValueFromInstance,l=e.resetTransform,u=e.restoreTransform,d=e.removeValueFromRenderState,f=e.sortNodePosition,p=e.scrapeMotionValuesFromProps;return function(e,t){var b=e.parent,h=e.props,m=e.presenceId,v=e.blockInitialAnimation,g=e.visualState;void 0===t&&(t={});var y,O,j,w,x,_,E=g.latestValues,k=g.renderState,S=function(){var e=Mc.map((function(){return new Ta})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){return Mc.forEach((function(r){var o;null===(o=t[r])||void 0===o||o.call(t);var a="on"+r,i=e[a];i&&(t[r]=n[a](i))}))}};return e.forEach((function(e,t){n["on"+Mc[t]]=function(t){return e.add(t)},n["notify"+Mc[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,lt([],st(t)))}})),n}(),C={isEnabled:!1,isHydrated:!1,isTargetLocked:!1,target:{x:{min:0,max:1},y:{min:0,max:1}},targetFinal:{x:{min:0,max:1},y:{min:0,max:1}}},P=C,T=E,M=kc(),D=!1,I=new Map,R=new Map,A={},N=it({},E);function L(){y&&(G.isProjectionReady()&&(Wi(P.targetFinal,P.target,T),_i(M.deltaFinal,M.layoutCorrected,P.targetFinal,E)),F(),c(y,k))}function F(){var e=E;if(w&&w.isActive()){var n=w.getCrossfadeState(G);n&&(e=n)}r(G,k,e,P,M,t,h)}function z(){S.notifyUpdate(E)}function B(){G.layoutTree.forEach(Nc)}var H=p(h);for(var V in H){var W=H[V];void 0!==E[V]&&Xt(W)&&W.set(E[V],!1)}var U=It(h),K=Rt(h),G=it(it({treeType:n,current:null,depth:b?b.depth+1:0,parent:b,children:new Set,path:b?lt(lt([],st(b.path)),[b]):[],layoutTree:b?b.layoutTree:new Ic,presenceId:m,projection:C,variantChildren:K?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==b?void 0:b.isMounted()),blockInitialAnimation:v,isMounted:function(){return Boolean(y)},mount:function(e){y=G.current=e,G.pointTo(G),K&&b&&!U&&(_=null==b?void 0:b.addVariantChild(G)),null==b||b.children.add(G)},unmount:function(){Vo.update(z),Vo.render(L),Vo.preRender(G.updateLayoutProjection),R.forEach((function(e){return e()})),G.stopLayoutAnimation(),G.layoutTree.remove(G),null==_||_(),null==b||b.children.delete(G),null==j||j(),S.clearAllListeners()},addVariantChild:function(e){var t,n=G.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return f&&n===e.treeType?f(G.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return K?G:null==b?void 0:b.getClosestVariantNode()},scheduleUpdateLayoutProjection:b?b.scheduleUpdateLayoutProjection:function(){return qo.preRender(G.updateTreeLayoutProjection,!1,!0)},getLayoutId:function(){return h.layoutId},getInstance:function(){return y},getStaticValue:function(e){return E[e]},setStaticValue:function(e,t){return E[e]=t},getLatestValues:function(){return E},setVisibility:function(e){G.isVisible!==e&&(G.isVisible=e,G.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(G,e,h,t)},addValue:function(e,t){G.hasValue(e)&&G.removeValue(e),I.set(e,t),E[e]=t.get(),function(e,t){var n=t.onChange((function(t){E[e]=t,h.onUpdate&&qo.update(z,!1,!0)})),r=t.onRenderRequest(G.scheduleRender);R.set(e,(function(){n(),r()}))}(e,t)},removeValue:function(e){var t;I.delete(e),null===(t=R.get(e))||void 0===t||t(),R.delete(e),delete E[e],d(e,k)},hasValue:function(e){return I.has(e)},getValue:function(e,t){var n=I.get(e);return void 0===n&&void 0!==t&&(n=Da(t),G.addValue(e,n)),n},forEachValue:function(e){return I.forEach(e)},readValue:function(e){var n;return null!==(n=E[e])&&void 0!==n?n:s(y,e,t)},setBaseTarget:function(e,t){N[e]=t},getBaseTarget:function(e){if(o){var t=o(h,e);if(void 0!==t&&!Xt(t))return t}return N[e]}},S),{build:function(){return F(),k},scheduleRender:function(){qo.render(L,!1,!0)},syncRender:L,setProps:function(e){h=e,S.updatePropListeners(e),A=function(e,t,n){var r;for(var o in t){var a=t[o],i=n[o];if(Xt(a))e.addValue(o,a);else if(Xt(i))e.addValue(o,Da(a));else if(i!==a)if(e.hasValue(o)){var c=e.getValue(o);!c.hasAnimated&&c.set(a)}else e.addValue(o,Da(null!==(r=e.getStaticValue(o))&&void 0!==r?r:a))}for(var o in n)void 0===t[o]&&e.removeValue(o);return t}(G,p(h),A)},getProps:function(){return h},getVariant:function(e){var t;return null===(t=h.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return h.transition},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==b?void 0:b.getVariantContext();if(!U){var t=(null==b?void 0:b.getVariantContext())||{};return void 0!==h.initial&&(t.initial=h.initial),t}for(var n={},r=0;r<zc;r++){var o=Fc[r],a=h[o];(Tt(a)||!1===a)&&(n[o]=a)}return n},enableLayoutProjection:function(){C.isEnabled=!0,G.layoutTree.add(G)},lockProjectionTarget:function(){C.isTargetLocked=!0},unlockProjectionTarget:function(){G.stopLayoutAnimation(),C.isTargetLocked=!1},getLayoutState:function(){return M},setCrossfader:function(e){w=e},isProjectionReady:function(){return C.isEnabled&&C.isHydrated&&M.isHydrated},startLayoutAnimation:function(e,t,n){void 0===n&&(n=!1);var r=G.getProjectionAnimationProgress()[e],o=n?C.relativeTarget[e]:C.target[e],a=o.min,i=o.max-a;return r.clearListeners(),r.set(a),r.set(a),r.onChange((function(t){G.setProjectionTargetAxis(e,t,t+i,n)})),G.animateMotionValue(e,r,0,t)},stopLayoutAnimation:function(){pi((function(e){return G.getProjectionAnimationProgress()[e].stop()}))},measureViewportBox:function(e){void 0===e&&(e=!0);var n=i(y,t);return e||Gi(n,E),n},getProjectionAnimationProgress:function(){return x||(x={x:Da(0),y:Da(0)}),x},setProjectionTargetAxis:function(e,t,n,r){var o;void 0===r&&(r=!1),r?(C.relativeTarget||(C.relativeTarget={x:{min:0,max:1},y:{min:0,max:1}}),o=C.relativeTarget[e]):(C.relativeTarget=void 0,o=C.target[e]),C.isHydrated=!0,o.min=t,o.max=n,D=!0,S.notifySetAxisTarget()},rebaseProjectionTarget:function(e,t){void 0===t&&(t=M.layout);var n=G.getProjectionAnimationProgress(),r=n.x,o=n.y,a=!(C.relativeTarget||C.isTargetLocked||r.isAnimating()||o.isAnimating());(e||a)&&pi((function(e){var n=t[e],r=n.min,o=n.max;G.setProjectionTargetAxis(e,r,o)}))},notifyLayoutReady:function(e){!function(e){var t=e.getProjectionParent();if(t){var n=Di(t.getLayoutState().layout,e.getLayoutState().layout);pi((function(t){e.setProjectionTargetAxis(t,n[t].min,n[t].max,!0)}))}else e.rebaseProjectionTarget()}(G),G.notifyLayoutUpdate(M.layout,G.prevViewportBox||M.layout,e)},resetTransform:function(){return l(G,y,h)},restoreTransform:function(){return u(y,k)},updateLayoutProjection:function(){if(G.isProjectionReady()){var e=M.delta,t=M.treeScale,n=t.x,r=t.y,o=M.deltaTransform;Dc(M,P,G.path,E),D&&G.notifyViewportBoxUpdate(P.target,e),D=!1;var a=Cc(e,t);a===o&&n===t.x&&r===t.y||G.scheduleRender(),M.deltaTransform=a}},updateTreeLayoutProjection:function(){G.layoutTree.forEach(Ac),qo.preRender(B,!1,!0)},getProjectionParent:function(){if(void 0===O){for(var e=!1,t=G.path.length-1;t>=0;t--){var n=G.path[t];if(n.projection.isEnabled){e=n;break}}O=e}return O},resolveRelativeTargetBox:function(){var e=G.getProjectionParent();if(C.relativeTarget&&e&&(function(e,t){ki(e.target.x,e.relativeTarget.x,t.target.x),ki(e.target.y,e.relativeTarget.y,t.target.y)}(C,e.projection),Ri(e))){var t=C.target;Wi(t,t,e.getLatestValues())}},shouldResetTransform:function(){return Boolean(h._layoutResetTransform)},pointTo:function(e){P=e.projection,T=e.getLatestValues(),null==j||j(),j=xr(e.onSetAxisTarget(G.scheduleUpdateLayoutProjection),e.onLayoutAnimationComplete((function(){var e;G.isPresent?G.presence=nc.Present:null===(e=G.layoutSafeToRemove)||void 0===e||e.call(G)})))},isPresent:!0,presence:nc.Entering});return G}};function Ac(e){e.resolveRelativeTargetBox()}function Nc(e){e.updateLayoutProjection()}var Lc,Fc=lt(["initial"],st(Ka)),zc=Fc.length,Bc=new Set(["width","height","top","left","right","bottom","x","y"]),Hc=function(e){return Bc.has(e)},Vc=function(e,t){e.set(t,!1),e.set(t)},Wc=function(e){return e===hn||e===dn};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Lc||(Lc={}));var Uc=function(e,t){return parseFloat(e.split(", ")[t])},Kc=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var a=o.match(/^matrix3d\((.+)\)$/);if(a)return Uc(a[1],t);var i=o.match(/^matrix\((.+)\)$/);return i?Uc(i[1],e):0}},Gc=new Set(["x","y","z"]),$c=Wt.filter((function(e){return!Gc.has(e)}));var qc={width:function(e){var t=e.x;return t.max-t.min},height:function(e){var t=e.y;return t.max-t.min},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:Kc(4,13),y:Kc(5,14)},Yc=function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=it({},t),r=it({},r);var o=Object.keys(t).filter(Hc),a=[],i=!1,c=[];if(o.forEach((function(o){var s=e.getValue(o);if(e.hasValue(o)){var l,u=n[o],d=t[o],f=Aa(u);if(Kn(d))for(var p=d.length,b=null===d[0]?1:0;b<p;b++)l?Aa(d[b]):(l=Aa(d[b]))===f||Wc(f)&&Wc(l);else l=Aa(d);if(f!==l)if(Wc(f)&&Wc(l)){var h=s.get();"string"==typeof h&&s.set(parseFloat(h)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&l===dn&&(t[o]=d.map(parseFloat))}else(null==f?void 0:f.transform)&&(null==l?void 0:l.transform)&&(0===u||0===d)?0===u?s.set(l.transform(u)):t[o]=f.transform(d):(i||(a=function(e){var t=[];return $c.forEach((function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),i=!0),c.push(o),r[o]=void 0!==r[o]?r[o]:t[o],Vc(s,d))}})),c.length){var s=function(e,t,n){var r=t.measureViewportBox(),o=t.getInstance(),a=getComputedStyle(o),i=a.display,c={top:a.top,left:a.left,bottom:a.bottom,right:a.right,transform:a.transform};"none"===i&&t.setStaticValue("display",e.display||"block"),t.syncRender();var s=t.measureViewportBox();return n.forEach((function(n){var o=t.getValue(n);Vc(o,qc[n](r,c)),e[n]=qc[n](s,a)})),e}(t,e,c);return a.length&&a.forEach((function(t){var n=st(t,2),r=n[0],o=n[1];e.getValue(r).set(o)})),e.syncRender(),{target:s,transitionEnd:r}}return{target:t,transitionEnd:r}};function Xc(e,t,n,r){return function(e){return Object.keys(e).some(Hc)}(t)?Yc(e,t,n,r):{target:t,transitionEnd:r}}var Zc=function(e,t,n,r){var o=function(e,t,n){var r,o=ct(t,[]),a=e.getInstance();if(!(a instanceof HTMLElement))return{target:o,transitionEnd:n};for(var i in n&&(n=it({},n)),e.forEachValue((function(e){var t=e.get();if(ac(t)){var n=cc(t,a);n&&e.set(n)}})),o){var c=o[i];if(ac(c)){var s=cc(c,a);s&&(o[i]=s,n&&(null!==(r=n[i])&&void 0!==r||(n[i]=c)))}}return{target:o,transitionEnd:n}}(e,t,r);return Xc(e,t=o.target,n,r=o.transitionEnd)};var Jc={treeType:"dom",readValueFromInstance:function(e,t){if(Gt(t)){var n=ya(t);return n&&n.default||0}var r,o=(r=e,window.getComputedStyle(r));return(Jt(t)?o.getPropertyValue(t):o[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return yi(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var o=n.transformValues;void 0===r&&(r=!0);var a=t.transition,i=t.transitionEnd,c=ct(t,["transition","transitionEnd"]),s=function(e,t,n){var r,o,a={};for(var i in e)a[i]=null!==(r=Ba(i,t))&&void 0!==r?r:null===(o=n.getValue(i))||void 0===o?void 0:o.get();return a}(c,a||{},e);if(o&&(i&&(i=o(i)),c&&(c=o(c)),s&&(s=o(s))),r){!function(e,t,n){var r,o,a,i,c=Object.keys(t).filter((function(t){return!e.hasValue(t)})),s=c.length;if(s)for(var l=0;l<s;l++){var u=c[l],d=t[u],f=null;Array.isArray(d)&&(f=d[0]),null===f&&(f=null!==(o=null!==(r=n[u])&&void 0!==r?r:e.readValue(u))&&void 0!==o?o:t[u]),null!=f&&("string"==typeof f&&/^\-?\d*\.?\d+$/.test(f)?f=parseFloat(f):!La(f)&&no.test(d)&&(f=Oa(u,d)),e.addValue(u,Da(f)),null!==(a=(i=n)[u])&&void 0!==a||(i[u]=f),e.setBaseTarget(u,f))}}(e,c,s);var l=Zc(e,c,s,i);i=l.transitionEnd,c=l.target}return it({transition:a,transitionEnd:i},c)},scrapeMotionValuesFromProps:Vn,build:function(e,t,n,r,o,a,i){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden");var c=r.isEnabled&&o.isHydrated;On(t,n,r,o,a,i.transformTemplate,c?Cc:void 0,c?Pc:void 0)},render:zn},Qc=Rc(Jc),es=Rc(it(it({},Jc),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Gt(t)?(null===(n=ya(t))||void 0===n?void 0:n.default)||0:(t=Bn.has(t)?t:Fn(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Wn,build:function(e,t,n,r,o,a,i){var c=r.isEnabled&&o.isHydrated;In(t,n,r,o,a,i.transformTemplate,c?Cc:void 0,c?Pc:void 0)},render:Hn})),ts=function(e,t){return Bt(e)?es(t,{enableHardwareAcceleration:!1}):Qc(t,{enableHardwareAcceleration:!0})},ns=it(it(it(it({},Za),Er),oc),Ec),rs=Ft((function(e,t){return Qn(e,t,ns,ts)}));var os=n("7Jlx"),as=n("q9zb"),is=n("C6yU");const cs=Object(s.createContext)({flexItemDisplay:void 0});const ss={name:"zjik7",styles:"display:flex"},ls={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},us={name:"82a6rk",styles:"flex:1"},ds={name:"13nosa1",styles:">*{min-height:0;}"},fs={name:"1pwxzk4",styles:">*{min-width:0;}"};var ps=n("h9+V");function bs(e){const{className:t,display:n,isBlock:r=!1,...o}=Object(is.a)(e,"FlexItem"),a={},i=Object(s.useContext)(cs).flexItemDisplay;a.Base=Object(x.a)({display:n||i},"","");return{...o,className:Object(ps.a)()(ls,a.Base,r&&us,t)}}var hs=Object(os.a)((function(e,t){const n=function(e){return bs({isBlock:!0,...Object(is.a)(e,"FlexBlock")})}(e);return Object(s.createElement)(as.a,Object(c.a)({},n,{ref:t}))}),"FlexBlock");var ms=Object(os.a)((function(e,t){const n=bs(e);return Object(s.createElement)(as.a,Object(c.a)({},n,{ref:t}))}),"FlexItem"),vs=n("NMb1"),gs=n.n(vs);const ys=["40em","52em","64em"],Os=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{defaultIndex:t=0}=e;if("number"!=typeof t)throw new TypeError(`Default breakpoint index should be a number. Got: ${t}, ${typeof t}`);if(t<0||t>ys.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${ys.length} breakpoints, got index ${t}`);const[n,r]=Object(s.useState)(t);return Object(s.useEffect)(()=>{const e=()=>{const e=ys.filter(e=>"undefined"!=typeof window&&window.matchMedia(`screen and (min-width: ${e})`).matches).length;n!==e&&r(e)};return e(),"undefined"!=typeof window&&window.addEventListener("resize",e),()=>{"undefined"!=typeof window&&window.removeEventListener("resize",e)}},[n]),n};function js(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Os(t);if(!Array.isArray(e)&&"function"!=typeof e)return e;const r=e||[];return r[n>=r.length?r.length-1:n]}function ws(e){var t,n;if(void 0===e)return;if(!e)return"0";const r="number"==typeof e?e:Number(e);return"undefined"!=typeof window&&null!==(t=window.CSS)&&void 0!==t&&null!==(n=t.supports)&&void 0!==n&&n.call(t,"margin",e.toString())||Number.isNaN(r)?e.toString():`calc(4px * ${e})`}const xs=new RegExp(/-left/g),_s=new RegExp(/-right/g),Es=new RegExp(/Left/g),ks=new RegExp(/Right/g);function Ss(e){return"left"===e?"right":"right"===e?"left":xs.test(e)?e.replace(xs,"-right"):_s.test(e)?e.replace(_s,"-left"):Es.test(e)?e.replace(Es,"Right"):ks.test(e)?e.replace(ks,"Left"):e}const Cs=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(l.mapKeys)(e,(e,t)=>Ss(t))};function Ps(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return()=>t?Object(f.isRTL)()?Object(x.a)(t,""):Object(x.a)(e,""):Object(f.isRTL)()?Object(x.a)(Cs(e),""):Object(x.a)(e,"")}function Ts(e){const{align:t="center",className:n,direction:r="row",expanded:o=!0,gap:a=2,justify:i="space-between",wrap:c=!1,...l}=Object(is.a)(function(e){let{isReversed:t,...n}=e;return void 0!==t?(gs()("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...n,direction:t?"row-reverse":"row"}):n}(e),"Flex"),u=js(Array.isArray(r)?r:[r]),d="string"==typeof u&&!!u.includes("column"),f="string"==typeof u&&u.includes("reverse"),p=Object(ps.a)();return{...l,className:Object(s.useMemo)(()=>{const e={};return e.Base=Object(x.a)({alignItems:d?"normal":t,flexDirection:u,flexWrap:c?"wrap":void 0,justifyContent:i,height:d&&o?"100%":void 0,width:!d&&o?"100%":void 0,marginBottom:c?`calc(${ws(a)} * -1)`:void 0},"",""),e.Items=Object(x.a)(">*+*:not( marquee ){margin-top:",d?ws(a):void 0,";",Ps({marginLeft:d||f?void 0:ws(a),marginRight:!d&&f?ws(a):void 0})(),";}",""),e.WrapItems=Object(x.a)(">*:not( marquee ){margin-bottom:",ws(a),";",Ps({marginLeft:!d&&f?ws(a):void 0,marginRight:d||f?void 0:ws(a)})(),";}>*:last-child:not( marquee ){",Ps({marginLeft:!d&&f?0:void 0,marginRight:d||f?void 0:0})(),";}",""),p(ss,e.Base,c?e.WrapItems:e.Items,d?ds:fs,n)},[t,n,u,o,a,d,f,i,c,Ps.watch()]),isColumn:d}}Ps.watch=()=>Object(f.isRTL)();var Ms=Object(os.a)((function(e,t){const{children:n,isColumn:r,...o}=Ts(e);return Object(s.createElement)(cs.Provider,{value:{flexItemDisplay:r?"block":void 0}},Object(s.createElement)(as.a,Object(c.a)({},o,{ref:t}),n))}),"Flex");const Ds={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},Is="…",Rs={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},As={ellipsis:Is,ellipsizeMode:Rs.auto,limit:0,numberOfLines:0};function Ns(e,t,n,r){if("string"!=typeof e)return"";const o=e.length,a=~~t,i=~~n,c=Object(l.isNil)(r)?Is:r;return 0===a&&0===i||a>=o||i>=o||a+i>=o?e:0===i?e.slice(0,a)+c:e.slice(0,a)+c+e.slice(o-i)}function Ls(e){const{className:t,children:n,ellipsis:r=Is,ellipsizeMode:o=Rs.auto,limit:a=0,numberOfLines:i=0,...c}=Object(is.a)(e,"Truncate"),l=Object(ps.a)(),u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;const n={...As,...t},{ellipsis:r,ellipsizeMode:o,limit:a}=n;if(o===Rs.none)return e;let i,c;switch(o){case Rs.head:i=0,c=a;break;case Rs.middle:i=Math.floor(a/2),c=Math.floor(a/2);break;default:i=a,c=0}const s=o!==Rs.auto?Ns(e,i,c,r):e;return s}("string"==typeof n?n:"",{ellipsis:r,ellipsizeMode:o,limit:a,numberOfLines:i}),d=o===Rs.auto;return{...c,className:Object(s.useMemo)(()=>{const e={};return e.numberOfLines=Object(x.a)("-webkit-box-orient:vertical;-webkit-line-clamp:",i,";display:-webkit-box;overflow:hidden;",""),l(d&&!i&&Ds,d&&!!i&&e.numberOfLines,t)},[t,i,d]),children:u}}var Fs=n("4eJC"),zs=n.n(Fs);let Bs;Object(_.b)([E.a]);const Hs=zs()((function(e){var t,n;if("string"!=typeof e)return"";if("string"==typeof(n=e)&&Object(_.a)(n).isValid())return e;if(!e.includes("var("))return"";if("undefined"==typeof document)return"";const r=function(){if("undefined"!=typeof document){if(!Bs){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),Bs=e}return Bs}}();if(!r)return"";r.style.background=e;const o=null===(t=window)||void 0===t?void 0:t.getComputedStyle(r).background;return r.style.background="",o||""}));function Vs(e){return"#000000"===function(e){const t=Hs(e);return Object(_.a)(t).isLight()?"#000000":"#ffffff"}(e)?"dark":"light"}const Ws={controlSurfaceColor:L.white,controlTextActiveColor:L.ui.theme,controlPaddingX:"12px",controlPaddingXLarge:"calc(12px * 1.3334)",controlPaddingXSmall:"calc(12px / 1.3334)",controlBackgroundColor:L.white,controlBorderRadius:"2px",controlBorderColor:L.gray[700],controlBoxShadow:"transparent",controlBorderColorHover:L.gray[700],controlBoxShadowFocus:"0 0 0 0.5px "+L.admin.theme,controlDestructiveBorderColor:L.alert.red,controlHeight:"36px",controlHeightXSmall:"calc( 36px * 0.6 )",controlHeightSmall:"calc( 36px * 0.8 )",controlHeightLarge:"calc( 36px * 1.2 )",controlHeightXLarge:"calc( 36px * 1.4 )"},Us={toggleGroupControlBackgroundColor:Ws.controlBackgroundColor,toggleGroupControlBorderColor:L.ui.border,toggleGroupControlBackdropBackgroundColor:Ws.controlSurfaceColor,toggleGroupControlBackdropBorderColor:L.ui.border,toggleGroupControlBackdropBoxShadow:"transparent",toggleGroupControlButtonColorActive:Ws.controlBackgroundColor};var Ks={...Ws,...Us,colorDivider:"rgba(0, 0, 0, 0.1)",colorScrollbarThumb:"rgba(0, 0, 0, 0.2)",colorScrollbarThumbHover:"rgba(0, 0, 0, 0.5)",colorScrollbarTrack:"rgba(0, 0, 0, 0.04)",elevationIntensity:1,radiusBlockUi:"2px",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px",spinnerSize:"18px",fontSize:"13px",fontSizeH1:"calc(2.44 * 13px)",fontSizeH2:"calc(1.95 * 13px)",fontSizeH3:"calc(1.56 * 13px)",fontSizeH4:"calc(1.25 * 13px)",fontSizeH5:"13px",fontSizeH6:"calc(0.8 * 13px)",fontSizeInputMobile:"16px",fontSizeMobile:"15px",fontSizeSmall:"calc(0.92 * 13px)",fontSizeXSmall:"calc(0.75 * 13px)",fontLineHeightBase:"1.2",fontWeight:"normal",fontWeightHeading:"600",gridBase:"4px",cardBorderRadius:"2px",cardPaddingXSmall:""+ws(2),cardPaddingSmall:""+ws(4),cardPaddingMedium:`${ws(4)} ${ws(6)}`,cardPaddingLarge:`${ws(6)} ${ws(8)}`,surfaceBackgroundColor:L.white,surfaceBackgroundSubtleColor:"#F3F3F3",surfaceBackgroundTintColor:"#F5F5F5",surfaceBorderColor:"rgba(0, 0, 0, 0.1)",surfaceBorderBoldColor:"rgba(0, 0, 0, 0.15)",surfaceBorderSubtleColor:"rgba(0, 0, 0, 0.05)",surfaceBackgroundTertiaryColor:L.white,surfaceColor:L.white,transitionDuration:"200ms",transitionDurationFast:"160ms",transitionDurationFaster:"120ms",transitionDurationFastest:"100ms",transitionTimingFunction:"cubic-bezier(0.08, 0.52, 0.52, 1)",transitionTimingFunctionControl:"cubic-bezier(0.12, 0.8, 0.32, 1)"};const Gs=Object(x.a)("color:",L.darkGray.primary,";line-height:",Ks.fontLineHeightBase,";margin:0;",""),$s={name:"4zleql",styles:"display:block"},qs=Object(x.a)("color:",L.alert.green,";",""),Ys=Object(x.a)("color:",L.alert.red,";",""),Xs=Object(x.a)("color:",L.mediumGray.text,";",""),Zs=Object(x.a)("mark{background:",L.alert.yellow,";border-radius:2px;box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;}",""),Js={name:"50zrmy",styles:"text-transform:uppercase"};var Qs=n("5V/u");const el=zs()(e=>{const t={};for(const n in e)t[n.toLowerCase()]=e[n];return t});const tl={body:13,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20},nl=[1,2,3,4,5,6].flatMap(e=>[e,e.toString()]);function rl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:13;if(e in tl)return rl(tl[e]);if("number"!=typeof e){const t=parseFloat(e);if(Number.isNaN(t))return e;e=t}const t=`(${e} / 13)`;return`calc(${t} * ${Ks.fontSize})`}function ol(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;if(!nl.includes(e))return rl(e);const t="fontSizeH"+e;return Ks[t]}var al={name:"50zrmy",styles:"text-transform:uppercase"};function il(e){const{adjustLineHeightForInnerControls:t,align:n,children:o,className:a,color:i,ellipsizeMode:c,isDestructive:u=!1,display:d,highlightEscape:f=!1,highlightCaseSensitive:p=!1,highlightWords:b,highlightSanitize:h,isBlock:m=!1,letterSpacing:v,lineHeight:g,optimizeReadabilityFor:y,size:O,truncate:j=!1,upperCase:w=!1,variant:_,weight:E=Ks.fontWeight,...k}=Object(is.a)(e,"Text");let S=o;const C=Array.isArray(b),P="caption"===O;if(C){if("string"!=typeof o)throw new TypeError("`children` of `Text` must only be `string` types when `highlightWords` is defined");S=function(e){let{activeClassName:t="",activeIndex:n=-1,activeStyle:r,autoEscape:o,caseSensitive:a=!1,children:i,findChunks:c,highlightClassName:l="",highlightStyle:u={},highlightTag:d="mark",sanitize:f,searchWords:p=[],unhighlightClassName:b="",unhighlightStyle:h}=e;if(!i)return null;if("string"!=typeof i)return i;const m=i,v=Object(Qs.findAll)({autoEscape:o,caseSensitive:a,findChunks:c,sanitize:f,searchWords:p,textToHighlight:m}),g=d;let y,O=-1,j="";return v.map((e,o)=>{const i=m.substr(e.start,e.end-e.start);if(e.highlight){let e;O++,"object"==typeof l?a?e=l[i]:(l=el(l),e=l[i.toLowerCase()]):e=l;const c=O===+n;j=`${e} ${c?t:""}`,y=!0===c&&null!==r?Object.assign({},u,r):u;const d={children:i,className:j,key:o,style:y};return"string"!=typeof g&&(d.highlightIndex=O),Object(s.createElement)(g,d)}return Object(s.createElement)("span",{children:i,className:b,key:o,style:h})})}({autoEscape:f,children:o,caseSensitive:p,searchWords:b,sanitize:h})}const T=Object(ps.a)();let M;!0===j&&(M="auto"),!1===j&&(M="none");const D=Ls({...k,className:Object(s.useMemo)(()=>{const e={},o=function(e,t){if(t)return t;if(!e)return;let n=`calc(${Ks.controlHeight} + ${ws(2)})`;switch(e){case"large":n=`calc(${Ks.controlHeightLarge} + ${ws(2)})`;break;case"small":n=`calc(${Ks.controlHeightSmall} + ${ws(2)})`;break;case"xSmall":n=`calc(${Ks.controlHeightXSmall} + ${ws(2)})`}return n}(t,g);if(e.Base=Object(x.a)({color:i,display:d,fontSize:rl(O),fontWeight:E,lineHeight:o,letterSpacing:v,textAlign:n},"",""),e.upperCase=al,e.optimalTextColor=null,y){const t="dark"===Vs(y);e.optimalTextColor=t?Object(x.a)({color:L.black},"",""):Object(x.a)({color:L.white},"","")}return T(Gs,e.Base,e.optimalTextColor,u&&Ys,!!C&&Zs,m&&$s,P&&Xs,_&&r[_],w&&e.upperCase,a)},[t,n,a,i,d,m,P,u,C,v,g,y,O,w,_,E]),children:o,ellipsizeMode:c||M});return!j&&Array.isArray(o)&&(S=s.Children.map(o,e=>{if(!Object(l.isPlainObject)(e)||!("props"in e))return e;return Object(os.b)(e,["Link"])?Object(s.cloneElement)(e,{size:e.props.size||"inherit"}):e})),{...D,children:j?D.children:S}}var cl=Object(os.a)((function(e,t){const n=il(e);return Object(s.createElement)(as.a,Object(c.a)({as:"span"},n,{ref:t}))}),"Text");var sl={name:"1739oy8",styles:"z-index:1"};const ll=e=>{let{isFocused:t}=e;return t?sl:""};var ul={name:"2o6p8u",styles:"justify-content:space-between"},dl={name:"14qk3ip",styles:"align-items:flex-start;flex-direction:column-reverse"},fl={name:"hbng6e",styles:"align-items:flex-start;flex-direction:column"};const pl=e=>{let{labelPosition:t}=e;switch(t){case"top":return fl;case"bottom":return dl;case"edge":return ul;default:return""}},bl=Object(w.a)(Ms,{target:"em5sgkm7"})("position:relative;border-radius:2px;padding-top:0;",ll," ",pl,";");var hl={name:"wyxldh",styles:"margin:0 !important"};var ml={name:"1d3w5wq",styles:"width:100%"};const vl=Object(w.a)("div",{target:"em5sgkm6"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",e=>{let{disabled:t}=e;const n=t?L.ui.backgroundDisabled:L.ui.background;return Object(x.a)({backgroundColor:n},"","")}," ",e=>{let{hideLabel:t}=e;return t?hl:null}," ",e=>{let{__unstableInputWidth:t,labelPosition:n}=e;return t?"side"===n?"":"edge"===n?Object(x.a)({flex:"0 0 "+t},"",""):Object(x.a)({width:t},"",""):ml},";"),gl=Object(w.a)("input",{target:"em5sgkm5"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",L.black,";display:block;margin:0;outline:none;padding-left:8px;padding-right:8px;width:100%;",e=>{let t,n,{isDragging:r,dragCursor:o}=e;return r&&(t=Object(x.a)("cursor:",o,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),r&&o&&(n=Object(x.a)("&:active{cursor:",o,";}","")),Object(x.a)(t," ",n,";","")}," ",e=>{let{disabled:t}=e;return t?Object(x.a)({color:L.ui.textDisabled},"",""):""}," ",e=>{let{inputSize:t}=e;const n={default:"13px",small:"11px"},r=n[t]||n.default;return r?Object(x.a)("font-size:","16px",";@media ( min-width: 600px ){font-size:",r,";}",""):""}," ",e=>{let{inputSize:t}=e;const n={default:{height:30,lineHeight:1,minHeight:30},small:{height:24,lineHeight:1,minHeight:24}},r=n[t]||n.default;return Object(x.a)(r,"","")}," &::-webkit-input-placeholder{line-height:normal;}}"),yl=e=>{let{labelPosition:t}=e,n=4;return"edge"!==t&&"side"!==t||(n=0),Object(x.a)({paddingTop:0,paddingBottom:n},"","")},Ol=Object(w.a)(cl,{target:"em5sgkm4"})("&&&{box-sizing:border-box;color:currentColor;display:block;margin:0;max-width:100%;z-index:1;",yl," overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}"),jl=e=>Object(s.createElement)(Ol,Object(c.a)({},e,{as:"label"})),wl=Object(w.a)(ms,{target:"em5sgkm3"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),xl=Object(w.a)("div",{target:"em5sgkm2"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",e=>{let t,{disabled:n,isFocused:r}=e,o=r?L.ui.borderFocus:L.ui.border;return r&&(t=`0 0 0 1px ${L.ui.borderFocus} inset`),n&&(o=L.ui.borderDisabled),Object(x.a)({boxShadow:t,borderColor:o,borderStyle:"solid",borderWidth:1},"","")}," ",Ps({paddingLeft:2}),";}"),_l=Object(w.a)("span",{target:"em5sgkm1"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),El=Object(w.a)("span",{target:"em5sgkm0"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"});var kl=Object(s.memo)((function(e){let{disabled:t=!1,isFocused:n=!1}=e;return Object(s.createElement)(xl,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:t,isFocused:n})}));function Sl(e){let{children:t,hideLabelFromVision:n,htmlFor:r,...o}=e;return t?n?Object(s.createElement)(m.a,{as:"label",htmlFor:r},t):Object(s.createElement)(jl,Object(c.a)({htmlFor:r},o),t):null}function Cl(e,t){let{__unstableInputWidth:n,children:r,className:o,disabled:a=!1,hideLabelFromVision:i=!1,labelPosition:l,id:u,isFocused:d=!1,label:f,prefix:b,size:h="default",suffix:m,...v}=e;const g=function(e){const t=Object(p.useInstanceId)(Cl);return e||"input-base-control-"+t}(u),y=i||!f;return Object(s.createElement)(bl,Object(c.a)({},v,function(e){const t={};switch(e){case"top":t.direction="column",t.gap=0;break;case"bottom":t.direction="column-reverse",t.gap=0;break;case"edge":t.justify="space-between"}return t}(l),{className:o,isFocused:d,labelPosition:l,ref:t}),Object(s.createElement)(wl,null,Object(s.createElement)(Sl,{className:"components-input-control__label",hideLabelFromVision:i,labelPosition:l,htmlFor:g,size:h},f)),Object(s.createElement)(vl,{__unstableInputWidth:n,className:"components-input-control__container",disabled:a,hideLabel:y,labelPosition:l},b&&Object(s.createElement)(_l,{className:"components-input-control__prefix"},b),r,m&&Object(s.createElement)(El,{className:"components-input-control__suffix"},m),Object(s.createElement)(kl,{disabled:a,isFocused:d})))}var Pl=Object(s.forwardRef)(Cl);function Tl(e,t){return e.map((function(e,n){return e+t[n]}))}function Ml(e,t){return e.map((function(e,n){return e-t[n]}))}function Dl(e){return Math.hypot.apply(Math,e)}function Il(e,t,n){var r=Dl(t),o=0===r?0:1/r,a=0===n?0:1/n,i=a*r,c=t.map((function(e){return a*e})),s=t.map((function(e){return o*e}));return{velocities:c,velocity:i,distance:Dl(e),direction:s}}function Rl(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function Al(e,t,n){return 0===t||Math.abs(t)===1/0?function(e,t){return Math.pow(e,5*t)}(e,n):e*t*n/(t+n*e)}function Nl(e,t,n,r){return void 0===r&&(r=.15),0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):e<t?-Al(t-e,n-t,r)+t:e>n?+Al(e-n,n-t,r)+n:e}function Ll(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fl(){return(Fl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function zl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Bl(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Hl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wl(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Vl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vl(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function Ul(){}function Kl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?Ul:1===t.length?t[0]:function(){for(var e,n,r=Wl(t);!(n=r()).done;){var o=n.value;e=o.apply(this,arguments)||e}return e}}function Gl(e,t){if(void 0===e){if(void 0===t)throw new Error("Must define fallback value if undefined is expected");e=t}return Array.isArray(e)?e:[e,e]}function $l(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}return e}function ql(e,t){void 0===e&&(e={});for(var n={},r=0,o=Object.entries(t);r<o.length;r++){var a=o[r],i=a[0],c=a[1];switch(typeof c){case"function":n[i]=c.call(n,e[i],i,e);break;case"object":n[i]=ql(e[i],c);break;case"boolean":c&&(n[i]=e[i])}}return n}function Yl(){return"undefined"!=typeof window&&"ontouchstart"in window}function Xl(e){return"pointerId"in e?null:"touchend"===e.type?e.changedTouches:e.targetTouches}function Zl(e){return Array.from(Xl(e)).map((function(e){return e.identifier}))}function Jl(e){return{buttons:"buttons"in e?e.buttons:0,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey}}var Ql=function(e){return e};function eu(e,t){void 0===t&&(t=Ql);var n=Xl(e),r=n?n[0]:e;return t([r.clientX,r.clientY])}var tu={threshold:function(e){return void 0===e&&(e=0),Gl(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return Gl(.15);case!1:return Gl(0);default:return Gl(e)}},enabled:function(e){return void 0===e&&(e=!0),e},triggerAllEvents:function(e){return void 0===e&&(e=!1),e},initial:function(e){return void 0===e&&(e=0),"function"==typeof e?e:Gl(e)},transform:!0},nu=Fl({},tu,{axis:!0,lockDirection:function(e){return void 0===e&&(e=!1),e},bounds:function(e){if(void 0===e&&(e={}),"function"==typeof e)return function(t){return nu.bounds(e(t))};var t=e,n=t.left,r=void 0===n?-1/0:n,o=t.right,a=void 0===o?1/0:o,i=t.top,c=void 0===i?-1/0:i,s=t.bottom;return[[r,a],[c,void 0===s?1/0:s]]}}),ru="undefined"!=typeof window&&window.document&&window.document.createElement,ou={enabled:function(e){return void 0===e&&(e=!0),e},domTarget:!0,window:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return void 0===e&&(e=ru?window:void 0),e})),eventOptions:function(e){var t=void 0===e?{}:e,n=t.passive,r=void 0===n||n,o=t.capture;return{passive:r,capture:void 0!==o&&o}},transform:!0},au=Fl({},nu,{useTouch:function(e){void 0===e&&(e=!1);var t=Yl(),n="undefined"!=typeof window&&"onpointerdown"in window;return!(!e||!t)||!(!t||n)},experimental_preventWindowScrollY:function(e){return void 0===e&&(e=!1),e},threshold:function(e,t,n){var r=n.filterTaps,o=void 0!==r&&r,a=n.lockDirection,i=void 0!==a&&a,c=n.axis,s=Gl(e,o?3:i||(void 0===c?void 0:c)?1:0);return this.filterTaps=o,s},swipeVelocity:function(e){return void 0===e&&(e=.5),Gl(e)},swipeDistance:function(e){return void 0===e&&(e=50),Gl(e)},swipeDuration:function(e){return void 0===e&&(e=250),e},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function iu(e){return void 0===e&&(e={}),ql(e,ou)}function cu(e){return void 0===e&&(e={}),ql(e,au)}function su(e){var t=e.domTarget,n=e.eventOptions,r=e.window,o=e.enabled,a=Bl(e,["domTarget","eventOptions","window","enabled"]),i=iu({domTarget:t,eventOptions:n,window:r,enabled:o});return i.hover=Fl({enabled:!0},a),i}function lu(e){var t=e.domTarget,n=e.eventOptions,r=e.window,o=e.enabled,a=Bl(e,["domTarget","eventOptions","window","enabled"]),i=iu({domTarget:t,eventOptions:n,window:r,enabled:o});return i.drag=cu(a),i}function uu(e){return Fl({_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_threshold:[0,0],_lastEventType:void 0,_dragStarted:!1,_dragPreventScroll:!1,_dragIsTap:!0,_dragDelayed:!1,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:Ul,canceled:!1,memo:void 0,args:void 0},e)}function du(){return{shared:{hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1,locked:!1},drag:uu({_pointerId:void 0,axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,tap:!1,swipe:[0,0]}),pinch:uu({_pointerIds:[],da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:uu({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:uu({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:uu({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var fu=new Map,pu=function(e){return e},bu=function(){function e(e,t){var n=this;void 0===t&&(t=[]),this.controller=e,this.args=t,this.debounced=!0,this.setTimeout=function(e,t){var r;void 0===t&&(t=140),clearTimeout(n.controller.timeouts[n.stateKey]);for(var o=arguments.length,a=new Array(o>2?o-2:0),i=2;i<o;i++)a[i-2]=arguments[i];n.controller.timeouts[n.stateKey]=(r=window).setTimeout.apply(r,[e,t].concat(a))},this.clearTimeout=function(){clearTimeout(n.controller.timeouts[n.stateKey])},this.fireGestureHandler=function(e){if(void 0===e&&(e=!1),n.state._blocked)return n.debounced||(n.state._active=!1,n.clean()),null;if(!e&&!n.state.intentional&&!n.config.triggerAllEvents)return null;if(n.state.intentional){var t=n.state.active,r=n.state._active;n.state.active=r,n.state.first=r&&!t,n.state.last=t&&!r,n.controller.state.shared[n.ingKey]=r}var o=n.controller.pointerIds.size||n.controller.touchIds.size,a=n.controller.state.shared.buttons>0||o>0,i=Fl({},n.controller.state.shared,n.state,n.mapStateValues(n.state),{locked:!!document.pointerLockElement,touches:o,down:a}),c=n.handler(i);return n.state.memo=void 0!==c?c:n.state.memo,i},this.controller=e,this.args=t}var t,n,r,o=e.prototype;return o.updateSharedState=function(e){Object.assign(this.controller.state.shared,e)},o.updateGestureState=function(e){Object.assign(this.state,e)},o.checkIntentionality=function(e,t){return{_intentional:e,_blocked:!1}},o.getMovement=function(e){var t=this.config.rubberband,n=this.state,r=n._bounds,o=n._initial,a=n._active,i=n._intentional,c=n.lastOffset,s=n.movement,l=n._threshold,u=this.getInternalMovement(e,this.state),d=!1===i[0]?hu(u[0],l[0]):i[0],f=!1===i[1]?hu(u[1],l[1]):i[1],p=this.checkIntentionality([d,f],u);if(p._blocked)return Fl({},p,{_movement:u,delta:[0,0]});var b=p._intentional,h=u,m=[!1!==b[0]?u[0]-b[0]:0,!1!==b[1]?u[1]-b[1]:0],v=Tl(m,c),g=a?t:[0,0];return m=mu(r,Tl(m,o),g),Fl({},p,{intentional:!1!==b[0]||!1!==b[1],_initial:o,_movement:h,movement:m,values:e,offset:mu(r,v,g),delta:Ml(m,s)})},o.clean=function(){this.clearTimeout()},t=e,(n=[{key:"config",get:function(){return this.controller.config[this.stateKey]}},{key:"enabled",get:function(){return this.controller.config.enabled&&this.config.enabled}},{key:"state",get:function(){return this.controller.state[this.stateKey]}},{key:"handler",get:function(){return this.controller.handlers[this.stateKey]}},{key:"transform",get:function(){return this.config.transform||this.controller.config.transform||pu}}])&&Ll(t.prototype,n),r&&Ll(t,r),e}();function hu(e,t){return Math.abs(e)>=t&&Rl(e)*t}function mu(e,t,n){var r=t[0],o=t[1],a=n[0],i=n[1],c=e[0],s=c[0],l=c[1],u=e[1],d=u[0],f=u[1];return[Nl(r,s,l,a),Nl(o,d,f,i)]}function vu(e,t,n){var r=e.state,o=t.timeStamp,a=t.type,i=r.values;return{_lastEventType:a,event:t,timeStamp:o,elapsedTime:n?0:o-r.startTime,previous:i}}function gu(e,t,n,r){var o=e.state,a=e.config,i=e.stateKey,c=e.args,s=e.transform,l=o.offset,u=n.timeStamp,d=a.initial,f=a.bounds,p=Ml(s(a.threshold),s([0,0])).map(Math.abs),b=Fl({},du()[i],{_active:!0,args:c,values:t,initial:null!=r?r:t,_threshold:p,offset:l,lastOffset:l,startTime:u});return Fl({},b,{_initial:$l(d,b),_bounds:$l(f,b)})}var yu=function(e){var t=this;this.classes=e,this.pointerIds=new Set,this.touchIds=new Set,this.supportsTouchEvents=Yl(),this.supportsGestureEvents=function(){try{return"constructor"in GestureEvent}catch(e){return!1}}(),this.bind=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(var o,a={},i=Wl(t.classes);!(o=i()).done;){var c=o.value;new c(t,n).addBindings(a)}var s=function(e){Cu(a,e,(function(r){return t.nativeRefs[e](Fl({},t.state.shared,{event:r,args:n}))}))};for(var l in t.nativeRefs)s(l);return t.config.domTarget?_u(t,a):Eu(t,a)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=Su(t.config),n=t.config.eventOptions;e&&Tu(e,ku(t.domListeners),n),Object.values(t.timeouts).forEach(clearTimeout),function(e){var t=e.config,n=t.window,r=t.eventOptions,o=e.windowListeners;if(!n)return;for(var a in o){var i=o[a];Tu(n,i,r)}e.windowListeners={}}(t)},this.classes=e,this.state=du(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function Ou(e,t){"pointerId"in t?e.pointerIds.add(t.pointerId):e.touchIds=new Set(Zl(t))}function ju(e,t){"pointerId"in t?e.pointerIds.delete(t.pointerId):Zl(t).forEach((function(t){return e.touchIds.delete(t)}))}function wu(e,t,n){var r=e.config,o=e.windowListeners;void 0===n&&(n=r.eventOptions),r.window&&(Tu(r.window,o[t],n),delete o[t])}function xu(e,t,n,r){var o=e.config,a=e.windowListeners;void 0===n&&(n=[]),void 0===r&&(r=o.eventOptions),o.window&&(Tu(o.window,a[t],r),Pu(o.window,a[t]=n,r))}function _u(e,t){var n=e.config,r=e.domListeners,o=Su(n);if(!o)throw new Error("domTarget must be defined");var a=n.eventOptions;Tu(o,ku(r),a);for(var i=0,c=Object.entries(t);i<c.length;i++){var s=c[i],l=s[0],u=s[1],d=l.slice(2).toLowerCase();r.push([d,Kl.apply(void 0,u)])}Pu(o,r,a)}function Eu(e,t){for(var n={},r=e.config.eventOptions.capture?"Capture":"",o=0,a=Object.entries(t);o<a.length;o++){var i=a[o],c=i[0],s=i[1],l=Array.isArray(s)?s:[s];n[c+r]=Kl.apply(void 0,l)}return n}function ku(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function Su(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function Cu(e,t,n){e[t]||(e[t]=[]),e[t].push(n)}function Pu(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=Wl(t);!(r=o()).done;){var a=r.value,i=a[0],c=a[1];e.addEventListener(i,c,n)}}function Tu(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=Wl(t);!(r=o()).done;){var a=r.value,i=a[0],c=a[1];e.removeEventListener(i,c,n)}}function Mu(e,t,n){void 0===n&&(n={});var r=function(e){var t=new Set;e.drag&&t.add(fu.get("drag"));e.wheel&&t.add(fu.get("wheel"));e.scroll&&t.add(fu.get("scroll"));e.move&&t.add(fu.get("move"));e.pinch&&t.add(fu.get("pinch"));e.hover&&t.add(fu.get("hover"));return t}(e),o=Y.a.useMemo((function(){return new yu(r)}),[]);return o.config=t,o.handlers=e,o.nativeRefs=n,Y.a.useEffect(o.effect,[]),o.config.domTarget?Du:o.bind}function Du(){0}var Iu=function(e){function t(){return e.apply(this,arguments)||this}zl(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return Ml(e,t.initial)},n.checkIntentionality=function(e,t){if(!1===e[0]&&!1===e[1])return{_intentional:e,axis:this.state.axis};var n=t.map(Math.abs),r=n[0],o=n[1],a=this.state.axis||(r>o?"x":r<o?"y":void 0);return this.config.axis||this.config.lockDirection?a?this.config.axis&&a!==this.config.axis?{_intentional:e,_blocked:!0,axis:a}:(e["x"===a?1:0]=!1,{_intentional:e,_blocked:!1,axis:a}):{_intentional:[!1,!1],_blocked:!1,axis:a}:{_intentional:e,_blocked:!1,axis:a}},n.getKinematics=function(e,t){var n=this.getMovement(e);if(!n._blocked){var r=t.timeStamp-this.state.timeStamp;Object.assign(n,Il(n.movement,n.delta,r))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(bu);function Ru(e){"persist"in e&&"function"==typeof e.persist&&e.persist()}var Au=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).ingKey="dragging",t.stateKey="drag",t.setPointerCapture=function(e){if(!t.config.useTouch&&!document.pointerLockElement){var n=e.target,r=e.pointerId;n&&"setPointerCapture"in n&&n.setPointerCapture(r),t.updateGestureState({_dragTarget:n,_dragPointerId:r})}},t.releasePointerCapture=function(){if(!t.config.useTouch&&!document.pointerLockElement){var e=t.state,n=e._dragTarget,r=e._dragPointerId;if(r&&n&&"releasePointerCapture"in n&&(!("hasPointerCapture"in n)||n.hasPointerCapture(r)))try{n.releasePointerCapture(r)}catch(e){}}},t.preventScroll=function(e){t.state._dragPreventScroll&&e.cancelable&&e.preventDefault()},t.getEventId=function(e){return t.config.useTouch?e.changedTouches[0].identifier:e.pointerId},t.isValidEvent=function(e){return t.state._pointerId===t.getEventId(e)},t.shouldPreventWindowScrollY=t.config.experimental_preventWindowScrollY&&t.controller.supportsTouchEvents,t.setUpWindowScrollDetection=function(e){Ru(e),xu(t.controller,t.stateKey,[["touchmove",t.preventScroll],["touchend",t.clean.bind(Hl(t))],["touchcancel",t.clean.bind(Hl(t))]],{passive:!1}),t.setTimeout(t.startDrag.bind(Hl(t)),250,e)},t.setUpDelayedDragTrigger=function(e){t.state._dragDelayed=!0,Ru(e),t.setTimeout(t.startDrag.bind(Hl(t)),t.config.delay,e)},t.setStartState=function(e){var n=eu(e,t.transform);t.updateSharedState(Jl(e)),t.updateGestureState(Fl({},gu(Hl(t),n,e),vu(Hl(t),e,!0),{_pointerId:t.getEventId(e)})),t.updateGestureState(t.getMovement(n))},t.onDragStart=function(e){Ou(t.controller,e),t.enabled&&!t.state._active&&(t.setStartState(e),t.setPointerCapture(e),t.shouldPreventWindowScrollY?t.setUpWindowScrollDetection(e):t.config.delay>0?t.setUpDelayedDragTrigger(e):t.startDrag(e,!0))},t.onDragChange=function(e){if(!t.state.canceled&&t.state._active&&t.isValidEvent(e)&&(t.state._lastEventType!==e.type||e.timeStamp!==t.state.timeStamp)){var n;if(document.pointerLockElement){var r=e.movementX,o=e.movementY;n=Tl(t.transform([r,o]),t.state.values)}else n=eu(e,t.transform);var a=t.getKinematics(n,e);if(!t.state._dragStarted){if(t.state._dragDelayed)return void t.startDrag(e);if(!t.shouldPreventWindowScrollY)return;if(t.state._dragPreventScroll||!a.axis)return;if("x"!==a.axis)return void(t.state._active=!1);t.startDrag(e)}var i=Jl(e);t.updateSharedState(i);var c=vu(Hl(t),e),s=Dl(a._movement),l=t.state._dragIsTap;l&&s>=3&&(l=!1),t.updateGestureState(Fl({},c,a,{_dragIsTap:l})),t.fireGestureHandler()}},t.onDragEnd=function(e){if(ju(t.controller,e),t.isValidEvent(e)&&(t.clean(),t.state._active)){t.state._active=!1;var n=t.state._dragIsTap,r=t.state.velocities,o=r[0],a=r[1],i=t.state.movement,c=i[0],s=i[1],l=t.state._intentional,u=l[0],d=l[1],f=t.config.swipeVelocity,p=f[0],b=f[1],h=t.config.swipeDistance,m=h[0],v=h[1],g=t.config.swipeDuration,y=Fl({},vu(Hl(t),e),t.getMovement(t.state.values)),O=[0,0];y.elapsedTime<g&&(!1!==u&&Math.abs(o)>p&&Math.abs(c)>m&&(O[0]=Rl(o)),!1!==d&&Math.abs(a)>b&&Math.abs(s)>v&&(O[1]=Rl(a))),t.updateSharedState({buttons:0}),t.updateGestureState(Fl({},y,{tap:n,swipe:O})),t.fireGestureHandler(t.config.filterTaps&&!0===n)}},t.clean=function(){e.prototype.clean.call(Hl(t)),t.state._dragStarted=!1,t.releasePointerCapture(),wu(t.controller,t.stateKey)},t.onCancel=function(){t.state.canceled||(t.updateGestureState({canceled:!0,_active:!1}),t.updateSharedState({buttons:0}),setTimeout((function(){return t.fireGestureHandler()}),0))},t.onClick=function(e){t.state._dragIsTap||e.stopPropagation()},t}zl(t,e);var n=t.prototype;return n.startDrag=function(e,t){void 0===t&&(t=!1),this.state._active&&!this.state._dragStarted&&(t||this.setStartState(e),this.updateGestureState({_dragStarted:!0,_dragPreventScroll:!0,cancel:this.onCancel}),this.clearTimeout(),this.fireGestureHandler())},n.addBindings=function(e){(this.config.useTouch?(Cu(e,"onTouchStart",this.onDragStart),Cu(e,"onTouchMove",this.onDragChange),Cu(e,"onTouchEnd",this.onDragEnd),Cu(e,"onTouchCancel",this.onDragEnd)):(Cu(e,"onPointerDown",this.onDragStart),Cu(e,"onPointerMove",this.onDragChange),Cu(e,"onPointerUp",this.onDragEnd),Cu(e,"onPointerCancel",this.onDragEnd)),this.config.filterTaps)&&Cu(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(Iu);function Nu(e,t){var n,r,o=[],a=!1;return function(){for(var i=arguments.length,c=new Array(i),s=0;s<i;s++)c[s]=arguments[s];return a&&n===this&&t(c,o)||(r=e.apply(this,c),a=!0,n=this,o=c),r}}function Lu(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,a,i;if(Array.isArray(t)){if((r=t.length)!==n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if("function"==typeof Map&&t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(i=t.entries();!(o=i.next()).done;)if(!n.has(o.value[0]))return!1;for(i=t.entries();!(o=i.next()).done;)if(!e(o.value[1],n.get(o.value[0])))return!1;return!0}if("function"==typeof Set&&t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(i=t.entries();!(o=i.next()).done;)if(!n.has(o.value[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;if("undefined"!=typeof Element&&t instanceof Element)return!1;for(o=r;0!=o--;)if(!("_owner"===a[o]&&t.$$typeof||e(t[a[o]],n[a[o]])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}var Fu=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).ingKey="moving",t.stateKey="move",t.debounced=!0,t.onMove=function(e){t.enabled&&(t.setTimeout(t.onMoveEnd),t.state._active?t.onMoveChange(e):t.onMoveStart(e))},t.onMoveStart=function(e){t.updateSharedState(Jl(e));var n=eu(e,t.transform);t.updateGestureState(Fl({},gu(Hl(t),n,e),vu(Hl(t),e,!0))),t.updateGestureState(t.getMovement(n)),t.fireGestureHandler()},t.onMoveChange=function(e){t.updateSharedState(Jl(e));var n=eu(e,t.transform);t.updateGestureState(Fl({},vu(Hl(t),e),t.getKinematics(n,e))),t.fireGestureHandler()},t.onMoveEnd=function(){if(t.clean(),t.state._active){var e=t.state.values;t.updateGestureState(t.getMovement(e)),t.updateGestureState({velocities:[0,0],velocity:0,_active:!1}),t.fireGestureHandler()}},t.hoverTransform=function(){return t.controller.config.hover.transform||t.controller.config.transform},t.onPointerEnter=function(e){if(t.controller.state.shared.hovering=!0,t.controller.config.enabled){if(t.controller.config.hover.enabled){var n=eu(e,t.hoverTransform()),r=Fl({},t.controller.state.shared,t.state,vu(Hl(t),e,!0),{args:t.args,values:n,active:!0,hovering:!0});t.controller.handlers.hover(Fl({},r,t.mapStateValues(r)))}"move"in t.controller.handlers&&t.onMoveStart(e)}},t.onPointerLeave=function(e){if(t.controller.state.shared.hovering=!1,"move"in t.controller.handlers&&t.onMoveEnd(),t.controller.config.hover.enabled){var n=eu(e,t.hoverTransform()),r=Fl({},t.controller.state.shared,t.state,vu(Hl(t),e),{args:t.args,values:n,active:!1});t.controller.handlers.hover(Fl({},r,t.mapStateValues(r)))}},t}return zl(t,e),t.prototype.addBindings=function(e){"move"in this.controller.handlers&&Cu(e,"onPointerMove",this.onMove),"hover"in this.controller.handlers&&(Cu(e,"onPointerEnter",this.onPointerEnter),Cu(e,"onPointerLeave",this.onPointerLeave))},t}(Iu);var zu=n("RxS6");const Bu=e=>e,Hu={_event:{},error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""};function Vu(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Hu;const{value:t}=e;return{...Hu,...e,initialValue:t}}const Wu=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.reduceRight((e,t)=>{const r=t(...n);return Object(l.isEmpty)(r)?e:{...e,...r}},{})}};function Uu(e){return(t,n)=>{const r={...t};switch(n.type){case"PRESS_UP":case"PRESS_DOWN":r.isDirty=!1;break;case"DRAG_START":r.isDragging=!0;break;case"DRAG_END":r.isDragging=!1;break;case"CHANGE":r.error=null,r.value=n.payload.value,t.isPressEnterToChange&&(r.isDirty=!0);break;case"COMMIT":r.value=n.payload.value,r.isDirty=!1;break;case"RESET":r.error=null,r.isDirty=!1,r.value=n.payload.value||t.initialValue;break;case"UPDATE":r.value=n.payload.value,r.isDirty=!1;break;case"INVALIDATE":r.error=n.payload.error}return n.payload.event&&(r._event=n.payload.event),e(r,n)}}function Ku(e){return null!=e}function Gu(e){const t=""===e;return!Ku(e)||t}function $u(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;return null!==(e=t.find(Ku))&&void 0!==e?e:n}var qu=function(e,t){const n=Object(s.useRef)(!1);Object(s.useEffect)(()=>{if(n.current)return e();n.current=!0},t)};var Yu=Object(s.forwardRef)((function(e,t){let{disabled:n=!1,dragDirection:r="n",dragThreshold:o=10,id:a,isDragEnabled:i=!1,isFocused:u,isPressEnterToChange:d=!1,onBlur:f=l.noop,onChange:p=l.noop,onDrag:b=l.noop,onDragEnd:h=l.noop,onDragStart:m=l.noop,onFocus:v=l.noop,onKeyDown:g=l.noop,onValidate:y=l.noop,size:O="default",setIsFocused:j,stateReducer:w=(e=>e),value:x,type:_,...E}=e;const{state:k,change:S,commit:C,drag:P,dragEnd:T,dragStart:M,invalidate:D,pressDown:I,pressEnter:R,pressUp:A,reset:N,update:L}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Bu,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hu;const[n,r]=Object(s.useReducer)(Uu(e),Vu(t)),o=e=>(t,n)=>{n&&n.persist&&n.persist(),r({type:e,payload:{value:t,event:n}})},a=e=>t=>{t&&t.persist&&t.persist(),r({type:e,payload:{event:t}})},i=e=>t=>{r({type:e,payload:t})},c=o("CHANGE"),l=(e,t)=>r({type:"INVALIDATE",payload:{error:e,event:t}}),u=o("RESET"),d=o("COMMIT"),f=o("UPDATE"),p=i("DRAG_START"),b=i("DRAG"),h=i("DRAG_END"),m=a("PRESS_UP"),v=a("PRESS_DOWN"),g=a("PRESS_ENTER");return{change:c,commit:d,dispatch:r,drag:b,dragEnd:h,dragStart:p,invalidate:l,pressDown:v,pressEnter:g,pressUp:m,reset:u,state:n,update:f}}(w,{isDragEnabled:i,value:x,isPressEnterToChange:d}),{_event:F,value:z,isDragging:B,isDirty:H}=k,V=Object(s.useRef)(!1),W=function(e,t){const n=function(e){let t="ns-resize";switch(e){case"n":case"s":t="ns-resize";break;case"e":case"w":t="ew-resize"}return t}(t);return Object(s.useEffect)(()=>{document.documentElement.style.cursor=e?n:null},[e]),n}(B,r);qu(()=>{x!==z&&(u||V.current?H||(p(z,{event:F}),V.current=!1):L(x,F))},[z,H,u,x]);const U=e=>{const t=e.currentTarget.value;try{y(t),C(t,e)}catch(t){D(t,e)}},K=function(e,t){void 0===t&&(t={}),fu.set("drag",Au);var n=Object(q.useRef)();return n.current||(n.current=Nu(lu,Lu)),Mu({drag:e},n.current(t))}(e=>{const{distance:t,dragging:n,event:r}=e;if(r.persist(),t){if(r.stopPropagation(),!n)return h(e),void T(e);b(e),P(e),B||(m(e),M(e))}},{threshold:o,enabled:i}),G=i?K():{};let $;return"number"===_&&($=e=>{var t;null===(t=E.onMouseDown)||void 0===t||t.call(E,e),e.currentTarget!==e.currentTarget.ownerDocument.activeElement&&e.currentTarget.focus()}),Object(s.createElement)(gl,Object(c.a)({},E,G,{className:"components-input-control__input",disabled:n,dragCursor:W,isDragging:B,id:a,onBlur:e=>{f(e),null==j||j(!1),d&&H&&(V.current=!0,Gu(z)?N(x,e):U(e))},onChange:e=>{const t=e.target.value;S(t,e)},onFocus:e=>{v(e),null==j||j(!0)},onKeyDown:e=>{const{keyCode:t}=e;switch(g(e),t){case zu.UP:A(e);break;case zu.DOWN:I(e);break;case zu.ENTER:R(e),d&&(e.preventDefault(),U(e))}},onMouseDown:$,ref:t,inputSize:O,value:z,type:_}))}));function Xu(e,t){let{__unstableStateReducer:n=(e=>e),__unstableInputWidth:r,className:o,disabled:a=!1,hideLabelFromVision:i=!1,id:u,isPressEnterToChange:f=!1,label:b,labelPosition:h="top",onChange:m=l.noop,onValidate:v=l.noop,onKeyDown:g=l.noop,prefix:y,size:O="default",suffix:j,value:w,...x}=e;const[_,E]=Object(s.useState)(!1),k=function(e){const t=Object(p.useInstanceId)(Xu);return e||"inspector-input-control-"+t}(u),S=d()("components-input-control",o);return Object(s.createElement)(Pl,{__unstableInputWidth:r,className:S,disabled:a,gap:3,hideLabelFromVision:i,id:k,isFocused:_,justify:"left",label:b,labelPosition:h,prefix:y,size:O,suffix:j},Object(s.createElement)(Yu,Object(c.a)({},x,{className:"components-input-control__input",disabled:a,id:k,isFocused:_,isPressEnterToChange:f,onChange:m,onKeyDown:g,onValidate:v,ref:t,setIsFocused:E,size:O,stateReducer:n,value:w})))}var Zu=Object(s.forwardRef)(Xu);const Ju=Object(w.a)(Ms,{target:"e65ony43"})("margin-bottom:",ws(2),";"),Qu=Object(w.a)("div",{target:"e65ony42"})("border-radius:50%;border:",Ks.borderWidth," solid ",L.ui.border,";box-sizing:border-box;cursor:grab;height:",32,"px;overflow:hidden;width:",32,"px;"),ed=Object(w.a)("div",{target:"e65ony41"})({name:"1bhd2sw",styles:"box-sizing:border-box;position:relative;width:100%;height:100%"}),td=Object(w.a)("div",{target:"e65ony40"})("background:",L.admin.theme,";border-radius:50%;border:",3,"px solid ",L.admin.theme,";bottom:0;box-sizing:border-box;display:block;height:0px;left:0;margin:auto;position:absolute;right:0;top:-",16,"px;width:0px;");var nd=function(e){let{value:t,onChange:n,...r}=e;const o=Object(s.useRef)(),a=Object(s.useRef)(),i=Object(s.useRef)(),l=e=>{const{x:t,y:r}=a.current,{ownerDocument:i}=o.current;e.preventDefault(),i.activeElement.blur(),n(function(e,t,n,r){const o=r-t,a=n-e,i=Math.atan2(o,a),c=Math.round(i*(180/Math.PI))+90;if(c<0)return 360+c;return c}(t,r,e.clientX,e.clientY))},{startDrag:u,isDragging:d}=Object(p.__experimentalUseDragging)({onDragStart:e=>{(()=>{const e=o.current.getBoundingClientRect();a.current={x:e.x+e.width/2,y:e.y+e.height/2}})(),l(e)},onDragMove:l,onDragEnd:l});return Object(s.useEffect)(()=>{d?(void 0===i.current&&(i.current=document.body.style.cursor),document.body.style.cursor="grabbing"):(document.body.style.cursor=i.current||null,i.current=void 0)},[d]),Object(s.createElement)(Qu,Object(c.a)({ref:o,onMouseDown:u,className:"components-angle-picker-control__angle-circle",style:d?{cursor:"grabbing"}:void 0},r),Object(s.createElement)(ed,{style:t?{transform:`rotate(${t}deg)`}:void 0,className:"components-angle-picker-control__angle-circle-indicator-wrapper"},Object(s.createElement)(td,{className:"components-angle-picker-control__angle-circle-indicator"})))};const rd=e=>null!=e;var od=Object(os.a)((function(e,t){const n=function(e){const{className:t,margin:n,marginBottom:r=2,marginLeft:o,marginRight:a,marginTop:i,marginX:c,marginY:s,padding:l,paddingBottom:u,paddingLeft:d,paddingRight:f,paddingTop:p,paddingX:b,paddingY:h,...m}=Object(is.a)(e,"Spacer");return{...m,className:Object(ps.a)()(rd(n)&&Object(x.a)("margin:",ws(n),";",""),rd(s)&&Object(x.a)("margin-bottom:",ws(s),";margin-top:",ws(s),";",""),rd(c)&&Object(x.a)("margin-left:",ws(c),";margin-right:",ws(c),";",""),rd(i)&&Object(x.a)("margin-top:",ws(i),";",""),rd(r)&&Object(x.a)("margin-bottom:",ws(r),";",""),rd(o)&&Object(x.a)("margin-left:",ws(o),";",""),rd(a)&&Object(x.a)("margin-right:",ws(a),";",""),rd(l)&&Object(x.a)("padding:",ws(l),";",""),rd(h)&&Object(x.a)("padding-bottom:",ws(h),";padding-top:",ws(h),";",""),rd(b)&&Object(x.a)("padding-left:",ws(b),";padding-right:",ws(b),";",""),rd(p)&&Object(x.a)("padding-top:",ws(p),";",""),rd(u)&&Object(x.a)("padding-bottom:",ws(u),";",""),rd(d)&&Object(x.a)("padding-left:",ws(d),";",""),rd(f)&&Object(x.a)("padding-right:",ws(f),";",""),t)}}(e);return Object(s.createElement)(as.a,Object(c.a)({},n,{ref:t}))}),"Spacer");function ad(e){let{className:t,label:n=Object(f.__)("Angle"),onChange:r,value:o}=e;const a=d()("components-angle-picker-control",t);return Object(s.createElement)(Ju,{className:a},Object(s.createElement)(hs,null,Object(s.createElement)(Zu,{label:n,className:"components-angle-picker-control__input-field",max:360,min:0,onChange:e=>{const t=""!==e?parseInt(e,10):0;r(t)},step:"1",value:o,hideHTMLArrows:!0,suffix:Object(s.createElement)(od,{as:cl,marginRight:ws(3),style:{color:"var( --wp-admin-theme-color )"}},"°")})),Object(s.createElement)(ms,{style:{marginLeft:ws(4),marginBottom:ws(1),marginTop:"auto"}},Object(s.createElement)(nd,{"aria-hidden":"true",value:o,onChange:r})))}var id=n("qRz9"),cd=n("gdqT");function sd(e){return t=>{const[n,r]=Object(s.useState)([]);return Object(s.useLayoutEffect)(()=>{const{options:n,isDebounced:o}=e,a=Object(l.debounce)(()=>{const o=Promise.resolve("function"==typeof n?n(t):n).then(n=>{if(o.canceled)return;const a=n.map((t,n)=>({key:`${e.name}-${n}`,value:t,label:e.getOptionLabel(t),keywords:e.getOptionKeywords?e.getOptionKeywords(t):[],isDisabled:!!e.isOptionDisabled&&e.isOptionDisabled(t)})),i=new RegExp("(?:\\b|\\s|^)"+Object(l.escapeRegExp)(t),"i");r(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;const r=[];for(let o=0;o<t.length;o++){const a=t[o];let{keywords:i=[]}=a;"string"==typeof a.label&&(i=[...i,a.label]);if(i.some(t=>e.test(Object(l.deburr)(t)))&&(r.push(a),r.length===n))break}return r}(i,a))});return o},o?250:0),i=a();return()=>{a.cancel(),i&&(i.canceled=!0)}},[t]),[n]}}var ld=n("kA6J"),ud=n("oXO/");function dd(e){let{record:t,onChange:n,onReplace:r,completers:o,contentRef:a}=e;const i=Object(p.useDebounce)(cd.speak,500),c=Object(p.useInstanceId)(dd),[u,b]=Object(s.useState)(0),[h,m]=Object(s.useState)([]),[v,g]=Object(s.useState)(""),[y,O]=Object(s.useState)(null),[j,w]=Object(s.useState)(null),[x,_]=Object(s.useState)(!1);function E(e){const{getOptionCompletion:o}=y||{};if(!e.isDisabled){if(o){const a=o(e.value,v),{action:i,value:c}=void 0===a.action||void 0===a.value?{action:"insert-at-caret",value:a}:a;if("replace"===i)return void r([c]);"insert-at-caret"===i&&function(e){const r=t.start,o=r-y.triggerPrefix.length-v.length,a=Object(id.create)({html:Object(s.renderToString)(e)});n(Object(id.insert)(t,a,o,r))}(c)}k()}}function k(){b(0),m([]),g(""),O(null),w(null)}let S;Object(id.isCollapsed)(t)&&(S=Object(id.getTextContent)(Object(id.slice)(t,0))),Object(s.useEffect)(()=>{if(!S)return void k();const e=Object(l.deburr)(S),n=Object(id.getTextContent)(Object(id.slice)(t,void 0,Object(id.getTextContent)(t).length)),r=Object(l.find)(o,t=>{let{triggerPrefix:r,allowContext:o}=t;const a=e.lastIndexOf(r);if(-1===a)return!1;const i=e.slice(a+r.length);if(i.length>50)return!1;const c=0===h.length,s=1===i.split(/\s/).length,l=x&&i.split(/\s/).length<=3;return!(c&&!l&&!s)&&(!(o&&!o(e.slice(0,a),n))&&(!/^\s/.test(i)&&!/\s\s+$/.test(i)&&/[\u0000-\uFFFF]*$/.test(i)))});if(!r)return void k();const a=Object(l.escapeRegExp)(r.triggerPrefix),i=e.slice(e.lastIndexOf(r.triggerPrefix)).match(new RegExp(a+"([\0-￿]*)$")),c=i&&i[1];O(r),w(()=>r!==y?function(e){const t=e.useItems?e.useItems:sd(e);return function(e){let{filterValue:n,instanceId:r,listBoxId:o,className:a,selectedIndex:i,onChangeOptions:c,onSelect:u,onReset:f,value:p,contentRef:b}=e;const[h]=t(n),m=Object(id.useAnchorRef)({ref:b,value:p});return Object(s.useLayoutEffect)(()=>{c(h)},[h]),!h.length>0?null:Object(s.createElement)(ud.a,{focusOnMount:!1,onClose:f,position:"top right",className:"components-autocomplete__popover",anchorRef:m},Object(s.createElement)("div",{id:o,role:"listbox",className:"components-autocomplete__results"},Object(l.map)(h,(e,t)=>Object(s.createElement)(ld.a,{key:e.key,id:`components-autocomplete-item-${r}-${e.key}`,role:"option","aria-selected":t===i,disabled:e.isDisabled,className:d()("components-autocomplete__result",a,{"is-selected":t===i}),onClick:()=>u(e)},e.label))))}}(r):j),g(c)},[S]);const{key:C=""}=h[u]||{},{className:P}=y||{},T=!!y&&h.length>0,M=T?"components-autocomplete-listbox-"+c:null;return{listBoxId:M,activeId:T?`components-autocomplete-item-${c}-${C}`:null,onKeyDown:function(e){if(_(e.keyCode===zu.BACKSPACE),y&&0!==h.length&&!e.defaultPrevented){switch(e.keyCode){case zu.UP:b((0===u?h.length:u)-1);break;case zu.DOWN:b((u+1)%h.length);break;case zu.ESCAPE:O(null),w(null),e.preventDefault();break;case zu.ENTER:E(h[u]);break;case zu.LEFT:case zu.RIGHT:return void k();default:return}e.preventDefault()}},popover:void 0!==t.start&&j&&Object(s.createElement)(j,{className:P,filterValue:v,instanceId:c,listBoxId:M,selectedIndex:u,onChangeOptions:function(e){b(e.length===h.length?u:0),m(e),function(e){i&&(e.length?i(Object(f.sprintf)(Object(f._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length),e.length),"assertive"):i(Object(f.__)("No results."),"assertive"))}(e)},onSelect:E,value:t,contentRef:a,reset:k})}}function fd(e){const t=Object(s.useRef)(),n=Object(s.useRef)(),{popover:r,listBoxId:o,activeId:a,onKeyDown:i}=dd({...e,contentRef:t});return n.current=i,{ref:Object(p.useMergeRefs)([t,Object(p.useRefEffect)(e=>{function t(e){n.current(e)}return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}},[])]),children:r,"aria-autocomplete":o?"list":void 0,"aria-owns":o,"aria-activedescendant":a}}function pd(e){let{children:t,isSelected:n,...r}=e;const{popover:o,...a}=dd(r);return Object(s.createElement)(s.Fragment,null,t(a),n&&o)}var bd={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function hd(e){return Object(l.get)(bd,e,"")}const md=Object(w.a)("div",{target:"e1puf3u3"})("font-family:",hd("default.fontFamily"),";font-size:",hd("default.fontSize"),";"),vd=Object(w.a)("div",{target:"e1puf3u2"})("margin-bottom:",ws(2),";.components-panel__row &{margin-bottom:inherit;}"),gd=Object(w.a)("label",{target:"e1puf3u1"})("display:inline-block;margin-bottom:",ws(2),";"),yd=Object(w.a)("p",{target:"e1puf3u0"})("font-size:",hd("helpText.fontSize"),";font-style:normal;color:",L.mediumGray.text,";");function Od(e){let{id:t,label:n,hideLabelFromVision:r,help:o,className:a,children:i}=e;return Object(s.createElement)(md,{className:d()("components-base-control",a)},Object(s.createElement)(vd,{className:"components-base-control__field"},n&&t&&(r?Object(s.createElement)(m.a,{as:"label",htmlFor:t},n):Object(s.createElement)(gd,{className:"components-base-control__label",htmlFor:t},n)),n&&!t&&(r?Object(s.createElement)(m.a,{as:"label"},n):Object(s.createElement)(Od.VisualLabel,null,n)),i),!!o&&Object(s.createElement)(yd,{id:t?t+"__help":void 0,className:"components-base-control__help"},o))}Od.VisualLabel=e=>{let{className:t,children:n}=e;return t=d()("components-base-control__label",t),Object(s.createElement)("span",{className:t},n)};var jd=Od;var wd={name:"euqsgg",styles:"input[type='number']::-webkit-outer-spin-button,input[type='number']::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}input[type='number']{-moz-appearance:textfield;}"};const xd=e=>{let{hideHTMLArrows:t}=e;return t?wd:""},_d=Object(w.a)(Zu,{target:"ep48uk90"})(xd,";");function Ed(e){const t=Number(e);return isNaN(t)?0:t}function kd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((e,t)=>e+Ed(t),0)}function Sd(e){const t=(e+"").split(".");return void 0!==t[1]?t[1].length:0}function Cd(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const o=Ed(e),a=Ed(r),i=Sd(r),c=Math.round(o/a)*a,s=Object(l.clamp)(c,t,n);return i?Ed(s.toFixed(i)):s}var Pd=Object(s.forwardRef)((function(e,t){let{__unstableStateReducer:n=(e=>e),className:r,dragDirection:o="n",hideHTMLArrows:a=!1,isDragEnabled:i=!0,isShiftStepEnabled:l=!0,label:u,max:p=1/0,min:b=-1/0,required:h=!1,shiftStep:m=10,step:v=1,type:g="number",value:y,...O}=e;const j="any"===v,w=j?1:parseFloat(v),x=Cd(0,b,p,w),_=(e,t)=>j?Math.min(p,Math.max(b,e)):Cd(e,b,p,null!=t?t:w),E="number"===g?"off":null,k=d()("components-number-control",r);return Object(s.createElement)(_d,Object(c.a)({autoComplete:E,inputMode:"numeric"},O,{className:k,dragDirection:o,hideHTMLArrows:a,isDragEnabled:i,label:u,max:p,min:b,ref:t,required:h,step:v,type:g,value:y,__unstableStateReducer:Wu((e,t)=>{const{type:n,payload:r}=t,a=null==r?void 0:r.event,c=e.value;if("PRESS_UP"===n||"PRESS_DOWN"===n){const t=a.shiftKey&&l,r=t?parseFloat(m)*w:w;let o=Gu(c)?x:c;null!=a&&a.preventDefault&&a.preventDefault(),"PRESS_UP"===n&&(o=kd(o,r)),"PRESS_DOWN"===n&&(o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((e,t,n)=>{const r=Ed(t);return 0===n?r:e-r},0)}(o,r)),e.value=_(o,t?r:null)}if("DRAG"===n&&i){const[t,n]=r.delta,a=r.shiftKey&&l,i=a?parseFloat(m)*w:w;let s,u;switch(o){case"n":u=n,s=-1;break;case"e":u=t,s=Object(f.isRTL)()?-1:1;break;case"s":u=n,s=1;break;case"w":u=t,s=Object(f.isRTL)()?1:-1}if(0!==u){u=Math.ceil(Math.abs(u))*Math.sign(u);const t=u*i*s;e.value=_(kd(c,t),a?i:null)}}if("PRESS_ENTER"===n||"COMMIT"===n){const t=!1===h&&""===c;e.value=t?c:_(c)}return e},n)}))}));const Td=Object(w.a)("div",{target:"e1bagdl33"})({name:"100d0a9",styles:"box-sizing:border-box;position:relative"}),Md=e=>{let{disableUnits:t}=e;const n=t?3:24;return Object(x.a)(Ps({paddingRight:n})(),";","")};var Dd={name:"1y65o8",styles:"&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}"};const Id=e=>{let{disableUnits:t}=e;return t?"":Dd},Rd=Object(w.a)(Pd,{target:"e1bagdl32"})("&&&{input{appearance:none;-moz-appearance:textfield;display:block;width:100%;",Id,";",Md,";}}"),Ad=e=>Object(x.a)("appearance:none;background:transparent;border-radius:2px;border:none;box-sizing:border-box;color:",L.darkGray[500],";display:block;font-size:8px;line-height:1;letter-spacing:-0.5px;outline:none;padding:2px 1px;position:absolute;text-align-last:center;text-transform:uppercase;width:20px;",Ps({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," ",Ps({right:0})()," ",(e=>{let{selectSize:t}=e;return Object(x.a)({default:{height:28,lineHeight:"24px",minHeight:28,top:1},small:{height:22,lineHeight:"18px",minHeight:22,top:1}}[t],"","")})(e),";",""),Nd=Object(w.a)("div",{target:"e1bagdl31"})("&&&{pointer-events:none;",Ad,";}"),Ld=Object(w.a)("select",{target:"e1bagdl30"})("&&&{",Ad,";cursor:pointer;border:1px solid transparent;&:hover{background-color:",L.lightGray[300],";}&:focus{border-color:",L.ui.borderFocus,";outline:2px solid transparent;outline-offset:0;}&:disabled{cursor:initial;&:hover{background-color:transparent;}}}"),Fd="web"===s.Platform.OS,zd={px:{value:"px",label:Fd?"px":Object(f.__)("Pixels (px)"),default:"",a11yLabel:Object(f.__)("Pixels (px)"),step:1},"%":{value:"%",label:Fd?"%":Object(f.__)("Percentage (%)"),default:"",a11yLabel:Object(f.__)("Percent (%)"),step:.1},em:{value:"em",label:Fd?"em":Object(f.__)("Relative to parent font size (em)"),default:"",a11yLabel:Object(f._x)("ems","Relative to parent font size (em)"),step:.01},rem:{value:"rem",label:Fd?"rem":Object(f.__)("Relative to root font size (rem)"),default:"",a11yLabel:Object(f._x)("rems","Relative to root font size (rem)"),step:.01},vw:{value:"vw",label:Fd?"vw":Object(f.__)("Viewport width (vw)"),default:"",a11yLabel:Object(f.__)("Viewport width (vw)"),step:.1},vh:{value:"vh",label:Fd?"vh":Object(f.__)("Viewport height (vh)"),default:"",a11yLabel:Object(f.__)("Viewport height (vh)"),step:.1},vmin:{value:"vmin",label:Fd?"vmin":Object(f.__)("Viewport smallest dimension (vmin)"),default:"",a11yLabel:Object(f.__)("Viewport smallest dimension (vmin)"),step:.1},vmax:{value:"vmax",label:Fd?"vmax":Object(f.__)("Viewport largest dimension (vmax)"),default:"",a11yLabel:Object(f.__)("Viewport largest dimension (vmax)"),step:.1},ch:{value:"ch",label:Fd?"ch":Object(f.__)("Width of the zero (0) character (ch)"),default:"",a11yLabel:Object(f.__)("Width of the zero (0) character (ch)"),step:.01},ex:{value:"ex",label:Fd?"ex":Object(f.__)("x-height of the font (ex)"),default:"",a11yLabel:Object(f.__)("x-height of the font (ex)"),step:.01},cm:{value:"cm",label:Fd?"cm":Object(f.__)("Centimeters (cm)"),default:"",a11yLabel:Object(f.__)("Centimeters (cm)"),step:.001},mm:{value:"mm",label:Fd?"mm":Object(f.__)("Millimeters (mm)"),default:"",a11yLabel:Object(f.__)("Millimeters (mm)"),step:.1},in:{value:"in",label:Fd?"in":Object(f.__)("Inches (in)"),default:"",a11yLabel:Object(f.__)("Inches (in)"),step:.001},pc:{value:"pc",label:Fd?"pc":Object(f.__)("Picas (pc)"),default:"",a11yLabel:Object(f.__)("Picas (pc)"),step:1},pt:{value:"pt",label:Fd?"pt":Object(f.__)("Points (pt)"),default:"",a11yLabel:Object(f.__)("Points (pt)"),step:1}},Bd=Object.values(zd),Hd=[zd.px,zd["%"],zd.em,zd.rem,zd.vw,zd.vh],Vd=zd.px;function Wd(e,t,n){return Kd(t?`${e}${t}`:e,n)}function Ud(e){return Array.isArray(e)&&!!e.length}function Kd(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bd;const n=String(e).trim();let r=parseFloat(n);r=isNaN(r)?"":r;const o=n.match(/[\d.\-\+]*\s*(.*)/);let a=void 0!==(null==o?void 0:o[1])?o[1]:"";if(a=a.toLowerCase(),Ud(t)&&!1!==t){const e=t.find(e=>e.value===a);a=null==e?void 0:e.value}else a=Vd.value;return[r,a]}function Gd(e,t,n,r){const[o,a]=Kd(e,t);let i,c=o;var s;(Number.isFinite(o)&&""!==o||(c=n),i=a||r,Array.isArray(t)&&Ud(t)&&!i)&&(i=null===(s=t[0])||void 0===s?void 0:s.value);return[c,i]}const $d=e=>{let{units:t,availableUnits:n,defaultValues:r}=e;t=t||Bd;const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return Array.isArray(t)?t.filter(t=>e.includes(t.value)):[]}(n||[],t);return r&&o.forEach((e,t)=>{r[e.value]&&(o[t].default=r[e.value])}),0!==o.length&&o};function qd(e){let{className:t,isUnitSelectTabbable:n=!0,onChange:r=l.noop,size:o="default",unit:a="px",units:i=Hd,...u}=e;if(!i||!Ud(i)||1===(null==i?void 0:i.length))return Object(s.createElement)(Nd,{className:"components-unit-control__unit-label",selectSize:o},a);const f=d()("components-unit-control__select",t);return Object(s.createElement)(Ld,Object(c.a)({className:f,onChange:e=>{const{value:t}=e.target,n=i.find(e=>e.value===t);r(t,{event:e,data:n})},selectSize:o,tabIndex:n?void 0:-1,value:a},u),i.map(e=>Object(s.createElement)("option",{value:e.value,key:e.value},e.label)))}const Yd={initial:void 0,fallback:""};var Xd=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yd;const{initial:n,fallback:r}={...Yd,...t},[o,a]=Object(s.useState)(e),i=Ku(e);Object(s.useEffect)(()=>{i&&o&&a(void 0)},[i,o]);const c=$u([e,o,n],r),l=e=>{i||a(e)};return[c,l]};var Zd=Object(s.forwardRef)((function(e,t){let{__unstableStateReducer:n=(e=>e),autoComplete:r="off",className:o,disabled:a=!1,disableUnits:i=!1,isPressEnterToChange:u=!1,isResetValueOnUnitChange:p=!1,isUnitSelectTabbable:b=!0,label:h,onChange:m=l.noop,onUnitChange:v=l.noop,size:g="default",style:y,unit:O,units:j=Hd,value:w,...x}=e;const _=Object(s.useMemo)(()=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Bd;if(!Array.isArray(n))return n;const r=[...n],[,o]=Wd(e,t,Bd);return o&&!r.some(e=>e.value===o)&&zd[o]&&r.unshift(zd[o]),r}(w,O,j),[w,O,j]),[E,k]=Wd(w,O,_),[S,C]=Xd(O,{initial:k,fallback:""}),P=Object(s.useRef)(null),T=d()("components-unit-control",o),M=e=>{if(!isNaN(Number(e.currentTarget.value)))return void(P.current=null);const[t,n]=Gd(e.currentTarget.value,_,E,S);if(P.current=t.toString(),u&&n!==S){const r={event:e,data:Array.isArray(_)?_.find(e=>e.value===n):void 0};m(`${t}${n}`,r),v(n,r),C(n)}},D=M,I=i?null:Object(s.createElement)(qd,{"aria-label":Object(f.__)("Select unit"),disabled:a,isUnitSelectTabbable:b,onChange:(e,t)=>{const{data:n}=t;let r=`${E}${e}`;p&&void 0!==(null==n?void 0:n.default)&&(r=`${n.default}${e}`),m(r,t),v(e,t),C(e)},size:g,unit:S,units:_});let R=x.step;if(!R&&_){var A;const e=_.find(e=>e.value===S);R=null!==(A=null==e?void 0:e.step)&&void 0!==A?A:1}return Object(s.createElement)(Td,{className:"components-unit-control-wrapper",style:y},Object(s.createElement)(Rd,Object(c.a)({"aria-label":h,type:u?"text":"number"},Object(l.omit)(x,["children"]),{autoComplete:r,className:T,disabled:a,disableUnits:i,isPressEnterToChange:u,label:h,onBlur:D,onKeyDown:e=>{const{keyCode:t}=e;t===zu.ENTER&&M(e)},onChange:(e,t)=>{""!==e?(e=Gd(e,_,E,S).join(""),m(e,t)):m("",t)},ref:t,size:g,suffix:I,value:E,step:R,__unstableStateReducer:Wu((e,t)=>("COMMIT"===t.type&&null!==P.current&&(e.value=P.current,P.current=null),e),n)})))}));const Jd=Object(w.a)("div",{target:"e7pk0lh6"})({name:"14bvcyk",styles:"box-sizing:border-box;max-width:235px;padding-bottom:12px;width:100%"}),Qd=Object(w.a)(Ms,{target:"e7pk0lh5"})("color:",L.ui.label,";padding-bottom:8px;"),ef=Object(w.a)(Ms,{target:"e7pk0lh4"})({name:"aujtid",styles:"min-height:30px;gap:0"}),tf=Object(w.a)("div",{target:"e7pk0lh3"})({name:"112jwab",styles:"box-sizing:border-box;max-width:80px"}),nf=Object(w.a)(Ms,{target:"e7pk0lh2"})({name:"xy18ro",styles:"justify-content:center;padding-top:8px"}),rf=Object(w.a)(Ms,{target:"e7pk0lh1"})({name:"3tw5wk",styles:"position:relative;height:100%;width:100%;justify-content:flex-start"});var of={name:"1ch9yvl",styles:"border-radius:0"},af={name:"tg3mx0",styles:"border-radius:2px"};const cf=e=>{let{isFirst:t,isLast:n,isOnly:r}=e;return t?Ps({borderTopRightRadius:0,borderBottomRightRadius:0})():n?Ps({borderTopLeftRadius:0,borderBottomLeftRadius:0})():r?af:of},sf=e=>{let{isFirst:t,isOnly:n}=e;return Ps({marginLeft:t||n?0:-1})()},lf=Object(w.a)(Zd,{target:"e7pk0lh0"})("max-width:60px;",cf,";",sf,";");function uf(e){let{isFirst:t,isLast:n,isOnly:r,onHoverOn:o=l.noop,onHoverOff:a=l.noop,label:i,value:u,...d}=e;const f=function(e,t){void 0===t&&(t={}),fu.set("hover",Fu);var n=Object(q.useRef)();return n.current||(n.current=Nu(su,Lu)),Mu({hover:e},n.current(t))}(e=>{let{event:t,...n}=e;n.hovering?o(t,n):a(t,n)});return Object(s.createElement)(tf,f(),Object(s.createElement)(df,{text:i},Object(s.createElement)(lf,Object(c.a)({"aria-label":i,className:"component-box-control__unit-control",hideHTMLArrows:!0,isFirst:t,isLast:n,isOnly:r,isPressEnterToChange:!0,isResetValueOnUnitChange:!1,value:u},d))))}function df(e){let{children:t,text:n}=e;return n?Object(s.createElement)(h.a,{text:n,position:"top"},Object(s.createElement)("div",null,t)):t}const ff={all:Object(f.__)("All"),top:Object(f.__)("Top"),bottom:Object(f.__)("Bottom"),left:Object(f.__)("Left"),right:Object(f.__)("Right"),mixed:Object(f.__)("Mixed"),vertical:Object(f.__)("Vertical"),horizontal:Object(f.__)("Horizontal")},pf={top:null,right:null,bottom:null,left:null},bf={top:!1,right:!1,bottom:!1,left:!1},hf=["top","right","bottom","left"];function mf(e){return e.sort((t,n)=>e.filter(e=>e===t).length-e.filter(e=>e===n).length).pop()}function vf(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:hf;const n=jf(t),r=n.map(t=>Kd(e[t])),o=r.map(e=>e[0]),a=r.map(e=>e[1]),i=o.every(e=>e===o[0])?o[0]:"",c=mf(a),s=Object(l.isNumber)(i)?`${i}${c}`:null;return s}function gf(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:hf;const n=vf(e,t),r=isNaN(parseFloat(n));return r}function yf(e){return void 0!==e&&!Object(l.isEmpty)(Object.values(e).filter(e=>!!e&&/\d/.test(e)))}function Of(e,t){let n="all";return e||(n=t?"vertical":"top"),n}function jf(e){const t=[];if(null==e||!e.length)return hf;if(e.includes("vertical"))t.push("top","bottom");else if(e.includes("horizontal"))t.push("left","right");else{const n=hf.filter(t=>e.includes(t));t.push(...n)}return t}function wf(e){let{onChange:t=l.noop,onFocus:n=l.noop,onHoverOn:r=l.noop,onHoverOff:o=l.noop,values:a,sides:i,selectedUnits:u,setSelectedUnits:d,...f}=e;const p=vf(a,i),b=yf(a)&&gf(a,i),h=b?ff.mixed:null,m=p?void 0:function(e){if(!e||"object"!=typeof e)return;return mf(Object.values(e).filter(Boolean))}(u),v=(e,t)=>{const n={...e};return null!=i&&i.length?i.forEach(e=>{"vertical"===e?(n.top=t,n.bottom=t):"horizontal"===e?(n.left=t,n.right=t):n[e]=t}):hf.forEach(e=>n[e]=t),n};return Object(s.createElement)(uf,Object(c.a)({},f,{disableUnits:b,isOnly:!0,value:p,unit:m,onChange:e=>{const n=!isNaN(parseFloat(e)),r=v(a,n?e:void 0);t(r)},onUnitChange:e=>{const t=v(u,e);d(t)},onFocus:e=>{n(e,{side:"all"})},onHoverOn:()=>{r({top:!0,bottom:!0,left:!0,right:!0})},onHoverOff:()=>{o({top:!1,bottom:!1,left:!1,right:!1})},placeholder:h}))}function xf(e){let{onChange:t=l.noop,onFocus:n=l.noop,onHoverOn:r=l.noop,onHoverOff:o=l.noop,values:a,selectedUnits:i,setSelectedUnits:u,sides:d,...f}=e;const p=e=>t=>{n(t,{side:e})},b=e=>()=>{r({[e]:!0})},h=e=>()=>{o({[e]:!1})},m=e=>(n,r)=>{let{event:o}=r;const{altKey:i}=o,c={...a},s=!isNaN(parseFloat(n))?n:void 0;if(c[e]=s,i)switch(e){case"top":c.bottom=s;break;case"bottom":c.top=s;break;case"left":c.right=s;break;case"right":c.left=s}(e=>{t(e)})(c)},v=e=>t=>{const n={...i};n[e]=t,u(n)},g=null!=d&&d.length?hf.filter(e=>d.includes(e)):hf,y=g[0],O=g[g.length-1],j=y===O&&y;return Object(s.createElement)(nf,{className:"component-box-control__input-controls-wrapper"},Object(s.createElement)(rf,{gap:0,align:"top",className:"component-box-control__input-controls"},g.map(e=>Object(s.createElement)(uf,Object(c.a)({},f,{isFirst:y===e,isLast:O===e,isOnly:j===e,value:a[e],unit:a[e]?void 0:i[e],onChange:m(e),onUnitChange:v(e),onFocus:p(e),onHoverOn:b(e),onHoverOff:h(e),label:ff[e],key:"box-control-"+e})))))}const _f=["vertical","horizontal"];function Ef(e){let{onChange:t,onFocus:n,onHoverOn:r,onHoverOff:o,values:a,selectedUnits:i,setSelectedUnits:l,sides:u,...d}=e;const f=e=>t=>{n&&n(t,{side:e})},p=e=>()=>{r&&("vertical"===e&&r({top:!0,bottom:!0}),"horizontal"===e&&r({left:!0,right:!0}))},b=e=>()=>{o&&("vertical"===e&&o({top:!1,bottom:!1}),"horizontal"===e&&o({left:!1,right:!1}))},h=e=>n=>{if(!t)return;const r={...a},o=!isNaN(parseFloat(n))?n:void 0;"vertical"===e&&(r.top=o,r.bottom=o),"horizontal"===e&&(r.left=o,r.right=o),t(r)},m=e=>t=>{const n={...i};"vertical"===e&&(n.top=t,n.bottom=t),"horizontal"===e&&(n.left=t,n.right=t),l(n)},v=null!=u&&u.length?_f.filter(e=>u.includes(e)):_f,g=v[0],y=v[v.length-1],O=g===y;return Object(s.createElement)(rf,{gap:0,align:"top",className:"component-box-control__vertical-horizontal-input-controls"},v.map(e=>Object(s.createElement)(uf,Object(c.a)({},d,{isFirst:g===e,isLast:y===e,isOnly:O===e,value:"vertical"===e?a.top:a.left,unit:"vertical"===e?i.top:i.left,onChange:h(e),onUnitChange:m(e),onFocus:f(e),onHoverOn:p(e),onHoverOff:b(e),label:ff[e],key:e}))))}const kf=Object(w.a)("span",{target:"eaw9yqk8"})({name:"1w884gc",styles:"box-sizing:border-box;display:block;width:24px;height:24px;position:relative;padding:4px"}),Sf=Object(w.a)("span",{target:"eaw9yqk7"})({name:"i6vjox",styles:"box-sizing:border-box;display:block;position:relative;width:100%;height:100%"}),Cf=Object(w.a)("span",{target:"eaw9yqk6"})("box-sizing:border-box;display:block;pointer-events:none;position:absolute;",e=>{let{isFocused:t}=e;return Object(x.a)({backgroundColor:"currentColor",opacity:t?1:.3},"","")},";"),Pf=Object(w.a)(Cf,{target:"eaw9yqk5"})({name:"1k2w39q",styles:"bottom:3px;top:3px;width:2px"}),Tf=Object(w.a)(Cf,{target:"eaw9yqk4"})({name:"1q9b07k",styles:"height:2px;left:3px;right:3px"}),Mf=Object(w.a)(Tf,{target:"eaw9yqk3"})({name:"abcix4",styles:"top:0"}),Df=Object(w.a)(Pf,{target:"eaw9yqk2"})({name:"1wf8jf",styles:"right:0"}),If=Object(w.a)(Tf,{target:"eaw9yqk1"})({name:"8tapst",styles:"bottom:0"}),Rf=Object(w.a)(Pf,{target:"eaw9yqk0"})({name:"1ode3cm",styles:"left:0"});function Af(e){let{size:t=24,side:n="all",sides:r,...o}=e;const a=e=>!(e=>(null==r?void 0:r.length)&&!r.includes(e))(e)&&("all"===n||n===e),i=a("top")||a("vertical"),l=a("right")||a("horizontal"),u=a("bottom")||a("vertical"),d=a("left")||a("horizontal"),f=t/24;return Object(s.createElement)(kf,Object(c.a)({style:{transform:`scale(${f})`}},o),Object(s.createElement)(Sf,null,Object(s.createElement)(Mf,{isFocused:i}),Object(s.createElement)(Df,{isFocused:l}),Object(s.createElement)(If,{isFocused:u}),Object(s.createElement)(Rf,{isFocused:d})))}var Nf=n("Bpkj"),Lf=n("Mp0b");function Ff(e){let{isLinked:t,...n}=e;const r=t?Object(f.__)("Unlink Sides"):Object(f.__)("Link Sides");return Object(s.createElement)(h.a,{text:r},Object(s.createElement)("span",null,Object(s.createElement)(ld.a,Object(c.a)({},n,{className:"component-box-control__linked-button",variant:t?"primary":"secondary",isSmall:!0,icon:t?Nf.a:Lf.a,iconSize:16,"aria-label":r}))))}var zf={name:"11f5o9n",styles:"bottom:0;left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:1"};const Bf=Object(w.a)("div",{target:"e1df9b4q5"})("box-sizing:border-box;position:relative;",e=>{let{isPositionAbsolute:t}=e;return t?zf:""},";"),Hf=Object(w.a)("div",{target:"e1df9b4q4"})("box-sizing:border-box;background:",L.blue.wordpress[700],";background:",L.ui.theme,";filter:brightness( 1 );opacity:0;position:absolute;pointer-events:none;transition:opacity 120ms linear;z-index:1;",e=>{let{isActive:t}=e;return t&&"\n\t\topacity: 0.3;\n\t"},";"),Vf=Object(w.a)(Hf,{target:"e1df9b4q3"})({name:"5i97ct",styles:"top:0;left:0;right:0"}),Wf=Object(w.a)(Hf,{target:"e1df9b4q2"})("top:0;bottom:0;",Ps({right:0}),";"),Uf=Object(w.a)(Hf,{target:"e1df9b4q1"})({name:"8cxke2",styles:"bottom:0;left:0;right:0"}),Kf=Object(w.a)(Hf,{target:"e1df9b4q0"})("top:0;bottom:0;",Ps({left:0}),";");function Gf(e){let{showValues:t=bf,values:n}=e;const{top:r,right:o,bottom:a,left:i}=n;return Object(s.createElement)(s.Fragment,null,Object(s.createElement)($f,{isVisible:t.top,value:r}),Object(s.createElement)(qf,{isVisible:t.right,value:o}),Object(s.createElement)(Yf,{isVisible:t.bottom,value:a}),Object(s.createElement)(Xf,{isVisible:t.left,value:i}))}function $f(e){let{isVisible:t=!1,value:n}=e;const r=n,o=Zf(r).isActive||t;return Object(s.createElement)(Vf,{isActive:o,style:{height:r}})}function qf(e){let{isVisible:t=!1,value:n}=e;const r=n,o=Zf(r).isActive||t;return Object(s.createElement)(Wf,{isActive:o,style:{width:r}})}function Yf(e){let{isVisible:t=!1,value:n}=e;const r=n,o=Zf(r).isActive||t;return Object(s.createElement)(Uf,{isActive:o,style:{height:r}})}function Xf(e){let{isVisible:t=!1,value:n}=e;const r=n,o=Zf(r).isActive||t;return Object(s.createElement)(Kf,{isActive:o,style:{width:r}})}function Zf(e){const[t,n]=Object(s.useState)(!1),r=Object(s.useRef)(e),o=Object(s.useRef)(),a=()=>{o.current&&window.clearTimeout(o.current)};return Object(s.useEffect)(()=>(e!==r.current&&(n(!0),r.current=e,a(),o.current=setTimeout(()=>{n(!1)},400)),()=>a()),[e]),{isActive:t}}const Jf={min:0};function Qf(e){let{id:t,inputProps:n=Jf,onChange:r=l.noop,onChangeShowVisualizer:o=l.noop,label:a=Object(f.__)("Box Control"),values:i,units:u,sides:d,splitOnAxis:b=!1,allowReset:h=!0,resetValues:m=pf}=e;const[v,g]=Xd(i,{fallback:pf}),y=v||pf,O=yf(i),j=1===(null==d?void 0:d.length),[w,x]=Object(s.useState)(O),[_,E]=Object(s.useState)(!O||!gf(y)||j),[k,S]=Object(s.useState)(Of(_,b)),[C,P]=Object(s.useState)({top:Kd(null==i?void 0:i.top)[1],right:Kd(null==i?void 0:i.right)[1],bottom:Kd(null==i?void 0:i.bottom)[1],left:Kd(null==i?void 0:i.left)[1]}),T=function(e){const t=Object(p.useInstanceId)(Qf,"inspector-box-control");return e||t}(t),M=T+"-heading",D={...n,onChange:e=>{r(e),g(e),x(!0)},onFocus:(e,t)=>{let{side:n}=t;S(n)},onHoverOn:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o({...bf,...e})},onHoverOff:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o({...bf,...e})},isLinked:_,units:u,selectedUnits:C,setSelectedUnits:P,sides:d,values:y};return Object(s.createElement)(Jd,{id:T,role:"region","aria-labelledby":M},Object(s.createElement)(Qd,{className:"component-box-control__header"},Object(s.createElement)(ms,null,Object(s.createElement)(cl,{id:M,className:"component-box-control__label"},a)),h&&Object(s.createElement)(ms,null,Object(s.createElement)(ld.a,{className:"component-box-control__reset-button",isSecondary:!0,isSmall:!0,onClick:()=>{r(m),g(m),P(m),x(!1)},disabled:!w},Object(f.__)("Reset")))),Object(s.createElement)(ef,{className:"component-box-control__header-control-wrapper"},Object(s.createElement)(ms,null,Object(s.createElement)(Af,{side:k,sides:d})),_&&Object(s.createElement)(hs,null,Object(s.createElement)(wf,Object(c.a)({"aria-label":a},D))),!_&&b&&Object(s.createElement)(hs,null,Object(s.createElement)(Ef,D)),!j&&Object(s.createElement)(ms,null,Object(s.createElement)(Ff,{onClick:()=>{E(!_),S(Of(!_,b))},isLinked:_}))),!_&&!b&&Object(s.createElement)(xf,D))}Qf.__Visualizer=function(e){let{children:t,showValues:n=bf,values:r=pf,...o}=e;const a=!t;return Object(s.createElement)(Bf,Object(c.a)({},o,{isPositionAbsolute:a,"aria-hidden":"true"}),Object(s.createElement)(Gf,{showValues:n,values:r}),t)};var ep=Object(s.forwardRef)((function(e,t){let{className:n,...r}=e;const o=d()("components-button-group",n);return Object(s.createElement)("div",Object(c.a)({ref:t,role:"group",className:o},r))})),tp=n("6zzY");const np={name:"12ip69d",styles:"background:transparent;display:block;margin:0!important;pointer-events:none;position:absolute;will-change:box-shadow"};function rp(e){return`0 ${e}px ${2*e}px 0\n\t${`rgba(0 ,0, 0, ${e/20})`}`}var op=Object(os.a)((function(e,t){const n=function(e){const{active:t,borderRadius:n="inherit",className:r,focus:o,hover:a,isInteractive:i=!1,offset:c=0,value:u=0,...d}=Object(is.a)(e,"Elevation"),f=Object(ps.a)();return{...d,className:Object(s.useMemo)(()=>{let e=Object(l.isNil)(a)?2*u:a,s=Object(l.isNil)(t)?u/2:t;i||(e=Object(l.isNil)(a)?void 0:a,s=Object(l.isNil)(t)?void 0:t);const d=`box-shadow ${Ks.transitionDuration} ${Ks.transitionTimingFunction}`,p={};return p.Base=Object(x.a)({borderRadius:n,bottom:c,boxShadow:rp(u),opacity:Ks.elevationIntensity,left:c,right:c,top:c,transition:d},F("transition"),"",""),Object(l.isNil)(e)||(p.hover=Object(x.a)("*:hover>&{box-shadow:",rp(e),";}","")),Object(l.isNil)(s)||(p.active=Object(x.a)("*:active>&{box-shadow:",rp(s),";}","")),Object(l.isNil)(o)||(p.focus=Object(x.a)("*:focus>&{box-shadow:",rp(o),";}","")),f(np,p.Base,p.hover&&p.hover,p.focus&&p.focus,p.active&&p.active,r)},[t,n,r,o,a,i,c,u]),"aria-hidden":!0}}(e);return Object(s.createElement)(as.a,Object(c.a)({},n,{ref:t}))}),"Elevation");const ap=Object(x.a)("box-shadow:0 0 0 1px ",Ks.surfaceBorderColor,";outline:none;",""),ip={name:"1showjb",styles:"border-bottom:1px solid;box-sizing:border-box;&:last-child{border-bottom:none;}"},cp={name:"14n5oej",styles:"border-top:1px solid;box-sizing:border-box;&:first-of-type{border-top:none;}"},sp={name:"13udsys",styles:"height:100%"},lp={name:"6ywzd",styles:"box-sizing:border-box;height:auto;max-height:100%"},up={name:"dq805e",styles:"box-sizing:border-box;overflow:hidden;&>img,&>iframe{display:block;height:auto;max-width:100%;width:100%;}"},dp={name:"c990dr",styles:"box-sizing:border-box;display:block;width:100%"},fp=Object(x.a)("&:first-of-type{border-top-left-radius:",Ks.cardBorderRadius,";border-top-right-radius:",Ks.cardBorderRadius,";}&:last-of-type{border-bottom-left-radius:",Ks.cardBorderRadius,";border-bottom-right-radius:",Ks.cardBorderRadius,";}",""),pp=Object(x.a)("border-color:",Ks.colorDivider,";",""),bp={name:"1t90u8d",styles:"box-shadow:none"},hp={name:"1e1ncky",styles:"border:none"},mp=Object(x.a)("border-radius:",Ks.cardBorderRadius,";",""),vp={large:Object(x.a)("padding:",Ks.cardPaddingLarge,";",""),medium:Object(x.a)("padding:",Ks.cardPaddingMedium,";",""),small:Object(x.a)("padding:",Ks.cardPaddingSmall,";",""),xSmall:Object(x.a)("padding:",Ks.cardPaddingXSmall,";","")},gp=Object(x.a)("background-color:",L.lightGray[200],";",""),yp=Object(x.a)("background-color:",Ks.surfaceColor,";color:",L.black,";position:relative;","");Ks.surfaceBackgroundColor;const Op=Object(x.a)("",""),jp=Object(x.a)("background:",Ks.surfaceBackgroundTintColor,";",""),wp=Object(x.a)("background:",Ks.surfaceBackgroundTertiaryColor,";",""),xp=e=>[e,e].join(" "),_p=e=>["90deg",[Ks.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),Ep=e=>[[Ks.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),kp=(e,t)=>Object(x.a)("background:",(e=>[`linear-gradient( ${_p(e)} ) center`,`linear-gradient( ${Ep(e)} ) center`,Ks.surfaceBorderBoldColor].join(","))(t),";background-size:",xp(e),";",""),Sp=[`linear-gradient( ${[Ks.surfaceBorderSubtleColor+" 1px","transparent 1px"].join(",")} )`,`linear-gradient( ${["90deg",Ks.surfaceBorderSubtleColor+" 1px","transparent 1px"].join(",")} )`].join(","),Cp=(e,t,n)=>{switch(e){case"dotted":return kp(t,n);case"grid":return(e=>Object(x.a)("background:",Ks.surfaceBackgroundColor,";background-image:",Sp,";background-size:",xp(e),";",""))(t);case"primary":return Op;case"secondary":return jp;case"tertiary":return wp}};function Pp(e){const{backgroundSize:t=12,borderBottom:n=!1,borderLeft:r=!1,borderRight:o=!1,borderTop:a=!1,className:i,variant:c="primary",...l}=Object(is.a)(e,"Surface"),u=Object(ps.a)();return{...l,className:Object(s.useMemo)(()=>{const e={};return e.borders=function(e){let{borderBottom:t,borderLeft:n,borderRight:r,borderTop:o}=e;const a="1px solid "+Ks.surfaceBorderColor;return Object(x.a)({borderBottom:t?a:void 0,borderLeft:n?a:void 0,borderRight:r?a:void 0,borderTop:o?a:void 0},"","")}({borderBottom:n,borderLeft:r,borderRight:o,borderTop:a}),u(yp,e.borders,Cp(c,t+"px",t-1+"px"),i)},[t,n,r,o,a,i,c])}}function Tp(e){const{className:t,elevation:n=0,isBorderless:r=!1,isRounded:o=!0,size:a="medium",...i}=Object(is.a)(function(e){let{elevation:t,isElevated:n,...r}=e;const o={...r};let a=t;var i;return n&&(gs()("Card isElevated prop",{since:"5.9",alternative:"elevation"}),null!==(i=a)&&void 0!==i||(a=2)),void 0!==a&&(o.elevation=a),o}(e),"Card"),c=Object(ps.a)();return{...Pp({...i,className:Object(s.useMemo)(()=>c(ap,r&&bp,o&&mp,t),[t,r,o])}),elevation:n,isBorderless:r,isRounded:o,size:a}}var Mp=Object(os.a)((function(e,t){const{children:n,elevation:r,isBorderless:o,isRounded:a,size:i,...l}=Tp(e),u=a?Ks.cardBorderRadius:0,d=Object(ps.a)(),f=Object(s.useMemo)(()=>d(Object(x.a)({borderRadius:u},"","")),[u]),p=Object(s.useMemo)(()=>{const e={size:i,isBorderless:o};return{CardBody:e,CardHeader:e,CardFooter:e}},[o,i]);return Object(s.createElement)(tp.a,{value:p},Object(s.createElement)(as.a,Object(c.a)({},l,{ref:t}),Object(s.createElement)(as.a,{className:d(sp)},n),Object(s.createElement)(op,{className:f,isInteractive:!1,value:r?1:0}),Object(s.createElement)(op,{className:f,isInteractive:!1,value:r})))}),"Card");const Dp=Object(x.a)("@media only screen and ( min-device-width: 40em ){&::-webkit-scrollbar{height:12px;width:12px;}&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar-track{background:",Ks.colorScrollbarTrack,";border-radius:8px;}&::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:",Ks.colorScrollbarThumb,";border:2px solid rgba( 0, 0, 0, 0 );border-radius:7px;}&:hover::-webkit-scrollbar-thumb{background-color:",Ks.colorScrollbarThumbHover,";}}",""),Ip={name:"13udsys",styles:"height:100%"},Rp={name:"7zq9w",styles:"scroll-behavior:smooth"},Ap={name:"q33xhg",styles:"overflow-x:auto;overflow-y:hidden"},Np={name:"103x71s",styles:"overflow-x:hidden;overflow-y:auto"},Lp={name:"umwchj",styles:"overflow-y:auto"};var Fp=Object(os.a)((function(e,t){const n=function(e){const{className:t,scrollDirection:n="y",smoothScroll:r=!1,...o}=Object(is.a)(e,"Scrollable"),a=Object(ps.a)();return{...o,className:Object(s.useMemo)(()=>a(Ip,Dp,r&&Rp,"x"===n&&Ap,"y"===n&&Np,"auto"===n&&Lp,t),[t,n,r])}}(e);return Object(s.createElement)(as.a,Object(c.a)({},n,{ref:t}))}),"Scrollable");var zp=Object(os.a)((function(e,t){const{isScrollable:n,...r}=function(e){const{className:t,isScrollable:n=!1,isShady:r=!1,size:o="medium",...a}=Object(is.a)(e,"CardBody"),i=Object(ps.a)();return{...a,className:Object(s.useMemo)(()=>i(lp,fp,vp[o],r&&gp,"components-card__body",t),[t,r,o]),isScrollable:n}}(e);return n?Object(s.createElement)(Fp,Object(c.a)({},r,{ref:t})):Object(s.createElement)(as.a,Object(c.a)({},r,{ref:t}))}),"CardBody"),Bp=Object(_e.a)({name:"Separator",compose:Ce.a,keys:["orientation"],useOptions:function(e){var t=e.orientation,n=void 0===t?"horizontal":t,r=Object($.a)(e,["orientation"]);return Object($.b)({orientation:n},r)},useProps:function(e,t){return Object($.b)({role:"separator","aria-orientation":e.orientation},t)}}),Hp=Object(xe.a)({as:"hr",memo:!0,useHook:Bp});const Vp=Object(w.a)("hr",{target:"e19on6iw0"})("border-color:",Ks.colorDivider,";border-width:0 0 1px 0;height:0;margin:0;width:auto;",e=>{let{margin:t,marginTop:n,marginBottom:r}=e;return void 0!==t?Object(x.a)({marginBottom:ws(t),marginTop:ws(t)},"",""):Object(x.a)({marginTop:ws(n),marginBottom:ws(r)},"","")},";");var Wp=Object(os.a)((function(e,t){const n=Object(is.a)(e,"Divider");return Object(s.createElement)(Hp,Object(c.a)({as:Vp},n,{ref:t}))}),"Divider");var Up=Object(os.a)((function(e,t){const n=function(e){const{className:t,...n}=Object(is.a)(e,"CardDivider"),r=Object(ps.a)();return{...n,className:Object(s.useMemo)(()=>r(dp,pp,"components-card__divider",t),[t])}}(e);return Object(s.createElement)(Wp,Object(c.a)({},n,{ref:t}))}),"CardDivider");var Kp=Object(os.a)((function(e,t){const n=function(e){const{className:t,justify:n,isBorderless:r=!1,isShady:o=!1,size:a="medium",...i}=Object(is.a)(e,"CardFooter"),c=Object(ps.a)();return{...i,className:Object(s.useMemo)(()=>c(cp,fp,pp,vp[a],r&&hp,o&&gp,"components-card__footer",t),[t,r,o,a]),justify:n}}(e);return Object(s.createElement)(Ms,Object(c.a)({},n,{ref:t}))}),"CardFooter");var Gp=Object(os.a)((function(e,t){const n=function(e){const{className:t,isBorderless:n=!1,isShady:r=!1,size:o="medium",...a}=Object(is.a)(e,"CardHeader"),i=Object(ps.a)();return{...a,className:Object(s.useMemo)(()=>i(ip,fp,pp,vp[o],n&&hp,r&&gp,"components-card__header",t),[t,n,r,o])}}(e);return Object(s.createElement)(Ms,Object(c.a)({},n,{ref:t}))}),"CardHeader");var $p=Object(os.a)((function(e,t){const n=function(e){const{className:t,...n}=Object(is.a)(e,"CardMedia"),r=Object(ps.a)();return{...n,className:Object(s.useMemo)(()=>r(up,fp,"components-card__media",t),[t])}}(e);return Object(s.createElement)(as.a,Object(c.a)({},n,{ref:t}))}),"CardMedia"),qp=n("iClF"),Yp=n("RMJe");function Xp(e){let{label:t,className:n,heading:r,checked:o,help:a,onChange:i,...l}=e;r&&gs()("`heading` prop in `CheckboxControl`",{alternative:"a separate element to implement a heading",plugin:"Gutenberg"});const u="inspector-checkbox-control-"+Object(p.useInstanceId)(Xp);return Object(s.createElement)(jd,{label:r,id:u,help:a,className:d()("components-checkbox-control",n)},Object(s.createElement)("span",{className:"components-checkbox-control__input-container"},Object(s.createElement)("input",Object(c.a)({id:u,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:e=>i(e.target.checked),checked:o,"aria-describedby":a?u+"__help":void 0},l)),o?Object(s.createElement)(qp.a,{icon:Yp.a,className:"components-checkbox-control__checked",role:"presentation"}):null),Object(s.createElement)("label",{className:"components-checkbox-control__label",htmlFor:u},t))}function Zp(e){let{className:t,children:n,onCopy:r,onFinishCopy:o,text:a,...i}=e;gs()("wp.components.ClipboardButton",{since:"10.3",plugin:"Gutenberg",alternative:"wp.compose.useCopyToClipboard"});const l=Object(s.useRef)(),u=Object(p.useCopyToClipboard)(a,()=>{r(),clearTimeout(l.current),o&&(l.current=setTimeout(()=>o(),4e3))});Object(s.useEffect)(()=>{clearTimeout(l.current)},[]);const f=d()("components-clipboard-button",t);return Object(s.createElement)(ld.a,Object(c.a)({},i,{className:f,ref:u,onCopy:e=>{e.target.focus()}}),n)}var Jp=n("bVTw"),Qp=n("Q4Sy"),eb=n("VKE3"),tb=n("mi6C");const nb={bottom:{align:"flex-end",justify:"center"},bottomLeft:{align:"flex-start",justify:"flex-end"},bottomRight:{align:"flex-end",justify:"flex-end"},center:{align:"center",justify:"center"},edge:{align:"center",justify:"space-between"},left:{align:"center",justify:"flex-start"},right:{align:"center",justify:"flex-end"},stretch:{align:"stretch"},top:{align:"flex-start",justify:"center"},topLeft:{align:"flex-start",justify:"flex-start"},topRight:{align:"flex-start",justify:"flex-end"}},rb={bottom:{justify:"flex-end",align:"center"},bottomLeft:{justify:"flex-start",align:"flex-end"},bottomRight:{justify:"flex-end",align:"flex-end"},center:{justify:"center",align:"center"},edge:{justify:"space-between",align:"center"},left:{justify:"center",align:"flex-start"},right:{justify:"center",align:"flex-end"},stretch:{justify:"stretch"},top:{justify:"flex-start",align:"center"},topLeft:{justify:"flex-start",align:"flex-start"},topRight:{justify:"flex-start",align:"flex-end"}};function ob(e){return"string"==typeof e?[e]:s.Children.toArray(e).filter(e=>Object(s.isValidElement)(e))}function ab(e){const{alignment:t="edge",children:n,direction:r,spacing:o=2,...a}=Object(is.a)(e,"HStack"),i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"row";if(Object(l.isNil)(e))return{};const n="column"===t,r=n?rb:nb,o=e in r?r[e]:{align:e};return o}(t,r);return Ts({children:ob(n).map((e,t)=>{const n=e.key||"hstack-"+t;return Object(os.b)(e,["Spacer"])?Object(s.createElement)(ms,Object(c.a)({isBlock:!0,key:n},e.props)):e}),direction:r,justify:"center",...i,...a,gap:o})}var ib=Object(os.a)((function(e,t){const n=ab(e);return Object(s.createElement)(as.a,Object(c.a)({},n,{ref:t}))}),"HStack"),cb=n("NWDH");const sb=Object(w.a)("select",{target:"e1mv6sxx1"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",L.black,";display:block;margin:0;width:100%;",e=>{let{disabled:t}=e;return t?Object(x.a)({color:L.ui.textDisabled},"",""):""},";",e=>{let{selectSize:t}=e;const n={default:"13px",small:"11px"}[t];return n?Object(x.a)("font-size:","16px",";@media ( min-width: 600px ){font-size:",n,";}",""):""},";",e=>{let{selectSize:t}=e;const n={default:{height:30,lineHeight:1,minHeight:30},small:{height:24,lineHeight:1,minHeight:24}},r=n[t]||n.default;return Object(x.a)(r,"","")},";",Ps({paddingLeft:8,paddingRight:24}),";}"),lb=Object(w.a)("div",{target:"e1mv6sxx0"})("align-items:center;bottom:0;box-sizing:border-box;display:flex;padding:0 4px;pointer-events:none;position:absolute;top:0;",Ps({right:0})," svg{display:block;}");function ub(e,t){let{className:n,disabled:r=!1,help:o,hideLabelFromVision:a,id:i,label:u,multiple:f=!1,onBlur:b=l.noop,onChange:h=l.noop,onFocus:m=l.noop,options:v=[],size:g="default",value:y,labelPosition:O="top",children:j,prefix:w,suffix:x,..._}=e;const[E,k]=Object(s.useState)(!1),S=function(e){const t=Object(p.useInstanceId)(ub);return e||"inspector-select-control-"+t}(i),C=o?S+"__help":void 0;if(Object(l.isEmpty)(v)&&!j)return null;const P=d()("components-select-control",n);return Object(s.createElement)(jd,{help:o,id:S},Object(s.createElement)(Pl,{className:P,disabled:r,hideLabelFromVision:a,id:S,isFocused:E,label:u,size:g,suffix:x||Object(s.createElement)(lb,null,Object(s.createElement)(qp.a,{icon:cb.a,size:18})),prefix:w,labelPosition:O},Object(s.createElement)(sb,Object(c.a)({},_,{"aria-describedby":C,className:"components-select-control__input",disabled:r,id:S,multiple:f,onBlur:e=>{b(e),k(!1)},onChange:e=>{if(f){const t=Array.from(e.target.options).filter(e=>{let{selected:t}=e;return t}).map(e=>{let{value:t}=e;return t});h(t)}else h(e.target.value,{event:e})},onFocus:e=>{m(e),k(!0)},ref:t,selectSize:g,value:y}),j||v.map((e,t)=>{const n=e.id||`${e.label}-${e.value}-${t}`;return Object(s.createElement)("option",{key:n,value:e.value,disabled:e.disabled},e.label)}))))}var db=Object(s.forwardRef)(ub),fb=n("9VDH");function pb(e,t,n){return"number"!=typeof e?null:parseFloat(Object(l.clamp)(e,t,n))}const bb=()=>Object(x.a)({height:30,minHeight:30},"",""),hb=Object(w.a)("div",{target:"exqw8y214"})({name:"17z6zai",styles:"-webkit-tap-highlight-color:transparent;box-sizing:border-box;align-items:flex-start;display:inline-flex;justify-content:flex-start;padding:0;position:relative;touch-action:none;width:100%"}),mb=Object(w.a)("div",{target:"exqw8y213"})("box-sizing:border-box;color:",L.blue.medium.focus,";display:block;flex:1;position:relative;width:100%;",e=>{let{color:t=L.ui.borderFocus}=e;return Object(x.a)({color:t},"","")},";",bb,";",e=>{let{marks:t}=e;return Object(x.a)({marginBottom:t?16:null},"","")},";"),vb=Object(w.a)("span",{target:"exqw8y212"})("margin-top:",4,"px;",Ps({marginRight:6}),";"),gb=Object(w.a)("span",{target:"exqw8y211"})("margin-top:",4,"px;",Ps({marginLeft:16}),";"),yb=Object(w.a)("span",{target:"exqw8y210"})("background-color:",L.lightGray[600],";box-sizing:border-box;left:0;pointer-events:none;right:0;display:block;height:",4,"px;position:absolute;margin-top:",13,"px;top:0;border-radius:",4,"px;",e=>{let{disabled:t,railColor:n}=e,r=n||null;return t&&(r=L.lightGray[400]),Object(x.a)({background:r},"","")},";"),Ob=Object(w.a)("span",{target:"exqw8y29"})("background-color:currentColor;border-radius:",4,"px;box-sizing:border-box;height:",4,"px;pointer-events:none;display:block;position:absolute;margin-top:",13,"px;top:0;",e=>{let{disabled:t,trackColor:n}=e,r=n||"currentColor";return t&&(r=L.lightGray[800]),Object(x.a)({background:r},"","")},";"),jb=Object(w.a)("span",{target:"exqw8y28"})({name:"1xuuvmv",styles:"box-sizing:border-box;display:block;pointer-events:none;position:relative;width:100%;user-select:none"}),wb=Object(w.a)("span",{target:"exqw8y27"})("box-sizing:border-box;height:",12,"px;left:0;position:absolute;top:-4px;width:1px;",e=>{let{disabled:t,isFilled:n}=e,r=n?"currentColor":L.lightGray[600];return t&&(r=L.lightGray[800]),Object(x.a)({backgroundColor:r},"","")},";"),xb=Object(w.a)("span",{target:"exqw8y26"})("box-sizing:border-box;color:",L.lightGray[600],";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",e=>{let{isFilled:t}=e;return Object(x.a)({color:t?L.darkGray[300]:L.lightGray[600]},"","")},";");var _b={name:"1sb75b3",styles:"background-color:var( --wp-admin-theme-color )"};const Eb=e=>{let{disabled:t}=e;return t?Object(x.a)("background-color:",L.lightGray[800],";",""):_b},kb=Object(w.a)("span",{target:"exqw8y25"})("align-items:center;box-sizing:border-box;display:flex;height:",12,"px;justify-content:center;margin-top:",9,"px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:",12,"px;border-radius:50%;",Eb,";",Ps({marginLeft:-10}),";",Ps({transform:"translateX( 4.5px )"},{transform:"translateX( -4.5px )"}),";"),Sb=Object(w.a)("span",{target:"exqw8y24"})("align-items:center;border-radius:50%;box-sizing:border-box;height:100%;outline:0;position:absolute;user-select:none;width:100%;",Eb,";",e=>{let{isFocused:t}=e;return t?Object(x.a)("&::before{content:' ';position:absolute;background-color:var( --wp-admin-theme-color );opacity:0.4;border-radius:50%;height:",20,"px;width:",20,"px;top:-4px;left:-4px;}",""):""},";"),Cb=Object(w.a)("input",{target:"exqw8y23"})("box-sizing:border-box;cursor:pointer;display:block;height:100%;left:0;margin:0 -",6,"px;opacity:0;outline:none;position:absolute;right:0;top:0;width:calc( 100% + ",12,"px );");var Pb={name:"1cypxip",styles:"top:-80%"},Tb={name:"1lr98c4",styles:"bottom:-80%"};const Mb=Object(w.a)("span",{target:"exqw8y22"})("background:rgba( 0, 0, 0, 0.8 );border-radius:2px;box-sizing:border-box;color:white;display:inline-block;font-size:12px;min-width:32px;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;transition:opacity 120ms ease;user-select:none;line-height:1.4;",e=>{let{show:t}=e;return Object(x.a)({opacity:t?1:0},"","")},";",e=>{let{position:t}=e;return"bottom"===t?Tb:Pb},";",F("transition"),";",Ps({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),";"),Db=Object(w.a)(Pd,{target:"exqw8y21"})("box-sizing:border-box;display:inline-block;font-size:13px;margin-top:0;width:",ws(16),"!important;input[type='number']&{",bb,";}",Ps({marginLeft:ws(4)+" !important"}),";"),Ib=Object(w.a)("span",{target:"exqw8y20"})("box-sizing:border-box;display:block;margin-top:0;button,button.is-small{margin-left:0;",bb,";}",Ps({marginLeft:8}),";");var Rb=Object(s.forwardRef)((function(e,t){let{describedBy:n,label:r,onHideTooltip:o=l.noop,onMouseLeave:a=l.noop,onMouseMove:i=l.noop,onShowTooltip:u=l.noop,value:d,...f}=e;const p=function(e){let{onHide:t=l.noop,onMouseLeave:n=l.noop,onMouseMove:r=l.noop,onShow:o=l.noop,timeout:a=300}=e;const[i,c]=Object(s.useState)(!1),u=Object(s.useRef)(),d=Object(s.useCallback)(e=>{window.clearTimeout(u.current),u.current=setTimeout(e,a)},[a]),f=Object(s.useCallback)(e=>{r(e),d(()=>{i||(c(!0),o())})},[]),p=Object(s.useCallback)(e=>{n(e),d(()=>{c(!1),t()})},[]);return Object(s.useEffect)(()=>()=>{window.clearTimeout(u.current)}),{onMouseMove:f,onMouseLeave:p}}({onHide:o,onMouseLeave:a,onMouseMove:i,onShow:u});return Object(s.createElement)(Cb,Object(c.a)({},f,p,{"aria-describedby":n,"aria-label":r,"aria-hidden":!1,ref:t,tabIndex:0,type:"range",value:d}))}));function Ab(e){let{className:t,isFilled:n=!1,label:r,style:o={},...a}=e;const i=d()("components-range-control__mark",n&&"is-filled",t),l=d()("components-range-control__mark-label",n&&"is-filled");return Object(s.createElement)(s.Fragment,null,Object(s.createElement)(wb,Object(c.a)({},a,{"aria-hidden":"true",className:i,isFilled:n,style:o})),r&&Object(s.createElement)(xb,{"aria-hidden":"true",className:l,isFilled:n,style:o},r))}function Nb(e){let{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:a=1,value:i=0,...l}=e;return Object(s.createElement)(s.Fragment,null,Object(s.createElement)(yb,Object(c.a)({disabled:t},l)),n&&Object(s.createElement)(Lb,{disabled:t,marks:n,min:r,max:o,step:a,value:i}))}function Lb(e){let{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:a=1,value:i=0}=e;"any"===a&&(a=1);const l=function(e){let{marks:t,min:n=0,max:r=100,step:o=1,value:a=0}=e;if(!t)return[];const i=r-n;if(!Array.isArray(t)){t=[];const e=1+Math.round(i/o);for(;e>t.push({value:o*t.length+n}););}const c=[];return t.forEach((e,t)=>{if(e.value<n||e.value>r)return;const o="mark-"+t,s=e.value<=a,l=(e.value-n)/i*100+"%",u={[Object(f.isRTL)()?"right":"left"]:l};c.push({...e,isFilled:s,key:o,style:u})}),c}({marks:n,min:r,max:o,step:a,value:i});return Object(s.createElement)(jb,{"aria-hidden":"true",className:"components-range-control__marks"},l.map(e=>Object(s.createElement)(Ab,Object(c.a)({},e,{key:e.key,"aria-hidden":"true",disabled:t}))))}function Fb(e){let{className:t,inputRef:n,tooltipPosition:r,show:o=!1,style:a={},value:i=0,renderTooltipContent:l=(e=>e),zIndex:u=100,...f}=e;const p=function(e){let{inputRef:t,tooltipPosition:n}=e;const[r,o]=Object(s.useState)(),a=Object(s.useCallback)(()=>{t&&t.current&&o(n)},[n]);return Object(s.useEffect)(()=>{a()},[a]),Object(s.useEffect)(()=>(window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a)})),r}({inputRef:n,tooltipPosition:r}),b=d()("components-simple-tooltip",t),h={...a,zIndex:u};return Object(s.createElement)(Mb,Object(c.a)({},f,{"aria-hidden":o,className:b,position:p,show:o,role:"tooltip",style:h}),l(i))}var zb=Object(s.forwardRef)((function e(t,n){var r;let{afterIcon:o,allowReset:a=!1,beforeIcon:i,className:u,currentInput:b,color:h=L.ui.theme,disabled:m=!1,help:v,initialPosition:g,isShiftStepEnabled:y=!0,label:O,hideLabelFromVision:j=!1,marks:w=!1,max:x=100,min:_=0,onBlur:E=l.noop,onChange:k=l.noop,onFocus:S=l.noop,onMouseMove:C=l.noop,onMouseLeave:P=l.noop,railColor:T,resetFallbackValue:M,renderTooltipContent:D=(e=>e),showTooltip:I,shiftStep:R=10,step:A=1,trackColor:N,value:F,withInputField:z=!0,...B}=t;const[H,V]=function(e){let{min:t,max:n,value:r,initial:o}=e;const[a,i]=Xd(pb(r,t,n),{initial:o,fallback:null});return[a,Object(s.useCallback)(e=>{i(null===e?null:pb(e,t,n))},[t,n])]}({min:_,max:x,value:F,initial:g}),W=Object(s.useRef)(!1);"any"===A&&(I=!1,z=!1);const[U,K]=Object(s.useState)(I),[G,$]=Object(s.useState)(!1),q=Object(s.useRef)(),Y=null===(r=q.current)||void 0===r?void 0:r.matches(":focus"),X=!m&&G,Z=null===H,J=Z?"":void 0!==H?H:b,Q=Z?(x-_)/2+_:H,ee=Z?50:(H-_)/(x-_)*100,te=Object(l.clamp)(ee,0,100)+"%",ne=d()("components-range-control",u),re=d()("components-range-control__wrapper",!!w&&"is-marked"),oe=Object(p.useInstanceId)(e,"inspector-range-control"),ae=v?oe+"__help":void 0,ie=!1!==I&&Object(l.isFinite)(H),ce=()=>{let e=parseFloat(M),t=e;isNaN(e)&&(e=null,t=void 0),V(e),k(t)},se={[Object(f.isRTL)()?"right":"left"]:te};return Object(s.createElement)(jd,{className:ne,label:O,hideLabelFromVision:j,id:oe,help:v},Object(s.createElement)(hb,{className:"components-range-control__root"},i&&Object(s.createElement)(vb,null,Object(s.createElement)(fb.a,{icon:i})),Object(s.createElement)(mb,{className:re,color:h,marks:!!w},Object(s.createElement)(Rb,Object(c.a)({},B,{className:"components-range-control__slider",describedBy:ae,disabled:m,id:oe,label:O,max:x,min:_,onBlur:e=>{E(e),$(!1),K(!1)},onChange:e=>{const t=parseFloat(e.target.value);V(t),k(t)},onFocus:e=>{S(e),$(!0),K(!0)},onMouseMove:C,onMouseLeave:P,ref:e=>{q.current=e,n&&n(e)},step:A,value:J})),Object(s.createElement)(Nb,{"aria-hidden":!0,disabled:m,marks:w,max:x,min:_,railColor:T,step:A,value:Q}),Object(s.createElement)(Ob,{"aria-hidden":!0,className:"components-range-control__track",disabled:m,style:{width:te},trackColor:N}),Object(s.createElement)(kb,{style:se,disabled:m},Object(s.createElement)(Sb,{"aria-hidden":!0,isFocused:X,disabled:m})),ie&&Object(s.createElement)(Fb,{className:"components-range-control__tooltip",inputRef:q,tooltipPosition:"bottom",renderTooltipContent:D,show:Y||U,style:se,value:H})),o&&Object(s.createElement)(gb,null,Object(s.createElement)(fb.a,{icon:o})),z&&Object(s.createElement)(Db,{"aria-label":O,className:"components-range-control__number",disabled:m,inputMode:"decimal",isShiftStepEnabled:y,max:x,min:_,onBlur:()=>{W.current&&(ce(),W.current=!1)},onChange:e=>{e=parseFloat(e),V(e),isNaN(e)?a&&(W.current=!0):((e<_||e>x)&&(e=pb(e,_,x)),k(e),W.current=!1)},shiftStep:R,step:A,value:J}),a&&Object(s.createElement)(Ib,null,Object(s.createElement)(ld.a,{className:"components-range-control__reset",disabled:m||void 0===H,variant:"secondary",isSmall:!0,onClick:ce},Object(f.__)("Reset")))))}));const Bb=Object(w.a)(Pd,{target:"ez9hsf46"})(vl,"{width:",ws(24),";}"),Hb=Object(w.a)(db,{target:"ez9hsf45"})("margin-left:",ws(-2),";width:5em;",xl,"{display:none;}"),Vb=Object(w.a)(zb,{target:"ez9hsf44"})("flex:1;",vd,"{margin-bottom:0;}"),Wb=`\n&&& ${gl} {\n\theight: 40px;\n}`,Ub=`\n.react-colorful__interactive {\n\twidth: calc( 100% - ${ws(2)} );\n\tmargin-left: ${ws(1)};\n}`,Kb=Object(w.a)("div",{target:"ez9hsf43"})("padding:",ws(2)," ",ws(4),";"),Gb=Object(w.a)("div",{target:"ez9hsf42"})("width:216px;.react-colorful{display:flex;flex-direction:column;align-items:center;width:216px;height:auto;}.react-colorful__saturation{width:100%;border-radius:0;height:216px;margin-bottom:",ws(4),";border-bottom:none;}.react-colorful__hue,.react-colorful__alpha{width:184px;height:16px;border-radius:16px;margin-bottom:",ws(2),";}.react-colorful__pointer{height:16px;width:16px;border:none;box-shadow:0 0 2px 0 rgba( 0, 0, 0, 0.25 );outline:2px solid transparent;}.react-colorful__pointer-fill{box-shadow:inset 0 0 0 ",Ks.borderWidthFocus," #fff;}",Ub," ",vd,"{margin-bottom:0;}",Wb,";"),$b=Object(w.a)(ld.a,{target:"ez9hsf41"})("&&&&&{min-width:",ws(6),";padding:0;}"),qb=Object(w.a)(Zu,{target:"ez9hsf40"})({name:"1287a6j",styles:"width:8em"});var Yb=n("uqqE"),Xb=n("reMF");function Zb(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect();return{width:n.width/1,height:n.height/1,top:n.top/1,right:n.right/1,bottom:n.bottom/1,left:n.left/1,x:n.left/1,y:n.top/1}}function Jb(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Qb(e){var t=Jb(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function eh(e){return e instanceof Jb(e).Element||e instanceof Element}function th(e){return e instanceof Jb(e).HTMLElement||e instanceof HTMLElement}function nh(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Jb(e).ShadowRoot||e instanceof ShadowRoot)}function rh(e){return e?(e.nodeName||"").toLowerCase():null}function oh(e){return((eh(e)?e.ownerDocument:e.document)||window.document).documentElement}function ah(e){return Zb(oh(e)).left+Qb(e).scrollLeft}function ih(e){return Jb(e).getComputedStyle(e)}function ch(e){var t=ih(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function sh(e,t,n){void 0===n&&(n=!1);var r,o,a=th(t),i=th(t)&&function(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return 1!==n||1!==r}(t),c=oh(t),s=Zb(e,i),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&(("body"!==rh(t)||ch(c))&&(l=(r=t)!==Jb(r)&&th(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:Qb(r)),th(t)?((u=Zb(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):c&&(u.x=ah(c))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function lh(e){var t=Zb(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function uh(e){return"html"===rh(e)?e:e.assignedSlot||e.parentNode||(nh(e)?e.host:null)||oh(e)}function dh(e,t){var n;void 0===t&&(t=[]);var r=function e(t){return["html","body","#document"].indexOf(rh(t))>=0?t.ownerDocument.body:th(t)&&ch(t)?t:e(uh(t))}(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=Jb(r),i=o?[a].concat(a.visualViewport||[],ch(r)?r:[]):r,c=t.concat(i);return o?c:c.concat(dh(uh(i)))}function fh(e){return["table","td","th"].indexOf(rh(e))>=0}function ph(e){return th(e)&&"fixed"!==ih(e).position?e.offsetParent:null}function bh(e){for(var t=Jb(e),n=ph(e);n&&fh(n)&&"static"===ih(n).position;)n=ph(n);return n&&("html"===rh(n)||"body"===rh(n)&&"static"===ih(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&th(e)&&"fixed"===ih(e).position)return null;for(var n=uh(e);th(n)&&["html","body"].indexOf(rh(n))<0;){var r=ih(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var hh="top",mh="bottom",vh="right",gh="left",yh=[hh,mh,vh,gh],Oh=yh.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),jh=[].concat(yh,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),wh=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function xh(e){var t=new Map,n=new Set,r=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(o){n.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach((function(r){if(!n.has(r)){var o=t.get(r);o&&e(o)}})),r.push(o)}(e)})),r}var _h={placement:"bottom",modifiers:[],strategy:"absolute"};function Eh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function kh(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?_h:o;return function(e,t,n){void 0===n&&(n=a);var o,i,c={placement:"bottom",orderedModifiers:[],options:Object.assign({},_h,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],l=!1,u={state:c,setOptions:function(n){var o="function"==typeof n?n(c.options):n;d(),c.options=Object.assign({},a,c.options,o),c.scrollParents={reference:eh(e)?dh(e):e.contextElement?dh(e.contextElement):[],popper:dh(t)};var i=function(e){var t=xh(e);return wh.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,c.options.modifiers)));return c.orderedModifiers=i.filter((function(e){return e.enabled})),c.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:c,name:t,instance:u,options:r});s.push(a||function(){})}})),u.update()},forceUpdate:function(){if(!l){var e=c.elements,t=e.reference,n=e.popper;if(Eh(t,n)){c.rects={reference:sh(t,bh(n),"fixed"===c.options.strategy),popper:lh(n)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach((function(e){return c.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<c.orderedModifiers.length;r++)if(!0!==c.reset){var o=c.orderedModifiers[r],a=o.fn,i=o.options,s=void 0===i?{}:i,d=o.name;"function"==typeof a&&(c=a({state:c,options:s,name:d,instance:u})||c)}else c.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(c)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){d(),l=!0}};if(!Eh(e,t))return u;function d(){s.forEach((function(e){return e()})),s=[]}return u.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var Sh={passive:!0};var Ch={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,c=void 0===i||i,s=Jb(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach((function(e){e.addEventListener("scroll",n.update,Sh)})),c&&s.addEventListener("resize",n.update,Sh),function(){a&&l.forEach((function(e){e.removeEventListener("scroll",n.update,Sh)})),c&&s.removeEventListener("resize",n.update,Sh)}},data:{}};function Ph(e){return e.split("-")[0]}function Th(e){return e.split("-")[1]}function Mh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Dh(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?Ph(o):null,i=o?Th(o):null,c=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case hh:t={x:c,y:n.y-r.height};break;case mh:t={x:c,y:n.y+n.height};break;case vh:t={x:n.x+n.width,y:s};break;case gh:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var l=a?Mh(a):null;if(null!=l){var u="y"===l?"height":"width";switch(i){case"start":t[l]=t[l]-(n[u]/2-r[u]/2);break;case"end":t[l]=t[l]+(n[u]/2-r[u]/2)}}return t}var Ih={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Dh({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},Rh=Math.max,Ah=Math.min,Nh=Math.round,Lh={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fh(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,c=e.position,s=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=!0===u?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Nh(Nh(t*r)/r)||0,y:Nh(Nh(n*r)/r)||0}}(i):"function"==typeof u?u(i):i,f=d.x,p=void 0===f?0:f,b=d.y,h=void 0===b?0:b,m=i.hasOwnProperty("x"),v=i.hasOwnProperty("y"),g=gh,y=hh,O=window;if(l){var j=bh(n),w="clientHeight",x="clientWidth";j===Jb(n)&&"static"!==ih(j=oh(n)).position&&"absolute"===c&&(w="scrollHeight",x="scrollWidth"),j=j,o!==hh&&(o!==gh&&o!==vh||"end"!==a)||(y=mh,h-=j[w]-r.height,h*=s?1:-1),o!==gh&&(o!==hh&&o!==mh||"end"!==a)||(g=vh,p-=j[x]-r.width,p*=s?1:-1)}var _,E=Object.assign({position:c},l&&Lh);return s?Object.assign({},E,((_={})[y]=v?"0":"",_[g]=m?"0":"",_.transform=(O.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",_)):Object.assign({},E,((t={})[y]=v?h+"px":"",t[g]=m?p+"px":"",t.transform="",t))}var zh={left:"right",right:"left",bottom:"top",top:"bottom"};function Bh(e){return e.replace(/left|right|bottom|top/g,(function(e){return zh[e]}))}var Hh={start:"end",end:"start"};function Vh(e){return e.replace(/start|end/g,(function(e){return Hh[e]}))}function Wh(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&nh(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Uh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Kh(e,t){return"viewport"===t?Uh(function(e){var t=Jb(e),n=oh(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,i=0,c=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,c=r.offsetTop)),{width:o,height:a,x:i+ah(e),y:c}}(e)):th(t)?function(e){var t=Zb(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Uh(function(e){var t,n=oh(e),r=Qb(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=Rh(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Rh(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+ah(e),s=-r.scrollTop;return"rtl"===ih(o||n).direction&&(c+=Rh(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:c,y:s}}(oh(e)))}function Gh(e,t,n){var r="clippingParents"===t?function(e){var t=dh(uh(e)),n=["absolute","fixed"].indexOf(ih(e).position)>=0&&th(e)?bh(e):e;return eh(n)?t.filter((function(e){return eh(e)&&Wh(e,n)&&"body"!==rh(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),a=o[0],i=o.reduce((function(t,n){var r=Kh(e,n);return t.top=Rh(r.top,t.top),t.right=Ah(r.right,t.right),t.bottom=Ah(r.bottom,t.bottom),t.left=Rh(r.left,t.left),t}),Kh(e,a));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function $h(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function qh(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Yh(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.boundary,i=void 0===a?"clippingParents":a,c=n.rootBoundary,s=void 0===c?"viewport":c,l=n.elementContext,u=void 0===l?"popper":l,d=n.altBoundary,f=void 0!==d&&d,p=n.padding,b=void 0===p?0:p,h=$h("number"!=typeof b?b:qh(b,yh)),m="popper"===u?"reference":"popper",v=e.rects.popper,g=e.elements[f?m:u],y=Gh(eh(g)?g:g.contextElement||oh(e.elements.popper),i,s),O=Zb(e.elements.reference),j=Dh({reference:O,element:v,strategy:"absolute",placement:o}),w=Uh(Object.assign({},v,j)),x="popper"===u?w:O,_={top:y.top-x.top+h.top,bottom:x.bottom-y.bottom+h.bottom,left:y.left-x.left+h.left,right:x.right-y.right+h.right},E=e.modifiersData.offset;if("popper"===u&&E){var k=E[o];Object.keys(_).forEach((function(e){var t=[vh,mh].indexOf(e)>=0?1:-1,n=[hh,mh].indexOf(e)>=0?"y":"x";_[e]+=k[n]*t}))}return _}function Xh(e,t,n){return Rh(e,Ah(t,n))}function Zh(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Jh(e){return[hh,vh,mh,gh].some((function(t){return e[t]>=0}))}var Qh=kh({defaultModifiers:[Ch,Ih,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,c=n.roundOffsets,s=void 0===c||c,l={placement:Ph(t.placement),variation:Th(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Fh(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Fh(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];th(o)&&rh(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});th(r)&&rh(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=jh.reduce((function(e,n){return e[n]=function(e,t,n){var r=Ph(e),o=[gh,hh].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],c=a[1];return i=i||0,c=(c||0)*o,[gh,vh].indexOf(r)>=0?{x:c,y:i}:{x:i,y:c}}(n,t.rects,a),e}),{}),c=i[t.placement],s=c.x,l=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=i}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,c=void 0===i||i,s=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,b=void 0===p||p,h=n.allowedAutoPlacements,m=t.options.placement,v=Ph(m),g=s||(v===m||!b?[Bh(m)]:function(e){if("auto"===Ph(e))return[];var t=Bh(e);return[Vh(e),t,Vh(t)]}(m)),y=[m].concat(g).reduce((function(e,n){return e.concat("auto"===Ph(n)?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,c=n.flipVariations,s=n.allowedAutoPlacements,l=void 0===s?jh:s,u=Th(r),d=u?c?Oh:Oh.filter((function(e){return Th(e)===u})):yh,f=d.filter((function(e){return l.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=Yh(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[Ph(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:b,allowedAutoPlacements:h}):n)}),[]),O=t.rects.reference,j=t.rects.popper,w=new Map,x=!0,_=y[0],E=0;E<y.length;E++){var k=y[E],S=Ph(k),C="start"===Th(k),P=[hh,mh].indexOf(S)>=0,T=P?"width":"height",M=Yh(t,{placement:k,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),D=P?C?vh:gh:C?mh:hh;O[T]>j[T]&&(D=Bh(D));var I=Bh(D),R=[];if(a&&R.push(M[S]<=0),c&&R.push(M[D]<=0,M[I]<=0),R.every((function(e){return e}))){_=k,x=!1;break}w.set(k,R)}if(x)for(var A=function(e){var t=y.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return _=t,"break"},N=b?3:1;N>0;N--){if("break"===A(N))break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,c=void 0!==i&&i,s=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,b=n.tetherOffset,h=void 0===b?0:b,m=Yh(t,{boundary:s,rootBoundary:l,padding:d,altBoundary:u}),v=Ph(t.placement),g=Th(t.placement),y=!g,O=Mh(v),j="x"===O?"y":"x",w=t.modifiersData.popperOffsets,x=t.rects.reference,_=t.rects.popper,E="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,k={x:0,y:0};if(w){if(a||c){var S="y"===O?hh:gh,C="y"===O?mh:vh,P="y"===O?"height":"width",T=w[O],M=w[O]+m[S],D=w[O]-m[C],I=p?-_[P]/2:0,R="start"===g?x[P]:_[P],A="start"===g?-_[P]:-x[P],N=t.elements.arrow,L=p&&N?lh(N):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=F[S],B=F[C],H=Xh(0,x[P],L[P]),V=y?x[P]/2-I-H-z-E:R-H-z-E,W=y?-x[P]/2+I+H+B+E:A+H+B+E,U=t.elements.arrow&&bh(t.elements.arrow),K=U?"y"===O?U.clientTop||0:U.clientLeft||0:0,G=t.modifiersData.offset?t.modifiersData.offset[t.placement][O]:0,$=w[O]+V-G-K,q=w[O]+W-G;if(a){var Y=Xh(p?Ah(M,$):M,T,p?Rh(D,q):D);w[O]=Y,k[O]=Y-T}if(c){var X="x"===O?hh:gh,Z="x"===O?mh:vh,J=w[j],Q=J+m[X],ee=J-m[Z],te=Xh(p?Ah(Q,$):Q,J,p?Rh(ee,q):ee);w[j]=te,k[j]=te-J}}t.modifiersData[r]=k}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,c=Ph(n.placement),s=Mh(c),l=[gh,vh].indexOf(c)>=0?"height":"width";if(a&&i){var u=function(e,t){return $h("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:qh(e,yh))}(o.padding,n),d=lh(a),f="y"===s?hh:gh,p="y"===s?mh:vh,b=n.rects.reference[l]+n.rects.reference[s]-i[s]-n.rects.popper[l],h=i[s]-n.rects.reference[s],m=bh(a),v=m?"y"===s?m.clientHeight||0:m.clientWidth||0:0,g=b/2-h/2,y=u[f],O=v-d[l]-u[p],j=v/2-d[l]/2+g,w=Xh(y,j,O),x=s;n.modifiersData[r]=((t={})[x]=w,t.centerOffset=w-j,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Wh(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Yh(t,{elementContext:"reference"}),c=Yh(t,{altBoundary:!0}),s=Zh(i,r),l=Zh(c,o,a),u=Jh(s),d=Jh(l);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});function em(e){void 0===e&&(e={});var t,n,r=Z(e),o=r.visible,a=void 0!==o&&o,i=r.animated,c=void 0!==i&&i,s=ie(Object($.a)(r,["visible","animated"])),l=Object(q.useState)(a),u=l[0],d=l[1],f=Object(q.useState)(c),p=f[0],b=f[1],h=Object(q.useState)(!1),m=h[0],v=h[1],g=(t=u,n=Object(q.useRef)(null),Object(X.a)((function(){n.current=t}),[t]),n),y=null!=g.current&&g.current!==u;p&&!m&&y&&v(!0),Object(q.useEffect)((function(){if("number"==typeof p&&m){var e=setTimeout((function(){return v(!1)}),p);return function(){clearTimeout(e)}}return function(){}}),[p,m]);var O=Object(q.useCallback)((function(){return d(!0)}),[]),j=Object(q.useCallback)((function(){return d(!1)}),[]),w=Object(q.useCallback)((function(){return d((function(e){return!e}))}),[]),x=Object(q.useCallback)((function(){return v(!1)}),[]);return Object($.b)(Object($.b)({},s),{},{visible:u,animated:p,animating:m,show:O,hide:j,toggle:w,setVisible:d,setAnimated:b,stopAnimation:x})}var tm=Object(Xb.a)("Mac")&&!Object(Xb.a)("Chrome")&&Object(Xb.a)("Safari");function nm(e){return function(t){return e&&!Object(Yb.a)(t,e)?e:t}}function rm(e){void 0===e&&(e={});var t=Z(e),n=t.gutter,r=void 0===n?12:n,o=t.placement,a=void 0===o?"bottom":o,i=t.unstable_flip,c=void 0===i||i,s=t.unstable_offset,l=t.unstable_preventOverflow,u=void 0===l||l,d=t.unstable_fixed,f=void 0!==d&&d,p=t.modal,b=void 0!==p&&p,h=Object($.a)(t,["gutter","placement","unstable_flip","unstable_offset","unstable_preventOverflow","unstable_fixed","modal"]),m=Object(q.useRef)(null),v=Object(q.useRef)(null),g=Object(q.useRef)(null),y=Object(q.useRef)(null),O=Object(q.useState)(a),j=O[0],w=O[1],x=Object(q.useState)(a),_=x[0],E=x[1],k=Object(q.useState)(s||[0,r])[0],S=Object(q.useState)({position:"fixed",left:"100%",top:"100%"}),C=S[0],P=S[1],T=Object(q.useState)({}),M=T[0],D=T[1],I=function(e){void 0===e&&(e={});var t=Z(e),n=t.modal,r=void 0===n||n,o=em(Object($.a)(t,["modal"])),a=Object(q.useState)(r),i=a[0],c=a[1],s=Object(q.useRef)(null);return Object($.b)(Object($.b)({},o),{},{modal:i,setModal:c,unstable_disclosureRef:s})}(Object($.b)({modal:b},h)),R=Object(q.useCallback)((function(){return!!m.current&&(m.current.forceUpdate(),!0)}),[]),A=Object(q.useCallback)((function(e){e.placement&&E(e.placement),e.styles&&(P(nm(e.styles.popper)),y.current&&D(nm(e.styles.arrow)))}),[]);return Object(X.a)((function(){return v.current&&g.current&&(m.current=Qh(v.current,g.current,{placement:j,strategy:f?"fixed":"absolute",onFirstUpdate:tm?A:void 0,modifiers:[{name:"eventListeners",enabled:I.visible},{name:"applyStyles",enabled:!1},{name:"flip",enabled:c,options:{padding:8}},{name:"offset",options:{offset:k}},{name:"preventOverflow",enabled:u,options:{tetherOffset:function(){var e;return(null===(e=y.current)||void 0===e?void 0:e.clientWidth)||0}}},{name:"arrow",enabled:!!y.current,options:{element:y.current}},{name:"updateState",phase:"write",requires:["computeStyles"],enabled:I.visible&&!0,fn:function(e){var t=e.state;return A(t)}}]})),function(){m.current&&(m.current.destroy(),m.current=null)}}),[j,f,I.visible,c,k,u]),Object(q.useEffect)((function(){if(I.visible){var e=window.requestAnimationFrame((function(){var e;null===(e=m.current)||void 0===e||e.forceUpdate()}));return function(){window.cancelAnimationFrame(e)}}}),[I.visible]),Object($.b)(Object($.b)({},I),{},{unstable_referenceRef:v,unstable_popoverRef:g,unstable_arrowRef:y,unstable_popoverStyles:C,unstable_arrowStyles:M,unstable_update:R,unstable_originalPlacement:j,placement:_,place:w})}var om={currentTooltipId:null,listeners:new Set,subscribe:function(e){var t=this;return this.listeners.add(e),function(){t.listeners.delete(e)}},show:function(e){this.currentTooltipId=e,this.listeners.forEach((function(t){return t(e)}))},hide:function(e){this.currentTooltipId===e&&(this.currentTooltipId=null,this.listeners.forEach((function(e){return e(null)})))}};var am=["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation","unstable_disclosureRef","unstable_referenceRef","unstable_popoverRef","unstable_arrowRef","unstable_popoverStyles","unstable_arrowStyles","unstable_originalPlacement","unstable_update","placement","place","unstable_timeout","unstable_setTimeout"],im=[].concat(am,["unstable_portal"]),cm=am,sm=Object(_e.a)({name:"TooltipReference",compose:Ce.a,keys:cm,useProps:function(e,t){var n=t.ref,r=t.onFocus,o=t.onBlur,a=t.onMouseEnter,i=t.onMouseLeave,c=Object($.a)(t,["ref","onFocus","onBlur","onMouseEnter","onMouseLeave"]),s=Object(ke.a)(r),l=Object(ke.a)(o),u=Object(ke.a)(a),d=Object(ke.a)(i),f=Object(q.useCallback)((function(t){var n,r;null===(n=s.current)||void 0===n||n.call(s,t),t.defaultPrevented||null===(r=e.show)||void 0===r||r.call(e)}),[e.show]),p=Object(q.useCallback)((function(t){var n,r;null===(n=l.current)||void 0===n||n.call(l,t),t.defaultPrevented||null===(r=e.hide)||void 0===r||r.call(e)}),[e.hide]),b=Object(q.useCallback)((function(t){var n,r;null===(n=u.current)||void 0===n||n.call(u,t),t.defaultPrevented||null===(r=e.show)||void 0===r||r.call(e)}),[e.show]),h=Object(q.useCallback)((function(t){var n,r;null===(n=d.current)||void 0===n||n.call(d,t),t.defaultPrevented||null===(r=e.hide)||void 0===r||r.call(e)}),[e.hide]);return Object($.b)({ref:Object(Ee.a)(e.unstable_referenceRef,n),tabIndex:0,onFocus:f,onBlur:p,onMouseEnter:b,onMouseLeave:h,"aria-describedby":e.baseId},c)}}),lm=Object(xe.a)({as:"div",useHook:sm});const um=Object(s.createContext)({});var dm=["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation"],fm=dm,pm=Object(_e.a)({name:"DisclosureContent",compose:Ce.a,keys:fm,useProps:function(e,t){var n=t.onTransitionEnd,r=t.onAnimationEnd,o=t.style,a=Object($.a)(t,["onTransitionEnd","onAnimationEnd","style"]),i=e.animated&&e.animating,c=Object(q.useState)(null),s=c[0],l=c[1],u=!e.visible&&!i,d=u?Object($.b)({display:"none"},o):o,f=Object(ke.a)(n),p=Object(ke.a)(r),b=Object(q.useRef)(0);Object(q.useEffect)((function(){if(e.animated)return b.current=window.requestAnimationFrame((function(){b.current=window.requestAnimationFrame((function(){e.visible?l("enter"):l(i?"leave":null)}))})),function(){return window.cancelAnimationFrame(b.current)}}),[e.animated,e.visible,i]);var h=Object(q.useCallback)((function(t){var n;Object(Se.a)(t)&&(i&&!0===e.animated&&(null===(n=e.stopAnimation)||void 0===n||n.call(e)))}),[e.animated,i,e.stopAnimation]),m=Object(q.useCallback)((function(e){var t;null===(t=f.current)||void 0===t||t.call(f,e),h(e)}),[h]),v=Object(q.useCallback)((function(e){var t;null===(t=p.current)||void 0===t||t.call(p,e),h(e)}),[h]);return Object($.b)({id:e.baseId,"data-enter":"enter"===s?"":void 0,"data-leave":"leave"===s?"":void 0,onTransitionEnd:m,onAnimationEnd:v,hidden:u,style:d},a)}}),bm=Object(xe.a)({as:"div",useHook:pm}),hm=n("faye");function mm(){return Le.a?document.body:null}var vm=Object(q.createContext)(mm());function gm(e){var t=e.children,n=Object(q.useContext)(vm)||mm(),r=Object(q.useState)((function(){if(Le.a){var e=document.createElement("div");return e.className=gm.__className,e}return null}))[0];return Object(X.a)((function(){if(r&&n)return n.appendChild(r),function(){n.removeChild(r)}}),[r,n]),r?Object(hm.createPortal)(Object(q.createElement)(vm.Provider,{value:r},t),r):null}function ym(e){e.defaultPrevented||"Escape"===e.key&&om.show(null)}gm.__className="__reakit-portal",gm.__selector="."+gm.__className;var Om=Object(_e.a)({name:"Tooltip",compose:pm,keys:im,useOptions:function(e){var t=e.unstable_portal,n=void 0===t||t,r=Object($.a)(e,["unstable_portal"]);return Object($.b)({unstable_portal:n},r)},useProps:function(e,t){var n=t.ref,r=t.style,o=t.wrapElement,a=Object($.a)(t,["ref","style","wrapElement"]);Object(q.useEffect)((function(){var t;Object(J.a)(null===(t=e.unstable_popoverRef)||void 0===t?void 0:t.current).addEventListener("keydown",ym)}),[]);var i=Object(q.useCallback)((function(t){return e.unstable_portal&&(t=Object(q.createElement)(gm,null,t)),o?o(t):t}),[e.unstable_portal,o]);return Object($.b)({ref:Object(Ee.a)(e.unstable_popoverRef,n),role:"tooltip",style:Object($.b)(Object($.b)({},e.unstable_popoverStyles),{},{pointerEvents:"none"},r),wrapElement:i},a)}}),jm=Object(xe.a)({as:"div",memo:!0,useHook:Om});var wm=Object(os.a)((function(e,t){const{as:n="span",shortcut:r,className:o,...a}=Object(is.a)(e,"Shortcut");if(!r)return null;let i,l;return"string"==typeof r?i=r:(i=r.display,l=r.ariaLabel),Object(s.createElement)(as.a,Object(c.a)({as:n,className:o,"aria-label":l,ref:t},a),i)}),"Shortcut");const xm=Object(x.a)("z-index:",1000002,";box-sizing:border-box;opacity:0;outline:none;transform-origin:top center;transition:opacity ",Ks.transitionDurationFastest," ease;&[data-enter]{opacity:1;}",""),_m=Object(w.a)("div",{target:"e7tfjmw1"})("background:rgba( 0, 0, 0, 0.8 );border-radius:2px;box-shadow:0 0 0 1px rgba( 255, 255, 255, 0.04 );color:",L.white,";padding:4px 8px;"),Em={name:"12mkfdx",styles:"outline:none"},km=Object(w.a)(wm,{target:"e7tfjmw0"})("display:inline-block;margin-left:",ws(1),";"),{TooltipPopoverView:Sm}=o;var Cm=Object(os.a)((function(e,t){const{children:n,className:r,...o}=Object(is.a)(e,"TooltipContent"),{tooltip:a}=Object(s.useContext)(um),i=Object(ps.a)()(xm,r);return Object(s.createElement)(jm,Object(c.a)({as:as.a},o,a,{className:i,ref:t}),Object(s.createElement)(Sm,null,n))}),"TooltipContent");var Pm=Object(os.a)((function(e,t){const{animated:n=!0,animationDuration:r=160,baseId:o,children:a,content:i,focusable:l=!0,gutter:u=4,id:d,modal:f=!0,placement:p,visible:b=!1,shortcut:h,...m}=Object(is.a)(e,"Tooltip"),v=function(e){void 0===e&&(e={});var t=Z(e),n=t.placement,r=void 0===n?"top":n,o=t.unstable_timeout,a=void 0===o?0:o,i=Object($.a)(t,["placement","unstable_timeout"]),c=Object(q.useState)(a),s=c[0],l=c[1],u=Object(q.useRef)(null),d=Object(q.useRef)(null),f=rm(Object($.b)(Object($.b)({},i),{},{placement:r})),p=(f.modal,f.setModal,Object($.a)(f,["modal","setModal"])),b=Object(q.useCallback)((function(){null!==u.current&&window.clearTimeout(u.current),null!==d.current&&window.clearTimeout(d.current)}),[]),h=Object(q.useCallback)((function(){b(),p.hide(),d.current=window.setTimeout((function(){om.hide(p.baseId)}),s)}),[b,p.hide,s,p.baseId]),m=Object(q.useCallback)((function(){b(),!s||om.currentTooltipId?(om.show(p.baseId),p.show()):(om.show(null),u.current=window.setTimeout((function(){om.show(p.baseId),p.show()}),s))}),[b,s,p.show,p.baseId]);return Object(q.useEffect)((function(){return om.subscribe((function(e){e!==p.baseId&&(b(),p.visible&&p.hide())}))}),[p.baseId,b,p.visible,p.hide]),Object(q.useEffect)((function(){return function(){b(),om.hide(p.baseId)}}),[b,p.baseId]),Object($.b)(Object($.b)({},p),{},{hide:h,show:m,unstable_timeout:s,unstable_setTimeout:l})}({animated:n?r:void 0,baseId:o||d,gutter:u,placement:p,visible:b,...m}),g=Object(s.useMemo)(()=>({tooltip:v}),[v]);return Object(s.createElement)(um.Provider,{value:g},i&&Object(s.createElement)(Cm,{unstable_portal:f,ref:t},i,h&&Object(s.createElement)(km,{shortcut:h})),a&&Object(s.createElement)(lm,Object(c.a)({},v,a.props,{ref:null==a?void 0:a.ref}),e=>(l||(e.tabIndex=void 0),Object(s.cloneElement)(a,e))))}),"Tooltip");const Tm=e=>{let{values:t}=e;return Object(s.createElement)(s.Fragment,null,t.map(e=>{let[t,n]=e;return Object(s.createElement)(ms,{key:n,isBlock:!0,display:"flex"},Object(s.createElement)(cl,{color:"blue"},n),Object(s.createElement)(cl,null,t))}))},Mm=e=>{let{color:t,enableAlpha:n}=e;const{h:r,s:o,l:a,a:i}=t.toHsl(),c=[[Math.floor(r),"H"],[Math.round(100*o),"S"],[Math.round(100*a),"L"]];return n&&c.push([Math.round(100*i),"A"]),Object(s.createElement)(Tm,{values:c})},Dm=e=>{let{color:t,enableAlpha:n}=e;const{r:r,g:o,b:a,a:i}=t.toRgb(),c=[[r,"R"],[o,"G"],[a,"B"]];return n&&c.push([Math.round(100*i),"A"]),Object(s.createElement)(Tm,{values:c})},Im=e=>{let{color:t}=e;const n=t.toHex().slice(1).toUpperCase();return Object(s.createElement)(ms,null,Object(s.createElement)(cl,{color:"blue"},"#"),Object(s.createElement)(cl,null,n))},Rm=e=>{let{color:t,colorType:n,enableAlpha:r}=e;const[o,a]=Object(s.useState)(null),i=Object(s.useRef)(),c={color:t,enableAlpha:r},l=(e=>{switch(e){case"hsl":return Mm;case"rgb":return Dm;default:case"hex":return Im}})(n),u=Object(p.useCopyToClipboard)(()=>{switch(n){case"hsl":return t.toHslString();case"rgb":return t.toRgbString();default:case"hex":return t.toHex()}},()=>{i.current&&clearTimeout(i.current),a(t.toHex()),i.current=setTimeout(()=>{a(null),i.current=void 0},3e3)});return Object(s.useEffect)(()=>()=>{i.current&&clearTimeout(i.current)},[]),Object(s.createElement)(Pm,{content:Object(s.createElement)(cl,{color:"white"},o===t.toHex()?Object(f.__)("Copied!"):Object(f.__)("Copy"))},Object(s.createElement)(Ms,{justify:"flex-start",gap:ws(1),ref:u,style:{height:30}},Object(s.createElement)(l,c)))},Am=e=>{let{min:t,max:n,label:r,abbreviation:o,onChange:a,value:i}=e;return Object(s.createElement)(od,{as:ib,spacing:4},Object(s.createElement)(Bb,{min:t,max:n,label:r,hideLabelFromVision:!0,value:i,onChange:a,prefix:Object(s.createElement)(od,{as:cl,paddingLeft:ws(3.5),color:"blue",lineHeight:1},o),hideHTMLArrows:!0}),Object(s.createElement)(Vb,{label:r,hideLabelFromVision:!0,min:t,max:n,value:i,onChange:a,withInputField:!1}))},Nm=e=>{let{color:t,onChange:n,enableAlpha:r}=e;const{r:o,g:a,b:i,a:c}=t.toRgb();return Object(s.createElement)(s.Fragment,null,Object(s.createElement)(Am,{min:0,max:255,label:"Red",abbreviation:"R",value:o,onChange:e=>n(Object(_.a)({r:e,g:a,b:i,a:c}))}),Object(s.createElement)(Am,{min:0,max:255,label:"Green",abbreviation:"G",value:a,onChange:e=>n(Object(_.a)({r:o,g:e,b:i,a:c}))}),Object(s.createElement)(Am,{min:0,max:255,label:"Blue",abbreviation:"B",value:i,onChange:e=>n(Object(_.a)({r:o,g:a,b:e,a:c}))}),r&&Object(s.createElement)(Am,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*c),onChange:e=>n(Object(_.a)({r:o,g:a,b:i,a:e/100}))}))},Lm=e=>{let{color:t,onChange:n,enableAlpha:r}=e;const{h:o,s:a,l:i,a:c}=t.toHsl();return Object(s.createElement)(s.Fragment,null,Object(s.createElement)(Am,{min:0,max:359,label:"Hue",abbreviation:"H",value:o,onChange:e=>{n(Object(_.a)({h:e,s:a,l:i,a:c}))}}),Object(s.createElement)(Am,{min:0,max:100,label:"Saturation",abbreviation:"S",value:a,onChange:e=>{n(Object(_.a)({h:o,s:e,l:i,a:c}))}}),Object(s.createElement)(Am,{min:0,max:100,label:"Lightness",abbreviation:"L",value:i,onChange:e=>{n(Object(_.a)({h:o,s:a,l:e,a:c}))}}),r&&Object(s.createElement)(Am,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*c),onChange:e=>{n(Object(_.a)({h:o,s:a,l:i,a:e/100}))}}))},Fm=e=>{let{color:t,onChange:n,enableAlpha:r}=e;return Object(s.createElement)(qb,{prefix:Object(s.createElement)(od,{as:cl,marginLeft:ws(3.5),color:"blue",lineHeight:1},"#"),value:t.toHex().slice(1).toUpperCase(),onChange:e=>{n(Object(_.a)("#"+e))},onValidate:e=>{if(!Object(_.a)("#"+e).isValid())throw new Error("Invalid hex color input")},maxLength:r?8:6,label:Object(f.__)("Hex color"),hideLabelFromVision:!0})},zm=e=>{let{colorType:t,color:n,onChange:r,enableAlpha:o}=e;const a={color:n,onChange:r,enableAlpha:o};switch(t){case"hsl":return Object(s.createElement)(Lm,a);case"rgb":return Object(s.createElement)(Nm,a);default:case"hex":return Object(s.createElement)(Fm,a)}};function Bm(){return(Bm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Hm(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}function Vm(e){var t=Object(q.useRef)(e),n=Object(q.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var Wm=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},Um=function(e){return"touches"in e},Km=function(e){return e&&e.ownerDocument.defaultView||self},Gm=function(e,t,n){var r=e.getBoundingClientRect(),o=Um(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:Wm((o.pageX-(r.left+Km(e).pageXOffset))/r.width),top:Wm((o.pageY-(r.top+Km(e).pageYOffset))/r.height)}},$m=function(e){!Um(e)&&e.preventDefault()},qm=Y.a.memo((function(e){var t=e.onMove,n=e.onKey,r=Hm(e,["onMove","onKey"]),o=Object(q.useRef)(null),a=Vm(t),i=Vm(n),c=Object(q.useRef)(null),s=Object(q.useRef)(!1),l=Object(q.useMemo)((function(){var e=function(e){$m(e),(Um(e)?e.touches.length>0:e.buttons>0)&&o.current?a(Gm(o.current,e,c.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=s.current,a=Km(o.current),i=n?a.addEventListener:a.removeEventListener;i(r?"touchmove":"mousemove",e),i(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=o.current;if(r&&($m(t),!function(e,t){return t&&!Um(e)}(t,s.current)&&r)){if(Um(t)){s.current=!0;var i=t.changedTouches||[];i.length&&(c.current=i[0].identifier)}r.focus(),a(Gm(r,t,c.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),i({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},n]}),[i,a]),u=l[0],d=l[1],f=l[2];return Object(q.useEffect)((function(){return f}),[f]),Y.a.createElement("div",Bm({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))})),Ym=function(e){return e.filter(Boolean).join(" ")},Xm=function(e){var t=e.color,n=e.left,r=e.top,o=void 0===r?.5:r,a=Ym(["react-colorful__pointer",e.className]);return Y.a.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},Y.a.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},Zm=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},Jm=(Math.PI,function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:Zm(e.h),s:Zm(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:Zm(o/2),a:Zm(r,2)}}),Qm=function(e){var t=Jm(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},ev=function(e){var t=Jm(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},tv=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),i=r*(1-n),c=r*(1-(t-a)*n),s=r*(1-(1-t+a)*n),l=a%6;return{r:Zm(255*[r,c,i,i,s,r][l]),g:Zm(255*[s,r,r,c,i,i][l]),b:Zm(255*[i,i,s,r,r,c][l]),a:Zm(o,2)}},nv=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ov({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},rv=nv,ov=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),i=a-Math.min(t,n,r),c=i?a===t?(n-r)/i:a===n?2+(r-t)/i:4+(t-n)/i:0;return{h:Zm(60*(c<0?c+6:c)),s:Zm(a?i/a*100:0),v:Zm(a/255*100),a:o}},av=Y.a.memo((function(e){var t=e.hue,n=e.onChange,r=Ym(["react-colorful__hue",e.className]);return Y.a.createElement("div",{className:r},Y.a.createElement(qm,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:Wm(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuetext":Zm(t)},Y.a.createElement(Xm,{className:"react-colorful__hue-pointer",left:t/360,color:Qm({h:t,s:100,v:100,a:1})})))})),iv=Y.a.memo((function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:Qm({h:t.h,s:100,v:100,a:1})};return Y.a.createElement("div",{className:"react-colorful__saturation",style:r},Y.a.createElement(qm,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:Wm(t.s+100*e.left,0,100),v:Wm(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Zm(t.s)+"%, Brightness "+Zm(t.v)+"%"},Y.a.createElement(Xm,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Qm(t)})))})),cv=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},sv=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function lv(e,t,n){var r=Vm(n),o=Object(q.useState)((function(){return e.toHsva(t)})),a=o[0],i=o[1],c=Object(q.useRef)({color:t,hsva:a});Object(q.useEffect)((function(){if(!e.equal(t,c.current.color)){var n=e.toHsva(t);c.current={hsva:n,color:t},i(n)}}),[t,e]),Object(q.useEffect)((function(){var t;cv(a,c.current.hsva)||e.equal(t=e.fromHsva(a),c.current.color)||(c.current={hsva:a,color:t},r(t))}),[a,e,r]);var s=Object(q.useCallback)((function(e){i((function(t){return Object.assign({},t,e)}))}),[]);return[a,s]}var uv,dv="undefined"!=typeof window?q.useLayoutEffect:q.useEffect,fv=new Map,pv=function(e){dv((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!fv.has(t)){var r=t.createElement("style");r.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',fv.set(t,r);var o=uv||n.nc;o&&r.setAttribute("nonce",o),t.head.appendChild(r)}}),[])},bv=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,a=e.onChange,i=Hm(e,["className","colorModel","color","onChange"]),c=Object(q.useRef)(null);pv(c);var s=lv(n,o,a),l=s[0],u=s[1],d=Ym(["react-colorful",t]);return Y.a.createElement("div",Bm({},i,{ref:c,className:d}),Y.a.createElement(iv,{hsva:l,onChange:u}),Y.a.createElement(av,{hue:l.h,onChange:u,className:"react-colorful__last-control"}))},hv=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+ev(Object.assign({},n,{a:0}))+", "+ev(Object.assign({},n,{a:1}))+")"},a=Ym(["react-colorful__alpha",t]);return Y.a.createElement("div",{className:a},Y.a.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),Y.a.createElement(qm,{onMove:function(e){r({a:e.left})},onKey:function(e){r({a:Wm(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":Zm(100*n.a)+"%"},Y.a.createElement(Xm,{className:"react-colorful__alpha-pointer",left:n.a,color:ev(n)})))},mv=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,a=e.onChange,i=Hm(e,["className","colorModel","color","onChange"]),c=Object(q.useRef)(null);pv(c);var s=lv(n,o,a),l=s[0],u=s[1],d=Ym(["react-colorful",t]);return Y.a.createElement("div",Bm({},i,{ref:c,className:d}),Y.a.createElement(iv,{hsva:l,onChange:u}),Y.a.createElement(av,{hue:l.h,onChange:u}),Y.a.createElement(hv,{hsva:l,onChange:u,className:"react-colorful__last-control"}))},vv={defaultColor:"rgba(0, 0, 0, 1)",toHsva:nv,fromHsva:function(e){var t=tv(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:sv},gv=function(e){return Y.a.createElement(mv,Bm({},e,{colorModel:vv}))},yv={defaultColor:"rgb(0, 0, 0)",toHsva:rv,fromHsva:function(e){var t=tv(e);return"rgb("+t.r+", "+t.g+", "+t.b+")"},equal:sv},Ov=function(e){return Y.a.createElement(bv,Bm({},e,{colorModel:yv}))};const jv=e=>{let{color:t,enableAlpha:n,onChange:r}=e;const o=n?gv:Ov,a=Object(s.useMemo)(()=>t.toRgbString(),[t]);return Object(s.createElement)(o,{color:a,onChange:e=>{r(Object(_.a)(e))}})};Object(_.b)([E.a]);const wv=[{label:"RGB",value:"rgb"},{label:"HSL",value:"hsl"},{label:"Hex",value:"hex"}];var xv=Object(os.a)((e,t)=>{const{enableAlpha:n=!1,color:r,onChange:o,defaultValue:a="#fff",copyFormat:i,...l}=Object(is.a)(e,"ColorPicker"),u=Object(s.useMemo)(()=>r?Object(_.a)(r):Object(_.a)(a),[r,a]),d=Object(q.useCallback)(e=>{o(e.toHex())},[o]),[p,b]=Object(s.useState)(!1),[h,m]=Object(s.useState)(i||"hex");return Object(s.createElement)(Gb,Object(c.a)({ref:t},l),Object(s.createElement)(jv,{onChange:d,color:u,enableAlpha:n}),Object(s.createElement)(Kb,null,Object(s.createElement)(ib,{justify:"space-between"},p?Object(s.createElement)(Hb,{options:wv,value:h,onChange:e=>m(e),label:Object(f.__)("Color format"),hideLabelFromVision:!0}):Object(s.createElement)(Rm,{color:u,colorType:i||h,enableAlpha:n}),Object(s.createElement)($b,{isSmall:!0,onClick:()=>b(!p),icon:tb.a,isPressed:p,label:p?Object(f.__)("Hide detailed inputs"):Object(f.__)("Show detailed inputs")})),Object(s.createElement)(od,{margin:4}),p&&Object(s.createElement)(zm,{colorType:h,color:u,onChange:d,enableAlpha:n})))},"ColorPicker");function _v(e){var t;return void 0!==e.onChangeComplete||void 0!==e.disableAlpha||"string"==typeof(null===(t=e.color)||void 0===t?void 0:t.hex)}const Ev=zs()(e=>{const t=Object(_.a)(e),n=t.toHex(),r=t.toRgb(),o=t.toHsv(),a=t.toHsl();return{hex:n,rgb:r,hsv:o,hsl:a,source:"hex",oldHue:a.h}});const kv=e=>Object(s.createElement)(xv,function(e){const t=Object(s.useCallback)(t=>{var n;return _v(e)?e.onChangeComplete(Ev(t)):null===(n=e.onChange)||void 0===n?void 0:n.call(e,t)},[e.onChangeComplete,e.onChange]),n=Object(s.useMemo)(()=>_v(e)?function(e){if(void 0!==(null==e?void 0:e.color))return"string"==typeof e.color?e.color:e.color.hex?e.color.hex:void 0}(e):e.color,[e.color]),r=Object(s.useMemo)(()=>_v(e)?!e.disableAlpha:e.enableAlpha,[e.disableAlpha,e.enableAlpha]);return{..._v(e)?{}:e,onChange:t,color:n,enableAlpha:r}}(e));const Sv=Object(x.a)("appearance:none;border:1px solid transparent;cursor:pointer;background:none;text-align:left;&:hover{color:",L.admin.theme,";}&:focus{background-color:transparent;color:",L.admin.theme,";border-color:",L.admin.theme,";outline:3px solid transparent;}",""),Cv={name:"1bcj5ek",styles:"width:100%;display:block"},Pv={name:"5vij5u",styles:"width:100%;display:block;margin:0"},Tv=Object(x.a)("border:1px solid ",Ks.surfaceBorderColor,";",""),Mv=Object(x.a)(">*:not( marquee )>*{border-bottom:1px solid ",Ks.surfaceBorderColor,";}>*:last-of-type>*:not( :focus ){border-bottom-color:transparent;}",""),Dv=Ks.controlBorderRadius,Iv=Object(x.a)("border-radius:",Dv,";",""),Rv=Object(x.a)("border-radius:",Dv,";>*:first-of-type>*{border-top-left-radius:",Dv,";border-top-right-radius:",Dv,";}>*:last-of-type>*{border-bottom-left-radius:",Dv,";border-bottom-right-radius:",Dv,";}",""),Av=`calc(${Ks.fontSize} * ${Ks.fontLineHeightBase})`,Nv=`calc((${Ks.controlHeight} - ${Av} - 2px) / 2)`,Lv=`calc((${Ks.controlHeightSmall} - ${Av} - 2px) / 2)`,Fv=`calc((${Ks.controlHeightLarge} - ${Av} - 2px) / 2)`,zv={small:Object(x.a)("padding:",Lv," ",Ks.controlPaddingXSmall,";",""),medium:Object(x.a)("padding:",Nv," ",Ks.controlPaddingX,";",""),large:Object(x.a)("padding:",Fv," ",Ks.controlPaddingXLarge,";","")};const Bv=Object(s.createContext)({size:"medium"}),Hv=()=>Object(s.useContext)(Bv);var Vv=Object(os.a)((function(e,t){const{isBordered:n,isSeparated:r,size:o,...a}=function(e){const{className:t,isBordered:n=!1,isRounded:r=!0,isSeparated:o=!1,role:a="list",...i}=Object(is.a)(e,"ItemGroup");return{isBordered:n,className:Object(ps.a)()(n&&Tv,o&&Mv,r&&Rv,t),role:a,isSeparated:o,...i}}(e),{size:i}=Hv(),l={spacedAround:!n&&!r,size:o||i};return Object(s.createElement)(Bv.Provider,{value:l},Object(s.createElement)(as.a,Object(c.a)({},a,{ref:t})))}),"ItemGroup");var Wv=Object(os.a)((function(e,t){const n=function(e){const{expanded:t=!1,...n}=Object(is.a)(e,"VStack");return ab({direction:"column",expanded:t,...n})}(e);return Object(s.createElement)(as.a,Object(c.a)({},n,{ref:t}))}),"VStack"),Uv=n("7bKH");function Kv(e){var t;let{renderContent:n,renderToggle:r,position:o="bottom right",className:a,contentClassName:i,expandOnMobile:l,headerTitle:u,focusOnMount:f,popoverProps:p,onClose:b,onToggle:h}=e;const m=Object(s.useRef)(),[v,g]=function(e,t){const[n,r]=Object(s.useState)(e);return[n,e=>{r(e),t&&t(e)}]}(!1,h);function y(){b&&b(),g(!1)}Object(s.useEffect)(()=>()=>{h&&h(!1)},[]);const O={isOpen:v,onToggle:function(){g(!v)},onClose:y};return Object(s.createElement)("div",{className:d()("components-dropdown",a),ref:m,tabIndex:"-1"},r(O),v&&Object(s.createElement)(ud.a,Object(c.a)({position:o,onClose:y,onFocusOutside:function(){const{ownerDocument:e}=m.current,t=e.activeElement.closest('[role="dialog"]');m.current.contains(e.activeElement)||t&&!t.contains(m.current)||y()},expandOnMobile:l,headerTitle:u,focusOnMount:f},p,{anchorRef:null!==(t=null==p?void 0:p.anchorRef)&&void 0!==t?t:m.current,className:d()("components-dropdown__content",p?p.className:void 0,i)}),n(O)))}function Gv(e){let{actions:t,className:n,options:r,children:o}=e;return Object(s.createElement)("div",{className:d()("components-circular-option-picker",n)},Object(s.createElement)("div",{className:"components-circular-option-picker__swatches"},r),o,t&&Object(s.createElement)("div",{className:"components-circular-option-picker__custom-clear-wrapper"},t))}Gv.Option=function(e){let{className:t,isSelected:n,selectedIconProps:r,tooltipText:o,...a}=e;const i=Object(s.createElement)(ld.a,Object(c.a)({isPressed:n,className:d()(t,"components-circular-option-picker__option")},a));return Object(s.createElement)("div",{className:"components-circular-option-picker__option-wrapper"},o?Object(s.createElement)(h.a,{text:o},i):i,n&&Object(s.createElement)(qp.a,Object(c.a)({icon:Yp.a},r||{})))},Gv.ButtonAction=function(e){let{className:t,children:n,...r}=e;return Object(s.createElement)(ld.a,Object(c.a)({className:d()("components-circular-option-picker__clear",t),isSmall:!0,variant:"secondary"},r),n)},Gv.DropdownLinkAction=function(e){let{buttonProps:t,className:n,dropdownProps:r,linkText:o}=e;return Object(s.createElement)(Kv,Object(c.a)({className:d()("components-circular-option-picker__dropdown-link-action",n),renderToggle:e=>{let{isOpen:n,onToggle:r}=e;return Object(s.createElement)(ld.a,Object(c.a)({"aria-expanded":n,"aria-haspopup":"true",onClick:r,variant:"link"},t),o)}},r))};var $v=Object(os.a)((function(e,t){const n=function(e){const{as:t,level:n=2,...r}=Object(is.a)(e,"Heading"),o=t||"h"+n,a={};return"string"==typeof o&&"h"!==o[0]&&(a.role="heading",a["aria-level"]="string"==typeof n?parseInt(n):n),{...il({color:L.darkGray.heading,size:ol(n),isBlock:!0,weight:Ks.fontWeightHeading,...r}),...a,as:o}}(e);return Object(s.createElement)(as.a,Object(c.a)({},n,{ref:t}))}),"Heading");const qv=Object(w.a)($v,{target:"e1uu5br00"})({name:"13lxv2o",styles:"text-transform:uppercase;line-height:24px;font-weight:500;&&&{font-size:11px;margin-bottom:0;}"});function Yv(e){let{className:t,clearColor:n,colors:r,onChange:o,value:a,actions:i}=e;const c=Object(s.useMemo)(()=>Object(l.map)(r,e=>{let{color:t,name:r}=e;const i=Object(_.a)(t);return Object(s.createElement)(Gv.Option,{key:t,isSelected:a===t,selectedIconProps:a===t?{fill:i.contrast()>i.contrast("#000")?"#fff":"#000"}:{},tooltipText:r||Object(f.sprintf)(Object(f.__)("Color code: %s"),t),style:{backgroundColor:t,color:t},onClick:a===t?n:()=>o(t),"aria-label":r?Object(f.sprintf)(Object(f.__)("Color: %s"),r):Object(f.sprintf)(Object(f.__)("Color code: %s"),t)})}),[r,a,o,n]);return Object(s.createElement)(Gv,{className:t,options:c,actions:i})}function Xv(e){let{className:t,clearColor:n,colors:r,onChange:o,value:a,actions:i}=e;return Object(s.createElement)(Wv,{spacing:3,className:t},r.map((e,t)=>{let{name:c,colors:l}=e;return Object(s.createElement)(Wv,{spacing:2,key:t},Object(s.createElement)(qv,null,c),Object(s.createElement)(Yv,{clearColor:n,colors:l,onChange:o,value:a,actions:r.length===t+1?i:null}))}))}function Zv(e){let{clearable:t=!0,className:n,colors:r,disableCustomColors:o=!1,enableAlpha:a,onChange:i,value:c,__experimentalHasMultipleOrigins:l=!1}=e;const u=Object(s.useCallback)(()=>i(void 0),[i]),d=l?Xv:Yv;return Object(s.createElement)(Wv,{spacing:3,className:n},!o&&Object(s.createElement)(Kv,{renderContent:()=>Object(s.createElement)(kv,{color:c,onChange:e=>i(e),enableAlpha:a}),renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return Object(s.createElement)("button",{className:"components-color-palette__custom-color","aria-expanded":t,"aria-haspopup":"true",onClick:n,"aria-label":Object(f.__)("Custom color picker"),style:{background:c}},c)}}),Object(s.createElement)(d,{clearable:t,clearColor:u,colors:r,onChange:i,value:c,actions:!!t&&Object(s.createElement)(Gv.ButtonAction,{onClick:u},Object(f.__)("Clear"))}))}Object(_.b)([E.a,Uv.a]);var Jv=Object(s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(s.createElement)(i.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"})),Qv=n("1CF3");const eg=["menuitem","menuitemradio","menuitemcheckbox"];class tg extends s.Component{constructor(){super(...arguments),this.onKeyDown=this.onKeyDown.bind(this),this.bindContainer=this.bindContainer.bind(this),this.getFocusableContext=this.getFocusableContext.bind(this),this.getFocusableIndex=this.getFocusableIndex.bind(this)}componentDidMount(){this.container.addEventListener("keydown",this.onKeyDown),this.container.addEventListener("focus",this.onFocus)}componentWillUnmount(){this.container.removeEventListener("keydown",this.onKeyDown),this.container.removeEventListener("focus",this.onFocus)}bindContainer(e){const{forwardedRef:t}=this.props;this.container=e,Object(l.isFunction)(t)?t(e):t&&"current"in t&&(t.current=e)}getFocusableContext(e){const{onlyBrowserTabstops:t}=this.props,n=(t?Qv.focus.tabbable:Qv.focus.focusable).find(this.container),r=this.getFocusableIndex(n,e);return r>-1&&e?{index:r,target:e,focusables:n}:null}getFocusableIndex(e,t){const n=e.indexOf(t);if(-1!==n)return n}onKeyDown(e){this.props.onKeyDown&&this.props.onKeyDown(e);const{getFocusableContext:t}=this,{cycle:n=!0,eventToOffset:r,onNavigate:o=l.noop,stopNavigationEvents:a}=this.props,i=r(e);if(void 0!==i&&a){e.stopImmediatePropagation();const t=e.target.getAttribute("role");eg.includes(t)&&e.preventDefault()}if(!i)return;const c=t(e.target.ownerDocument.activeElement);if(!c)return;const{index:s,focusables:u}=c,d=n?function(e,t,n){const r=e+n;return r<0?t+r:r>=t?r-t:r}(s,u.length,i):s+i;d>=0&&d<u.length&&(u[d].focus(),o(d,u[d]))}render(){const{children:e,...t}=this.props;return Object(s.createElement)("div",Object(c.a)({ref:this.bindContainer},Object(l.omit)(t,["stopNavigationEvents","eventToOffset","onNavigate","onKeyDown","cycle","onlyBrowserTabstops","forwardedRef"])),e)}}const ng=(e,t)=>Object(s.createElement)(tg,Object(c.a)({},e,{forwardedRef:t}));ng.displayName="NavigableContainer";var rg=Object(s.forwardRef)(ng);var og=Object(s.forwardRef)((function(e,t){let{role:n="menu",orientation:r="vertical",...o}=e;return Object(s.createElement)(rg,Object(c.a)({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role:n,"aria-orientation":"presentation"===n?null:r,eventToOffset:e=>{const{keyCode:t}=e;let n=[zu.DOWN],o=[zu.UP];return"horizontal"===r&&(n=[zu.RIGHT],o=[zu.LEFT]),"both"===r&&(n=[zu.RIGHT,zu.DOWN],o=[zu.LEFT,zu.UP]),Object(l.includes)(n,t)?1:Object(l.includes)(o,t)?-1:Object(l.includes)([zu.DOWN,zu.UP,zu.LEFT,zu.RIGHT],t)?0:void 0}},o))}));function ag(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...e,...t};return t.className&&e.className&&(n.className=d()(t.className,e.className)),n}var ig=function(e){const{children:t,className:n,controls:r,icon:o=Jv,label:a,popoverProps:i,toggleProps:u,menuProps:f,disableOpenOnArrowDown:p=!1,text:b,noIcons:h}=e;if(Object(l.isEmpty)(r)&&!Object(l.isFunction)(t))return null;let m;Object(l.isEmpty)(r)||(m=r,Array.isArray(m[0])||(m=[m]));const v=ag({className:"components-dropdown-menu__popover"},i);return Object(s.createElement)(Kv,{className:d()("components-dropdown-menu",n),popoverProps:v,renderToggle:e=>{var t;let{isOpen:n,onToggle:r}=e;const i=ag({className:d()("components-dropdown-menu__toggle",{"is-opened":n})},u);return Object(s.createElement)(ld.a,Object(c.a)({},i,{icon:o,onClick:e=>{r(e),i.onClick&&i.onClick(e)},onKeyDown:e=>{(e=>{p||n||e.keyCode!==zu.DOWN||(e.preventDefault(),r())})(e),i.onKeyDown&&i.onKeyDown(e)},"aria-haspopup":"true","aria-expanded":n,label:a,text:b,showTooltip:null===(t=null==u?void 0:u.showTooltip)||void 0===t||t}),i.children)},renderContent:e=>{const n=ag({"aria-label":a,className:d()("components-dropdown-menu__menu",{"no-icons":h})},f);return Object(s.createElement)(og,Object(c.a)({},n,{role:"menu"}),Object(l.isFunction)(t)?t(e):null,Object(l.flatMap)(m,(t,n)=>t.map((t,r)=>Object(s.createElement)(ld.a,{key:[n,r].join(),onClick:n=>{n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:d()("components-dropdown-menu__menu-item",{"has-separator":n>0&&0===r,"is-active":t.isActive,"is-icon-only":!t.title}),icon:t.icon,label:t.label,"aria-checked":"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.isActive:void 0,role:"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.role:"menuitem",disabled:t.isDisabled},t.title))))}})};var cg=e=>{let{className:t,colorValue:n,...r}=e;return Object(s.createElement)("span",Object(c.a)({className:d()("component-color-indicator",t),style:{background:n}},r))};var sg=Object(os.a)((function(e,t){const{role:n,wrapperClassName:r,...o}=function(e){const{as:t,className:n,onClick:r,role:o="listitem",size:a,...i}=Object(is.a)(e,"Item"),{spacedAround:c,size:l}=Hv(),u=a||l,d=t||(void 0!==r?"button":"div"),f=Object(ps.a)(),p=Object(s.useMemo)(()=>f("button"===d&&Sv,zv[u]||zv.medium,Pv,c&&Iv,n),[d,n,u,c]),b=f(Cv);return{as:d,className:p,onClick:r,wrapperClassName:b,role:o,...i}}(e);return Object(s.createElement)("div",{role:n,className:r},Object(s.createElement)(as.a,Object(c.a)({},o,{ref:t})))}),"Item");const lg=Object(w.a)(cg,{target:"e3doru19"})("&&{display:block;border-radius:50%;border:0;height:",ws(6),";width:",ws(6),";margin-left:0;padding:0;}"),ug=Object(w.a)(Zu,{target:"e3doru18"})(vl,"{background:",L.gray[100],";border-radius:2px;",gl,gl,gl,gl,"{height:",ws(8),";}",xl,xl,xl,"{border-color:transparent;box-shadow:none;}}"),dg=Object(w.a)(sg,{target:"e3doru17"})("padding:3px 0 3px ",ws(3),";height:calc( 40px - ",Ks.borderWidth," );"),fg=Object(w.a)("span",{target:"e3doru16"})("line-height:",ws(8),";margin-left:",ws(2),";"),pg=Object(w.a)($v,{target:"e3doru15"})("text-transform:uppercase;line-height:",ws(6),";font-weight:500;&&&{font-size:11px;margin-bottom:0;}"),bg=Object(w.a)(as.a,{target:"e3doru14"})("height:",ws(6),";display:flex;"),hg=Object(w.a)(ib,{target:"e3doru13"})("margin-bottom:",ws(2),";"),mg=Object(w.a)(as.a,{target:"e3doru12"})({name:"u6wnko",styles:"&&&{.components-button.has-icon{min-width:0;padding:0;}}"}),vg=Object(w.a)(ld.a,{target:"e3doru11"})("&&{color:",L.ui.theme,";}"),gg=Object(w.a)(ld.a,{target:"e3doru10"})("&&{margin-top:",ws(1),";}");function yg(e){let{value:t,onChange:n}=e;return Object(s.createElement)(ug,{label:Object(f.__)("Color name"),hideLabelFromVision:!0,value:t,onChange:n})}function Og(e){let{canOnlyChangeValues:t,color:n,onChange:r,isEditing:o,onStartEditing:a,onRemove:i,onStopEditing:u,slugPrefix:d}=e;const b=Object(p.__experimentalUseFocusOutside)(u);return Object(s.createElement)(dg,Object(c.a)({as:"div",onClick:a},o?b:{}),Object(s.createElement)(ib,{justify:"flex-start"},Object(s.createElement)(ms,null,Object(s.createElement)(lg,{colorValue:n.color})),Object(s.createElement)(ms,null,o&&!t?Object(s.createElement)(yg,{value:n.name,onChange:e=>r({...n,name:e,slug:d+Object(l.kebabCase)(e)})}):Object(s.createElement)(fg,null,n.name)),o&&!t&&Object(s.createElement)(ms,null,Object(s.createElement)(gg,{isSmall:!0,icon:Jp.a,label:Object(f.__)("Remove color"),onClick:i}))),o&&Object(s.createElement)(ud.a,{position:"bottom left",className:"components-color-edit__color-popover"},Object(s.createElement)(kv,{color:n.color,onChange:e=>r({...n,color:e})})))}function jg(e){let{colors:t,onChange:n,editingColor:r,setEditingColor:o,canOnlyChangeValues:a,slugPrefix:i}=e;const c=Object(s.useRef)();return Object(s.useEffect)(()=>{c.current=t},[t]),Object(s.useEffect)(()=>()=>{if(c.current.some(e=>{let{slug:t}=e;return!t})){const e=c.current.filter(e=>{let{slug:t}=e;return t});n(e.length?e:void 0)}},[]),Object(s.createElement)(Wv,{spacing:3},Object(s.createElement)(Vv,{isBordered:!0,isSeparated:!0},t.map((e,c)=>Object(s.createElement)(Og,{canOnlyChangeValues:a,key:c,color:e,onStartEditing:()=>{r!==c&&o(c)},onChange:e=>{n(t.map((t,n)=>n===c?e:t))},onRemove:()=>{o(null);const e=t.filter((e,t)=>t!==c);n(e.length?e:void 0)},isEditing:c===r,onStopEditing:()=>{c===r&&o(null)},slugPrefix:i}))))}const wg=[];function xg(e){let{colors:t=wg,onChange:n,paletteLabel:r,emptyMessage:o,canOnlyChangeValues:a,canReset:i,slugPrefix:c=""}=e;const[l,u]=Object(s.useState)(!1),[d,p]=Object(s.useState)(null),b=l&&d&&t[d]&&!t[d].slug,h=t.length>0;return Object(s.createElement)(mg,null,Object(s.createElement)(hg,null,Object(s.createElement)(pg,null,r),Object(s.createElement)(bg,null,l&&Object(s.createElement)(vg,{isSmall:!0,onClick:()=>{u(!1),p(null)}},Object(f.__)("Done")),!a&&Object(s.createElement)(ld.a,{isSmall:!0,isPressed:b,icon:Qp.a,label:Object(f.__)("Add color"),onClick:()=>{n([...t,{color:"#000",name:"",slug:""}]),u(!0),p(t.length)}}),!l&&Object(s.createElement)(ld.a,{disabled:!h,isSmall:!0,icon:eb.a,label:Object(f.__)("Edit colors"),onClick:()=>{u(!0)}}),l&&(i||!a)&&Object(s.createElement)(ig,{icon:eb.a,label:Object(f.__)("Color options"),toggleProps:{isSmall:!0}},e=>{let{onClose:t}=e;return Object(s.createElement)(s.Fragment,null,Object(s.createElement)(og,{role:"menu"},!a&&Object(s.createElement)(ld.a,{variant:"tertiary",onClick:()=>{p(null),u(!1),n(),t()}},Object(f.__)("Remove all colors")),i&&Object(s.createElement)(ld.a,{variant:"tertiary",onClick:()=>{p(null),n(),t()}},Object(f.__)("Reset colors"))))}))),h&&Object(s.createElement)(s.Fragment,null,l&&Object(s.createElement)(jg,{canOnlyChangeValues:a,colors:t,onChange:n,editingColor:d,setEditingColor:p,slugPrefix:c}),!l&&Object(s.createElement)(Zv,{colors:t,onChange:()=>{},clearable:!1,disableCustomColors:!0})),!h&&o)}var _g=n("bWcr");class Eg extends s.Component{constructor(){super(...arguments),this.onChange=this.onChange.bind(this),this.bindInput=this.bindInput.bind(this)}focus(){this.input.focus()}hasFocus(){return this.input===this.input.ownerDocument.activeElement}bindInput(e){this.input=e}onChange(e){this.props.onChange({value:e.target.value})}render(){const{value:e,isExpanded:t,instanceId:n,selectedSuggestionIndex:r,className:o,onChange:a,...i}=this.props,l=e?e.length+1:0;return Object(s.createElement)("input",Object(c.a)({ref:this.bindInput,id:"components-form-token-input-"+n,type:"text"},i,{value:e||"",onChange:a?this.onChange:void 0,size:l,className:d()(o,"components-form-token-field__input"),autoComplete:"off",role:"combobox","aria-expanded":t,"aria-autocomplete":"list","aria-owns":t?"components-form-token-suggestions-"+n:void 0,"aria-activedescendant":-1!==r?`components-form-token-suggestions-${n}-${r}`:void 0,"aria-describedby":"components-form-token-suggestions-howto-"+n}))}}var kg=Eg,Sg=n("9Do8"),Cg=n.n(Sg);class Pg extends s.Component{constructor(){super(...arguments),this.handleMouseDown=this.handleMouseDown.bind(this),this.bindList=this.bindList.bind(this)}componentDidUpdate(){this.props.selectedIndex>-1&&this.props.scrollIntoView&&this.list.children[this.props.selectedIndex]&&(this.scrollingIntoView=!0,Cg()(this.list.children[this.props.selectedIndex],this.list,{onlyScrollIfNeeded:!0}),this.props.setTimeout(()=>{this.scrollingIntoView=!1},100))}bindList(e){this.list=e}handleHover(e){return()=>{this.scrollingIntoView||this.props.onHover(e)}}handleClick(e){return()=>{this.props.onSelect(e)}}handleMouseDown(e){e.preventDefault()}computeSuggestionMatch(e){const t=this.props.displayTransform(this.props.match||"").toLocaleLowerCase();if(0===t.length)return null;const n=(e=this.props.displayTransform(e)).toLocaleLowerCase().indexOf(t);return{suggestionBeforeMatch:e.substring(0,n),suggestionMatch:e.substring(n,n+t.length),suggestionAfterMatch:e.substring(n+t.length)}}render(){return Object(s.createElement)("ul",{ref:this.bindList,className:"components-form-token-field__suggestions-list",id:"components-form-token-suggestions-"+this.props.instanceId,role:"listbox"},Object(l.map)(this.props.suggestions,(e,t)=>{const n=this.computeSuggestionMatch(e),r=d()("components-form-token-field__suggestion",{"is-selected":t===this.props.selectedIndex});return Object(s.createElement)("li",{id:`components-form-token-suggestions-${this.props.instanceId}-${t}`,role:"option",className:r,key:null!=e&&e.value?e.value:this.props.displayTransform(e),onMouseDown:this.handleMouseDown,onClick:this.handleClick(e),onMouseEnter:this.handleHover(e),"aria-selected":t===this.props.selectedIndex},n?Object(s.createElement)("span",{"aria-label":this.props.displayTransform(e)},n.suggestionBeforeMatch,Object(s.createElement)("strong",{className:"components-form-token-field__suggestion-match"},n.suggestionMatch),n.suggestionAfterMatch):this.props.displayTransform(e))}))}}Pg.defaultProps={match:"",onHover:()=>{},onSelect:()=>{},suggestions:Object.freeze([])};var Tg=Object(p.withSafeTimeout)(Pg),Mg=Object(p.createHigherOrderComponent)(e=>t=>{const[n,r]=Object(s.useState)(),o=Object(s.useCallback)(e=>r(()=>null!=e&&e.handleFocusOutside?e.handleFocusOutside.bind(e):void 0),[]);return Object(s.createElement)("div",Object(p.__experimentalUseFocusOutside)(n),Object(s.createElement)(e,Object(c.a)({ref:o},t)))},"withFocusOutside");const Dg=Mg(class extends s.Component{handleFocusOutside(e){this.props.onFocusOutside(e)}render(){return this.props.children}});var Ig=function e(t){var n;let{value:r,label:o,options:a,onChange:i,onFilterValueChange:c=l.noop,hideLabelFromVision:u,help:b,allowReset:h=!0,className:m,messages:v={selected:Object(f.__)("Item selected.")}}=t;const g=a.find(e=>e.value===r),y=null!==(n=null==g?void 0:g.label)&&void 0!==n?n:"",O=Object(p.useInstanceId)(e),[j,w]=Object(s.useState)(g||null),[x,_]=Object(s.useState)(!1),[E,k]=Object(s.useState)(!1),[S,C]=Object(s.useState)(""),P=Object(s.useRef)(),T=Object(s.useMemo)(()=>{const e=[],t=[],n=Object(l.deburr)(S.toLocaleLowerCase());return a.forEach(r=>{const o=Object(l.deburr)(r.label).toLocaleLowerCase().indexOf(n);0===o?e.push(r):o>0&&t.push(r)}),e.concat(t)},[S,a,r]),M=e=>{i(e.value),Object(cd.speak)(v.selected,"assertive"),w(e),C(""),_(!1)},D=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const t=T.indexOf(j);let n=t+e;n<0?n=T.length-1:n>=T.length&&(n=0),w(T[n]),_(!0)};return Object(s.useEffect)(()=>{const e=T.length>0,t=T.indexOf(j)>0;e&&!t&&w(T[0])},[T,j]),Object(s.useEffect)(()=>{const e=T.length>0;if(x){const t=e?Object(f.sprintf)(Object(f._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",T.length),T.length):Object(f.__)("No results.");Object(cd.speak)(t,"polite")}},[T,x]),Object(s.createElement)(Dg,{onFocusOutside:()=>{_(!1)}},Object(s.createElement)(jd,{className:d()(m,"components-combobox-control"),tabIndex:"-1",label:o,id:"components-form-token-input-"+O,hideLabelFromVision:u,help:b},Object(s.createElement)("div",{className:"components-combobox-control__suggestions-container",tabIndex:"-1",onKeyDown:e=>{let t=!1;if(!e.defaultPrevented){switch(e.keyCode){case zu.ENTER:j&&(M(j),t=!0);break;case zu.UP:D(-1),t=!0;break;case zu.DOWN:D(1),t=!0;break;case zu.ESCAPE:_(!1),w(null),t=!0}t&&e.preventDefault()}}},Object(s.createElement)(Ms,null,Object(s.createElement)(hs,null,Object(s.createElement)(kg,{className:"components-combobox-control__input",instanceId:O,ref:P,value:x?S:y,"aria-label":y?`${y}, ${o}`:null,onFocus:()=>{k(!0),_(!0),c(""),C("")},onBlur:()=>{k(!1)},isExpanded:x,selectedSuggestionIndex:T.indexOf(j),onChange:e=>{const t=e.value;C(t),c(t),E&&_(!0)}})),h&&Object(s.createElement)(ms,null,Object(s.createElement)(ld.a,{className:"components-combobox-control__reset",icon:_g.a,disabled:!r,onClick:()=>{i(null),P.current.input.focus()},label:Object(f.__)("Reset")}))),x&&Object(s.createElement)(Tg,{instanceId:O,match:{label:S},displayTransform:e=>e.label,suggestions:T,selectedIndex:T.indexOf(j),onHover:w,onSelect:M,scrollIntoView:!0}))))};function Rg(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var Ag=n("17x9"),Ng=n.n(Ag);n("cD2C");function Lg(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function Fg(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function zg(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return Fg(n.overflowY,t)||Fg(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function Bg(e,t,n,r,o,a,i,c){return a<e&&i>t||a>e&&i<t?0:a<=e&&c<=n||i>=t&&c>=n?a-e-r:i>t&&c<n||a<e&&c>n?i-t+o:0}var Hg=function(){return(Hg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.create;Object.create;var Vg=0;function Wg(){}function Ug(e,t){e&&function(e,t){var n=window,r=t.scrollMode,o=t.block,a=t.inline,i=t.boundary,c=t.skipOverflowHiddenElements,s="function"==typeof i?i:function(e){return e!==i};if(!Lg(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,u=[],d=e;Lg(d)&&s(d);){if((d=d.parentElement)===l){u.push(d);break}null!=d&&d===document.body&&zg(d)&&!zg(document.documentElement)||null!=d&&zg(d,c)&&u.push(d)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,m=e.getBoundingClientRect(),v=m.height,g=m.width,y=m.top,O=m.right,j=m.bottom,w=m.left,x="start"===o||"nearest"===o?y:"end"===o?j:y+v/2,_="center"===a?w+g/2:"end"===a?O:w,E=[],k=0;k<u.length;k++){var S=u[k],C=S.getBoundingClientRect(),P=C.height,T=C.width,M=C.top,D=C.right,I=C.bottom,R=C.left;if("if-needed"===r&&y>=0&&w>=0&&j<=p&&O<=f&&y>=M&&j<=I&&w>=R&&O<=D)return E;var A=getComputedStyle(S),N=parseInt(A.borderLeftWidth,10),L=parseInt(A.borderTopWidth,10),F=parseInt(A.borderRightWidth,10),z=parseInt(A.borderBottomWidth,10),B=0,H=0,V="offsetWidth"in S?S.offsetWidth-S.clientWidth-N-F:0,W="offsetHeight"in S?S.offsetHeight-S.clientHeight-L-z:0;if(l===S)B="start"===o?x:"end"===o?x-p:"nearest"===o?Bg(h,h+p,p,L,z,h+x,h+x+v,v):x-p/2,H="start"===a?_:"center"===a?_-f/2:"end"===a?_-f:Bg(b,b+f,f,N,F,b+_,b+_+g,g),B=Math.max(0,B+h),H=Math.max(0,H+b);else{B="start"===o?x-M-L:"end"===o?x-I+z+W:"nearest"===o?Bg(M,I,P,L,z+W,x,x+v,v):x-(M+P/2)+W/2,H="start"===a?_-R-N:"center"===a?_-(R+T/2)+V/2:"end"===a?_-D+F+V:Bg(R,D,T,N,F+V,_,_+g,g);var U=S.scrollLeft,K=S.scrollTop;x+=K-(B=Math.max(0,Math.min(K+B,S.scrollHeight-P+W))),_+=U-(H=Math.max(0,Math.min(U+H,S.scrollWidth-T+V)))}E.push({el:S,top:B,left:H})}return E}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))}function Kg(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function Gg(e,t){var n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];r(),n=setTimeout((function(){n=null,e.apply(void 0,a)}),t)}return o.cancel=r,o}function $g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault}))}}function qg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){"function"==typeof t?t(e):t&&(t.current=e)}))}}function Yg(){return String(Vg++)}function Xg(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function Zg(e,t){return Object.keys(e).reduce((function(n,r){return n[r]=Jg(t,r)?t[r]:e[r],n}),{})}function Jg(e,t){return void 0!==e[t]}function Qg(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function ey(e,t,n,r,o){if(void 0===o&&(o=!0),0===n)return-1;var a=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:a+1);var i=t+e;i<0?i=o?a:0:i>a&&(i=o?0:a);var c=ty(e,i,n,r,o);return-1===c?t>=n?-1:t:c}function ty(e,t,n,r,o){var a=r(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(var i=t+1;i<n;i++)if(!r(i).hasAttribute("disabled"))return i}else for(var c=t-1;c>=0;c--)if(!r(c).hasAttribute("disabled"))return c;return o?e>0?ty(1,0,n,r,!1):ty(-1,n-1,n,r,!1):-1}function ny(e,t,n,r){return void 0===r&&(r=!0),t.some((function(t){return t&&(Kg(t,e,n)||r&&Kg(t,n.document.activeElement,n))}))}var ry=Gg((function(e){ay(e).textContent=""}),500);function oy(e,t){var n=ay(t);e&&(n.textContent=e,ry(t))}function ay(e){void 0===e&&(e=document);var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var iy=["isInitialMount","highlightedIndex","items","environment"],cy={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function sy(e,t,n){var r=e.props,o=e.type,a={};Object.keys(t).forEach((function(r){!function(e,t,n,r){var o=t.props,a=t.type,i="on"+by(e)+"Change";o[i]&&void 0!==r[e]&&r[e]!==n[e]&&o[i](Object(c.a)({type:a},r))}(r,e,t,n),n[r]!==t[r]&&(a[r]=n[r])})),r.onStateChange&&Object.keys(a).length&&r.onStateChange(Object(c.a)({type:o},a))}var ly=Gg((function(e,t){oy(e(),t)}),200),uy="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?q.useLayoutEffect:q.useEffect;function dy(e){var t=e.id,n=void 0===t?"downshift-"+Yg():t,r=e.labelId,o=e.menuId,a=e.getItemId,i=e.toggleButtonId,c=e.inputId;return Object(q.useRef)({labelId:r||n+"-label",menuId:o||n+"-menu",getItemId:a||function(e){return n+"-item-"+e},toggleButtonId:i||n+"-toggle-button",inputId:c||n+"-input"}).current}function fy(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function py(e){return/^\S{1}$/.test(e)}function by(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function hy(e){var t=Object(q.useRef)(e);return t.current=e,t}function my(e,t,n){var r=Object(q.useRef)(),o=Object(q.useRef)(),a=Object(q.useCallback)((function(t,n){o.current=n,t=Zg(t,n.props);var r=e(t,n);return n.props.stateReducer(t,Object(c.a)({},n,{changes:r}))}),[e]),i=Object(q.useReducer)(a,t),s=i[0],l=i[1],u=hy(n),d=Object(q.useCallback)((function(e){return l(Object(c.a)({props:u.current},e))}),[u]),f=o.current;return Object(q.useEffect)((function(){f&&r.current&&r.current!==s&&sy(f,Zg(r.current,f.props),s),r.current=s}),[s,n,f]),[s,d]}function vy(e,t,n){var r=my(e,t,n),o=r[0],a=r[1];return[Zg(o,n),a]}var gy={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""},scrollIntoView:Ug,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function yy(e,t,n){void 0===n&&(n=cy);var r="default"+by(t);return r in e?e[r]:n[t]}function Oy(e,t,n){if(void 0===n&&(n=cy),t in e)return e[t];var r="initial"+by(t);return r in e?e[r]:yy(e,t,n)}function jy(e){var t=Oy(e,"selectedItem"),n=Oy(e,"isOpen"),r=Oy(e,"highlightedIndex"),o=Oy(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function wy(e,t,n,r){var o=e.items,a=e.initialHighlightedIndex,i=e.defaultHighlightedIndex,c=t.selectedItem,s=t.highlightedIndex;return 0===o.length?-1:void 0!==a&&s===a?a:void 0!==i?i:c?0===n?o.indexOf(c):ey(n,o.indexOf(c),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function xy(e,t,n,r){var o=Object(q.useRef)({isMouseDown:!1,isTouchMove:!1});return Object(q.useEffect)((function(){var a=function(){o.current.isMouseDown=!0},i=function(a){o.current.isMouseDown=!1,e&&!ny(a.target,t.map((function(e){return e.current})),n)&&r()},c=function(){o.current.isTouchMove=!1},s=function(){o.current.isTouchMove=!0},l=function(a){!e||o.current.isTouchMove||ny(a.target,t.map((function(e){return e.current})),n,!1)||r()};return n.addEventListener("mousedown",a),n.addEventListener("mouseup",i),n.addEventListener("touchstart",c),n.addEventListener("touchmove",s),n.addEventListener("touchend",l),function(){n.removeEventListener("mousedown",a),n.removeEventListener("mouseup",i),n.removeEventListener("touchstart",c),n.removeEventListener("touchmove",s),n.removeEventListener("touchend",l)}}),[e,n]),o}var _y=function(){return Wg};function Ey(e,t,n){var r=n.isInitialMount,o=n.highlightedIndex,a=n.items,i=n.environment,s=Rg(n,iy);Object(q.useEffect)((function(){r||ly((function(){return e(Object(c.a)({highlightedIndex:o,highlightedItem:a[o],resultCount:a.length},s))}),i.document)}),t)}function ky(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,o=e.getItemNodeFromIndex,a=e.menuElement,i=e.scrollIntoView,c=Object(q.useRef)(!0);return uy((function(){t<0||!n||!Object.keys(r.current).length||(!1===c.current?c.current=!0:i(o(t),a))}),[t]),c}var Sy=Wg;function Cy(e,t,n){var r,o=t.type,a=t.props;switch(o){case n.ItemMouseMove:r={highlightedIndex:t.index};break;case n.MenuMouseLeave:r={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:wy(a,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:wy(a,e,0)};break;case n.FunctionCloseMenu:r={isOpen:!1};break;case n.FunctionSetHighlightedIndex:r={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:r={inputValue:t.inputValue};break;case n.FunctionReset:r={highlightedIndex:yy(a,"highlightedIndex"),isOpen:yy(a,"isOpen"),selectedItem:yy(a,"selectedItem"),inputValue:yy(a,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Object(c.a)({},e,r)}function Py(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,o=e.itemToString,a=e.getItemNodeFromIndex,i=t.toLowerCase(),c=0;c<r.length;c++){var s=(c+n+1)%r.length,l=r[s];if(void 0!==l&&o(l).toLowerCase().startsWith(i)){var u=a(s);if(!(null==u?void 0:u.hasAttribute("disabled")))return s}}return n}Ng.a.array.isRequired,Ng.a.func,Ng.a.func,Ng.a.func,Ng.a.bool,Ng.a.number,Ng.a.number,Ng.a.number,Ng.a.bool,Ng.a.bool,Ng.a.bool,Ng.a.any,Ng.a.any,Ng.a.any,Ng.a.string,Ng.a.string,Ng.a.string,Ng.a.func,Ng.a.string,Ng.a.func,Ng.a.func,Ng.a.func,Ng.a.func,Ng.a.func,Ng.a.shape({addEventListener:Ng.a.func,removeEventListener:Ng.a.func,document:Ng.a.shape({getElementById:Ng.a.func,activeElement:Ng.a.any,body:Ng.a.any})});var Ty=Hg(Hg({},gy),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.":"":"No results are available.":""}}),My=Wg;var Dy=Object.freeze({__proto__:null,MenuKeyDownArrowDown:0,MenuKeyDownArrowUp:1,MenuKeyDownEscape:2,MenuKeyDownHome:3,MenuKeyDownEnd:4,MenuKeyDownEnter:5,MenuKeyDownSpaceButton:6,MenuKeyDownCharacter:7,MenuBlur:8,MenuMouseLeave:9,ItemMouseMove:10,ItemClick:11,ToggleButtonClick:12,ToggleButtonKeyDownArrowDown:13,ToggleButtonKeyDownArrowUp:14,ToggleButtonKeyDownCharacter:15,FunctionToggleMenu:16,FunctionOpenMenu:17,FunctionCloseMenu:18,FunctionSetHighlightedIndex:19,FunctionSelectItem:20,FunctionSetInputValue:21,FunctionReset:22});function Iy(e,t){var n,r=t.type,o=t.props,a=t.shiftKey;switch(r){case 11:n={isOpen:yy(o,"isOpen"),highlightedIndex:yy(o,"highlightedIndex"),selectedItem:o.items[t.index]};break;case 15:var i=t.key,s=""+e.inputValue+i,l=Py({keysSoFar:s,highlightedIndex:e.selectedItem?o.items.indexOf(e.selectedItem):-1,items:o.items,itemToString:o.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});n=Object(c.a)({inputValue:s},l>=0&&{selectedItem:o.items[l]});break;case 13:n={highlightedIndex:wy(o,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case 14:n={highlightedIndex:wy(o,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case 5:case 6:n=Object(c.a)({isOpen:yy(o,"isOpen"),highlightedIndex:yy(o,"highlightedIndex")},e.highlightedIndex>=0&&{selectedItem:o.items[e.highlightedIndex]});break;case 3:n={highlightedIndex:ty(1,0,o.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:ty(-1,o.items.length-1,o.items.length,t.getItemNodeFromIndex,!1)};break;case 2:case 8:n={isOpen:!1,highlightedIndex:-1};break;case 7:var u=t.key,d=""+e.inputValue+u,f=Py({keysSoFar:d,highlightedIndex:e.highlightedIndex,items:o.items,itemToString:o.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});n=Object(c.a)({inputValue:d},f>=0&&{highlightedIndex:f});break;case 0:n={highlightedIndex:ey(a?5:1,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,o.circularNavigation)};break;case 1:n={highlightedIndex:ey(a?-5:-1,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,o.circularNavigation)};break;case 20:n={selectedItem:t.selectedItem};break;default:return Cy(e,t,Dy)}return Object(c.a)({},e,n)}var Ry=["onMouseLeave","refKey","onKeyDown","onBlur","ref"],Ay=["onClick","onKeyDown","refKey","ref"],Ny=["item","index","onMouseMove","onClick","refKey","ref"];function Ly(e){void 0===e&&(e={}),My(e,Ly);var t=Object(c.a)({},Ty,e),n=t.items,r=t.scrollIntoView,o=t.environment,a=t.initialIsOpen,i=t.defaultIsOpen,s=t.itemToString,l=t.getA11ySelectionMessage,u=t.getA11yStatusMessage,d=vy(Iy,jy(t),t),f=d[0],p=d[1],b=f.isOpen,h=f.highlightedIndex,m=f.selectedItem,v=f.inputValue,g=Object(q.useRef)(null),y=Object(q.useRef)(null),O=Object(q.useRef)({}),j=Object(q.useRef)(!0),w=Object(q.useRef)(null),x=dy(t),_=Object(q.useRef)(),E=Object(q.useRef)(!0),k=hy({state:f,props:t}),S=Object(q.useCallback)((function(e){return O.current[x.getItemId(e)]}),[x]);Ey(u,[b,h,v,n],Object(c.a)({isInitialMount:E.current,previousResultCount:_.current,items:n,environment:o,itemToString:s},f)),Ey(l,[m],Object(c.a)({isInitialMount:E.current,previousResultCount:_.current,items:n,environment:o,itemToString:s},f));var C=ky({menuElement:y.current,highlightedIndex:h,isOpen:b,itemRefs:O,scrollIntoView:r,getItemNodeFromIndex:S});Object(q.useEffect)((function(){return w.current=Gg((function(e){e({type:21,inputValue:""})}),500),function(){w.current.cancel()}}),[]),Object(q.useEffect)((function(){v&&w.current(p)}),[p,v]),Sy({isInitialMount:E.current,props:t,state:f}),Object(q.useEffect)((function(){E.current?(a||i||b)&&y.current&&y.current.focus():b?y.current&&y.current.focus():o.document.activeElement===y.current&&g.current&&(j.current=!1,g.current.focus())}),[b]),Object(q.useEffect)((function(){E.current||(_.current=n.length)}));var P=xy(b,[y,g],o,(function(){p({type:8})})),T=_y();Object(q.useEffect)((function(){E.current=!1}),[]),Object(q.useEffect)((function(){b||(O.current={})}),[b]);var M=Object(q.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),p({type:13,getItemNodeFromIndex:S,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),p({type:14,getItemNodeFromIndex:S,shiftKey:e.shiftKey})}}}),[p,S]),D=Object(q.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),p({type:0,getItemNodeFromIndex:S,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),p({type:1,getItemNodeFromIndex:S,shiftKey:e.shiftKey})},Home:function(e){e.preventDefault(),p({type:3,getItemNodeFromIndex:S})},End:function(e){e.preventDefault(),p({type:4,getItemNodeFromIndex:S})},Escape:function(){p({type:2})},Enter:function(e){e.preventDefault(),p({type:5})}," ":function(e){e.preventDefault(),p({type:6})}}}),[p,S]),I=Object(q.useCallback)((function(){p({type:16})}),[p]),R=Object(q.useCallback)((function(){p({type:18})}),[p]),A=Object(q.useCallback)((function(){p({type:17})}),[p]),N=Object(q.useCallback)((function(e){p({type:19,highlightedIndex:e})}),[p]),L=Object(q.useCallback)((function(e){p({type:20,selectedItem:e})}),[p]),F=Object(q.useCallback)((function(){p({type:22})}),[p]),z=Object(q.useCallback)((function(e){p({type:21,inputValue:e})}),[p]),B=Object(q.useCallback)((function(e){return Object(c.a)({id:x.labelId,htmlFor:x.toggleButtonId},e)}),[x]),H=Object(q.useCallback)((function(e,t){var n,r=void 0===e?{}:e,o=r.onMouseLeave,a=r.refKey,i=void 0===a?"ref":a,s=r.onKeyDown,l=r.onBlur,u=r.ref,d=Rg(r,Ry),f=(void 0===t?{}:t).suppressRefError,b=void 0!==f&&f,h=k.current.state;return T("getMenuProps",b,i,y),Object(c.a)(((n={})[i]=qg(u,(function(e){y.current=e})),n.id=x.menuId,n.role="listbox",n["aria-labelledby"]=x.labelId,n.tabIndex=-1,n),h.isOpen&&h.highlightedIndex>-1&&{"aria-activedescendant":x.getItemId(h.highlightedIndex)},{onMouseLeave:$g(o,(function(){p({type:9})})),onKeyDown:$g(s,(function(e){var t=Qg(e);t&&D[t]?D[t](e):py(t)&&p({type:7,key:t,getItemNodeFromIndex:S})})),onBlur:$g(l,(function(){!1!==j.current?!P.current.isMouseDown&&p({type:8}):j.current=!0}))},d)}),[p,k,D,P,T,x,S]);return{getToggleButtonProps:Object(q.useCallback)((function(e,t){var n,r=void 0===e?{}:e,o=r.onClick,a=r.onKeyDown,i=r.refKey,s=void 0===i?"ref":i,l=r.ref,u=Rg(r,Ay),d=(void 0===t?{}:t).suppressRefError,f=void 0!==d&&d,b=Object(c.a)(((n={})[s]=qg(l,(function(e){g.current=e})),n.id=x.toggleButtonId,n["aria-haspopup"]="listbox",n["aria-expanded"]=k.current.state.isOpen,n["aria-labelledby"]=x.labelId+" "+x.toggleButtonId,n),u);return u.disabled||(b.onClick=$g(o,(function(){p({type:12})})),b.onKeyDown=$g(a,(function(e){var t=Qg(e);t&&M[t]?M[t](e):py(t)&&p({type:15,key:t,getItemNodeFromIndex:S})}))),T("getToggleButtonProps",f,s,g),b}),[p,k,M,T,x,S]),getLabelProps:B,getMenuProps:H,getItemProps:Object(q.useCallback)((function(e){var t,n=void 0===e?{}:e,r=n.item,o=n.index,a=n.onMouseMove,i=n.onClick,s=n.refKey,l=void 0===s?"ref":s,u=n.ref,d=Rg(n,Ny),f=k.current,b=f.state,h=f.props,m=fy(o,r,h.items);if(m<0)throw new Error("Pass either item or item index in getItemProps!");var v=Object(c.a)(((t={role:"option","aria-selected":""+(m===b.highlightedIndex),id:x.getItemId(m)})[l]=qg(u,(function(e){e&&(O.current[x.getItemId(m)]=e)})),t),d);return d.disabled||(v.onMouseMove=$g(a,(function(){o!==b.highlightedIndex&&(C.current=!1,p({type:10,index:o}))})),v.onClick=$g(i,(function(){p({type:11,index:o})}))),v}),[p,k,C,x]),toggleMenu:I,openMenu:A,closeMenu:R,setHighlightedIndex:N,selectItem:L,reset:F,setInputValue:z,highlightedIndex:h,isOpen:b,selectedItem:m,inputValue:v}}Ly.stateChangeTypes=Dy;Ng.a.array.isRequired,Ng.a.func,Ng.a.func,Ng.a.func,Ng.a.bool,Ng.a.number,Ng.a.number,Ng.a.number,Ng.a.bool,Ng.a.bool,Ng.a.bool,Ng.a.any,Ng.a.any,Ng.a.any,Ng.a.string,Ng.a.string,Ng.a.string,Ng.a.string,Ng.a.string,Ng.a.string,Ng.a.func,Ng.a.string,Ng.a.string,Ng.a.func,Ng.a.func,Ng.a.func,Ng.a.func,Ng.a.func,Ng.a.func,Ng.a.shape({addEventListener:Ng.a.func,removeEventListener:Ng.a.func,document:Ng.a.shape({getElementById:Ng.a.func,activeElement:Ng.a.any,body:Ng.a.any})});Object(c.a)({},gy,{getA11yStatusMessage:Xg,circularNavigation:!0});Ng.a.array,Ng.a.array,Ng.a.array,Ng.a.func,Ng.a.func,Ng.a.func,Ng.a.number,Ng.a.number,Ng.a.number,Ng.a.func,Ng.a.func,Ng.a.string,Ng.a.string,Ng.a.shape({addEventListener:Ng.a.func,removeEventListener:Ng.a.func,document:Ng.a.shape({getElementById:Ng.a.func,activeElement:Ng.a.any,body:Ng.a.any})});const Fy=e=>null==e?void 0:e.name,zy=(e,t)=>{let{selectedItem:n}=e,{type:r,changes:o,props:{items:a}}=t;switch(r){case Ly.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:a[n?Math.min(a.indexOf(n)+1,a.length-1):0]};case Ly.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:a[n?Math.max(a.indexOf(n)-1,0):a.length-1]};default:return o}};function By(e){var t;let{className:n,hideLabelFromVision:r,label:o,describedBy:a,options:i,onChange:l,value:u}=e;const{getLabelProps:p,getToggleButtonProps:b,getMenuProps:h,getItemProps:v,isOpen:g,highlightedIndex:y,selectedItem:O}=Ly({initialSelectedItem:i[0],items:i,itemToString:Fy,onSelectedItemChange:l,...null!=u?{selectedItem:u}:void 0,stateReducer:zy});const j=h({className:"components-custom-select-control__menu","aria-hidden":!g});return null!==(t=j["aria-activedescendant"])&&void 0!==t&&t.startsWith("downshift-null")&&delete j["aria-activedescendant"],Object(s.createElement)("div",{className:d()("components-custom-select-control",n)},r?Object(s.createElement)(m.a,Object(c.a)({as:"label"},p()),o):Object(s.createElement)("label",p({className:"components-custom-select-control__label"}),o),Object(s.createElement)(ld.a,b({"aria-label":o,"aria-labelledby":void 0,className:"components-custom-select-control__button",isSmall:!0,describedBy:a||(O?Object(f.sprintf)(Object(f.__)("Currently selected: %s"),O.name):Object(f.__)("No selection"))}),Fy(O),Object(s.createElement)(qp.a,{icon:cb.a,className:"components-custom-select-control__button-icon"})),Object(s.createElement)("ul",j,g&&i.map((e,t)=>Object(s.createElement)("li",v({item:e,index:t,key:e.key,className:d()(e.className,"components-custom-select-control__item",{"is-highlighted":t===y,"has-hint":!!e.__experimentalHint}),style:e.style}),e.name,e.__experimentalHint&&Object(s.createElement)("span",{className:"components-custom-select-control__item-hint"},e.__experimentalHint),e===O&&Object(s.createElement)(qp.a,{icon:Yp.a,className:"components-custom-select-control__item-icon"})))))}var Hy=n("vUUf"),Vy=(n("GG7f"),n("wy2R")),Wy=n.n(Vy),Uy=n("Xtko"),Ky=n.n(Uy);function Gy(e){let{day:t,events:n=[]}=e;const r=Object(s.useRef)();return Object(s.useEffect)(()=>{var e;if(null==r||null===(e=r.current)||void 0===e||!e.parentNode)return;const{parentNode:o}=r.current,a=Wy()(t).format("dddd, LL");if(!n.length)return void o.setAttribute("aria-label",a);const i=Object(f.sprintf)(Object(f._n)("%1$s. There is %2$d event.","%1$s. There are %2$d events.",n.length),a,n.length);o.setAttribute("aria-label",i)},[n.length]),Object(s.createElement)("div",{ref:r,className:d()("components-datetime__date__day",{"has-events":null==n?void 0:n.length})},t.format("D"))}class $y extends s.Component{constructor(){super(...arguments),this.onChangeMoment=this.onChangeMoment.bind(this),this.nodeRef=Object(s.createRef)(),this.onMonthPreviewedHandler=this.onMonthPreviewedHandler.bind(this)}onMonthPreviewedHandler(e){var t,n;null===(t=(n=this.props).onMonthPreviewed)||void 0===t||t.call(n,e.toISOString()),this.keepFocusInside()}keepFocusInside(){if(!this.nodeRef.current)return;const{ownerDocument:e}=this.nodeRef.current,{activeElement:t}=e;if(!t||!this.nodeRef.current.contains(e.activeElement)){const e=this.nodeRef.current.querySelector(".DayPicker_focusRegion");if(!e)return;e.focus()}}onChangeMoment(e){const{currentDate:t,onChange:n}=this.props,r=t?Wy()(t):Wy()(),o={hours:r.hours(),minutes:r.minutes(),seconds:0};n(e.set(o).format("YYYY-MM-DDTHH:mm:ss")),this.keepFocusInside()}getMomentDate(e){return null===e?null:e?Wy()(e):Wy()()}getEventsPerDay(e){var t;return null!==(t=this.props.events)&&void 0!==t&&t.length?this.props.events.filter(t=>e.isSame(t.date,"day")):[]}render(){const{currentDate:e,isInvalidDate:t}=this.props,n=this.getMomentDate(e);return Object(s.createElement)("div",{className:"components-datetime__date",ref:this.nodeRef},Object(s.createElement)(Ky.a,{date:n,daySize:30,focused:!0,hideKeyboardShortcutsPanel:!0,key:"datepicker-controller-"+(n?n.format("MM-YYYY"):"null"),noBorder:!0,numberOfMonths:1,onDateChange:this.onChangeMoment,transitionDuration:0,weekDayFormat:"ddd",dayAriaLabelFormat:"dddd, LL",isRTL:Object(f.isRTL)(),isOutsideRange:e=>t&&t(e.toDate()),onPrevMonthClick:this.onMonthPreviewedHandler,onNextMonthClick:this.onMonthPreviewedHandler,renderDayContents:e=>Object(s.createElement)(Gy,{day:e,events:this.getEventsPerDay(e)})}))}}var qy=$y,Yy=n("FqII");var Xy=()=>{const{timezone:e}=Object(Yy.__experimentalGetSettings)(),t=(new Date).getTimezoneOffset()/60*-1;if(Number(e.offset)===t)return null;const n=e.offset>=0?"+":"",r=""!==e.abbr&&isNaN(e.abbr)?e.abbr:`UTC${n}${e.offset}`,o="UTC"===e.string?Object(f.__)("Coordinated Universal Time"):`(${r}) ${e.string.replace("_"," ")}`;return Object(s.createElement)(h.a,{position:"top center",text:o},Object(s.createElement)("div",{className:"components-datetime__timezone"},r))};function Zy(e){let{as:t,value:n,onUpdate:r,...o}=e;return Object(s.createElement)(t||"input",{key:n,defaultValue:n,onBlur:function(e){const{target:t}=e;if(n===t.value)return;const a=parseInt(t.value,10);!Object(l.isInteger)(a)||void 0!==o.max&&a>o.max||void 0!==o.min&&a<o.min?t.value=n:r(t.name,a)},...o})}var Jy=function(e){let{is12Hour:t,currentTime:n,onChange:r}=e;const[o,a]=Object(s.useState)(()=>Wy()(n).startOf("minutes"));Object(s.useEffect)(()=>{a(n?Wy()(n).startOf("minutes"):Wy()())},[n]);const{day:i,month:c,year:l,minutes:u,hours:p,am:b}=Object(s.useMemo)(()=>({day:o.format("DD"),month:o.format("MM"),year:o.format("YYYY"),minutes:o.format("mm"),hours:o.format(t?"hh":"HH"),am:o.format("H")<=11?"AM":"PM"}),[o,t]);function h(e){a(e),r(e.format("YYYY-MM-DDTHH:mm:ss"))}function m(e,t){h(o.clone()[e](t))}function v(e){return()=>{if(b===e)return;const t=parseInt(p,10);h(o.clone().hours("PM"===e?(t%12+12)%24:t%12))}}const g=Object(s.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-day"},Object(s.createElement)(Zy,{"aria-label":Object(f.__)("Day"),className:"components-datetime__time-field-day-input",type:"number",name:"date",value:i,step:1,min:1,max:31,onUpdate:m})),y=Object(s.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-month"},Object(s.createElement)(Zy,{as:"select","aria-label":Object(f.__)("Month"),className:"components-datetime__time-field-month-select",name:"month",value:c,onUpdate:(e,t)=>m(e,t-1)},Object(s.createElement)("option",{value:"01"},Object(f.__)("January")),Object(s.createElement)("option",{value:"02"},Object(f.__)("February")),Object(s.createElement)("option",{value:"03"},Object(f.__)("March")),Object(s.createElement)("option",{value:"04"},Object(f.__)("April")),Object(s.createElement)("option",{value:"05"},Object(f.__)("May")),Object(s.createElement)("option",{value:"06"},Object(f.__)("June")),Object(s.createElement)("option",{value:"07"},Object(f.__)("July")),Object(s.createElement)("option",{value:"08"},Object(f.__)("August")),Object(s.createElement)("option",{value:"09"},Object(f.__)("September")),Object(s.createElement)("option",{value:"10"},Object(f.__)("October")),Object(s.createElement)("option",{value:"11"},Object(f.__)("November")),Object(s.createElement)("option",{value:"12"},Object(f.__)("December")))),O=t?Object(s.createElement)(s.Fragment,null,g,y):Object(s.createElement)(s.Fragment,null,y,g);return Object(s.createElement)("div",{className:d()("components-datetime__time")},Object(s.createElement)("fieldset",null,Object(s.createElement)("legend",{className:"components-datetime__time-legend invisible"},Object(f.__)("Date")),Object(s.createElement)("div",{className:"components-datetime__time-wrapper"},O,Object(s.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-year"},Object(s.createElement)(Zy,{"aria-label":Object(f.__)("Year"),className:"components-datetime__time-field-year-input",type:"number",name:"year",step:1,min:0,max:9999,value:l,onUpdate:m})))),Object(s.createElement)("fieldset",null,Object(s.createElement)("legend",{className:"components-datetime__time-legend invisible"},Object(f.__)("Time")),Object(s.createElement)("div",{className:"components-datetime__time-wrapper"},Object(s.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-time"},Object(s.createElement)(Zy,{"aria-label":Object(f.__)("Hours"),className:"components-datetime__time-field-hours-input",type:"number",name:"hours",step:1,min:t?1:0,max:t?12:23,value:p,onUpdate:m}),Object(s.createElement)("span",{className:"components-datetime__time-separator","aria-hidden":"true"},":"),Object(s.createElement)(Zy,{"aria-label":Object(f.__)("Minutes"),className:"components-datetime__time-field-minutes-input",type:"number",name:"minutes",step:1,min:0,max:59,value:u,onUpdate:m})),t&&Object(s.createElement)(ep,{className:"components-datetime__time-field components-datetime__time-field-am-pm"},Object(s.createElement)(ld.a,{variant:"AM"===b?"primary":"secondary",onClick:v("AM"),className:"components-datetime__time-am-button"},Object(f.__)("AM")),Object(s.createElement)(ld.a,{variant:"PM"===b?"primary":"secondary",onClick:v("PM"),className:"components-datetime__time-pm-button"},Object(f.__)("PM"))),Object(s.createElement)(Xy,null))))};var Qy=Object(s.forwardRef)((function(e,t){let{currentDate:n,is12Hour:r,isInvalidDate:o,onMonthPreviewed:a=l.noop,onChange:i,events:c}=e;const[u,d]=Object(s.useState)(!1);return Object(s.createElement)("div",{ref:t,className:"components-datetime"},!u&&Object(s.createElement)(s.Fragment,null,Object(s.createElement)(Jy,{currentTime:n,onChange:i,is12Hour:r}),Object(s.createElement)(qy,{currentDate:n,onChange:i,isInvalidDate:o,events:c,onMonthPreviewed:a})),u&&Object(s.createElement)(s.Fragment,null,Object(s.createElement)("div",{className:"components-datetime__calendar-help"},Object(s.createElement)("h4",null,Object(f.__)("Click to Select")),Object(s.createElement)("ul",null,Object(s.createElement)("li",null,Object(f.__)("Click the right or left arrows to select other months in the past or the future.")),Object(s.createElement)("li",null,Object(f.__)("Click the desired day to select it."))),Object(s.createElement)("h4",null,Object(f.__)("Navigating with a keyboard")),Object(s.createElement)("ul",null,Object(s.createElement)("li",null,Object(s.createElement)("abbr",{"aria-label":Object(f._x)("Enter","keyboard button")},"↵")," ",Object(s.createElement)("span",null,Object(f.__)("Select the date in focus."))),Object(s.createElement)("li",null,Object(s.createElement)("abbr",{"aria-label":Object(f.__)("Left and Right Arrows")},"←/→")," ",Object(f.__)("Move backward (left) or forward (right) by one day.")),Object(s.createElement)("li",null,Object(s.createElement)("abbr",{"aria-label":Object(f.__)("Up and Down Arrows")},"↑/↓")," ",Object(f.__)("Move backward (up) or forward (down) by one week.")),Object(s.createElement)("li",null,Object(s.createElement)("abbr",{"aria-label":Object(f.__)("Page Up and Page Down")},Object(f.__)("PgUp/PgDn"))," ",Object(f.__)("Move backward (PgUp) or forward (PgDn) by one month.")),Object(s.createElement)("li",null,Object(s.createElement)("abbr",{"aria-label":Object(f.__)("Home and End")},Object(f.__)("Home/End"))," ",Object(f.__)("Go to the first (Home) or last (End) day of a week."))))),Object(s.createElement)("div",{className:"components-datetime__buttons"},!u&&n&&Object(s.createElement)(ld.a,{className:"components-datetime__date-reset-button",variant:"link",onClick:()=>i(null)},Object(f.__)("Reset")),Object(s.createElement)(ld.a,{className:"components-datetime__date-help-toggle",variant:"link",onClick:function(){d(!u)}},u?Object(f.__)("Close"):Object(f.__)("Calendar Help"))))}));var eO=[{name:Object(f._x)("None","Size of a UI element"),slug:"none"},{name:Object(f._x)("Small","Size of a UI element"),slug:"small"},{name:Object(f._x)("Medium","Size of a UI element"),slug:"medium"},{name:Object(f._x)("Large","Size of a UI element"),slug:"large"},{name:Object(f._x)("Extra Large","Size of a UI element"),slug:"xlarge"}];var tO=function(e){const{label:t,value:n,sizes:r=eO,icon:o,onChange:a,className:i=""}=e,c=Object(s.createElement)(s.Fragment,null,o&&Object(s.createElement)(fb.a,{icon:o}),t);return Object(s.createElement)(db,{className:d()(i,"block-editor-dimension-control"),label:c,hideLabelFromVision:!1,value:n,onChange:e=>{const t=((e,t)=>e.find(e=>t===e.slug))(r,e);t&&n!==t.slug?Object(l.isFunction)(a)&&a(t.slug):a(void 0)},options:(e=>{const t=e.map(e=>{let{name:t,slug:n}=e;return{label:t,value:n}});return[{label:Object(f.__)("Default"),value:""}].concat(t)})(r)})};const nO=Object(w.a)("div",{target:"e1ac3xxk0"})({name:"u2jump",styles:"position:relative;pointer-events:none;&::after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;}*{pointer-events:none;}"}),rO=Object(s.createContext)(!1),{Consumer:oO,Provider:aO}=rO,iO=["BUTTON","FIELDSET","INPUT","OPTGROUP","OPTION","SELECT","TEXTAREA"];function cO(e){let{className:t,children:n,isDisabled:r=!0,...o}=e;const a=Object(s.useRef)(null),i=()=>{a.current&&Qv.focus.focusable.find(a.current).forEach(e=>{Object(l.includes)(iO,e.nodeName)&&e.setAttribute("disabled",""),"A"===e.nodeName&&e.setAttribute("tabindex","-1");const t=e.getAttribute("tabindex");null!==t&&"-1"!==t&&e.removeAttribute("tabindex"),e.hasAttribute("contenteditable")&&e.setAttribute("contenteditable","false")})},u=Object(s.useCallback)(Object(l.debounce)(i,void 0,{leading:!0}),[]);return Object(s.useLayoutEffect)(()=>{if(!r)return;let e;return i(),a.current&&(e=new window.MutationObserver(u),e.observe(a.current,{childList:!0,attributes:!0,subtree:!0})),()=>{e&&e.disconnect(),u.cancel()}},[]),r?Object(s.createElement)(aO,{value:!0},Object(s.createElement)(nO,Object(c.a)({ref:a,className:d()(t,"components-disabled")},o),n)):Object(s.createElement)(aO,{value:!1},n)}cO.Context=rO,cO.Consumer=oO;var sO=cO;const lO="is-dragging-components-draggable";function uO(e){let{children:t,onDragStart:n,onDragOver:r,onDragEnd:o,cloneClassname:a,elementId:i,transferData:c,__experimentalTransferDataType:u="text",__experimentalDragComponent:d}=e;const f=Object(s.useRef)(null),p=Object(s.useRef)(()=>{});return Object(s.useEffect)(()=>()=>{p.current()},[]),Object(s.createElement)(s.Fragment,null,t({onDraggableStart:function(e){const{ownerDocument:t}=e.target;e.dataTransfer.setData(u,JSON.stringify(c));const o=t.createElement("div");o.style.top=0,o.style.left=0;const s=t.createElement("div");"function"==typeof e.dataTransfer.setDragImage&&(s.classList.add("components-draggable__invisible-drag-image"),t.body.appendChild(s),e.dataTransfer.setDragImage(s,0,0)),o.classList.add("components-draggable__clone"),a&&o.classList.add(a);let d=0,b=0;if(f.current){d=e.clientX,b=e.clientY,o.style.transform=`translate( ${d}px, ${b}px )`;const n=t.createElement("div");n.innerHTML=f.current.innerHTML,o.appendChild(n),t.body.appendChild(o)}else{const e=t.getElementById(i),n=e.getBoundingClientRect(),r=e.parentNode,a=parseInt(n.top,10),c=parseInt(n.left,10);o.style.width=n.width+0+"px";const s=e.cloneNode(!0);s.id="clone-"+i,d=c-0,b=a-0,o.style.transform=`translate( ${d}px, ${b}px )`,Array.from(s.querySelectorAll("iframe")).forEach(e=>e.parentNode.removeChild(e)),o.appendChild(s),r.appendChild(o)}let h=e.clientX,m=e.clientY;const v=Object(l.throttle)((function(e){if(h===e.clientX&&m===e.clientY)return;const t=d+e.clientX-h,n=b+e.clientY-m;o.style.transform=`translate( ${t}px, ${n}px )`,h=e.clientX,m=e.clientY,d=t,b=n,r&&r(e)}),16);let g;t.addEventListener("dragover",v),t.body.classList.add(lO),e.persist(),n&&(g=setTimeout(()=>n(e))),p.current=()=>{o&&o.parentNode&&o.parentNode.removeChild(o),s&&s.parentNode&&s.parentNode.removeChild(s),t.body.classList.remove(lO),t.removeEventListener("dragover",v),clearTimeout(g)}},onDraggableEnd:function(e){e.preventDefault(),p.current(),o&&o(e)}}),d&&Object(s.createElement)("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:f},d))}var dO=n("NTP4");var fO=0;function pO(){var e=fO;return fO++,e}var bO=function(e){var t=e.children,n=e.initial,r=e.isPresent,o=e.onExitComplete,a=e.custom,i=e.presenceAffectsLayout,c=gt(hO),s=gt(pO),l=Object(q.useMemo)((function(){return{id:s,initial:n,isPresent:r,custom:a,onExitComplete:function(e){c.set(e,!0);var t=!0;c.forEach((function(e){e||(t=!1)})),t&&(null==o||o())},register:function(e){return c.set(e,!1),function(){return c.delete(e)}}}}),i?void 0:[r]);return Object(q.useMemo)((function(){c.forEach((function(e,t){return c.set(t,!1)}))}),[r]),q.useEffect((function(){!r&&!c.size&&(null==o||o())}),[r]),q.createElement(vt.Provider,{value:l},t)};function hO(){return new Map}function mO(e){return e.key||""}var vO=function(e){var t=e.children,n=e.custom,r=e.initial,o=void 0===r||r,a=e.onExitComplete,i=e.exitBeforeEnter,c=e.presenceAffectsLayout,s=void 0===c||c,l=function(){var e=Object(q.useRef)(!1),t=st(Object(q.useState)(0),2),n=t[0],r=t[1];return jr((function(){return e.current=!0})),Object(q.useCallback)((function(){!e.current&&r(n+1)}),[n])}(),u=Object(q.useContext)(jc);xc(u)&&(l=u.forceUpdate);var d=Object(q.useRef)(!0),f=function(e){var t=[];return q.Children.forEach(e,(function(e){Object(q.isValidElement)(e)&&t.push(e)})),t}(t),p=Object(q.useRef)(f),b=Object(q.useRef)(new Map).current,h=Object(q.useRef)(new Set).current;if(function(e,t){e.forEach((function(e){var n=mO(e);t.set(n,e)}))}(f,b),d.current)return d.current=!1,q.createElement(q.Fragment,null,f.map((function(e){return q.createElement(bO,{key:mO(e),isPresent:!0,initial:!!o&&void 0,presenceAffectsLayout:s},e)})));for(var m=lt([],st(f)),v=p.current.map(mO),g=f.map(mO),y=v.length,O=0;O<y;O++){var j=v[O];-1===g.indexOf(j)?h.add(j):h.delete(j)}return i&&h.size&&(m=[]),h.forEach((function(e){if(-1===g.indexOf(e)){var t=b.get(e);if(t){var r=v.indexOf(e);m.splice(r,0,q.createElement(bO,{key:mO(t),isPresent:!1,onExitComplete:function(){b.delete(e),h.delete(e);var t=p.current.findIndex((function(t){return t.key===e}));p.current.splice(t,1),h.size||(p.current=f,l(),a&&a())},custom:n,presenceAffectsLayout:s},t))}}})),m=m.map((function(e){var t=e.key;return h.has(t)?e:q.createElement(bO,{key:mO(e),isPresent:!0,presenceAffectsLayout:s},e)})),p.current=m,q.createElement(q.Fragment,null,h.size?m:m.map((function(e){return Object(q.cloneElement)(e)})))};function gO(e){let{className:t,label:n,onFilesDrop:r,onHTMLDrop:o,onDrop:a}=e;const[i,c]=Object(s.useState)(),[u,b]=Object(s.useState)(),[h,m]=Object(s.useState)(),v=Object(p.__experimentalUseDropZone)({onDrop(e){const t=Object(Qv.getFilesFromDataTransfer)(e.dataTransfer),n=e.dataTransfer.getData("text/html");t.length&&r?r(t):n&&o?o(n):a&&a(e)},onDragStart(e){c(!0);let t="default";Object(l.includes)(e.dataTransfer.types,"Files")||Object(Qv.getFilesFromDataTransfer)(e.dataTransfer).length>0?t="file":Object(l.includes)(e.dataTransfer.types,"text/html")&&(t="html"),m(t)},onDragEnd(){c(!1),m()},onDragEnter(){b(!0)},onDragLeave(){b(!1)}}),g=Object(p.useReducedMotion)();let y;const O={hidden:{scaleY:0,opacity:0},show:{scaleY:1,opacity:1,transition:{type:"tween",duration:.2,delay:.1,delayChildren:.2}},exit:{scaleY:1,opacity:0,transition:{duration:.3,delayChildren:0}}},j={hidden:{opacity:0,scale:.75},show:{opacity:1,scale:1},exit:{opacity:0,scale:.9}};u&&(y=Object(s.createElement)(rs.div,{variants:O,initial:g?"show":"hidden",animate:"show",exit:g?"show":"exit",className:"components-drop-zone__content"},Object(s.createElement)(rs.div,{variants:j},Object(s.createElement)(qp.a,{icon:dO.a,className:"components-drop-zone__content-icon"}),Object(s.createElement)("span",{className:"components-drop-zone__content-text"},n||Object(f.__)("Drop files to upload")))));const w=d()("components-drop-zone",t,{"is-active":(i||u)&&("file"===h&&r||"html"===h&&o||"default"===h&&a),"is-dragging-over-document":i,"is-dragging-over-element":u,["is-dragging-"+h]:!!h});return Object(s.createElement)("div",{ref:v,className:w},g?y:Object(s.createElement)(vO,null,y))}function yO(e){let{children:t}=e;return gs()("wp.components.DropZoneProvider",{hint:"wp.component.DropZone no longer needs a provider. wp.components.DropZoneProvider is safe to remove from your code."}),t}var OO=Object(s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(s.createElement)(i.Path,{d:"M5 17.7c.4.5.8.9 1.2 1.2l1.1-1.4c-.4-.3-.7-.6-1-1L5 17.7zM5 6.3l1.4 1.1c.3-.4.6-.7 1-1L6.3 5c-.5.4-.9.8-1.3 1.3zm.1 7.8l-1.7.5c.2.6.4 1.1.7 1.6l1.5-.8c-.2-.4-.4-.8-.5-1.3zM4.8 12v-.7L3 11.1v1.8l1.7-.2c.1-.2.1-.5.1-.7zm3 7.9c.5.3 1.1.5 1.6.7l.5-1.7c-.5-.1-.9-.3-1.3-.5l-.8 1.5zM19 6.3c-.4-.5-.8-.9-1.2-1.2l-1.1 1.4c.4.3.7.6 1 1L19 6.3zm-.1 3.6l1.7-.5c-.2-.6-.4-1.1-.7-1.6l-1.5.8c.2.4.4.8.5 1.3zM5.6 8.6l-1.5-.8c-.3.5-.5 1-.7 1.6l1.7.5c.1-.5.3-.9.5-1.3zm2.2-4.5l.8 1.5c.4-.2.8-.4 1.3-.5l-.5-1.7c-.6.2-1.1.4-1.6.7zm8.8 13.5l1.1 1.4c.5-.4.9-.8 1.2-1.2l-1.4-1.1c-.2.3-.5.6-.9.9zm1.8-2.2l1.5.8c.3-.5.5-1.1.7-1.6l-1.7-.5c-.1.5-.3.9-.5 1.3zm2.6-4.3l-1.7.2v1.4l1.7.2V12v-.9zM11.1 3l.2 1.7h1.4l.2-1.7h-1.8zm3 2.1c.5.1.9.3 1.3.5l.8-1.5c-.5-.3-1.1-.5-1.6-.7l-.5 1.7zM12 19.2h-.7l-.2 1.8h1.8l-.2-1.7c-.2-.1-.5-.1-.7-.1zm2.1-.3l.5 1.7c.6-.2 1.1-.4 1.6-.7l-.8-1.5c-.4.2-.8.4-1.3.5z"}));var jO=function(e){let{fill:t}=e;return t?Object(s.createElement)("span",{className:"components-swatch",style:{background:t}}):Object(s.createElement)(fb.a,{icon:OO})};function wO(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"90deg";const n=100/e.length,r=e.map((e,t)=>`${e} ${t*n}%, ${e} ${(t+1)*n}%`).join(", ");return`linear-gradient( ${t}, ${r} )`}Object(_.b)([E.a]);var xO=function(e){let{values:t}=e;return Object(s.createElement)(jO,{fill:t&&wO(t,"135deg")})};function _O(e){let{label:t,value:n,colors:r,disableCustomColors:o,enableAlpha:a,onChange:i}=e;const[c,l]=Object(s.useState)(!1);return Object(s.createElement)(s.Fragment,null,Object(s.createElement)(ld.a,{className:"components-color-list-picker__swatch-button",icon:Object(s.createElement)(jO,{fill:n}),onClick:()=>l(e=>!e)},t),c&&Object(s.createElement)(Zv,{className:"components-color-list-picker__color-picker",colors:r,value:n,clearable:!1,onChange:i,disableCustomColors:o,enableAlpha:a}))}var EO=function(e){let{colors:t,labels:n,value:r=[],disableCustomColors:o,enableAlpha:a,onChange:i}=e;return Object(s.createElement)("div",{className:"components-color-list-picker"},n.map((e,n)=>Object(s.createElement)(_O,{key:n,label:e,value:r[n],colors:t,disableCustomColors:o,enableAlpha:a,onChange:e=>{const t=r.slice();t[n]=e,i(t)}})))};const kO={className:"components-custom-gradient-picker__color-picker-popover",position:"top"};function SO(e){return Math.max(0,Math.min(100,e))}function CO(e,t,n){const r=e.slice();return r[t]=n,r}function PO(e,t,n){if(function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=e[t].position,a=Math.min(o,n),i=Math.max(o,n);return e.some((e,o)=>{let{position:c}=e;return o!==t&&(Math.abs(c-n)<r||a<c&&c<i)})}(e,t,n))return e;return CO(e,t,{...e[t],position:n})}function TO(e,t,n){return CO(e,t,{...e[t],color:n})}function MO(e,t,n){if(!t)return;const{x:r,width:o}=t.getBoundingClientRect(),a=e-r-5-n/2,i=o-5-16;return Math.round(SO(100*a/i))}function DO(e){let{isOpen:t,position:n,color:r,...o}=e;const a="components-custom-gradient-picker__control-point-button-description-"+Object(p.useInstanceId)(DO);return Object(s.createElement)(s.Fragment,null,Object(s.createElement)(ld.a,Object(c.a)({"aria-label":Object(f.sprintf)(Object(f.__)("Gradient control point at position %1$s%% with color code %2$s."),n,r),"aria-describedby":a,"aria-haspopup":"true","aria-expanded":t,className:d()("components-custom-gradient-picker__control-point-button",{"is-active":t}),style:{left:n+"%"}},o)),Object(s.createElement)(m.a,{id:a},Object(f.__)("Use your left or right arrow keys or drag and drop with the mouse to change the gradient position. Press the button to change the color or remove the control point.")))}function IO(e){let{disableRemove:t,disableAlpha:n,gradientPickerDomRef:r,ignoreMarkerPosition:o,value:a,onChange:i,onStartControlPointChange:c,onStopControlPointChange:l}=e;const u=Object(s.useRef)(),d=e=>{const t=MO(e.clientX,r.current,16),{initialPosition:n,index:o,significantMoveHappened:c}=u.current;!c&&Math.abs(n-t)>=5&&(u.current.significantMoveHappened=!0),i(PO(a,o,t))},p=()=>{window&&window.removeEventListener&&u.current&&u.current.listenersActivated&&(window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",p),l(),u.current.listenersActivated=!1)};return Object(s.useEffect)(()=>()=>{p()},[]),a.map((e,r)=>{const b=null==e?void 0:e.position;return o!==b&&Object(s.createElement)(Kv,{key:r,onClose:l,renderToggle:t=>{let{isOpen:n,onToggle:o}=t;return Object(s.createElement)(DO,{key:r,onClick:()=>{u.current&&u.current.significantMoveHappened||(n?l():c(),o())},onMouseDown:()=>{window&&window.addEventListener&&(u.current={initialPosition:b,index:r,significantMoveHappened:!1,listenersActivated:!0},c(),window.addEventListener("mousemove",d),window.addEventListener("mouseup",p))},onKeyDown:t=>{t.keyCode===zu.LEFT?(t.stopPropagation(),i(PO(a,r,SO(e.position-10)))):t.keyCode===zu.RIGHT&&(t.stopPropagation(),i(PO(a,r,SO(e.position+10))))},isOpen:n,position:e.position,color:e.color})},renderContent:o=>{let{onClose:c}=o;return Object(s.createElement)(s.Fragment,null,Object(s.createElement)(kv,{enableAlpha:!n,color:e.color,onChange:e=>{i(TO(a,r,Object(_.a)(e).toRgbString()))}}),!t&&Object(s.createElement)(ld.a,{className:"components-custom-gradient-picker__remove-control-point",onClick:()=>{i(function(e,t){return e.filter((e,n)=>n!==t)}(a,r)),c()},variant:"link"},Object(f.__)("Remove Control Point")))},popoverProps:kO})})}IO.InsertPoint=function(e){let{value:t,onChange:n,onOpenInserter:r,onCloseInserter:o,insertPosition:a,disableAlpha:i}=e;const[c,l]=Object(s.useState)(!1);return Object(s.createElement)(Kv,{className:"components-custom-gradient-picker__inserter",onClose:()=>{o()},renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return Object(s.createElement)(ld.a,{"aria-expanded":t,"aria-haspopup":"true",onClick:()=>{t?o():(l(!1),r()),n()},className:"components-custom-gradient-picker__insert-point",icon:Qp.a,style:{left:null!==a?a+"%":void 0}})},renderContent:()=>Object(s.createElement)(kv,{enableAlpha:!i,onChange:e=>{c?n(function(e,t,n){const r=e.findIndex(e=>e.position===t);return TO(e,r,n)}(t,a,Object(_.a)(e).toRgbString())):(n(function(e,t,n){const r=e.findIndex(e=>e.position>t),o={color:n,position:t},a=e.slice();return a.splice(r-1,0,o),a}(t,a,Object(_.a)(e).toRgbString())),l(!0))}}),popoverProps:kO})};var RO=IO;function AO(e,t){switch(t.type){case"MOVE_INSERTER":if("IDLE"===e.id||"MOVING_INSERTER"===e.id)return{id:"MOVING_INSERTER",insertPosition:t.insertPosition};break;case"STOP_INSERTER_MOVE":if("MOVING_INSERTER"===e.id)return{id:"IDLE"};break;case"OPEN_INSERTER":if("MOVING_INSERTER"===e.id)return{id:"INSERTING_CONTROL_POINT",insertPosition:e.insertPosition};break;case"CLOSE_INSERTER":if("INSERTING_CONTROL_POINT"===e.id)return{id:"IDLE"};break;case"START_CONTROL_CHANGE":if("IDLE"===e.id)return{id:"MOVING_CONTROL_POINT"};break;case"STOP_CONTROL_CHANGE":if("MOVING_CONTROL_POINT"===e.id)return{id:"IDLE"}}return e}const NO={id:"IDLE"};function LO(e){let{background:t,hasGradient:n,value:r,onChange:o,disableInserter:a=!1,disableAlpha:i=!1}=e;const c=Object(s.useRef)(),[u,f]=Object(s.useReducer)(AO,NO),p=e=>{const t=MO(e.clientX,c.current,16);Object(l.some)(r,e=>{let{position:n}=e;return Math.abs(t-n)<10})?"MOVING_INSERTER"===u.id&&f({type:"STOP_INSERTER_MOVE"}):f({type:"MOVE_INSERTER",insertPosition:t})},b="MOVING_INSERTER"===u.id,h="INSERTING_CONTROL_POINT"===u.id;return Object(s.createElement)("div",{ref:c,className:d()("components-custom-gradient-picker__gradient-bar",{"has-gradient":n}),onMouseEnter:p,onMouseMove:p,style:{background:t},onMouseLeave:()=>{f({type:"STOP_INSERTER_MOVE"})}},Object(s.createElement)("div",{className:"components-custom-gradient-picker__markers-container"},!a&&(b||h)&&Object(s.createElement)(RO.InsertPoint,{disableAlpha:i,insertPosition:u.insertPosition,value:r,onChange:o,onOpenInserter:()=>{f({type:"OPEN_INSERTER"})},onCloseInserter:()=>{f({type:"CLOSE_INSERTER"})}}),Object(s.createElement)(RO,{disableAlpha:i,disableRemove:a,gradientPickerDomRef:c,ignoreMarkerPosition:h?u.insertPosition:void 0,value:r,onChange:o,onStartControlPointChange:()=>{f({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:()=>{f({type:"STOP_CONTROL_CHANGE"})}})))}const FO=["#333","#CCC"];function zO(e){let{value:t,onChange:n}=e;const r=!!t,o=r?t:FO,a=wO(o),i=(c=o).map((e,t)=>({position:100*t/(c.length-1),color:e}));var c;return Object(s.createElement)(LO,{disableInserter:!0,background:a,hasGradient:r,value:i,onChange:e=>{const t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(e=>{let{color:t}=e;return t})}(e);n(t)}})}var BO=function(e){let{colorPalette:t,duotonePalette:n,disableCustomColors:r,disableCustomDuotone:o,value:a,onChange:i}=e;const[c,u]=Object(s.useMemo)(()=>{return!(e=t)||e.length<2?["#000","#fff"]:e.map(e=>{let{color:t}=e;return{color:t,brightness:Object(_.a)(t).brightness()}}).reduce((e,t)=>{let[n,r]=e;return[t.brightness<=n.brightness?t:n,t.brightness>=r.brightness?t:r]},[{brightness:1},{brightness:0}]).map(e=>{let{color:t}=e;return t});var e},[t]);return Object(s.createElement)(Gv,{options:n.map(e=>{let{colors:t,slug:n,name:r}=e;const o={background:wO(t,"135deg"),color:"transparent"},c=null!=r?r:Object(f.sprintf)(Object(f.__)("Duotone code: %s"),n),u=r?Object(f.sprintf)(Object(f.__)("Duotone: %s"),r):c,d=Object(l.isEqual)(t,a);return Object(s.createElement)(Gv.Option,{key:n,value:t,isSelected:d,"aria-label":u,tooltipText:c,style:o,onClick:()=>{i(d?void 0:t)}})}),actions:Object(s.createElement)(Gv.ButtonAction,{onClick:()=>i(void 0)},Object(f.__)("Clear"))},!r&&!o&&Object(s.createElement)(zO,{value:a,onChange:i}),!o&&Object(s.createElement)(EO,{labels:[Object(f.__)("Shadows"),Object(f.__)("Highlights")],colors:t,value:a,disableCustomColors:r,enableAlpha:!0,onChange:e=>{e[0]||(e[0]=c),e[1]||(e[1]=u);const t=e.length>=2?e:void 0;i(t)}}))},HO=n("K+tz");const VO=Object(w.a)(qp.a,{target:"etxm6pv0"})({name:"bqq7t3",styles:"width:1.4em;height:1.4em;margin:-0.2em 0.1em 0;vertical-align:middle;fill:currentColor"});var WO=Object(s.forwardRef)((function(e,t){let{href:n,children:r,className:o,rel:a="",...i}=e;a=Object(l.uniq)(Object(l.compact)([...a.split(" "),"external","noreferrer","noopener"])).join(" ");const u=d()("components-external-link",o);return Object(s.createElement)("a",Object(c.a)({},i,{className:u,href:n,target:"_blank",rel:a,ref:t}),r,Object(s.createElement)(m.a,{as:"span"},Object(f.__)("(opens in a new tab)")),Object(s.createElement)(VO,{icon:HO.a,className:"components-external-link__icon"}))})),UO=["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation","modal","unstable_disclosureRef","setModal","unstable_referenceRef","unstable_popoverRef","unstable_arrowRef","unstable_popoverStyles","unstable_arrowStyles","unstable_originalPlacement","unstable_update","placement","place"],KO=([].concat(UO,["size"]),UO),GO=["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation","modal","unstable_disclosureRef","setModal"],$O=[].concat(GO,["hideOnEsc","hideOnClickOutside","preventBodyScroll","unstable_initialFocusRef","unstable_finalFocusRef","unstable_orphan","unstable_autoFocusOnShow","unstable_autoFocusOnHide"]),qO=GO,YO=n("71Og"),XO=n("JLmN"),ZO=Object(_e.a)({name:"Button",compose:XO.a,keys:[],useProps:function(e,t){var n=t.ref,r=Object($.a)(t,["ref"]),o=Object(q.useRef)(null),a=Object(q.useState)(void 0),i=a[0],c=a[1],s=Object(q.useState)("button"),l=s[0],u=s[1];return Object(q.useEffect)((function(){var e=o.current;e&&(Object(YO.a)(e)||("A"!==e.tagName&&c("button"),u(void 0)))}),[]),Object($.b)({ref:Object(Ee.a)(o,n),role:i,type:l},r)}}),JO=(Object(xe.a)({as:"button",memo:!0,useHook:ZO}),Object(_e.a)({name:"Disclosure",compose:ZO,keys:dm,useProps:function(e,t){var n=t.onClick,r=t["aria-controls"],o=Object($.a)(t,["onClick","aria-controls"]),a=Object(ke.a)(n),i=r?r+" "+e.baseId:e.baseId,c=Object(q.useCallback)((function(t){var n,r;null===(n=a.current)||void 0===n||n.call(a,t),t.defaultPrevented||null===(r=e.toggle)||void 0===r||r.call(e)}),[e.toggle]);return Object($.b)({"aria-expanded":!!e.visible,"aria-controls":i,onClick:c},o)}})),QO=(Object(xe.a)({as:"button",memo:!0,useHook:JO}),Object(_e.a)({name:"DialogDisclosure",compose:JO,keys:qO,useProps:function(e,t){var n=t.ref,r=t.onClick,o=Object($.a)(t,["ref","onClick"]),a=Object(q.useRef)(null),i=Object(ke.a)(r),c=Object(q.useState)(!1),s=c[0],l=c[1],u=e.unstable_disclosureRef;Object(X.a)((function(){var t=a.current;u&&!u.current&&(u.current=t);var n=!(null!=u&&u.current)||u.current===t;l(!!e.visible&&n)}),[e.visible,u]);var d=Object(q.useCallback)((function(e){var t;null===(t=i.current)||void 0===t||t.call(i,e),e.defaultPrevented||u&&(u.current=e.currentTarget)}),[u]);return Object($.b)({ref:Object(Ee.a)(a,n),"aria-haspopup":"dialog","aria-expanded":s,onClick:d},o)}})),ej=(Object(xe.a)({as:"button",memo:!0,useHook:QO}),Object(_e.a)({name:"PopoverDisclosure",compose:QO,keys:KO,useProps:function(e,t){var n=t.ref,r=Object($.a)(t,["ref"]);return Object($.b)({ref:Object(Ee.a)(e.unstable_referenceRef,n)},r)}})),tj=Object(xe.a)({as:"button",memo:!0,useHook:ej});const nj=Object(s.createContext)({});var rj=n("SSiF"),oj=n.n(rj);var aj=n("PcHe"),ij=n("kqkJ");function cj(e,t){var n=Object(q.useRef)(!1);Object(q.useEffect)((function(){if(n.current)return e();n.current=!0}),t)}var sj=n("AClM");function lj(e,t){var n=e.indexOf(t);return function(e,t){return-1===t?e:[].concat(e.slice(0,t),e.slice(t+1))}(e,n)}var uj=Object(q.createContext)(null);var dj=!1;if("undefined"!=typeof window){var fj={get passive(){dj=!0}};window.addEventListener("testPassive",null,fj),window.removeEventListener("testPassive",null,fj)}var pj="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),bj=[],hj=!1,mj=-1,vj=void 0,gj=void 0,yj=function(e){return bj.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},Oj=function(e){var t=e||window.event;return!!yj(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},jj=function(){void 0!==gj&&(document.body.style.paddingRight=gj,gj=void 0),void 0!==vj&&(document.body.style.overflow=vj,vj=void 0)},wj=function(e,t){if(e){if(!bj.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};bj=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(bj),[n]),pj?(e.ontouchstart=function(e){1===e.targetTouches.length&&(mj=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-mj;!yj(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?Oj(e):e.stopPropagation())}(t,e)},hj||(document.addEventListener("touchmove",Oj,dj?{passive:!1}:void 0),hj=!0)):function(e){if(void 0===gj){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(gj=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===vj&&(vj=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},xj=n("APjL"),_j=n("utzN"),Ej=Object(q.createContext)(void 0),kj=n("Ptb8");function Sj(e,t){var n=Boolean(t.preventBodyScroll&&t.visible);Object(q.useEffect)((function(){var t=e.current;if(t&&n)return wj(t,{reserveScrollBarGap:!0}),function(){var e;(e=t)?(bj=bj.filter((function(t){return t.targetElement!==e})),pj?(e.ontouchstart=null,e.ontouchmove=null,hj&&0===bj.length&&(document.removeEventListener("touchmove",Oj,dj?{passive:!1}:void 0),hj=!1)):bj.length||jj()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}}),[e,n])}function Cj(e){null!=e.parentNode&&e.parentNode.removeChild(e)}function Pj(e,t,n){var r=function(e,t){var n=Object(q.useRef)(null);return Object(q.useEffect)((function(){var r=e.current;r&&t.visible&&(n.current=Object(xj.a)(r,gm.__selector))}),[e,t.visible]),n}(e,n),o=n.visible&&n.modal,a=Object(q.useRef)(null),i=Object(q.useRef)(null);Object(q.useEffect)((function(){if(o){var e=r.current;if(e){if(!a.current){var t=Object(J.a)(e);a.current=t.createElement("div"),a.current.className="__reakit-focus-trap",a.current.tabIndex=0,a.current.style.position="fixed",a.current.setAttribute("aria-hidden","true")}return i.current||(i.current=a.current.cloneNode()),e.insertAdjacentElement("beforebegin",a.current),e.insertAdjacentElement("afterend",i.current),function(){a.current&&Cj(a.current),i.current&&Cj(i.current)}}}}),[r,o]),Object(q.useEffect)((function(){var n=a.current,r=i.current;if(o&&n&&r){var c=function(n){var o=e.current;if(o&&!t.length){n.preventDefault();var a=n.target===r?Object(ij.a)(o):Object(ij.b)(o);a?a.focus():o.focus()}};return n.addEventListener("focus",c),r.addEventListener("focus",c),function(){n.removeEventListener("focus",c),r.removeEventListener("focus",c)}}}),[e,t,o])}function Tj(e,t,n){var r=n.unstable_autoFocusOnHide&&!n.visible,o=!(!n.animated||!n.animating);cj((function(){var a;if(r&&!o&&!function(e){var t=e.current;if(!t)return!1;var n=Object(Fe.a)(t);return!!n&&(!Object(_j.a)(t,n)&&(!!Object(ij.d)(n)||"true"===n.getAttribute("data-dialog")))}(e)){var i=(null===(a=n.unstable_finalFocusRef)||void 0===a?void 0:a.current)||t.current;if(i){if(i.id){var c=Object(J.a)(i).querySelector("[aria-activedescendant='"+i.id+"']");if(c)return void Object(sj.a)(c)}Object(sj.a)(i)}else;}}),[r,o,e,t])}var Mj=Object(q.createContext)({});function Dj(e,t,n,r,o,a,i){var c=Object(ke.a)(o);Object(q.useEffect)((function(){if(a){var o=function(r){if(c.current){var o,a=e.current,i=t.current,s=r.target;if(a)if(function(e){var t=Object(J.a)(e);return"HTML"===e.tagName||Object(_j.a)(t.body,e)}(s))if(!Object(_j.a)(a,s))if(!i||!function(e,t){return Object(_j.a)(t,e)}(s,i))if(!(null===(o=s.classList)||void 0===o?void 0:o.contains("__reakit-focus-trap"))&&!n.some(function(e){return function(t){var n=t.current;if(!n)return!1;if(Object(_j.a)(n,e))return!0;var r=Object(J.a)(n).querySelector('[data-dialog-ref="'+n.id+'"]');return!!r&&Object(_j.a)(r,e)}}(s)))c.current(r)}},s=Object(J.a)(e.current);return s.addEventListener(r,o,i),function(){return s.removeEventListener(r,o,i)}}}),[e,t,n,r,a,c])}function Ij(e,t,n,r){var o=function(e,t){var n=Object(q.useRef)();return Object(q.useEffect)((function(){if(t.visible&&t.hideOnClickOutside){var r=Object(J.a)(e.current),o=function(e){n.current=e.target};return r.addEventListener("mousedown",o),function(){return r.removeEventListener("mousedown",o)}}}),[t.visible,t.hideOnClickOutside,e]),n}(e,r);Dj(e,t,n,"click",(function(e){var t;o.current===e.target&&(null===(t=r.hide)||void 0===t||t.call(r))}),r.visible&&r.hideOnClickOutside),Dj(e,t,n,"focusin",(function(t){var n,o=Object(J.a)(e.current);t.target!==o&&t.target!==o.body&&(null===(n=r.hide)||void 0===n||n.call(r))}),r.visible&&r.hideOnClickOutside)}function Rj(e,t){Object(q.useEffect)((function(){var n=e.current;if(t.visible&&n){var r=new MutationObserver((function(e){if(e[0].target===n){var t,r=Object(J.a)(n),o=Object(Fe.a)(n);o!==r.body&&(t=o,Array.isArray(t)?t.length:Object(kj.a)(t)?Object.keys(t).length:null!=t&&""!==t)||n.focus()}}));return r.observe(n,{childList:!0,subtree:!0}),function(){r.disconnect()}}}),[t.visible,e])}function Aj(e){return e&&e.tagName&&"HTML"!==e.tagName&&e!==Object(J.a)(e).body}var Nj=Object(_e.a)({name:"Dialog",compose:pm,keys:$O,useOptions:function(e){var t=e.modal,n=void 0===t||t,r=e.hideOnEsc,o=void 0===r||r,a=e.hideOnClickOutside,i=void 0===a||a,c=e.preventBodyScroll,s=void 0===c?n:c,l=e.unstable_autoFocusOnShow,u=void 0===l||l,d=e.unstable_autoFocusOnHide,f=void 0===d||d,p=e.unstable_orphan,b=Object($.a)(e,["modal","hideOnEsc","hideOnClickOutside","preventBodyScroll","unstable_autoFocusOnShow","unstable_autoFocusOnHide","unstable_orphan"]);return Object($.b)({modal:n,hideOnEsc:o,hideOnClickOutside:i,preventBodyScroll:n&&s,unstable_autoFocusOnShow:u,unstable_autoFocusOnHide:f,unstable_orphan:n&&p},b)},useProps:function(e,t){var n=t.ref,r=t.onKeyDown,o=t.onBlur,a=t.wrapElement,i=t.tabIndex,c=Object($.a)(t,["ref","onKeyDown","onBlur","wrapElement","tabIndex"]),s=Object(q.useRef)(null),l=Object(q.useContext)(Ej),u=l&&l===e.baseId,d=function(e,t){var n=Object(q.useRef)(null),r=!(!t.animated||!t.animating);return Object(q.useEffect)((function(){if(!t.visible&&!r){var o=function(e){var r=e.target;"focus"in r&&(n.current=r,t.unstable_disclosureRef&&(t.unstable_disclosureRef.current=r))},a=Object(J.a)(e.current);return a.addEventListener("focusin",o),function(){return a.removeEventListener("focusin",o)}}}),[t.visible,r,t.unstable_disclosureRef,e]),Object(q.useEffect)((function(){var e;if(t.visible&&!r){var o=function(e){var t=e.currentTarget;Object(YO.a)(t)&&(e.preventDefault(),t.focus())},a=(null===(e=t.unstable_disclosureRef)||void 0===e?void 0:e.current)||n.current;return null==a||a.addEventListener("mousedown",o),function(){return null==a?void 0:a.removeEventListener("mousedown",o)}}}),[t.visible,r,t.unstable_disclosureRef]),t.unstable_disclosureRef||n}(s,e),f=Object(ke.a)(r),p=Object(ke.a)(o),b=function(e,t){var n=Object(q.useReducer)((function(e){return e+1}),0),r=n[0],o=n[1];return Object(X.a)((function(){var n=e.current;t.visible&&r&&(Aj(Object(Fe.a)(n))||null==n||n.focus())}),[r,e]),Object(q.useCallback)((function(e){t.visible&&(Aj(Be(e))||o())}),[t.visible])}(s,e),h=function(e,t){var n=Object(q.useContext)(Mj),r=Object(q.useState)([]),o=r[0],a=r[1],i=Object(q.useState)(o),c=i[0],s=i[1],l=Object(q.useCallback)((function(e){var t;null===(t=n.addDialog)||void 0===t||t.call(n,e),a((function(t){return[].concat(t,[e])}))}),[n.addDialog]),u=Object(q.useCallback)((function(e){var t;null===(t=n.removeDialog)||void 0===t||t.call(n,e),a((function(t){return lj(t,e)}))}),[n.removeDialog]),d=Object(q.useCallback)((function(e){var t;null===(t=n.showDialog)||void 0===t||t.call(n,e),s((function(t){return[].concat(t,[e])}))}),[n.showDialog]),f=Object(q.useCallback)((function(e){var t;null===(t=n.hideDialog)||void 0===t||t.call(n,e),s((function(t){return lj(t,e)}))}),[n.hideDialog]);Object(q.useEffect)((function(){var r;if(!t.unstable_orphan)return null===(r=n.addDialog)||void 0===r||r.call(n,e),function(){var t;null===(t=n.removeDialog)||void 0===t||t.call(n,e)}}),[t.unstable_orphan,n.addDialog,e,n.removeDialog]),Object(q.useEffect)((function(){var r;if(!t.unstable_orphan&&t.modal&&t.visible)return null===(r=n.showDialog)||void 0===r||r.call(n,e),function(){var t;null===(t=n.hideDialog)||void 0===t||t.call(n,e)}}),[t.unstable_orphan,t.modal,t.visible,n.showDialog,e,n.hideDialog]),Object(q.useEffect)((function(){var e;!1===n.visible&&t.visible&&!t.unstable_orphan&&(null===(e=t.hide)||void 0===e||e.call(t))}),[n.visible,t.visible,t.hide,t.unstable_orphan]);var p=Object(q.useMemo)((function(){return{visible:t.visible,addDialog:l,removeDialog:u,showDialog:d,hideDialog:f}}),[t.visible,l,u,d,f]);return{dialogs:o,visibleModals:c,wrap:Object(q.useCallback)((function(e){return Object(q.createElement)(Mj.Provider,{value:p},e)}),[p])}}(s,e),m=h.dialogs,v=h.visibleModals,g=h.wrap,y=!(!e.modal||v.length)||void 0;Sj(s,e),Pj(s,v,e),Rj(s,e),function(e,t,n){var r=n.unstable_initialFocusRef,o=n.visible&&n.unstable_autoFocusOnShow,a=!(!n.animated||!n.animating);cj((function(){var n=e.current;if(o&&n&&!a&&!t.some((function(e){return e.current&&!e.current.hidden})))if(null!=r&&r.current)r.current.focus({preventScroll:!0});else{var i=Object(ij.a)(n,!0),c=function(){return Object(aj.a)(n)};i?Object(sj.a)(i,{preventScroll:!0,isActive:c}):Object(sj.a)(n,{preventScroll:!0,isActive:c})}}),[e,o,a,t,r])}(s,m,e),Tj(s,d,e),Ij(s,d,m,e),function(e,t,n){var r=function(r){return Dj(e,{current:null},t,r,(function(e){e.stopPropagation(),e.preventDefault()}),n.visible&&n.modal,!0)};r("mouseover"),r("mousemove"),r("mouseout")}(s,m,e);var O=Object(q.useCallback)((function(t){var n;null===(n=f.current)||void 0===n||n.call(f,t),t.defaultPrevented||"Escape"===t.key&&e.hideOnEsc&&e.hide&&(t.stopPropagation(),e.hide())}),[e.hideOnEsc,e.hide]),j=Object(q.useCallback)((function(e){var t;null===(t=p.current)||void 0===t||t.call(p,e),b(e)}),[b]),w=Object(q.useCallback)((function(t){return t=g(t),e.modal&&!u&&(t=Object(q.createElement)(gm,null,t)),a&&(t=a(t)),Object(q.createElement)(uj.Provider,{value:null},t)}),[g,e.modal,u,a]);return Object($.b)({ref:Object(Ee.a)(s,n),role:"dialog",tabIndex:null!=i?i:-1,"aria-modal":y,"data-dialog":!0,onKeyDown:O,onBlur:j,wrapElement:w},c)}}),Lj=(Object(xe.a)({as:"div",useHook:Nj,useCreateElement:function(e,t,n){return Object(Te.a)(e,t,n)}}),Object(_e.a)({name:"Popover",compose:Nj,keys:UO,useOptions:function(e){var t=e.modal,n=void 0!==t&&t,r=Object($.a)(e,["modal"]);return Object($.b)({modal:n},r)},useProps:function(e,t){var n=t.ref,r=t.style,o=Object($.a)(t,["ref","style"]);return Object($.b)({ref:Object(Ee.a)(e.unstable_popoverRef,n),style:Object($.b)(Object($.b)({},e.unstable_popoverStyles),r)},o)}})),Fj=Object(xe.a)({as:"div",useHook:Lj,useCreateElement:function(e,t,n){return Object(Te.a)(e,t,n)}});const zj=Object(w.a)(Fj,{target:"e1vtu5161"})("z-index:",1e4,";box-sizing:border-box;opacity:0;outline:none;position:relative;transform-origin:center center;transition:opacity ",Ks.transitionDurationFastest," linear;width:100%;&[data-enter]{opacity:1;}&::before,&::after{display:none;}"),Bj=Object(w.a)(Mp,{target:"e1vtu5160"})(zp.selector,"{max-height:80vh;}");var Hj=Object(os.a)((function(e,t){const{children:n,elevation:r,maxWidth:o,style:a={},...i}=Object(is.a)(e,"FlyoutContent"),{label:l,flyoutState:u}=Object(s.useContext)(nj);if(!u)throw new Error("`FlyoutContent` must only be used inside a `Flyout`.");const d=u.visible||u.animating;return Object(s.createElement)(zj,Object(c.a)({"aria-label":l,style:{maxWidth:o,...a}},i,u),d&&Object(s.createElement)(Bj,{elevation:r,ref:t},n))}),"FlyoutContent");var Vj=Object(os.a)((function(e,t){const{children:n,elevation:r,label:o,maxWidth:a,onVisibleChange:i,trigger:l,flyoutState:u,...d}=function(e){const{animated:t=!0,animationDuration:n=160,baseId:r,elevation:o=5,id:a,maxWidth:i=360,placement:c,state:s,visible:l,...u}=Object(is.a)(e,"Flyout"),d=rm({animated:t?n:void 0,baseId:r||a,placement:c,visible:l,...u}),f=s||d;return{...u,elevation:o,maxWidth:i,flyoutState:f}}(e),f=function(e){let{onResize:t}=e;const[n,r]=oj()();return Object(p.useIsomorphicLayoutEffect)(()=>{null==t||t()},[r.width,r.height]),n}({onResize:u.unstable_update}),b="flyout-"+u.baseId,h=o||b,m=Object(s.useMemo)(()=>({label:h,flyoutState:u}),[h,u]),v=Object(s.useCallback)(e=>Object(s.cloneElement)(l,e),[l]);return qu(()=>{null==i||i(u.visible)},[u.visible]),Object(s.createElement)(nj.Provider,{value:m},l&&Object(s.createElement)(tj,Object(c.a)({},u,{ref:l.ref},l.props),v),Object(s.createElement)(gm,null,Object(s.createElement)(Hj,Object(c.a)({ref:t},d,{elevation:r,maxWidth:a}),f,n)))}),"Flyout");const Wj=Object(w.a)("div",{target:"e11wezi78"})({name:"1g31405",styles:"background-color:transparent;box-sizing:border-box;text-align:center;width:100%"}),Uj=Object(w.a)("div",{target:"e11wezi77"})({name:"v0nrlz",styles:"align-items:center;box-sizing:border-box;box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.2 );cursor:pointer;display:inline-flex;justify-content:center;margin:auto;position:relative;height:100%;img,video{box-sizing:border-box;display:block;height:auto;margin:0;max-height:100%;max-width:100%;pointer-events:none;user-select:none;width:auto;}"}),Kj=Object(w.a)("div",{target:"e11wezi76"})("background:",L.lightGray[300],";box-sizing:border-box;height:170px;max-width:280px;min-width:200px;width:100%;"),Gj=Object(w.a)(Zd,{target:"e11wezi75"})({name:"1pzk433",styles:"width:100px"}),$j=Object(w.a)(Ms,{target:"e11wezi74"})({name:"ox4xcy",styles:"max-width:320px;padding:1em 0"}),qj=Object(w.a)("div",{target:"e11wezi73"})("box-sizing:border-box;left:50%;opacity:0;overflow:hidden;pointer-events:none;position:absolute;top:50%;transform:translate3d( -50%, -50%, 0 );transition:opacity 120ms linear;z-index:1;",e=>{let{isActive:t}=e;return t&&"\n\t\topacity: 1;\n\t"},";"),Yj=Object(w.a)("div",{target:"e11wezi72"})({name:"1sy4ch9",styles:"box-sizing:border-box;background:white;box-shadow:0 0 2px rgba( 0, 0, 0, 0.6 );position:absolute;opacity:0.4;transform:translateZ( 0 )"}),Xj=Object(w.a)(Yj,{target:"e11wezi71"})({name:"1qp910y",styles:"height:1px;left:0;right:0"}),Zj=Object(w.a)(Yj,{target:"e11wezi70"})({name:"1oz3zka",styles:"width:1px;top:0;bottom:0"}),Jj={top:0,left:0,bottom:0,right:0,width:0,height:0},Qj=["avi","mpg","mpeg","mov","mp4","m4v","ogg","ogv","webm","wmv"];function ew(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=e.split(".");return t[t.length-1]}function tw(e){return Math.round(100*e)}function nw(e){let{onChange:t=l.noop,percentages:n={x:.5,y:.5}}=e;const r=tw(n.x),o=tw(n.y),a=(e,r)=>{const o=parseInt(e,10);isNaN(o)||t({...n,[r]:o/100})};return Object(s.createElement)($j,{className:"focal-point-picker__controls"},Object(s.createElement)(rw,{label:Object(f.__)("Left"),value:r,onChange:e=>a(e,"x"),dragDirection:"e"}),Object(s.createElement)(rw,{label:Object(f.__)("Top"),value:o,onChange:e=>a(e,"y"),dragDirection:"s"}))}function rw(e){return Object(s.createElement)(Gj,Object(c.a)({className:"focal-point-picker__controls-position-unit-control",labelPosition:"top",max:100,min:0,unit:"%",units:[{value:"%",label:"%"}]},e))}const ow=Object(w.a)("div",{target:"eas61re3"})("background-color:transparent;box-sizing:border-box;cursor:grab;height:30px;margin:-15px 0 0 -15px;opacity:0.8;position:absolute;user-select:none;width:30px;will-change:transform;z-index:10000;",e=>{let{isDragging:t}=e;return t&&"cursor: grabbing;"},";"),aw=Object(w.a)(i.SVG,{target:"eas61re2"})({name:"qkx60y",styles:"display:block;height:100%;left:0;position:absolute;top:0;width:100%"}),iw=Object(w.a)(i.Path,{target:"eas61re1"})({name:"1b3qpiw",styles:"fill:white"}),cw=Object(w.a)(i.Path,{target:"eas61re0"})("fill:",L.blue.wordpress[700],";fill:",L.ui.theme,";");function sw(e){let{coordinates:t={left:"50%",top:"50%"},...n}=e;const r=d()("components-focal-point-picker__icon_container"),o={left:t.left,top:t.top};return Object(s.createElement)(ow,Object(c.a)({},n,{className:r,style:o}),Object(s.createElement)(aw,{className:"components-focal-point-picker__icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30"},Object(s.createElement)(iw,{className:"components-focal-point-picker__icon-outline",d:"M15 1C7.3 1 1 7.3 1 15s6.3 14 14 14 14-6.3 14-14S22.7 1 15 1zm0 22c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8z"}),Object(s.createElement)(cw,{className:"components-focal-point-picker__icon-fill",d:"M15 3C8.4 3 3 8.4 3 15s5.4 12 12 12 12-5.4 12-12S21.6 3 15 3zm0 22C9.5 25 5 20.5 5 15S9.5 5 15 5s10 4.5 10 10-4.5 10-10 10z"})))}const{clearTimeout:lw,setTimeout:uw}="undefined"!=typeof window?window:{};function dw(e){let{bounds:t={},value:n,...r}=e;const o=function(e){const[t,n]=Object(s.useState)(!1);return qu(()=>{n(!0);const e=uw(()=>{n(!1)},600);return()=>lw(e)},[e]),{isActive:t}}(n),a={width:t.width,height:t.height};return Object(s.createElement)(qj,Object(c.a)({},r,o,{className:"components-focal-point-picker__grid",style:a}),Object(s.createElement)(Xj,{style:{top:"33%"}}),Object(s.createElement)(Xj,{style:{top:"66%"}}),Object(s.createElement)(Zj,{style:{left:"33%"}}),Object(s.createElement)(Zj,{style:{left:"66%"}}))}function fw(e){let{alt:t,autoPlay:n,src:r,onLoad:o=l.noop,mediaRef:a,muted:i=!0,...u}=e;if(!r)return Object(s.createElement)(pw,{className:"components-focal-point-picker__media components-focal-point-picker__media--placeholder",onLoad:o,mediaRef:a});return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!!e&&Qj.includes(ew(e))}(r)?Object(s.createElement)("video",Object(c.a)({},u,{autoPlay:n,className:"components-focal-point-picker__media components-focal-point-picker__media--video",loop:!0,muted:i,onLoadedData:o,ref:a,src:r})):Object(s.createElement)("img",Object(c.a)({},u,{alt:t,className:"components-focal-point-picker__media components-focal-point-picker__media--image",onLoad:o,ref:a,src:r}))}function pw(e){let{mediaRef:t,onLoad:n=l.noop,...r}=e;const o=Object(s.useRef)(n);return Object(s.useLayoutEffect)(()=>{window.requestAnimationFrame(()=>{o.current()})},[]),Object(s.createElement)(Kj,Object(c.a)({ref:t},r))}class bw extends s.Component{constructor(e){super(...arguments),this.state={isDragging:!1,bounds:Jj,percentages:e.value},this.containerRef=Object(s.createRef)(),this.mediaRef=Object(s.createRef)(),this.onMouseDown=this.startDrag.bind(this),this.onMouseUp=this.stopDrag.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.onMouseMove=this.doDrag.bind(this),this.ifDraggingStop=()=>{this.state.isDragging&&this.stopDrag()},this.onChangeAtControls=e=>{this.updateValue(e),this.props.onChange(e)},this.updateBounds=this.updateBounds.bind(this),this.updateValue=this.updateValue.bind(this)}componentDidMount(){const{defaultView:e}=this.containerRef.current.ownerDocument;e.addEventListener("resize",this.updateBounds),this.updateBounds()}componentDidUpdate(e){e.url!==this.props.url&&this.ifDraggingStop();const{isDragging:t,percentages:{x:n,y:r}}=this.state,{value:o}=this.props;t||o.x===n&&o.y===r||this.setState({percentages:this.props.value})}componentWillUnmount(){const{defaultView:e}=this.containerRef.current.ownerDocument;e.removeEventListener("resize",this.updateBounds),this.ifDraggingStop()}calculateBounds(){const e=Jj;if(!this.mediaRef.current)return e;if(0===this.mediaRef.current.clientWidth||0===this.mediaRef.current.clientHeight)return e;const t=this.mediaRef.current.clientWidth,n=this.mediaRef.current.clientHeight,r=this.pickerDimensions(),o=r.width/t,a=r.height/n;return a>=o?(e.width=e.right=r.width,e.height=n*o,e.top=(r.height-e.height)/2,e.bottom=e.top+e.height):(e.height=e.bottom=r.height,e.width=t*a,e.left=(r.width-e.width)/2,e.right=e.left+e.width),e}updateValue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{x:t,y:n}=e,r={x:parseFloat(t).toFixed(2),y:parseFloat(n).toFixed(2)};this.setState({percentages:r})}updateBounds(){this.setState({bounds:this.calculateBounds()})}startDrag(e){var t,n;e.persist(),this.containerRef.current.focus(),this.setState({isDragging:!0});const{ownerDocument:r}=this.containerRef.current;r.addEventListener("mouseup",this.onMouseUp),r.addEventListener("mousemove",this.onMouseMove);const o=this.getValueFromPoint({x:e.pageX,y:e.pageY},e.shiftKey);this.updateValue(o),null===(t=(n=this.props).onDragStart)||void 0===t||t.call(n,o,e)}stopDrag(e){var t,n;const{ownerDocument:r}=this.containerRef.current;r.removeEventListener("mouseup",this.onMouseUp),r.removeEventListener("mousemove",this.onMouseMove),this.setState({isDragging:!1},()=>{this.props.onChange(this.state.percentages)}),null===(t=(n=this.props).onDragEnd)||void 0===t||t.call(n,e)}onKeyDown(e){const{keyCode:t,shiftKey:n}=e;if(![zu.UP,zu.DOWN,zu.LEFT,zu.RIGHT].includes(t))return;e.preventDefault();const r={...this.state.percentages},o=n?.1:.01,a=t===zu.UP||t===zu.LEFT?-1*o:o,i=t===zu.UP||t===zu.DOWN?"y":"x",c=parseFloat(r[i])+a;r[i]=Cd(c,0,1,o),this.updateValue(r),this.props.onChange(r)}doDrag(e){var t,n;e.preventDefault();const r=this.getValueFromPoint({x:e.pageX,y:e.pageY},e.shiftKey);this.updateValue(r),null===(t=(n=this.props).onDrag)||void 0===t||t.call(n,r,e)}getValueFromPoint(e,t){const{bounds:n}=this.state,r=this.pickerDimensions(),o={left:e.x-r.left,top:e.y-r.top},a=Math.max(n.left,Math.min(o.left,n.right)),i=Math.max(n.top,Math.min(o.top,n.bottom));let c=(a-n.left)/(r.width-2*n.left),s=(i-n.top)/(r.height-2*n.top);const l=t?.1:.01;return c=Cd(c,0,1,l),s=Cd(s,0,1,l),{x:c,y:s}}pickerDimensions(){const e=this.containerRef.current;if(!e)return{width:0,height:0,left:0,top:0};const{clientHeight:t,clientWidth:n}=e,{top:r,left:o}=e.getBoundingClientRect();return{width:n,height:t,top:r+document.body.scrollTop,left:o}}iconCoordinates(){const{bounds:e,percentages:{x:t,y:n}}=this.state;if(void 0===e.left||void 0===e.top)return{left:"50%",top:"50%"};const{width:r,height:o}=this.pickerDimensions();return{left:t*(r-2*e.left)+e.left,top:n*(o-2*e.top)+e.top}}render(){const{autoPlay:e,className:t,help:n,instanceId:r,label:o,url:a}=this.props,{bounds:i,isDragging:c,percentages:l}=this.state,u=this.iconCoordinates(),p=d()("components-focal-point-picker-control",t),b="inspector-focal-point-picker-control-"+r;return Object(s.createElement)(jd,{label:o,id:b,help:n,className:p},Object(s.createElement)(Wj,{className:"components-focal-point-picker-wrapper"},Object(s.createElement)(Uj,{className:"components-focal-point-picker",onKeyDown:this.onKeyDown,onMouseDown:this.onMouseDown,onBlur:this.ifDraggingStop,ref:this.containerRef,role:"button",tabIndex:"-1"},Object(s.createElement)(dw,{bounds:i,value:l.x+l.y}),Object(s.createElement)(fw,{alt:Object(f.__)("Media preview"),autoPlay:e,mediaRef:this.mediaRef,onLoad:this.updateBounds,src:a}),Object(s.createElement)(sw,{coordinates:u,isDragging:c}))),Object(s.createElement)(nw,{percentages:l,onChange:this.onChangeAtControls}))}}bw.defaultProps={autoPlay:!0,value:{x:.5,y:.5},url:null};var hw=Object(p.withInstanceId)(bw);function mw(e){let{iframeRef:t,...n}=e;const r=Object(p.useMergeRefs)([t,Object(p.useFocusableIframe)()]);return gs()("wp.components.FocusableIframe",{alternative:"wp.compose.useFocusableIframe"}),Object(s.createElement)("iframe",Object(c.a)({ref:r},n))}function vw(e){void 0===e&&(e={});var t=Z(e),n=t.state,r=t.loop,o=void 0===r||r,a=Object($.a)(t,["state","loop"]),i=Object(q.useState)(n),c=i[0],s=i[1],l=we(Object($.b)(Object($.b)({},a),{},{loop:o}));return Object($.b)(Object($.b)({},l),{},{state:c,setState:s})}var gw=["baseId","unstable_idCountRef","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","state","setBaseId","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget","setState"],yw=[].concat(gw,["value","checked","unstable_checkOnFocus"]),Ow=gw,jw=Object(_e.a)({name:"RadioGroup",compose:Ge,keys:Ow,useProps:function(e,t){return Object($.b)({role:"radiogroup"},t)}}),ww=Object(xe.a)({as:"div",useHook:jw,useCreateElement:function(e,t,n){return Object(Te.a)(e,t,n)}});const xw=Object(x.a)("background:",L.ui.background,";border:1px solid;border-color:",L.ui.border,";border-radius:",Ks.controlBorderRadius,";display:inline-flex;min-height:",Ks.controlHeight,";min-width:0;padding:2px;position:relative;transition:transform ",Ks.transitionDurationFastest," linear;",F("transition")," &:hover{border-color:",L.ui.borderHover,";}&:focus-within{border-color:",L.ui.borderFocus,";box-shadow:",Ks.controlBoxShadowFocus,";outline:none;z-index:1;}",""),_w={name:"7whenc",styles:"display:flex;width:100%"},Ew=Object(w.a)("div",{target:"eakva830"})("background:",L.gray[900],";border-radius:",Ks.controlBorderRadius,";box-shadow:",Ks.toggleGroupControlBackdropBoxShadow,";left:0;position:absolute;top:2px;bottom:2px;transition:transform ",Ks.transitionDurationFast," ease;",F("transition")," z-index:1;");var kw=Object(s.memo)((function(e){let{containerRef:t,containerWidth:n,isAdaptiveWidth:r,state:o}=e;const[a,i]=Object(s.useState)(0),[c,l]=Object(s.useState)(0),[u,d]=Object(s.useState)(!1),[f,p]=Object(s.useState)(!1);return Object(s.useEffect)(()=>{const e=null==t?void 0:t.current;if(!e)return;const n=e.querySelector(`[data-value="${o}"]`);if(p(!!n),!n)return;const{x:r}=e.getBoundingClientRect(),{width:a,x:c}=n.getBoundingClientRect();let s;return i(c-r-1),l(a),u||(s=window.requestAnimationFrame(()=>{d(!0)})),()=>window.cancelAnimationFrame(s)},[u,t,n,o,r]),f?Object(s.createElement)(Ew,{role:"presentation",style:{transform:`translateX(${a}px)`,transition:u?void 0:"none",width:c}}):null}));const Sw=Object(s.createContext)({});var Cw=Sw;const Pw=()=>{};var Tw=Object(os.a)((function e(t,n){const{className:r,isAdaptiveWidth:o=!1,isBlock:a=!1,label:i,hideLabelFromVision:l=!1,help:u,onChange:d=Pw,value:f,children:b,...h}=Object(is.a)(t,"ToggleGroupControl"),m=Object(ps.a)(),v=Object(s.useRef)(),[g,y]=oj()(),O=vw({baseId:Object(p.useInstanceId)(e,"toggle-group-control").toString(),state:f});qu(()=>{d(O.state)},[O.state]),qu(()=>{f!==O.state&&O.setState(f)},[f]);const j=Object(s.useMemo)(()=>m(xw,a&&_w,"medium",r),[r,a]);return Object(s.createElement)(jd,{help:u},Object(s.createElement)(Cw.Provider,{value:{...O,isBlock:!o}},!l&&Object(s.createElement)("div",null,Object(s.createElement)(jd.VisualLabel,null,i)),Object(s.createElement)(ww,Object(c.a)({},O,{"aria-label":i,as:as.a,className:j},h,{ref:Object(p.useMergeRefs)([v,n])}),g,Object(s.createElement)(kw,Object(c.a)({},O,{containerRef:v,containerWidth:y.width,isAdaptiveWidth:o})),b)))}),"ToggleGroupControl");n("WnOg");function Mw(e){return void 0!==e.checked?e.checked:void 0!==e.value&&e.state===e.value}function Dw(e,t){var n=Object(De.a)(e,"change");Object.defineProperties(n,{type:{value:"change"},target:{value:e},currentTarget:{value:e}}),null==t||t(n)}var Iw=Object(_e.a)({name:"Radio",compose:b.b,keys:yw,useOptions:function(e,t){var n,r=t.value,o=t.checked,a=e.unstable_clickOnEnter,i=void 0!==a&&a,c=e.unstable_checkOnFocus,s=void 0===c||c,l=Object($.a)(e,["unstable_clickOnEnter","unstable_checkOnFocus"]);return Object($.b)(Object($.b)({checked:o,unstable_clickOnEnter:i,unstable_checkOnFocus:s},l),{},{value:null!=(n=l.value)?n:r})},useProps:function(e,t){var n=t.ref,r=t.onChange,o=t.onClick,a=Object($.a)(t,["ref","onChange","onClick"]),i=Object(q.useRef)(null),c=Object(q.useState)(!0),s=c[0],l=c[1],u=Mw(e),d=Object(ke.a)(e.currentId===e.id),f=Object(ke.a)(r),p=Object(ke.a)(o);!function(e){var t=Object(q.useState)((function(){return Mw(e)}))[0],n=Object(q.useState)(e.currentId)[0],r=e.id,o=e.setCurrentId;Object(q.useEffect)((function(){t&&r&&n!==r&&(null==o||o(r))}),[t,r,o,n])}(e),Object(q.useEffect)((function(){var e=i.current;e&&("INPUT"===e.tagName&&"radio"===e.type||l(!1))}),[]);var b=Object(q.useCallback)((function(t){var n,r;null===(n=f.current)||void 0===n||n.call(f,t),t.defaultPrevented||e.disabled||null===(r=e.setState)||void 0===r||r.call(e,e.value)}),[e.disabled,e.setState,e.value]),h=Object(q.useCallback)((function(e){var t;null===(t=p.current)||void 0===t||t.call(p,e),e.defaultPrevented||s||Dw(e.currentTarget,b)}),[b,s]);return Object(q.useEffect)((function(){var t=i.current;t&&e.unstable_moves&&d.current&&e.unstable_checkOnFocus&&Dw(t,b)}),[e.unstable_moves,e.unstable_checkOnFocus,b]),Object($.b)({ref:Object(Ee.a)(i,n),role:s?void 0:"radio",type:s?"radio":void 0,value:s?e.value:void 0,name:s?e.baseId:void 0,"aria-checked":u,checked:u,onChange:b,onClick:h},a)}}),Rw=Object(xe.a)({as:"input",memo:!0,useHook:Iw});const Aw=Object(w.a)("div",{target:"eu1cvm72"})({name:"sln1fl",styles:"display:inline-flex;max-width:100%;min-width:0;position:relative"}),Nw={name:"82a6rk",styles:"flex:1"},Lw=Object(x.a)("align-items:center;appearance:none;background:transparent;border:none;border-radius:",Ks.controlBorderRadius,";color:",L.gray[700],";cursor:pointer;display:flex;height:100%;justify-content:center;line-height:100%;outline:none;padding:0 12px;position:relative;text-align:center;transition:background ",Ks.transitionDurationFast," linear,color ",Ks.transitionDurationFast," linear,font-weight 60ms linear;",F("transition")," user-select:none;width:100%;z-index:2;&::-moz-focus-inner{border:0;}&:active{background:",Ks.toggleGroupControlBackgroundColor,";}",""),Fw=Object(x.a)("color:",L.white,";",""),zw=Object(w.a)("div",{target:"eu1cvm71"})("font-size:",Ks.fontSize,";line-height:1;position:absolute;top:50%;left:50%;transform:translate( -50%, -50% );"),Bw={name:"1qsuvl4",styles:"background:transparent"},Hw=Object(w.a)("div",{target:"eu1cvm70"})("font-size:",Ks.fontSize,";font-weight:bold;height:0;overflow:hidden;visibility:hidden;"),Vw=Object(x.a)("min-height:",Ks.controlHeight,";",""),{ButtonContentView:Ww,LabelPlaceholderView:Uw,LabelView:Kw}=a;var Gw=Object(os.a)((function e(t,n){var r;const o=Object(s.useContext)(Sw),a=Object(p.useInstanceId)(e,o.baseId||"toggle-group-control-option"),i=Object(is.a)({...t,id:a},"ToggleGroupControlOption"),{className:l,isBlock:u=!1,label:d,value:f,...b}={...o,...i},h=b.state===f,m=Object(ps.a)(),v=m(u&&Nw),g=m(Lw,l,h&&Fw);return Object(s.createElement)(Kw,{className:v,"data-active":h},Object(s.createElement)(Rw,Object(c.a)({},b,{as:"button","aria-label":null!==(r=b["aria-label"])&&void 0!==r?r:d,className:g,"data-value":f,ref:n,value:f}),Object(s.createElement)(Ww,null,d),Object(s.createElement)(Uw,{"aria-hidden":!0},d)))}),"ToggleGroupControlOption");const $w={slug:"default",name:Object(f.__)("Default")},qw={slug:"custom",name:Object(f.__)("Custom")};function Yw(e){const[,t,n]=e.split(/(\d+)/);return[t,n]}function Xw(e){return/^(?!0)\d+(px|em|rem|vw|vh|%)?$/i.test(e)}function Zw(e,t,n){return n&&!t.length?null:e?function(e,t){return[$w,...e,...t?[]:[qw]].map(e=>{let{slug:t,name:n,size:r}=e;return{key:t,name:n,size:r,__experimentalHint:r&&Xw(r)&&parseInt(r)}})}(t,n):function(e){return e.map(e=>{let{slug:t,size:n,name:r}=e,o=n;if("string"==typeof n){const[e]=Yw(n);o=e}return{key:t,value:n,label:o,name:r}})}(t)}var Jw=Object(s.forwardRef)((function(e,t){var n,r;let{fallbackFontSize:o,fontSizes:a=[],disableCustomFontSizes:i=!1,onChange:l,value:u,withSlider:d=!1,withReset:p=!0}=e;const b=[typeof u,typeof(null==a||null===(n=a[0])||void 0===n?void 0:n.size)].includes("string"),h=b?parseInt(u):u,v="number"==typeof u||(null==u||null===(r=u.endsWith)||void 0===r?void 0:r.call(u,"px")),g=$d({availableUnits:["px","em","rem"]}),y=a.length>5||a.some(e=>{let{size:t}=e;return!Xw(t)}),O=Object(s.useMemo)(()=>Zw(y,a,i),[y,a,i]),j=function(e,t){return t?e.find(e=>e.size===t)||qw:$w}(a,u),w="custom"===j.slug,[x,_]=Object(s.useState)(!i&&w),E=Object(s.useMemo)(()=>{if(x)return`(${Object(f.__)("Custom")})`;if(w)return Xw(u)&&`(${u})`;if(y)return Xw(null==j?void 0:j.size)&&`(${null==j?void 0:j.size})`;let e=j.name;if("string"==typeof j.size){const[,t]=Yw(j.size);e+=`(${t})`}return e},[x,null==j?void 0:j.slug,u,w]);if(!O)return null;const k=Object(f.sprintf)(Object(f.__)("Currently selected font size: %s"),j.name),S="components-font-size-picker";return Object(s.createElement)("fieldset",Object(c.a)({className:S},t?{}:{ref:t}),Object(s.createElement)(m.a,{as:"legend"},Object(f.__)("Font size")),Object(s.createElement)(Ms,{justify:"space-between",className:S+"__header"},Object(s.createElement)(ms,null,Object(f.__)("Size"),E&&Object(s.createElement)("span",{className:S+"__header__hint"},E)),!i&&Object(s.createElement)(ms,null,Object(s.createElement)(ld.a,{label:x?Object(f.__)("Use size preset"):Object(f.__)("Set custom size"),showTooltip:!1,icon:tb.a,onClick:()=>{_(!x)},isPressed:x,isSmall:!0}))),Object(s.createElement)("div",{className:S+"__controls"},!!a.length&&y&&!x&&Object(s.createElement)(By,{className:S+"__select",label:Object(f.__)("Font size"),hideLabelFromVision:!0,describedBy:k,options:O,value:O.find(e=>e.key===j.slug),onChange:e=>{let{selectedItem:t}=e;l(b?t.size:Number(t.size)),"custom"===t.key&&_(!0)}}),!y&&!x&&Object(s.createElement)(Tw,{label:Object(f.__)("Font size"),hideLabelFromVision:!0,value:u,onChange:e=>{l(b?e:Number(e))},isBlock:!0},O.map(e=>Object(s.createElement)(Gw,{key:e.key,value:e.value,label:e.label,"aria-label":e.name}))),!d&&!i&&x&&Object(s.createElement)(Ms,{justify:"space-between",className:S+"__custom-size-control"},Object(s.createElement)(ms,{isBlock:!0},Object(s.createElement)(Zd,{label:Object(f.__)("Custom"),labelPosition:"top",hideLabelFromVision:!0,value:u,onChange:e=>{0!==parseFloat(e)&&e?l(b?e:parseInt(e,10)):l(void 0)},units:!!b&&g})),p&&Object(s.createElement)(ms,{isBlock:!0},Object(s.createElement)(ld.a,{className:"components-color-palette__clear",disabled:void 0===u,onClick:()=>{l(void 0)},isSmall:!0,variant:"secondary"},Object(f.__)("Reset"))))),d&&Object(s.createElement)(zb,{className:S+"__custom-input",label:Object(f.__)("Custom Size"),value:v&&h||"",initialPosition:o,onChange:e=>{l(b?e+"px":e)},min:12,max:100}))}));var Qw=function(e){let{accept:t,children:n,multiple:r=!1,onChange:o,render:a,...i}=e;const l=Object(s.useRef)(),u=()=>{l.current.click()},d=a?a({openFileDialog:u}):Object(s.createElement)(ld.a,Object(c.a)({onClick:u},i),n);return Object(s.createElement)("div",{className:"components-form-file-upload"},d,Object(s.createElement)("input",{type:"file",ref:l,multiple:r,style:{display:"none"},accept:t,onChange:o}))};var ex=function(e){let{className:t,checked:n,id:r,disabled:o,onChange:a=l.noop,...i}=e;const u=d()("components-form-toggle",t,{"is-checked":n,"is-disabled":o});return Object(s.createElement)("span",{className:u},Object(s.createElement)("input",Object(c.a)({className:"components-form-toggle__input",id:r,type:"checkbox",checked:n,onChange:a,disabled:o},i)),Object(s.createElement)("span",{className:"components-form-toggle__track"}),Object(s.createElement)("span",{className:"components-form-toggle__thumb"}))},tx=n("rl8x"),nx=n.n(tx);function rx(e){let{value:t,status:n,title:r,displayTransform:o,isBorderless:a=!1,disabled:i=!1,onClickRemove:c=l.noop,onMouseEnter:u,onMouseLeave:b,messages:h,termPosition:v,termsCount:g}=e;const y=Object(p.useInstanceId)(rx),O=d()("components-form-token-field__token",{"is-error":"error"===n,"is-success":"success"===n,"is-validating":"validating"===n,"is-borderless":a,"is-disabled":i}),j=o(t),w=Object(f.sprintf)(Object(f.__)("%1$s (%2$s of %3$s)"),j,v,g);return Object(s.createElement)("span",{className:O,onMouseEnter:u,onMouseLeave:b,title:r},Object(s.createElement)("span",{className:"components-form-token-field__token-text",id:"components-form-token-field__token-text-"+y},Object(s.createElement)(m.a,{as:"span"},w),Object(s.createElement)("span",{"aria-hidden":"true"},j)),Object(s.createElement)(ld.a,{className:"components-form-token-field__remove-token",icon:_g.a,onClick:!i&&(()=>c({value:t})),label:h.remove,"aria-describedby":"components-form-token-field__token-text-"+y}))}var ox=Object(p.createHigherOrderComponent)(e=>t=>Object(s.createElement)(e,Object(c.a)({},t,{speak:cd.speak,debouncedSpeak:Object(p.useDebounce)(cd.speak,500)})),"withSpokenMessages");const ax={incompleteTokenValue:"",inputOffsetFromEnd:0,isActive:!1,isExpanded:!1,selectedSuggestionIndex:-1,selectedSuggestionScroll:!1};class ix extends s.Component{constructor(){super(...arguments),this.state=ax,this.onKeyDown=this.onKeyDown.bind(this),this.onKeyPress=this.onKeyPress.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.deleteTokenBeforeInput=this.deleteTokenBeforeInput.bind(this),this.deleteTokenAfterInput=this.deleteTokenAfterInput.bind(this),this.addCurrentToken=this.addCurrentToken.bind(this),this.onContainerTouched=this.onContainerTouched.bind(this),this.renderToken=this.renderToken.bind(this),this.onTokenClickRemove=this.onTokenClickRemove.bind(this),this.onSuggestionHovered=this.onSuggestionHovered.bind(this),this.onSuggestionSelected=this.onSuggestionSelected.bind(this),this.onInputChange=this.onInputChange.bind(this),this.bindInput=this.bindInput.bind(this),this.bindTokensAndInput=this.bindTokensAndInput.bind(this),this.updateSuggestions=this.updateSuggestions.bind(this)}componentDidUpdate(e){this.state.isActive&&!this.input.hasFocus()&&this.input.focus();const{suggestions:t,value:n}=this.props,r=!nx()(t,e.suggestions);(r||n!==e.value)&&this.updateSuggestions(r)}static getDerivedStateFromProps(e,t){return e.disabled&&t.isActive?{isActive:!1,incompleteTokenValue:""}:null}bindInput(e){this.input=e}bindTokensAndInput(e){this.tokensAndInput=e}onFocus(e){const{__experimentalExpandOnFocus:t}=this.props;this.input.hasFocus()||e.target===this.tokensAndInput?this.setState({isActive:!0,isExpanded:!!t||this.state.isExpanded}):this.setState({isActive:!1}),"function"==typeof this.props.onFocus&&this.props.onFocus(e)}onBlur(){this.inputHasValidValue()?this.setState({isActive:!1}):this.setState(ax)}onKeyDown(e){let t=!1;if(!e.defaultPrevented){switch(e.keyCode){case zu.BACKSPACE:t=this.handleDeleteKey(this.deleteTokenBeforeInput);break;case zu.ENTER:t=this.addCurrentToken();break;case zu.LEFT:t=this.handleLeftArrowKey();break;case zu.UP:t=this.handleUpArrowKey();break;case zu.RIGHT:t=this.handleRightArrowKey();break;case zu.DOWN:t=this.handleDownArrowKey();break;case zu.DELETE:t=this.handleDeleteKey(this.deleteTokenAfterInput);break;case zu.SPACE:this.props.tokenizeOnSpace&&(t=this.addCurrentToken());break;case zu.ESCAPE:t=this.handleEscapeKey(e)}t&&e.preventDefault()}}onKeyPress(e){let t=!1;switch(e.charCode){case 44:t=this.handleCommaKey()}t&&e.preventDefault()}onContainerTouched(e){e.target===this.tokensAndInput&&this.state.isActive&&e.preventDefault()}onTokenClickRemove(e){this.deleteToken(e.value),this.input.focus()}onSuggestionHovered(e){const t=this.getMatchingSuggestions().indexOf(e);t>=0&&this.setState({selectedSuggestionIndex:t,selectedSuggestionScroll:!1})}onSuggestionSelected(e){this.addNewToken(e)}onInputChange(e){const t=e.value,n=this.props.tokenizeOnSpace?/[ ,\t]+/:/[,\t]+/,r=t.split(n),o=Object(l.last)(r)||"";r.length>1&&this.addNewTokens(r.slice(0,-1)),this.setState({incompleteTokenValue:o},this.updateSuggestions),this.props.onInputChange(o)}handleDeleteKey(e){let t=!1;return this.input.hasFocus()&&this.isInputEmpty()&&(e(),t=!0),t}handleLeftArrowKey(){let e=!1;return this.isInputEmpty()&&(this.moveInputBeforePreviousToken(),e=!0),e}handleRightArrowKey(){let e=!1;return this.isInputEmpty()&&(this.moveInputAfterNextToken(),e=!0),e}handleUpArrowKey(){return this.setState((e,t)=>({selectedSuggestionIndex:(0===e.selectedSuggestionIndex?this.getMatchingSuggestions(e.incompleteTokenValue,t.suggestions,t.value,t.maxSuggestions,t.saveTransform).length:e.selectedSuggestionIndex)-1,selectedSuggestionScroll:!0})),!0}handleDownArrowKey(){return this.setState((e,t)=>({selectedSuggestionIndex:(e.selectedSuggestionIndex+1)%this.getMatchingSuggestions(e.incompleteTokenValue,t.suggestions,t.value,t.maxSuggestions,t.saveTransform).length,selectedSuggestionScroll:!0})),!0}handleEscapeKey(e){return this.setState({incompleteTokenValue:e.target.value,isExpanded:!1,selectedSuggestionIndex:-1,selectedSuggestionScroll:!1}),!0}handleCommaKey(){return this.inputHasValidValue()&&this.addNewToken(this.state.incompleteTokenValue),!0}moveInputToIndex(e){this.setState((t,n)=>({inputOffsetFromEnd:n.value.length-Math.max(e,-1)-1}))}moveInputBeforePreviousToken(){this.setState((e,t)=>({inputOffsetFromEnd:Math.min(e.inputOffsetFromEnd+1,t.value.length)}))}moveInputAfterNextToken(){this.setState(e=>({inputOffsetFromEnd:Math.max(e.inputOffsetFromEnd-1,0)}))}deleteTokenBeforeInput(){const e=this.getIndexOfInput()-1;e>-1&&this.deleteToken(this.props.value[e])}deleteTokenAfterInput(){const e=this.getIndexOfInput();e<this.props.value.length&&(this.deleteToken(this.props.value[e]),this.moveInputToIndex(e))}addCurrentToken(){let e=!1;const t=this.getSelectedSuggestion();return t?(this.addNewToken(t),e=!0):this.inputHasValidValue()&&(this.addNewToken(this.state.incompleteTokenValue),e=!0),e}addNewTokens(e){const t=Object(l.uniq)(e.map(this.props.saveTransform).filter(Boolean).filter(e=>!this.valueContainsToken(e)));if(t.length>0){const e=Object(l.clone)(this.props.value);e.splice.apply(e,[this.getIndexOfInput(),0].concat(t)),this.props.onChange(e)}}addNewToken(e){const{__experimentalExpandOnFocus:t,__experimentalValidateInput:n}=this.props;n(e)?(this.addNewTokens([e]),this.props.speak(this.props.messages.added,"assertive"),this.setState({incompleteTokenValue:"",selectedSuggestionIndex:-1,selectedSuggestionScroll:!1,isExpanded:!t}),this.state.isActive&&this.input.focus()):this.props.speak(this.props.messages.__experimentalInvalid,"assertive")}deleteToken(e){const t=this.props.value.filter(t=>this.getTokenValue(t)!==this.getTokenValue(e));this.props.onChange(t),this.props.speak(this.props.messages.removed,"assertive")}getTokenValue(e){return"object"==typeof e?e.value:e}getMatchingSuggestions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.incompleteTokenValue,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.suggestions,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props.value,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.props.maxSuggestions,o=(arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.props.saveTransform)(e);const a=[],i=[];return 0===o.length?t=Object(l.difference)(t,n):(o=o.toLocaleLowerCase(),Object(l.each)(t,e=>{const t=e.toLocaleLowerCase().indexOf(o);-1===n.indexOf(e)&&(0===t?a.push(e):t>0&&i.push(e))}),t=a.concat(i)),Object(l.take)(t,r)}getSelectedSuggestion(){if(-1!==this.state.selectedSuggestionIndex)return this.getMatchingSuggestions()[this.state.selectedSuggestionIndex]}valueContainsToken(e){return Object(l.some)(this.props.value,t=>this.getTokenValue(e)===this.getTokenValue(t))}getIndexOfInput(){return this.props.value.length-this.state.inputOffsetFromEnd}isInputEmpty(){return 0===this.state.incompleteTokenValue.length}inputHasValidValue(){return this.props.saveTransform(this.state.incompleteTokenValue).length>0}updateSuggestions(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const{__experimentalExpandOnFocus:t}=this.props,{incompleteTokenValue:n}=this.state,r=n.trim().length>1,o=this.getMatchingSuggestions(n),a=o.length>0,i={isExpanded:t||r&&a};if(e&&(i.selectedSuggestionIndex=-1,i.selectedSuggestionScroll=!1),this.setState(i),r){const{debouncedSpeak:e}=this.props;e(a?Object(f.sprintf)(Object(f._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",o.length),o.length):Object(f.__)("No results."),"assertive")}}renderTokensAndInput(){const e=Object(l.map)(this.props.value,this.renderToken);return e.splice(this.getIndexOfInput(),0,this.renderInput()),e}renderToken(e,t,n){const r=this.getTokenValue(e),o=e.status?e.status:void 0,a=t+1,i=n.length;return Object(s.createElement)(rx,{key:"token-"+r,value:r,status:o,title:e.title,displayTransform:this.props.displayTransform,onClickRemove:this.onTokenClickRemove,isBorderless:e.isBorderless||this.props.isBorderless,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,disabled:"error"!==o&&this.props.disabled,messages:this.props.messages,termsCount:i,termPosition:a})}renderInput(){const{autoCapitalize:e,autoComplete:t,maxLength:n,placeholder:r,value:o,instanceId:a}=this.props;let i={instanceId:a,autoCapitalize:e,autoComplete:t,placeholder:0===o.length?r:"",ref:this.bindInput,key:"input",disabled:this.props.disabled,value:this.state.incompleteTokenValue,onBlur:this.onBlur,isExpanded:this.state.isExpanded,selectedSuggestionIndex:this.state.selectedSuggestionIndex};return n&&o.length>=n||(i={...i,onChange:this.onInputChange}),Object(s.createElement)(kg,i)}render(){const{disabled:e,label:t=Object(f.__)("Add item"),instanceId:n,className:r,__experimentalShowHowTo:o}=this.props,{isExpanded:a}=this.state,i=d()(r,"components-form-token-field__input-container",{"is-active":this.state.isActive,"is-disabled":e});let c={className:"components-form-token-field",tabIndex:"-1"};const l=this.getMatchingSuggestions();return e||(c=Object.assign({},c,{onKeyDown:this.onKeyDown,onKeyPress:this.onKeyPress,onFocus:this.onFocus})),Object(s.createElement)("div",c,Object(s.createElement)("label",{htmlFor:"components-form-token-input-"+n,className:"components-form-token-field__label"},t),Object(s.createElement)("div",{ref:this.bindTokensAndInput,className:i,tabIndex:"-1",onMouseDown:this.onContainerTouched,onTouchStart:this.onContainerTouched},this.renderTokensAndInput(),a&&Object(s.createElement)(Tg,{instanceId:n,match:this.props.saveTransform(this.state.incompleteTokenValue),displayTransform:this.props.displayTransform,suggestions:l,selectedIndex:this.state.selectedSuggestionIndex,scrollIntoView:this.state.selectedSuggestionScroll,onHover:this.onSuggestionHovered,onSelect:this.onSuggestionSelected})),o&&Object(s.createElement)("p",{id:"components-form-token-suggestions-howto-"+n,className:"components-form-token-field__help"},this.props.tokenizeOnSpace?Object(f.__)("Separate with commas, spaces, or the Enter key."):Object(f.__)("Separate with commas or the Enter key.")))}}ix.defaultProps={suggestions:Object.freeze([]),maxSuggestions:100,value:Object.freeze([]),displayTransform:l.identity,saveTransform:e=>e.trim(),onChange:()=>{},onInputChange:()=>{},isBorderless:!1,disabled:!1,tokenizeOnSpace:!1,messages:{added:Object(f.__)("Item added."),removed:Object(f.__)("Item removed."),remove:Object(f.__)("Remove item"),__experimentalInvalid:Object(f.__)("Invalid item")},__experimentalExpandOnFocus:!1,__experimentalValidateInput:()=>!0,__experimentalShowHowTo:!0};var cx=ox(Object(p.withInstanceId)(ix)),sx=n("Jx1U"),lx=n.n(sx);const ux="linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)",dx={type:"angular",value:90},fx=[{value:"linear-gradient",label:Object(f.__)("Linear")},{value:"radial-gradient",label:Object(f.__)("Radial")}],px={top:0,"top right":45,"right top":45,right:90,"right bottom":135,"bottom right":135,bottom:180,"bottom left":225,"left bottom":225,left:270,"top left":315,"left top":315};function bx(e){let{type:t,value:n,length:r}=e;return`${function(e){let{type:t,value:n}=e;return"literal"===t?n:"hex"===t?"#"+n:`${t}(${n.join(",")})`}({type:t,value:n})} ${function(e){if(!e)return"";const{value:t,type:n}=e;return`${t}${n}`}(r)}`}function hx(e){let{type:t,orientation:n,colorStops:r}=e;const o=function(e){if(e&&"angular"===e.type)return e.value+"deg"}(n),a=r.sort((e,t)=>Object(l.get)(e,["length","value"],0)-Object(l.get)(t,["length","value"],0)).map(bx);return`${t}(${Object(l.compact)([o,...a]).join(",")})`}function mx(e){return void 0===e.length||"%"!==e.length.type}function vx(e){switch(e.type){case"hex":return"#"+e.value;case"literal":return e.value;case"rgb":case"rgba":return`${e.type}(${e.value.join(",")})`;default:return"transparent"}}Object(_.b)([E.a]);const gx=Object(w.a)(hs,{target:"e99xvul1"})({name:"1gvx10y",styles:"flex-grow:5"}),yx=Object(w.a)(hs,{target:"e99xvul0"})({name:"1gvx10y",styles:"flex-grow:5"}),Ox=e=>{let{gradientAST:t,hasGradient:n,onChange:r}=e;const o=Object(l.get)(t,["orientation","value"],180);return Object(s.createElement)(ad,{onChange:e=>{r(hx({...t,orientation:{type:"angular",value:e}}))},labelPosition:"top",value:n?o:""})},jx=e=>{let{gradientAST:t,hasGradient:n,onChange:r}=e;const{type:o}=t;return Object(s.createElement)(db,{className:"components-custom-gradient-picker__type-picker",label:Object(f.__)("Type"),labelPosition:"top",onChange:e=>{"linear-gradient"===e&&r(hx({...t,...t.orientation?{}:{orientation:dx},type:"linear-gradient"})),"radial-gradient"===e&&r(hx({...Object(l.omit)(t,["orientation"]),type:"radial-gradient"}))},options:fx,value:n&&o})};function wx(e){let{value:t,onChange:n}=e;const r=function(e){var t;let n;try{n=lx.a.parse(e)[0],n.value=e}catch(e){n=lx.a.parse(ux)[0],n.value=ux}if("directional"===(null===(t=n.orientation)||void 0===t?void 0:t.type)&&(n.orientation.type="angular",n.orientation.value=px[n.orientation.value].toString()),n.colorStops.some(mx)){const{colorStops:e}=n,t=100/(e.length-1);e.forEach((e,n)=>{e.length={value:t*n,type:"%"}}),n.value=hx(n)}return n}(t),o=function(e){return hx({type:"linear-gradient",orientation:dx,colorStops:e.colorStops})}(r),a=r.value!==ux,i=r.colorStops.map(e=>({color:vx(e),position:parseInt(e.length.value)}));return Object(s.createElement)("div",{className:"components-custom-gradient-picker"},Object(s.createElement)(LO,{background:o,hasGradient:a,value:i,onChange:e=>{n(hx(function(e,t){return{...e,colorStops:t.map(e=>{let{position:t,color:n}=e;const{r:r,g:o,b:a,a:i}=Object(_.a)(n).toRgb();return{length:{type:"%",value:t.toString()},type:i<1?"rgba":"rgb",value:i<1?[r,o,a,i]:[r,o,a]}})}}(r,e)))}}),Object(s.createElement)(Ms,{gap:3,className:"components-custom-gradient-picker__ui-line"},Object(s.createElement)(gx,null,Object(s.createElement)(jx,{gradientAST:r,hasGradient:a,onChange:n})),Object(s.createElement)(yx,null,"linear-gradient"===r.type&&Object(s.createElement)(Ox,{gradientAST:r,hasGradient:a,onChange:n}))))}function xx(e){let{className:t,clearGradient:n,gradients:r,onChange:o,value:a,actions:i,content:c}=e;const u=Object(s.useMemo)(()=>Object(l.map)(r,e=>{let{gradient:t,name:r}=e;return Object(s.createElement)(Gv.Option,{key:t,value:t,isSelected:a===t,tooltipText:r||Object(f.sprintf)(Object(f.__)("Gradient code: %s"),t),style:{color:"rgba( 0,0,0,0 )",background:t},onClick:a===t?n:()=>o(t),"aria-label":r?Object(f.sprintf)(Object(f.__)("Gradient: %s"),r):Object(f.sprintf)(Object(f.__)("Gradient code: %s"),t)})}),[r,a,o,n]);return Object(s.createElement)(Gv,{className:t,options:u,actions:i},c)}function _x(e){let{className:t,clearGradient:n,gradients:r,onChange:o,value:a,actions:i,content:l}=e;return Object(s.createElement)(Wv,{spacing:3,className:t},r.map((e,t)=>{let{name:u,gradients:d}=e;return Object(s.createElement)(Wv,{spacing:2,key:t},Object(s.createElement)(qv,null,u),Object(s.createElement)(xx,Object(c.a)({clearGradient:n,gradients:d,onChange:o,value:a},r.length===t+1?{actions:i,content:l}:{})))}))}function Ex(e){let{className:t,gradients:n,onChange:r,value:o,clearable:a=!0,disableCustomGradients:i=!1,__experimentalHasMultipleOrigins:c}=e;const l=Object(s.useCallback)(()=>r(void 0),[r]),u=c?_x:xx;return Object(s.createElement)(u,{className:t,clearable:a,clearGradient:l,gradients:n,onChange:r,value:o,actions:a&&Object(s.createElement)(Gv.ButtonAction,{onClick:l},Object(f.__)("Clear")),content:!i&&Object(s.createElement)(wx,{value:o,onChange:r})})}const kx={bottom:{alignItems:"flex-end",justifyContent:"center"},bottomLeft:{alignItems:"flex-start",justifyContent:"flex-end"},bottomRight:{alignItems:"flex-end",justifyContent:"flex-end"},center:{alignItems:"center",justifyContent:"center"},spaced:{alignItems:"center",justifyContent:"space-between"},left:{alignItems:"center",justifyContent:"flex-start"},right:{alignItems:"center",justifyContent:"flex-end"},stretch:{alignItems:"stretch"},top:{alignItems:"flex-start",justifyContent:"center"},topLeft:{alignItems:"flex-start",justifyContent:"flex-start"},topRight:{alignItems:"flex-start",justifyContent:"flex-end"}};function Sx(e){const{align:t,alignment:n,className:r,columnGap:o,columns:a=2,gap:i=3,isInline:c=!1,justify:l,rowGap:u,rows:d,templateColumns:f,templateRows:p,...b}=Object(is.a)(e,"Grid"),h=js(Array.isArray(a)?a:[a]),m=js(Array.isArray(d)?d:[d]),v=f||!!a&&`repeat( ${h}, 1fr )`,g=p||!!d&&`repeat( ${m}, 1fr )`,y=Object(ps.a)();return{...b,className:Object(s.useMemo)(()=>{const e=function(e){return e?kx[e]:{}}(n),a=Object(x.a)({alignItems:t,display:c?"inline-grid":"grid",gap:`calc( ${Ks.gridBase} * ${i} )`,gridTemplateColumns:v||void 0,gridTemplateRows:g||void 0,gridRowGap:u,gridColumnGap:o,justifyContent:l,verticalAlign:c?"middle":void 0,...e},"","");return y(a,r)},[t,n,r,o,i,v,g,c,l,u])}}var Cx=Object(os.a)((function(e,t){const n=Sx(e);return Object(s.createElement)(as.a,Object(c.a)({},n,{ref:t}))}),"Grid");const Px=new Set(["alert","status","log","marquee","timer"]);let Tx=[],Mx=!1;function Dx(e){if(Mx)return;const t=document.body.children;Object(l.forEach)(t,t=>{t!==e&&function(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||Px.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),Tx.push(t))}),Mx=!0}var Ix=n("vAQN"),Rx=n("+1VY"),Ax=n("7Cbv");const Nx=new Set,Lx=zs()(e=>{let t=Ax.a().replace(/[0-9]/g,"");for(;Nx.has(t);)t=Ax.a().replace(/[0-9]/g,"");return Nx.add(t),Object(Rx.a)({container:e,key:t})});function Fx(e){let{children:t,document:n}=e;if(!n)return null;const r=Lx(n.head);return Object(s.createElement)(Ix.a,{value:r},t)}let zx=0;function Bx(e){let{bodyOpenClassName:t="modal-open",role:n="dialog",title:r=null,focusOnMount:o=!0,shouldCloseOnEsc:a=!0,shouldCloseOnClickOutside:i=!0,isDismissable:u,isDismissible:b=u||!0,aria:h={labelledby:null,describedby:null},onRequestClose:m,icon:v,closeButtonLabel:g,children:y,style:O,overlayClassName:j,className:w,contentLabel:x,onKeyDown:_,isFullScreen:E=!1}=e;const k=Object(s.useRef)(),S=Object(p.useInstanceId)(Bx),C=r?"components-modal-header-"+S:h.labelledby,P=Object(p.useFocusOnMount)(o),T=Object(p.useConstrainedTabbing)(),M=Object(p.useFocusReturn)(),D=Object(p.__experimentalUseFocusOutside)(m);return Object(s.useEffect)(()=>(zx++,1===zx&&(Dx(k.current),document.body.classList.add(t)),()=>{zx--,0===zx&&(document.body.classList.remove(t),Mx&&(Object(l.forEach)(Tx,e=>{e.removeAttribute("aria-hidden")}),Tx=[],Mx=!1))}),[]),u&&gs()("isDismissable prop of the Modal component",{since:"5.4",alternative:"isDismissible prop (renamed) of the Modal component"}),Object(s.createPortal)(Object(s.createElement)("div",{ref:k,className:d()("components-modal__screen-overlay",j),onKeyDown:function(e){a&&e.keyCode===zu.ESCAPE&&!e.defaultPrevented&&(e.preventDefault(),m&&m(e))}},Object(s.createElement)(Fx,{document:document},Object(s.createElement)("div",Object(c.a)({className:d()("components-modal__frame",w,{"is-full-screen":E}),style:O,ref:Object(p.useMergeRefs)([T,M,P]),role:n,"aria-label":x,"aria-labelledby":x?null:C,"aria-describedby":h.describedby,tabIndex:"-1"},i?D:{},{onKeyDown:_}),Object(s.createElement)("div",{className:"components-modal__content",role:"document"},Object(s.createElement)("div",{className:"components-modal__header"},Object(s.createElement)("div",{className:"components-modal__header-heading-container"},v&&Object(s.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},v),r&&Object(s.createElement)("h1",{id:C,className:"components-modal__header-heading"},r)),b&&Object(s.createElement)(ld.a,{onClick:m,icon:_g.a,label:g||Object(f.__)("Close dialog")})),y)))),document.body)}const Hx=e=>{let{isSelected:t}=e;return Object(s.createElement)(i.SVG,{width:"8",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(s.createElement)(i.Circle,{cx:"4",cy:"4",r:"4",fill:t?"#419ECD":"#E1E3E6"}))};function Vx(e){let{currentPage:t,numberOfPages:n,setCurrentPage:r}=e;return Object(s.createElement)("ul",{className:"components-guide__page-control","aria-label":Object(f.__)("Guide controls")},Object(l.times)(n,e=>Object(s.createElement)("li",{key:e,"aria-current":e===t?"step":void 0},Object(s.createElement)(ld.a,{key:e,icon:Object(s.createElement)(Hx,{isSelected:e===t}),"aria-label":Object(f.sprintf)(Object(f.__)("Page %1$d of %2$d"),e+1,n),onClick:()=>r(e)}))))}function Wx(e){const t=Object(s.useRef)();return Object(s.useLayoutEffect)(()=>{const{ownerDocument:e}=t.current,{activeElement:n,body:r}=e;n&&n!==r||t.current.focus()},[]),Object(s.createElement)(ld.a,Object(c.a)({},e,{ref:t}))}function Ux(e){let{children:t,className:n,contentLabel:r,finishButtonText:o,onFinish:a,pages:i=[]}=e;const[c,l]=Object(s.useState)(0);Object(s.useEffect)(()=>{s.Children.count(t)&&gs()("Passing children to <Guide>",{since:"5.5",alternative:"the `pages` prop"})},[t]),s.Children.count(t)&&(i=s.Children.map(t,e=>({content:e})));const u=c>0,p=c<i.length-1,b=()=>{u&&l(c-1)},h=()=>{p&&l(c+1)};return 0===i.length?null:Object(s.createElement)(Bx,{className:d()("components-guide",n),contentLabel:r,onRequestClose:a,onKeyDown:e=>{e.keyCode===zu.LEFT?b():e.keyCode===zu.RIGHT&&h()}},Object(s.createElement)("div",{className:"components-guide__container"},Object(s.createElement)("div",{className:"components-guide__page"},i[c].image,i.length>1&&Object(s.createElement)(Vx,{currentPage:c,numberOfPages:i.length,setCurrentPage:l}),i[c].content,!p&&Object(s.createElement)(Wx,{className:"components-guide__inline-finish-button",onClick:a},o||Object(f.__)("Finish"))),Object(s.createElement)("div",{className:"components-guide__footer"},u&&Object(s.createElement)(ld.a,{className:"components-guide__back-button",onClick:b},Object(f.__)("Previous")),p&&Object(s.createElement)(ld.a,{className:"components-guide__forward-button",onClick:h},Object(f.__)("Next")),!p&&Object(s.createElement)(Wx,{className:"components-guide__finish-button",onClick:a},o||Object(f.__)("Finish")))))}function Kx(e){return Object(s.useEffect)(()=>{gs()("<GuidePage>",{since:"5.5",alternative:"the `pages` prop in <Guide>"})},[]),Object(s.createElement)("div",e)}var Gx=Object(s.forwardRef)((function(e,t){let{labelPosition:n,size:r,tooltip:o,label:a,...i}=e;return gs()("wp.components.IconButton",{since:"5.4",alternative:"wp.components.Button"}),Object(s.createElement)(ld.a,Object(c.a)({},i,{ref:t,tooltipPosition:n,iconSize:r,showTooltip:void 0!==o?!!o:void 0,label:o||a}))}));function $x(e){let{target:t,callback:n,shortcut:r,bindGlobal:o,eventName:a}=e;return Object(p.useKeyboardShortcut)(r,n,{bindGlobal:o,target:t,eventName:a}),null}var qx=function(e){let{children:t,shortcuts:n,bindGlobal:r,eventName:o}=e;const a=Object(s.useRef)(),i=Object(l.map)(n,(e,t)=>Object(s.createElement)($x,{key:t,shortcut:t,callback:e,bindGlobal:r,eventName:o,target:a}));return s.Children.count(t)?Object(s.createElement)("div",{ref:a},i,t):i};var Yx=function e(t){const{children:n,className:r="",label:o,hideSeparator:a}=t,i=Object(p.useInstanceId)(e);if(!s.Children.count(n))return null;const c="components-menu-group-label-"+i,l=d()(r,"components-menu-group",{"has-hidden-separator":a});return Object(s.createElement)("div",{className:l},o&&Object(s.createElement)("div",{className:"components-menu-group__label",id:c,"aria-hidden":"true"},o),Object(s.createElement)("div",{role:"group","aria-labelledby":o?c:null},n))},Xx=n("Cw+6");var Zx=Object(s.forwardRef)((function(e,t){let{children:n,info:r,className:o,icon:a,iconPosition:i="right",shortcut:u,isSelected:f,role:p="menuitem",...b}=e;return o=d()("components-menu-item__button",o),r&&(n=Object(s.createElement)("span",{className:"components-menu-item__info-wrapper"},Object(s.createElement)("span",{className:"components-menu-item__item"},n),Object(s.createElement)("span",{className:"components-menu-item__info"},r))),a&&!Object(l.isString)(a)&&(a=Object(s.cloneElement)(a,{className:d()("components-menu-items__item-icon",{"has-icon-right":"right"===i})})),Object(s.createElement)(ld.a,Object(c.a)({ref:t,"aria-checked":"menuitemcheckbox"===p||"menuitemradio"===p?f:void 0,role:p,icon:"left"===i?a:void 0,className:o},b),Object(s.createElement)("span",{className:"components-menu-item__item"},n),Object(s.createElement)(Xx.a,{className:"components-menu-item__shortcut",shortcut:u}),a&&"right"===i&&Object(s.createElement)(fb.a,{icon:a}))}));function Jx(e){let{choices:t=[],onHover:n=l.noop,onSelect:r,value:o}=e;return t.map(e=>{const t=o===e.value;return Object(s.createElement)(Zx,{key:e.value,role:"menuitemradio",icon:t&&Yp.a,info:e.info,isSelected:t,shortcut:e.shortcut,className:"components-menu-items-choice",onClick:()=>{t||r(e.value)},onMouseEnter:()=>n(e.value),onMouseLeave:()=>n(null),"aria-label":e["aria-label"]},e.label)})}var Qx=n("k8OV");var e_=Object(s.forwardRef)((function(e,t){let{eventToOffset:n,...r}=e;return Object(s.createElement)(rg,Object(c.a)({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!0,eventToOffset:e=>{const{keyCode:t,shiftKey:r}=e;return zu.TAB===t?r?-1:1:n?n(e):void 0}},r))}));const t_="root",n_=Object(s.createContext)({activeItem:void 0,activeMenu:t_,setActiveMenu:l.noop,isMenuEmpty:l.noop,navigationTree:{items:{},getItem:l.noop,addItem:l.noop,removeItem:l.noop,menus:{},getMenu:l.noop,addMenu:l.noop,removeMenu:l.noop,childMenu:{},traverseMenu:l.noop,isMenuEmpty:l.noop}}),r_=()=>Object(s.useContext)(n_);var o_=n("cGtP");var a_=Object(s.forwardRef)((function e(t,n){let{className:r,onChange:o,onKeyDown:a,value:i,label:c,placeholder:l=Object(f.__)("Search"),hideLabelFromVision:u=!0,help:b,onClose:h}=t;const m=Object(p.useInstanceId)(e),v=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=Object(s.useRef)(null);return Object(s.useEffect)(()=>{t.forEach(e=>{e&&("function"==typeof e?e(r.current):e.current=r.current)})},[t]),r}(n),g="components-search-control-"+m;return Object(s.createElement)(jd,{label:c,id:g,hideLabelFromVision:u,help:b,className:d()(r,"components-search-control")},Object(s.createElement)("div",{className:"components-search-control__input-wrapper"},Object(s.createElement)("input",{ref:v,className:"components-search-control__input",id:g,type:"search",placeholder:l,onChange:e=>o(e.target.value),onKeyDown:a,autoComplete:"off",value:i||""}),Object(s.createElement)("div",{className:"components-search-control__icon"},h?Object(s.createElement)(ld.a,{icon:_g.a,label:Object(f.__)("Close search"),onClick:h}):i?Object(s.createElement)(ld.a,{icon:_g.a,label:Object(f.__)("Reset search"),onClick:()=>{o(""),v.current.focus()}}):Object(s.createElement)(qp.a,{icon:o_.a}))))}));const i_=Object(w.a)("div",{target:"ejwewyf10"})("width:100%;box-sizing:border-box;padding:0 ",ws(4),";overflow:hidden;"),c_=Object(w.a)("div",{target:"ejwewyf9"})("margin-top:",ws(6),";margin-bottom:",ws(6),";display:flex;flex-direction:column;ul{padding:0;margin:0;list-style:none;}.components-navigation__back-button{margin-bottom:",ws(6),";}.components-navigation__group+.components-navigation__group{margin-top:",ws(6),";}"),s_=Object(w.a)(ld.a,{target:"ejwewyf8"})({name:"26l0q2",styles:"&.is-tertiary{color:inherit;opacity:0.7;&:hover:not( :disabled ){opacity:1;box-shadow:none;color:inherit;}&:active:not( :disabled ){background:transparent;opacity:1;color:inherit;}}"}),l_=Object(w.a)("div",{target:"ejwewyf7"})({name:"1aubja5",styles:"overflow:hidden;width:100%"}),u_=Object(w.a)("span",{target:"ejwewyf6"})("height:",ws(6),";.components-button.is-small{color:inherit;opacity:0.7;margin-right:",ws(1),";padding:0;&:active:not( :disabled ){background:none;opacity:1;color:inherit;}&:hover:not( :disabled ){box-shadow:none;opacity:1;color:inherit;}}"),d_=Object(w.a)(a_,{target:"ejwewyf5"})({name:"za3n3e",styles:"input[type='search'].components-search-control__input{margin:0;background:#303030;color:#fff;&:focus{background:#434343;color:#fff;}&::placeholder{color:rgba( 255, 255, 255, 0.6 );}}svg{fill:white;}.components-button.has-icon{padding:0;min-width:auto;}"}),f_=Object(w.a)($v,{target:"ejwewyf4"})("min-height:",ws(12),";align-items:center;color:inherit;display:flex;justify-content:space-between;margin-bottom:",ws(2),";padding:",()=>Object(f.isRTL)()?`${ws(1)} ${ws(4)} ${ws(1)} ${ws(2)}`:`${ws(1)} ${ws(2)} ${ws(1)} ${ws(4)}`,";"),p_=Object(w.a)("li",{target:"ejwewyf3"})("border-radius:2px;color:inherit;margin-bottom:0;>button,>a.components-button,>a{width:100%;color:inherit;opacity:0.7;padding:",ws(2)," ",ws(4),";",Ps({textAlign:"left"},{textAlign:"right"})," &:hover,&:focus:not( [aria-disabled='true'] ):active,&:active:not( [aria-disabled='true'] ):active{color:inherit;opacity:1;}}&.is-active{background-color:",N.theme,";color:",S.white,";>button,>a{color:",S.white,";opacity:1;}}>svg path{color:",C.lightGray.ui,";}"),b_=Object(w.a)("div",{target:"ejwewyf2"})("display:flex;align-items:center;height:auto;min-height:40px;margin:0;padding:",ws(1.5)," ",ws(4),";font-weight:400;line-height:20px;width:100%;color:inherit;opacity:0.7;"),h_=Object(w.a)("span",{target:"ejwewyf1"})("margin-left:",()=>Object(f.isRTL)()?"0":ws(2),";margin-right:",()=>Object(f.isRTL)()?ws(2):"0",";display:inline-flex;padding:",ws(1)," ",ws(3),";border-radius:2px;animation:fade-in 250ms ease-out;@keyframes fade-in{from{opacity:0;}to{opacity:1;}}",F("animation"),";"),m_=Object(w.a)(cl,{target:"ejwewyf0"})(()=>Object(f.isRTL)()?"margin-left: auto;":"margin-right: auto;"," font-size:14px;line-height:20px;color:inherit;"),v_=()=>{const[e,t]=Object(s.useState)({});return{nodes:e,getNode:t=>e[t],addNode:(e,n)=>t(t=>({...t,[e]:Object(l.omit)(n,"children")})),removeNode:e=>t(t=>Object(l.omit)(t,e))}};function g_(e){let{activeItem:t,activeMenu:n=t_,children:r,className:o,onActivateMenu:a=l.noop}=e;const[i,c]=Object(s.useState)(n),[u,p]=Object(s.useState)(),b=(()=>{const{nodes:e,getNode:t,addNode:n,removeNode:r}=v_(),{nodes:o,getNode:a,addNode:i,removeNode:c}=v_(),[l,u]=Object(s.useState)({}),d=(e,t)=>{const n=[];let r,o=[e];for(;o.length>0&&(r=a(o.shift()),!r||n.includes(r.menu)||(n.push(r.menu),o=[...o,...(i=r.menu,l[i]||[])],!1!==t(r))););var i};return{items:e,getItem:t,addItem:n,removeItem:r,menus:o,getMenu:a,addMenu:(e,t)=>{u(n=>{const r={...n};return r[t.parentMenu]||(r[t.parentMenu]=[]),r[t.parentMenu].push(e),r}),i(e,t)},removeMenu:c,childMenu:l,traverseMenu:d,isMenuEmpty:e=>{let t=!0;return d(e,e=>{if(!e.isEmpty)return t=!1,!1}),t}}})(),h=Object(f.isRTL)()?"right":"left",m=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;b.getMenu(e)&&(p(t),c(e),a(e))},v=Object(s.useRef)(!1);Object(s.useEffect)(()=>{v.current||(v.current=!0)},[]),Object(s.useEffect)(()=>{n!==i&&m(n)},[n]);const g={activeItem:t,activeMenu:i,setActiveMenu:m,navigationTree:b},y=d()("components-navigation",o),O=Object(rt.b)({type:"slide-in",origin:u});return Object(s.createElement)(i_,{className:y},Object(s.createElement)("div",{key:i,className:d()({[O]:v.current&&u})},Object(s.createElement)(n_.Provider,{value:g},r)))}var y_=n("1iEr"),O_=n("2gm7");var j_=Object(s.forwardRef)((function(e,t){var n;let{backButtonLabel:r,className:o,href:a,onClick:i,parentMenu:c}=e;const{setActiveMenu:l,navigationTree:u}=r_(),p=d()("components-navigation__back-button",o),b=null===(n=u.getMenu(c))||void 0===n?void 0:n.title,h=Object(f.isRTL)()?y_.a:O_.a;return Object(s.createElement)(s_,{className:p,href:a,variant:"tertiary",ref:t,onClick:e=>{"function"==typeof i&&i(e);const t=Object(f.isRTL)()?"left":"right";c&&!e.defaultPrevented&&l(c,t)}},Object(s.createElement)(qp.a,{icon:h}),r||b||Object(f.__)("Back"))}));const w_=Object(s.createContext)({group:void 0});function x_(e){let{children:t,className:n,title:r}=e;const[o]=Object(s.useState)(Object(l.uniqueId)("group-")),{navigationTree:{items:a}}=r_(),i={group:o};if(!Object(l.find)(a,{group:o,_isVisible:!0}))return Object(s.createElement)(w_.Provider,{value:i},t);const c="components-navigation__group-title-"+o,u=d()("components-navigation__group",n);return Object(s.createElement)(w_.Provider,{value:i},Object(s.createElement)("li",{className:u},r&&Object(s.createElement)(f_,{className:"components-navigation__group-title",id:c,level:3},r),Object(s.createElement)("ul",{"aria-labelledby":c,role:"group"},t)))}function __(e){const{badge:t,title:n}=e;return Object(s.createElement)(s.Fragment,null,n&&Object(s.createElement)(m_,{className:"components-navigation__item-title",variant:"body.small",as:"span"},n),t&&Object(s.createElement)(h_,{className:"components-navigation__item-badge"},t))}const E_=Object(s.createContext)({menu:void 0,search:""}),k_=()=>Object(s.useContext)(E_),S_=e=>Object(l.deburr)(e).replace(/^\//,"").toLowerCase(),C_=(e,t)=>{const{activeMenu:n,navigationTree:{addItem:r,removeItem:o}}=r_(),{group:a}=Object(s.useContext)(w_),{menu:i,search:c}=k_();Object(s.useEffect)(()=>{const s=n===i,l=!c||((e,t)=>-1!==S_(e).indexOf(S_(t)))(t.title,c);return r(e,{...t,group:a,menu:i,_isVisible:s&&l}),()=>{o(e)}},[n,c])};function P_(e){var t;const{children:n,className:r,...o}=e,[a]=Object(s.useState)(Object(l.uniqueId)("item-"));C_(a,e);const{navigationTree:i}=r_();if(null===(t=i.getItem(a))||void 0===t||!t._isVisible)return null;const u=d()("components-navigation__item",r);return Object(s.createElement)(p_,Object(c.a)({className:u},o),n)}function T_(e){const{badge:t,children:n,className:r,href:o,item:a,navigateToMenu:i,onClick:u=l.noop,title:p,hideIfTargetMenuEmpty:b,isText:h,...m}=e,{activeItem:v,setActiveMenu:g,navigationTree:{isMenuEmpty:y}}=r_();if(b&&i&&y(i))return null;const O=d()(r,{"is-active":a&&v===a}),j=Object(f.isRTL)()?O_.a:y_.a,w=n?e:{...e,onClick:void 0},x=h?m:{as:ld.a,href:o,onClick:e=>{i&&g(i),u(e)},...m};return Object(s.createElement)(P_,Object(c.a)({},w,{className:O}),n||Object(s.createElement)(b_,x,Object(s.createElement)(__,{title:p,badge:t}),i&&Object(s.createElement)(qp.a,{icon:j})))}var M_=ox((function(e){let{debouncedSpeak:t,onCloseSearch:n,onSearch:r,search:o,title:a}=e;const{navigationTree:{items:i}}=r_(),{menu:c}=k_(),u=Object(s.useRef)();Object(s.useEffect)(()=>{const e=setTimeout(()=>{u.current.focus()},100);return()=>{clearTimeout(e)}},[]),Object(s.useEffect)(()=>{if(!o)return;const e=Object(l.filter)(i,"_isVisible").length,n=Object(f.sprintf)(Object(f._n)("%d result found.","%d results found.",e),e);t(n)},[i,o]);const d=()=>{r(""),n()},p="components-navigation__menu-title-search-"+c,b=Object(f.sprintf)(Object(f.__)("Search %s"),null==a?void 0:a.toLowerCase()).trim();return Object(s.createElement)("div",{className:"components-navigation__menu-title-search"},Object(s.createElement)(d_,{autoComplete:"off",className:"components-navigation__menu-search-input",id:p,onChange:e=>r(e),onKeyDown:function(e){e.keyCode!==zu.ESCAPE||e.defaultPrevented||(e.preventDefault(),d())},placeholder:b,onClose:d,ref:u,type:"search",value:o}))}));function D_(e){let{hasSearch:t,onSearch:n,search:r,title:o,titleAction:a}=e;const[i,c]=Object(s.useState)(!1),{menu:l}=k_(),u=Object(s.useRef)();if(!o)return null;const d="components-navigation__menu-title-"+l,p=Object(f.sprintf)(Object(f.__)("Search in %s"),o);return Object(s.createElement)(l_,{className:"components-navigation__menu-title"},!i&&Object(s.createElement)(f_,{as:"h2",className:"components-navigation__menu-title-heading",level:3},Object(s.createElement)("span",{id:d},o),(t||a)&&Object(s.createElement)(u_,null,a,t&&Object(s.createElement)(ld.a,{isSmall:!0,variant:"tertiary",label:p,onClick:()=>c(!0),ref:u},Object(s.createElement)(qp.a,{icon:o_.a})))),i&&Object(s.createElement)("div",{className:Object(rt.b)({type:"slide-in",origin:"left"})},Object(s.createElement)(M_,{onCloseSearch:()=>{c(!1),setTimeout(()=>{u.current.focus()},100)},onSearch:n,search:r,title:o})))}function I_(e){let{search:t}=e;const{navigationTree:{items:n}}=r_(),r=Object(l.filter)(n,"_isVisible").length;return!t||r?null:Object(s.createElement)(p_,null,Object(s.createElement)(b_,null,Object(f.__)("No results found.")," "))}function R_(e){const{backButtonLabel:t,children:n,className:r,hasSearch:o,menu:a=t_,onBackButtonClick:i,onSearch:c,parentMenu:l,search:u,isSearchDebouncing:f,title:p,titleAction:b}=e,[h,m]=Object(s.useState)("");(e=>{const{navigationTree:{addMenu:t,removeMenu:n}}=r_(),r=e.menu||t_;Object(s.useEffect)(()=>(t(r,{...e,menu:r}),()=>{n(r)}),[])})(e);const{activeMenu:v}=r_(),g={menu:a,search:h};if(v!==a)return Object(s.createElement)(E_.Provider,{value:g},n);const y=!!c,O=y?u:h,j=y?c:m,w="components-navigation__menu-title-"+a,x=d()("components-navigation__menu",r);return Object(s.createElement)(E_.Provider,{value:g},Object(s.createElement)(c_,{className:x},(l||i)&&Object(s.createElement)(j_,{backButtonLabel:t,parentMenu:l,onClick:i}),p&&Object(s.createElement)(D_,{hasSearch:o,onSearch:j,search:O,title:p,titleAction:b}),Object(s.createElement)(og,null,Object(s.createElement)("ul",{"aria-labelledby":w},n,O&&!f&&Object(s.createElement)(I_,{search:O})))))}const A_=Object(s.createContext)([{},()=>{}]);var N_={name:"15bx5k",styles:"overflow-x:hidden"};var L_=Object(os.a)((function(e,t){const{initialPath:n,children:r,className:o,...a}=Object(is.a)(e,"NavigatorProvider"),[i,l]=Object(s.useState)({path:n}),u=Object(ps.a)(),d=Object(s.useMemo)(()=>u(N_,o),[o]);return Object(s.createElement)(as.a,Object(c.a)({ref:t,className:d},a),Object(s.createElement)(A_.Provider,{value:[i,l]},r))}),"NavigatorProvider");var F_={name:"14x3t6z",styles:"overflow-x:auto;max-height:100%"};var z_=Object(os.a)((function(e,t){const{children:n,className:r,path:o,...a}=Object(is.a)(e,"NavigatorScreen"),i=Object(p.useReducedMotion)(),[l]=Object(s.useContext)(A_),u=l.path===o,d=Object(p.useFocusOnMount)(),b=Object(ps.a)(),h=Object(s.useMemo)(()=>b(F_,r),[r]),[m,v]=Object(s.useState)(!1);if(Object(s.useEffect)(()=>{v(!0)},[o]),!u)return null;if(i)return Object(s.createElement)(as.a,Object(c.a)({ref:t,className:h},a),n);const g={opacity:1,transition:{delay:0,duration:.14,ease:"easeInOut"},x:0},y={opacity:0,x:Object(f.isRTL)()&&l.isBack||!Object(f.isRTL)()&&!l.isBack?50:-50},O={animate:g,exit:{delay:0,opacity:0,x:!Object(f.isRTL)()&&l.isBack||Object(f.isRTL)()&&!l.isBack?50:-50,transition:{duration:.14,ease:"easeInOut"}},initial:y};return Object(s.createElement)(rs.div,Object(c.a)({ref:m?d:void 0,className:h},a,O),n)}),"NavigatorScreen");var B_=function(){const[,e]=Object(s.useContext)(A_);return{push(t,n){e({path:t,...n})}}},H_=n("w95h");function V_(e){switch(e){case"success":case"warning":case"info":return"polite";case"error":default:return"assertive"}}var W_=function(e){let{className:t,status:n="info",children:r,spokenMessage:o=r,onRemove:a=l.noop,isDismissible:i=!0,actions:c=[],politeness:u=V_(n),__unstableHTML:p,onDismiss:b=l.noop}=e;!function(e,t){const n="string"==typeof e?e:Object(s.renderToString)(e);Object(s.useEffect)(()=>{n&&Object(cd.speak)(n,t)},[n,t])}(o,u);const h=d()(t,"components-notice","is-"+n,{"is-dismissible":i});return p&&(r=Object(s.createElement)(s.RawHTML,null,r)),Object(s.createElement)("div",{className:h},Object(s.createElement)("div",{className:"components-notice__content"},r,Object(s.createElement)("div",{className:"components-notice__actions"},c.map((e,t)=>{let{className:n,label:r,isPrimary:o,variant:a,noDefaultClasses:i=!1,onClick:c,url:l}=e,u=a;return"primary"===a||i||(u=l?"link":"secondary"),void 0===u&&o&&(u="primary"),Object(s.createElement)(ld.a,{key:t,href:l,variant:u,onClick:l?void 0:c,className:d()("components-notice__action",n)},r)}))),i&&Object(s.createElement)(ld.a,{className:"components-notice__dismiss",icon:H_.a,label:Object(f.__)("Dismiss this notice"),onClick:e=>{var t;null==e||null===(t=e.preventDefault)||void 0===t||t.call(e),b(),a()},showTooltip:!1}))};var U_=function(e){let{notices:t,onRemove:n=l.noop,className:r,children:o}=e;return r=d()("components-notice-list",r),Object(s.createElement)("div",{className:r},o,[...t].reverse().map(e=>{return Object(s.createElement)(W_,Object(c.a)({},Object(l.omit)(e,["content"]),{key:e.id,onRemove:(t=e.id,()=>n(t))}),e.content);var t}))};var K_=function(e){let{label:t,children:n}=e;return Object(s.createElement)("div",{className:"components-panel__header"},t&&Object(s.createElement)("h2",null,t),n)};var G_=Object(s.forwardRef)((function(e,t){let{header:n,className:r,children:o}=e;const a=d()(r,"components-panel");return Object(s.createElement)("div",{className:a,ref:t},n&&Object(s.createElement)(K_,{label:n}),o)})),$_=n("XgzB");const q_=Object(s.forwardRef)((e,t)=>{let{isOpened:n,icon:r,title:o,...a}=e;return o?Object(s.createElement)("h2",{className:"components-panel__body-title"},Object(s.createElement)(ld.a,Object(c.a)({className:"components-panel__body-toggle","aria-expanded":n,ref:t},a),Object(s.createElement)("span",{"aria-hidden":"true"},Object(s.createElement)(fb.a,{className:"components-panel__arrow",icon:n?$_.a:cb.a})),o,r&&Object(s.createElement)(fb.a,{icon:r,className:"components-panel__icon",size:20}))):null}),Y_=Object(s.forwardRef)((function(e,t){let{buttonProps:n={},children:r,className:o,icon:a,initialOpen:i,onToggle:u=l.noop,opened:f,title:b,scrollAfterOpen:h=!0}=e;const[m,v]=Xd(f,{initial:void 0===i||i}),g=Object(s.useRef)(),y=Object(p.useReducedMotion)()?"auto":"smooth",O=Object(s.useRef)();O.current=h,qu(()=>{var e;m&&O.current&&null!==(e=g.current)&&void 0!==e&&e.scrollIntoView&&g.current.scrollIntoView({inline:"nearest",block:"nearest",behavior:y})},[m,y]);const j=d()("components-panel__body",o,{"is-opened":m});return Object(s.createElement)("div",{className:j,ref:Object(p.useMergeRefs)([g,t])},Object(s.createElement)(q_,Object(c.a)({icon:a,isOpened:m,onClick:e=>{e.preventDefault();const t=!m;v(t),u(t)},title:b},n)),"function"==typeof r?r({opened:m}):m&&r)}));Y_.displayName="PanelBody";var X_=Y_;var Z_=Object(s.forwardRef)((e,t)=>{let{className:n,children:r}=e;return Object(s.createElement)("div",{className:d()("components-panel__row",n),ref:t},r)});var J_=function(e){let{icon:t,children:n,label:r,instructions:o,className:a,notices:i,preview:l,isColumnLayout:u,...f}=e;const[b,{width:h}]=Object(p.useResizeObserver)();let m;"number"==typeof h&&(m={"is-large":h>=480,"is-medium":h>=160&&h<480,"is-small":h<160});const v=d()("components-placeholder",a,m),g=d()("components-placeholder__fieldset",{"is-column-layout":u});return Object(s.createElement)("div",Object(c.a)({},f,{className:v}),b,i,l&&Object(s.createElement)("div",{className:"components-placeholder__preview"},l),Object(s.createElement)("div",{className:"components-placeholder__label"},Object(s.createElement)(fb.a,{icon:t}),r),!!o&&Object(s.createElement)("div",{className:"components-placeholder__instructions"},o),Object(s.createElement)("div",{className:g},n))};function Q_(e){const t=e.map(e=>({children:[],parent:null,...e})),n=Object(l.groupBy)(t,"parent");if(n.null&&n.null.length)return t;const r=e=>e.map(e=>{const t=n[e.id];return{...e,children:t&&t.length?r(t):[]}});return r(n[0]||[])}function eE(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object(l.flatMap)(e,e=>[{value:e.id,label:Object(l.repeat)(" ",3*t)+Object(l.unescape)(e.name)},...eE(e.children||[],t+1)])}function tE(e){let{label:t,noOptionLabel:n,onChange:r,selectedId:o,tree:a,...i}=e;const u=Object(s.useMemo)(()=>Object(l.compact)([n&&{value:"",label:n},...eE(a)]),[n,a]);return Object(s.createElement)(db,Object(c.a)({label:t,options:u,onChange:r,value:o},i))}function nE(e){let{label:t,noOptionLabel:n,categoriesList:r,selectedCategoryId:o,onChange:a,...i}=e;const l=Object(s.useMemo)(()=>Q_(r),[r]);return Object(s.createElement)(tE,Object(c.a)({label:t,noOptionLabel:n,onChange:a,tree:l,selectedId:o},i))}function rE(e){let{label:t,noOptionLabel:n,authorList:r,selectedAuthorId:o,onChange:a}=e;if(!r)return null;const i=Q_(r);return Object(s.createElement)(tE,{label:t,noOptionLabel:n,onChange:a,tree:i,selectedId:o})}const oE=1,aE=100;function iE(e){let{authorList:t,selectedAuthorId:n,categoriesList:r,selectedCategoryId:o,categorySuggestions:a,selectedCategories:i,numberOfItems:c,order:l,orderBy:u,maxItems:d=aE,minItems:p=oE,onCategoryChange:b,onAuthorChange:h,onNumberOfItemsChange:m,onOrderChange:v,onOrderByChange:g}=e;return[v&&g&&Object(s.createElement)(db,{key:"query-controls-order-select",label:Object(f.__)("Order by"),value:`${u}/${l}`,options:[{label:Object(f.__)("Newest to oldest"),value:"date/desc"},{label:Object(f.__)("Oldest to newest"),value:"date/asc"},{label:Object(f.__)("A → Z"),value:"title/asc"},{label:Object(f.__)("Z → A"),value:"title/desc"}],onChange:e=>{const[t,n]=e.split("/");n!==l&&v(n),t!==u&&g(t)}}),r&&b&&Object(s.createElement)(nE,{key:"query-controls-category-select",categoriesList:r,label:Object(f.__)("Category"),noOptionLabel:Object(f.__)("All"),selectedCategoryId:o,onChange:b}),a&&b&&Object(s.createElement)(cx,{key:"query-controls-categories-select",label:Object(f.__)("Categories"),value:i&&i.map(e=>({id:e.id,value:e.name||e.value})),suggestions:Object.keys(a),onChange:b,maxSuggestions:20}),h&&Object(s.createElement)(rE,{key:"query-controls-author-select",authorList:t,label:Object(f.__)("Author"),noOptionLabel:Object(f.__)("All"),selectedAuthorId:n,onChange:h}),m&&Object(s.createElement)(zb,{key:"query-controls-range-control",label:Object(f.__)("Number of items"),value:c,onChange:m,min:p,max:d,required:!0})]}var cE=Object(s.createContext)({state:null,setState:()=>{}});var sE=Object(s.forwardRef)((function(e,t){let{children:n,value:r,...o}=e;const a=Object(s.useContext)(cE),i=a.state===r;return Object(s.createElement)(Rw,Object(c.a)({ref:t,as:ld.a,variant:i?"primary":"secondary",value:r},a,o),n||r)}));var lE=Object(s.forwardRef)((function(e,t){let{label:n,checked:r,defaultChecked:o,disabled:a,onChange:i,...l}=e;const u=vw({state:o,baseId:l.id}),d={...u,disabled:a,state:null!=r?r:u.state,setState:null!=i?i:u.setState};return Object(s.createElement)(cE.Provider,{value:d},Object(s.createElement)(ww,Object(c.a)({ref:t,as:ep,"aria-label":n},u,l)))}));function uE(e){let{label:t,className:n,selected:r,help:o,onChange:a,hideLabelFromVision:i,options:u=[],...f}=e;const b="inspector-radio-control-"+Object(p.useInstanceId)(uE),h=e=>a(e.target.value);return!Object(l.isEmpty)(u)&&Object(s.createElement)(jd,{label:t,id:b,hideLabelFromVision:i,help:o,className:d()(n,"components-radio-control")},u.map((e,t)=>Object(s.createElement)("div",{key:`${b}-${t}`,className:"components-radio-control__option"},Object(s.createElement)("input",Object(c.a)({id:`${b}-${t}`,className:"components-radio-control__input",type:"radio",name:b,value:e.value,onChange:h,checked:e.value===r,"aria-describedby":o?b+"__help":void 0},f)),Object(s.createElement)("label",{htmlFor:`${b}-${t}`},e.label))))}var dE=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fE=function(){return(fE=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},pE={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},bE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return dE(t,e),t.prototype.render=function(){return q.createElement("div",{className:this.props.className||"",style:fE(fE({position:"absolute",userSelect:"none"},pE[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(q.PureComponent),hE=n("75pU"),mE=n.n(hE),vE=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gE=function(){return(gE=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},yE={width:"auto",height:"auto"},OE=mE()((function(e,t,n){return Math.max(Math.min(e,n),t)})),jE=mE()((function(e,t){return Math.round(e/t)*t})),wE=mE()((function(e,t){return new RegExp(e,"i").test(t)})),xE=function(e){return Boolean(e.touches&&e.touches.length)},_E=mE()((function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,o){return Math.abs(r-e)<Math.abs(t[n]-e)?o:n}),0),o=Math.abs(t[r]-e);return 0===n||o<n?t[r]:e})),EE=mE()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),kE=mE()((function(e){return"auto"===(e=e.toString())||EE(e,"px")||EE(e,"%")||EE(e,"vh")||EE(e,"vw")||EE(e,"vmax")||EE(e,"vmin")?e:e+"px"})),SE=function(e,t,n,r){if(e&&"string"==typeof e){if(EE(e,"px"))return Number(e.replace("px",""));if(EE(e,"%"))return t*(Number(e.replace("%",""))/100);if(EE(e,"vw"))return n*(Number(e.replace("vw",""))/100);if(EE(e,"vh"))return r*(Number(e.replace("vh",""))/100)}return e},CE=mE()((function(e,t,n,r,o,a,i){return r=SE(r,e.width,t,n),o=SE(o,e.height,t,n),a=SE(a,e.width,t,n),i=SE(i,e.height,t,n),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===o?void 0:Number(o),minWidth:void 0===a?void 0:Number(a),minHeight:void 0===i?void 0:Number(i)}})),PE=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],TE=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var e=n.parentNode;if(!e)return null;var t=n.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0",t.classList?t.classList.add("__resizable_base__"):t.className+="__resizable_base__",e.appendChild(t),t},n.removeBase=function(e){var t=n.parentNode;t&&t.removeChild(e)},n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return vE(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||yE},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,o=this.resizable.style.position;"relative"!==o&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=o}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&EE(e.propsSize[t].toString(),"%")){if(EE(e.state[t].toString(),"%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return kE(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?kE(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?kE(t.height):n("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,n=this.parentNode.style.flexWrap;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%";var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var n,r,o=this.props.boundsByDirection,a=this.state.direction,i=o&&wE("left",a),c=o&&wE("top",a);if("parent"===this.props.bounds){var s=this.parentNode;s&&(n=i?this.resizableRight-this.parentLeft:s.offsetWidth+(this.parentLeft-this.resizableLeft),r=c?this.resizableBottom-this.parentTop:s.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(n=i?this.resizableRight:this.window.innerWidth-this.resizableLeft,r=c?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(n=i?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),r=c?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return n&&Number.isFinite(n)&&(e=e&&e<n?e:n),r&&Number.isFinite(r)&&(t=t&&t<r?t:r),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,r=this.props.resizeRatio||1,o=this.state,a=o.direction,i=o.original,c=this.props,s=c.lockAspectRatio,l=c.lockAspectRatioExtraHeight,u=c.lockAspectRatioExtraWidth,d=i.width,f=i.height,p=l||0,b=u||0;return wE("right",a)&&(d=i.width+(e-i.x)*r/n,s&&(f=(d-b)/this.ratio+p)),wE("left",a)&&(d=i.width-(e-i.x)*r/n,s&&(f=(d-b)/this.ratio+p)),wE("bottom",a)&&(f=i.height+(t-i.y)*r/n,s&&(d=(f-p)*this.ratio+b)),wE("top",a)&&(f=i.height-(t-i.y)*r/n,s&&(d=(f-p)*this.ratio+b)),{newWidth:d,newHeight:f}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var o=this.props,a=o.lockAspectRatio,i=o.lockAspectRatioExtraHeight,c=o.lockAspectRatioExtraWidth,s=void 0===r.width?10:r.width,l=void 0===n.width||n.width<0?e:n.width,u=void 0===r.height?10:r.height,d=void 0===n.height||n.height<0?t:n.height,f=i||0,p=c||0;if(a){var b=(u-f)*this.ratio+p,h=(d-f)*this.ratio+p,m=(s-p)/this.ratio+f,v=(l-p)/this.ratio+f,g=Math.max(s,b),y=Math.min(l,h),O=Math.max(u,m),j=Math.min(d,v);e=OE(e,g,y),t=OE(t,O,j)}else e=OE(e,s,l),t=OE(t,u,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),o=r.left,a=r.top,i=r.right,c=r.bottom;this.resizableLeft=o,this.resizableRight=i,this.resizableTop=a,this.resizableBottom=c}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,r=0,o=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(r=e.nativeEvent.clientX,o=e.nativeEvent.clientY):e.nativeEvent&&xE(e.nativeEvent)&&(r=e.nativeEvent.touches[0].clientX,o=e.nativeEvent.touches[0].clientY),this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var a=this.window.getComputedStyle(this.resizable);if("auto"!==a.flexBasis){var i=this.parentNode;if(i){var c=this.window.getComputedStyle(i).flexDirection;this.flexDir=c.startsWith("row")?"row":"column",n=a.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var s={original:{x:r,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:gE(gE({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(s)}},t.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&xE(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var t=this.props,n=t.maxWidth,r=t.maxHeight,o=t.minWidth,a=t.minHeight,i=xE(e)?e.touches[0].clientX:e.clientX,c=xE(e)?e.touches[0].clientY:e.clientY,s=this.state,l=s.direction,u=s.original,d=s.width,f=s.height,p=this.getParentSize(),b=CE(p,this.window.innerWidth,this.window.innerHeight,n,r,o,a);n=b.maxWidth,r=b.maxHeight,o=b.minWidth,a=b.minHeight;var h=this.calculateNewSizeFromDirection(i,c),m=h.newHeight,v=h.newWidth,g=this.calculateNewMaxFromBoundary(n,r),y=this.calculateNewSizeFromAspectRatio(v,m,{width:g.maxWidth,height:g.maxHeight},{width:o,height:a});if(v=y.newWidth,m=y.newHeight,this.props.grid){var O=jE(v,this.props.grid[0]),j=jE(m,this.props.grid[1]),w=this.props.snapGap||0;v=0===w||Math.abs(O-v)<=w?O:v,m=0===w||Math.abs(j-m)<=w?j:m}this.props.snap&&this.props.snap.x&&(v=_E(v,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(m=_E(m,this.props.snap.y,this.props.snapGap));var x={width:v-u.width,height:m-u.height};if(d&&"string"==typeof d)if(EE(d,"%"))v=v/p.width*100+"%";else if(EE(d,"vw")){v=v/this.window.innerWidth*100+"vw"}else if(EE(d,"vh")){v=v/this.window.innerHeight*100+"vh"}if(f&&"string"==typeof f)if(EE(f,"%"))m=m/p.height*100+"%";else if(EE(f,"vw")){m=m/this.window.innerWidth*100+"vw"}else if(EE(f,"vh")){m=m/this.window.innerHeight*100+"vh"}var _={width:this.createSizeForCssProperty(v,"width"),height:this.createSizeForCssProperty(m,"height")};"row"===this.flexDir?_.flexBasis=_.width:"column"===this.flexDir&&(_.flexBasis=_.height),this.setState(_),this.props.onResize&&this.props.onResize(e,l,this.resizable,x)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction,o=t.original;if(n&&this.resizable){var a={width:this.size.width-o.width,height:this.size.height-o.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,a),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:gE(gE({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,r=t.handleStyles,o=t.handleClasses,a=t.handleWrapperStyle,i=t.handleWrapperClass,c=t.handleComponent;if(!n)return null;var s=Object.keys(n).map((function(t){return!1!==n[t]?q.createElement(bE,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:o&&o[t]},c&&c[t]?c[t]:null):null}));return q.createElement("div",{className:i,style:a},s)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==PE.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=gE(gE(gE({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var r=this.props.as||"div";return q.createElement(r,gE({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&q.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(q.PureComponent);const{clearTimeout:ME,setTimeout:DE}=window,IE={bottom:"bottom",corner:"corner"};function RE(e){let{axis:t,fadeTimeout:n=180,onResize:r=l.noop,position:o=IE.bottom,showPx:a=!1}=e;const[i,c]=oj()(),u=!!t,[d,f]=Object(s.useState)(!1),[p,b]=Object(s.useState)(!1),{width:h,height:m}=c,v=Object(s.useRef)(m),g=Object(s.useRef)(h),y=Object(s.useRef)(),O=()=>{u||(f(!1),b(!1))};Object(s.useEffect)(()=>{if(!(null!==h||null!==m))return;const e=h!==g.current,t=m!==v.current;if(e||t){if(h&&!g.current&&m&&!v.current)return g.current=h,void(v.current=m);e&&(f(!0),g.current=h),t&&(b(!0),v.current=m),r({width:h,height:m}),y.current&&ME(y.current),y.current=DE(O,n)}},[h,m]);return{label:function(e){let{axis:t,height:n,moveX:r=!1,moveY:o=!1,position:a=IE.bottom,showPx:i=!1,width:c}=e;if(!r&&!o)return;if(a===IE.corner)return`${c} x ${n}`;const s=i?" px":"";if(t){if("x"===t&&r)return`${c}${s}`;if("y"===t&&o)return`${n}${s}`}if(r&&o)return`${c} x ${n}`;if(r)return`${c}${s}`;if(o)return`${n}${s}`;return}({axis:t,height:m,moveX:d,moveY:p,position:o,showPx:a,width:h}),resizeListener:i}}const AE=Object(w.a)("div",{target:"ekdag503"})({name:"1cd7zoc",styles:"bottom:0;box-sizing:border-box;left:0;pointer-events:none;position:absolute;right:0;top:0"}),NE=Object(w.a)("div",{target:"ekdag502"})({name:"ajymcs",styles:"align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;opacity:0;pointer-events:none;transition:opacity 120ms linear"}),LE=Object(w.a)("div",{target:"ekdag501"})("background:",L.ui.border,";border-radius:2px;box-sizing:border-box;font-size:12px;color:",L.ui.textDark,";padding:4px 8px;position:relative;"),FE=Object(w.a)(cl,{target:"ekdag500"})("&&&{color:",L.ui.textDark,";display:block;font-size:13px;line-height:1.4;}");var zE=Object(s.forwardRef)((function(e,t){let{label:n,position:r=IE.corner,zIndex:o=1e3,...a}=e;const i=!!n,l=r===IE.bottom,u=r===IE.corner;if(!i)return null;let d={opacity:i?1:void 0,zIndex:o},p={};return l&&(d={...d,position:"absolute",bottom:-10,left:"50%",transform:"translate(-50%, 0)"},p={transform:"translate(0, 100%)"}),u&&(d={...d,position:"absolute",top:4,right:Object(f.isRTL)()?void 0:4,left:Object(f.isRTL)()?4:void 0}),Object(s.createElement)(NE,Object(c.a)({"aria-hidden":"true",className:"components-resizable-tooltip__tooltip-wrapper",ref:t,style:d},a),Object(s.createElement)(LE,{className:"components-resizable-tooltip__tooltip",style:p},Object(s.createElement)(FE,{as:"span"},n)))}));var BE=Object(s.forwardRef)((function(e,t){let{axis:n,className:r,fadeTimeout:o=180,isVisible:a=!0,labelRef:i,onResize:u=l.noop,position:f=IE.bottom,showPx:p=!0,zIndex:b=1e3,...h}=e;const{label:m,resizeListener:v}=RE({axis:n,fadeTimeout:o,onResize:u,showPx:p,position:f});if(!a)return null;const g=d()("components-resize-tooltip",r);return Object(s.createElement)(AE,Object(c.a)({"aria-hidden":"true",className:g,ref:t},h),v,Object(s.createElement)(zE,{"aria-hidden":h["aria-hidden"],label:m,position:f,ref:i,zIndex:b}))}));const HE="components-resizable-box__handle",VE="components-resizable-box__side-handle",WE="components-resizable-box__corner-handle",UE={top:d()(HE,VE,"components-resizable-box__handle-top"),right:d()(HE,VE,"components-resizable-box__handle-right"),bottom:d()(HE,VE,"components-resizable-box__handle-bottom"),left:d()(HE,VE,"components-resizable-box__handle-left"),topLeft:d()(HE,WE,"components-resizable-box__handle-top","components-resizable-box__handle-left"),topRight:d()(HE,WE,"components-resizable-box__handle-top","components-resizable-box__handle-right"),bottomRight:d()(HE,WE,"components-resizable-box__handle-bottom","components-resizable-box__handle-right"),bottomLeft:d()(HE,WE,"components-resizable-box__handle-bottom","components-resizable-box__handle-left")},KE={width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0},GE={top:KE,right:KE,bottom:KE,left:KE,topLeft:KE,topRight:KE,bottomRight:KE,bottomLeft:KE};var $E=Object(s.forwardRef)((function(e,t){let{className:n,children:r,showHandle:o=!0,__experimentalShowTooltip:a=!1,__experimentalTooltipProps:i={},...l}=e;return Object(s.createElement)(TE,Object(c.a)({className:d()("components-resizable-box__container",o&&"has-show-handle",n),handleClasses:UE,handleStyles:GE,ref:t},l),r,a&&Object(s.createElement)(BE,i))}));var qE=function(e){let{naturalWidth:t,naturalHeight:n,children:r,isInline:o=!1}=e;const[a,{width:i}]=Object(p.useResizeObserver)();if(1!==s.Children.count(r))return null;const c={paddingBottom:t<i?n:n/t*100+"%"},l=o?"span":"div";return Object(s.createElement)(l,{className:"components-responsive-wrapper"},a,Object(s.createElement)(l,{style:c}),Object(s.cloneElement)(r,{className:d()("components-responsive-wrapper__content",r.props.className)}))};const YE="\n\t( function() {\n\t\tvar observer;\n\n\t\tif ( ! window.MutationObserver || ! document.body || ! window.parent ) {\n\t\t\treturn;\n\t\t}\n\n\t\tfunction sendResize() {\n\t\t\tvar clientBoundingRect = document.body.getBoundingClientRect();\n\n\t\t\twindow.parent.postMessage( {\n\t\t\t\taction: 'resize',\n\t\t\t\twidth: clientBoundingRect.width,\n\t\t\t\theight: clientBoundingRect.height,\n\t\t\t}, '*' );\n\t\t}\n\n\t\tobserver = new MutationObserver( sendResize );\n\t\tobserver.observe( document.body, {\n\t\t\tattributes: true,\n\t\t\tattributeOldValue: false,\n\t\t\tcharacterData: true,\n\t\t\tcharacterDataOldValue: false,\n\t\t\tchildList: true,\n\t\t\tsubtree: true\n\t\t} );\n\n\t\twindow.addEventListener( 'load', sendResize, true );\n\n\t\t// Hack: Remove viewport unit styles, as these are relative\n\t\t// the iframe root and interfere with our mechanism for\n\t\t// determining the unconstrained page bounds.\n\t\tfunction removeViewportStyles( ruleOrNode ) {\n\t\t\tif( ruleOrNode.style ) {\n\t\t\t\t[ 'width', 'height', 'minHeight', 'maxHeight' ].forEach( function( style ) {\n\t\t\t\t\tif ( /^\\d+(vmin|vmax|vh|vw)$/.test( ruleOrNode.style[ style ] ) ) {\n\t\t\t\t\t\truleOrNode.style[ style ] = '';\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t}\n\t\t}\n\n\t\tArray.prototype.forEach.call( document.querySelectorAll( '[style]' ), removeViewportStyles );\n\t\tArray.prototype.forEach.call( document.styleSheets, function( stylesheet ) {\n\t\t\tArray.prototype.forEach.call( stylesheet.cssRules || stylesheet.rules, removeViewportStyles );\n\t\t} );\n\n\t\tdocument.body.style.position = 'absolute';\n\t\tdocument.body.style.width = '100%';\n\t\tdocument.body.setAttribute( 'data-resizable-iframe-connected', '' );\n\n\t\tsendResize();\n\n\t\t// Resize events can change the width of elements with 100% width, but we don't\n\t\t// get an DOM mutations for that, so do the resize when the window is resized, too.\n\t\twindow.addEventListener( 'resize', sendResize, true );\n} )();",XE="\n\tbody {\n\t\tmargin: 0;\n\t}\n\thtml,\n\tbody,\n\tbody > div,\n\tbody > div iframe {\n\t\twidth: 100%;\n\t}\n\thtml.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio > div,\n\tbody.wp-has-aspect-ratio > div iframe {\n\t\theight: 100%;\n\t\toverflow: hidden; /* If it has an aspect ratio, it shouldn't scroll. */\n\t}\n\tbody > div > * {\n\t\tmargin-top: 0 !important; /* Has to have !important to override inline styles. */\n\t\tmargin-bottom: 0 !important;\n\t}\n";function ZE(e){let{html:t="",title:n="",type:r,styles:o=[],scripts:a=[],onFocus:i}=e;const c=Object(s.useRef)(),[l,u]=Object(s.useState)(0),[d,f]=Object(s.useState)(0);function b(){try{return!!c.current.contentDocument.body}catch(e){return!1}}function h(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!b())return;const{contentDocument:i,ownerDocument:l}=c.current,{body:u}=i;if(!e&&null!==u.getAttribute("data-resizable-iframe-connected"))return;const d=Object(s.createElement)("html",{lang:l.documentElement.lang,className:r},Object(s.createElement)("head",null,Object(s.createElement)("title",null,n),Object(s.createElement)("style",{dangerouslySetInnerHTML:{__html:XE}}),o.map((e,t)=>Object(s.createElement)("style",{key:t,dangerouslySetInnerHTML:{__html:e}}))),Object(s.createElement)("body",{"data-resizable-iframe-connected":"data-resizable-iframe-connected",className:r},Object(s.createElement)("div",{dangerouslySetInnerHTML:{__html:t}}),Object(s.createElement)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:YE}}),a.map(e=>Object(s.createElement)("script",{key:e,src:e}))));i.open(),i.write("<!DOCTYPE html>"+Object(s.renderToString)(d)),i.close()}return Object(s.useEffect)(()=>{function e(){h(!1)}function t(e){const t=c.current;if(!t||t.contentWindow!==e.source)return;let n=e.data||{};if("string"==typeof n)try{n=JSON.parse(n)}catch(e){}"resize"===n.action&&(u(n.width),f(n.height))}h();const{ownerDocument:n}=c.current,{defaultView:r}=n;return c.current.addEventListener("load",e,!1),r.addEventListener("message",t),()=>{var n;null===(n=c.current)||void 0===n||n.removeEventListener("load",e,!1),r.addEventListener("message",t)}},[]),Object(s.useEffect)(()=>{h()},[n,r,o,a]),Object(s.useEffect)(()=>{h(!0)},[t]),Object(s.createElement)("iframe",{ref:Object(p.useMergeRefs)([c,Object(p.useFocusableIframe)()]),title:n,className:"components-sandbox",sandbox:"allow-scripts allow-same-origin allow-presentation",onFocus:i,width:Math.ceil(l),height:Math.ceil(d)})}var JE=n("iB/h");const QE={init:{height:0,opacity:0},open:{height:"auto",opacity:1,transition:{height:{stiffness:1e3,velocity:-100}}},exit:{opacity:0,transition:{duration:.5}}},ek={init:!1,open:!1,exit:!1};var tk=function(e){let{notices:t,className:n,children:r,onRemove:o=l.noop}=e;const a=Object(s.useRef)(),i=Object(p.useReducedMotion)();n=d()("components-snackbar-list",n);const u=e=>()=>o(e.id);return Object(s.createElement)("div",{className:n,tabIndex:-1,ref:a},r,Object(s.createElement)(vO,null,t.map(e=>Object(s.createElement)(rs.div,{layout:!i,initial:"init",animate:"open",exit:"exit",key:e.id,variants:i?ek:QE},Object(s.createElement)("div",{className:"components-snackbar-list__notice-container"},Object(s.createElement)(JE.a,Object(c.a)({},Object(l.omit)(e,["content"]),{onRemove:u(e),listRef:a}),e.content))))))};const nk=x.b` +***************************************************************************** */var Sr=function(){return(Sr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function Cr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;Object.create;var Pr=function(e,t,n){return Math.min(Math.max(n,e),t)};function Tr(e){var t,n,r=e.duration,o=void 0===r?800:r,a=e.bounce,i=void 0===a?.25:a,c=e.velocity,s=void 0===c?0:c,l=e.mass,u=void 0===l?1:l,d=1-i;d=Pr(.05,1,d),o=Pr(.01,10,o/1e3),d<1?(t=function(e){var t=e*d,n=t*o;return.001-(t-s)/Mr(e,d)*Math.exp(-n)},n=function(e){var n=e*d*o,r=n*s+s,a=Math.pow(d,2)*Math.pow(e,2)*o,i=Math.exp(-n),c=Mr(Math.pow(e,2),d);return(.001-t(e)>0?-1:1)*((r-a)*i)/c}):(t=function(e){return Math.exp(-e*o)*((e-s)*o+1)-.001},n=function(e){return Math.exp(-e*o)*(o*o*(s-e))});var f=function(e,t,n){for(var r=n,o=1;o<12;o++)r-=e(r)/t(r);return r}(t,n,5/o);if(o*=1e3,isNaN(f))return{stiffness:100,damping:10,duration:o};var p=Math.pow(f,2)*u;return{stiffness:p,damping:2*d*Math.sqrt(u*p),duration:o}}function Mr(e,t){return e*Math.sqrt(1-t*t)}var Dr=["duration","bounce"],Ir=["stiffness","damping","mass"];function Rr(e,t){return t.some((function(t){return void 0!==e[t]}))}function Ar(e){var t=e.from,n=void 0===t?0:t,r=e.to,o=void 0===r?1:r,a=e.restSpeed,i=void 0===a?2:a,c=e.restDelta,s=Cr(e,["from","to","restSpeed","restDelta"]),l={done:!1,value:n},u=function(e){var t=Sr({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Rr(e,Ir)&&Rr(e,Dr)){var n=Tr(e);(t=Sr(Sr(Sr({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(s),d=u.stiffness,f=u.damping,p=u.mass,b=u.velocity,h=u.duration,m=u.isResolvedFromDuration,v=Nr,g=Nr;function y(){var e=b?-b/1e3:0,t=o-n,r=f/(2*Math.sqrt(d*p)),a=Math.sqrt(d/p)/1e3;if(null!=c||(c=Math.abs(o-n)<=1?.01:.4),r<1){var i=Mr(a,r);v=function(n){var c=Math.exp(-r*a*n);return o-c*((e+r*a*t)/i*Math.sin(i*n)+t*Math.cos(i*n))},g=function(n){var o=Math.exp(-r*a*n);return r*a*o*(Math.sin(i*n)*(e+r*a*t)/i+t*Math.cos(i*n))-o*(Math.cos(i*n)*(e+r*a*t)-i*t*Math.sin(i*n))}}else if(1===r)v=function(n){return o-Math.exp(-a*n)*(t+(e+a*t)*n)};else{var s=a*Math.sqrt(r*r-1);v=function(n){var i=Math.exp(-r*a*n),c=Math.min(s*n,300);return o-i*((e+r*a*t)*Math.sinh(c)+s*t*Math.cosh(c))/s}}}return y(),{next:function(e){var t=v(e);if(m)l.done=e>=h;else{var n=1e3*g(e),r=Math.abs(n)<=i,a=Math.abs(o-t)<=c;l.done=r&&a}return l.value=l.done?o:t,l},flipTarget:function(){var e;b=-b,n=(e=[o,n])[0],o=e[1],y()}}}Ar.needsInterpolation=function(e,t){return"string"==typeof e||"string"==typeof t};var Nr=function(e){return 0},Lr=function(e,t,n){var r=t-e;return 0===r?1:(n-e)/r},Fr=function(e,t,n){return-n*e+n*t+e},zr=function(e,t){return function(n){return Boolean(cn(n)&&an.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t))}},Br=function(e,t,n){return function(r){var o;if(!cn(r))return r;var a=r.match(rn),i=a[0],c=a[1],s=a[2],l=a[3];return(o={})[e]=parseFloat(i),o[t]=parseFloat(c),o[n]=parseFloat(s),o.alpha=void 0!==l?parseFloat(l):1,o}},Hr=tn(0,255),Vr=en(en({},hn),{transform:function(e){return Math.round(Hr(e))}}),Wr={test:zr("rgb","red"),parse:Br("red","green","blue"),transform:function(e){var t=e.red,n=e.green,r=e.blue,o=e.alpha,a=void 0===o?1:o;return"rgba("+Vr.transform(t)+", "+Vr.transform(n)+", "+Vr.transform(r)+", "+nn(mn.transform(a))+")"}};var Ur={test:zr("#"),parse:function(e){var t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:Wr.transform},Kr={test:zr("hsl","hue"),parse:Br("hue","saturation","lightness"),transform:function(e){var t=e.hue,n=e.saturation,r=e.lightness,o=e.alpha,a=void 0===o?1:o;return"hsla("+Math.round(t)+", "+un.transform(nn(n))+", "+un.transform(nn(r))+", "+nn(mn.transform(a))+")"}},Gr=function(e,t,n){var r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},$r=[Ur,Wr,Kr],qr=function(e){return $r.find((function(t){return t.test(e)}))},Yr=function(e){return"'"+e+"' is not an animatable color. Use the equivalent color code instead."},Xr=function(e,t){var n=qr(e),r=qr(t);Yr(e),Yr(t),n.transform,r.transform;var o=n.parse(e),a=r.parse(t),i=Sr({},o),c=n===Kr?Fr:Gr;return function(e){for(var t in i)"alpha"!==t&&(i[t]=c(o[t],a[t],e));return i.alpha=Fr(o.alpha,a.alpha,e),n.transform(i)}},Zr={test:function(e){return Wr.test(e)||Ur.test(e)||Kr.test(e)},parse:function(e){return Wr.test(e)?Wr.parse(e):Kr.test(e)?Kr.parse(e):Ur.parse(e)},transform:function(e){return cn(e)?e:e.hasOwnProperty("red")?Wr.transform(e):Kr.transform(e)}};function Jr(e){var t=[],n=0,r=e.match(on);r&&(n=r.length,e=e.replace(on,"${c}"),t.push.apply(t,r.map(Zr.parse)));var o=e.match(rn);return o&&(e=e.replace(rn,"${n}"),t.push.apply(t,o.map(hn.parse))),{values:t,numColors:n,tokenised:e}}function Qr(e){return Jr(e).values}function eo(e){var t=Jr(e),n=t.values,r=t.numColors,o=t.tokenised,a=n.length;return function(e){for(var t=o,n=0;n<a;n++)t=t.replace(n<r?"${c}":"${n}",n<r?Zr.transform(e[n]):nn(e[n]));return t}}var to=function(e){return"number"==typeof e?0:e};var no={test:function(e){var t,n,r,o;return isNaN(e)&&cn(e)&&(null!==(n=null===(t=e.match(rn))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(on))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:Qr,createTransformer:eo,getAnimatableNone:function(e){var t=Qr(e);return eo(e)(t.map(to))}},ro=function(e){return"number"==typeof e};function oo(e,t){return ro(e)?function(n){return Fr(e,t,n)}:Zr.test(e)?Xr(e,t):so(e,t)}var ao=function(e,t){var n=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],e),r=n.length,o=e.map((function(e,n){return oo(e,t[n])}));return function(e){for(var t=0;t<r;t++)n[t]=o[t](e);return n}},io=function(e,t){var n=Sr(Sr({},e),t),r={};for(var o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=oo(e[o],t[o]));return function(e){for(var t in r)n[t]=r[t](e);return n}};function co(e){for(var t=no.parse(e),n=t.length,r=0,o=0,a=0,i=0;i<n;i++)r||"number"==typeof t[i]?r++:void 0!==t[i].hue?a++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:a}}var so=function(e,t){var n=no.createTransformer(t),r=co(e),o=co(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&(r.numNumbers,o.numNumbers),xr(ao(r.parsed,o.parsed),n)},lo=function(e,t){return function(n){return Fr(e,t,n)}};function uo(e,t,n){for(var r,o=[],a=n||("number"==typeof(r=e[0])?lo:"string"==typeof r?Zr.test(r)?Xr:so:Array.isArray(r)?ao:"object"==typeof r?io:void 0),i=e.length-1,c=0;c<i;c++){var s=a(e[c],e[c+1]);if(t){var l=Array.isArray(t)?t[c]:t;s=xr(l,s)}o.push(s)}return o}function fo(e,t,n){var r=void 0===n?{}:n,o=r.clamp,a=void 0===o||o,i=r.ease,c=r.mixer,s=e.length;t.length,!i||!Array.isArray(i)||i.length,e[0]>e[s-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());var l=uo(t,i,c),u=2===s?function(e,t){var n=e[0],r=e[1],o=t[0];return function(e){return o(Lr(n,r,e))}}(e,l):function(e,t){var n=e.length,r=n-1;return function(o){var a=0,i=!1;if(o<=e[0]?i=!0:o>=e[r]&&(a=r-1,i=!0),!i){for(var c=1;c<n&&!(e[c]>o||c===r);c++);a=c-1}var s=Lr(e[a],e[a+1],o);return t[a](s)}}(e,l);return a?function(t){return u(Pr(e[0],e[s-1],t))}:u}var po,bo=function(e){return function(t){return 1-e(1-t)}},ho=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},mo=function(e){return function(t){return t*t*((e+1)*t-e)}},vo=function(e){return e},go=(po=2,function(e){return Math.pow(e,po)}),yo=bo(go),Oo=ho(go),jo=function(e){return 1-Math.sin(Math.acos(e))},wo=bo(jo),xo=ho(wo),_o=mo(1.525),Eo=bo(_o),ko=ho(_o),So=function(e){var t=mo(e);return function(e){return(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))}}(1.525),Co=function(e){if(1===e||0===e)return e;var t=e*e;return e<4/11?7.5625*t:e<8/11?9.075*t-9.9*e+3.4:e<.9?4356/361*t-35442/1805*e+16061/1805:10.8*e*e-20.52*e+10.72},Po=bo(Co);function To(e,t){return e.map((function(){return t||Oo})).splice(0,e.length-1)}function Mo(e){var t=e.from,n=void 0===t?0:t,r=e.to,o=void 0===r?1:r,a=e.ease,i=e.offset,c=e.duration,s=void 0===c?300:c,l={done:!1,value:n},u=Array.isArray(o)?o:[n,o],d=function(e,t){return e.map((function(e){return e*t}))}(i&&i.length===u.length?i:function(e){var t=e.length;return e.map((function(e,n){return 0!==n?n/(t-1):0}))}(u),s);function f(){return fo(d,u,{ease:Array.isArray(a)?a:To(u,a)})}var p=f();return{next:function(e){return l.value=p(e),l.done=e>=s,l},flipTarget:function(){u.reverse(),p=f()}}}var Do={keyframes:Mo,spring:Ar,decay:function(e){var t=e.velocity,n=void 0===t?0:t,r=e.from,o=void 0===r?0:r,a=e.power,i=void 0===a?.8:a,c=e.timeConstant,s=void 0===c?350:c,l=e.restDelta,u=void 0===l?.5:l,d=e.modifyTarget,f={done:!1,value:o},p=i*n,b=o+p,h=void 0===d?b:d(b);return h!==b&&(p=h-o),{next:function(e){var t=-p*Math.exp(-e/s);return f.done=!(t>u||t<-u),f.value=f.done?h:h+t,f},flipTarget:function(){}}}};var Io="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},Ro="undefined"!=typeof window?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout((function(){return e(Io())}),1/60*1e3)};var Ao=!0,No=!1,Lo=!1,Fo={delta:0,timestamp:0},zo=["read","update","preRender","render","postRender"],Bo=zo.reduce((function(e,t){return e[t]=function(e){var t=[],n=[],r=0,o=!1,a=new WeakSet,i={schedule:function(e,i,c){void 0===i&&(i=!1),void 0===c&&(c=!1);var s=c&&o,l=s?t:n;return i&&a.add(e),-1===l.indexOf(e)&&(l.push(e),s&&o&&(r=t.length)),e},cancel:function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:function(c){var s;if(o=!0,t=(s=[n,t])[0],(n=s[1]).length=0,r=t.length)for(var l=0;l<r;l++){var u=t[l];u(c),a.has(u)&&(i.schedule(u),e())}o=!1}};return i}((function(){return No=!0})),e}),{}),Ho=zo.reduce((function(e,t){var n=Bo[t];return e[t]=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),No||Go(),n.schedule(e,t,r)},e}),{}),Vo=zo.reduce((function(e,t){return e[t]=Bo[t].cancel,e}),{}),Wo=zo.reduce((function(e,t){return e[t]=function(){return Bo[t].process(Fo)},e}),{}),Uo=function(e){return Bo[e].process(Fo)},Ko=function(e){No=!1,Fo.delta=Ao?1/60*1e3:Math.max(Math.min(e-Fo.timestamp,40),1),Fo.timestamp=e,Lo=!0,zo.forEach(Uo),Lo=!1,No&&(Ao=!1,Ro(Ko))},Go=function(){No=!0,Ao=!0,Lo||Ro(Ko)},$o=function(){return Fo},qo=Ho;function Yo(e,t,n){return void 0===n&&(n=0),e-t-n}var Xo=function(e){var t=function(t){var n=t.delta;return e(n)};return{start:function(){return qo.update(t,!0)},stop:function(){return Vo.update(t)}}};function Zo(e){var t,n,r,o,a,i=e.from,c=e.autoplay,s=void 0===c||c,l=e.driver,u=void 0===l?Xo:l,d=e.elapsed,f=void 0===d?0:d,p=e.repeat,b=void 0===p?0:p,h=e.repeatType,m=void 0===h?"loop":h,v=e.repeatDelay,g=void 0===v?0:v,y=e.onPlay,O=e.onStop,j=e.onComplete,w=e.onRepeat,x=e.onUpdate,_=Cr(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),E=_.to,k=0,S=_.duration,C=!1,P=!0,T=function(e){if(Array.isArray(e.to))return Mo;if(Do[e.type])return Do[e.type];var t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Mo:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Ar:Mo}(_);(null===(n=(t=T).needsInterpolation)||void 0===n?void 0:n.call(t,i,E))&&(a=fo([0,100],[i,E],{clamp:!1}),i=0,E=100);var M=T(Sr(Sr({},_),{from:i,to:E}));function D(){k++,"reverse"===m?f=function(e,t,n,r){return void 0===n&&(n=0),void 0===r&&(r=!0),r?Yo(t+-e,t,n):t-(e-t)+n}(f,S,g,P=k%2==0):(f=Yo(f,S,g),"mirror"===m&&M.flipTarget()),C=!1,w&&w()}function I(e){if(P||(e=-e),f+=e,!C){var t=M.next(Math.max(0,f));o=t.value,a&&(o=a(o)),C=P?t.done:f<=0}null==x||x(o),C&&(0===k&&(null!=S||(S=f)),k<b?function(e,t,n,r){return r?e>=t+n:e<=-n}(f,S,g,P)&&D():(r.stop(),j&&j()))}return s&&(null==y||y(),(r=u(I)).start()),{stop:function(){null==O||O(),r.stop()}}}function Jo(e,t){return t?e*(1e3/t):0}var Qo=function(e){return 1e3*e},ea=function(e,t){return 1-3*t+3*e},ta=function(e,t){return 3*t-6*e},na=function(e){return 3*e},ra=function(e,t,n){return((ea(t,n)*e+ta(t,n))*e+na(t))*e},oa=function(e,t,n){return 3*ea(t,n)*e*e+2*ta(t,n)*e+na(t)};function aa(e,t,n,r){if(e===t&&n===r)return vo;for(var o=new Float32Array(11),a=0;a<11;++a)o[a]=ra(.1*a,e,n);function i(t){for(var r=0,a=1;10!==a&&o[a]<=t;++a)r+=.1;--a;var i=r+.1*((t-o[a])/(o[a+1]-o[a])),c=oa(i,e,n);return c>=.001?function(e,t,n,r){for(var o=0;o<8;++o){var a=oa(t,n,r);if(0===a)return t;t-=(ra(t,n,r)-e)/a}return t}(t,i,e,n):0===c?i:function(e,t,n,r,o){var a,i,c=0;do{(a=ra(i=t+(n-t)/2,r,o)-e)>0?n=i:t=i}while(Math.abs(a)>1e-7&&++c<10);return i}(t,r,r+.1,e,n)}return function(e){return 0===e||1===e?e:ra(i(e),t,r)}}var ia={linear:vo,easeIn:go,easeInOut:Oo,easeOut:yo,circIn:jo,circInOut:xo,circOut:wo,backIn:_o,backInOut:ko,backOut:Eo,anticipate:So,bounceIn:Po,bounceInOut:function(e){return e<.5?.5*(1-Co(1-2*e)):.5*Co(2*e-1)+.5},bounceOut:Co},ca=function(e){if(Array.isArray(e)){e.length;var t=st(e,4);return aa(t[0],t[1],t[2],t[3])}return"string"==typeof e?ia[e]:e},sa=function(e,t){return"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!no.test(t)||t.startsWith("url(")))},la=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},ua=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}},da=function(){return{type:"keyframes",ease:"linear",duration:.3}},fa=function(e){return{type:"keyframes",duration:.8,values:e}},pa={x:la,y:la,z:la,rotate:la,rotateX:la,rotateY:la,rotateZ:la,scaleX:ua,scaleY:ua,scale:ua,opacity:da,backgroundColor:da,color:da,default:ua},ba=new Set(["brightness","contrast","saturate","opacity"]);function ha(e){var t=e.slice(0,-1).split("("),n=t[0],r=t[1];if("drop-shadow"===n)return e;var o=(r.match(rn)||[])[0];if(!o)return e;var a=r.replace(o,""),i=ba.has(n)?1:0;return o!==r&&(i*=100),n+"("+i+a+")"}var ma=/([a-z-]*)\(.*?\)/g,va=en(en({},no),{getAnimatableNone:function(e){var t=e.match(ma);return t?t.map(ha).join(" "):e}}),ga=it(it({},yn),{color:Zr,backgroundColor:Zr,outlineColor:Zr,fill:Zr,stroke:Zr,borderColor:Zr,borderTopColor:Zr,borderRightColor:Zr,borderBottomColor:Zr,borderLeftColor:Zr,filter:va,WebkitFilter:va}),ya=function(e){return ga[e]};function Oa(e,t){var n,r=ya(e);return r!==va&&(r=no),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}function ja(e){var t=e.ease,n=e.times,r=e.yoyo,o=e.flip,a=e.loop,i=ct(e,["ease","times","yoyo","flip","loop"]),c=it({},i);return n&&(c.offset=n),i.duration&&(c.duration=Qo(i.duration)),i.repeatDelay&&(c.repeatDelay=Qo(i.repeatDelay)),t&&(c.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(ca):ca(t)),"tween"===i.type&&(c.type="keyframes"),(r||a||o)&&(!0,r?c.repeatType="reverse":a?c.repeatType="loop":o&&(c.repeatType="mirror"),c.repeat=a||r||o||i.repeat),"spring"!==i.type&&(c.type="keyframes"),c}function wa(e,t,n){var r,o,a,i;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=lt([],st(e.to)),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=ct(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=it(it({},e),(o=n,a=t.to,i=Kn(a)?fa:pa[o]||pa.default,it({to:a},i(a))))),it(it({},t),ja(e))}function xa(e,t,n,r,o){var a,i=ka(r,e),c=null!==(a=i.from)&&void 0!==a?a:t.get(),s=sa(e,n);"none"===c&&s&&"string"==typeof n?c=Oa(e,n):_a(c)&&"string"==typeof n?c=Ea(n):!Array.isArray(n)&&_a(n)&&"string"==typeof c&&(n=Ea(c));var l=sa(e,c);return l&&s&&!1!==i.type?function(){var r={from:c,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:function(e){return t.set(e)}};return"inertia"===i.type||"decay"===i.type?function(e){var t,n=e.from,r=void 0===n?0:n,o=e.velocity,a=void 0===o?0:o,i=e.min,c=e.max,s=e.power,l=void 0===s?.8:s,u=e.timeConstant,d=void 0===u?750:u,f=e.bounceStiffness,p=void 0===f?500:f,b=e.bounceDamping,h=void 0===b?10:b,m=e.restDelta,v=void 0===m?1:m,g=e.modifyTarget,y=e.driver,O=e.onUpdate,j=e.onComplete;function w(e){return void 0!==i&&e<i||void 0!==c&&e>c}function x(e){return void 0===i?c:void 0===c||Math.abs(i-e)<Math.abs(c-e)?i:c}function _(e){null==t||t.stop(),t=Zo(Sr(Sr({},e),{driver:y,onUpdate:function(t){var n;null==O||O(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:j}))}function E(e){_(Sr({type:"spring",stiffness:p,damping:h,restDelta:v},e))}if(w(r))E({from:r,velocity:a,to:x(r)});else{var k=l*a+r;void 0!==g&&(k=g(k));var S,C,P=x(k),T=P===i?-1:1;_({type:"decay",from:r,velocity:a,timeConstant:d,power:l,restDelta:v,modifyTarget:g,onUpdate:w(k)?function(e){S=C,C=e,a=Jo(e-S,$o().delta),(1===T&&e>P||-1===T&&e<P)&&E({from:e,to:P,velocity:a})}:void 0})}return{stop:function(){return null==t?void 0:t.stop()}}}(it(it({},r),i)):Zo(it(it({},wa(i,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=i.onUpdate)||void 0===t||t.call(i,e)},onComplete:function(){var e;r.onComplete(),null===(e=i.onComplete)||void 0===e||e.call(i)}}))}:function(){var e;return t.set(n),o(),null===(e=null==i?void 0:i.onComplete)||void 0===e||e.call(i),{stop:function(){}}}}function _a(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Ea(e){return"number"==typeof e?0:Oa("",e)}function ka(e,t){return e[t]||e.default||e}function Sa(e,t,n,r){return void 0===r&&(r={}),t.start((function(o){var a,i,c=xa(e,t,n,r,o),s=function(e,t){var n;return null!==(n=(ka(e,t)||{}).delay)&&void 0!==n?n:0}(r,e),l=function(){return i=c()};return s?a=setTimeout(l,Qo(s)):l(),function(){clearTimeout(a),null==i||i.stop()}}))}function Ca(e,t){-1===e.indexOf(t)&&e.push(t)}function Pa(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Ta=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Ca(this.subscriptions,e),function(){return Pa(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var o=0;o<r;o++){var a=this.subscriptions[o];a&&a(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),Ma=function(){function e(e){var t,n=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Ta,this.velocityUpdateSubscribers=new Ta,this.renderSubscribers=new Ta,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),n.prev=n.current,n.current=e;var r=$o(),o=r.delta,a=r.timestamp;n.lastUpdated!==a&&(n.timeDelta=o,n.lastUpdated=a,qo.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),t&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return qo.postRender(n.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t)))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?Jo(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Da(e){return new Ma(e)}var Ia=function(e){return function(t){return t.test(e)}},Ra=[hn,dn,un,ln,pn,fn,{test:function(e){return"auto"===e},parse:function(e){return e}}],Aa=function(e){return Ra.find(Ia(e))},Na=lt(lt([],st(Ra)),[Zr,no]),La=function(e){return Na.find(Ia(e))};function Fa(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Da(n))}function za(e,t){var n=Dt(e,t),r=n?e.makeTargetAnimatable(n,!1):{},o=r.transitionEnd,a=void 0===o?{}:o;r.transition;var i,c=ct(r,["transitionEnd","transition"]);for(var s in c=it(it({},c),a)){Fa(e,s,(i=c[s],Kn(i)?i[i.length-1]||0:i))}}function Ba(e,t){if(t)return(t[e]||t.default||t).from}function Ha(e,t,n){var r;void 0===n&&(n={});var o=Dt(e,t,n.custom),a=(o||{}).transition,i=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(i=n.transitionOverride);var c=o?function(){return Va(e,o,n)}:function(){return Promise.resolve()},s=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var o=i.delayChildren,a=void 0===o?0:o,c=i.staggerChildren,s=i.staggerDirection;return function(e,t,n,r,o,a){void 0===n&&(n=0);void 0===r&&(r=0);void 0===o&&(o=1);var i=[],c=(e.variantChildren.size-1)*r,s=1===o?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),c-e*r};return Array.from(e.variantChildren).sort(Wa).forEach((function(e,r){i.push(Ha(e,t,it(it({},a),{delay:n+s(r)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(i)}(e,t,a+r,c,s,n)}:function(){return Promise.resolve()},l=i.when;if(l){var u=st("beforeChildren"===l?[c,s]:[s,c],2),d=u[0],f=u[1];return d().then(f)}return Promise.all([c(),s(n.delay)])}function Va(e,t,n){var r,o=void 0===n?{}:n,a=o.delay,i=void 0===a?0:a,c=o.transitionOverride,s=o.type,l=e.makeTargetAnimatable(t),u=l.transition,d=void 0===u?e.getDefaultTransition():u,f=l.transitionEnd,p=ct(l,["transition","transitionEnd"]);c&&(d=c);var b=[],h=s&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[s]);for(var m in p){var v=e.getValue(m),g=p[m];if(!(!v||void 0===g||h&&Ua(h,m))){var y=Sa(m,v,g,it({delay:i},d));b.push(y)}}return Promise.all(b).then((function(){f&&za(e,f)}))}function Wa(e,t){return e.sortNodePosition(t)}function Ua(e,t){var n=e.protectedKeys,r=e.needsAnimating,o=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,o}var Ka=[Zn.Animate,Zn.Hover,Zn.Tap,Zn.Drag,Zn.Focus,Zn.Exit],Ga=lt([],st(Ka)).reverse(),$a=Ka.length;function qa(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,r=t.options;return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(),Array.isArray(t)){var o=t.map((function(t){return Ha(e,t,n)}));r=Promise.all(o)}else if("string"==typeof t)r=Ha(e,t,n);else{var a="function"==typeof t?Dt(e,t,n.custom):t;r=Va(e,a,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}function Ya(e){var t,n=qa(e),r=((t={})[Zn.Animate]=Xa(!0),t[Zn.Hover]=Xa(),t[Zn.Tap]=Xa(),t[Zn.Drag]=Xa(),t[Zn.Focus]=Xa(),t[Zn.Exit]=Xa(),t),o={},a=!0,i=function(t,n){var r=Dt(e,n);if(r){r.transition;var o=r.transitionEnd,a=ct(r,["transition","transitionEnd"]);t=it(it(it({},t),a),o)}return t};function c(t,c){for(var s,l=e.getProps(),u=e.getVariantContext(!0)||{},d=[],f=new Set,p={},b=1/0,h=function(n){var o=Ga[n],h=r[o],m=null!==(s=l[o])&&void 0!==s?s:u[o],v=Tt(m),g=o===c?h.isActive:null;!1===g&&(b=n);var y=m===u[o]&&m!==l[o]&&v;if(y&&a&&e.manuallyAnimateOnMount&&(y=!1),h.protectedKeys=it({},p),!h.isActive&&null===g||!m&&!h.prevProp||Un(m)||"boolean"==typeof m)return"continue";var O=function(e,t){if("string"==typeof t)return t!==e;if(Pt(t))return!kr(t,e);return!1}(h.prevProp,m)||o===c&&h.isActive&&!y&&v||n>b&&v,j=Array.isArray(m)?m:[m],w=j.reduce(i,{});!1===g&&(w={});var x=h.prevResolvedValues,_=void 0===x?{}:x,E=it(it({},_),w),k=function(e){O=!0,f.delete(e),h.needsAnimating[e]=!0};for(var S in E){var C=w[S],P=_[S];p.hasOwnProperty(S)||(C!==P?Kn(C)&&Kn(P)?kr(C,P)?h.protectedKeys[S]=!0:k(S):void 0!==C?k(S):f.add(S):void 0!==C&&f.has(S)?k(S):h.protectedKeys[S]=!0)}h.prevProp=m,h.prevResolvedValues=w,h.isActive&&(p=it(it({},p),w)),a&&e.blockInitialAnimation&&(O=!1),O&&!y&&d.push.apply(d,lt([],st(j.map((function(e){return{animation:e,options:it({type:o},t)}})))))},m=0;m<$a;m++)h(m);if(o=it({},p),f.size){var v={};f.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(v[t]=n)})),d.push({animation:v})}var g=Boolean(d.length);return a&&!1===l.initial&&!e.manuallyAnimateOnMount&&(g=!1),a=!1,g?n(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==o[e]},animateChanges:c,setActive:function(t,n,o){var a;return r[t].isActive===n?Promise.resolve():(null===(a=e.variantChildren)||void 0===a||a.forEach((function(e){var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)})),r[t].isActive=n,c(o,t))},setAnimateFunction:function(t){n=t(e)},getState:function(){return r}}}function Xa(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Za={animation:_r((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=Ya(t)),Un(n)&&Object(q.useEffect)((function(){return n.subscribe(t)}),[n])})),exit:_r((function(e){var t=e.custom,n=e.visualElement,r=st(yt(),2),o=r[0],a=r[1],i=Object(q.useContext)(vt);Object(q.useEffect)((function(){var e,r,c=null===(e=n.animationState)||void 0===e?void 0:e.setActive(Zn.Exit,!o,{custom:null!==(r=null==i?void 0:i.custom)&&void 0!==r?r:t});!o&&(null==c||c.then(a))}),[o])}))},Ja=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},Qa=function(e){return Ja(e)&&e.hasOwnProperty("z")},ei=function(e,t){return Math.abs(e-t)};function ti(e,t){if(ro(e)&&ro(t))return ei(e,t);if(Ja(e)&&Ja(t)){var n=ei(e.x,t.x),r=ei(e.y,t.y),o=Qa(e)&&Qa(t)?ei(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}var ni=function(){function e(e,t,n){var r=this,o=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=ai(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=ti(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,a=$o().timestamp;r.history.push(it(it({},o),{timestamp:a}));var i=r.handlers,c=i.onStart,s=i.onMove;t||(c&&c(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),s&&s(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=ri(t,r.transformPagePoint),nr(e)&&0===e.buttons?r.handlePointerUp(e,t):qo.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,o=n.onEnd,a=n.onSessionEnd,i=ai(ri(t,r.transformPagePoint),r.history);r.startEvent&&o&&o(e,i),a&&a(e,i)},!(rr(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var a=ri(cr(e),this.transformPagePoint),i=a.point,c=$o().timestamp;this.history=[it(it({},i),{timestamp:c})];var s=t.onSessionStart;s&&s(e,ai(a,this.history)),this.removeListeners=xr(fr(window,"pointermove",this.handlePointerMove),fr(window,"pointerup",this.handlePointerUp),fr(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Vo.update(this.updatePoint)},e}();function ri(e,t){return t?{point:t(e.point)}:e}function oi(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ai(e,t){var n=e.point;return{point:n,delta:oi(n,ci(t)),offset:oi(n,ii(t)),velocity:si(t,.1)}}function ii(e){return e[0]}function ci(e){return e[e.length-1]}function si(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=ci(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Qo(t)));)n--;if(!r)return{x:0,y:0};var a=(o.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var i={x:(o.x-r.x)/a,y:(o.y-r.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function li(e){return e}function ui(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}var di={translate:0,scale:1,origin:0,originPoint:0};function fi(){return{x:it({},di),y:it({},di)}}function pi(e){return[e("x"),e("y")]}function bi(e,t,n){var r=t.min,o=t.max;return void 0!==r&&e<r?e=n?Fr(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?Fr(o,e,n.max):Math.min(e,o)),e}function hi(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function mi(e,t){var n,r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=st([o,r],2))[0],o=n[1]),{min:e.min+r,max:e.min+o}}function vi(e,t,n){return{min:gi(e,t),max:gi(e,n)}}function gi(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function yi(e,t){return ui(function(e,t){var n=e.top,r=e.left,o=e.bottom,a=e.right;void 0===t&&(t=li);var i=t({x:r,y:n}),c=t({x:a,y:o});return{top:i.y,left:i.x,bottom:c.y,right:c.x}}(e.getBoundingClientRect(),t))}function Oi(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),ti(e,t)<n}function ji(e){return e.max-e.min}function wi(e,t){var n=.5,r=ji(e),o=ji(t);return o>r?n=Lr(t.min,t.max-r,e.min):r>o&&(n=Lr(e.min,e.max-o,t.min)),Pr(0,1,n)}function xi(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=Fr(t.min,t.max,e.origin),e.scale=ji(n)/ji(t),Oi(e.scale,1,1e-4)&&(e.scale=1),e.translate=Fr(n.min,n.max,e.origin)-e.originPoint,Oi(e.translate)&&(e.translate=0)}function _i(e,t,n,r){xi(e.x,t.x,n.x,Ei(r.originX)),xi(e.y,t.y,n.y,Ei(r.originY))}function Ei(e){return"number"==typeof e?e:.5}function ki(e,t,n){e.min=n.min+t.min,e.max=e.min+ji(t)}var Si=function(e,t){return e.depth-t.depth};function Ci(e){return e.projection.isEnabled||e.shouldResetTransform()}function Pi(e,t){void 0===t&&(t=[]);var n=e.parent;return n&&Pi(n,t),Ci(e)&&t.push(e),t}function Ti(e){if(!e.shouldResetTransform()){var t,n=e.getLayoutState();e.notifyBeforeLayoutMeasure(n.layout),n.isHydrated=!0,n.layout=e.measureViewportBox(),n.layoutCorrected=(t=n.layout,{x:it({},t.x),y:it({},t.y)}),e.notifyLayoutMeasure(n.layout,e.prevViewportBox||n.layout),qo.update((function(){return e.rebaseProjectionTarget()}))}}function Mi(e,t){return{min:t.min-e.min,max:t.max-e.min}}function Di(e,t){return{x:Mi(e.x,t.x),y:Mi(e.y,t.y)}}function Ii(e,t){var n=e.getLayoutId(),r=t.getLayoutId();return n!==r||void 0===r&&e!==t}function Ri(e){var t=e.getProps(),n=t.drag,r=t._dragX;return n&&!r}function Ai(e,t){e.min=t.min,e.max=t.max}function Ni(e,t,n){return n+t*(e-n)}function Li(e,t,n,r,o){return void 0!==o&&(e=Ni(e,o,r)),Ni(e,n,r)+t}function Fi(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=Li(e.min,t,n,r,o),e.max=Li(e.max,t,n,r,o)}function zi(e,t){var n=t.x,r=t.y;Fi(e.x,n.translate,n.scale,n.originPoint),Fi(e.y,r.translate,r.scale,r.originPoint)}function Bi(e,t,n,r){var o=st(r,3),a=o[0],i=o[1],c=o[2];e.min=t.min,e.max=t.max;var s=void 0!==n[c]?n[c]:.5,l=Fr(t.min,t.max,s);Fi(e,n[a],n[i],l,n.scale)}var Hi=["x","scaleX","originX"],Vi=["y","scaleY","originY"];function Wi(e,t,n){Bi(e.x,t.x,n,Hi),Bi(e.y,t.y,n,Vi)}function Ui(e,t,n,r,o){return e=Ni(e-=t,1/n,r),void 0!==o&&(e=Ni(e,1/o,r)),e}function Ki(e,t,n){var r=st(n,3),o=r[0],a=r[1],i=r[2];!function(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5);var a=Fr(e.min,e.max,r)-t;e.min=Ui(e.min,t,n,a,o),e.max=Ui(e.max,t,n,a,o)}(e,t[o],t[a],t[i],t.scale)}function Gi(e,t){Ki(e.x,t,Hi),Ki(e.y,t,Vi)}var $i=new Set;function qi(e,t,n){e[n]||(e[n]=[]),e[n].push(t)}function Yi(e){return $i.add(e),function(){return $i.delete(e)}}function Xi(){if($i.size){var e=0,t=[[]],n=[],r=function(n){return qi(t,n,e)},o=function(t){qi(n,t,e),e++};$i.forEach((function(t){t(r,o),e=0})),$i.clear();for(var a=n.length,i=0;i<=a;i++)t[i]&&t[i].forEach(Ji),n[i]&&n[i].forEach(Ji)}}var Zi,Ji=function(e){return e()},Qi=new WeakMap,ec=function(){function e(e){var t=e.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.elastic={x:{min:0,max:1},y:{min:0,max:1}},this.props={},this.hasMutatedConstraints=!1,this.cursorProgress={x:.5,y:.5},this.originPoint={},this.openGlobalLock=null,this.panSession=null,this.visualElement=t,this.visualElement.enableLayoutProjection(),Qi.set(t,this)}return e.prototype.start=function(e,t){var n=this,r=void 0===t?{}:t,o=r.snapToCursor,a=void 0!==o&&o,i=r.cursorProgress,c=this.props.transformPagePoint;this.panSession=new ni(e,{onSessionStart:function(e){var t;n.stopMotion();var r=function(e){return cr(e,"client")}(e).point;null===(t=n.cancelLayout)||void 0===t||t.call(n),n.cancelLayout=Yi((function(e,t){var o=Pi(n.visualElement),c=function(e){var t=[],n=function(e){Ci(e)&&t.push(e),e.children.forEach(n)};return e.children.forEach(n),t.sort(Si)}(n.visualElement),s=lt(lt([],st(o)),st(c)),l=!1;n.isLayoutDrag()&&n.visualElement.lockProjectionTarget(),t((function(){s.forEach((function(e){return e.resetTransform()}))})),e((function(){Ti(n.visualElement),c.forEach(Ti)})),t((function(){s.forEach((function(e){return e.restoreTransform()})),a&&(l=n.snapToCursor(r))})),e((function(){Boolean(n.getAxisMotionValue("x")&&!n.isExternalDrag())||n.visualElement.rebaseProjectionTarget(!0,n.visualElement.measureViewportBox(!1)),n.visualElement.scheduleUpdateLayoutProjection();var e=n.visualElement.projection;pi((function(t){if(!l){var o=e.target[t],a=o.min,c=o.max;n.cursorProgress[t]=i?i[t]:Lr(a,c,r[t])}var s=n.getAxisMotionValue(t);s&&(n.originPoint[t]=s.get())}))})),t((function(){Wo.update(),Wo.preRender(),Wo.render(),Wo.postRender()})),e((function(){return n.resolveDragConstraints()}))}))},onStart:function(e,t){var r,o,a,i=n.props,c=i.drag,s=i.dragPropagation;(!c||s||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=vr(c),n.openGlobalLock))&&(Xi(),n.isDragging=!0,n.currentDirection=null,null===(o=(r=n.props).onDragStart)||void 0===o||o.call(r,e,t),null===(a=n.visualElement.animationState)||void 0===a||a.setActive(Zn.Drag,!0))},onMove:function(e,t){var r,o,a,i,c=n.props,s=c.dragPropagation,l=c.dragDirectionLock;if(s||n.openGlobalLock){var u=t.offset;if(l&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(u),void(null!==n.currentDirection&&(null===(o=(r=n.props).onDirectionLock)||void 0===o||o.call(r,n.currentDirection)));n.updateAxis("x",t.point,u),n.updateAxis("y",t.point,u),null===(i=(a=n.props).onDrag)||void 0===i||i.call(a,e,t),Zi=e}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:c})},e.prototype.resolveDragConstraints=function(){var e=this,t=this.props,n=t.dragConstraints,r=t.dragElastic,o=this.visualElement.getLayoutState().layoutCorrected;this.constraints=!!n&&(Ct(n)?this.resolveRefConstraints(o,n):function(e,t){var n=t.top,r=t.left,o=t.bottom,a=t.right;return{x:hi(e.x,r,a),y:hi(e.y,n,o)}}(o,n)),this.elastic=function(e){return!1===e?e=0:!0===e&&(e=.35),{x:vi(e,"left","right"),y:vi(e,"top","bottom")}}(r),this.constraints&&!this.hasMutatedConstraints&&pi((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(o[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(e,t){var n=this.props,r=n.onMeasureDragConstraints,o=n.transformPagePoint,a=t.current;this.constraintsBox=yi(a,o);var i=function(e,t){return{x:mi(e.x,t.x),y:mi(e.y,t.y)}}(e,this.constraintsBox);if(r){var c=r(function(e){var t=e.x,n=e.y;return{top:n.min,bottom:n.max,left:t.min,right:t.max}}(i));this.hasMutatedConstraints=!!c,c&&(i=ui(c))}return i},e.prototype.cancelDrag=function(){var e,t;this.visualElement.unlockProjectionTarget(),null===(e=this.cancelLayout)||void 0===e||e.call(this),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(Zn.Drag,!1)},e.prototype.stop=function(e,t){var n,r,o;null===(n=this.panSession)||void 0===n||n.end(),this.panSession=null;var a=this.isDragging;if(this.cancelDrag(),a){var i=t.velocity;this.animateDragEnd(i),null===(o=(r=this.props).onDragEnd)||void 0===o||o.call(r,e,t)}},e.prototype.snapToCursor=function(e){var t=this;return pi((function(n){if(tc(n,t.props.drag,t.currentDirection)){var r=t.getAxisMotionValue(n);if(!r)return t.cursorProgress[n]=.5,!0;var o=t.visualElement.getLayoutState().layout,a=o[n].max-o[n].min,i=o[n].min+a/2,c=e[n]-i;t.originPoint[n]=e[n],r.set(c)}})).includes(!0)},e.prototype.updateAxis=function(e,t,n){if(tc(e,this.props.drag,this.currentDirection))return this.getAxisMotionValue(e)?this.updateAxisMotionValue(e,n):this.updateVisualElementAxis(e,t)},e.prototype.updateAxisMotionValue=function(e,t){var n=this.getAxisMotionValue(e);if(t&&n){var r=this.originPoint[e]+t[e],o=this.constraints?bi(r,this.constraints[e],this.elastic[e]):r;n.set(o)}},e.prototype.updateVisualElementAxis=function(e,t){var n,r=this.visualElement.getLayoutState().layout[e],o=r.max-r.min,a=this.cursorProgress[e],i=function(e,t,n,r,o){var a=e-t*n;return r?bi(a,r,o):a}(t[e],o,a,null===(n=this.constraints)||void 0===n?void 0:n[e],this.elastic[e]);this.visualElement.setProjectionTargetAxis(e,i,i+o)},e.prototype.setProps=function(e){var t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,o=void 0!==r&&r,a=e.dragPropagation,i=void 0!==a&&a,c=e.dragConstraints,s=void 0!==c&&c,l=e.dragElastic,u=void 0===l?.35:l,d=e.dragMomentum,f=void 0===d||d,p=ct(e,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=it({drag:n,dragDirectionLock:o,dragPropagation:i,dragConstraints:s,dragElastic:u,dragMomentum:f},p)},e.prototype.getAxisMotionValue=function(e){var t=this.props,n=t.layout,r=t.layoutId,o="_drag"+e.toUpperCase();return this.props[o]?this.props[o]:n||void 0!==r?void 0:this.visualElement.getValue(e,0)},e.prototype.isLayoutDrag=function(){return!this.getAxisMotionValue("x")},e.prototype.isExternalDrag=function(){var e=this.props,t=e._dragX,n=e._dragY;return t||n},e.prototype.animateDragEnd=function(e){var t=this,n=this.props,r=n.drag,o=n.dragMomentum,a=n.dragElastic,i=n.dragTransition,c=function(e,t){void 0===t&&(t=!0);var n,r=e.getProjectionParent();return!!r&&(t?Gi(n=Di(r.projection.target,e.projection.target),r.getLatestValues()):n=Di(r.getLayoutState().layout,e.getLayoutState().layout),pi((function(t){return e.setProjectionTargetAxis(t,n[t].min,n[t].max,!0)})),!0)}(this.visualElement,this.isLayoutDrag()&&!this.isExternalDrag()),s=this.constraints||{};if(c&&Object.keys(s).length&&this.isLayoutDrag()){var l=this.visualElement.getProjectionParent();if(l){var u=Di(l.projection.targetFinal,s);pi((function(e){var t=u[e],n=t.min,r=t.max;s[e]={min:isNaN(n)?void 0:n,max:isNaN(r)?void 0:r}}))}}var d=pi((function(n){var l;if(tc(n,r,t.currentDirection)){var u=null!==(l=null==s?void 0:s[n])&&void 0!==l?l:{},d=a?200:1e6,f=a?40:1e7,p=it(it({type:"inertia",velocity:o?e[n]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10},i),u);return t.getAxisMotionValue(n)?t.startAxisValueAnimation(n,p):t.visualElement.startLayoutAnimation(n,p,c)}}));return Promise.all(d).then((function(){var e,n;null===(n=(e=t.props).onDragTransitionEnd)||void 0===n||n.call(e)}))},e.prototype.stopMotion=function(){var e=this;pi((function(t){var n=e.getAxisMotionValue(t);n?n.stop():e.visualElement.stopLayoutAnimation()}))},e.prototype.startAxisValueAnimation=function(e,t){var n=this.getAxisMotionValue(e);if(n){var r=n.get();return n.set(r),n.set(r),Sa(e,n,0,t)}},e.prototype.scalePoint=function(){var e=this,t=this.props,n=t.drag;if(Ct(t.dragConstraints)&&this.constraintsBox){this.stopMotion();var r={x:0,y:0};pi((function(t){r[t]=wi(e.visualElement.projection.target[t],e.constraintsBox[t])})),this.updateConstraints((function(){pi((function(t){if(tc(t,n,null)){var o=function(e,t,n){var r=e.max-e.min,o=Fr(t.min,t.max-r,n);return{min:o,max:o+r}}(e.visualElement.projection.target[t],e.constraintsBox[t],r[t]),a=o.min,i=o.max;e.visualElement.setProjectionTargetAxis(t,a,i)}}))})),setTimeout(Xi,1)}},e.prototype.updateConstraints=function(e){var t=this;this.cancelLayout=Yi((function(n,r){var o=Pi(t.visualElement);r((function(){return o.forEach((function(e){return e.resetTransform()}))})),n((function(){return Ti(t.visualElement)})),r((function(){return o.forEach((function(e){return e.restoreTransform()}))})),n((function(){t.resolveDragConstraints()})),e&&r(e)}))},e.prototype.mount=function(e){var t=this,n=fr(e.getInstance(),"pointerdown",(function(e){var n=t.props,r=n.drag,o=n.dragListener;r&&(void 0===o||o)&&t.start(e)})),r=er(window,"resize",(function(){t.scalePoint()})),o=e.onLayoutUpdate((function(){t.isDragging&&t.resolveDragConstraints()})),a=e.prevDragCursor;return a&&this.start(Zi,{cursorProgress:a}),function(){null==n||n(),null==r||r(),null==o||o(),t.cancelDrag()}},e}();function tc(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var nc,rc,oc={pan:_r((function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,o=e.onPanSessionStart,a=e.visualElement,i=t||n||r||o,c=Object(q.useRef)(null),s=Object(q.useContext)(ht).transformPagePoint,l={onSessionStart:o,onStart:n,onMove:t,onEnd:function(e,t){c.current=null,r&&r(e,t)}};Object(q.useEffect)((function(){null!==c.current&&c.current.updateHandlers(l)})),pr(a,"pointerdown",i&&function(e){c.current=new ni(e,l,{transformPagePoint:s})}),jr((function(){return c.current&&c.current.end()}))})),drag:_r((function(e){var t=e.dragControls,n=e.visualElement,r=Object(q.useContext)(ht).transformPagePoint,o=gt((function(){return new ec({visualElement:n})}));o.setProps(it(it({},e),{transformPagePoint:r})),Object(q.useEffect)((function(){return t&&t.subscribe(o)}),[o]),Object(q.useEffect)((function(){return o.mount(n)}),[])}))};function ac(e){return"string"==typeof e&&e.startsWith("var(--")}!function(e){e[e.Entering=0]="Entering",e[e.Present=1]="Present",e[e.Exiting=2]="Exiting"}(nc||(nc={})),function(e){e[e.Hide=0]="Hide",e[e.Show=1]="Show"}(rc||(rc={}));var ic=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function cc(e,t,n){void 0===n&&(n=1);var r=st(function(e){var t=ic.exec(e);if(!t)return[,];var n=st(t,3);return[n[1],n[2]]}(e),2),o=r[0],a=r[1];if(o){var i=window.getComputedStyle(t).getPropertyValue(o);return i?i.trim():ac(a)?cc(a,t,n+1):a}}function sc(e,t){return e/(t.max-t.min)*100}var lc={process:function(e,t,n){var r=n.target;if("string"==typeof e){if(!dn.test(e))return e;e=parseFloat(e)}return sc(e,r.x)+"% "+sc(e,r.y)+"%"}},uc={borderRadius:it(it({},lc),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:lc,borderTopRightRadius:lc,borderBottomLeftRadius:lc,borderBottomRightRadius:lc,boxShadow:{process:function(e,t){var n=t.delta,r=t.treeScale,o=e,a=e.includes("var("),i=[];a&&(e=e.replace(ic,(function(e){return i.push(e),"_$css"})));var c=no.parse(e);if(c.length>5)return o;var s=no.createTransformer(e),l="number"!=typeof c[0]?1:0,u=n.x.scale*r.x,d=n.y.scale*r.y;c[0+l]/=u,c[1+l]/=d;var f=Fr(u,d,.5);"number"==typeof c[2+l]&&(c[2+l]/=f),"number"==typeof c[3+l]&&(c[3+l]/=f);var p=s(c);if(a){var b=0;p=p.replace("_$css",(function(){var e=i[b];return b++,e}))}return p}}},dc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.frameTarget={x:{min:0,max:1},y:{min:0,max:1}},t.currentAnimationTarget={x:{min:0,max:1},y:{min:0,max:1}},t.isAnimating={x:!1,y:!1},t.stopAxisAnimation={x:void 0,y:void 0},t.isAnimatingTree=!1,t.animate=function(e,n,r){void 0===r&&(r={});var o=r.originBox,a=r.targetBox,i=r.visibilityAction,c=r.shouldStackAnimate,s=r.onComplete,l=r.prevParent,u=ct(r,["originBox","targetBox","visibilityAction","shouldStackAnimate","onComplete","prevParent"]),d=t.props,f=d.visualElement,p=d.layout;if(!1===c)return t.isAnimatingTree=!1,t.safeToRemove();if(!t.isAnimatingTree||!0===c){c&&(t.isAnimatingTree=!0),n=o||n,e=a||e;var b=!1,h=f.getProjectionParent();if(h){var m=h.prevViewportBox,v=h.getLayoutState().layout;l&&(a&&(v=l.getLayoutState().layout),o&&!Ii(l,h)&&l.prevViewportBox&&(m=l.prevViewportBox)),m&&vc(l,o,a)&&(b=!0,n=Di(m,n),e=Di(v,e))}var g=fc(n,e),y=pi((function(r){var o,a;if("position"===p){var c=e[r].max-e[r].min;n[r].max=n[r].min+c}if(!f.projection.isTargetLocked)return void 0===i?g?t.animateAxis(r,e[r],n[r],it(it({},u),{isRelative:b})):(null===(a=(o=t.stopAxisAnimation)[r])||void 0===a||a.call(o),f.setProjectionTargetAxis(r,e[r].min,e[r].max,b)):void f.setVisibility(i===rc.Show)}));return f.syncRender(),Promise.all(y).then((function(){t.isAnimatingTree=!1,s&&s(),f.notifyLayoutAnimationComplete()}))}},t}return at(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.visualElement;t.animateMotionValue=Sa,t.enableLayoutProjection(),this.unsubLayoutReady=t.onLayoutUpdate(this.animate),t.layoutSafeToRemove=function(){return e.safeToRemove()},function(e){for(var t in e)Ht[t]=e[t]}(uc)},t.prototype.componentWillUnmount=function(){var e=this;this.unsubLayoutReady(),pi((function(t){var n,r;return null===(r=(n=e.stopAxisAnimation)[t])||void 0===r?void 0:r.call(n)}))},t.prototype.animateAxis=function(e,t,n,r){var o,a,i=this,c=void 0===r?{}:r,s=c.transition,l=c.isRelative;if(!this.isAnimating[e]||!hc(t,this.currentAnimationTarget[e])){null===(a=(o=this.stopAxisAnimation)[e])||void 0===a||a.call(o),this.isAnimating[e]=!0;var u=this.props.visualElement,d=this.frameTarget[e],f=u.getProjectionAnimationProgress()[e];f.clearListeners(),f.set(0),f.set(0);var p=function(){var r=f.get()/1e3;!function(e,t,n,r){e.min=Fr(t.min,n.min,r),e.max=Fr(t.max,n.max,r)}(d,n,t,r),u.setProjectionTargetAxis(e,d.min,d.max,l)};p();var b=f.onChange(p);this.stopAxisAnimation[e]=function(){i.isAnimating[e]=!1,f.stop(),b()},this.currentAnimationTarget[e]=t;var h=s||u.getDefaultTransition()||mc;return Sa("x"===e?"layoutX":"layoutY",f,1e3,h&&ka(h,"layout")).then(this.stopAxisAnimation[e])}},t.prototype.safeToRemove=function(){var e,t;null===(t=(e=this.props).safeToRemove)||void 0===t||t.call(e)},t.prototype.render=function(){return null},t}(q.Component);function fc(e,t){return!(bc(e)||bc(t)||hc(e.x,t.x)&&hc(e.y,t.y))}var pc={min:0,max:0};function bc(e){return hc(e.x,pc)&&hc(e.y,pc)}function hc(e,t){return e.min===t.min&&e.max===t.max}var mc={duration:.45,ease:[.4,0,.1,1]};function vc(e,t,n){return e||!e&&!(t||n)}var gc={layoutReady:function(e){return e.notifyLayoutReady()}};function yc(){var e=new Set;return{add:function(t){return e.add(t)},flush:function(t){var n=void 0===t?gc:t,r=n.layoutReady,o=n.parent;Yi((function(t,n){var a=Array.from(e).sort(Si),i=o?Pi(o):[];n((function(){lt(lt([],st(i)),st(a)).forEach((function(e){return e.resetTransform()}))})),t((function(){a.forEach(Ti)})),n((function(){i.forEach((function(e){return e.restoreTransform()})),a.forEach(r)})),t((function(){a.forEach((function(e){e.isPresent&&(e.presence=nc.Present)}))})),n((function(){Wo.preRender(),Wo.render()})),t((function(){qo.postRender((function(){return a.forEach(Oc)})),e.clear()}))})),Xi()}}}function Oc(e){e.prevViewportBox=e.projection.target}var jc=Object(q.createContext)(yc()),wc=Object(q.createContext)(yc());function xc(e){return!!e.forceUpdate}var _c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return at(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.syncLayout,n=e.framerSyncLayout,r=e.visualElement;xc(t)&&t.register(r),xc(n)&&n.register(r),r.onUnmount((function(){xc(t)&&t.remove(r),xc(n)&&n.remove(r)}))},t.prototype.getSnapshotBeforeUpdate=function(){var e=this.props,t=e.syncLayout,n=e.visualElement;return xc(t)?t.syncUpdate():(!function(e){e.shouldResetTransform()||(e.prevViewportBox=e.measureViewportBox(!1),e.rebaseProjectionTarget(!1,e.prevViewportBox))}(n),t.add(n)),null},t.prototype.componentDidUpdate=function(){var e=this.props.syncLayout;xc(e)||e.flush()},t.prototype.render=function(){return null},t}(Y.a.Component);var Ec={measureLayout:function(e){var t=Object(q.useContext)(jc),n=Object(q.useContext)(wc);return Y.a.createElement(_c,it({},e,{syncLayout:t,framerSyncLayout:n}))},layoutAnimation:function(e){var t=st(yt(),2)[1];return q.createElement(dc,it({},e,{safeToRemove:t}))}};function kc(){return{isHydrated:!1,layout:{x:{min:0,max:1},y:{min:0,max:1}},layoutCorrected:{x:{min:0,max:1},y:{min:0,max:1}},treeScale:{x:1,y:1},delta:fi(),deltaFinal:fi(),deltaTransform:""}}var Sc=kc();function Cc(e,t,n){var r=e.x,o=e.y,a="translate3d("+r.translate/t.x+"px, "+o.translate/t.y+"px, 0) ";if(n){var i=n.rotate,c=n.rotateX,s=n.rotateY;i&&(a+="rotate("+i+") "),c&&(a+="rotateX("+c+") "),s&&(a+="rotateY("+s+") ")}return a+="scale("+r.scale+", "+o.scale+")",n||a!==Tc?a:""}function Pc(e){var t=e.deltaFinal;return 100*t.x.origin+"% "+100*t.y.origin+"% 0"}var Tc=Cc(Sc.delta,Sc.treeScale,{x:1,y:1}),Mc=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];function Dc(e,t,n,r){var o,a,i=e.delta,c=e.layout,s=e.layoutCorrected,l=e.treeScale,u=t.target;a=c,Ai((o=s).x,a.x),Ai(o.y,a.y),function(e,t,n){var r=n.length;if(r){var o,a;t.x=t.y=1;for(var i=0;i<r;i++)a=(o=n[i]).getLayoutState().delta,t.x*=a.x.scale,t.y*=a.y.scale,zi(e,a),Ri(o)&&Wi(e,e,o.getLatestValues())}}(s,l,n),_i(i,s,u,r)}var Ic=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Ca(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){Pa(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Si),this.isDirty=!1,this.children.forEach(e)},e}();var Rc=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,o=e.getBaseTarget,a=e.makeTargetAnimatable,i=e.measureViewportBox,c=e.render,s=e.readValueFromInstance,l=e.resetTransform,u=e.restoreTransform,d=e.removeValueFromRenderState,f=e.sortNodePosition,p=e.scrapeMotionValuesFromProps;return function(e,t){var b=e.parent,h=e.props,m=e.presenceId,v=e.blockInitialAnimation,g=e.visualState;void 0===t&&(t={});var y,O,j,w,x,_,E=g.latestValues,k=g.renderState,S=function(){var e=Mc.map((function(){return new Ta})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){return Mc.forEach((function(r){var o;null===(o=t[r])||void 0===o||o.call(t);var a="on"+r,i=e[a];i&&(t[r]=n[a](i))}))}};return e.forEach((function(e,t){n["on"+Mc[t]]=function(t){return e.add(t)},n["notify"+Mc[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,lt([],st(t)))}})),n}(),C={isEnabled:!1,isHydrated:!1,isTargetLocked:!1,target:{x:{min:0,max:1},y:{min:0,max:1}},targetFinal:{x:{min:0,max:1},y:{min:0,max:1}}},P=C,T=E,M=kc(),D=!1,I=new Map,R=new Map,A={},N=it({},E);function L(){y&&(G.isProjectionReady()&&(Wi(P.targetFinal,P.target,T),_i(M.deltaFinal,M.layoutCorrected,P.targetFinal,E)),F(),c(y,k))}function F(){var e=E;if(w&&w.isActive()){var n=w.getCrossfadeState(G);n&&(e=n)}r(G,k,e,P,M,t,h)}function z(){S.notifyUpdate(E)}function B(){G.layoutTree.forEach(Nc)}var H=p(h);for(var V in H){var W=H[V];void 0!==E[V]&&Xt(W)&&W.set(E[V],!1)}var U=It(h),K=Rt(h),G=it(it({treeType:n,current:null,depth:b?b.depth+1:0,parent:b,children:new Set,path:b?lt(lt([],st(b.path)),[b]):[],layoutTree:b?b.layoutTree:new Ic,presenceId:m,projection:C,variantChildren:K?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==b?void 0:b.isMounted()),blockInitialAnimation:v,isMounted:function(){return Boolean(y)},mount:function(e){y=G.current=e,G.pointTo(G),K&&b&&!U&&(_=null==b?void 0:b.addVariantChild(G)),null==b||b.children.add(G)},unmount:function(){Vo.update(z),Vo.render(L),Vo.preRender(G.updateLayoutProjection),R.forEach((function(e){return e()})),G.stopLayoutAnimation(),G.layoutTree.remove(G),null==_||_(),null==b||b.children.delete(G),null==j||j(),S.clearAllListeners()},addVariantChild:function(e){var t,n=G.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return f&&n===e.treeType?f(G.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return K?G:null==b?void 0:b.getClosestVariantNode()},scheduleUpdateLayoutProjection:b?b.scheduleUpdateLayoutProjection:function(){return qo.preRender(G.updateTreeLayoutProjection,!1,!0)},getLayoutId:function(){return h.layoutId},getInstance:function(){return y},getStaticValue:function(e){return E[e]},setStaticValue:function(e,t){return E[e]=t},getLatestValues:function(){return E},setVisibility:function(e){G.isVisible!==e&&(G.isVisible=e,G.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(G,e,h,t)},addValue:function(e,t){G.hasValue(e)&&G.removeValue(e),I.set(e,t),E[e]=t.get(),function(e,t){var n=t.onChange((function(t){E[e]=t,h.onUpdate&&qo.update(z,!1,!0)})),r=t.onRenderRequest(G.scheduleRender);R.set(e,(function(){n(),r()}))}(e,t)},removeValue:function(e){var t;I.delete(e),null===(t=R.get(e))||void 0===t||t(),R.delete(e),delete E[e],d(e,k)},hasValue:function(e){return I.has(e)},getValue:function(e,t){var n=I.get(e);return void 0===n&&void 0!==t&&(n=Da(t),G.addValue(e,n)),n},forEachValue:function(e){return I.forEach(e)},readValue:function(e){var n;return null!==(n=E[e])&&void 0!==n?n:s(y,e,t)},setBaseTarget:function(e,t){N[e]=t},getBaseTarget:function(e){if(o){var t=o(h,e);if(void 0!==t&&!Xt(t))return t}return N[e]}},S),{build:function(){return F(),k},scheduleRender:function(){qo.render(L,!1,!0)},syncRender:L,setProps:function(e){h=e,S.updatePropListeners(e),A=function(e,t,n){var r;for(var o in t){var a=t[o],i=n[o];if(Xt(a))e.addValue(o,a);else if(Xt(i))e.addValue(o,Da(a));else if(i!==a)if(e.hasValue(o)){var c=e.getValue(o);!c.hasAnimated&&c.set(a)}else e.addValue(o,Da(null!==(r=e.getStaticValue(o))&&void 0!==r?r:a))}for(var o in n)void 0===t[o]&&e.removeValue(o);return t}(G,p(h),A)},getProps:function(){return h},getVariant:function(e){var t;return null===(t=h.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return h.transition},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==b?void 0:b.getVariantContext();if(!U){var t=(null==b?void 0:b.getVariantContext())||{};return void 0!==h.initial&&(t.initial=h.initial),t}for(var n={},r=0;r<zc;r++){var o=Fc[r],a=h[o];(Tt(a)||!1===a)&&(n[o]=a)}return n},enableLayoutProjection:function(){C.isEnabled=!0,G.layoutTree.add(G)},lockProjectionTarget:function(){C.isTargetLocked=!0},unlockProjectionTarget:function(){G.stopLayoutAnimation(),C.isTargetLocked=!1},getLayoutState:function(){return M},setCrossfader:function(e){w=e},isProjectionReady:function(){return C.isEnabled&&C.isHydrated&&M.isHydrated},startLayoutAnimation:function(e,t,n){void 0===n&&(n=!1);var r=G.getProjectionAnimationProgress()[e],o=n?C.relativeTarget[e]:C.target[e],a=o.min,i=o.max-a;return r.clearListeners(),r.set(a),r.set(a),r.onChange((function(t){G.setProjectionTargetAxis(e,t,t+i,n)})),G.animateMotionValue(e,r,0,t)},stopLayoutAnimation:function(){pi((function(e){return G.getProjectionAnimationProgress()[e].stop()}))},measureViewportBox:function(e){void 0===e&&(e=!0);var n=i(y,t);return e||Gi(n,E),n},getProjectionAnimationProgress:function(){return x||(x={x:Da(0),y:Da(0)}),x},setProjectionTargetAxis:function(e,t,n,r){var o;void 0===r&&(r=!1),r?(C.relativeTarget||(C.relativeTarget={x:{min:0,max:1},y:{min:0,max:1}}),o=C.relativeTarget[e]):(C.relativeTarget=void 0,o=C.target[e]),C.isHydrated=!0,o.min=t,o.max=n,D=!0,S.notifySetAxisTarget()},rebaseProjectionTarget:function(e,t){void 0===t&&(t=M.layout);var n=G.getProjectionAnimationProgress(),r=n.x,o=n.y,a=!(C.relativeTarget||C.isTargetLocked||r.isAnimating()||o.isAnimating());(e||a)&&pi((function(e){var n=t[e],r=n.min,o=n.max;G.setProjectionTargetAxis(e,r,o)}))},notifyLayoutReady:function(e){!function(e){var t=e.getProjectionParent();if(t){var n=Di(t.getLayoutState().layout,e.getLayoutState().layout);pi((function(t){e.setProjectionTargetAxis(t,n[t].min,n[t].max,!0)}))}else e.rebaseProjectionTarget()}(G),G.notifyLayoutUpdate(M.layout,G.prevViewportBox||M.layout,e)},resetTransform:function(){return l(G,y,h)},restoreTransform:function(){return u(y,k)},updateLayoutProjection:function(){if(G.isProjectionReady()){var e=M.delta,t=M.treeScale,n=t.x,r=t.y,o=M.deltaTransform;Dc(M,P,G.path,E),D&&G.notifyViewportBoxUpdate(P.target,e),D=!1;var a=Cc(e,t);a===o&&n===t.x&&r===t.y||G.scheduleRender(),M.deltaTransform=a}},updateTreeLayoutProjection:function(){G.layoutTree.forEach(Ac),qo.preRender(B,!1,!0)},getProjectionParent:function(){if(void 0===O){for(var e=!1,t=G.path.length-1;t>=0;t--){var n=G.path[t];if(n.projection.isEnabled){e=n;break}}O=e}return O},resolveRelativeTargetBox:function(){var e=G.getProjectionParent();if(C.relativeTarget&&e&&(function(e,t){ki(e.target.x,e.relativeTarget.x,t.target.x),ki(e.target.y,e.relativeTarget.y,t.target.y)}(C,e.projection),Ri(e))){var t=C.target;Wi(t,t,e.getLatestValues())}},shouldResetTransform:function(){return Boolean(h._layoutResetTransform)},pointTo:function(e){P=e.projection,T=e.getLatestValues(),null==j||j(),j=xr(e.onSetAxisTarget(G.scheduleUpdateLayoutProjection),e.onLayoutAnimationComplete((function(){var e;G.isPresent?G.presence=nc.Present:null===(e=G.layoutSafeToRemove)||void 0===e||e.call(G)})))},isPresent:!0,presence:nc.Entering});return G}};function Ac(e){e.resolveRelativeTargetBox()}function Nc(e){e.updateLayoutProjection()}var Lc,Fc=lt(["initial"],st(Ka)),zc=Fc.length,Bc=new Set(["width","height","top","left","right","bottom","x","y"]),Hc=function(e){return Bc.has(e)},Vc=function(e,t){e.set(t,!1),e.set(t)},Wc=function(e){return e===hn||e===dn};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Lc||(Lc={}));var Uc=function(e,t){return parseFloat(e.split(", ")[t])},Kc=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var a=o.match(/^matrix3d\((.+)\)$/);if(a)return Uc(a[1],t);var i=o.match(/^matrix\((.+)\)$/);return i?Uc(i[1],e):0}},Gc=new Set(["x","y","z"]),$c=Wt.filter((function(e){return!Gc.has(e)}));var qc={width:function(e){var t=e.x;return t.max-t.min},height:function(e){var t=e.y;return t.max-t.min},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:Kc(4,13),y:Kc(5,14)},Yc=function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=it({},t),r=it({},r);var o=Object.keys(t).filter(Hc),a=[],i=!1,c=[];if(o.forEach((function(o){var s=e.getValue(o);if(e.hasValue(o)){var l,u=n[o],d=t[o],f=Aa(u);if(Kn(d))for(var p=d.length,b=null===d[0]?1:0;b<p;b++)l?Aa(d[b]):(l=Aa(d[b]))===f||Wc(f)&&Wc(l);else l=Aa(d);if(f!==l)if(Wc(f)&&Wc(l)){var h=s.get();"string"==typeof h&&s.set(parseFloat(h)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&l===dn&&(t[o]=d.map(parseFloat))}else(null==f?void 0:f.transform)&&(null==l?void 0:l.transform)&&(0===u||0===d)?0===u?s.set(l.transform(u)):t[o]=f.transform(d):(i||(a=function(e){var t=[];return $c.forEach((function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),i=!0),c.push(o),r[o]=void 0!==r[o]?r[o]:t[o],Vc(s,d))}})),c.length){var s=function(e,t,n){var r=t.measureViewportBox(),o=t.getInstance(),a=getComputedStyle(o),i=a.display,c={top:a.top,left:a.left,bottom:a.bottom,right:a.right,transform:a.transform};"none"===i&&t.setStaticValue("display",e.display||"block"),t.syncRender();var s=t.measureViewportBox();return n.forEach((function(n){var o=t.getValue(n);Vc(o,qc[n](r,c)),e[n]=qc[n](s,a)})),e}(t,e,c);return a.length&&a.forEach((function(t){var n=st(t,2),r=n[0],o=n[1];e.getValue(r).set(o)})),e.syncRender(),{target:s,transitionEnd:r}}return{target:t,transitionEnd:r}};function Xc(e,t,n,r){return function(e){return Object.keys(e).some(Hc)}(t)?Yc(e,t,n,r):{target:t,transitionEnd:r}}var Zc=function(e,t,n,r){var o=function(e,t,n){var r,o=ct(t,[]),a=e.getInstance();if(!(a instanceof HTMLElement))return{target:o,transitionEnd:n};for(var i in n&&(n=it({},n)),e.forEachValue((function(e){var t=e.get();if(ac(t)){var n=cc(t,a);n&&e.set(n)}})),o){var c=o[i];if(ac(c)){var s=cc(c,a);s&&(o[i]=s,n&&(null!==(r=n[i])&&void 0!==r||(n[i]=c)))}}return{target:o,transitionEnd:n}}(e,t,r);return Xc(e,t=o.target,n,r=o.transitionEnd)};var Jc={treeType:"dom",readValueFromInstance:function(e,t){if(Gt(t)){var n=ya(t);return n&&n.default||0}var r,o=(r=e,window.getComputedStyle(r));return(Jt(t)?o.getPropertyValue(t):o[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return yi(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var o=n.transformValues;void 0===r&&(r=!0);var a=t.transition,i=t.transitionEnd,c=ct(t,["transition","transitionEnd"]),s=function(e,t,n){var r,o,a={};for(var i in e)a[i]=null!==(r=Ba(i,t))&&void 0!==r?r:null===(o=n.getValue(i))||void 0===o?void 0:o.get();return a}(c,a||{},e);if(o&&(i&&(i=o(i)),c&&(c=o(c)),s&&(s=o(s))),r){!function(e,t,n){var r,o,a,i,c=Object.keys(t).filter((function(t){return!e.hasValue(t)})),s=c.length;if(s)for(var l=0;l<s;l++){var u=c[l],d=t[u],f=null;Array.isArray(d)&&(f=d[0]),null===f&&(f=null!==(o=null!==(r=n[u])&&void 0!==r?r:e.readValue(u))&&void 0!==o?o:t[u]),null!=f&&("string"==typeof f&&/^\-?\d*\.?\d+$/.test(f)?f=parseFloat(f):!La(f)&&no.test(d)&&(f=Oa(u,d)),e.addValue(u,Da(f)),null!==(a=(i=n)[u])&&void 0!==a||(i[u]=f),e.setBaseTarget(u,f))}}(e,c,s);var l=Zc(e,c,s,i);i=l.transitionEnd,c=l.target}return it({transition:a,transitionEnd:i},c)},scrapeMotionValuesFromProps:Vn,build:function(e,t,n,r,o,a,i){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden");var c=r.isEnabled&&o.isHydrated;On(t,n,r,o,a,i.transformTemplate,c?Cc:void 0,c?Pc:void 0)},render:zn},Qc=Rc(Jc),es=Rc(it(it({},Jc),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Gt(t)?(null===(n=ya(t))||void 0===n?void 0:n.default)||0:(t=Bn.has(t)?t:Fn(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Wn,build:function(e,t,n,r,o,a,i){var c=r.isEnabled&&o.isHydrated;In(t,n,r,o,a,i.transformTemplate,c?Cc:void 0,c?Pc:void 0)},render:Hn})),ts=function(e,t){return Bt(e)?es(t,{enableHardwareAcceleration:!1}):Qc(t,{enableHardwareAcceleration:!0})},ns=it(it(it(it({},Za),Er),oc),Ec),rs=Ft((function(e,t){return Qn(e,t,ns,ts)}));var os=n("7Jlx"),as=n("q9zb"),is=n("C6yU");const cs=Object(s.createContext)({flexItemDisplay:void 0});const ss={name:"zjik7",styles:"display:flex"},ls={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},us={name:"82a6rk",styles:"flex:1"},ds={name:"13nosa1",styles:">*{min-height:0;}"},fs={name:"1pwxzk4",styles:">*{min-width:0;}"};var ps=n("h9+V");function bs(e){const{className:t,display:n,isBlock:r=!1,...o}=Object(is.a)(e,"FlexItem"),a={},i=Object(s.useContext)(cs).flexItemDisplay;a.Base=Object(x.a)({display:n||i},"","");return{...o,className:Object(ps.a)()(ls,a.Base,r&&us,t)}}var hs=Object(os.a)((function(e,t){const n=function(e){return bs({isBlock:!0,...Object(is.a)(e,"FlexBlock")})}(e);return Object(s.createElement)(as.a,Object(c.a)({},n,{ref:t}))}),"FlexBlock");var ms=Object(os.a)((function(e,t){const n=bs(e);return Object(s.createElement)(as.a,Object(c.a)({},n,{ref:t}))}),"FlexItem"),vs=n("NMb1"),gs=n.n(vs);const ys=["40em","52em","64em"],Os=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{defaultIndex:t=0}=e;if("number"!=typeof t)throw new TypeError(`Default breakpoint index should be a number. Got: ${t}, ${typeof t}`);if(t<0||t>ys.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${ys.length} breakpoints, got index ${t}`);const[n,r]=Object(s.useState)(t);return Object(s.useEffect)(()=>{const e=()=>{const e=ys.filter(e=>"undefined"!=typeof window&&window.matchMedia(`screen and (min-width: ${e})`).matches).length;n!==e&&r(e)};return e(),"undefined"!=typeof window&&window.addEventListener("resize",e),()=>{"undefined"!=typeof window&&window.removeEventListener("resize",e)}},[n]),n};function js(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Os(t);if(!Array.isArray(e)&&"function"!=typeof e)return e;const r=e||[];return r[n>=r.length?r.length-1:n]}function ws(e){var t,n;if(void 0===e)return;if(!e)return"0";const r="number"==typeof e?e:Number(e);return"undefined"!=typeof window&&null!==(t=window.CSS)&&void 0!==t&&null!==(n=t.supports)&&void 0!==n&&n.call(t,"margin",e.toString())||Number.isNaN(r)?e.toString():`calc(4px * ${e})`}const xs=new RegExp(/-left/g),_s=new RegExp(/-right/g),Es=new RegExp(/Left/g),ks=new RegExp(/Right/g);function Ss(e){return"left"===e?"right":"right"===e?"left":xs.test(e)?e.replace(xs,"-right"):_s.test(e)?e.replace(_s,"-left"):Es.test(e)?e.replace(Es,"Right"):ks.test(e)?e.replace(ks,"Left"):e}const Cs=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(l.mapKeys)(e,(e,t)=>Ss(t))};function Ps(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return()=>t?Object(f.isRTL)()?Object(x.a)(t,""):Object(x.a)(e,""):Object(f.isRTL)()?Object(x.a)(Cs(e),""):Object(x.a)(e,"")}function Ts(e){const{align:t="center",className:n,direction:r="row",expanded:o=!0,gap:a=2,justify:i="space-between",wrap:c=!1,...l}=Object(is.a)(function(e){let{isReversed:t,...n}=e;return void 0!==t?(gs()("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...n,direction:t?"row-reverse":"row"}):n}(e),"Flex"),u=js(Array.isArray(r)?r:[r]),d="string"==typeof u&&!!u.includes("column"),f="string"==typeof u&&u.includes("reverse"),p=Object(ps.a)();return{...l,className:Object(s.useMemo)(()=>{const e={};return e.Base=Object(x.a)({alignItems:d?"normal":t,flexDirection:u,flexWrap:c?"wrap":void 0,justifyContent:i,height:d&&o?"100%":void 0,width:!d&&o?"100%":void 0,marginBottom:c?`calc(${ws(a)} * -1)`:void 0},"",""),e.Items=Object(x.a)(">*+*:not( marquee ){margin-top:",d?ws(a):void 0,";",Ps({marginLeft:d||f?void 0:ws(a),marginRight:!d&&f?ws(a):void 0})(),";}",""),e.WrapItems=Object(x.a)(">*:not( marquee ){margin-bottom:",ws(a),";",Ps({marginLeft:!d&&f?ws(a):void 0,marginRight:d||f?void 0:ws(a)})(),";}>*:last-child:not( marquee ){",Ps({marginLeft:!d&&f?0:void 0,marginRight:d||f?void 0:0})(),";}",""),p(ss,e.Base,c?e.WrapItems:e.Items,d?ds:fs,n)},[t,n,u,o,a,d,f,i,c,Ps.watch()]),isColumn:d}}Ps.watch=()=>Object(f.isRTL)();var Ms=Object(os.a)((function(e,t){const{children:n,isColumn:r,...o}=Ts(e);return Object(s.createElement)(cs.Provider,{value:{flexItemDisplay:r?"block":void 0}},Object(s.createElement)(as.a,Object(c.a)({},o,{ref:t}),n))}),"Flex");const Ds={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},Is="…",Rs={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},As={ellipsis:Is,ellipsizeMode:Rs.auto,limit:0,numberOfLines:0};function Ns(e,t,n,r){if("string"!=typeof e)return"";const o=e.length,a=~~t,i=~~n,c=Object(l.isNil)(r)?Is:r;return 0===a&&0===i||a>=o||i>=o||a+i>=o?e:0===i?e.slice(0,a)+c:e.slice(0,a)+c+e.slice(o-i)}function Ls(e){const{className:t,children:n,ellipsis:r=Is,ellipsizeMode:o=Rs.auto,limit:a=0,numberOfLines:i=0,...c}=Object(is.a)(e,"Truncate"),l=Object(ps.a)(),u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;const n={...As,...t},{ellipsis:r,ellipsizeMode:o,limit:a}=n;if(o===Rs.none)return e;let i,c;switch(o){case Rs.head:i=0,c=a;break;case Rs.middle:i=Math.floor(a/2),c=Math.floor(a/2);break;default:i=a,c=0}const s=o!==Rs.auto?Ns(e,i,c,r):e;return s}("string"==typeof n?n:"",{ellipsis:r,ellipsizeMode:o,limit:a,numberOfLines:i}),d=o===Rs.auto;return{...c,className:Object(s.useMemo)(()=>{const e={};return e.numberOfLines=Object(x.a)("-webkit-box-orient:vertical;-webkit-line-clamp:",i,";display:-webkit-box;overflow:hidden;",""),l(d&&!i&&Ds,d&&!!i&&e.numberOfLines,t)},[t,i,d]),children:u}}var Fs=n("4eJC"),zs=n.n(Fs);let Bs;Object(_.b)([E.a]);const Hs=zs()((function(e){var t,n;if("string"!=typeof e)return"";if("string"==typeof(n=e)&&Object(_.a)(n).isValid())return e;if(!e.includes("var("))return"";if("undefined"==typeof document)return"";const r=function(){if("undefined"!=typeof document){if(!Bs){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),Bs=e}return Bs}}();if(!r)return"";r.style.background=e;const o=null===(t=window)||void 0===t?void 0:t.getComputedStyle(r).background;return r.style.background="",o||""}));function Vs(e){return"#000000"===function(e){const t=Hs(e);return Object(_.a)(t).isLight()?"#000000":"#ffffff"}(e)?"dark":"light"}const Ws={controlSurfaceColor:L.white,controlTextActiveColor:L.ui.theme,controlPaddingX:"12px",controlPaddingXLarge:"calc(12px * 1.3334)",controlPaddingXSmall:"calc(12px / 1.3334)",controlBackgroundColor:L.white,controlBorderRadius:"2px",controlBorderColor:L.gray[700],controlBoxShadow:"transparent",controlBorderColorHover:L.gray[700],controlBoxShadowFocus:"0 0 0 0.5px "+L.admin.theme,controlDestructiveBorderColor:L.alert.red,controlHeight:"36px",controlHeightXSmall:"calc( 36px * 0.6 )",controlHeightSmall:"calc( 36px * 0.8 )",controlHeightLarge:"calc( 36px * 1.2 )",controlHeightXLarge:"calc( 36px * 1.4 )"},Us={toggleGroupControlBackgroundColor:Ws.controlBackgroundColor,toggleGroupControlBorderColor:L.ui.border,toggleGroupControlBackdropBackgroundColor:Ws.controlSurfaceColor,toggleGroupControlBackdropBorderColor:L.ui.border,toggleGroupControlBackdropBoxShadow:"transparent",toggleGroupControlButtonColorActive:Ws.controlBackgroundColor};var Ks={...Ws,...Us,colorDivider:"rgba(0, 0, 0, 0.1)",colorScrollbarThumb:"rgba(0, 0, 0, 0.2)",colorScrollbarThumbHover:"rgba(0, 0, 0, 0.5)",colorScrollbarTrack:"rgba(0, 0, 0, 0.04)",elevationIntensity:1,radiusBlockUi:"2px",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px",spinnerSize:"18px",fontSize:"13px",fontSizeH1:"calc(2.44 * 13px)",fontSizeH2:"calc(1.95 * 13px)",fontSizeH3:"calc(1.56 * 13px)",fontSizeH4:"calc(1.25 * 13px)",fontSizeH5:"13px",fontSizeH6:"calc(0.8 * 13px)",fontSizeInputMobile:"16px",fontSizeMobile:"15px",fontSizeSmall:"calc(0.92 * 13px)",fontSizeXSmall:"calc(0.75 * 13px)",fontLineHeightBase:"1.2",fontWeight:"normal",fontWeightHeading:"600",gridBase:"4px",cardBorderRadius:"2px",cardPaddingXSmall:""+ws(2),cardPaddingSmall:""+ws(4),cardPaddingMedium:`${ws(4)} ${ws(6)}`,cardPaddingLarge:`${ws(6)} ${ws(8)}`,surfaceBackgroundColor:L.white,surfaceBackgroundSubtleColor:"#F3F3F3",surfaceBackgroundTintColor:"#F5F5F5",surfaceBorderColor:"rgba(0, 0, 0, 0.1)",surfaceBorderBoldColor:"rgba(0, 0, 0, 0.15)",surfaceBorderSubtleColor:"rgba(0, 0, 0, 0.05)",surfaceBackgroundTertiaryColor:L.white,surfaceColor:L.white,transitionDuration:"200ms",transitionDurationFast:"160ms",transitionDurationFaster:"120ms",transitionDurationFastest:"100ms",transitionTimingFunction:"cubic-bezier(0.08, 0.52, 0.52, 1)",transitionTimingFunctionControl:"cubic-bezier(0.12, 0.8, 0.32, 1)"};const Gs=Object(x.a)("color:",L.darkGray.primary,";line-height:",Ks.fontLineHeightBase,";margin:0;",""),$s={name:"4zleql",styles:"display:block"},qs=Object(x.a)("color:",L.alert.green,";",""),Ys=Object(x.a)("color:",L.alert.red,";",""),Xs=Object(x.a)("color:",L.mediumGray.text,";",""),Zs=Object(x.a)("mark{background:",L.alert.yellow,";border-radius:2px;box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;}",""),Js={name:"50zrmy",styles:"text-transform:uppercase"};var Qs=n("5V/u");const el=zs()(e=>{const t={};for(const n in e)t[n.toLowerCase()]=e[n];return t});const tl={body:13,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20},nl=[1,2,3,4,5,6].flatMap(e=>[e,e.toString()]);function rl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:13;if(e in tl)return rl(tl[e]);if("number"!=typeof e){const t=parseFloat(e);if(Number.isNaN(t))return e;e=t}const t=`(${e} / 13)`;return`calc(${t} * ${Ks.fontSize})`}function ol(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;if(!nl.includes(e))return rl(e);const t="fontSizeH"+e;return Ks[t]}var al={name:"50zrmy",styles:"text-transform:uppercase"};function il(e){const{adjustLineHeightForInnerControls:t,align:n,children:o,className:a,color:i,ellipsizeMode:c,isDestructive:u=!1,display:d,highlightEscape:f=!1,highlightCaseSensitive:p=!1,highlightWords:b,highlightSanitize:h,isBlock:m=!1,letterSpacing:v,lineHeight:g,optimizeReadabilityFor:y,size:O,truncate:j=!1,upperCase:w=!1,variant:_,weight:E=Ks.fontWeight,...k}=Object(is.a)(e,"Text");let S=o;const C=Array.isArray(b),P="caption"===O;if(C){if("string"!=typeof o)throw new TypeError("`children` of `Text` must only be `string` types when `highlightWords` is defined");S=function(e){let{activeClassName:t="",activeIndex:n=-1,activeStyle:r,autoEscape:o,caseSensitive:a=!1,children:i,findChunks:c,highlightClassName:l="",highlightStyle:u={},highlightTag:d="mark",sanitize:f,searchWords:p=[],unhighlightClassName:b="",unhighlightStyle:h}=e;if(!i)return null;if("string"!=typeof i)return i;const m=i,v=Object(Qs.findAll)({autoEscape:o,caseSensitive:a,findChunks:c,sanitize:f,searchWords:p,textToHighlight:m}),g=d;let y,O=-1,j="";return v.map((e,o)=>{const i=m.substr(e.start,e.end-e.start);if(e.highlight){let e;O++,"object"==typeof l?a?e=l[i]:(l=el(l),e=l[i.toLowerCase()]):e=l;const c=O===+n;j=`${e} ${c?t:""}`,y=!0===c&&null!==r?Object.assign({},u,r):u;const d={children:i,className:j,key:o,style:y};return"string"!=typeof g&&(d.highlightIndex=O),Object(s.createElement)(g,d)}return Object(s.createElement)("span",{children:i,className:b,key:o,style:h})})}({autoEscape:f,children:o,caseSensitive:p,searchWords:b,sanitize:h})}const T=Object(ps.a)();let M;!0===j&&(M="auto"),!1===j&&(M="none");const D=Ls({...k,className:Object(s.useMemo)(()=>{const e={},o=function(e,t){if(t)return t;if(!e)return;let n=`calc(${Ks.controlHeight} + ${ws(2)})`;switch(e){case"large":n=`calc(${Ks.controlHeightLarge} + ${ws(2)})`;break;case"small":n=`calc(${Ks.controlHeightSmall} + ${ws(2)})`;break;case"xSmall":n=`calc(${Ks.controlHeightXSmall} + ${ws(2)})`}return n}(t,g);if(e.Base=Object(x.a)({color:i,display:d,fontSize:rl(O),fontWeight:E,lineHeight:o,letterSpacing:v,textAlign:n},"",""),e.upperCase=al,e.optimalTextColor=null,y){const t="dark"===Vs(y);e.optimalTextColor=t?Object(x.a)({color:L.black},"",""):Object(x.a)({color:L.white},"","")}return T(Gs,e.Base,e.optimalTextColor,u&&Ys,!!C&&Zs,m&&$s,P&&Xs,_&&r[_],w&&e.upperCase,a)},[t,n,a,i,d,m,P,u,C,v,g,y,O,w,_,E]),children:o,ellipsizeMode:c||M});return!j&&Array.isArray(o)&&(S=s.Children.map(o,e=>{if(!Object(l.isPlainObject)(e)||!("props"in e))return e;return Object(os.b)(e,["Link"])?Object(s.cloneElement)(e,{size:e.props.size||"inherit"}):e})),{...D,children:j?D.children:S}}var cl=Object(os.a)((function(e,t){const n=il(e);return Object(s.createElement)(as.a,Object(c.a)({as:"span"},n,{ref:t}))}),"Text");var sl={name:"1739oy8",styles:"z-index:1"};const ll=e=>{let{isFocused:t}=e;return t?sl:""};var ul={name:"2o6p8u",styles:"justify-content:space-between"},dl={name:"14qk3ip",styles:"align-items:flex-start;flex-direction:column-reverse"},fl={name:"hbng6e",styles:"align-items:flex-start;flex-direction:column"};const pl=e=>{let{labelPosition:t}=e;switch(t){case"top":return fl;case"bottom":return dl;case"edge":return ul;default:return""}},bl=Object(w.a)(Ms,{target:"em5sgkm7"})("position:relative;border-radius:2px;padding-top:0;",ll," ",pl,";");var hl={name:"wyxldh",styles:"margin:0 !important"};var ml={name:"1d3w5wq",styles:"width:100%"};const vl=Object(w.a)("div",{target:"em5sgkm6"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",e=>{let{disabled:t}=e;const n=t?L.ui.backgroundDisabled:L.ui.background;return Object(x.a)({backgroundColor:n},"","")}," ",e=>{let{hideLabel:t}=e;return t?hl:null}," ",e=>{let{__unstableInputWidth:t,labelPosition:n}=e;return t?"side"===n?"":"edge"===n?Object(x.a)({flex:"0 0 "+t},"",""):Object(x.a)({width:t},"",""):ml},";"),gl=Object(w.a)("input",{target:"em5sgkm5"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",L.black,";display:block;margin:0;outline:none;padding-left:8px;padding-right:8px;width:100%;",e=>{let t,n,{isDragging:r,dragCursor:o}=e;return r&&(t=Object(x.a)("cursor:",o,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),r&&o&&(n=Object(x.a)("&:active{cursor:",o,";}","")),Object(x.a)(t," ",n,";","")}," ",e=>{let{disabled:t}=e;return t?Object(x.a)({color:L.ui.textDisabled},"",""):""}," ",e=>{let{inputSize:t}=e;const n={default:"13px",small:"11px"},r=n[t]||n.default;return r?Object(x.a)("font-size:","16px",";@media ( min-width: 600px ){font-size:",r,";}",""):""}," ",e=>{let{inputSize:t}=e;const n={default:{height:30,lineHeight:1,minHeight:30},small:{height:24,lineHeight:1,minHeight:24}},r=n[t]||n.default;return Object(x.a)(r,"","")}," &::-webkit-input-placeholder{line-height:normal;}}"),yl=e=>{let{labelPosition:t}=e,n=4;return"edge"!==t&&"side"!==t||(n=0),Object(x.a)({paddingTop:0,paddingBottom:n},"","")},Ol=Object(w.a)(cl,{target:"em5sgkm4"})("&&&{box-sizing:border-box;color:currentColor;display:block;margin:0;max-width:100%;z-index:1;",yl," overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}"),jl=e=>Object(s.createElement)(Ol,Object(c.a)({},e,{as:"label"})),wl=Object(w.a)(ms,{target:"em5sgkm3"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),xl=Object(w.a)("div",{target:"em5sgkm2"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",e=>{let t,{disabled:n,isFocused:r}=e,o=r?L.ui.borderFocus:L.ui.border;return r&&(t=`0 0 0 1px ${L.ui.borderFocus} inset`),n&&(o=L.ui.borderDisabled),Object(x.a)({boxShadow:t,borderColor:o,borderStyle:"solid",borderWidth:1},"","")}," ",Ps({paddingLeft:2}),";}"),_l=Object(w.a)("span",{target:"em5sgkm1"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),El=Object(w.a)("span",{target:"em5sgkm0"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"});var kl=Object(s.memo)((function(e){let{disabled:t=!1,isFocused:n=!1}=e;return Object(s.createElement)(xl,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:t,isFocused:n})}));function Sl(e){let{children:t,hideLabelFromVision:n,htmlFor:r,...o}=e;return t?n?Object(s.createElement)(m.a,{as:"label",htmlFor:r},t):Object(s.createElement)(jl,Object(c.a)({htmlFor:r},o),t):null}function Cl(e,t){let{__unstableInputWidth:n,children:r,className:o,disabled:a=!1,hideLabelFromVision:i=!1,labelPosition:l,id:u,isFocused:d=!1,label:f,prefix:b,size:h="default",suffix:m,...v}=e;const g=function(e){const t=Object(p.useInstanceId)(Cl);return e||"input-base-control-"+t}(u),y=i||!f;return Object(s.createElement)(bl,Object(c.a)({},v,function(e){const t={};switch(e){case"top":t.direction="column",t.gap=0;break;case"bottom":t.direction="column-reverse",t.gap=0;break;case"edge":t.justify="space-between"}return t}(l),{className:o,isFocused:d,labelPosition:l,ref:t}),Object(s.createElement)(wl,null,Object(s.createElement)(Sl,{className:"components-input-control__label",hideLabelFromVision:i,labelPosition:l,htmlFor:g,size:h},f)),Object(s.createElement)(vl,{__unstableInputWidth:n,className:"components-input-control__container",disabled:a,hideLabel:y,labelPosition:l},b&&Object(s.createElement)(_l,{className:"components-input-control__prefix"},b),r,m&&Object(s.createElement)(El,{className:"components-input-control__suffix"},m),Object(s.createElement)(kl,{disabled:a,isFocused:d})))}var Pl=Object(s.forwardRef)(Cl);function Tl(e,t){return e.map((function(e,n){return e+t[n]}))}function Ml(e,t){return e.map((function(e,n){return e-t[n]}))}function Dl(e){return Math.hypot.apply(Math,e)}function Il(e,t,n){var r=Dl(t),o=0===r?0:1/r,a=0===n?0:1/n,i=a*r,c=t.map((function(e){return a*e})),s=t.map((function(e){return o*e}));return{velocities:c,velocity:i,distance:Dl(e),direction:s}}function Rl(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function Al(e,t,n){return 0===t||Math.abs(t)===1/0?function(e,t){return Math.pow(e,5*t)}(e,n):e*t*n/(t+n*e)}function Nl(e,t,n,r){return void 0===r&&(r=.15),0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):e<t?-Al(t-e,n-t,r)+t:e>n?+Al(e-n,n-t,r)+n:e}function Ll(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fl(){return(Fl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function zl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Bl(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Hl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wl(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Vl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vl(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function Ul(){}function Kl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?Ul:1===t.length?t[0]:function(){for(var e,n,r=Wl(t);!(n=r()).done;){var o=n.value;e=o.apply(this,arguments)||e}return e}}function Gl(e,t){if(void 0===e){if(void 0===t)throw new Error("Must define fallback value if undefined is expected");e=t}return Array.isArray(e)?e:[e,e]}function $l(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}return e}function ql(e,t){void 0===e&&(e={});for(var n={},r=0,o=Object.entries(t);r<o.length;r++){var a=o[r],i=a[0],c=a[1];switch(typeof c){case"function":n[i]=c.call(n,e[i],i,e);break;case"object":n[i]=ql(e[i],c);break;case"boolean":c&&(n[i]=e[i])}}return n}function Yl(){return"undefined"!=typeof window&&"ontouchstart"in window}function Xl(e){return"pointerId"in e?null:"touchend"===e.type?e.changedTouches:e.targetTouches}function Zl(e){return Array.from(Xl(e)).map((function(e){return e.identifier}))}function Jl(e){return{buttons:"buttons"in e?e.buttons:0,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey}}var Ql=function(e){return e};function eu(e,t){void 0===t&&(t=Ql);var n=Xl(e),r=n?n[0]:e;return t([r.clientX,r.clientY])}var tu={threshold:function(e){return void 0===e&&(e=0),Gl(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return Gl(.15);case!1:return Gl(0);default:return Gl(e)}},enabled:function(e){return void 0===e&&(e=!0),e},triggerAllEvents:function(e){return void 0===e&&(e=!1),e},initial:function(e){return void 0===e&&(e=0),"function"==typeof e?e:Gl(e)},transform:!0},nu=Fl({},tu,{axis:!0,lockDirection:function(e){return void 0===e&&(e=!1),e},bounds:function(e){if(void 0===e&&(e={}),"function"==typeof e)return function(t){return nu.bounds(e(t))};var t=e,n=t.left,r=void 0===n?-1/0:n,o=t.right,a=void 0===o?1/0:o,i=t.top,c=void 0===i?-1/0:i,s=t.bottom;return[[r,a],[c,void 0===s?1/0:s]]}}),ru="undefined"!=typeof window&&window.document&&window.document.createElement,ou={enabled:function(e){return void 0===e&&(e=!0),e},domTarget:!0,window:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return void 0===e&&(e=ru?window:void 0),e})),eventOptions:function(e){var t=void 0===e?{}:e,n=t.passive,r=void 0===n||n,o=t.capture;return{passive:r,capture:void 0!==o&&o}},transform:!0},au=Fl({},nu,{useTouch:function(e){void 0===e&&(e=!1);var t=Yl(),n="undefined"!=typeof window&&"onpointerdown"in window;return!(!e||!t)||!(!t||n)},experimental_preventWindowScrollY:function(e){return void 0===e&&(e=!1),e},threshold:function(e,t,n){var r=n.filterTaps,o=void 0!==r&&r,a=n.lockDirection,i=void 0!==a&&a,c=n.axis,s=Gl(e,o?3:i||(void 0===c?void 0:c)?1:0);return this.filterTaps=o,s},swipeVelocity:function(e){return void 0===e&&(e=.5),Gl(e)},swipeDistance:function(e){return void 0===e&&(e=50),Gl(e)},swipeDuration:function(e){return void 0===e&&(e=250),e},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function iu(e){return void 0===e&&(e={}),ql(e,ou)}function cu(e){return void 0===e&&(e={}),ql(e,au)}function su(e){var t=e.domTarget,n=e.eventOptions,r=e.window,o=e.enabled,a=Bl(e,["domTarget","eventOptions","window","enabled"]),i=iu({domTarget:t,eventOptions:n,window:r,enabled:o});return i.hover=Fl({enabled:!0},a),i}function lu(e){var t=e.domTarget,n=e.eventOptions,r=e.window,o=e.enabled,a=Bl(e,["domTarget","eventOptions","window","enabled"]),i=iu({domTarget:t,eventOptions:n,window:r,enabled:o});return i.drag=cu(a),i}function uu(e){return Fl({_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_threshold:[0,0],_lastEventType:void 0,_dragStarted:!1,_dragPreventScroll:!1,_dragIsTap:!0,_dragDelayed:!1,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:Ul,canceled:!1,memo:void 0,args:void 0},e)}function du(){return{shared:{hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1,locked:!1},drag:uu({_pointerId:void 0,axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,tap:!1,swipe:[0,0]}),pinch:uu({_pointerIds:[],da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:uu({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:uu({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:uu({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var fu=new Map,pu=function(e){return e},bu=function(){function e(e,t){var n=this;void 0===t&&(t=[]),this.controller=e,this.args=t,this.debounced=!0,this.setTimeout=function(e,t){var r;void 0===t&&(t=140),clearTimeout(n.controller.timeouts[n.stateKey]);for(var o=arguments.length,a=new Array(o>2?o-2:0),i=2;i<o;i++)a[i-2]=arguments[i];n.controller.timeouts[n.stateKey]=(r=window).setTimeout.apply(r,[e,t].concat(a))},this.clearTimeout=function(){clearTimeout(n.controller.timeouts[n.stateKey])},this.fireGestureHandler=function(e){if(void 0===e&&(e=!1),n.state._blocked)return n.debounced||(n.state._active=!1,n.clean()),null;if(!e&&!n.state.intentional&&!n.config.triggerAllEvents)return null;if(n.state.intentional){var t=n.state.active,r=n.state._active;n.state.active=r,n.state.first=r&&!t,n.state.last=t&&!r,n.controller.state.shared[n.ingKey]=r}var o=n.controller.pointerIds.size||n.controller.touchIds.size,a=n.controller.state.shared.buttons>0||o>0,i=Fl({},n.controller.state.shared,n.state,n.mapStateValues(n.state),{locked:!!document.pointerLockElement,touches:o,down:a}),c=n.handler(i);return n.state.memo=void 0!==c?c:n.state.memo,i},this.controller=e,this.args=t}var t,n,r,o=e.prototype;return o.updateSharedState=function(e){Object.assign(this.controller.state.shared,e)},o.updateGestureState=function(e){Object.assign(this.state,e)},o.checkIntentionality=function(e,t){return{_intentional:e,_blocked:!1}},o.getMovement=function(e){var t=this.config.rubberband,n=this.state,r=n._bounds,o=n._initial,a=n._active,i=n._intentional,c=n.lastOffset,s=n.movement,l=n._threshold,u=this.getInternalMovement(e,this.state),d=!1===i[0]?hu(u[0],l[0]):i[0],f=!1===i[1]?hu(u[1],l[1]):i[1],p=this.checkIntentionality([d,f],u);if(p._blocked)return Fl({},p,{_movement:u,delta:[0,0]});var b=p._intentional,h=u,m=[!1!==b[0]?u[0]-b[0]:0,!1!==b[1]?u[1]-b[1]:0],v=Tl(m,c),g=a?t:[0,0];return m=mu(r,Tl(m,o),g),Fl({},p,{intentional:!1!==b[0]||!1!==b[1],_initial:o,_movement:h,movement:m,values:e,offset:mu(r,v,g),delta:Ml(m,s)})},o.clean=function(){this.clearTimeout()},t=e,(n=[{key:"config",get:function(){return this.controller.config[this.stateKey]}},{key:"enabled",get:function(){return this.controller.config.enabled&&this.config.enabled}},{key:"state",get:function(){return this.controller.state[this.stateKey]}},{key:"handler",get:function(){return this.controller.handlers[this.stateKey]}},{key:"transform",get:function(){return this.config.transform||this.controller.config.transform||pu}}])&&Ll(t.prototype,n),r&&Ll(t,r),e}();function hu(e,t){return Math.abs(e)>=t&&Rl(e)*t}function mu(e,t,n){var r=t[0],o=t[1],a=n[0],i=n[1],c=e[0],s=c[0],l=c[1],u=e[1],d=u[0],f=u[1];return[Nl(r,s,l,a),Nl(o,d,f,i)]}function vu(e,t,n){var r=e.state,o=t.timeStamp,a=t.type,i=r.values;return{_lastEventType:a,event:t,timeStamp:o,elapsedTime:n?0:o-r.startTime,previous:i}}function gu(e,t,n,r){var o=e.state,a=e.config,i=e.stateKey,c=e.args,s=e.transform,l=o.offset,u=n.timeStamp,d=a.initial,f=a.bounds,p=Ml(s(a.threshold),s([0,0])).map(Math.abs),b=Fl({},du()[i],{_active:!0,args:c,values:t,initial:null!=r?r:t,_threshold:p,offset:l,lastOffset:l,startTime:u});return Fl({},b,{_initial:$l(d,b),_bounds:$l(f,b)})}var yu=function(e){var t=this;this.classes=e,this.pointerIds=new Set,this.touchIds=new Set,this.supportsTouchEvents=Yl(),this.supportsGestureEvents=function(){try{return"constructor"in GestureEvent}catch(e){return!1}}(),this.bind=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(var o,a={},i=Wl(t.classes);!(o=i()).done;){var c=o.value;new c(t,n).addBindings(a)}var s=function(e){Cu(a,e,(function(r){return t.nativeRefs[e](Fl({},t.state.shared,{event:r,args:n}))}))};for(var l in t.nativeRefs)s(l);return t.config.domTarget?_u(t,a):Eu(t,a)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=Su(t.config),n=t.config.eventOptions;e&&Tu(e,ku(t.domListeners),n),Object.values(t.timeouts).forEach(clearTimeout),function(e){var t=e.config,n=t.window,r=t.eventOptions,o=e.windowListeners;if(!n)return;for(var a in o){var i=o[a];Tu(n,i,r)}e.windowListeners={}}(t)},this.classes=e,this.state=du(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function Ou(e,t){"pointerId"in t?e.pointerIds.add(t.pointerId):e.touchIds=new Set(Zl(t))}function ju(e,t){"pointerId"in t?e.pointerIds.delete(t.pointerId):Zl(t).forEach((function(t){return e.touchIds.delete(t)}))}function wu(e,t,n){var r=e.config,o=e.windowListeners;void 0===n&&(n=r.eventOptions),r.window&&(Tu(r.window,o[t],n),delete o[t])}function xu(e,t,n,r){var o=e.config,a=e.windowListeners;void 0===n&&(n=[]),void 0===r&&(r=o.eventOptions),o.window&&(Tu(o.window,a[t],r),Pu(o.window,a[t]=n,r))}function _u(e,t){var n=e.config,r=e.domListeners,o=Su(n);if(!o)throw new Error("domTarget must be defined");var a=n.eventOptions;Tu(o,ku(r),a);for(var i=0,c=Object.entries(t);i<c.length;i++){var s=c[i],l=s[0],u=s[1],d=l.slice(2).toLowerCase();r.push([d,Kl.apply(void 0,u)])}Pu(o,r,a)}function Eu(e,t){for(var n={},r=e.config.eventOptions.capture?"Capture":"",o=0,a=Object.entries(t);o<a.length;o++){var i=a[o],c=i[0],s=i[1],l=Array.isArray(s)?s:[s];n[c+r]=Kl.apply(void 0,l)}return n}function ku(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function Su(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function Cu(e,t,n){e[t]||(e[t]=[]),e[t].push(n)}function Pu(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=Wl(t);!(r=o()).done;){var a=r.value,i=a[0],c=a[1];e.addEventListener(i,c,n)}}function Tu(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=Wl(t);!(r=o()).done;){var a=r.value,i=a[0],c=a[1];e.removeEventListener(i,c,n)}}function Mu(e,t,n){void 0===n&&(n={});var r=function(e){var t=new Set;e.drag&&t.add(fu.get("drag"));e.wheel&&t.add(fu.get("wheel"));e.scroll&&t.add(fu.get("scroll"));e.move&&t.add(fu.get("move"));e.pinch&&t.add(fu.get("pinch"));e.hover&&t.add(fu.get("hover"));return t}(e),o=Y.a.useMemo((function(){return new yu(r)}),[]);return o.config=t,o.handlers=e,o.nativeRefs=n,Y.a.useEffect(o.effect,[]),o.config.domTarget?Du:o.bind}function Du(){0}var Iu=function(e){function t(){return e.apply(this,arguments)||this}zl(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return Ml(e,t.initial)},n.checkIntentionality=function(e,t){if(!1===e[0]&&!1===e[1])return{_intentional:e,axis:this.state.axis};var n=t.map(Math.abs),r=n[0],o=n[1],a=this.state.axis||(r>o?"x":r<o?"y":void 0);return this.config.axis||this.config.lockDirection?a?this.config.axis&&a!==this.config.axis?{_intentional:e,_blocked:!0,axis:a}:(e["x"===a?1:0]=!1,{_intentional:e,_blocked:!1,axis:a}):{_intentional:[!1,!1],_blocked:!1,axis:a}:{_intentional:e,_blocked:!1,axis:a}},n.getKinematics=function(e,t){var n=this.getMovement(e);if(!n._blocked){var r=t.timeStamp-this.state.timeStamp;Object.assign(n,Il(n.movement,n.delta,r))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(bu);function Ru(e){"persist"in e&&"function"==typeof e.persist&&e.persist()}var Au=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).ingKey="dragging",t.stateKey="drag",t.setPointerCapture=function(e){if(!t.config.useTouch&&!document.pointerLockElement){var n=e.target,r=e.pointerId;n&&"setPointerCapture"in n&&n.setPointerCapture(r),t.updateGestureState({_dragTarget:n,_dragPointerId:r})}},t.releasePointerCapture=function(){if(!t.config.useTouch&&!document.pointerLockElement){var e=t.state,n=e._dragTarget,r=e._dragPointerId;if(r&&n&&"releasePointerCapture"in n&&(!("hasPointerCapture"in n)||n.hasPointerCapture(r)))try{n.releasePointerCapture(r)}catch(e){}}},t.preventScroll=function(e){t.state._dragPreventScroll&&e.cancelable&&e.preventDefault()},t.getEventId=function(e){return t.config.useTouch?e.changedTouches[0].identifier:e.pointerId},t.isValidEvent=function(e){return t.state._pointerId===t.getEventId(e)},t.shouldPreventWindowScrollY=t.config.experimental_preventWindowScrollY&&t.controller.supportsTouchEvents,t.setUpWindowScrollDetection=function(e){Ru(e),xu(t.controller,t.stateKey,[["touchmove",t.preventScroll],["touchend",t.clean.bind(Hl(t))],["touchcancel",t.clean.bind(Hl(t))]],{passive:!1}),t.setTimeout(t.startDrag.bind(Hl(t)),250,e)},t.setUpDelayedDragTrigger=function(e){t.state._dragDelayed=!0,Ru(e),t.setTimeout(t.startDrag.bind(Hl(t)),t.config.delay,e)},t.setStartState=function(e){var n=eu(e,t.transform);t.updateSharedState(Jl(e)),t.updateGestureState(Fl({},gu(Hl(t),n,e),vu(Hl(t),e,!0),{_pointerId:t.getEventId(e)})),t.updateGestureState(t.getMovement(n))},t.onDragStart=function(e){Ou(t.controller,e),t.enabled&&!t.state._active&&(t.setStartState(e),t.setPointerCapture(e),t.shouldPreventWindowScrollY?t.setUpWindowScrollDetection(e):t.config.delay>0?t.setUpDelayedDragTrigger(e):t.startDrag(e,!0))},t.onDragChange=function(e){if(!t.state.canceled&&t.state._active&&t.isValidEvent(e)&&(t.state._lastEventType!==e.type||e.timeStamp!==t.state.timeStamp)){var n;if(document.pointerLockElement){var r=e.movementX,o=e.movementY;n=Tl(t.transform([r,o]),t.state.values)}else n=eu(e,t.transform);var a=t.getKinematics(n,e);if(!t.state._dragStarted){if(t.state._dragDelayed)return void t.startDrag(e);if(!t.shouldPreventWindowScrollY)return;if(t.state._dragPreventScroll||!a.axis)return;if("x"!==a.axis)return void(t.state._active=!1);t.startDrag(e)}var i=Jl(e);t.updateSharedState(i);var c=vu(Hl(t),e),s=Dl(a._movement),l=t.state._dragIsTap;l&&s>=3&&(l=!1),t.updateGestureState(Fl({},c,a,{_dragIsTap:l})),t.fireGestureHandler()}},t.onDragEnd=function(e){if(ju(t.controller,e),t.isValidEvent(e)&&(t.clean(),t.state._active)){t.state._active=!1;var n=t.state._dragIsTap,r=t.state.velocities,o=r[0],a=r[1],i=t.state.movement,c=i[0],s=i[1],l=t.state._intentional,u=l[0],d=l[1],f=t.config.swipeVelocity,p=f[0],b=f[1],h=t.config.swipeDistance,m=h[0],v=h[1],g=t.config.swipeDuration,y=Fl({},vu(Hl(t),e),t.getMovement(t.state.values)),O=[0,0];y.elapsedTime<g&&(!1!==u&&Math.abs(o)>p&&Math.abs(c)>m&&(O[0]=Rl(o)),!1!==d&&Math.abs(a)>b&&Math.abs(s)>v&&(O[1]=Rl(a))),t.updateSharedState({buttons:0}),t.updateGestureState(Fl({},y,{tap:n,swipe:O})),t.fireGestureHandler(t.config.filterTaps&&!0===n)}},t.clean=function(){e.prototype.clean.call(Hl(t)),t.state._dragStarted=!1,t.releasePointerCapture(),wu(t.controller,t.stateKey)},t.onCancel=function(){t.state.canceled||(t.updateGestureState({canceled:!0,_active:!1}),t.updateSharedState({buttons:0}),setTimeout((function(){return t.fireGestureHandler()}),0))},t.onClick=function(e){t.state._dragIsTap||e.stopPropagation()},t}zl(t,e);var n=t.prototype;return n.startDrag=function(e,t){void 0===t&&(t=!1),this.state._active&&!this.state._dragStarted&&(t||this.setStartState(e),this.updateGestureState({_dragStarted:!0,_dragPreventScroll:!0,cancel:this.onCancel}),this.clearTimeout(),this.fireGestureHandler())},n.addBindings=function(e){(this.config.useTouch?(Cu(e,"onTouchStart",this.onDragStart),Cu(e,"onTouchMove",this.onDragChange),Cu(e,"onTouchEnd",this.onDragEnd),Cu(e,"onTouchCancel",this.onDragEnd)):(Cu(e,"onPointerDown",this.onDragStart),Cu(e,"onPointerMove",this.onDragChange),Cu(e,"onPointerUp",this.onDragEnd),Cu(e,"onPointerCancel",this.onDragEnd)),this.config.filterTaps)&&Cu(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(Iu);function Nu(e,t){var n,r,o=[],a=!1;return function(){for(var i=arguments.length,c=new Array(i),s=0;s<i;s++)c[s]=arguments[s];return a&&n===this&&t(c,o)||(r=e.apply(this,c),a=!0,n=this,o=c),r}}function Lu(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,a,i;if(Array.isArray(t)){if((r=t.length)!==n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if("function"==typeof Map&&t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(i=t.entries();!(o=i.next()).done;)if(!n.has(o.value[0]))return!1;for(i=t.entries();!(o=i.next()).done;)if(!e(o.value[1],n.get(o.value[0])))return!1;return!0}if("function"==typeof Set&&t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(i=t.entries();!(o=i.next()).done;)if(!n.has(o.value[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;if("undefined"!=typeof Element&&t instanceof Element)return!1;for(o=r;0!=o--;)if(!("_owner"===a[o]&&t.$$typeof||e(t[a[o]],n[a[o]])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}var Fu=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).ingKey="moving",t.stateKey="move",t.debounced=!0,t.onMove=function(e){t.enabled&&(t.setTimeout(t.onMoveEnd),t.state._active?t.onMoveChange(e):t.onMoveStart(e))},t.onMoveStart=function(e){t.updateSharedState(Jl(e));var n=eu(e,t.transform);t.updateGestureState(Fl({},gu(Hl(t),n,e),vu(Hl(t),e,!0))),t.updateGestureState(t.getMovement(n)),t.fireGestureHandler()},t.onMoveChange=function(e){t.updateSharedState(Jl(e));var n=eu(e,t.transform);t.updateGestureState(Fl({},vu(Hl(t),e),t.getKinematics(n,e))),t.fireGestureHandler()},t.onMoveEnd=function(){if(t.clean(),t.state._active){var e=t.state.values;t.updateGestureState(t.getMovement(e)),t.updateGestureState({velocities:[0,0],velocity:0,_active:!1}),t.fireGestureHandler()}},t.hoverTransform=function(){return t.controller.config.hover.transform||t.controller.config.transform},t.onPointerEnter=function(e){if(t.controller.state.shared.hovering=!0,t.controller.config.enabled){if(t.controller.config.hover.enabled){var n=eu(e,t.hoverTransform()),r=Fl({},t.controller.state.shared,t.state,vu(Hl(t),e,!0),{args:t.args,values:n,active:!0,hovering:!0});t.controller.handlers.hover(Fl({},r,t.mapStateValues(r)))}"move"in t.controller.handlers&&t.onMoveStart(e)}},t.onPointerLeave=function(e){if(t.controller.state.shared.hovering=!1,"move"in t.controller.handlers&&t.onMoveEnd(),t.controller.config.hover.enabled){var n=eu(e,t.hoverTransform()),r=Fl({},t.controller.state.shared,t.state,vu(Hl(t),e),{args:t.args,values:n,active:!1});t.controller.handlers.hover(Fl({},r,t.mapStateValues(r)))}},t}return zl(t,e),t.prototype.addBindings=function(e){"move"in this.controller.handlers&&Cu(e,"onPointerMove",this.onMove),"hover"in this.controller.handlers&&(Cu(e,"onPointerEnter",this.onPointerEnter),Cu(e,"onPointerLeave",this.onPointerLeave))},t}(Iu);var zu=n("RxS6");const Bu=e=>e,Hu={_event:{},error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""};function Vu(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Hu;const{value:t}=e;return{...Hu,...e,initialValue:t}}const Wu=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.reduceRight((e,t)=>{const r=t(...n);return Object(l.isEmpty)(r)?e:{...e,...r}},{})}};function Uu(e){return(t,n)=>{const r={...t};switch(n.type){case"PRESS_UP":case"PRESS_DOWN":r.isDirty=!1;break;case"DRAG_START":r.isDragging=!0;break;case"DRAG_END":r.isDragging=!1;break;case"CHANGE":r.error=null,r.value=n.payload.value,t.isPressEnterToChange&&(r.isDirty=!0);break;case"COMMIT":r.value=n.payload.value,r.isDirty=!1;break;case"RESET":r.error=null,r.isDirty=!1,r.value=n.payload.value||t.initialValue;break;case"UPDATE":r.value=n.payload.value,r.isDirty=!1;break;case"INVALIDATE":r.error=n.payload.error}return n.payload.event&&(r._event=n.payload.event),e(r,n)}}function Ku(e){return null!=e}function Gu(e){const t=""===e;return!Ku(e)||t}function $u(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;return null!==(e=t.find(Ku))&&void 0!==e?e:n}var qu=function(e,t){const n=Object(s.useRef)(!1);Object(s.useEffect)(()=>{if(n.current)return e();n.current=!0},t)};var Yu=Object(s.forwardRef)((function(e,t){let{disabled:n=!1,dragDirection:r="n",dragThreshold:o=10,id:a,isDragEnabled:i=!1,isFocused:u,isPressEnterToChange:d=!1,onBlur:f=l.noop,onChange:p=l.noop,onDrag:b=l.noop,onDragEnd:h=l.noop,onDragStart:m=l.noop,onFocus:v=l.noop,onKeyDown:g=l.noop,onValidate:y=l.noop,size:O="default",setIsFocused:j,stateReducer:w=(e=>e),value:x,type:_,...E}=e;const{state:k,change:S,commit:C,drag:P,dragEnd:T,dragStart:M,invalidate:D,pressDown:I,pressEnter:R,pressUp:A,reset:N,update:L}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Bu,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hu;const[n,r]=Object(s.useReducer)(Uu(e),Vu(t)),o=e=>(t,n)=>{n&&n.persist&&n.persist(),r({type:e,payload:{value:t,event:n}})},a=e=>t=>{t&&t.persist&&t.persist(),r({type:e,payload:{event:t}})},i=e=>t=>{r({type:e,payload:t})},c=o("CHANGE"),l=(e,t)=>r({type:"INVALIDATE",payload:{error:e,event:t}}),u=o("RESET"),d=o("COMMIT"),f=o("UPDATE"),p=i("DRAG_START"),b=i("DRAG"),h=i("DRAG_END"),m=a("PRESS_UP"),v=a("PRESS_DOWN"),g=a("PRESS_ENTER");return{change:c,commit:d,dispatch:r,drag:b,dragEnd:h,dragStart:p,invalidate:l,pressDown:v,pressEnter:g,pressUp:m,reset:u,state:n,update:f}}(w,{isDragEnabled:i,value:x,isPressEnterToChange:d}),{_event:F,value:z,isDragging:B,isDirty:H}=k,V=Object(s.useRef)(!1),W=function(e,t){const n=function(e){let t="ns-resize";switch(e){case"n":case"s":t="ns-resize";break;case"e":case"w":t="ew-resize"}return t}(t);return Object(s.useEffect)(()=>{document.documentElement.style.cursor=e?n:null},[e]),n}(B,r);qu(()=>{x!==z&&(u||V.current?H||(p(z,{event:F}),V.current=!1):L(x,F))},[z,H,u,x]);const U=e=>{const t=e.currentTarget.value;try{y(t),C(t,e)}catch(t){D(t,e)}},K=function(e,t){void 0===t&&(t={}),fu.set("drag",Au);var n=Object(q.useRef)();return n.current||(n.current=Nu(lu,Lu)),Mu({drag:e},n.current(t))}(e=>{const{distance:t,dragging:n,event:r}=e;if(r.persist(),t){if(r.stopPropagation(),!n)return h(e),void T(e);b(e),P(e),B||(m(e),M(e))}},{threshold:o,enabled:i}),G=i?K():{};let $;return"number"===_&&($=e=>{var t;null===(t=E.onMouseDown)||void 0===t||t.call(E,e),e.currentTarget!==e.currentTarget.ownerDocument.activeElement&&e.currentTarget.focus()}),Object(s.createElement)(gl,Object(c.a)({},E,G,{className:"components-input-control__input",disabled:n,dragCursor:W,isDragging:B,id:a,onBlur:e=>{f(e),null==j||j(!1),d&&H&&(V.current=!0,Gu(z)?N(x,e):U(e))},onChange:e=>{const t=e.target.value;S(t,e)},onFocus:e=>{v(e),null==j||j(!0)},onKeyDown:e=>{const{keyCode:t}=e;switch(g(e),t){case zu.UP:A(e);break;case zu.DOWN:I(e);break;case zu.ENTER:R(e),d&&(e.preventDefault(),U(e))}},onMouseDown:$,ref:t,inputSize:O,value:z,type:_}))}));function Xu(e,t){let{__unstableStateReducer:n=(e=>e),__unstableInputWidth:r,className:o,disabled:a=!1,hideLabelFromVision:i=!1,id:u,isPressEnterToChange:f=!1,label:b,labelPosition:h="top",onChange:m=l.noop,onValidate:v=l.noop,onKeyDown:g=l.noop,prefix:y,size:O="default",suffix:j,value:w,...x}=e;const[_,E]=Object(s.useState)(!1),k=function(e){const t=Object(p.useInstanceId)(Xu);return e||"inspector-input-control-"+t}(u),S=d()("components-input-control",o);return Object(s.createElement)(Pl,{__unstableInputWidth:r,className:S,disabled:a,gap:3,hideLabelFromVision:i,id:k,isFocused:_,justify:"left",label:b,labelPosition:h,prefix:y,size:O,suffix:j},Object(s.createElement)(Yu,Object(c.a)({},x,{className:"components-input-control__input",disabled:a,id:k,isFocused:_,isPressEnterToChange:f,onChange:m,onKeyDown:g,onValidate:v,ref:t,setIsFocused:E,size:O,stateReducer:n,value:w})))}var Zu=Object(s.forwardRef)(Xu);const Ju=Object(w.a)(Ms,{target:"e65ony43"})("margin-bottom:",ws(2),";"),Qu=Object(w.a)("div",{target:"e65ony42"})("border-radius:50%;border:",Ks.borderWidth," solid ",L.ui.border,";box-sizing:border-box;cursor:grab;height:",32,"px;overflow:hidden;width:",32,"px;"),ed=Object(w.a)("div",{target:"e65ony41"})({name:"1bhd2sw",styles:"box-sizing:border-box;position:relative;width:100%;height:100%"}),td=Object(w.a)("div",{target:"e65ony40"})("background:",L.admin.theme,";border-radius:50%;border:",3,"px solid ",L.admin.theme,";bottom:0;box-sizing:border-box;display:block;height:0px;left:0;margin:auto;position:absolute;right:0;top:-",16,"px;width:0px;");var nd=function(e){let{value:t,onChange:n,...r}=e;const o=Object(s.useRef)(),a=Object(s.useRef)(),i=Object(s.useRef)(),l=e=>{const{x:t,y:r}=a.current,{ownerDocument:i}=o.current;e.preventDefault(),i.activeElement.blur(),n(function(e,t,n,r){const o=r-t,a=n-e,i=Math.atan2(o,a),c=Math.round(i*(180/Math.PI))+90;if(c<0)return 360+c;return c}(t,r,e.clientX,e.clientY))},{startDrag:u,isDragging:d}=Object(p.__experimentalUseDragging)({onDragStart:e=>{(()=>{const e=o.current.getBoundingClientRect();a.current={x:e.x+e.width/2,y:e.y+e.height/2}})(),l(e)},onDragMove:l,onDragEnd:l});return Object(s.useEffect)(()=>{d?(void 0===i.current&&(i.current=document.body.style.cursor),document.body.style.cursor="grabbing"):(document.body.style.cursor=i.current||null,i.current=void 0)},[d]),Object(s.createElement)(Qu,Object(c.a)({ref:o,onMouseDown:u,className:"components-angle-picker-control__angle-circle",style:d?{cursor:"grabbing"}:void 0},r),Object(s.createElement)(ed,{style:t?{transform:`rotate(${t}deg)`}:void 0,className:"components-angle-picker-control__angle-circle-indicator-wrapper"},Object(s.createElement)(td,{className:"components-angle-picker-control__angle-circle-indicator"})))};const rd=e=>null!=e;var od=Object(os.a)((function(e,t){const n=function(e){const{className:t,margin:n,marginBottom:r=2,marginLeft:o,marginRight:a,marginTop:i,marginX:c,marginY:s,padding:l,paddingBottom:u,paddingLeft:d,paddingRight:f,paddingTop:p,paddingX:b,paddingY:h,...m}=Object(is.a)(e,"Spacer");return{...m,className:Object(ps.a)()(rd(n)&&Object(x.a)("margin:",ws(n),";",""),rd(s)&&Object(x.a)("margin-bottom:",ws(s),";margin-top:",ws(s),";",""),rd(c)&&Object(x.a)("margin-left:",ws(c),";margin-right:",ws(c),";",""),rd(i)&&Object(x.a)("margin-top:",ws(i),";",""),rd(r)&&Object(x.a)("margin-bottom:",ws(r),";",""),rd(o)&&Object(x.a)("margin-left:",ws(o),";",""),rd(a)&&Object(x.a)("margin-right:",ws(a),";",""),rd(l)&&Object(x.a)("padding:",ws(l),";",""),rd(h)&&Object(x.a)("padding-bottom:",ws(h),";padding-top:",ws(h),";",""),rd(b)&&Object(x.a)("padding-left:",ws(b),";padding-right:",ws(b),";",""),rd(p)&&Object(x.a)("padding-top:",ws(p),";",""),rd(u)&&Object(x.a)("padding-bottom:",ws(u),";",""),rd(d)&&Object(x.a)("padding-left:",ws(d),";",""),rd(f)&&Object(x.a)("padding-right:",ws(f),";",""),t)}}(e);return Object(s.createElement)(as.a,Object(c.a)({},n,{ref:t}))}),"Spacer");function ad(e){let{className:t,label:n=Object(f.__)("Angle"),onChange:r,value:o}=e;const a=d()("components-angle-picker-control",t);return Object(s.createElement)(Ju,{className:a},Object(s.createElement)(hs,null,Object(s.createElement)(Zu,{label:n,className:"components-angle-picker-control__input-field",max:360,min:0,onChange:e=>{const t=""!==e?parseInt(e,10):0;r(t)},step:"1",value:o,hideHTMLArrows:!0,suffix:Object(s.createElement)(od,{as:cl,marginRight:ws(3),style:{color:"var( --wp-admin-theme-color )"}},"°")})),Object(s.createElement)(ms,{style:{marginLeft:ws(4),marginBottom:ws(1),marginTop:"auto"}},Object(s.createElement)(nd,{"aria-hidden":"true",value:o,onChange:r})))}var id=n("qRz9"),cd=n("gdqT");function sd(e){return t=>{const[n,r]=Object(s.useState)([]);return Object(s.useLayoutEffect)(()=>{const{options:n,isDebounced:o}=e,a=Object(l.debounce)(()=>{const o=Promise.resolve("function"==typeof n?n(t):n).then(n=>{if(o.canceled)return;const a=n.map((t,n)=>({key:`${e.name}-${n}`,value:t,label:e.getOptionLabel(t),keywords:e.getOptionKeywords?e.getOptionKeywords(t):[],isDisabled:!!e.isOptionDisabled&&e.isOptionDisabled(t)})),i=new RegExp("(?:\\b|\\s|^)"+Object(l.escapeRegExp)(t),"i");r(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;const r=[];for(let o=0;o<t.length;o++){const a=t[o];let{keywords:i=[]}=a;"string"==typeof a.label&&(i=[...i,a.label]);if(i.some(t=>e.test(Object(l.deburr)(t)))&&(r.push(a),r.length===n))break}return r}(i,a))});return o},o?250:0),i=a();return()=>{a.cancel(),i&&(i.canceled=!0)}},[t]),[n]}}var ld=n("kA6J"),ud=n("oXO/");function dd(e){let{record:t,onChange:n,onReplace:r,completers:o,contentRef:a}=e;const i=Object(p.useDebounce)(cd.speak,500),c=Object(p.useInstanceId)(dd),[u,b]=Object(s.useState)(0),[h,m]=Object(s.useState)([]),[v,g]=Object(s.useState)(""),[y,O]=Object(s.useState)(null),[j,w]=Object(s.useState)(null),[x,_]=Object(s.useState)(!1);function E(e){const{getOptionCompletion:o}=y||{};if(!e.isDisabled){if(o){const a=o(e.value,v),{action:i,value:c}=void 0===a.action||void 0===a.value?{action:"insert-at-caret",value:a}:a;if("replace"===i)return void r([c]);"insert-at-caret"===i&&function(e){const r=t.start,o=r-y.triggerPrefix.length-v.length,a=Object(id.create)({html:Object(s.renderToString)(e)});n(Object(id.insert)(t,a,o,r))}(c)}k()}}function k(){b(0),m([]),g(""),O(null),w(null)}let S;Object(id.isCollapsed)(t)&&(S=Object(id.getTextContent)(Object(id.slice)(t,0))),Object(s.useEffect)(()=>{if(!S)return void k();const e=Object(l.deburr)(S),n=Object(id.getTextContent)(Object(id.slice)(t,void 0,Object(id.getTextContent)(t).length)),r=Object(l.find)(o,t=>{let{triggerPrefix:r,allowContext:o}=t;const a=e.lastIndexOf(r);if(-1===a)return!1;const i=e.slice(a+r.length);if(i.length>50)return!1;const c=0===h.length,s=1===i.split(/\s/).length,l=x&&i.split(/\s/).length<=3;return!(c&&!l&&!s)&&(!(o&&!o(e.slice(0,a),n))&&(!/^\s/.test(i)&&!/\s\s+$/.test(i)&&/[\u0000-\uFFFF]*$/.test(i)))});if(!r)return void k();const a=Object(l.escapeRegExp)(r.triggerPrefix),i=e.slice(e.lastIndexOf(r.triggerPrefix)).match(new RegExp(a+"([\0-￿]*)$")),c=i&&i[1];O(r),w(()=>r!==y?function(e){const t=e.useItems?e.useItems:sd(e);return function(e){let{filterValue:n,instanceId:r,listBoxId:o,className:a,selectedIndex:i,onChangeOptions:c,onSelect:u,onReset:f,value:p,contentRef:b}=e;const[h]=t(n),m=Object(id.useAnchorRef)({ref:b,value:p});return Object(s.useLayoutEffect)(()=>{c(h)},[h]),!h.length>0?null:Object(s.createElement)(ud.a,{focusOnMount:!1,onClose:f,position:"top right",className:"components-autocomplete__popover",anchorRef:m},Object(s.createElement)("div",{id:o,role:"listbox",className:"components-autocomplete__results"},Object(l.map)(h,(e,t)=>Object(s.createElement)(ld.a,{key:e.key,id:`components-autocomplete-item-${r}-${e.key}`,role:"option","aria-selected":t===i,disabled:e.isDisabled,className:d()("components-autocomplete__result",a,{"is-selected":t===i}),onClick:()=>u(e)},e.label))))}}(r):j),g(c)},[S]);const{key:C=""}=h[u]||{},{className:P}=y||{},T=!!y&&h.length>0,M=T?"components-autocomplete-listbox-"+c:null;return{listBoxId:M,activeId:T?`components-autocomplete-item-${c}-${C}`:null,onKeyDown:function(e){if(_(e.keyCode===zu.BACKSPACE),y&&0!==h.length&&!e.defaultPrevented){switch(e.keyCode){case zu.UP:b((0===u?h.length:u)-1);break;case zu.DOWN:b((u+1)%h.length);break;case zu.ESCAPE:O(null),w(null),e.preventDefault();break;case zu.ENTER:E(h[u]);break;case zu.LEFT:case zu.RIGHT:return void k();default:return}e.preventDefault()}},popover:void 0!==t.start&&j&&Object(s.createElement)(j,{className:P,filterValue:v,instanceId:c,listBoxId:M,selectedIndex:u,onChangeOptions:function(e){b(e.length===h.length?u:0),m(e),function(e){i&&(e.length?i(Object(f.sprintf)(Object(f._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length),e.length),"assertive"):i(Object(f.__)("No results."),"assertive"))}(e)},onSelect:E,value:t,contentRef:a,reset:k})}}function fd(e){const t=Object(s.useRef)(),n=Object(s.useRef)(),{popover:r,listBoxId:o,activeId:a,onKeyDown:i}=dd({...e,contentRef:t});return n.current=i,{ref:Object(p.useMergeRefs)([t,Object(p.useRefEffect)(e=>{function t(e){n.current(e)}return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}},[])]),children:r,"aria-autocomplete":o?"list":void 0,"aria-owns":o,"aria-activedescendant":a}}function pd(e){let{children:t,isSelected:n,...r}=e;const{popover:o,...a}=dd(r);return Object(s.createElement)(s.Fragment,null,t(a),n&&o)}var bd={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function hd(e){return Object(l.get)(bd,e,"")}const md=Object(w.a)("div",{target:"e1puf3u3"})("font-family:",hd("default.fontFamily"),";font-size:",hd("default.fontSize"),";"),vd=Object(w.a)("div",{target:"e1puf3u2"})("margin-bottom:",ws(2),";.components-panel__row &{margin-bottom:inherit;}"),gd=Object(w.a)("label",{target:"e1puf3u1"})("display:inline-block;margin-bottom:",ws(2),";"),yd=Object(w.a)("p",{target:"e1puf3u0"})("font-size:",hd("helpText.fontSize"),";font-style:normal;color:",L.mediumGray.text,";");function Od(e){let{id:t,label:n,hideLabelFromVision:r,help:o,className:a,children:i}=e;return Object(s.createElement)(md,{className:d()("components-base-control",a)},Object(s.createElement)(vd,{className:"components-base-control__field"},n&&t&&(r?Object(s.createElement)(m.a,{as:"label",htmlFor:t},n):Object(s.createElement)(gd,{className:"components-base-control__label",htmlFor:t},n)),n&&!t&&(r?Object(s.createElement)(m.a,{as:"label"},n):Object(s.createElement)(Od.VisualLabel,null,n)),i),!!o&&Object(s.createElement)(yd,{id:t?t+"__help":void 0,className:"components-base-control__help"},o))}Od.VisualLabel=e=>{let{className:t,children:n}=e;return t=d()("components-base-control__label",t),Object(s.createElement)("span",{className:t},n)};var jd=Od;var wd={name:"euqsgg",styles:"input[type='number']::-webkit-outer-spin-button,input[type='number']::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}input[type='number']{-moz-appearance:textfield;}"};const xd=e=>{let{hideHTMLArrows:t}=e;return t?wd:""},_d=Object(w.a)(Zu,{target:"ep48uk90"})(xd,";");function Ed(e){const t=Number(e);return isNaN(t)?0:t}function kd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((e,t)=>e+Ed(t),0)}function Sd(e){const t=(e+"").split(".");return void 0!==t[1]?t[1].length:0}function Cd(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const o=Ed(e),a=Ed(r),i=Sd(r),c=Math.round(o/a)*a,s=Object(l.clamp)(c,t,n);return i?Ed(s.toFixed(i)):s}var Pd=Object(s.forwardRef)((function(e,t){let{__unstableStateReducer:n=(e=>e),className:r,dragDirection:o="n",hideHTMLArrows:a=!1,isDragEnabled:i=!0,isShiftStepEnabled:l=!0,label:u,max:p=1/0,min:b=-1/0,required:h=!1,shiftStep:m=10,step:v=1,type:g="number",value:y,...O}=e;const j="any"===v,w=j?1:parseFloat(v),x=Cd(0,b,p,w),_=(e,t)=>j?Math.min(p,Math.max(b,e)):Cd(e,b,p,null!=t?t:w),E="number"===g?"off":null,k=d()("components-number-control",r);return Object(s.createElement)(_d,Object(c.a)({autoComplete:E,inputMode:"numeric"},O,{className:k,dragDirection:o,hideHTMLArrows:a,isDragEnabled:i,label:u,max:p,min:b,ref:t,required:h,step:v,type:g,value:y,__unstableStateReducer:Wu((e,t)=>{const{type:n,payload:r}=t,a=null==r?void 0:r.event,c=e.value;if("PRESS_UP"===n||"PRESS_DOWN"===n){const t=a.shiftKey&&l,r=t?parseFloat(m)*w:w;let o=Gu(c)?x:c;null!=a&&a.preventDefault&&a.preventDefault(),"PRESS_UP"===n&&(o=kd(o,r)),"PRESS_DOWN"===n&&(o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((e,t,n)=>{const r=Ed(t);return 0===n?r:e-r},0)}(o,r)),e.value=_(o,t?r:null)}if("DRAG"===n&&i){const[t,n]=r.delta,a=r.shiftKey&&l,i=a?parseFloat(m)*w:w;let s,u;switch(o){case"n":u=n,s=-1;break;case"e":u=t,s=Object(f.isRTL)()?-1:1;break;case"s":u=n,s=1;break;case"w":u=t,s=Object(f.isRTL)()?1:-1}if(0!==u){u=Math.ceil(Math.abs(u))*Math.sign(u);const t=u*i*s;e.value=_(kd(c,t),a?i:null)}}if("PRESS_ENTER"===n||"COMMIT"===n){const t=!1===h&&""===c;e.value=t?c:_(c)}return e},n)}))}));const Td=Object(w.a)("div",{target:"e1bagdl33"})({name:"100d0a9",styles:"box-sizing:border-box;position:relative"}),Md=e=>{let{disableUnits:t}=e;const n=t?3:24;return Object(x.a)(Ps({paddingRight:n})(),";","")};var Dd={name:"1y65o8",styles:"&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}"};const Id=e=>{let{disableUnits:t}=e;return t?"":Dd},Rd=Object(w.a)(Pd,{target:"e1bagdl32"})("&&&{input{appearance:none;-moz-appearance:textfield;display:block;width:100%;",Id,";",Md,";}}"),Ad=e=>Object(x.a)("appearance:none;background:transparent;border-radius:2px;border:none;box-sizing:border-box;color:",L.darkGray[500],";display:block;font-size:8px;line-height:1;letter-spacing:-0.5px;outline:none;padding:2px 1px;position:absolute;text-align-last:center;text-transform:uppercase;width:20px;",Ps({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," ",Ps({right:0})()," ",(e=>{let{selectSize:t}=e;return Object(x.a)({default:{height:28,lineHeight:"24px",minHeight:28,top:1},small:{height:22,lineHeight:"18px",minHeight:22,top:1}}[t],"","")})(e),";",""),Nd=Object(w.a)("div",{target:"e1bagdl31"})("&&&{pointer-events:none;",Ad,";}"),Ld=Object(w.a)("select",{target:"e1bagdl30"})("&&&{",Ad,";cursor:pointer;border:1px solid transparent;&:hover{background-color:",L.lightGray[300],";}&:focus{border-color:",L.ui.borderFocus,";outline:2px solid transparent;outline-offset:0;}&:disabled{cursor:initial;&:hover{background-color:transparent;}}}"),Fd="web"===s.Platform.OS,zd={px:{value:"px",label:Fd?"px":Object(f.__)("Pixels (px)"),default:"",a11yLabel:Object(f.__)("Pixels (px)"),step:1},"%":{value:"%",label:Fd?"%":Object(f.__)("Percentage (%)"),default:"",a11yLabel:Object(f.__)("Percent (%)"),step:.1},em:{value:"em",label:Fd?"em":Object(f.__)("Relative to parent font size (em)"),default:"",a11yLabel:Object(f._x)("ems","Relative to parent font size (em)"),step:.01},rem:{value:"rem",label:Fd?"rem":Object(f.__)("Relative to root font size (rem)"),default:"",a11yLabel:Object(f._x)("rems","Relative to root font size (rem)"),step:.01},vw:{value:"vw",label:Fd?"vw":Object(f.__)("Viewport width (vw)"),default:"",a11yLabel:Object(f.__)("Viewport width (vw)"),step:.1},vh:{value:"vh",label:Fd?"vh":Object(f.__)("Viewport height (vh)"),default:"",a11yLabel:Object(f.__)("Viewport height (vh)"),step:.1},vmin:{value:"vmin",label:Fd?"vmin":Object(f.__)("Viewport smallest dimension (vmin)"),default:"",a11yLabel:Object(f.__)("Viewport smallest dimension (vmin)"),step:.1},vmax:{value:"vmax",label:Fd?"vmax":Object(f.__)("Viewport largest dimension (vmax)"),default:"",a11yLabel:Object(f.__)("Viewport largest dimension (vmax)"),step:.1},ch:{value:"ch",label:Fd?"ch":Object(f.__)("Width of the zero (0) character (ch)"),default:"",a11yLabel:Object(f.__)("Width of the zero (0) character (ch)"),step:.01},ex:{value:"ex",label:Fd?"ex":Object(f.__)("x-height of the font (ex)"),default:"",a11yLabel:Object(f.__)("x-height of the font (ex)"),step:.01},cm:{value:"cm",label:Fd?"cm":Object(f.__)("Centimeters (cm)"),default:"",a11yLabel:Object(f.__)("Centimeters (cm)"),step:.001},mm:{value:"mm",label:Fd?"mm":Object(f.__)("Millimeters (mm)"),default:"",a11yLabel:Object(f.__)("Millimeters (mm)"),step:.1},in:{value:"in",label:Fd?"in":Object(f.__)("Inches (in)"),default:"",a11yLabel:Object(f.__)("Inches (in)"),step:.001},pc:{value:"pc",label:Fd?"pc":Object(f.__)("Picas (pc)"),default:"",a11yLabel:Object(f.__)("Picas (pc)"),step:1},pt:{value:"pt",label:Fd?"pt":Object(f.__)("Points (pt)"),default:"",a11yLabel:Object(f.__)("Points (pt)"),step:1}},Bd=Object.values(zd),Hd=[zd.px,zd["%"],zd.em,zd.rem,zd.vw,zd.vh],Vd=zd.px;function Wd(e,t,n){return Kd(t?`${e}${t}`:e,n)}function Ud(e){return Array.isArray(e)&&!!e.length}function Kd(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bd;const n=String(e).trim();let r=parseFloat(n);r=isNaN(r)?"":r;const o=n.match(/[\d.\-\+]*\s*(.*)/);let a=void 0!==(null==o?void 0:o[1])?o[1]:"";if(a=a.toLowerCase(),Ud(t)&&!1!==t){const e=t.find(e=>e.value===a);a=null==e?void 0:e.value}else a=Vd.value;return[r,a]}function Gd(e,t,n,r){const[o,a]=Kd(e,t);let i,c=o;var s;(Number.isFinite(o)&&""!==o||(c=n),i=a||r,Array.isArray(t)&&Ud(t)&&!i)&&(i=null===(s=t[0])||void 0===s?void 0:s.value);return[c,i]}const $d=e=>{let{units:t,availableUnits:n,defaultValues:r}=e;t=t||Bd;const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return Array.isArray(t)?t.filter(t=>e.includes(t.value)):[]}(n||[],t);return r&&o.forEach((e,t)=>{r[e.value]&&(o[t].default=r[e.value])}),0!==o.length&&o};function qd(e){let{className:t,isUnitSelectTabbable:n=!0,onChange:r=l.noop,size:o="default",unit:a="px",units:i=Hd,...u}=e;if(!i||!Ud(i)||1===(null==i?void 0:i.length))return Object(s.createElement)(Nd,{className:"components-unit-control__unit-label",selectSize:o},a);const f=d()("components-unit-control__select",t);return Object(s.createElement)(Ld,Object(c.a)({className:f,onChange:e=>{const{value:t}=e.target,n=i.find(e=>e.value===t);r(t,{event:e,data:n})},selectSize:o,tabIndex:n?void 0:-1,value:a},u),i.map(e=>Object(s.createElement)("option",{value:e.value,key:e.value},e.label)))}const Yd={initial:void 0,fallback:""};var Xd=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yd;const{initial:n,fallback:r}={...Yd,...t},[o,a]=Object(s.useState)(e),i=Ku(e);Object(s.useEffect)(()=>{i&&o&&a(void 0)},[i,o]);const c=$u([e,o,n],r),l=e=>{i||a(e)};return[c,l]};var Zd=Object(s.forwardRef)((function(e,t){let{__unstableStateReducer:n=(e=>e),autoComplete:r="off",className:o,disabled:a=!1,disableUnits:i=!1,isPressEnterToChange:u=!1,isResetValueOnUnitChange:p=!1,isUnitSelectTabbable:b=!0,label:h,onChange:m=l.noop,onUnitChange:v=l.noop,size:g="default",style:y,unit:O,units:j=Hd,value:w,...x}=e;const _=Object(s.useMemo)(()=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Bd;if(!Array.isArray(n))return n;const r=[...n],[,o]=Wd(e,t,Bd);return o&&!r.some(e=>e.value===o)&&zd[o]&&r.unshift(zd[o]),r}(w,O,j),[w,O,j]),[E,k]=Wd(w,O,_),[S,C]=Xd(O,{initial:k,fallback:""}),P=Object(s.useRef)(null),T=d()("components-unit-control",o),M=e=>{if(!isNaN(Number(e.currentTarget.value)))return void(P.current=null);const[t,n]=Gd(e.currentTarget.value,_,E,S);if(P.current=t.toString(),u&&n!==S){const r={event:e,data:Array.isArray(_)?_.find(e=>e.value===n):void 0};m(`${t}${n}`,r),v(n,r),C(n)}},D=M,I=i?null:Object(s.createElement)(qd,{"aria-label":Object(f.__)("Select unit"),disabled:a,isUnitSelectTabbable:b,onChange:(e,t)=>{const{data:n}=t;let r=`${E}${e}`;p&&void 0!==(null==n?void 0:n.default)&&(r=`${n.default}${e}`),m(r,t),v(e,t),C(e)},size:g,unit:S,units:_});let R=x.step;if(!R&&_){var A;const e=_.find(e=>e.value===S);R=null!==(A=null==e?void 0:e.step)&&void 0!==A?A:1}return Object(s.createElement)(Td,{className:"components-unit-control-wrapper",style:y},Object(s.createElement)(Rd,Object(c.a)({"aria-label":h,type:u?"text":"number"},Object(l.omit)(x,["children"]),{autoComplete:r,className:T,disabled:a,disableUnits:i,isPressEnterToChange:u,label:h,onBlur:D,onKeyDown:e=>{const{keyCode:t}=e;t===zu.ENTER&&M(e)},onChange:(e,t)=>{""!==e?(e=Gd(e,_,E,S).join(""),m(e,t)):m("",t)},ref:t,size:g,suffix:I,value:E,step:R,__unstableStateReducer:Wu((e,t)=>("COMMIT"===t.type&&null!==P.current&&(e.value=P.current,P.current=null),e),n)})))}));const Jd=Object(w.a)("div",{target:"e7pk0lh6"})({name:"14bvcyk",styles:"box-sizing:border-box;max-width:235px;padding-bottom:12px;width:100%"}),Qd=Object(w.a)(Ms,{target:"e7pk0lh5"})("color:",L.ui.label,";padding-bottom:8px;"),ef=Object(w.a)(Ms,{target:"e7pk0lh4"})({name:"aujtid",styles:"min-height:30px;gap:0"}),tf=Object(w.a)("div",{target:"e7pk0lh3"})({name:"112jwab",styles:"box-sizing:border-box;max-width:80px"}),nf=Object(w.a)(Ms,{target:"e7pk0lh2"})({name:"xy18ro",styles:"justify-content:center;padding-top:8px"}),rf=Object(w.a)(Ms,{target:"e7pk0lh1"})({name:"3tw5wk",styles:"position:relative;height:100%;width:100%;justify-content:flex-start"});var of={name:"1ch9yvl",styles:"border-radius:0"},af={name:"tg3mx0",styles:"border-radius:2px"};const cf=e=>{let{isFirst:t,isLast:n,isOnly:r}=e;return t?Ps({borderTopRightRadius:0,borderBottomRightRadius:0})():n?Ps({borderTopLeftRadius:0,borderBottomLeftRadius:0})():r?af:of},sf=e=>{let{isFirst:t,isOnly:n}=e;return Ps({marginLeft:t||n?0:-1})()},lf=Object(w.a)(Zd,{target:"e7pk0lh0"})("max-width:60px;",cf,";",sf,";");function uf(e){let{isFirst:t,isLast:n,isOnly:r,onHoverOn:o=l.noop,onHoverOff:a=l.noop,label:i,value:u,...d}=e;const f=function(e,t){void 0===t&&(t={}),fu.set("hover",Fu);var n=Object(q.useRef)();return n.current||(n.current=Nu(su,Lu)),Mu({hover:e},n.current(t))}(e=>{let{event:t,...n}=e;n.hovering?o(t,n):a(t,n)});return Object(s.createElement)(tf,f(),Object(s.createElement)(df,{text:i},Object(s.createElement)(lf,Object(c.a)({"aria-label":i,className:"component-box-control__unit-control",hideHTMLArrows:!0,isFirst:t,isLast:n,isOnly:r,isPressEnterToChange:!0,isResetValueOnUnitChange:!1,value:u},d))))}function df(e){let{children:t,text:n}=e;return n?Object(s.createElement)(h.a,{text:n,position:"top"},Object(s.createElement)("div",null,t)):t}const ff={all:Object(f.__)("All"),top:Object(f.__)("Top"),bottom:Object(f.__)("Bottom"),left:Object(f.__)("Left"),right:Object(f.__)("Right"),mixed:Object(f.__)("Mixed"),vertical:Object(f.__)("Vertical"),horizontal:Object(f.__)("Horizontal")},pf={top:null,right:null,bottom:null,left:null},bf={top:!1,right:!1,bottom:!1,left:!1},hf=["top","right","bottom","left"];function mf(e){return e.sort((t,n)=>e.filter(e=>e===t).length-e.filter(e=>e===n).length).pop()}function vf(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:hf;const n=jf(t),r=n.map(t=>Kd(e[t])),o=r.map(e=>e[0]),a=r.map(e=>e[1]),i=o.every(e=>e===o[0])?o[0]:"",c=mf(a),s=Object(l.isNumber)(i)?`${i}${c}`:null;return s}function gf(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:hf;const n=vf(e,t),r=isNaN(parseFloat(n));return r}function yf(e){return void 0!==e&&!Object(l.isEmpty)(Object.values(e).filter(e=>!!e&&/\d/.test(e)))}function Of(e,t){let n="all";return e||(n=t?"vertical":"top"),n}function jf(e){const t=[];if(null==e||!e.length)return hf;if(e.includes("vertical"))t.push("top","bottom");else if(e.includes("horizontal"))t.push("left","right");else{const n=hf.filter(t=>e.includes(t));t.push(...n)}return t}function wf(e){let{onChange:t=l.noop,onFocus:n=l.noop,onHoverOn:r=l.noop,onHoverOff:o=l.noop,values:a,sides:i,selectedUnits:u,setSelectedUnits:d,...f}=e;const p=vf(a,i),b=yf(a)&&gf(a,i),h=b?ff.mixed:null,m=p?void 0:function(e){if(!e||"object"!=typeof e)return;return mf(Object.values(e).filter(Boolean))}(u),v=(e,t)=>{const n={...e};return null!=i&&i.length?i.forEach(e=>{"vertical"===e?(n.top=t,n.bottom=t):"horizontal"===e?(n.left=t,n.right=t):n[e]=t}):hf.forEach(e=>n[e]=t),n};return Object(s.createElement)(uf,Object(c.a)({},f,{disableUnits:b,isOnly:!0,value:p,unit:m,onChange:e=>{const n=!isNaN(parseFloat(e)),r=v(a,n?e:void 0);t(r)},onUnitChange:e=>{const t=v(u,e);d(t)},onFocus:e=>{n(e,{side:"all"})},onHoverOn:()=>{r({top:!0,bottom:!0,left:!0,right:!0})},onHoverOff:()=>{o({top:!1,bottom:!1,left:!1,right:!1})},placeholder:h}))}function xf(e){let{onChange:t=l.noop,onFocus:n=l.noop,onHoverOn:r=l.noop,onHoverOff:o=l.noop,values:a,selectedUnits:i,setSelectedUnits:u,sides:d,...f}=e;const p=e=>t=>{n(t,{side:e})},b=e=>()=>{r({[e]:!0})},h=e=>()=>{o({[e]:!1})},m=e=>(n,r)=>{let{event:o}=r;const{altKey:i}=o,c={...a},s=!isNaN(parseFloat(n))?n:void 0;if(c[e]=s,i)switch(e){case"top":c.bottom=s;break;case"bottom":c.top=s;break;case"left":c.right=s;break;case"right":c.left=s}(e=>{t(e)})(c)},v=e=>t=>{const n={...i};n[e]=t,u(n)},g=null!=d&&d.length?hf.filter(e=>d.includes(e)):hf,y=g[0],O=g[g.length-1],j=y===O&&y;return Object(s.createElement)(nf,{className:"component-box-control__input-controls-wrapper"},Object(s.createElement)(rf,{gap:0,align:"top",className:"component-box-control__input-controls"},g.map(e=>Object(s.createElement)(uf,Object(c.a)({},f,{isFirst:y===e,isLast:O===e,isOnly:j===e,value:a[e],unit:a[e]?void 0:i[e],onChange:m(e),onUnitChange:v(e),onFocus:p(e),onHoverOn:b(e),onHoverOff:h(e),label:ff[e],key:"box-control-"+e})))))}const _f=["vertical","horizontal"];function Ef(e){let{onChange:t,onFocus:n,onHoverOn:r,onHoverOff:o,values:a,selectedUnits:i,setSelectedUnits:l,sides:u,...d}=e;const f=e=>t=>{n&&n(t,{side:e})},p=e=>()=>{r&&("vertical"===e&&r({top:!0,bottom:!0}),"horizontal"===e&&r({left:!0,right:!0}))},b=e=>()=>{o&&("vertical"===e&&o({top:!1,bottom:!1}),"horizontal"===e&&o({left:!1,right:!1}))},h=e=>n=>{if(!t)return;const r={...a},o=!isNaN(parseFloat(n))?n:void 0;"vertical"===e&&(r.top=o,r.bottom=o),"horizontal"===e&&(r.left=o,r.right=o),t(r)},m=e=>t=>{const n={...i};"vertical"===e&&(n.top=t,n.bottom=t),"horizontal"===e&&(n.left=t,n.right=t),l(n)},v=null!=u&&u.length?_f.filter(e=>u.includes(e)):_f,g=v[0],y=v[v.length-1],O=g===y;return Object(s.createElement)(rf,{gap:0,align:"top",className:"component-box-control__vertical-horizontal-input-controls"},v.map(e=>Object(s.createElement)(uf,Object(c.a)({},d,{isFirst:g===e,isLast:y===e,isOnly:O===e,value:"vertical"===e?a.top:a.left,unit:"vertical"===e?i.top:i.left,onChange:h(e),onUnitChange:m(e),onFocus:f(e),onHoverOn:p(e),onHoverOff:b(e),label:ff[e],key:e}))))}const kf=Object(w.a)("span",{target:"eaw9yqk8"})({name:"1w884gc",styles:"box-sizing:border-box;display:block;width:24px;height:24px;position:relative;padding:4px"}),Sf=Object(w.a)("span",{target:"eaw9yqk7"})({name:"i6vjox",styles:"box-sizing:border-box;display:block;position:relative;width:100%;height:100%"}),Cf=Object(w.a)("span",{target:"eaw9yqk6"})("box-sizing:border-box;display:block;pointer-events:none;position:absolute;",e=>{let{isFocused:t}=e;return Object(x.a)({backgroundColor:"currentColor",opacity:t?1:.3},"","")},";"),Pf=Object(w.a)(Cf,{target:"eaw9yqk5"})({name:"1k2w39q",styles:"bottom:3px;top:3px;width:2px"}),Tf=Object(w.a)(Cf,{target:"eaw9yqk4"})({name:"1q9b07k",styles:"height:2px;left:3px;right:3px"}),Mf=Object(w.a)(Tf,{target:"eaw9yqk3"})({name:"abcix4",styles:"top:0"}),Df=Object(w.a)(Pf,{target:"eaw9yqk2"})({name:"1wf8jf",styles:"right:0"}),If=Object(w.a)(Tf,{target:"eaw9yqk1"})({name:"8tapst",styles:"bottom:0"}),Rf=Object(w.a)(Pf,{target:"eaw9yqk0"})({name:"1ode3cm",styles:"left:0"});function Af(e){let{size:t=24,side:n="all",sides:r,...o}=e;const a=e=>!(e=>(null==r?void 0:r.length)&&!r.includes(e))(e)&&("all"===n||n===e),i=a("top")||a("vertical"),l=a("right")||a("horizontal"),u=a("bottom")||a("vertical"),d=a("left")||a("horizontal"),f=t/24;return Object(s.createElement)(kf,Object(c.a)({style:{transform:`scale(${f})`}},o),Object(s.createElement)(Sf,null,Object(s.createElement)(Mf,{isFocused:i}),Object(s.createElement)(Df,{isFocused:l}),Object(s.createElement)(If,{isFocused:u}),Object(s.createElement)(Rf,{isFocused:d})))}var Nf=n("Bpkj"),Lf=n("Mp0b");function Ff(e){let{isLinked:t,...n}=e;const r=t?Object(f.__)("Unlink Sides"):Object(f.__)("Link Sides");return Object(s.createElement)(h.a,{text:r},Object(s.createElement)("span",null,Object(s.createElement)(ld.a,Object(c.a)({},n,{className:"component-box-control__linked-button",variant:t?"primary":"secondary",isSmall:!0,icon:t?Nf.a:Lf.a,iconSize:16,"aria-label":r}))))}var zf={name:"11f5o9n",styles:"bottom:0;left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:1"};const Bf=Object(w.a)("div",{target:"e1df9b4q5"})("box-sizing:border-box;position:relative;",e=>{let{isPositionAbsolute:t}=e;return t?zf:""},";"),Hf=Object(w.a)("div",{target:"e1df9b4q4"})("box-sizing:border-box;background:",L.blue.wordpress[700],";background:",L.ui.theme,";filter:brightness( 1 );opacity:0;position:absolute;pointer-events:none;transition:opacity 120ms linear;z-index:1;",e=>{let{isActive:t}=e;return t&&"\n\t\topacity: 0.3;\n\t"},";"),Vf=Object(w.a)(Hf,{target:"e1df9b4q3"})({name:"5i97ct",styles:"top:0;left:0;right:0"}),Wf=Object(w.a)(Hf,{target:"e1df9b4q2"})("top:0;bottom:0;",Ps({right:0}),";"),Uf=Object(w.a)(Hf,{target:"e1df9b4q1"})({name:"8cxke2",styles:"bottom:0;left:0;right:0"}),Kf=Object(w.a)(Hf,{target:"e1df9b4q0"})("top:0;bottom:0;",Ps({left:0}),";");function Gf(e){let{showValues:t=bf,values:n}=e;const{top:r,right:o,bottom:a,left:i}=n;return Object(s.createElement)(s.Fragment,null,Object(s.createElement)($f,{isVisible:t.top,value:r}),Object(s.createElement)(qf,{isVisible:t.right,value:o}),Object(s.createElement)(Yf,{isVisible:t.bottom,value:a}),Object(s.createElement)(Xf,{isVisible:t.left,value:i}))}function $f(e){let{isVisible:t=!1,value:n}=e;const r=n,o=Zf(r).isActive||t;return Object(s.createElement)(Vf,{isActive:o,style:{height:r}})}function qf(e){let{isVisible:t=!1,value:n}=e;const r=n,o=Zf(r).isActive||t;return Object(s.createElement)(Wf,{isActive:o,style:{width:r}})}function Yf(e){let{isVisible:t=!1,value:n}=e;const r=n,o=Zf(r).isActive||t;return Object(s.createElement)(Uf,{isActive:o,style:{height:r}})}function Xf(e){let{isVisible:t=!1,value:n}=e;const r=n,o=Zf(r).isActive||t;return Object(s.createElement)(Kf,{isActive:o,style:{width:r}})}function Zf(e){const[t,n]=Object(s.useState)(!1),r=Object(s.useRef)(e),o=Object(s.useRef)(),a=()=>{o.current&&window.clearTimeout(o.current)};return Object(s.useEffect)(()=>(e!==r.current&&(n(!0),r.current=e,a(),o.current=setTimeout(()=>{n(!1)},400)),()=>a()),[e]),{isActive:t}}const Jf={min:0};function Qf(e){let{id:t,inputProps:n=Jf,onChange:r=l.noop,onChangeShowVisualizer:o=l.noop,label:a=Object(f.__)("Box Control"),values:i,units:u,sides:d,splitOnAxis:b=!1,allowReset:h=!0,resetValues:m=pf}=e;const[v,g]=Xd(i,{fallback:pf}),y=v||pf,O=yf(i),j=1===(null==d?void 0:d.length),[w,x]=Object(s.useState)(O),[_,E]=Object(s.useState)(!O||!gf(y)||j),[k,S]=Object(s.useState)(Of(_,b)),[C,P]=Object(s.useState)({top:Kd(null==i?void 0:i.top)[1],right:Kd(null==i?void 0:i.right)[1],bottom:Kd(null==i?void 0:i.bottom)[1],left:Kd(null==i?void 0:i.left)[1]}),T=function(e){const t=Object(p.useInstanceId)(Qf,"inspector-box-control");return e||t}(t),M=T+"-heading",D={...n,onChange:e=>{r(e),g(e),x(!0)},onFocus:(e,t)=>{let{side:n}=t;S(n)},onHoverOn:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o({...bf,...e})},onHoverOff:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o({...bf,...e})},isLinked:_,units:u,selectedUnits:C,setSelectedUnits:P,sides:d,values:y};return Object(s.createElement)(Jd,{id:T,role:"region","aria-labelledby":M},Object(s.createElement)(Qd,{className:"component-box-control__header"},Object(s.createElement)(ms,null,Object(s.createElement)(cl,{id:M,className:"component-box-control__label"},a)),h&&Object(s.createElement)(ms,null,Object(s.createElement)(ld.a,{className:"component-box-control__reset-button",isSecondary:!0,isSmall:!0,onClick:()=>{r(m),g(m),P(m),x(!1)},disabled:!w},Object(f.__)("Reset")))),Object(s.createElement)(ef,{className:"component-box-control__header-control-wrapper"},Object(s.createElement)(ms,null,Object(s.createElement)(Af,{side:k,sides:d})),_&&Object(s.createElement)(hs,null,Object(s.createElement)(wf,Object(c.a)({"aria-label":a},D))),!_&&b&&Object(s.createElement)(hs,null,Object(s.createElement)(Ef,D)),!j&&Object(s.createElement)(ms,null,Object(s.createElement)(Ff,{onClick:()=>{E(!_),S(Of(!_,b))},isLinked:_}))),!_&&!b&&Object(s.createElement)(xf,D))}Qf.__Visualizer=function(e){let{children:t,showValues:n=bf,values:r=pf,...o}=e;const a=!t;return Object(s.createElement)(Bf,Object(c.a)({},o,{isPositionAbsolute:a,"aria-hidden":"true"}),Object(s.createElement)(Gf,{showValues:n,values:r}),t)};var ep=Object(s.forwardRef)((function(e,t){let{className:n,...r}=e;const o=d()("components-button-group",n);return Object(s.createElement)("div",Object(c.a)({ref:t,role:"group",className:o},r))})),tp=n("6zzY");const np={name:"12ip69d",styles:"background:transparent;display:block;margin:0!important;pointer-events:none;position:absolute;will-change:box-shadow"};function rp(e){return`0 ${e}px ${2*e}px 0\n\t${`rgba(0 ,0, 0, ${e/20})`}`}var op=Object(os.a)((function(e,t){const n=function(e){const{active:t,borderRadius:n="inherit",className:r,focus:o,hover:a,isInteractive:i=!1,offset:c=0,value:u=0,...d}=Object(is.a)(e,"Elevation"),f=Object(ps.a)();return{...d,className:Object(s.useMemo)(()=>{let e=Object(l.isNil)(a)?2*u:a,s=Object(l.isNil)(t)?u/2:t;i||(e=Object(l.isNil)(a)?void 0:a,s=Object(l.isNil)(t)?void 0:t);const d=`box-shadow ${Ks.transitionDuration} ${Ks.transitionTimingFunction}`,p={};return p.Base=Object(x.a)({borderRadius:n,bottom:c,boxShadow:rp(u),opacity:Ks.elevationIntensity,left:c,right:c,top:c,transition:d},F("transition"),"",""),Object(l.isNil)(e)||(p.hover=Object(x.a)("*:hover>&{box-shadow:",rp(e),";}","")),Object(l.isNil)(s)||(p.active=Object(x.a)("*:active>&{box-shadow:",rp(s),";}","")),Object(l.isNil)(o)||(p.focus=Object(x.a)("*:focus>&{box-shadow:",rp(o),";}","")),f(np,p.Base,p.hover&&p.hover,p.focus&&p.focus,p.active&&p.active,r)},[t,n,r,o,a,i,c,u]),"aria-hidden":!0}}(e);return Object(s.createElement)(as.a,Object(c.a)({},n,{ref:t}))}),"Elevation");const ap=Object(x.a)("box-shadow:0 0 0 1px ",Ks.surfaceBorderColor,";outline:none;",""),ip={name:"1showjb",styles:"border-bottom:1px solid;box-sizing:border-box;&:last-child{border-bottom:none;}"},cp={name:"14n5oej",styles:"border-top:1px solid;box-sizing:border-box;&:first-of-type{border-top:none;}"},sp={name:"13udsys",styles:"height:100%"},lp={name:"6ywzd",styles:"box-sizing:border-box;height:auto;max-height:100%"},up={name:"dq805e",styles:"box-sizing:border-box;overflow:hidden;&>img,&>iframe{display:block;height:auto;max-width:100%;width:100%;}"},dp={name:"c990dr",styles:"box-sizing:border-box;display:block;width:100%"},fp=Object(x.a)("&:first-of-type{border-top-left-radius:",Ks.cardBorderRadius,";border-top-right-radius:",Ks.cardBorderRadius,";}&:last-of-type{border-bottom-left-radius:",Ks.cardBorderRadius,";border-bottom-right-radius:",Ks.cardBorderRadius,";}",""),pp=Object(x.a)("border-color:",Ks.colorDivider,";",""),bp={name:"1t90u8d",styles:"box-shadow:none"},hp={name:"1e1ncky",styles:"border:none"},mp=Object(x.a)("border-radius:",Ks.cardBorderRadius,";",""),vp={large:Object(x.a)("padding:",Ks.cardPaddingLarge,";",""),medium:Object(x.a)("padding:",Ks.cardPaddingMedium,";",""),small:Object(x.a)("padding:",Ks.cardPaddingSmall,";",""),xSmall:Object(x.a)("padding:",Ks.cardPaddingXSmall,";","")},gp=Object(x.a)("background-color:",L.lightGray[200],";",""),yp=Object(x.a)("background-color:",Ks.surfaceColor,";color:",L.black,";position:relative;","");Ks.surfaceBackgroundColor;const Op=Object(x.a)("",""),jp=Object(x.a)("background:",Ks.surfaceBackgroundTintColor,";",""),wp=Object(x.a)("background:",Ks.surfaceBackgroundTertiaryColor,";",""),xp=e=>[e,e].join(" "),_p=e=>["90deg",[Ks.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),Ep=e=>[[Ks.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),kp=(e,t)=>Object(x.a)("background:",(e=>[`linear-gradient( ${_p(e)} ) center`,`linear-gradient( ${Ep(e)} ) center`,Ks.surfaceBorderBoldColor].join(","))(t),";background-size:",xp(e),";",""),Sp=[`linear-gradient( ${[Ks.surfaceBorderSubtleColor+" 1px","transparent 1px"].join(",")} )`,`linear-gradient( ${["90deg",Ks.surfaceBorderSubtleColor+" 1px","transparent 1px"].join(",")} )`].join(","),Cp=(e,t,n)=>{switch(e){case"dotted":return kp(t,n);case"grid":return(e=>Object(x.a)("background:",Ks.surfaceBackgroundColor,";background-image:",Sp,";background-size:",xp(e),";",""))(t);case"primary":return Op;case"secondary":return jp;case"tertiary":return wp}};function Pp(e){const{backgroundSize:t=12,borderBottom:n=!1,borderLeft:r=!1,borderRight:o=!1,borderTop:a=!1,className:i,variant:c="primary",...l}=Object(is.a)(e,"Surface"),u=Object(ps.a)();return{...l,className:Object(s.useMemo)(()=>{const e={};return e.borders=function(e){let{borderBottom:t,borderLeft:n,borderRight:r,borderTop:o}=e;const a="1px solid "+Ks.surfaceBorderColor;return Object(x.a)({borderBottom:t?a:void 0,borderLeft:n?a:void 0,borderRight:r?a:void 0,borderTop:o?a:void 0},"","")}({borderBottom:n,borderLeft:r,borderRight:o,borderTop:a}),u(yp,e.borders,Cp(c,t+"px",t-1+"px"),i)},[t,n,r,o,a,i,c])}}function Tp(e){const{className:t,elevation:n=0,isBorderless:r=!1,isRounded:o=!0,size:a="medium",...i}=Object(is.a)(function(e){let{elevation:t,isElevated:n,...r}=e;const o={...r};let a=t;var i;return n&&(gs()("Card isElevated prop",{since:"5.9",alternative:"elevation"}),null!==(i=a)&&void 0!==i||(a=2)),void 0!==a&&(o.elevation=a),o}(e),"Card"),c=Object(ps.a)();return{...Pp({...i,className:Object(s.useMemo)(()=>c(ap,r&&bp,o&&mp,t),[t,r,o])}),elevation:n,isBorderless:r,isRounded:o,size:a}}var Mp=Object(os.a)((function(e,t){const{children:n,elevation:r,isBorderless:o,isRounded:a,size:i,...l}=Tp(e),u=a?Ks.cardBorderRadius:0,d=Object(ps.a)(),f=Object(s.useMemo)(()=>d(Object(x.a)({borderRadius:u},"","")),[u]),p=Object(s.useMemo)(()=>{const e={size:i,isBorderless:o};return{CardBody:e,CardHeader:e,CardFooter:e}},[o,i]);return Object(s.createElement)(tp.a,{value:p},Object(s.createElement)(as.a,Object(c.a)({},l,{ref:t}),Object(s.createElement)(as.a,{className:d(sp)},n),Object(s.createElement)(op,{className:f,isInteractive:!1,value:r?1:0}),Object(s.createElement)(op,{className:f,isInteractive:!1,value:r})))}),"Card");const Dp=Object(x.a)("@media only screen and ( min-device-width: 40em ){&::-webkit-scrollbar{height:12px;width:12px;}&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar-track{background:",Ks.colorScrollbarTrack,";border-radius:8px;}&::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:",Ks.colorScrollbarThumb,";border:2px solid rgba( 0, 0, 0, 0 );border-radius:7px;}&:hover::-webkit-scrollbar-thumb{background-color:",Ks.colorScrollbarThumbHover,";}}",""),Ip={name:"13udsys",styles:"height:100%"},Rp={name:"7zq9w",styles:"scroll-behavior:smooth"},Ap={name:"q33xhg",styles:"overflow-x:auto;overflow-y:hidden"},Np={name:"103x71s",styles:"overflow-x:hidden;overflow-y:auto"},Lp={name:"umwchj",styles:"overflow-y:auto"};var Fp=Object(os.a)((function(e,t){const n=function(e){const{className:t,scrollDirection:n="y",smoothScroll:r=!1,...o}=Object(is.a)(e,"Scrollable"),a=Object(ps.a)();return{...o,className:Object(s.useMemo)(()=>a(Ip,Dp,r&&Rp,"x"===n&&Ap,"y"===n&&Np,"auto"===n&&Lp,t),[t,n,r])}}(e);return Object(s.createElement)(as.a,Object(c.a)({},n,{ref:t}))}),"Scrollable");var zp=Object(os.a)((function(e,t){const{isScrollable:n,...r}=function(e){const{className:t,isScrollable:n=!1,isShady:r=!1,size:o="medium",...a}=Object(is.a)(e,"CardBody"),i=Object(ps.a)();return{...a,className:Object(s.useMemo)(()=>i(lp,fp,vp[o],r&&gp,"components-card__body",t),[t,r,o]),isScrollable:n}}(e);return n?Object(s.createElement)(Fp,Object(c.a)({},r,{ref:t})):Object(s.createElement)(as.a,Object(c.a)({},r,{ref:t}))}),"CardBody"),Bp=Object(_e.a)({name:"Separator",compose:Ce.a,keys:["orientation"],useOptions:function(e){var t=e.orientation,n=void 0===t?"horizontal":t,r=Object($.a)(e,["orientation"]);return Object($.b)({orientation:n},r)},useProps:function(e,t){return Object($.b)({role:"separator","aria-orientation":e.orientation},t)}}),Hp=Object(xe.a)({as:"hr",memo:!0,useHook:Bp});const Vp=Object(w.a)("hr",{target:"e19on6iw0"})("border-color:",Ks.colorDivider,";border-width:0 0 1px 0;height:0;margin:0;width:auto;",e=>{let{margin:t,marginTop:n,marginBottom:r}=e;return void 0!==t?Object(x.a)({marginBottom:ws(t),marginTop:ws(t)},"",""):Object(x.a)({marginTop:ws(n),marginBottom:ws(r)},"","")},";");var Wp=Object(os.a)((function(e,t){const n=Object(is.a)(e,"Divider");return Object(s.createElement)(Hp,Object(c.a)({as:Vp},n,{ref:t}))}),"Divider");var Up=Object(os.a)((function(e,t){const n=function(e){const{className:t,...n}=Object(is.a)(e,"CardDivider"),r=Object(ps.a)();return{...n,className:Object(s.useMemo)(()=>r(dp,pp,"components-card__divider",t),[t])}}(e);return Object(s.createElement)(Wp,Object(c.a)({},n,{ref:t}))}),"CardDivider");var Kp=Object(os.a)((function(e,t){const n=function(e){const{className:t,justify:n,isBorderless:r=!1,isShady:o=!1,size:a="medium",...i}=Object(is.a)(e,"CardFooter"),c=Object(ps.a)();return{...i,className:Object(s.useMemo)(()=>c(cp,fp,pp,vp[a],r&&hp,o&&gp,"components-card__footer",t),[t,r,o,a]),justify:n}}(e);return Object(s.createElement)(Ms,Object(c.a)({},n,{ref:t}))}),"CardFooter");var Gp=Object(os.a)((function(e,t){const n=function(e){const{className:t,isBorderless:n=!1,isShady:r=!1,size:o="medium",...a}=Object(is.a)(e,"CardHeader"),i=Object(ps.a)();return{...a,className:Object(s.useMemo)(()=>i(ip,fp,pp,vp[o],n&&hp,r&&gp,"components-card__header",t),[t,n,r,o])}}(e);return Object(s.createElement)(Ms,Object(c.a)({},n,{ref:t}))}),"CardHeader");var $p=Object(os.a)((function(e,t){const n=function(e){const{className:t,...n}=Object(is.a)(e,"CardMedia"),r=Object(ps.a)();return{...n,className:Object(s.useMemo)(()=>r(up,fp,"components-card__media",t),[t])}}(e);return Object(s.createElement)(as.a,Object(c.a)({},n,{ref:t}))}),"CardMedia"),qp=n("iClF"),Yp=n("RMJe");function Xp(e){let{label:t,className:n,heading:r,checked:o,help:a,onChange:i,...l}=e;r&&gs()("`heading` prop in `CheckboxControl`",{alternative:"a separate element to implement a heading",plugin:"Gutenberg"});const u="inspector-checkbox-control-"+Object(p.useInstanceId)(Xp);return Object(s.createElement)(jd,{label:r,id:u,help:a,className:d()("components-checkbox-control",n)},Object(s.createElement)("span",{className:"components-checkbox-control__input-container"},Object(s.createElement)("input",Object(c.a)({id:u,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:e=>i(e.target.checked),checked:o,"aria-describedby":a?u+"__help":void 0},l)),o?Object(s.createElement)(qp.a,{icon:Yp.a,className:"components-checkbox-control__checked",role:"presentation"}):null),Object(s.createElement)("label",{className:"components-checkbox-control__label",htmlFor:u},t))}function Zp(e){let{className:t,children:n,onCopy:r,onFinishCopy:o,text:a,...i}=e;gs()("wp.components.ClipboardButton",{since:"10.3",plugin:"Gutenberg",alternative:"wp.compose.useCopyToClipboard"});const l=Object(s.useRef)(),u=Object(p.useCopyToClipboard)(a,()=>{r(),clearTimeout(l.current),o&&(l.current=setTimeout(()=>o(),4e3))});Object(s.useEffect)(()=>{clearTimeout(l.current)},[]);const f=d()("components-clipboard-button",t);return Object(s.createElement)(ld.a,Object(c.a)({},i,{className:f,ref:u,onCopy:e=>{e.target.focus()}}),n)}var Jp=n("bVTw"),Qp=n("Q4Sy"),eb=n("VKE3"),tb=n("mi6C");const nb={bottom:{align:"flex-end",justify:"center"},bottomLeft:{align:"flex-start",justify:"flex-end"},bottomRight:{align:"flex-end",justify:"flex-end"},center:{align:"center",justify:"center"},edge:{align:"center",justify:"space-between"},left:{align:"center",justify:"flex-start"},right:{align:"center",justify:"flex-end"},stretch:{align:"stretch"},top:{align:"flex-start",justify:"center"},topLeft:{align:"flex-start",justify:"flex-start"},topRight:{align:"flex-start",justify:"flex-end"}},rb={bottom:{justify:"flex-end",align:"center"},bottomLeft:{justify:"flex-start",align:"flex-end"},bottomRight:{justify:"flex-end",align:"flex-end"},center:{justify:"center",align:"center"},edge:{justify:"space-between",align:"center"},left:{justify:"center",align:"flex-start"},right:{justify:"center",align:"flex-end"},stretch:{justify:"stretch"},top:{justify:"flex-start",align:"center"},topLeft:{justify:"flex-start",align:"flex-start"},topRight:{justify:"flex-start",align:"flex-end"}};function ob(e){return"string"==typeof e?[e]:s.Children.toArray(e).filter(e=>Object(s.isValidElement)(e))}function ab(e){const{alignment:t="edge",children:n,direction:r,spacing:o=2,...a}=Object(is.a)(e,"HStack"),i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"row";if(Object(l.isNil)(e))return{};const n="column"===t,r=n?rb:nb,o=e in r?r[e]:{align:e};return o}(t,r);return Ts({children:ob(n).map((e,t)=>{const n=e.key||"hstack-"+t;return Object(os.b)(e,["Spacer"])?Object(s.createElement)(ms,Object(c.a)({isBlock:!0,key:n},e.props)):e}),direction:r,justify:"center",...i,...a,gap:o})}var ib=Object(os.a)((function(e,t){const n=ab(e);return Object(s.createElement)(as.a,Object(c.a)({},n,{ref:t}))}),"HStack"),cb=n("NWDH");const sb=Object(w.a)("select",{target:"e1mv6sxx1"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",L.black,";display:block;margin:0;width:100%;",e=>{let{disabled:t}=e;return t?Object(x.a)({color:L.ui.textDisabled},"",""):""},";",e=>{let{selectSize:t}=e;const n={default:"13px",small:"11px"}[t];return n?Object(x.a)("font-size:","16px",";@media ( min-width: 600px ){font-size:",n,";}",""):""},";",e=>{let{selectSize:t}=e;const n={default:{height:30,lineHeight:1,minHeight:30},small:{height:24,lineHeight:1,minHeight:24}},r=n[t]||n.default;return Object(x.a)(r,"","")},";",Ps({paddingLeft:8,paddingRight:24}),";}"),lb=Object(w.a)("div",{target:"e1mv6sxx0"})("align-items:center;bottom:0;box-sizing:border-box;display:flex;padding:0 4px;pointer-events:none;position:absolute;top:0;",Ps({right:0})," svg{display:block;}");function ub(e,t){let{className:n,disabled:r=!1,help:o,hideLabelFromVision:a,id:i,label:u,multiple:f=!1,onBlur:b=l.noop,onChange:h=l.noop,onFocus:m=l.noop,options:v=[],size:g="default",value:y,labelPosition:O="top",children:j,prefix:w,suffix:x,..._}=e;const[E,k]=Object(s.useState)(!1),S=function(e){const t=Object(p.useInstanceId)(ub);return e||"inspector-select-control-"+t}(i),C=o?S+"__help":void 0;if(Object(l.isEmpty)(v)&&!j)return null;const P=d()("components-select-control",n);return Object(s.createElement)(jd,{help:o,id:S},Object(s.createElement)(Pl,{className:P,disabled:r,hideLabelFromVision:a,id:S,isFocused:E,label:u,size:g,suffix:x||Object(s.createElement)(lb,null,Object(s.createElement)(qp.a,{icon:cb.a,size:18})),prefix:w,labelPosition:O},Object(s.createElement)(sb,Object(c.a)({},_,{"aria-describedby":C,className:"components-select-control__input",disabled:r,id:S,multiple:f,onBlur:e=>{b(e),k(!1)},onChange:e=>{if(f){const t=Array.from(e.target.options).filter(e=>{let{selected:t}=e;return t}).map(e=>{let{value:t}=e;return t});h(t)}else h(e.target.value,{event:e})},onFocus:e=>{m(e),k(!0)},ref:t,selectSize:g,value:y}),j||v.map((e,t)=>{const n=e.id||`${e.label}-${e.value}-${t}`;return Object(s.createElement)("option",{key:n,value:e.value,disabled:e.disabled},e.label)}))))}var db=Object(s.forwardRef)(ub),fb=n("9VDH");function pb(e,t,n){return"number"!=typeof e?null:parseFloat(Object(l.clamp)(e,t,n))}const bb=()=>Object(x.a)({height:30,minHeight:30},"",""),hb=Object(w.a)("div",{target:"exqw8y214"})({name:"17z6zai",styles:"-webkit-tap-highlight-color:transparent;box-sizing:border-box;align-items:flex-start;display:inline-flex;justify-content:flex-start;padding:0;position:relative;touch-action:none;width:100%"}),mb=Object(w.a)("div",{target:"exqw8y213"})("box-sizing:border-box;color:",L.blue.medium.focus,";display:block;flex:1;position:relative;width:100%;",e=>{let{color:t=L.ui.borderFocus}=e;return Object(x.a)({color:t},"","")},";",bb,";",e=>{let{marks:t}=e;return Object(x.a)({marginBottom:t?16:null},"","")},";"),vb=Object(w.a)("span",{target:"exqw8y212"})("margin-top:",4,"px;",Ps({marginRight:6}),";"),gb=Object(w.a)("span",{target:"exqw8y211"})("margin-top:",4,"px;",Ps({marginLeft:16}),";"),yb=Object(w.a)("span",{target:"exqw8y210"})("background-color:",L.lightGray[600],";box-sizing:border-box;left:0;pointer-events:none;right:0;display:block;height:",4,"px;position:absolute;margin-top:",13,"px;top:0;border-radius:",4,"px;",e=>{let{disabled:t,railColor:n}=e,r=n||null;return t&&(r=L.lightGray[400]),Object(x.a)({background:r},"","")},";"),Ob=Object(w.a)("span",{target:"exqw8y29"})("background-color:currentColor;border-radius:",4,"px;box-sizing:border-box;height:",4,"px;pointer-events:none;display:block;position:absolute;margin-top:",13,"px;top:0;",e=>{let{disabled:t,trackColor:n}=e,r=n||"currentColor";return t&&(r=L.lightGray[800]),Object(x.a)({background:r},"","")},";"),jb=Object(w.a)("span",{target:"exqw8y28"})({name:"1xuuvmv",styles:"box-sizing:border-box;display:block;pointer-events:none;position:relative;width:100%;user-select:none"}),wb=Object(w.a)("span",{target:"exqw8y27"})("box-sizing:border-box;height:",12,"px;left:0;position:absolute;top:-4px;width:1px;",e=>{let{disabled:t,isFilled:n}=e,r=n?"currentColor":L.lightGray[600];return t&&(r=L.lightGray[800]),Object(x.a)({backgroundColor:r},"","")},";"),xb=Object(w.a)("span",{target:"exqw8y26"})("box-sizing:border-box;color:",L.lightGray[600],";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",e=>{let{isFilled:t}=e;return Object(x.a)({color:t?L.darkGray[300]:L.lightGray[600]},"","")},";");var _b={name:"1sb75b3",styles:"background-color:var( --wp-admin-theme-color )"};const Eb=e=>{let{disabled:t}=e;return t?Object(x.a)("background-color:",L.lightGray[800],";",""):_b},kb=Object(w.a)("span",{target:"exqw8y25"})("align-items:center;box-sizing:border-box;display:flex;height:",12,"px;justify-content:center;margin-top:",9,"px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:",12,"px;border-radius:50%;",Eb,";",Ps({marginLeft:-10}),";",Ps({transform:"translateX( 4.5px )"},{transform:"translateX( -4.5px )"}),";"),Sb=Object(w.a)("span",{target:"exqw8y24"})("align-items:center;border-radius:50%;box-sizing:border-box;height:100%;outline:0;position:absolute;user-select:none;width:100%;",Eb,";",e=>{let{isFocused:t}=e;return t?Object(x.a)("&::before{content:' ';position:absolute;background-color:var( --wp-admin-theme-color );opacity:0.4;border-radius:50%;height:",20,"px;width:",20,"px;top:-4px;left:-4px;}",""):""},";"),Cb=Object(w.a)("input",{target:"exqw8y23"})("box-sizing:border-box;cursor:pointer;display:block;height:100%;left:0;margin:0 -",6,"px;opacity:0;outline:none;position:absolute;right:0;top:0;width:calc( 100% + ",12,"px );");var Pb={name:"1cypxip",styles:"top:-80%"},Tb={name:"1lr98c4",styles:"bottom:-80%"};const Mb=Object(w.a)("span",{target:"exqw8y22"})("background:rgba( 0, 0, 0, 0.8 );border-radius:2px;box-sizing:border-box;color:white;display:inline-block;font-size:12px;min-width:32px;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;transition:opacity 120ms ease;user-select:none;line-height:1.4;",e=>{let{show:t}=e;return Object(x.a)({opacity:t?1:0},"","")},";",e=>{let{position:t}=e;return"bottom"===t?Tb:Pb},";",F("transition"),";",Ps({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),";"),Db=Object(w.a)(Pd,{target:"exqw8y21"})("box-sizing:border-box;display:inline-block;font-size:13px;margin-top:0;width:",ws(16),"!important;input[type='number']&{",bb,";}",Ps({marginLeft:ws(4)+" !important"}),";"),Ib=Object(w.a)("span",{target:"exqw8y20"})("box-sizing:border-box;display:block;margin-top:0;button,button.is-small{margin-left:0;",bb,";}",Ps({marginLeft:8}),";");var Rb=Object(s.forwardRef)((function(e,t){let{describedBy:n,label:r,onHideTooltip:o=l.noop,onMouseLeave:a=l.noop,onMouseMove:i=l.noop,onShowTooltip:u=l.noop,value:d,...f}=e;const p=function(e){let{onHide:t=l.noop,onMouseLeave:n=l.noop,onMouseMove:r=l.noop,onShow:o=l.noop,timeout:a=300}=e;const[i,c]=Object(s.useState)(!1),u=Object(s.useRef)(),d=Object(s.useCallback)(e=>{window.clearTimeout(u.current),u.current=setTimeout(e,a)},[a]),f=Object(s.useCallback)(e=>{r(e),d(()=>{i||(c(!0),o())})},[]),p=Object(s.useCallback)(e=>{n(e),d(()=>{c(!1),t()})},[]);return Object(s.useEffect)(()=>()=>{window.clearTimeout(u.current)}),{onMouseMove:f,onMouseLeave:p}}({onHide:o,onMouseLeave:a,onMouseMove:i,onShow:u});return Object(s.createElement)(Cb,Object(c.a)({},f,p,{"aria-describedby":n,"aria-label":r,"aria-hidden":!1,ref:t,tabIndex:0,type:"range",value:d}))}));function Ab(e){let{className:t,isFilled:n=!1,label:r,style:o={},...a}=e;const i=d()("components-range-control__mark",n&&"is-filled",t),l=d()("components-range-control__mark-label",n&&"is-filled");return Object(s.createElement)(s.Fragment,null,Object(s.createElement)(wb,Object(c.a)({},a,{"aria-hidden":"true",className:i,isFilled:n,style:o})),r&&Object(s.createElement)(xb,{"aria-hidden":"true",className:l,isFilled:n,style:o},r))}function Nb(e){let{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:a=1,value:i=0,...l}=e;return Object(s.createElement)(s.Fragment,null,Object(s.createElement)(yb,Object(c.a)({disabled:t},l)),n&&Object(s.createElement)(Lb,{disabled:t,marks:n,min:r,max:o,step:a,value:i}))}function Lb(e){let{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:a=1,value:i=0}=e;"any"===a&&(a=1);const l=function(e){let{marks:t,min:n=0,max:r=100,step:o=1,value:a=0}=e;if(!t)return[];const i=r-n;if(!Array.isArray(t)){t=[];const e=1+Math.round(i/o);for(;e>t.push({value:o*t.length+n}););}const c=[];return t.forEach((e,t)=>{if(e.value<n||e.value>r)return;const o="mark-"+t,s=e.value<=a,l=(e.value-n)/i*100+"%",u={[Object(f.isRTL)()?"right":"left"]:l};c.push({...e,isFilled:s,key:o,style:u})}),c}({marks:n,min:r,max:o,step:a,value:i});return Object(s.createElement)(jb,{"aria-hidden":"true",className:"components-range-control__marks"},l.map(e=>Object(s.createElement)(Ab,Object(c.a)({},e,{key:e.key,"aria-hidden":"true",disabled:t}))))}function Fb(e){let{className:t,inputRef:n,tooltipPosition:r,show:o=!1,style:a={},value:i=0,renderTooltipContent:l=(e=>e),zIndex:u=100,...f}=e;const p=function(e){let{inputRef:t,tooltipPosition:n}=e;const[r,o]=Object(s.useState)(),a=Object(s.useCallback)(()=>{t&&t.current&&o(n)},[n]);return Object(s.useEffect)(()=>{a()},[a]),Object(s.useEffect)(()=>(window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a)})),r}({inputRef:n,tooltipPosition:r}),b=d()("components-simple-tooltip",t),h={...a,zIndex:u};return Object(s.createElement)(Mb,Object(c.a)({},f,{"aria-hidden":o,className:b,position:p,show:o,role:"tooltip",style:h}),l(i))}var zb=Object(s.forwardRef)((function e(t,n){var r;let{afterIcon:o,allowReset:a=!1,beforeIcon:i,className:u,currentInput:b,color:h=L.ui.theme,disabled:m=!1,help:v,initialPosition:g,isShiftStepEnabled:y=!0,label:O,hideLabelFromVision:j=!1,marks:w=!1,max:x=100,min:_=0,onBlur:E=l.noop,onChange:k=l.noop,onFocus:S=l.noop,onMouseMove:C=l.noop,onMouseLeave:P=l.noop,railColor:T,resetFallbackValue:M,renderTooltipContent:D=(e=>e),showTooltip:I,shiftStep:R=10,step:A=1,trackColor:N,value:F,withInputField:z=!0,...B}=t;const[H,V]=function(e){let{min:t,max:n,value:r,initial:o}=e;const[a,i]=Xd(pb(r,t,n),{initial:o,fallback:null});return[a,Object(s.useCallback)(e=>{i(null===e?null:pb(e,t,n))},[t,n])]}({min:_,max:x,value:F,initial:g}),W=Object(s.useRef)(!1);"any"===A&&(I=!1,z=!1);const[U,K]=Object(s.useState)(I),[G,$]=Object(s.useState)(!1),q=Object(s.useRef)(),Y=null===(r=q.current)||void 0===r?void 0:r.matches(":focus"),X=!m&&G,Z=null===H,J=Z?"":void 0!==H?H:b,Q=Z?(x-_)/2+_:H,ee=Z?50:(H-_)/(x-_)*100,te=Object(l.clamp)(ee,0,100)+"%",ne=d()("components-range-control",u),re=d()("components-range-control__wrapper",!!w&&"is-marked"),oe=Object(p.useInstanceId)(e,"inspector-range-control"),ae=v?oe+"__help":void 0,ie=!1!==I&&Object(l.isFinite)(H),ce=()=>{let e=parseFloat(M),t=e;isNaN(e)&&(e=null,t=void 0),V(e),k(t)},se={[Object(f.isRTL)()?"right":"left"]:te};return Object(s.createElement)(jd,{className:ne,label:O,hideLabelFromVision:j,id:oe,help:v},Object(s.createElement)(hb,{className:"components-range-control__root"},i&&Object(s.createElement)(vb,null,Object(s.createElement)(fb.a,{icon:i})),Object(s.createElement)(mb,{className:re,color:h,marks:!!w},Object(s.createElement)(Rb,Object(c.a)({},B,{className:"components-range-control__slider",describedBy:ae,disabled:m,id:oe,label:O,max:x,min:_,onBlur:e=>{E(e),$(!1),K(!1)},onChange:e=>{const t=parseFloat(e.target.value);V(t),k(t)},onFocus:e=>{S(e),$(!0),K(!0)},onMouseMove:C,onMouseLeave:P,ref:e=>{q.current=e,n&&n(e)},step:A,value:J})),Object(s.createElement)(Nb,{"aria-hidden":!0,disabled:m,marks:w,max:x,min:_,railColor:T,step:A,value:Q}),Object(s.createElement)(Ob,{"aria-hidden":!0,className:"components-range-control__track",disabled:m,style:{width:te},trackColor:N}),Object(s.createElement)(kb,{style:se,disabled:m},Object(s.createElement)(Sb,{"aria-hidden":!0,isFocused:X,disabled:m})),ie&&Object(s.createElement)(Fb,{className:"components-range-control__tooltip",inputRef:q,tooltipPosition:"bottom",renderTooltipContent:D,show:Y||U,style:se,value:H})),o&&Object(s.createElement)(gb,null,Object(s.createElement)(fb.a,{icon:o})),z&&Object(s.createElement)(Db,{"aria-label":O,className:"components-range-control__number",disabled:m,inputMode:"decimal",isShiftStepEnabled:y,max:x,min:_,onBlur:()=>{W.current&&(ce(),W.current=!1)},onChange:e=>{e=parseFloat(e),V(e),isNaN(e)?a&&(W.current=!0):((e<_||e>x)&&(e=pb(e,_,x)),k(e),W.current=!1)},shiftStep:R,step:A,value:J}),a&&Object(s.createElement)(Ib,null,Object(s.createElement)(ld.a,{className:"components-range-control__reset",disabled:m||void 0===H,variant:"secondary",isSmall:!0,onClick:ce},Object(f.__)("Reset")))))}));const Bb=Object(w.a)(Pd,{target:"ez9hsf46"})(vl,"{width:",ws(24),";}"),Hb=Object(w.a)(db,{target:"ez9hsf45"})("margin-left:",ws(-2),";width:5em;",xl,"{display:none;}"),Vb=Object(w.a)(zb,{target:"ez9hsf44"})("flex:1;",vd,"{margin-bottom:0;}"),Wb=`\n&&& ${gl} {\n\theight: 40px;\n}`,Ub=`\n.react-colorful__interactive {\n\twidth: calc( 100% - ${ws(2)} );\n\tmargin-left: ${ws(1)};\n}`,Kb=Object(w.a)("div",{target:"ez9hsf43"})("padding:",ws(2)," ",ws(4),";"),Gb=Object(w.a)("div",{target:"ez9hsf42"})("width:216px;.react-colorful{display:flex;flex-direction:column;align-items:center;width:216px;height:auto;}.react-colorful__saturation{width:100%;border-radius:0;height:216px;margin-bottom:",ws(4),";border-bottom:none;}.react-colorful__hue,.react-colorful__alpha{width:184px;height:16px;border-radius:16px;margin-bottom:",ws(2),";}.react-colorful__pointer{height:16px;width:16px;border:none;box-shadow:0 0 2px 0 rgba( 0, 0, 0, 0.25 );outline:2px solid transparent;}.react-colorful__pointer-fill{box-shadow:inset 0 0 0 ",Ks.borderWidthFocus," #fff;}",Ub," ",vd,"{margin-bottom:0;}",Wb,";"),$b=Object(w.a)(ld.a,{target:"ez9hsf41"})("&&&&&{min-width:",ws(6),";padding:0;}"),qb=Object(w.a)(Zu,{target:"ez9hsf40"})({name:"1287a6j",styles:"width:8em"});var Yb=n("uqqE"),Xb=n("reMF");function Zb(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Jb(e){return e instanceof Zb(e).Element||e instanceof Element}function Qb(e){return e instanceof Zb(e).HTMLElement||e instanceof HTMLElement}function eh(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Zb(e).ShadowRoot||e instanceof ShadowRoot)}var th=Math.max,nh=Math.min,rh=Math.round;function oh(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(Qb(e)&&t){var a=e.offsetHeight,i=e.offsetWidth;i>0&&(r=rh(n.width)/i||1),a>0&&(o=rh(n.height)/a||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function ah(e){var t=Zb(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ih(e){return e?(e.nodeName||"").toLowerCase():null}function ch(e){return((Jb(e)?e.ownerDocument:e.document)||window.document).documentElement}function sh(e){return oh(ch(e)).left+ah(e).scrollLeft}function lh(e){return Zb(e).getComputedStyle(e)}function uh(e){var t=lh(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function dh(e,t,n){void 0===n&&(n=!1);var r,o,a=Qb(t),i=Qb(t)&&function(e){var t=e.getBoundingClientRect(),n=rh(t.width)/e.offsetWidth||1,r=rh(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),c=ch(t),s=oh(e,i),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&(("body"!==ih(t)||uh(c))&&(l=(r=t)!==Zb(r)&&Qb(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:ah(r)),Qb(t)?((u=oh(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):c&&(u.x=sh(c))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function fh(e){var t=oh(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ph(e){return"html"===ih(e)?e:e.assignedSlot||e.parentNode||(eh(e)?e.host:null)||ch(e)}function bh(e,t){var n;void 0===t&&(t=[]);var r=function e(t){return["html","body","#document"].indexOf(ih(t))>=0?t.ownerDocument.body:Qb(t)&&uh(t)?t:e(ph(t))}(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=Zb(r),i=o?[a].concat(a.visualViewport||[],uh(r)?r:[]):r,c=t.concat(i);return o?c:c.concat(bh(ph(i)))}function hh(e){return["table","td","th"].indexOf(ih(e))>=0}function mh(e){return Qb(e)&&"fixed"!==lh(e).position?e.offsetParent:null}function vh(e){for(var t=Zb(e),n=mh(e);n&&hh(n)&&"static"===lh(n).position;)n=mh(n);return n&&("html"===ih(n)||"body"===ih(n)&&"static"===lh(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Qb(e)&&"fixed"===lh(e).position)return null;for(var n=ph(e);Qb(n)&&["html","body"].indexOf(ih(n))<0;){var r=lh(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var gh="top",yh="bottom",Oh="right",jh="left",wh=[gh,yh,Oh,jh],xh=wh.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),_h=[].concat(wh,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),Eh=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function kh(e){var t=new Map,n=new Set,r=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(o){n.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach((function(r){if(!n.has(r)){var o=t.get(r);o&&e(o)}})),r.push(o)}(e)})),r}var Sh={placement:"bottom",modifiers:[],strategy:"absolute"};function Ch(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Ph(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?Sh:o;return function(e,t,n){void 0===n&&(n=a);var o,i,c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Sh,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],l=!1,u={state:c,setOptions:function(n){var o="function"==typeof n?n(c.options):n;d(),c.options=Object.assign({},a,c.options,o),c.scrollParents={reference:Jb(e)?bh(e):e.contextElement?bh(e.contextElement):[],popper:bh(t)};var i=function(e){var t=kh(e);return Eh.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,c.options.modifiers)));return c.orderedModifiers=i.filter((function(e){return e.enabled})),c.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:c,name:t,instance:u,options:r});s.push(a||function(){})}})),u.update()},forceUpdate:function(){if(!l){var e=c.elements,t=e.reference,n=e.popper;if(Ch(t,n)){c.rects={reference:dh(t,vh(n),"fixed"===c.options.strategy),popper:fh(n)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach((function(e){return c.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<c.orderedModifiers.length;r++)if(!0!==c.reset){var o=c.orderedModifiers[r],a=o.fn,i=o.options,s=void 0===i?{}:i,d=o.name;"function"==typeof a&&(c=a({state:c,options:s,name:d,instance:u})||c)}else c.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(c)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){d(),l=!0}};if(!Ch(e,t))return u;function d(){s.forEach((function(e){return e()})),s=[]}return u.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var Th={passive:!0};function Mh(e){return e.split("-")[0]}function Dh(e){return e.split("-")[1]}function Ih(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Rh(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?Mh(o):null,i=o?Dh(o):null,c=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case gh:t={x:c,y:n.y-r.height};break;case yh:t={x:c,y:n.y+n.height};break;case Oh:t={x:n.x+n.width,y:s};break;case jh:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var l=a?Ih(a):null;if(null!=l){var u="y"===l?"height":"width";switch(i){case"start":t[l]=t[l]-(n[u]/2-r[u]/2);break;case"end":t[l]=t[l]+(n[u]/2-r[u]/2)}}return t}var Ah={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Nh(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,c=e.position,s=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=!0===u?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:rh(t*r)/r||0,y:rh(n*r)/r||0}}(i):"function"==typeof u?u(i):i,p=f.x,b=void 0===p?0:p,h=f.y,m=void 0===h?0:h,v=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),y=jh,O=gh,j=window;if(l){var w=vh(n),x="clientHeight",_="clientWidth";if(w===Zb(n)&&"static"!==lh(w=ch(n)).position&&"absolute"===c&&(x="scrollHeight",_="scrollWidth"),w=w,o===gh||(o===jh||o===Oh)&&"end"===a)O=yh,m-=(d&&j.visualViewport?j.visualViewport.height:w[x])-r.height,m*=s?1:-1;if(o===jh||(o===gh||o===yh)&&"end"===a)y=Oh,b-=(d&&j.visualViewport?j.visualViewport.width:w[_])-r.width,b*=s?1:-1}var E,k=Object.assign({position:c},l&&Ah);return s?Object.assign({},k,((E={})[O]=g?"0":"",E[y]=v?"0":"",E.transform=(j.devicePixelRatio||1)<=1?"translate("+b+"px, "+m+"px)":"translate3d("+b+"px, "+m+"px, 0)",E)):Object.assign({},k,((t={})[O]=g?m+"px":"",t[y]=v?b+"px":"",t.transform="",t))}var Lh={left:"right",right:"left",bottom:"top",top:"bottom"};function Fh(e){return e.replace(/left|right|bottom|top/g,(function(e){return Lh[e]}))}var zh={start:"end",end:"start"};function Bh(e){return e.replace(/start|end/g,(function(e){return zh[e]}))}function Hh(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&eh(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Vh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Wh(e,t){return"viewport"===t?Vh(function(e){var t=Zb(e),n=ch(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,i=0,c=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,c=r.offsetTop)),{width:o,height:a,x:i+sh(e),y:c}}(e)):Jb(t)?function(e){var t=oh(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Vh(function(e){var t,n=ch(e),r=ah(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=th(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=th(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+sh(e),s=-r.scrollTop;return"rtl"===lh(o||n).direction&&(c+=th(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:c,y:s}}(ch(e)))}function Uh(e,t,n){var r="clippingParents"===t?function(e){var t=bh(ph(e)),n=["absolute","fixed"].indexOf(lh(e).position)>=0,r=n&&Qb(e)?vh(e):e;return Jb(r)?t.filter((function(e){return Jb(e)&&Hh(e,r)&&"body"!==ih(e)&&(!n||"static"!==lh(e).position)})):[]}(e):[].concat(t),o=[].concat(r,[n]),a=o[0],i=o.reduce((function(t,n){var r=Wh(e,n);return t.top=th(r.top,t.top),t.right=nh(r.right,t.right),t.bottom=nh(r.bottom,t.bottom),t.left=th(r.left,t.left),t}),Wh(e,a));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Kh(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Gh(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function $h(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.boundary,i=void 0===a?"clippingParents":a,c=n.rootBoundary,s=void 0===c?"viewport":c,l=n.elementContext,u=void 0===l?"popper":l,d=n.altBoundary,f=void 0!==d&&d,p=n.padding,b=void 0===p?0:p,h=Kh("number"!=typeof b?b:Gh(b,wh)),m="popper"===u?"reference":"popper",v=e.rects.popper,g=e.elements[f?m:u],y=Uh(Jb(g)?g:g.contextElement||ch(e.elements.popper),i,s),O=oh(e.elements.reference),j=Rh({reference:O,element:v,strategy:"absolute",placement:o}),w=Vh(Object.assign({},v,j)),x="popper"===u?w:O,_={top:y.top-x.top+h.top,bottom:x.bottom-y.bottom+h.bottom,left:y.left-x.left+h.left,right:x.right-y.right+h.right},E=e.modifiersData.offset;if("popper"===u&&E){var k=E[o];Object.keys(_).forEach((function(e){var t=[Oh,yh].indexOf(e)>=0?1:-1,n=[gh,yh].indexOf(e)>=0?"y":"x";_[e]+=k[n]*t}))}return _}function qh(e,t,n){return th(e,nh(t,n))}function Yh(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Xh(e){return[gh,Oh,yh,jh].some((function(t){return e[t]>=0}))}var Zh=Ph({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,c=void 0===i||i,s=Zb(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach((function(e){e.addEventListener("scroll",n.update,Th)})),c&&s.addEventListener("resize",n.update,Th),function(){a&&l.forEach((function(e){e.removeEventListener("scroll",n.update,Th)})),c&&s.removeEventListener("resize",n.update,Th)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Rh({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,c=n.roundOffsets,s=void 0===c||c,l={placement:Mh(t.placement),variation:Dh(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Nh(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Nh(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Qb(o)&&ih(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Qb(r)&&ih(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=_h.reduce((function(e,n){return e[n]=function(e,t,n){var r=Mh(e),o=[jh,gh].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],c=a[1];return i=i||0,c=(c||0)*o,[jh,Oh].indexOf(r)>=0?{x:c,y:i}:{x:i,y:c}}(n,t.rects,a),e}),{}),c=i[t.placement],s=c.x,l=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=i}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,c=void 0===i||i,s=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,b=void 0===p||p,h=n.allowedAutoPlacements,m=t.options.placement,v=Mh(m),g=s||(v===m||!b?[Fh(m)]:function(e){if("auto"===Mh(e))return[];var t=Fh(e);return[Bh(e),t,Bh(t)]}(m)),y=[m].concat(g).reduce((function(e,n){return e.concat("auto"===Mh(n)?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,c=n.flipVariations,s=n.allowedAutoPlacements,l=void 0===s?_h:s,u=Dh(r),d=u?c?xh:xh.filter((function(e){return Dh(e)===u})):wh,f=d.filter((function(e){return l.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=$h(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[Mh(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:b,allowedAutoPlacements:h}):n)}),[]),O=t.rects.reference,j=t.rects.popper,w=new Map,x=!0,_=y[0],E=0;E<y.length;E++){var k=y[E],S=Mh(k),C="start"===Dh(k),P=[gh,yh].indexOf(S)>=0,T=P?"width":"height",M=$h(t,{placement:k,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),D=P?C?Oh:jh:C?yh:gh;O[T]>j[T]&&(D=Fh(D));var I=Fh(D),R=[];if(a&&R.push(M[S]<=0),c&&R.push(M[D]<=0,M[I]<=0),R.every((function(e){return e}))){_=k,x=!1;break}w.set(k,R)}if(x)for(var A=function(e){var t=y.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return _=t,"break"},N=b?3:1;N>0;N--){if("break"===A(N))break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,c=void 0!==i&&i,s=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,b=n.tetherOffset,h=void 0===b?0:b,m=$h(t,{boundary:s,rootBoundary:l,padding:d,altBoundary:u}),v=Mh(t.placement),g=Dh(t.placement),y=!g,O=Ih(v),j="x"===O?"y":"x",w=t.modifiersData.popperOffsets,x=t.rects.reference,_=t.rects.popper,E="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,k="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(w){if(a){var P,T="y"===O?gh:jh,M="y"===O?yh:Oh,D="y"===O?"height":"width",I=w[O],R=I+m[T],A=I-m[M],N=p?-_[D]/2:0,L="start"===g?x[D]:_[D],F="start"===g?-_[D]:-x[D],z=t.elements.arrow,B=p&&z?fh(z):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=H[T],W=H[M],U=qh(0,x[D],B[D]),K=y?x[D]/2-N-U-V-k.mainAxis:L-U-V-k.mainAxis,G=y?-x[D]/2+N+U+W+k.mainAxis:F+U+W+k.mainAxis,$=t.elements.arrow&&vh(t.elements.arrow),q=$?"y"===O?$.clientTop||0:$.clientLeft||0:0,Y=null!=(P=null==S?void 0:S[O])?P:0,X=I+G-Y,Z=qh(p?nh(R,I+K-Y-q):R,I,p?th(A,X):A);w[O]=Z,C[O]=Z-I}if(c){var J,Q="x"===O?gh:jh,ee="x"===O?yh:Oh,te=w[j],ne="y"===j?"height":"width",re=te+m[Q],oe=te-m[ee],ae=-1!==[gh,jh].indexOf(v),ie=null!=(J=null==S?void 0:S[j])?J:0,ce=ae?re:te-x[ne]-_[ne]-ie+k.altAxis,se=ae?te+x[ne]+_[ne]-ie-k.altAxis:oe,le=p&&ae?function(e,t,n){var r=qh(e,t,n);return r>n?n:r}(ce,te,se):qh(p?ce:re,te,p?se:oe);w[j]=le,C[j]=le-te}t.modifiersData[r]=C}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,c=Mh(n.placement),s=Ih(c),l=[jh,Oh].indexOf(c)>=0?"height":"width";if(a&&i){var u=function(e,t){return Kh("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Gh(e,wh))}(o.padding,n),d=fh(a),f="y"===s?gh:jh,p="y"===s?yh:Oh,b=n.rects.reference[l]+n.rects.reference[s]-i[s]-n.rects.popper[l],h=i[s]-n.rects.reference[s],m=vh(a),v=m?"y"===s?m.clientHeight||0:m.clientWidth||0:0,g=b/2-h/2,y=u[f],O=v-d[l]-u[p],j=v/2-d[l]/2+g,w=qh(y,j,O),x=s;n.modifiersData[r]=((t={})[x]=w,t.centerOffset=w-j,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Hh(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=$h(t,{elementContext:"reference"}),c=$h(t,{altBoundary:!0}),s=Yh(i,r),l=Yh(c,o,a),u=Xh(s),d=Xh(l);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});function Jh(e){void 0===e&&(e={});var t,n,r=Z(e),o=r.visible,a=void 0!==o&&o,i=r.animated,c=void 0!==i&&i,s=ie(Object($.a)(r,["visible","animated"])),l=Object(q.useState)(a),u=l[0],d=l[1],f=Object(q.useState)(c),p=f[0],b=f[1],h=Object(q.useState)(!1),m=h[0],v=h[1],g=(t=u,n=Object(q.useRef)(null),Object(X.a)((function(){n.current=t}),[t]),n),y=null!=g.current&&g.current!==u;p&&!m&&y&&v(!0),Object(q.useEffect)((function(){if("number"==typeof p&&m){var e=setTimeout((function(){return v(!1)}),p);return function(){clearTimeout(e)}}return function(){}}),[p,m]);var O=Object(q.useCallback)((function(){return d(!0)}),[]),j=Object(q.useCallback)((function(){return d(!1)}),[]),w=Object(q.useCallback)((function(){return d((function(e){return!e}))}),[]),x=Object(q.useCallback)((function(){return v(!1)}),[]);return Object($.b)(Object($.b)({},s),{},{visible:u,animated:p,animating:m,show:O,hide:j,toggle:w,setVisible:d,setAnimated:b,stopAnimation:x})}var Qh=Object(Xb.a)("Mac")&&!Object(Xb.a)("Chrome")&&Object(Xb.a)("Safari");function em(e){return function(t){return e&&!Object(Yb.a)(t,e)?e:t}}function tm(e){void 0===e&&(e={});var t=Z(e),n=t.gutter,r=void 0===n?12:n,o=t.placement,a=void 0===o?"bottom":o,i=t.unstable_flip,c=void 0===i||i,s=t.unstable_offset,l=t.unstable_preventOverflow,u=void 0===l||l,d=t.unstable_fixed,f=void 0!==d&&d,p=t.modal,b=void 0!==p&&p,h=Object($.a)(t,["gutter","placement","unstable_flip","unstable_offset","unstable_preventOverflow","unstable_fixed","modal"]),m=Object(q.useRef)(null),v=Object(q.useRef)(null),g=Object(q.useRef)(null),y=Object(q.useRef)(null),O=Object(q.useState)(a),j=O[0],w=O[1],x=Object(q.useState)(a),_=x[0],E=x[1],k=Object(q.useState)(s||[0,r])[0],S=Object(q.useState)({position:"fixed",left:"100%",top:"100%"}),C=S[0],P=S[1],T=Object(q.useState)({}),M=T[0],D=T[1],I=function(e){void 0===e&&(e={});var t=Z(e),n=t.modal,r=void 0===n||n,o=Jh(Object($.a)(t,["modal"])),a=Object(q.useState)(r),i=a[0],c=a[1],s=Object(q.useRef)(null);return Object($.b)(Object($.b)({},o),{},{modal:i,setModal:c,unstable_disclosureRef:s})}(Object($.b)({modal:b},h)),R=Object(q.useCallback)((function(){return!!m.current&&(m.current.forceUpdate(),!0)}),[]),A=Object(q.useCallback)((function(e){e.placement&&E(e.placement),e.styles&&(P(em(e.styles.popper)),y.current&&D(em(e.styles.arrow)))}),[]);return Object(X.a)((function(){return v.current&&g.current&&(m.current=Zh(v.current,g.current,{placement:j,strategy:f?"fixed":"absolute",onFirstUpdate:Qh?A:void 0,modifiers:[{name:"eventListeners",enabled:I.visible},{name:"applyStyles",enabled:!1},{name:"flip",enabled:c,options:{padding:8}},{name:"offset",options:{offset:k}},{name:"preventOverflow",enabled:u,options:{tetherOffset:function(){var e;return(null===(e=y.current)||void 0===e?void 0:e.clientWidth)||0}}},{name:"arrow",enabled:!!y.current,options:{element:y.current}},{name:"updateState",phase:"write",requires:["computeStyles"],enabled:I.visible&&!0,fn:function(e){var t=e.state;return A(t)}}]})),function(){m.current&&(m.current.destroy(),m.current=null)}}),[j,f,I.visible,c,k,u]),Object(q.useEffect)((function(){if(I.visible){var e=window.requestAnimationFrame((function(){var e;null===(e=m.current)||void 0===e||e.forceUpdate()}));return function(){window.cancelAnimationFrame(e)}}}),[I.visible]),Object($.b)(Object($.b)({},I),{},{unstable_referenceRef:v,unstable_popoverRef:g,unstable_arrowRef:y,unstable_popoverStyles:C,unstable_arrowStyles:M,unstable_update:R,unstable_originalPlacement:j,placement:_,place:w})}var nm={currentTooltipId:null,listeners:new Set,subscribe:function(e){var t=this;return this.listeners.add(e),function(){t.listeners.delete(e)}},show:function(e){this.currentTooltipId=e,this.listeners.forEach((function(t){return t(e)}))},hide:function(e){this.currentTooltipId===e&&(this.currentTooltipId=null,this.listeners.forEach((function(e){return e(null)})))}};var rm=["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation","unstable_disclosureRef","unstable_referenceRef","unstable_popoverRef","unstable_arrowRef","unstable_popoverStyles","unstable_arrowStyles","unstable_originalPlacement","unstable_update","placement","place","unstable_timeout","unstable_setTimeout"],om=[].concat(rm,["unstable_portal"]),am=rm,im=Object(_e.a)({name:"TooltipReference",compose:Ce.a,keys:am,useProps:function(e,t){var n=t.ref,r=t.onFocus,o=t.onBlur,a=t.onMouseEnter,i=t.onMouseLeave,c=Object($.a)(t,["ref","onFocus","onBlur","onMouseEnter","onMouseLeave"]),s=Object(ke.a)(r),l=Object(ke.a)(o),u=Object(ke.a)(a),d=Object(ke.a)(i),f=Object(q.useCallback)((function(t){var n,r;null===(n=s.current)||void 0===n||n.call(s,t),t.defaultPrevented||null===(r=e.show)||void 0===r||r.call(e)}),[e.show]),p=Object(q.useCallback)((function(t){var n,r;null===(n=l.current)||void 0===n||n.call(l,t),t.defaultPrevented||null===(r=e.hide)||void 0===r||r.call(e)}),[e.hide]),b=Object(q.useCallback)((function(t){var n,r;null===(n=u.current)||void 0===n||n.call(u,t),t.defaultPrevented||null===(r=e.show)||void 0===r||r.call(e)}),[e.show]),h=Object(q.useCallback)((function(t){var n,r;null===(n=d.current)||void 0===n||n.call(d,t),t.defaultPrevented||null===(r=e.hide)||void 0===r||r.call(e)}),[e.hide]);return Object($.b)({ref:Object(Ee.a)(e.unstable_referenceRef,n),tabIndex:0,onFocus:f,onBlur:p,onMouseEnter:b,onMouseLeave:h,"aria-describedby":e.baseId},c)}}),cm=Object(xe.a)({as:"div",useHook:im});const sm=Object(s.createContext)({});var lm=["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation"],um=lm,dm=Object(_e.a)({name:"DisclosureContent",compose:Ce.a,keys:um,useProps:function(e,t){var n=t.onTransitionEnd,r=t.onAnimationEnd,o=t.style,a=Object($.a)(t,["onTransitionEnd","onAnimationEnd","style"]),i=e.animated&&e.animating,c=Object(q.useState)(null),s=c[0],l=c[1],u=!e.visible&&!i,d=u?Object($.b)({display:"none"},o):o,f=Object(ke.a)(n),p=Object(ke.a)(r),b=Object(q.useRef)(0);Object(q.useEffect)((function(){if(e.animated)return b.current=window.requestAnimationFrame((function(){b.current=window.requestAnimationFrame((function(){e.visible?l("enter"):l(i?"leave":null)}))})),function(){return window.cancelAnimationFrame(b.current)}}),[e.animated,e.visible,i]);var h=Object(q.useCallback)((function(t){var n;Object(Se.a)(t)&&(i&&!0===e.animated&&(null===(n=e.stopAnimation)||void 0===n||n.call(e)))}),[e.animated,i,e.stopAnimation]),m=Object(q.useCallback)((function(e){var t;null===(t=f.current)||void 0===t||t.call(f,e),h(e)}),[h]),v=Object(q.useCallback)((function(e){var t;null===(t=p.current)||void 0===t||t.call(p,e),h(e)}),[h]);return Object($.b)({id:e.baseId,"data-enter":"enter"===s?"":void 0,"data-leave":"leave"===s?"":void 0,onTransitionEnd:m,onAnimationEnd:v,hidden:u,style:d},a)}}),fm=Object(xe.a)({as:"div",useHook:dm}),pm=n("faye");function bm(){return Le.a?document.body:null}var hm=Object(q.createContext)(bm());function mm(e){var t=e.children,n=Object(q.useContext)(hm)||bm(),r=Object(q.useState)((function(){if(Le.a){var e=document.createElement("div");return e.className=mm.__className,e}return null}))[0];return Object(X.a)((function(){if(r&&n)return n.appendChild(r),function(){n.removeChild(r)}}),[r,n]),r?Object(pm.createPortal)(Object(q.createElement)(hm.Provider,{value:r},t),r):null}function vm(e){e.defaultPrevented||"Escape"===e.key&&nm.show(null)}mm.__className="__reakit-portal",mm.__selector="."+mm.__className;var gm=Object(_e.a)({name:"Tooltip",compose:dm,keys:om,useOptions:function(e){var t=e.unstable_portal,n=void 0===t||t,r=Object($.a)(e,["unstable_portal"]);return Object($.b)({unstable_portal:n},r)},useProps:function(e,t){var n=t.ref,r=t.style,o=t.wrapElement,a=Object($.a)(t,["ref","style","wrapElement"]);Object(q.useEffect)((function(){var t;Object(J.a)(null===(t=e.unstable_popoverRef)||void 0===t?void 0:t.current).addEventListener("keydown",vm)}),[]);var i=Object(q.useCallback)((function(t){return e.unstable_portal&&(t=Object(q.createElement)(mm,null,t)),o?o(t):t}),[e.unstable_portal,o]);return Object($.b)({ref:Object(Ee.a)(e.unstable_popoverRef,n),role:"tooltip",style:Object($.b)(Object($.b)({},e.unstable_popoverStyles),{},{pointerEvents:"none"},r),wrapElement:i},a)}}),ym=Object(xe.a)({as:"div",memo:!0,useHook:gm});var Om=Object(os.a)((function(e,t){const{as:n="span",shortcut:r,className:o,...a}=Object(is.a)(e,"Shortcut");if(!r)return null;let i,l;return"string"==typeof r?i=r:(i=r.display,l=r.ariaLabel),Object(s.createElement)(as.a,Object(c.a)({as:n,className:o,"aria-label":l,ref:t},a),i)}),"Shortcut");const jm=Object(x.a)("z-index:",1000002,";box-sizing:border-box;opacity:0;outline:none;transform-origin:top center;transition:opacity ",Ks.transitionDurationFastest," ease;&[data-enter]{opacity:1;}",""),wm=Object(w.a)("div",{target:"e7tfjmw1"})("background:rgba( 0, 0, 0, 0.8 );border-radius:2px;box-shadow:0 0 0 1px rgba( 255, 255, 255, 0.04 );color:",L.white,";padding:4px 8px;"),xm={name:"12mkfdx",styles:"outline:none"},_m=Object(w.a)(Om,{target:"e7tfjmw0"})("display:inline-block;margin-left:",ws(1),";"),{TooltipPopoverView:Em}=o;var km=Object(os.a)((function(e,t){const{children:n,className:r,...o}=Object(is.a)(e,"TooltipContent"),{tooltip:a}=Object(s.useContext)(sm),i=Object(ps.a)()(jm,r);return Object(s.createElement)(ym,Object(c.a)({as:as.a},o,a,{className:i,ref:t}),Object(s.createElement)(Em,null,n))}),"TooltipContent");var Sm=Object(os.a)((function(e,t){const{animated:n=!0,animationDuration:r=160,baseId:o,children:a,content:i,focusable:l=!0,gutter:u=4,id:d,modal:f=!0,placement:p,visible:b=!1,shortcut:h,...m}=Object(is.a)(e,"Tooltip"),v=function(e){void 0===e&&(e={});var t=Z(e),n=t.placement,r=void 0===n?"top":n,o=t.unstable_timeout,a=void 0===o?0:o,i=Object($.a)(t,["placement","unstable_timeout"]),c=Object(q.useState)(a),s=c[0],l=c[1],u=Object(q.useRef)(null),d=Object(q.useRef)(null),f=tm(Object($.b)(Object($.b)({},i),{},{placement:r})),p=(f.modal,f.setModal,Object($.a)(f,["modal","setModal"])),b=Object(q.useCallback)((function(){null!==u.current&&window.clearTimeout(u.current),null!==d.current&&window.clearTimeout(d.current)}),[]),h=Object(q.useCallback)((function(){b(),p.hide(),d.current=window.setTimeout((function(){nm.hide(p.baseId)}),s)}),[b,p.hide,s,p.baseId]),m=Object(q.useCallback)((function(){b(),!s||nm.currentTooltipId?(nm.show(p.baseId),p.show()):(nm.show(null),u.current=window.setTimeout((function(){nm.show(p.baseId),p.show()}),s))}),[b,s,p.show,p.baseId]);return Object(q.useEffect)((function(){return nm.subscribe((function(e){e!==p.baseId&&(b(),p.visible&&p.hide())}))}),[p.baseId,b,p.visible,p.hide]),Object(q.useEffect)((function(){return function(){b(),nm.hide(p.baseId)}}),[b,p.baseId]),Object($.b)(Object($.b)({},p),{},{hide:h,show:m,unstable_timeout:s,unstable_setTimeout:l})}({animated:n?r:void 0,baseId:o||d,gutter:u,placement:p,visible:b,...m}),g=Object(s.useMemo)(()=>({tooltip:v}),[v]);return Object(s.createElement)(sm.Provider,{value:g},i&&Object(s.createElement)(km,{unstable_portal:f,ref:t},i,h&&Object(s.createElement)(_m,{shortcut:h})),a&&Object(s.createElement)(cm,Object(c.a)({},v,a.props,{ref:null==a?void 0:a.ref}),e=>(l||(e.tabIndex=void 0),Object(s.cloneElement)(a,e))))}),"Tooltip");const Cm=e=>{let{values:t}=e;return Object(s.createElement)(s.Fragment,null,t.map(e=>{let[t,n]=e;return Object(s.createElement)(ms,{key:n,isBlock:!0,display:"flex"},Object(s.createElement)(cl,{color:"blue"},n),Object(s.createElement)(cl,null,t))}))},Pm=e=>{let{color:t,enableAlpha:n}=e;const{h:r,s:o,l:a,a:i}=t.toHsl(),c=[[Math.floor(r),"H"],[Math.round(100*o),"S"],[Math.round(100*a),"L"]];return n&&c.push([Math.round(100*i),"A"]),Object(s.createElement)(Cm,{values:c})},Tm=e=>{let{color:t,enableAlpha:n}=e;const{r:r,g:o,b:a,a:i}=t.toRgb(),c=[[r,"R"],[o,"G"],[a,"B"]];return n&&c.push([Math.round(100*i),"A"]),Object(s.createElement)(Cm,{values:c})},Mm=e=>{let{color:t}=e;const n=t.toHex().slice(1).toUpperCase();return Object(s.createElement)(ms,null,Object(s.createElement)(cl,{color:"blue"},"#"),Object(s.createElement)(cl,null,n))},Dm=e=>{let{color:t,colorType:n,enableAlpha:r}=e;const[o,a]=Object(s.useState)(null),i=Object(s.useRef)(),c={color:t,enableAlpha:r},l=(e=>{switch(e){case"hsl":return Pm;case"rgb":return Tm;default:case"hex":return Mm}})(n),u=Object(p.useCopyToClipboard)(()=>{switch(n){case"hsl":return t.toHslString();case"rgb":return t.toRgbString();default:case"hex":return t.toHex()}},()=>{i.current&&clearTimeout(i.current),a(t.toHex()),i.current=setTimeout(()=>{a(null),i.current=void 0},3e3)});return Object(s.useEffect)(()=>()=>{i.current&&clearTimeout(i.current)},[]),Object(s.createElement)(Sm,{content:Object(s.createElement)(cl,{color:"white"},o===t.toHex()?Object(f.__)("Copied!"):Object(f.__)("Copy"))},Object(s.createElement)(Ms,{justify:"flex-start",gap:ws(1),ref:u,style:{height:30}},Object(s.createElement)(l,c)))},Im=e=>{let{min:t,max:n,label:r,abbreviation:o,onChange:a,value:i}=e;return Object(s.createElement)(od,{as:ib,spacing:4},Object(s.createElement)(Bb,{min:t,max:n,label:r,hideLabelFromVision:!0,value:i,onChange:a,prefix:Object(s.createElement)(od,{as:cl,paddingLeft:ws(3.5),color:"blue",lineHeight:1},o),hideHTMLArrows:!0}),Object(s.createElement)(Vb,{label:r,hideLabelFromVision:!0,min:t,max:n,value:i,onChange:a,withInputField:!1}))},Rm=e=>{let{color:t,onChange:n,enableAlpha:r}=e;const{r:o,g:a,b:i,a:c}=t.toRgb();return Object(s.createElement)(s.Fragment,null,Object(s.createElement)(Im,{min:0,max:255,label:"Red",abbreviation:"R",value:o,onChange:e=>n(Object(_.a)({r:e,g:a,b:i,a:c}))}),Object(s.createElement)(Im,{min:0,max:255,label:"Green",abbreviation:"G",value:a,onChange:e=>n(Object(_.a)({r:o,g:e,b:i,a:c}))}),Object(s.createElement)(Im,{min:0,max:255,label:"Blue",abbreviation:"B",value:i,onChange:e=>n(Object(_.a)({r:o,g:a,b:e,a:c}))}),r&&Object(s.createElement)(Im,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*c),onChange:e=>n(Object(_.a)({r:o,g:a,b:i,a:e/100}))}))},Am=e=>{let{color:t,onChange:n,enableAlpha:r}=e;const{h:o,s:a,l:i,a:c}=t.toHsl();return Object(s.createElement)(s.Fragment,null,Object(s.createElement)(Im,{min:0,max:359,label:"Hue",abbreviation:"H",value:o,onChange:e=>{n(Object(_.a)({h:e,s:a,l:i,a:c}))}}),Object(s.createElement)(Im,{min:0,max:100,label:"Saturation",abbreviation:"S",value:a,onChange:e=>{n(Object(_.a)({h:o,s:e,l:i,a:c}))}}),Object(s.createElement)(Im,{min:0,max:100,label:"Lightness",abbreviation:"L",value:i,onChange:e=>{n(Object(_.a)({h:o,s:a,l:e,a:c}))}}),r&&Object(s.createElement)(Im,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*c),onChange:e=>{n(Object(_.a)({h:o,s:a,l:i,a:e/100}))}}))},Nm=e=>{let{color:t,onChange:n,enableAlpha:r}=e;return Object(s.createElement)(qb,{prefix:Object(s.createElement)(od,{as:cl,marginLeft:ws(3.5),color:"blue",lineHeight:1},"#"),value:t.toHex().slice(1).toUpperCase(),onChange:e=>{n(Object(_.a)("#"+e))},onValidate:e=>{if(!Object(_.a)("#"+e).isValid())throw new Error("Invalid hex color input")},maxLength:r?8:6,label:Object(f.__)("Hex color"),hideLabelFromVision:!0})},Lm=e=>{let{colorType:t,color:n,onChange:r,enableAlpha:o}=e;const a={color:n,onChange:r,enableAlpha:o};switch(t){case"hsl":return Object(s.createElement)(Am,a);case"rgb":return Object(s.createElement)(Rm,a);default:case"hex":return Object(s.createElement)(Nm,a)}};function Fm(){return(Fm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function zm(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}function Bm(e){var t=Object(q.useRef)(e),n=Object(q.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var Hm=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},Vm=function(e){return"touches"in e},Wm=function(e){return e&&e.ownerDocument.defaultView||self},Um=function(e,t,n){var r=e.getBoundingClientRect(),o=Vm(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:Hm((o.pageX-(r.left+Wm(e).pageXOffset))/r.width),top:Hm((o.pageY-(r.top+Wm(e).pageYOffset))/r.height)}},Km=function(e){!Vm(e)&&e.preventDefault()},Gm=Y.a.memo((function(e){var t=e.onMove,n=e.onKey,r=zm(e,["onMove","onKey"]),o=Object(q.useRef)(null),a=Bm(t),i=Bm(n),c=Object(q.useRef)(null),s=Object(q.useRef)(!1),l=Object(q.useMemo)((function(){var e=function(e){Km(e),(Vm(e)?e.touches.length>0:e.buttons>0)&&o.current?a(Um(o.current,e,c.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=s.current,a=Wm(o.current),i=n?a.addEventListener:a.removeEventListener;i(r?"touchmove":"mousemove",e),i(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=o.current;if(r&&(Km(t),!function(e,t){return t&&!Vm(e)}(t,s.current)&&r)){if(Vm(t)){s.current=!0;var i=t.changedTouches||[];i.length&&(c.current=i[0].identifier)}r.focus(),a(Um(r,t,c.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),i({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},n]}),[i,a]),u=l[0],d=l[1],f=l[2];return Object(q.useEffect)((function(){return f}),[f]),Y.a.createElement("div",Fm({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))})),$m=function(e){return e.filter(Boolean).join(" ")},qm=function(e){var t=e.color,n=e.left,r=e.top,o=void 0===r?.5:r,a=$m(["react-colorful__pointer",e.className]);return Y.a.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},Y.a.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},Ym=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},Xm=(Math.PI,function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:Ym(e.h),s:Ym(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:Ym(o/2),a:Ym(r,2)}}),Zm=function(e){var t=Xm(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Jm=function(e){var t=Xm(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Qm=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),i=r*(1-n),c=r*(1-(t-a)*n),s=r*(1-(1-t+a)*n),l=a%6;return{r:Ym(255*[r,c,i,i,s,r][l]),g:Ym(255*[s,r,r,c,i,i][l]),b:Ym(255*[i,i,s,r,r,c][l]),a:Ym(o,2)}},ev=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?nv({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},tv=ev,nv=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),i=a-Math.min(t,n,r),c=i?a===t?(n-r)/i:a===n?2+(r-t)/i:4+(t-n)/i:0;return{h:Ym(60*(c<0?c+6:c)),s:Ym(a?i/a*100:0),v:Ym(a/255*100),a:o}},rv=Y.a.memo((function(e){var t=e.hue,n=e.onChange,r=$m(["react-colorful__hue",e.className]);return Y.a.createElement("div",{className:r},Y.a.createElement(Gm,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:Hm(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuetext":Ym(t)},Y.a.createElement(qm,{className:"react-colorful__hue-pointer",left:t/360,color:Zm({h:t,s:100,v:100,a:1})})))})),ov=Y.a.memo((function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:Zm({h:t.h,s:100,v:100,a:1})};return Y.a.createElement("div",{className:"react-colorful__saturation",style:r},Y.a.createElement(Gm,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:Hm(t.s+100*e.left,0,100),v:Hm(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Ym(t.s)+"%, Brightness "+Ym(t.v)+"%"},Y.a.createElement(qm,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Zm(t)})))})),av=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},iv=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function cv(e,t,n){var r=Bm(n),o=Object(q.useState)((function(){return e.toHsva(t)})),a=o[0],i=o[1],c=Object(q.useRef)({color:t,hsva:a});Object(q.useEffect)((function(){if(!e.equal(t,c.current.color)){var n=e.toHsva(t);c.current={hsva:n,color:t},i(n)}}),[t,e]),Object(q.useEffect)((function(){var t;av(a,c.current.hsva)||e.equal(t=e.fromHsva(a),c.current.color)||(c.current={hsva:a,color:t},r(t))}),[a,e,r]);var s=Object(q.useCallback)((function(e){i((function(t){return Object.assign({},t,e)}))}),[]);return[a,s]}var sv,lv="undefined"!=typeof window?q.useLayoutEffect:q.useEffect,uv=new Map,dv=function(e){lv((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!uv.has(t)){var r=t.createElement("style");r.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',uv.set(t,r);var o=sv||n.nc;o&&r.setAttribute("nonce",o),t.head.appendChild(r)}}),[])},fv=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,a=e.onChange,i=zm(e,["className","colorModel","color","onChange"]),c=Object(q.useRef)(null);dv(c);var s=cv(n,o,a),l=s[0],u=s[1],d=$m(["react-colorful",t]);return Y.a.createElement("div",Fm({},i,{ref:c,className:d}),Y.a.createElement(ov,{hsva:l,onChange:u}),Y.a.createElement(rv,{hue:l.h,onChange:u,className:"react-colorful__last-control"}))},pv=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+Jm(Object.assign({},n,{a:0}))+", "+Jm(Object.assign({},n,{a:1}))+")"},a=$m(["react-colorful__alpha",t]);return Y.a.createElement("div",{className:a},Y.a.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),Y.a.createElement(Gm,{onMove:function(e){r({a:e.left})},onKey:function(e){r({a:Hm(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":Ym(100*n.a)+"%"},Y.a.createElement(qm,{className:"react-colorful__alpha-pointer",left:n.a,color:Jm(n)})))},bv=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,a=e.onChange,i=zm(e,["className","colorModel","color","onChange"]),c=Object(q.useRef)(null);dv(c);var s=cv(n,o,a),l=s[0],u=s[1],d=$m(["react-colorful",t]);return Y.a.createElement("div",Fm({},i,{ref:c,className:d}),Y.a.createElement(ov,{hsva:l,onChange:u}),Y.a.createElement(rv,{hue:l.h,onChange:u}),Y.a.createElement(pv,{hsva:l,onChange:u,className:"react-colorful__last-control"}))},hv={defaultColor:"rgba(0, 0, 0, 1)",toHsva:ev,fromHsva:function(e){var t=Qm(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:iv},mv=function(e){return Y.a.createElement(bv,Fm({},e,{colorModel:hv}))},vv={defaultColor:"rgb(0, 0, 0)",toHsva:tv,fromHsva:function(e){var t=Qm(e);return"rgb("+t.r+", "+t.g+", "+t.b+")"},equal:iv},gv=function(e){return Y.a.createElement(fv,Fm({},e,{colorModel:vv}))};const yv=e=>{let{color:t,enableAlpha:n,onChange:r}=e;const o=n?mv:gv,a=Object(s.useMemo)(()=>t.toRgbString(),[t]);return Object(s.createElement)(o,{color:a,onChange:e=>{r(Object(_.a)(e))}})};Object(_.b)([E.a]);const Ov=[{label:"RGB",value:"rgb"},{label:"HSL",value:"hsl"},{label:"Hex",value:"hex"}];var jv=Object(os.a)((e,t)=>{const{enableAlpha:n=!1,color:r,onChange:o,defaultValue:a="#fff",copyFormat:i,...l}=Object(is.a)(e,"ColorPicker"),u=Object(s.useMemo)(()=>r?Object(_.a)(r):Object(_.a)(a),[r,a]),d=Object(q.useCallback)(e=>{o(e.toHex())},[o]),[p,b]=Object(s.useState)(!1),[h,m]=Object(s.useState)(i||"hex");return Object(s.createElement)(Gb,Object(c.a)({ref:t},l),Object(s.createElement)(yv,{onChange:d,color:u,enableAlpha:n}),Object(s.createElement)(Kb,null,Object(s.createElement)(ib,{justify:"space-between"},p?Object(s.createElement)(Hb,{options:Ov,value:h,onChange:e=>m(e),label:Object(f.__)("Color format"),hideLabelFromVision:!0}):Object(s.createElement)(Dm,{color:u,colorType:i||h,enableAlpha:n}),Object(s.createElement)($b,{isSmall:!0,onClick:()=>b(!p),icon:tb.a,isPressed:p,label:p?Object(f.__)("Hide detailed inputs"):Object(f.__)("Show detailed inputs")})),Object(s.createElement)(od,{margin:4}),p&&Object(s.createElement)(Lm,{colorType:h,color:u,onChange:d,enableAlpha:n})))},"ColorPicker");function wv(e){var t;return void 0!==e.onChangeComplete||void 0!==e.disableAlpha||"string"==typeof(null===(t=e.color)||void 0===t?void 0:t.hex)}const xv=zs()(e=>{const t=Object(_.a)(e),n=t.toHex(),r=t.toRgb(),o=t.toHsv(),a=t.toHsl();return{hex:n,rgb:r,hsv:o,hsl:a,source:"hex",oldHue:a.h}});const _v=e=>Object(s.createElement)(jv,function(e){const t=Object(s.useCallback)(t=>{var n;return wv(e)?e.onChangeComplete(xv(t)):null===(n=e.onChange)||void 0===n?void 0:n.call(e,t)},[e.onChangeComplete,e.onChange]),n=Object(s.useMemo)(()=>wv(e)?function(e){if(void 0!==(null==e?void 0:e.color))return"string"==typeof e.color?e.color:e.color.hex?e.color.hex:void 0}(e):e.color,[e.color]),r=Object(s.useMemo)(()=>wv(e)?!e.disableAlpha:e.enableAlpha,[e.disableAlpha,e.enableAlpha]);return{...wv(e)?{}:e,onChange:t,color:n,enableAlpha:r}}(e));const Ev=Object(x.a)("appearance:none;border:1px solid transparent;cursor:pointer;background:none;text-align:left;&:hover{color:",L.admin.theme,";}&:focus{background-color:transparent;color:",L.admin.theme,";border-color:",L.admin.theme,";outline:3px solid transparent;}",""),kv={name:"1bcj5ek",styles:"width:100%;display:block"},Sv={name:"5vij5u",styles:"width:100%;display:block;margin:0"},Cv=Object(x.a)("border:1px solid ",Ks.surfaceBorderColor,";",""),Pv=Object(x.a)(">*:not( marquee )>*{border-bottom:1px solid ",Ks.surfaceBorderColor,";}>*:last-of-type>*:not( :focus ){border-bottom-color:transparent;}",""),Tv=Ks.controlBorderRadius,Mv=Object(x.a)("border-radius:",Tv,";",""),Dv=Object(x.a)("border-radius:",Tv,";>*:first-of-type>*{border-top-left-radius:",Tv,";border-top-right-radius:",Tv,";}>*:last-of-type>*{border-bottom-left-radius:",Tv,";border-bottom-right-radius:",Tv,";}",""),Iv=`calc(${Ks.fontSize} * ${Ks.fontLineHeightBase})`,Rv=`calc((${Ks.controlHeight} - ${Iv} - 2px) / 2)`,Av=`calc((${Ks.controlHeightSmall} - ${Iv} - 2px) / 2)`,Nv=`calc((${Ks.controlHeightLarge} - ${Iv} - 2px) / 2)`,Lv={small:Object(x.a)("padding:",Av," ",Ks.controlPaddingXSmall,";",""),medium:Object(x.a)("padding:",Rv," ",Ks.controlPaddingX,";",""),large:Object(x.a)("padding:",Nv," ",Ks.controlPaddingXLarge,";","")};const Fv=Object(s.createContext)({size:"medium"}),zv=()=>Object(s.useContext)(Fv);var Bv=Object(os.a)((function(e,t){const{isBordered:n,isSeparated:r,size:o,...a}=function(e){const{className:t,isBordered:n=!1,isRounded:r=!0,isSeparated:o=!1,role:a="list",...i}=Object(is.a)(e,"ItemGroup");return{isBordered:n,className:Object(ps.a)()(n&&Cv,o&&Pv,r&&Dv,t),role:a,isSeparated:o,...i}}(e),{size:i}=zv(),l={spacedAround:!n&&!r,size:o||i};return Object(s.createElement)(Fv.Provider,{value:l},Object(s.createElement)(as.a,Object(c.a)({},a,{ref:t})))}),"ItemGroup");var Hv=Object(os.a)((function(e,t){const n=function(e){const{expanded:t=!1,...n}=Object(is.a)(e,"VStack");return ab({direction:"column",expanded:t,...n})}(e);return Object(s.createElement)(as.a,Object(c.a)({},n,{ref:t}))}),"VStack");function Vv(e){var t;let{renderContent:n,renderToggle:r,position:o="bottom right",className:a,contentClassName:i,expandOnMobile:l,headerTitle:u,focusOnMount:f,popoverProps:p,onClose:b,onToggle:h}=e;const m=Object(s.useRef)(),[v,g]=function(e,t){const[n,r]=Object(s.useState)(e);return[n,e=>{r(e),t&&t(e)}]}(!1,h);function y(){b&&b(),g(!1)}Object(s.useEffect)(()=>()=>{h&&h(!1)},[]);const O={isOpen:v,onToggle:function(){g(!v)},onClose:y};return Object(s.createElement)("div",{className:d()("components-dropdown",a),ref:m,tabIndex:"-1"},r(O),v&&Object(s.createElement)(ud.a,Object(c.a)({position:o,onClose:y,onFocusOutside:function(){const{ownerDocument:e}=m.current,t=e.activeElement.closest('[role="dialog"]');m.current.contains(e.activeElement)||t&&!t.contains(m.current)||y()},expandOnMobile:l,headerTitle:u,focusOnMount:f},p,{anchorRef:null!==(t=null==p?void 0:p.anchorRef)&&void 0!==t?t:m.current,className:d()("components-dropdown__content",p?p.className:void 0,i)}),n(O)))}function Wv(e){let{actions:t,className:n,options:r,children:o}=e;return Object(s.createElement)("div",{className:d()("components-circular-option-picker",n)},Object(s.createElement)("div",{className:"components-circular-option-picker__swatches"},r),o,t&&Object(s.createElement)("div",{className:"components-circular-option-picker__custom-clear-wrapper"},t))}Wv.Option=function(e){let{className:t,isSelected:n,selectedIconProps:r,tooltipText:o,...a}=e;const i=Object(s.createElement)(ld.a,Object(c.a)({isPressed:n,className:"components-circular-option-picker__option"},a));return Object(s.createElement)("div",{className:d()(t,"components-circular-option-picker__option-wrapper")},o?Object(s.createElement)(h.a,{text:o},i):i,n&&Object(s.createElement)(qp.a,Object(c.a)({icon:Yp.a},r||{})))},Wv.ButtonAction=function(e){let{className:t,children:n,...r}=e;return Object(s.createElement)(ld.a,Object(c.a)({className:d()("components-circular-option-picker__clear",t),isSmall:!0,variant:"secondary"},r),n)},Wv.DropdownLinkAction=function(e){let{buttonProps:t,className:n,dropdownProps:r,linkText:o}=e;return Object(s.createElement)(Vv,Object(c.a)({className:d()("components-circular-option-picker__dropdown-link-action",n),renderToggle:e=>{let{isOpen:n,onToggle:r}=e;return Object(s.createElement)(ld.a,Object(c.a)({"aria-expanded":n,"aria-haspopup":"true",onClick:r,variant:"link"},t),o)}},r))};const Uv={className:"components-custom-gradient-picker__color-picker-popover",position:"top"};function Kv(e){return Math.max(0,Math.min(100,e))}function Gv(e,t,n){const r=e.slice();return r[t]=n,r}function $v(e,t,n){if(function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=e[t].position,a=Math.min(o,n),i=Math.max(o,n);return e.some((e,o)=>{let{position:c}=e;return o!==t&&(Math.abs(c-n)<r||a<c&&c<i)})}(e,t,n))return e;return Gv(e,t,{...e[t],position:n})}function qv(e,t,n){return Gv(e,t,{...e[t],color:n})}function Yv(e,t,n){if(!t)return;const{x:r,width:o}=t.getBoundingClientRect(),a=e-r-5-n/2,i=o-5-16;return Math.round(Kv(100*a/i))}function Xv(e){let{isOpen:t,position:n,color:r,...o}=e;const a="components-custom-gradient-picker__control-point-button-description-"+Object(p.useInstanceId)(Xv);return Object(s.createElement)(s.Fragment,null,Object(s.createElement)(ld.a,Object(c.a)({"aria-label":Object(f.sprintf)(Object(f.__)("Gradient control point at position %1$s%% with color code %2$s."),n,r),"aria-describedby":a,"aria-haspopup":"true","aria-expanded":t,className:d()("components-custom-gradient-picker__control-point-button",{"is-active":t}),style:{left:n+"%"}},o)),Object(s.createElement)(m.a,{id:a},Object(f.__)("Use your left or right arrow keys or drag and drop with the mouse to change the gradient position. Press the button to change the color or remove the control point.")))}function Zv(e){let{disableRemove:t,disableAlpha:n,gradientPickerDomRef:r,ignoreMarkerPosition:o,value:a,onChange:i,onStartControlPointChange:c,onStopControlPointChange:l}=e;const u=Object(s.useRef)(),d=e=>{const t=Yv(e.clientX,r.current,16),{initialPosition:n,index:o,significantMoveHappened:c}=u.current;!c&&Math.abs(n-t)>=5&&(u.current.significantMoveHappened=!0),i($v(a,o,t))},p=()=>{window&&window.removeEventListener&&u.current&&u.current.listenersActivated&&(window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",p),l(),u.current.listenersActivated=!1)};return Object(s.useEffect)(()=>()=>{p()},[]),a.map((e,r)=>{const b=null==e?void 0:e.position;return o!==b&&Object(s.createElement)(Vv,{key:r,onClose:l,renderToggle:t=>{let{isOpen:n,onToggle:o}=t;return Object(s.createElement)(Xv,{key:r,onClick:()=>{u.current&&u.current.significantMoveHappened||(n?l():c(),o())},onMouseDown:()=>{window&&window.addEventListener&&(u.current={initialPosition:b,index:r,significantMoveHappened:!1,listenersActivated:!0},c(),window.addEventListener("mousemove",d),window.addEventListener("mouseup",p))},onKeyDown:t=>{t.keyCode===zu.LEFT?(t.stopPropagation(),i($v(a,r,Kv(e.position-10)))):t.keyCode===zu.RIGHT&&(t.stopPropagation(),i($v(a,r,Kv(e.position+10))))},isOpen:n,position:e.position,color:e.color})},renderContent:o=>{let{onClose:c}=o;return Object(s.createElement)(s.Fragment,null,Object(s.createElement)(_v,{enableAlpha:!n,color:e.color,onChange:e=>{i(qv(a,r,Object(_.a)(e).toRgbString()))}}),!t&&Object(s.createElement)(ld.a,{className:"components-custom-gradient-picker__remove-control-point",onClick:()=>{i(function(e,t){return e.filter((e,n)=>n!==t)}(a,r)),c()},variant:"link"},Object(f.__)("Remove Control Point")))},popoverProps:Uv})})}Zv.InsertPoint=function(e){let{value:t,onChange:n,onOpenInserter:r,onCloseInserter:o,insertPosition:a,disableAlpha:i}=e;const[c,l]=Object(s.useState)(!1);return Object(s.createElement)(Vv,{className:"components-custom-gradient-picker__inserter",onClose:()=>{o()},renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return Object(s.createElement)(ld.a,{"aria-expanded":t,"aria-haspopup":"true",onClick:()=>{t?o():(l(!1),r()),n()},className:"components-custom-gradient-picker__insert-point",icon:Qp.a,style:{left:null!==a?a+"%":void 0}})},renderContent:()=>Object(s.createElement)(_v,{enableAlpha:!i,onChange:e=>{c?n(function(e,t,n){const r=e.findIndex(e=>e.position===t);return qv(e,r,n)}(t,a,Object(_.a)(e).toRgbString())):(n(function(e,t,n){const r=e.findIndex(e=>e.position>t),o={color:n,position:t},a=e.slice();return a.splice(r-1,0,o),a}(t,a,Object(_.a)(e).toRgbString())),l(!0))}}),popoverProps:Uv})};var Jv=Zv;function Qv(e,t){switch(t.type){case"MOVE_INSERTER":if("IDLE"===e.id||"MOVING_INSERTER"===e.id)return{id:"MOVING_INSERTER",insertPosition:t.insertPosition};break;case"STOP_INSERTER_MOVE":if("MOVING_INSERTER"===e.id)return{id:"IDLE"};break;case"OPEN_INSERTER":if("MOVING_INSERTER"===e.id)return{id:"INSERTING_CONTROL_POINT",insertPosition:e.insertPosition};break;case"CLOSE_INSERTER":if("INSERTING_CONTROL_POINT"===e.id)return{id:"IDLE"};break;case"START_CONTROL_CHANGE":if("IDLE"===e.id)return{id:"MOVING_CONTROL_POINT"};break;case"STOP_CONTROL_CHANGE":if("MOVING_CONTROL_POINT"===e.id)return{id:"IDLE"}}return e}const eg={id:"IDLE"};function tg(e){let{background:t,hasGradient:n,value:r,onChange:o,disableInserter:a=!1,disableAlpha:i=!1}=e;const c=Object(s.useRef)(),[u,f]=Object(s.useReducer)(Qv,eg),p=e=>{const t=Yv(e.clientX,c.current,16);Object(l.some)(r,e=>{let{position:n}=e;return Math.abs(t-n)<10})?"MOVING_INSERTER"===u.id&&f({type:"STOP_INSERTER_MOVE"}):f({type:"MOVE_INSERTER",insertPosition:t})},b="MOVING_INSERTER"===u.id,h="INSERTING_CONTROL_POINT"===u.id;return Object(s.createElement)("div",{ref:c,className:d()("components-custom-gradient-picker__gradient-bar",{"has-gradient":n}),onMouseEnter:p,onMouseMove:p,style:{background:t},onMouseLeave:()=>{f({type:"STOP_INSERTER_MOVE"})}},Object(s.createElement)("div",{className:"components-custom-gradient-picker__markers-container"},!a&&(b||h)&&Object(s.createElement)(Jv.InsertPoint,{disableAlpha:i,insertPosition:u.insertPosition,value:r,onChange:o,onOpenInserter:()=>{f({type:"OPEN_INSERTER"})},onCloseInserter:()=>{f({type:"CLOSE_INSERTER"})}}),Object(s.createElement)(Jv,{disableAlpha:i,disableRemove:a,gradientPickerDomRef:c,ignoreMarkerPosition:h?u.insertPosition:void 0,value:r,onChange:o,onStartControlPointChange:()=>{f({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:()=>{f({type:"STOP_CONTROL_CHANGE"})}})))}var ng=n("Jx1U"),rg=n.n(ng);const og="linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)",ag={type:"angular",value:90},ig=[{value:"linear-gradient",label:Object(f.__)("Linear")},{value:"radial-gradient",label:Object(f.__)("Radial")}],cg={top:0,"top right":45,"right top":45,right:90,"right bottom":135,"bottom right":135,bottom:180,"bottom left":225,"left bottom":225,left:270,"top left":315,"left top":315};function sg(e){let{type:t,value:n,length:r}=e;return`${function(e){let{type:t,value:n}=e;return"literal"===t?n:"hex"===t?"#"+n:`${t}(${n.join(",")})`}({type:t,value:n})} ${function(e){if(!e)return"";const{value:t,type:n}=e;return`${t}${n}`}(r)}`}function lg(e){let{type:t,orientation:n,colorStops:r}=e;const o=function(e){if(e&&"angular"===e.type)return e.value+"deg"}(n),a=r.sort((e,t)=>Object(l.get)(e,["length","value"],0)-Object(l.get)(t,["length","value"],0)).map(sg);return`${t}(${Object(l.compact)([o,...a]).join(",")})`}function ug(e){return void 0===e.length||"%"!==e.length.type}function dg(e){switch(e.type){case"hex":return"#"+e.value;case"literal":return e.value;case"rgb":case"rgba":return`${e.type}(${e.value.join(",")})`;default:return"transparent"}}Object(_.b)([E.a]);const fg=Object(w.a)(hs,{target:"e99xvul1"})({name:"1gvx10y",styles:"flex-grow:5"}),pg=Object(w.a)(hs,{target:"e99xvul0"})({name:"1gvx10y",styles:"flex-grow:5"}),bg=e=>{let{gradientAST:t,hasGradient:n,onChange:r}=e;const o=Object(l.get)(t,["orientation","value"],180);return Object(s.createElement)(ad,{onChange:e=>{r(lg({...t,orientation:{type:"angular",value:e}}))},labelPosition:"top",value:n?o:""})},hg=e=>{let{gradientAST:t,hasGradient:n,onChange:r}=e;const{type:o}=t;return Object(s.createElement)(db,{className:"components-custom-gradient-picker__type-picker",label:Object(f.__)("Type"),labelPosition:"top",onChange:e=>{"linear-gradient"===e&&r(lg({...t,...t.orientation?{}:{orientation:ag},type:"linear-gradient"})),"radial-gradient"===e&&r(lg({...Object(l.omit)(t,["orientation"]),type:"radial-gradient"}))},options:ig,value:n&&o})};function mg(e){let{value:t,onChange:n}=e;const r=function(e){var t;let n;try{n=rg.a.parse(e)[0],n.value=e}catch(e){n=rg.a.parse(og)[0],n.value=og}if("directional"===(null===(t=n.orientation)||void 0===t?void 0:t.type)&&(n.orientation.type="angular",n.orientation.value=cg[n.orientation.value].toString()),n.colorStops.some(ug)){const{colorStops:e}=n,t=100/(e.length-1);e.forEach((e,n)=>{e.length={value:t*n,type:"%"}}),n.value=lg(n)}return n}(t),o=function(e){return lg({type:"linear-gradient",orientation:ag,colorStops:e.colorStops})}(r),a=r.value!==og,i=r.colorStops.map(e=>({color:dg(e),position:parseInt(e.length.value)}));return Object(s.createElement)("div",{className:"components-custom-gradient-picker"},Object(s.createElement)(tg,{background:o,hasGradient:a,value:i,onChange:e=>{n(lg(function(e,t){return{...e,colorStops:t.map(e=>{let{position:t,color:n}=e;const{r:r,g:o,b:a,a:i}=Object(_.a)(n).toRgb();return{length:{type:"%",value:t.toString()},type:i<1?"rgba":"rgb",value:i<1?[r,o,a,i]:[r,o,a]}})}}(r,e)))}}),Object(s.createElement)(Ms,{gap:3,className:"components-custom-gradient-picker__ui-line"},Object(s.createElement)(fg,null,Object(s.createElement)(hg,{gradientAST:r,hasGradient:a,onChange:n})),Object(s.createElement)(pg,null,"linear-gradient"===r.type&&Object(s.createElement)(bg,{gradientAST:r,hasGradient:a,onChange:n}))))}var vg=Object(os.a)((function(e,t){const n=function(e){const{as:t,level:n=2,...r}=Object(is.a)(e,"Heading"),o=t||"h"+n,a={};return"string"==typeof o&&"h"!==o[0]&&(a.role="heading",a["aria-level"]="string"==typeof n?parseInt(n):n),{...il({color:L.darkGray.heading,size:ol(n),isBlock:!0,weight:Ks.fontWeightHeading,...r}),...a,as:o}}(e);return Object(s.createElement)(as.a,Object(c.a)({},n,{ref:t}))}),"Heading");const gg=Object(w.a)(vg,{target:"e1uu5br00"})({name:"13lxv2o",styles:"text-transform:uppercase;line-height:24px;font-weight:500;&&&{font-size:11px;margin-bottom:0;}"});function yg(e){let{className:t,clearGradient:n,gradients:r,onChange:o,value:a,actions:i,content:c}=e;const u=Object(s.useMemo)(()=>Object(l.map)(r,e=>{let{gradient:t,name:r}=e;return Object(s.createElement)(Wv.Option,{key:t,value:t,isSelected:a===t,tooltipText:r||Object(f.sprintf)(Object(f.__)("Gradient code: %s"),t),style:{color:"rgba( 0,0,0,0 )",background:t},onClick:a===t?n:()=>o(t),"aria-label":r?Object(f.sprintf)(Object(f.__)("Gradient: %s"),r):Object(f.sprintf)(Object(f.__)("Gradient code: %s"),t)})}),[r,a,o,n]);return Object(s.createElement)(Wv,{className:t,options:u,actions:i},c)}function Og(e){let{className:t,clearGradient:n,gradients:r,onChange:o,value:a,actions:i,content:l}=e;return Object(s.createElement)(Hv,{spacing:3,className:t},r.map((e,t)=>{let{name:u,gradients:d}=e;return Object(s.createElement)(Hv,{spacing:2,key:t},Object(s.createElement)(gg,null,u),Object(s.createElement)(yg,Object(c.a)({clearGradient:n,gradients:d,onChange:o,value:a},r.length===t+1?{actions:i,content:l}:{})))}))}function jg(e){let{className:t,gradients:n,onChange:r,value:o,clearable:a=!0,disableCustomGradients:i=!1,__experimentalHasMultipleOrigins:c}=e;const l=Object(s.useCallback)(()=>r(void 0),[r]),u=c?Og:yg;return Object(s.createElement)(u,{className:t,clearable:a,clearGradient:l,gradients:n,onChange:r,value:o,actions:a&&Object(s.createElement)(Wv.ButtonAction,{onClick:l},Object(f.__)("Clear")),content:!i&&Object(s.createElement)(mg,{value:o,onChange:r})})}var wg=n("7bKH");function xg(e){let{className:t,clearColor:n,colors:r,onChange:o,value:a,actions:i}=e;const c=Object(s.useMemo)(()=>Object(l.map)(r,e=>{let{color:t,name:r}=e;const i=Object(_.a)(t);return Object(s.createElement)(Wv.Option,{key:t,isSelected:a===t,selectedIconProps:a===t?{fill:i.contrast()>i.contrast("#000")?"#fff":"#000"}:{},tooltipText:r||Object(f.sprintf)(Object(f.__)("Color code: %s"),t),style:{backgroundColor:t,color:t},onClick:a===t?n:()=>o(t),"aria-label":r?Object(f.sprintf)(Object(f.__)("Color: %s"),r):Object(f.sprintf)(Object(f.__)("Color code: %s"),t)})}),[r,a,o,n]);return Object(s.createElement)(Wv,{className:t,options:c,actions:i})}function _g(e){let{className:t,clearColor:n,colors:r,onChange:o,value:a,actions:i}=e;return Object(s.createElement)(Hv,{spacing:3,className:t},r.map((e,t)=>{let{name:c,colors:l}=e;return Object(s.createElement)(Hv,{spacing:2,key:t},Object(s.createElement)(gg,null,c),Object(s.createElement)(xg,{clearColor:n,colors:l,onChange:o,value:a,actions:r.length===t+1?i:null}))}))}function Eg(e){let{clearable:t=!0,className:n,colors:r,disableCustomColors:o=!1,enableAlpha:a,onChange:i,value:c,__experimentalHasMultipleOrigins:l=!1}=e;const u=Object(s.useCallback)(()=>i(void 0),[i]),d=l?_g:xg;return Object(s.createElement)(Hv,{spacing:3,className:n},!o&&Object(s.createElement)(Vv,{renderContent:()=>Object(s.createElement)(_v,{color:c,onChange:e=>i(e),enableAlpha:a}),renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return Object(s.createElement)("button",{className:"components-color-palette__custom-color","aria-expanded":t,"aria-haspopup":"true",onClick:n,"aria-label":Object(f.__)("Custom color picker"),style:{background:c}},c)}}),Object(s.createElement)(d,{clearable:t,clearColor:u,colors:r,onChange:i,value:c,actions:!!t&&Object(s.createElement)(Wv.ButtonAction,{onClick:u},Object(f.__)("Clear"))}))}Object(_.b)([E.a,wg.a]);var kg=Object(s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(s.createElement)(i.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"})),Sg=n("1CF3");const Cg=["menuitem","menuitemradio","menuitemcheckbox"];class Pg extends s.Component{constructor(){super(...arguments),this.onKeyDown=this.onKeyDown.bind(this),this.bindContainer=this.bindContainer.bind(this),this.getFocusableContext=this.getFocusableContext.bind(this),this.getFocusableIndex=this.getFocusableIndex.bind(this)}componentDidMount(){this.container.addEventListener("keydown",this.onKeyDown),this.container.addEventListener("focus",this.onFocus)}componentWillUnmount(){this.container.removeEventListener("keydown",this.onKeyDown),this.container.removeEventListener("focus",this.onFocus)}bindContainer(e){const{forwardedRef:t}=this.props;this.container=e,Object(l.isFunction)(t)?t(e):t&&"current"in t&&(t.current=e)}getFocusableContext(e){const{onlyBrowserTabstops:t}=this.props,n=(t?Sg.focus.tabbable:Sg.focus.focusable).find(this.container),r=this.getFocusableIndex(n,e);return r>-1&&e?{index:r,target:e,focusables:n}:null}getFocusableIndex(e,t){const n=e.indexOf(t);if(-1!==n)return n}onKeyDown(e){this.props.onKeyDown&&this.props.onKeyDown(e);const{getFocusableContext:t}=this,{cycle:n=!0,eventToOffset:r,onNavigate:o=l.noop,stopNavigationEvents:a}=this.props,i=r(e);if(void 0!==i&&a){e.stopImmediatePropagation();const t=e.target.getAttribute("role");Cg.includes(t)&&e.preventDefault()}if(!i)return;const c=t(e.target.ownerDocument.activeElement);if(!c)return;const{index:s,focusables:u}=c,d=n?function(e,t,n){const r=e+n;return r<0?t+r:r>=t?r-t:r}(s,u.length,i):s+i;d>=0&&d<u.length&&(u[d].focus(),o(d,u[d]))}render(){const{children:e,...t}=this.props;return Object(s.createElement)("div",Object(c.a)({ref:this.bindContainer},Object(l.omit)(t,["stopNavigationEvents","eventToOffset","onNavigate","onKeyDown","cycle","onlyBrowserTabstops","forwardedRef"])),e)}}const Tg=(e,t)=>Object(s.createElement)(Pg,Object(c.a)({},e,{forwardedRef:t}));Tg.displayName="NavigableContainer";var Mg=Object(s.forwardRef)(Tg);var Dg=Object(s.forwardRef)((function(e,t){let{role:n="menu",orientation:r="vertical",...o}=e;return Object(s.createElement)(Mg,Object(c.a)({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role:n,"aria-orientation":"presentation"===n?null:r,eventToOffset:e=>{const{keyCode:t}=e;let n=[zu.DOWN],o=[zu.UP];return"horizontal"===r&&(n=[zu.RIGHT],o=[zu.LEFT]),"both"===r&&(n=[zu.RIGHT,zu.DOWN],o=[zu.LEFT,zu.UP]),Object(l.includes)(n,t)?1:Object(l.includes)(o,t)?-1:Object(l.includes)([zu.DOWN,zu.UP,zu.LEFT,zu.RIGHT],t)?0:void 0}},o))}));function Ig(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...e,...t};return t.className&&e.className&&(n.className=d()(t.className,e.className)),n}var Rg=function(e){const{children:t,className:n,controls:r,icon:o=kg,label:a,popoverProps:i,toggleProps:u,menuProps:f,disableOpenOnArrowDown:p=!1,text:b,noIcons:h}=e;if(Object(l.isEmpty)(r)&&!Object(l.isFunction)(t))return null;let m;Object(l.isEmpty)(r)||(m=r,Array.isArray(m[0])||(m=[m]));const v=Ig({className:"components-dropdown-menu__popover"},i);return Object(s.createElement)(Vv,{className:d()("components-dropdown-menu",n),popoverProps:v,renderToggle:e=>{var t;let{isOpen:n,onToggle:r}=e;const i=Ig({className:d()("components-dropdown-menu__toggle",{"is-opened":n})},u);return Object(s.createElement)(ld.a,Object(c.a)({},i,{icon:o,onClick:e=>{r(e),i.onClick&&i.onClick(e)},onKeyDown:e=>{(e=>{p||n||e.keyCode!==zu.DOWN||(e.preventDefault(),r())})(e),i.onKeyDown&&i.onKeyDown(e)},"aria-haspopup":"true","aria-expanded":n,label:a,text:b,showTooltip:null===(t=null==u?void 0:u.showTooltip)||void 0===t||t}),i.children)},renderContent:e=>{const n=Ig({"aria-label":a,className:d()("components-dropdown-menu__menu",{"no-icons":h})},f);return Object(s.createElement)(Dg,Object(c.a)({},n,{role:"menu"}),Object(l.isFunction)(t)?t(e):null,Object(l.flatMap)(m,(t,n)=>t.map((t,r)=>Object(s.createElement)(ld.a,{key:[n,r].join(),onClick:n=>{n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:d()("components-dropdown-menu__menu-item",{"has-separator":n>0&&0===r,"is-active":t.isActive,"is-icon-only":!t.title}),icon:t.icon,label:t.label,"aria-checked":"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.isActive:void 0,role:"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.role:"menuitem",disabled:t.isDisabled},t.title))))}})};var Ag=Object(os.a)((function(e,t){const{role:n,wrapperClassName:r,...o}=function(e){const{as:t,className:n,onClick:r,role:o="listitem",size:a,...i}=Object(is.a)(e,"Item"),{spacedAround:c,size:l}=zv(),u=a||l,d=t||(void 0!==r?"button":"div"),f=Object(ps.a)(),p=Object(s.useMemo)(()=>f("button"===d&&Ev,Lv[u]||Lv.medium,Sv,c&&Mv,n),[d,n,u,c]),b=f(kv);return{as:d,className:p,onClick:r,wrapperClassName:b,role:o,...i}}(e);return Object(s.createElement)("div",{role:n,className:r},Object(s.createElement)(as.a,Object(c.a)({},o,{ref:t})))}),"Item");const Ng=Object(w.a)(Wv.Option,{target:"e5bw3229"})("width:",ws(6),";height:",ws(6),";pointer-events:none;"),Lg=Object(w.a)(Zu,{target:"e5bw3228"})(vl,"{background:",L.gray[100],";border-radius:2px;",gl,gl,gl,gl,"{height:",ws(8),";}",xl,xl,xl,"{border-color:transparent;box-shadow:none;}}"),Fg=Object(w.a)(Ag,{target:"e5bw3227"})("padding:3px 0 3px ",ws(3),";height:calc( 40px - ",Ks.borderWidth," );"),zg=Object(w.a)("div",{target:"e5bw3226"})("line-height:",ws(8),";margin-left:",ws(2),";margin-right:",ws(2),";white-space:nowrap;overflow:hidden;"),Bg=Object(w.a)(vg,{target:"e5bw3225"})("text-transform:uppercase;line-height:",ws(6),";font-weight:500;&&&{font-size:11px;margin-bottom:0;}"),Hg=Object(w.a)(as.a,{target:"e5bw3224"})("height:",ws(6),";display:flex;"),Vg=Object(w.a)(ib,{target:"e5bw3223"})("margin-bottom:",ws(2),";"),Wg=Object(w.a)(as.a,{target:"e5bw3222"})({name:"u6wnko",styles:"&&&{.components-button.has-icon{min-width:0;padding:0;}}"}),Ug=Object(w.a)(ld.a,{target:"e5bw3221"})("&&{color:",L.ui.theme,";}"),Kg=Object(w.a)(ld.a,{target:"e5bw3220"})("&&{margin-top:",ws(1),";}");function Gg(e){let{value:t,onChange:n,label:r}=e;return Object(s.createElement)(Lg,{label:r,hideLabelFromVision:!0,value:t,onChange:n})}function $g(e){let{canOnlyChangeValues:t,element:n,onChange:r,isEditing:o,onStartEditing:a,onRemove:i,onStopEditing:u,slugPrefix:d,isGradient:b}=e;const h=Object(p.__experimentalUseFocusOutside)(u),m=b?n.gradient:n.color;return Object(s.createElement)(Fg,Object(c.a)({as:"div",onClick:a},o?h:{}),Object(s.createElement)(ib,{justify:"flex-start"},Object(s.createElement)(ms,null,Object(s.createElement)(Ng,{style:{background:m,color:"transparent"}})),Object(s.createElement)(ms,null,o&&!t?Object(s.createElement)(Gg,{label:b?Object(f.__)("Gradient name"):Object(f.__)("Color name"),value:n.name,onChange:e=>r({...n,name:e,slug:d+Object(l.kebabCase)(e)})}):Object(s.createElement)(zg,null,n.name)),o&&!t&&Object(s.createElement)(ms,null,Object(s.createElement)(Kg,{isSmall:!0,icon:Jp.a,label:Object(f.__)("Remove color"),onClick:i}))),o&&Object(s.createElement)(ud.a,{position:"bottom left",className:"components-palette-edit__popover"},!b&&Object(s.createElement)(_v,{color:m,onChange:e=>r({...n,color:e})}),b&&Object(s.createElement)(mg,{value:m,onChange:e=>r({...n,gradient:e})})))}function qg(e){let{elements:t,onChange:n,editingElement:r,setEditingElement:o,canOnlyChangeValues:a,slugPrefix:i,isGradient:c}=e;const l=Object(s.useRef)();return Object(s.useEffect)(()=>{l.current=t},[t]),Object(s.useEffect)(()=>()=>{if(l.current.some(e=>{let{slug:t}=e;return!t})){const e=l.current.filter(e=>{let{slug:t}=e;return t});n(e.length?e:void 0)}},[]),Object(s.createElement)(Hv,{spacing:3},Object(s.createElement)(Bv,{isBordered:!0,isSeparated:!0},t.map((e,l)=>Object(s.createElement)($g,{isGradient:c,canOnlyChangeValues:a,key:l,element:e,onStartEditing:()=>{r!==l&&o(l)},onChange:e=>{n(t.map((t,n)=>n===l?e:t))},onRemove:()=>{o(null);const e=t.filter((e,t)=>t!==l);n(e.length?e:void 0)},isEditing:l===r,onStopEditing:()=>{l===r&&o(null)},slugPrefix:i}))))}const Yg=[];function Xg(e){let{gradients:t,colors:n=Yg,onChange:r,paletteLabel:o,emptyMessage:a,canOnlyChangeValues:i,canReset:c,slugPrefix:l=""}=e;const u=!!t,d=u?t:n,[p,b]=Object(s.useState)(!1),[h,m]=Object(s.useState)(null),v=p&&h&&d[h]&&!d[h].slug,g=d.length>0;return Object(s.createElement)(Wg,null,Object(s.createElement)(Vg,null,Object(s.createElement)(Bg,null,o),Object(s.createElement)(Hg,null,p&&Object(s.createElement)(Ug,{isSmall:!0,onClick:()=>{b(!1),m(null)}},Object(f.__)("Done")),!i&&Object(s.createElement)(ld.a,{isSmall:!0,isPressed:v,icon:Qp.a,label:u?Object(f.__)("Add gradient"):Object(f.__)("Add color"),onClick:()=>{r([...d,{...u?{gradient:og}:{color:"#000"},name:"",slug:""}]),b(!0),m(d.length)}}),!p&&Object(s.createElement)(ld.a,{disabled:!g,isSmall:!0,icon:eb.a,label:u?Object(f.__)("Edit gradients"):Object(f.__)("Edit colors"),onClick:()=>{b(!0)}}),p&&(c||!i)&&Object(s.createElement)(Rg,{icon:eb.a,label:u?Object(f.__)("Gradient options"):Object(f.__)("Color options"),toggleProps:{isSmall:!0}},e=>{let{onClose:t}=e;return Object(s.createElement)(s.Fragment,null,Object(s.createElement)(Dg,{role:"menu"},!i&&Object(s.createElement)(ld.a,{variant:"tertiary",onClick:()=>{m(null),b(!1),r(),t()}},u?Object(f.__)("Remove all gradients"):Object(f.__)("Remove all colors")),c&&Object(s.createElement)(ld.a,{variant:"tertiary",onClick:()=>{m(null),r(),t()}},u?Object(f.__)("Reset gradient"):Object(f.__)("Reset colors"))))}))),g&&Object(s.createElement)(s.Fragment,null,p&&Object(s.createElement)(qg,{canOnlyChangeValues:i,elements:d,onChange:r,editingElement:h,setEditingElement:m,slugPrefix:l,isGradient:u}),!p&&(u?Object(s.createElement)(jg,{gradients:t,onChange:()=>{},clearable:!1,disableCustomGradients:!0}):Object(s.createElement)(Eg,{colors:n,onChange:()=>{},clearable:!1,disableCustomColors:!0}))),!g&&a)}var Zg=e=>{let{className:t,colorValue:n,...r}=e;return Object(s.createElement)("span",Object(c.a)({className:d()("component-color-indicator",t),style:{background:n}},r))},Jg=n("bWcr");class Qg extends s.Component{constructor(){super(...arguments),this.onChange=this.onChange.bind(this),this.bindInput=this.bindInput.bind(this)}focus(){this.input.focus()}hasFocus(){return this.input===this.input.ownerDocument.activeElement}bindInput(e){this.input=e}onChange(e){this.props.onChange({value:e.target.value})}render(){const{value:e,isExpanded:t,instanceId:n,selectedSuggestionIndex:r,className:o,onChange:a,...i}=this.props,l=e?e.length+1:0;return Object(s.createElement)("input",Object(c.a)({ref:this.bindInput,id:"components-form-token-input-"+n,type:"text"},i,{value:e||"",onChange:a?this.onChange:void 0,size:l,className:d()(o,"components-form-token-field__input"),autoComplete:"off",role:"combobox","aria-expanded":t,"aria-autocomplete":"list","aria-owns":t?"components-form-token-suggestions-"+n:void 0,"aria-activedescendant":-1!==r?`components-form-token-suggestions-${n}-${r}`:void 0,"aria-describedby":"components-form-token-suggestions-howto-"+n}))}}var ey=Qg,ty=n("9Do8"),ny=n.n(ty);class ry extends s.Component{constructor(){super(...arguments),this.handleMouseDown=this.handleMouseDown.bind(this),this.bindList=this.bindList.bind(this)}componentDidUpdate(){this.props.selectedIndex>-1&&this.props.scrollIntoView&&this.list.children[this.props.selectedIndex]&&(this.scrollingIntoView=!0,ny()(this.list.children[this.props.selectedIndex],this.list,{onlyScrollIfNeeded:!0}),this.props.setTimeout(()=>{this.scrollingIntoView=!1},100))}bindList(e){this.list=e}handleHover(e){return()=>{this.scrollingIntoView||this.props.onHover(e)}}handleClick(e){return()=>{this.props.onSelect(e)}}handleMouseDown(e){e.preventDefault()}computeSuggestionMatch(e){const t=this.props.displayTransform(this.props.match||"").toLocaleLowerCase();if(0===t.length)return null;const n=(e=this.props.displayTransform(e)).toLocaleLowerCase().indexOf(t);return{suggestionBeforeMatch:e.substring(0,n),suggestionMatch:e.substring(n,n+t.length),suggestionAfterMatch:e.substring(n+t.length)}}render(){return Object(s.createElement)("ul",{ref:this.bindList,className:"components-form-token-field__suggestions-list",id:"components-form-token-suggestions-"+this.props.instanceId,role:"listbox"},Object(l.map)(this.props.suggestions,(e,t)=>{const n=this.computeSuggestionMatch(e),r=d()("components-form-token-field__suggestion",{"is-selected":t===this.props.selectedIndex});return Object(s.createElement)("li",{id:`components-form-token-suggestions-${this.props.instanceId}-${t}`,role:"option",className:r,key:null!=e&&e.value?e.value:this.props.displayTransform(e),onMouseDown:this.handleMouseDown,onClick:this.handleClick(e),onMouseEnter:this.handleHover(e),"aria-selected":t===this.props.selectedIndex},n?Object(s.createElement)("span",{"aria-label":this.props.displayTransform(e)},n.suggestionBeforeMatch,Object(s.createElement)("strong",{className:"components-form-token-field__suggestion-match"},n.suggestionMatch),n.suggestionAfterMatch):this.props.displayTransform(e))}))}}ry.defaultProps={match:"",onHover:()=>{},onSelect:()=>{},suggestions:Object.freeze([])};var oy=Object(p.withSafeTimeout)(ry),ay=Object(p.createHigherOrderComponent)(e=>t=>{const[n,r]=Object(s.useState)(),o=Object(s.useCallback)(e=>r(()=>null!=e&&e.handleFocusOutside?e.handleFocusOutside.bind(e):void 0),[]);return Object(s.createElement)("div",Object(p.__experimentalUseFocusOutside)(n),Object(s.createElement)(e,Object(c.a)({ref:o},t)))},"withFocusOutside");const iy=ay(class extends s.Component{handleFocusOutside(e){this.props.onFocusOutside(e)}render(){return this.props.children}});var cy=function e(t){var n;let{value:r,label:o,options:a,onChange:i,onFilterValueChange:c=l.noop,hideLabelFromVision:u,help:b,allowReset:h=!0,className:m,messages:v={selected:Object(f.__)("Item selected.")}}=t;const g=a.find(e=>e.value===r),y=null!==(n=null==g?void 0:g.label)&&void 0!==n?n:"",O=Object(p.useInstanceId)(e),[j,w]=Object(s.useState)(g||null),[x,_]=Object(s.useState)(!1),[E,k]=Object(s.useState)(!1),[S,C]=Object(s.useState)(""),P=Object(s.useRef)(),T=Object(s.useMemo)(()=>{const e=[],t=[],n=Object(l.deburr)(S.toLocaleLowerCase());return a.forEach(r=>{const o=Object(l.deburr)(r.label).toLocaleLowerCase().indexOf(n);0===o?e.push(r):o>0&&t.push(r)}),e.concat(t)},[S,a,r]),M=e=>{i(e.value),Object(cd.speak)(v.selected,"assertive"),w(e),C(""),_(!1)},D=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const t=T.indexOf(j);let n=t+e;n<0?n=T.length-1:n>=T.length&&(n=0),w(T[n]),_(!0)};return Object(s.useEffect)(()=>{const e=T.length>0,t=T.indexOf(j)>0;e&&!t&&w(T[0])},[T,j]),Object(s.useEffect)(()=>{const e=T.length>0;if(x){const t=e?Object(f.sprintf)(Object(f._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",T.length),T.length):Object(f.__)("No results.");Object(cd.speak)(t,"polite")}},[T,x]),Object(s.createElement)(iy,{onFocusOutside:()=>{_(!1)}},Object(s.createElement)(jd,{className:d()(m,"components-combobox-control"),tabIndex:"-1",label:o,id:"components-form-token-input-"+O,hideLabelFromVision:u,help:b},Object(s.createElement)("div",{className:"components-combobox-control__suggestions-container",tabIndex:"-1",onKeyDown:e=>{let t=!1;if(!e.defaultPrevented){switch(e.keyCode){case zu.ENTER:j&&(M(j),t=!0);break;case zu.UP:D(-1),t=!0;break;case zu.DOWN:D(1),t=!0;break;case zu.ESCAPE:_(!1),w(null),t=!0}t&&e.preventDefault()}}},Object(s.createElement)(Ms,null,Object(s.createElement)(hs,null,Object(s.createElement)(ey,{className:"components-combobox-control__input",instanceId:O,ref:P,value:x?S:y,"aria-label":y?`${y}, ${o}`:null,onFocus:()=>{k(!0),_(!0),c(""),C("")},onBlur:()=>{k(!1)},isExpanded:x,selectedSuggestionIndex:T.indexOf(j),onChange:e=>{const t=e.value;C(t),c(t),E&&_(!0)}})),h&&Object(s.createElement)(ms,null,Object(s.createElement)(ld.a,{className:"components-combobox-control__reset",icon:Jg.a,disabled:!r,onClick:()=>{i(null),P.current.input.focus()},label:Object(f.__)("Reset")}))),x&&Object(s.createElement)(oy,{instanceId:O,match:{label:S},displayTransform:e=>e.label,suggestions:T,selectedIndex:T.indexOf(j),onHover:w,onSelect:M,scrollIntoView:!0}))))};function sy(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var ly=n("17x9"),uy=n.n(ly);n("cD2C");function dy(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function fy(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function py(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return fy(n.overflowY,t)||fy(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function by(e,t,n,r,o,a,i,c){return a<e&&i>t||a>e&&i<t?0:a<=e&&c<=n||i>=t&&c>=n?a-e-r:i>t&&c<n||a<e&&c>n?i-t+o:0}var hy=function(){return(hy=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.create;Object.create;var my=0;function vy(){}function gy(e,t){e&&function(e,t){var n=window,r=t.scrollMode,o=t.block,a=t.inline,i=t.boundary,c=t.skipOverflowHiddenElements,s="function"==typeof i?i:function(e){return e!==i};if(!dy(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,u=[],d=e;dy(d)&&s(d);){if((d=d.parentElement)===l){u.push(d);break}null!=d&&d===document.body&&py(d)&&!py(document.documentElement)||null!=d&&py(d,c)&&u.push(d)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,m=e.getBoundingClientRect(),v=m.height,g=m.width,y=m.top,O=m.right,j=m.bottom,w=m.left,x="start"===o||"nearest"===o?y:"end"===o?j:y+v/2,_="center"===a?w+g/2:"end"===a?O:w,E=[],k=0;k<u.length;k++){var S=u[k],C=S.getBoundingClientRect(),P=C.height,T=C.width,M=C.top,D=C.right,I=C.bottom,R=C.left;if("if-needed"===r&&y>=0&&w>=0&&j<=p&&O<=f&&y>=M&&j<=I&&w>=R&&O<=D)return E;var A=getComputedStyle(S),N=parseInt(A.borderLeftWidth,10),L=parseInt(A.borderTopWidth,10),F=parseInt(A.borderRightWidth,10),z=parseInt(A.borderBottomWidth,10),B=0,H=0,V="offsetWidth"in S?S.offsetWidth-S.clientWidth-N-F:0,W="offsetHeight"in S?S.offsetHeight-S.clientHeight-L-z:0;if(l===S)B="start"===o?x:"end"===o?x-p:"nearest"===o?by(h,h+p,p,L,z,h+x,h+x+v,v):x-p/2,H="start"===a?_:"center"===a?_-f/2:"end"===a?_-f:by(b,b+f,f,N,F,b+_,b+_+g,g),B=Math.max(0,B+h),H=Math.max(0,H+b);else{B="start"===o?x-M-L:"end"===o?x-I+z+W:"nearest"===o?by(M,I,P,L,z+W,x,x+v,v):x-(M+P/2)+W/2,H="start"===a?_-R-N:"center"===a?_-(R+T/2)+V/2:"end"===a?_-D+F+V:by(R,D,T,N,F+V,_,_+g,g);var U=S.scrollLeft,K=S.scrollTop;x+=K-(B=Math.max(0,Math.min(K+B,S.scrollHeight-P+W))),_+=U-(H=Math.max(0,Math.min(U+H,S.scrollWidth-T+V)))}E.push({el:S,top:B,left:H})}return E}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))}function yy(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function Oy(e,t){var n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];r(),n=setTimeout((function(){n=null,e.apply(void 0,a)}),t)}return o.cancel=r,o}function jy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault}))}}function wy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){"function"==typeof t?t(e):t&&(t.current=e)}))}}function xy(){return String(my++)}function _y(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function Ey(e,t){return Object.keys(e).reduce((function(n,r){return n[r]=ky(t,r)?t[r]:e[r],n}),{})}function ky(e,t){return void 0!==e[t]}function Sy(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function Cy(e,t,n,r,o){if(void 0===o&&(o=!0),0===n)return-1;var a=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:a+1);var i=t+e;i<0?i=o?a:0:i>a&&(i=o?0:a);var c=Py(e,i,n,r,o);return-1===c?t>=n?-1:t:c}function Py(e,t,n,r,o){var a=r(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(var i=t+1;i<n;i++)if(!r(i).hasAttribute("disabled"))return i}else for(var c=t-1;c>=0;c--)if(!r(c).hasAttribute("disabled"))return c;return o?e>0?Py(1,0,n,r,!1):Py(-1,n-1,n,r,!1):-1}function Ty(e,t,n,r){return void 0===r&&(r=!0),t.some((function(t){return t&&(yy(t,e,n)||r&&yy(t,n.document.activeElement,n))}))}var My=Oy((function(e){Iy(e).textContent=""}),500);function Dy(e,t){var n=Iy(t);e&&(n.textContent=e,My(t))}function Iy(e){void 0===e&&(e=document);var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var Ry=["isInitialMount","highlightedIndex","items","environment"],Ay={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function Ny(e,t,n){var r=e.props,o=e.type,a={};Object.keys(t).forEach((function(r){!function(e,t,n,r){var o=t.props,a=t.type,i="on"+Vy(e)+"Change";o[i]&&void 0!==r[e]&&r[e]!==n[e]&&o[i](Object(c.a)({type:a},r))}(r,e,t,n),n[r]!==t[r]&&(a[r]=n[r])})),r.onStateChange&&Object.keys(a).length&&r.onStateChange(Object(c.a)({type:o},a))}var Ly=Oy((function(e,t){Dy(e(),t)}),200),Fy="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?q.useLayoutEffect:q.useEffect;function zy(e){var t=e.id,n=void 0===t?"downshift-"+xy():t,r=e.labelId,o=e.menuId,a=e.getItemId,i=e.toggleButtonId,c=e.inputId;return Object(q.useRef)({labelId:r||n+"-label",menuId:o||n+"-menu",getItemId:a||function(e){return n+"-item-"+e},toggleButtonId:i||n+"-toggle-button",inputId:c||n+"-input"}).current}function By(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function Hy(e){return/^\S{1}$/.test(e)}function Vy(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Wy(e){var t=Object(q.useRef)(e);return t.current=e,t}function Uy(e,t,n){var r=Object(q.useRef)(),o=Object(q.useRef)(),a=Object(q.useCallback)((function(t,n){o.current=n,t=Ey(t,n.props);var r=e(t,n);return n.props.stateReducer(t,Object(c.a)({},n,{changes:r}))}),[e]),i=Object(q.useReducer)(a,t),s=i[0],l=i[1],u=Wy(n),d=Object(q.useCallback)((function(e){return l(Object(c.a)({props:u.current},e))}),[u]),f=o.current;return Object(q.useEffect)((function(){f&&r.current&&r.current!==s&&Ny(f,Ey(r.current,f.props),s),r.current=s}),[s,n,f]),[s,d]}function Ky(e,t,n){var r=Uy(e,t,n),o=r[0],a=r[1];return[Ey(o,n),a]}var Gy={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""},scrollIntoView:gy,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function $y(e,t,n){void 0===n&&(n=Ay);var r="default"+Vy(t);return r in e?e[r]:n[t]}function qy(e,t,n){if(void 0===n&&(n=Ay),t in e)return e[t];var r="initial"+Vy(t);return r in e?e[r]:$y(e,t,n)}function Yy(e){var t=qy(e,"selectedItem"),n=qy(e,"isOpen"),r=qy(e,"highlightedIndex"),o=qy(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function Xy(e,t,n,r){var o=e.items,a=e.initialHighlightedIndex,i=e.defaultHighlightedIndex,c=t.selectedItem,s=t.highlightedIndex;return 0===o.length?-1:void 0!==a&&s===a?a:void 0!==i?i:c?0===n?o.indexOf(c):Cy(n,o.indexOf(c),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function Zy(e,t,n,r){var o=Object(q.useRef)({isMouseDown:!1,isTouchMove:!1});return Object(q.useEffect)((function(){var a=function(){o.current.isMouseDown=!0},i=function(a){o.current.isMouseDown=!1,e&&!Ty(a.target,t.map((function(e){return e.current})),n)&&r()},c=function(){o.current.isTouchMove=!1},s=function(){o.current.isTouchMove=!0},l=function(a){!e||o.current.isTouchMove||Ty(a.target,t.map((function(e){return e.current})),n,!1)||r()};return n.addEventListener("mousedown",a),n.addEventListener("mouseup",i),n.addEventListener("touchstart",c),n.addEventListener("touchmove",s),n.addEventListener("touchend",l),function(){n.removeEventListener("mousedown",a),n.removeEventListener("mouseup",i),n.removeEventListener("touchstart",c),n.removeEventListener("touchmove",s),n.removeEventListener("touchend",l)}}),[e,n]),o}var Jy=function(){return vy};function Qy(e,t,n){var r=n.isInitialMount,o=n.highlightedIndex,a=n.items,i=n.environment,s=sy(n,Ry);Object(q.useEffect)((function(){r||Ly((function(){return e(Object(c.a)({highlightedIndex:o,highlightedItem:a[o],resultCount:a.length},s))}),i.document)}),t)}function eO(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,o=e.getItemNodeFromIndex,a=e.menuElement,i=e.scrollIntoView,c=Object(q.useRef)(!0);return Fy((function(){t<0||!n||!Object.keys(r.current).length||(!1===c.current?c.current=!0:i(o(t),a))}),[t]),c}var tO=vy;function nO(e,t,n){var r,o=t.type,a=t.props;switch(o){case n.ItemMouseMove:r={highlightedIndex:t.index};break;case n.MenuMouseLeave:r={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Xy(a,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:Xy(a,e,0)};break;case n.FunctionCloseMenu:r={isOpen:!1};break;case n.FunctionSetHighlightedIndex:r={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:r={inputValue:t.inputValue};break;case n.FunctionReset:r={highlightedIndex:$y(a,"highlightedIndex"),isOpen:$y(a,"isOpen"),selectedItem:$y(a,"selectedItem"),inputValue:$y(a,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Object(c.a)({},e,r)}function rO(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,o=e.itemToString,a=e.getItemNodeFromIndex,i=t.toLowerCase(),c=0;c<r.length;c++){var s=(c+n+1)%r.length,l=r[s];if(void 0!==l&&o(l).toLowerCase().startsWith(i)){var u=a(s);if(!(null==u?void 0:u.hasAttribute("disabled")))return s}}return n}uy.a.array.isRequired,uy.a.func,uy.a.func,uy.a.func,uy.a.bool,uy.a.number,uy.a.number,uy.a.number,uy.a.bool,uy.a.bool,uy.a.bool,uy.a.any,uy.a.any,uy.a.any,uy.a.string,uy.a.string,uy.a.string,uy.a.func,uy.a.string,uy.a.func,uy.a.func,uy.a.func,uy.a.func,uy.a.func,uy.a.shape({addEventListener:uy.a.func,removeEventListener:uy.a.func,document:uy.a.shape({getElementById:uy.a.func,activeElement:uy.a.any,body:uy.a.any})});var oO=hy(hy({},Gy),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.":"":"No results are available.":""}}),aO=vy;var iO=Object.freeze({__proto__:null,MenuKeyDownArrowDown:0,MenuKeyDownArrowUp:1,MenuKeyDownEscape:2,MenuKeyDownHome:3,MenuKeyDownEnd:4,MenuKeyDownEnter:5,MenuKeyDownSpaceButton:6,MenuKeyDownCharacter:7,MenuBlur:8,MenuMouseLeave:9,ItemMouseMove:10,ItemClick:11,ToggleButtonClick:12,ToggleButtonKeyDownArrowDown:13,ToggleButtonKeyDownArrowUp:14,ToggleButtonKeyDownCharacter:15,FunctionToggleMenu:16,FunctionOpenMenu:17,FunctionCloseMenu:18,FunctionSetHighlightedIndex:19,FunctionSelectItem:20,FunctionSetInputValue:21,FunctionReset:22});function cO(e,t){var n,r=t.type,o=t.props,a=t.shiftKey;switch(r){case 11:n={isOpen:$y(o,"isOpen"),highlightedIndex:$y(o,"highlightedIndex"),selectedItem:o.items[t.index]};break;case 15:var i=t.key,s=""+e.inputValue+i,l=rO({keysSoFar:s,highlightedIndex:e.selectedItem?o.items.indexOf(e.selectedItem):-1,items:o.items,itemToString:o.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});n=Object(c.a)({inputValue:s},l>=0&&{selectedItem:o.items[l]});break;case 13:n={highlightedIndex:Xy(o,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case 14:n={highlightedIndex:Xy(o,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case 5:case 6:n=Object(c.a)({isOpen:$y(o,"isOpen"),highlightedIndex:$y(o,"highlightedIndex")},e.highlightedIndex>=0&&{selectedItem:o.items[e.highlightedIndex]});break;case 3:n={highlightedIndex:Py(1,0,o.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:Py(-1,o.items.length-1,o.items.length,t.getItemNodeFromIndex,!1)};break;case 2:case 8:n={isOpen:!1,highlightedIndex:-1};break;case 7:var u=t.key,d=""+e.inputValue+u,f=rO({keysSoFar:d,highlightedIndex:e.highlightedIndex,items:o.items,itemToString:o.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});n=Object(c.a)({inputValue:d},f>=0&&{highlightedIndex:f});break;case 0:n={highlightedIndex:Cy(a?5:1,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,o.circularNavigation)};break;case 1:n={highlightedIndex:Cy(a?-5:-1,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,o.circularNavigation)};break;case 20:n={selectedItem:t.selectedItem};break;default:return nO(e,t,iO)}return Object(c.a)({},e,n)}var sO=["onMouseLeave","refKey","onKeyDown","onBlur","ref"],lO=["onClick","onKeyDown","refKey","ref"],uO=["item","index","onMouseMove","onClick","refKey","ref"];function dO(e){void 0===e&&(e={}),aO(e,dO);var t=Object(c.a)({},oO,e),n=t.items,r=t.scrollIntoView,o=t.environment,a=t.initialIsOpen,i=t.defaultIsOpen,s=t.itemToString,l=t.getA11ySelectionMessage,u=t.getA11yStatusMessage,d=Ky(cO,Yy(t),t),f=d[0],p=d[1],b=f.isOpen,h=f.highlightedIndex,m=f.selectedItem,v=f.inputValue,g=Object(q.useRef)(null),y=Object(q.useRef)(null),O=Object(q.useRef)({}),j=Object(q.useRef)(!0),w=Object(q.useRef)(null),x=zy(t),_=Object(q.useRef)(),E=Object(q.useRef)(!0),k=Wy({state:f,props:t}),S=Object(q.useCallback)((function(e){return O.current[x.getItemId(e)]}),[x]);Qy(u,[b,h,v,n],Object(c.a)({isInitialMount:E.current,previousResultCount:_.current,items:n,environment:o,itemToString:s},f)),Qy(l,[m],Object(c.a)({isInitialMount:E.current,previousResultCount:_.current,items:n,environment:o,itemToString:s},f));var C=eO({menuElement:y.current,highlightedIndex:h,isOpen:b,itemRefs:O,scrollIntoView:r,getItemNodeFromIndex:S});Object(q.useEffect)((function(){return w.current=Oy((function(e){e({type:21,inputValue:""})}),500),function(){w.current.cancel()}}),[]),Object(q.useEffect)((function(){v&&w.current(p)}),[p,v]),tO({isInitialMount:E.current,props:t,state:f}),Object(q.useEffect)((function(){E.current?(a||i||b)&&y.current&&y.current.focus():b?y.current&&y.current.focus():o.document.activeElement===y.current&&g.current&&(j.current=!1,g.current.focus())}),[b]),Object(q.useEffect)((function(){E.current||(_.current=n.length)}));var P=Zy(b,[y,g],o,(function(){p({type:8})})),T=Jy();Object(q.useEffect)((function(){E.current=!1}),[]),Object(q.useEffect)((function(){b||(O.current={})}),[b]);var M=Object(q.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),p({type:13,getItemNodeFromIndex:S,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),p({type:14,getItemNodeFromIndex:S,shiftKey:e.shiftKey})}}}),[p,S]),D=Object(q.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),p({type:0,getItemNodeFromIndex:S,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),p({type:1,getItemNodeFromIndex:S,shiftKey:e.shiftKey})},Home:function(e){e.preventDefault(),p({type:3,getItemNodeFromIndex:S})},End:function(e){e.preventDefault(),p({type:4,getItemNodeFromIndex:S})},Escape:function(){p({type:2})},Enter:function(e){e.preventDefault(),p({type:5})}," ":function(e){e.preventDefault(),p({type:6})}}}),[p,S]),I=Object(q.useCallback)((function(){p({type:16})}),[p]),R=Object(q.useCallback)((function(){p({type:18})}),[p]),A=Object(q.useCallback)((function(){p({type:17})}),[p]),N=Object(q.useCallback)((function(e){p({type:19,highlightedIndex:e})}),[p]),L=Object(q.useCallback)((function(e){p({type:20,selectedItem:e})}),[p]),F=Object(q.useCallback)((function(){p({type:22})}),[p]),z=Object(q.useCallback)((function(e){p({type:21,inputValue:e})}),[p]),B=Object(q.useCallback)((function(e){return Object(c.a)({id:x.labelId,htmlFor:x.toggleButtonId},e)}),[x]),H=Object(q.useCallback)((function(e,t){var n,r=void 0===e?{}:e,o=r.onMouseLeave,a=r.refKey,i=void 0===a?"ref":a,s=r.onKeyDown,l=r.onBlur,u=r.ref,d=sy(r,sO),f=(void 0===t?{}:t).suppressRefError,b=void 0!==f&&f,h=k.current.state;return T("getMenuProps",b,i,y),Object(c.a)(((n={})[i]=wy(u,(function(e){y.current=e})),n.id=x.menuId,n.role="listbox",n["aria-labelledby"]=x.labelId,n.tabIndex=-1,n),h.isOpen&&h.highlightedIndex>-1&&{"aria-activedescendant":x.getItemId(h.highlightedIndex)},{onMouseLeave:jy(o,(function(){p({type:9})})),onKeyDown:jy(s,(function(e){var t=Sy(e);t&&D[t]?D[t](e):Hy(t)&&p({type:7,key:t,getItemNodeFromIndex:S})})),onBlur:jy(l,(function(){!1!==j.current?!P.current.isMouseDown&&p({type:8}):j.current=!0}))},d)}),[p,k,D,P,T,x,S]);return{getToggleButtonProps:Object(q.useCallback)((function(e,t){var n,r=void 0===e?{}:e,o=r.onClick,a=r.onKeyDown,i=r.refKey,s=void 0===i?"ref":i,l=r.ref,u=sy(r,lO),d=(void 0===t?{}:t).suppressRefError,f=void 0!==d&&d,b=Object(c.a)(((n={})[s]=wy(l,(function(e){g.current=e})),n.id=x.toggleButtonId,n["aria-haspopup"]="listbox",n["aria-expanded"]=k.current.state.isOpen,n["aria-labelledby"]=x.labelId+" "+x.toggleButtonId,n),u);return u.disabled||(b.onClick=jy(o,(function(){p({type:12})})),b.onKeyDown=jy(a,(function(e){var t=Sy(e);t&&M[t]?M[t](e):Hy(t)&&p({type:15,key:t,getItemNodeFromIndex:S})}))),T("getToggleButtonProps",f,s,g),b}),[p,k,M,T,x,S]),getLabelProps:B,getMenuProps:H,getItemProps:Object(q.useCallback)((function(e){var t,n=void 0===e?{}:e,r=n.item,o=n.index,a=n.onMouseMove,i=n.onClick,s=n.refKey,l=void 0===s?"ref":s,u=n.ref,d=sy(n,uO),f=k.current,b=f.state,h=f.props,m=By(o,r,h.items);if(m<0)throw new Error("Pass either item or item index in getItemProps!");var v=Object(c.a)(((t={role:"option","aria-selected":""+(m===b.highlightedIndex),id:x.getItemId(m)})[l]=wy(u,(function(e){e&&(O.current[x.getItemId(m)]=e)})),t),d);return d.disabled||(v.onMouseMove=jy(a,(function(){o!==b.highlightedIndex&&(C.current=!1,p({type:10,index:o}))})),v.onClick=jy(i,(function(){p({type:11,index:o})}))),v}),[p,k,C,x]),toggleMenu:I,openMenu:A,closeMenu:R,setHighlightedIndex:N,selectItem:L,reset:F,setInputValue:z,highlightedIndex:h,isOpen:b,selectedItem:m,inputValue:v}}dO.stateChangeTypes=iO;uy.a.array.isRequired,uy.a.func,uy.a.func,uy.a.func,uy.a.bool,uy.a.number,uy.a.number,uy.a.number,uy.a.bool,uy.a.bool,uy.a.bool,uy.a.any,uy.a.any,uy.a.any,uy.a.string,uy.a.string,uy.a.string,uy.a.string,uy.a.string,uy.a.string,uy.a.func,uy.a.string,uy.a.string,uy.a.func,uy.a.func,uy.a.func,uy.a.func,uy.a.func,uy.a.func,uy.a.shape({addEventListener:uy.a.func,removeEventListener:uy.a.func,document:uy.a.shape({getElementById:uy.a.func,activeElement:uy.a.any,body:uy.a.any})});Object(c.a)({},Gy,{getA11yStatusMessage:_y,circularNavigation:!0});uy.a.array,uy.a.array,uy.a.array,uy.a.func,uy.a.func,uy.a.func,uy.a.number,uy.a.number,uy.a.number,uy.a.func,uy.a.func,uy.a.string,uy.a.string,uy.a.shape({addEventListener:uy.a.func,removeEventListener:uy.a.func,document:uy.a.shape({getElementById:uy.a.func,activeElement:uy.a.any,body:uy.a.any})});const fO=e=>null==e?void 0:e.name,pO=(e,t)=>{let{selectedItem:n}=e,{type:r,changes:o,props:{items:a}}=t;switch(r){case dO.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:a[n?Math.min(a.indexOf(n)+1,a.length-1):0]};case dO.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:a[n?Math.max(a.indexOf(n)-1,0):a.length-1]};default:return o}};function bO(e){var t;let{className:n,hideLabelFromVision:r,label:o,describedBy:a,options:i,onChange:l,value:u}=e;const{getLabelProps:p,getToggleButtonProps:b,getMenuProps:h,getItemProps:v,isOpen:g,highlightedIndex:y,selectedItem:O}=dO({initialSelectedItem:i[0],items:i,itemToString:fO,onSelectedItemChange:l,...null!=u?{selectedItem:u}:void 0,stateReducer:pO});const j=h({className:"components-custom-select-control__menu","aria-hidden":!g});return null!==(t=j["aria-activedescendant"])&&void 0!==t&&t.startsWith("downshift-null")&&delete j["aria-activedescendant"],Object(s.createElement)("div",{className:d()("components-custom-select-control",n)},r?Object(s.createElement)(m.a,Object(c.a)({as:"label"},p()),o):Object(s.createElement)("label",p({className:"components-custom-select-control__label"}),o),Object(s.createElement)(ld.a,b({"aria-label":o,"aria-labelledby":void 0,className:"components-custom-select-control__button",isSmall:!0,describedBy:a||(O?Object(f.sprintf)(Object(f.__)("Currently selected: %s"),O.name):Object(f.__)("No selection"))}),fO(O),Object(s.createElement)(qp.a,{icon:cb.a,className:"components-custom-select-control__button-icon"})),Object(s.createElement)("ul",j,g&&i.map((e,t)=>Object(s.createElement)("li",v({item:e,index:t,key:e.key,className:d()(e.className,"components-custom-select-control__item",{"is-highlighted":t===y,"has-hint":!!e.__experimentalHint}),style:e.style}),e.name,e.__experimentalHint&&Object(s.createElement)("span",{className:"components-custom-select-control__item-hint"},e.__experimentalHint),e===O&&Object(s.createElement)(qp.a,{icon:Yp.a,className:"components-custom-select-control__item-icon"})))))}var hO=n("vUUf"),mO=(n("GG7f"),n("wy2R")),vO=n.n(mO),gO=n("Xtko"),yO=n.n(gO);function OO(e){let{day:t,events:n=[]}=e;const r=Object(s.useRef)();return Object(s.useEffect)(()=>{var e;if(null==r||null===(e=r.current)||void 0===e||!e.parentNode)return;const{parentNode:o}=r.current,a=vO()(t).format("dddd, LL");if(!n.length)return void o.setAttribute("aria-label",a);const i=Object(f.sprintf)(Object(f._n)("%1$s. There is %2$d event.","%1$s. There are %2$d events.",n.length),a,n.length);o.setAttribute("aria-label",i)},[n.length]),Object(s.createElement)("div",{ref:r,className:d()("components-datetime__date__day",{"has-events":null==n?void 0:n.length})},t.format("D"))}class jO extends s.Component{constructor(){super(...arguments),this.onChangeMoment=this.onChangeMoment.bind(this),this.nodeRef=Object(s.createRef)(),this.onMonthPreviewedHandler=this.onMonthPreviewedHandler.bind(this)}onMonthPreviewedHandler(e){var t,n;null===(t=(n=this.props).onMonthPreviewed)||void 0===t||t.call(n,e.toISOString()),this.keepFocusInside()}keepFocusInside(){if(!this.nodeRef.current)return;const{ownerDocument:e}=this.nodeRef.current,{activeElement:t}=e;if(!t||!this.nodeRef.current.contains(e.activeElement)){const e=this.nodeRef.current.querySelector(".DayPicker_focusRegion");if(!e)return;e.focus()}}onChangeMoment(e){const{currentDate:t,onChange:n}=this.props,r=t?vO()(t):vO()(),o={hours:r.hours(),minutes:r.minutes(),seconds:0};n(e.set(o).format("YYYY-MM-DDTHH:mm:ss")),this.keepFocusInside()}getMomentDate(e){return null===e?null:e?vO()(e):vO()()}getEventsPerDay(e){var t;return null!==(t=this.props.events)&&void 0!==t&&t.length?this.props.events.filter(t=>e.isSame(t.date,"day")):[]}render(){const{currentDate:e,isInvalidDate:t}=this.props,n=this.getMomentDate(e);return Object(s.createElement)("div",{className:"components-datetime__date",ref:this.nodeRef},Object(s.createElement)(yO.a,{date:n,daySize:30,focused:!0,hideKeyboardShortcutsPanel:!0,key:"datepicker-controller-"+(n?n.format("MM-YYYY"):"null"),noBorder:!0,numberOfMonths:1,onDateChange:this.onChangeMoment,transitionDuration:0,weekDayFormat:"ddd",dayAriaLabelFormat:"dddd, LL",isRTL:Object(f.isRTL)(),isOutsideRange:e=>t&&t(e.toDate()),onPrevMonthClick:this.onMonthPreviewedHandler,onNextMonthClick:this.onMonthPreviewedHandler,renderDayContents:e=>Object(s.createElement)(OO,{day:e,events:this.getEventsPerDay(e)})}))}}var wO=jO,xO=n("FqII");var _O=()=>{const{timezone:e}=Object(xO.__experimentalGetSettings)(),t=(new Date).getTimezoneOffset()/60*-1;if(Number(e.offset)===t)return null;const n=e.offset>=0?"+":"",r=""!==e.abbr&&isNaN(e.abbr)?e.abbr:`UTC${n}${e.offset}`,o="UTC"===e.string?Object(f.__)("Coordinated Universal Time"):`(${r}) ${e.string.replace("_"," ")}`;return Object(s.createElement)(h.a,{position:"top center",text:o},Object(s.createElement)("div",{className:"components-datetime__timezone"},r))};function EO(e,t){return t?(e%12+12)%24:e%12}function kO(e){let{as:t,value:n,onUpdate:r,...o}=e;return Object(s.createElement)(t||"input",{key:n,defaultValue:n,onBlur:function(e){const{target:t}=e;if(n===t.value)return;const a=parseInt(t.value,10);!Object(l.isInteger)(a)||void 0!==o.max&&a>o.max||void 0!==o.min&&a<o.min?t.value=n:r(t.name,a)},...o})}var SO=function(e){let{is12Hour:t,currentTime:n,onChange:r}=e;const[o,a]=Object(s.useState)(()=>vO()(n).startOf("minutes"));Object(s.useEffect)(()=>{a(n?vO()(n).startOf("minutes"):vO()())},[n]);const{day:i,month:c,year:l,minutes:u,hours:p,am:b}=Object(s.useMemo)(()=>({day:o.format("DD"),month:o.format("MM"),year:o.format("YYYY"),minutes:o.format("mm"),hours:o.format(t?"hh":"HH"),am:o.format("H")<=11?"AM":"PM"}),[o,t]);function h(e){a(e),r(e.format("YYYY-MM-DDTHH:mm:ss"))}function m(e,n){let r=n;"hours"===e&&t&&(r=EO(n,"PM"===b));h(o.clone()[e](r))}function v(e){return()=>{if(b===e)return;const t=parseInt(p,10);h(o.clone().hours(EO(t,"PM"===e)))}}const g=Object(s.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-day"},Object(s.createElement)(kO,{"aria-label":Object(f.__)("Day"),className:"components-datetime__time-field-day-input",type:"number",name:"date",value:i,step:1,min:1,max:31,onUpdate:m})),y=Object(s.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-month"},Object(s.createElement)(kO,{as:"select","aria-label":Object(f.__)("Month"),className:"components-datetime__time-field-month-select",name:"month",value:c,onUpdate:(e,t)=>m(e,t-1)},Object(s.createElement)("option",{value:"01"},Object(f.__)("January")),Object(s.createElement)("option",{value:"02"},Object(f.__)("February")),Object(s.createElement)("option",{value:"03"},Object(f.__)("March")),Object(s.createElement)("option",{value:"04"},Object(f.__)("April")),Object(s.createElement)("option",{value:"05"},Object(f.__)("May")),Object(s.createElement)("option",{value:"06"},Object(f.__)("June")),Object(s.createElement)("option",{value:"07"},Object(f.__)("July")),Object(s.createElement)("option",{value:"08"},Object(f.__)("August")),Object(s.createElement)("option",{value:"09"},Object(f.__)("September")),Object(s.createElement)("option",{value:"10"},Object(f.__)("October")),Object(s.createElement)("option",{value:"11"},Object(f.__)("November")),Object(s.createElement)("option",{value:"12"},Object(f.__)("December")))),O=t?Object(s.createElement)(s.Fragment,null,g,y):Object(s.createElement)(s.Fragment,null,y,g);return Object(s.createElement)("div",{className:d()("components-datetime__time")},Object(s.createElement)("fieldset",null,Object(s.createElement)("legend",{className:"components-datetime__time-legend invisible"},Object(f.__)("Date")),Object(s.createElement)("div",{className:"components-datetime__time-wrapper"},O,Object(s.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-year"},Object(s.createElement)(kO,{"aria-label":Object(f.__)("Year"),className:"components-datetime__time-field-year-input",type:"number",name:"year",step:1,min:0,max:9999,value:l,onUpdate:m})))),Object(s.createElement)("fieldset",null,Object(s.createElement)("legend",{className:"components-datetime__time-legend invisible"},Object(f.__)("Time")),Object(s.createElement)("div",{className:"components-datetime__time-wrapper"},Object(s.createElement)("div",{className:"components-datetime__time-field components-datetime__time-field-time"},Object(s.createElement)(kO,{"aria-label":Object(f.__)("Hours"),className:"components-datetime__time-field-hours-input",type:"number",name:"hours",step:1,min:t?1:0,max:t?12:23,value:p,onUpdate:m}),Object(s.createElement)("span",{className:"components-datetime__time-separator","aria-hidden":"true"},":"),Object(s.createElement)(kO,{"aria-label":Object(f.__)("Minutes"),className:"components-datetime__time-field-minutes-input",type:"number",name:"minutes",step:1,min:0,max:59,value:u,onUpdate:m})),t&&Object(s.createElement)(ep,{className:"components-datetime__time-field components-datetime__time-field-am-pm"},Object(s.createElement)(ld.a,{variant:"AM"===b?"primary":"secondary",onClick:v("AM"),className:"components-datetime__time-am-button"},Object(f.__)("AM")),Object(s.createElement)(ld.a,{variant:"PM"===b?"primary":"secondary",onClick:v("PM"),className:"components-datetime__time-pm-button"},Object(f.__)("PM"))),Object(s.createElement)(_O,null))))};var CO=Object(s.forwardRef)((function(e,t){let{currentDate:n,is12Hour:r,isInvalidDate:o,onMonthPreviewed:a=l.noop,onChange:i,events:c}=e;const[u,d]=Object(s.useState)(!1);return Object(s.createElement)("div",{ref:t,className:"components-datetime"},!u&&Object(s.createElement)(s.Fragment,null,Object(s.createElement)(SO,{currentTime:n,onChange:i,is12Hour:r}),Object(s.createElement)(wO,{currentDate:n,onChange:i,isInvalidDate:o,events:c,onMonthPreviewed:a})),u&&Object(s.createElement)(s.Fragment,null,Object(s.createElement)("div",{className:"components-datetime__calendar-help"},Object(s.createElement)("h4",null,Object(f.__)("Click to Select")),Object(s.createElement)("ul",null,Object(s.createElement)("li",null,Object(f.__)("Click the right or left arrows to select other months in the past or the future.")),Object(s.createElement)("li",null,Object(f.__)("Click the desired day to select it."))),Object(s.createElement)("h4",null,Object(f.__)("Navigating with a keyboard")),Object(s.createElement)("ul",null,Object(s.createElement)("li",null,Object(s.createElement)("abbr",{"aria-label":Object(f._x)("Enter","keyboard button")},"↵")," ",Object(s.createElement)("span",null,Object(f.__)("Select the date in focus."))),Object(s.createElement)("li",null,Object(s.createElement)("abbr",{"aria-label":Object(f.__)("Left and Right Arrows")},"←/→")," ",Object(f.__)("Move backward (left) or forward (right) by one day.")),Object(s.createElement)("li",null,Object(s.createElement)("abbr",{"aria-label":Object(f.__)("Up and Down Arrows")},"↑/↓")," ",Object(f.__)("Move backward (up) or forward (down) by one week.")),Object(s.createElement)("li",null,Object(s.createElement)("abbr",{"aria-label":Object(f.__)("Page Up and Page Down")},Object(f.__)("PgUp/PgDn"))," ",Object(f.__)("Move backward (PgUp) or forward (PgDn) by one month.")),Object(s.createElement)("li",null,Object(s.createElement)("abbr",{"aria-label":Object(f.__)("Home and End")},Object(f.__)("Home/End"))," ",Object(f.__)("Go to the first (Home) or last (End) day of a week."))))),Object(s.createElement)("div",{className:"components-datetime__buttons"},!u&&n&&Object(s.createElement)(ld.a,{className:"components-datetime__date-reset-button",variant:"link",onClick:()=>i(null)},Object(f.__)("Reset")),Object(s.createElement)(ld.a,{className:"components-datetime__date-help-toggle",variant:"link",onClick:function(){d(!u)}},u?Object(f.__)("Close"):Object(f.__)("Calendar Help"))))}));var PO=[{name:Object(f._x)("None","Size of a UI element"),slug:"none"},{name:Object(f._x)("Small","Size of a UI element"),slug:"small"},{name:Object(f._x)("Medium","Size of a UI element"),slug:"medium"},{name:Object(f._x)("Large","Size of a UI element"),slug:"large"},{name:Object(f._x)("Extra Large","Size of a UI element"),slug:"xlarge"}];var TO=function(e){const{label:t,value:n,sizes:r=PO,icon:o,onChange:a,className:i=""}=e,c=Object(s.createElement)(s.Fragment,null,o&&Object(s.createElement)(fb.a,{icon:o}),t);return Object(s.createElement)(db,{className:d()(i,"block-editor-dimension-control"),label:c,hideLabelFromVision:!1,value:n,onChange:e=>{const t=((e,t)=>e.find(e=>t===e.slug))(r,e);t&&n!==t.slug?Object(l.isFunction)(a)&&a(t.slug):a(void 0)},options:(e=>{const t=e.map(e=>{let{name:t,slug:n}=e;return{label:t,value:n}});return[{label:Object(f.__)("Default"),value:""}].concat(t)})(r)})};const MO=Object(w.a)("div",{target:"e1ac3xxk0"})({name:"u2jump",styles:"position:relative;pointer-events:none;&::after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;}*{pointer-events:none;}"}),DO=Object(s.createContext)(!1),{Consumer:IO,Provider:RO}=DO,AO=["BUTTON","FIELDSET","INPUT","OPTGROUP","OPTION","SELECT","TEXTAREA"];function NO(e){let{className:t,children:n,isDisabled:r=!0,...o}=e;const a=Object(s.useRef)(null),i=()=>{a.current&&Sg.focus.focusable.find(a.current).forEach(e=>{Object(l.includes)(AO,e.nodeName)&&e.setAttribute("disabled",""),"A"===e.nodeName&&e.setAttribute("tabindex","-1");const t=e.getAttribute("tabindex");null!==t&&"-1"!==t&&e.removeAttribute("tabindex"),e.hasAttribute("contenteditable")&&e.setAttribute("contenteditable","false")})},u=Object(s.useCallback)(Object(l.debounce)(i,void 0,{leading:!0}),[]);return Object(s.useLayoutEffect)(()=>{if(!r)return;let e;return i(),a.current&&(e=new window.MutationObserver(u),e.observe(a.current,{childList:!0,attributes:!0,subtree:!0})),()=>{e&&e.disconnect(),u.cancel()}},[]),r?Object(s.createElement)(RO,{value:!0},Object(s.createElement)(MO,Object(c.a)({ref:a,className:d()(t,"components-disabled")},o),n)):Object(s.createElement)(RO,{value:!1},n)}NO.Context=DO,NO.Consumer=IO;var LO=NO;const FO="is-dragging-components-draggable";function zO(e){let{children:t,onDragStart:n,onDragOver:r,onDragEnd:o,cloneClassname:a,elementId:i,transferData:c,__experimentalTransferDataType:u="text",__experimentalDragComponent:d}=e;const f=Object(s.useRef)(null),p=Object(s.useRef)(()=>{});return Object(s.useEffect)(()=>()=>{p.current()},[]),Object(s.createElement)(s.Fragment,null,t({onDraggableStart:function(e){const{ownerDocument:t}=e.target;e.dataTransfer.setData(u,JSON.stringify(c));const o=t.createElement("div");o.style.top=0,o.style.left=0;const s=t.createElement("div");"function"==typeof e.dataTransfer.setDragImage&&(s.classList.add("components-draggable__invisible-drag-image"),t.body.appendChild(s),e.dataTransfer.setDragImage(s,0,0)),o.classList.add("components-draggable__clone"),a&&o.classList.add(a);let d=0,b=0;if(f.current){d=e.clientX,b=e.clientY,o.style.transform=`translate( ${d}px, ${b}px )`;const n=t.createElement("div");n.innerHTML=f.current.innerHTML,o.appendChild(n),t.body.appendChild(o)}else{const e=t.getElementById(i),n=e.getBoundingClientRect(),r=e.parentNode,a=parseInt(n.top,10),c=parseInt(n.left,10);o.style.width=n.width+0+"px";const s=e.cloneNode(!0);s.id="clone-"+i,d=c-0,b=a-0,o.style.transform=`translate( ${d}px, ${b}px )`,Array.from(s.querySelectorAll("iframe")).forEach(e=>e.parentNode.removeChild(e)),o.appendChild(s),r.appendChild(o)}let h=e.clientX,m=e.clientY;const v=Object(l.throttle)((function(e){if(h===e.clientX&&m===e.clientY)return;const t=d+e.clientX-h,n=b+e.clientY-m;o.style.transform=`translate( ${t}px, ${n}px )`,h=e.clientX,m=e.clientY,d=t,b=n,r&&r(e)}),16);let g;t.addEventListener("dragover",v),t.body.classList.add(FO),e.persist(),n&&(g=setTimeout(()=>n(e))),p.current=()=>{o&&o.parentNode&&o.parentNode.removeChild(o),s&&s.parentNode&&s.parentNode.removeChild(s),t.body.classList.remove(FO),t.removeEventListener("dragover",v),clearTimeout(g)}},onDraggableEnd:function(e){e.preventDefault(),p.current(),o&&o(e)}}),d&&Object(s.createElement)("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:f},d))}var BO=n("NTP4");var HO=0;function VO(){var e=HO;return HO++,e}var WO=function(e){var t=e.children,n=e.initial,r=e.isPresent,o=e.onExitComplete,a=e.custom,i=e.presenceAffectsLayout,c=gt(UO),s=gt(VO),l=Object(q.useMemo)((function(){return{id:s,initial:n,isPresent:r,custom:a,onExitComplete:function(e){c.set(e,!0);var t=!0;c.forEach((function(e){e||(t=!1)})),t&&(null==o||o())},register:function(e){return c.set(e,!1),function(){return c.delete(e)}}}}),i?void 0:[r]);return Object(q.useMemo)((function(){c.forEach((function(e,t){return c.set(t,!1)}))}),[r]),q.useEffect((function(){!r&&!c.size&&(null==o||o())}),[r]),q.createElement(vt.Provider,{value:l},t)};function UO(){return new Map}function KO(e){return e.key||""}var GO=function(e){var t=e.children,n=e.custom,r=e.initial,o=void 0===r||r,a=e.onExitComplete,i=e.exitBeforeEnter,c=e.presenceAffectsLayout,s=void 0===c||c,l=function(){var e=Object(q.useRef)(!1),t=st(Object(q.useState)(0),2),n=t[0],r=t[1];return jr((function(){return e.current=!0})),Object(q.useCallback)((function(){!e.current&&r(n+1)}),[n])}(),u=Object(q.useContext)(jc);xc(u)&&(l=u.forceUpdate);var d=Object(q.useRef)(!0),f=function(e){var t=[];return q.Children.forEach(e,(function(e){Object(q.isValidElement)(e)&&t.push(e)})),t}(t),p=Object(q.useRef)(f),b=Object(q.useRef)(new Map).current,h=Object(q.useRef)(new Set).current;if(function(e,t){e.forEach((function(e){var n=KO(e);t.set(n,e)}))}(f,b),d.current)return d.current=!1,q.createElement(q.Fragment,null,f.map((function(e){return q.createElement(WO,{key:KO(e),isPresent:!0,initial:!!o&&void 0,presenceAffectsLayout:s},e)})));for(var m=lt([],st(f)),v=p.current.map(KO),g=f.map(KO),y=v.length,O=0;O<y;O++){var j=v[O];-1===g.indexOf(j)?h.add(j):h.delete(j)}return i&&h.size&&(m=[]),h.forEach((function(e){if(-1===g.indexOf(e)){var t=b.get(e);if(t){var r=v.indexOf(e);m.splice(r,0,q.createElement(WO,{key:KO(t),isPresent:!1,onExitComplete:function(){b.delete(e),h.delete(e);var t=p.current.findIndex((function(t){return t.key===e}));p.current.splice(t,1),h.size||(p.current=f,l(),a&&a())},custom:n,presenceAffectsLayout:s},t))}}})),m=m.map((function(e){var t=e.key;return h.has(t)?e:q.createElement(WO,{key:KO(e),isPresent:!0,presenceAffectsLayout:s},e)})),p.current=m,q.createElement(q.Fragment,null,h.size?m:m.map((function(e){return Object(q.cloneElement)(e)})))};function $O(e){let{className:t,label:n,onFilesDrop:r,onHTMLDrop:o,onDrop:a}=e;const[i,c]=Object(s.useState)(),[u,b]=Object(s.useState)(),[h,m]=Object(s.useState)(),v=Object(p.__experimentalUseDropZone)({onDrop(e){const t=Object(Sg.getFilesFromDataTransfer)(e.dataTransfer),n=e.dataTransfer.getData("text/html");t.length&&r?r(t):n&&o?o(n):a&&a(e)},onDragStart(e){c(!0);let t="default";Object(l.includes)(e.dataTransfer.types,"Files")||Object(Sg.getFilesFromDataTransfer)(e.dataTransfer).length>0?t="file":Object(l.includes)(e.dataTransfer.types,"text/html")&&(t="html"),m(t)},onDragEnd(){c(!1),m()},onDragEnter(){b(!0)},onDragLeave(){b(!1)}}),g=Object(p.useReducedMotion)();let y;const O={hidden:{scaleY:0,opacity:0},show:{scaleY:1,opacity:1,transition:{type:"tween",duration:.2,delay:.1,delayChildren:.2}},exit:{scaleY:1,opacity:0,transition:{duration:.3,delayChildren:0}}},j={hidden:{opacity:0,scale:.75},show:{opacity:1,scale:1},exit:{opacity:0,scale:.9}};u&&(y=Object(s.createElement)(rs.div,{variants:O,initial:g?"show":"hidden",animate:"show",exit:g?"show":"exit",className:"components-drop-zone__content"},Object(s.createElement)(rs.div,{variants:j},Object(s.createElement)(qp.a,{icon:BO.a,className:"components-drop-zone__content-icon"}),Object(s.createElement)("span",{className:"components-drop-zone__content-text"},n||Object(f.__)("Drop files to upload")))));const w=d()("components-drop-zone",t,{"is-active":(i||u)&&("file"===h&&r||"html"===h&&o||"default"===h&&a),"is-dragging-over-document":i,"is-dragging-over-element":u,["is-dragging-"+h]:!!h});return Object(s.createElement)("div",{ref:v,className:w},g?y:Object(s.createElement)(GO,null,y))}function qO(e){let{children:t}=e;return gs()("wp.components.DropZoneProvider",{hint:"wp.component.DropZone no longer needs a provider. wp.components.DropZoneProvider is safe to remove from your code."}),t}var YO=Object(s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(s.createElement)(i.Path,{d:"M5 17.7c.4.5.8.9 1.2 1.2l1.1-1.4c-.4-.3-.7-.6-1-1L5 17.7zM5 6.3l1.4 1.1c.3-.4.6-.7 1-1L6.3 5c-.5.4-.9.8-1.3 1.3zm.1 7.8l-1.7.5c.2.6.4 1.1.7 1.6l1.5-.8c-.2-.4-.4-.8-.5-1.3zM4.8 12v-.7L3 11.1v1.8l1.7-.2c.1-.2.1-.5.1-.7zm3 7.9c.5.3 1.1.5 1.6.7l.5-1.7c-.5-.1-.9-.3-1.3-.5l-.8 1.5zM19 6.3c-.4-.5-.8-.9-1.2-1.2l-1.1 1.4c.4.3.7.6 1 1L19 6.3zm-.1 3.6l1.7-.5c-.2-.6-.4-1.1-.7-1.6l-1.5.8c.2.4.4.8.5 1.3zM5.6 8.6l-1.5-.8c-.3.5-.5 1-.7 1.6l1.7.5c.1-.5.3-.9.5-1.3zm2.2-4.5l.8 1.5c.4-.2.8-.4 1.3-.5l-.5-1.7c-.6.2-1.1.4-1.6.7zm8.8 13.5l1.1 1.4c.5-.4.9-.8 1.2-1.2l-1.4-1.1c-.2.3-.5.6-.9.9zm1.8-2.2l1.5.8c.3-.5.5-1.1.7-1.6l-1.7-.5c-.1.5-.3.9-.5 1.3zm2.6-4.3l-1.7.2v1.4l1.7.2V12v-.9zM11.1 3l.2 1.7h1.4l.2-1.7h-1.8zm3 2.1c.5.1.9.3 1.3.5l.8-1.5c-.5-.3-1.1-.5-1.6-.7l-.5 1.7zM12 19.2h-.7l-.2 1.8h1.8l-.2-1.7c-.2-.1-.5-.1-.7-.1zm2.1-.3l.5 1.7c.6-.2 1.1-.4 1.6-.7l-.8-1.5c-.4.2-.8.4-1.3.5z"}));var XO=function(e){let{fill:t}=e;return t?Object(s.createElement)("span",{className:"components-swatch",style:{background:t}}):Object(s.createElement)(fb.a,{icon:YO})};function ZO(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"90deg";const n=100/e.length,r=e.map((e,t)=>`${e} ${t*n}%, ${e} ${(t+1)*n}%`).join(", ");return`linear-gradient( ${t}, ${r} )`}Object(_.b)([E.a]);var JO=function(e){let{values:t}=e;return Object(s.createElement)(XO,{fill:t&&ZO(t,"135deg")})};function QO(e){let{label:t,value:n,colors:r,disableCustomColors:o,enableAlpha:a,onChange:i}=e;const[c,l]=Object(s.useState)(!1);return Object(s.createElement)(s.Fragment,null,Object(s.createElement)(ld.a,{className:"components-color-list-picker__swatch-button",icon:Object(s.createElement)(XO,{fill:n}),onClick:()=>l(e=>!e)},t),c&&Object(s.createElement)(Eg,{className:"components-color-list-picker__color-picker",colors:r,value:n,clearable:!1,onChange:i,disableCustomColors:o,enableAlpha:a}))}var ej=function(e){let{colors:t,labels:n,value:r=[],disableCustomColors:o,enableAlpha:a,onChange:i}=e;return Object(s.createElement)("div",{className:"components-color-list-picker"},n.map((e,n)=>Object(s.createElement)(QO,{key:n,label:e,value:r[n],colors:t,disableCustomColors:o,enableAlpha:a,onChange:e=>{const t=r.slice();t[n]=e,i(t)}})))};const tj=["#333","#CCC"];function nj(e){let{value:t,onChange:n}=e;const r=!!t,o=r?t:tj,a=ZO(o),i=(c=o).map((e,t)=>({position:100*t/(c.length-1),color:e}));var c;return Object(s.createElement)(tg,{disableInserter:!0,background:a,hasGradient:r,value:i,onChange:e=>{const t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(e=>{let{color:t}=e;return t})}(e);n(t)}})}var rj=function(e){let{colorPalette:t,duotonePalette:n,disableCustomColors:r,disableCustomDuotone:o,value:a,onChange:i}=e;const[c,u]=Object(s.useMemo)(()=>{return!(e=t)||e.length<2?["#000","#fff"]:e.map(e=>{let{color:t}=e;return{color:t,brightness:Object(_.a)(t).brightness()}}).reduce((e,t)=>{let[n,r]=e;return[t.brightness<=n.brightness?t:n,t.brightness>=r.brightness?t:r]},[{brightness:1},{brightness:0}]).map(e=>{let{color:t}=e;return t});var e},[t]);return Object(s.createElement)(Wv,{options:n.map(e=>{let{colors:t,slug:n,name:r}=e;const o={background:ZO(t,"135deg"),color:"transparent"},c=null!=r?r:Object(f.sprintf)(Object(f.__)("Duotone code: %s"),n),u=r?Object(f.sprintf)(Object(f.__)("Duotone: %s"),r):c,d=Object(l.isEqual)(t,a);return Object(s.createElement)(Wv.Option,{key:n,value:t,isSelected:d,"aria-label":u,tooltipText:c,style:o,onClick:()=>{i(d?void 0:t)}})}),actions:Object(s.createElement)(Wv.ButtonAction,{onClick:()=>i(void 0)},Object(f.__)("Clear"))},!r&&!o&&Object(s.createElement)(nj,{value:a,onChange:i}),!o&&Object(s.createElement)(ej,{labels:[Object(f.__)("Shadows"),Object(f.__)("Highlights")],colors:t,value:a,disableCustomColors:r,enableAlpha:!0,onChange:e=>{e[0]||(e[0]=c),e[1]||(e[1]=u);const t=e.length>=2?e:void 0;i(t)}}))},oj=n("K+tz");const aj=Object(w.a)(qp.a,{target:"etxm6pv0"})({name:"bqq7t3",styles:"width:1.4em;height:1.4em;margin:-0.2em 0.1em 0;vertical-align:middle;fill:currentColor"});var ij=Object(s.forwardRef)((function(e,t){let{href:n,children:r,className:o,rel:a="",...i}=e;a=Object(l.uniq)(Object(l.compact)([...a.split(" "),"external","noreferrer","noopener"])).join(" ");const u=d()("components-external-link",o);return Object(s.createElement)("a",Object(c.a)({},i,{className:u,href:n,target:"_blank",rel:a,ref:t}),r,Object(s.createElement)(m.a,{as:"span"},Object(f.__)("(opens in a new tab)")),Object(s.createElement)(aj,{icon:oj.a,className:"components-external-link__icon"}))})),cj=["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation","modal","unstable_disclosureRef","setModal","unstable_referenceRef","unstable_popoverRef","unstable_arrowRef","unstable_popoverStyles","unstable_arrowStyles","unstable_originalPlacement","unstable_update","placement","place"],sj=([].concat(cj,["size"]),cj),lj=["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation","modal","unstable_disclosureRef","setModal"],uj=[].concat(lj,["hideOnEsc","hideOnClickOutside","preventBodyScroll","unstable_initialFocusRef","unstable_finalFocusRef","unstable_orphan","unstable_autoFocusOnShow","unstable_autoFocusOnHide"]),dj=lj,fj=n("71Og"),pj=n("JLmN"),bj=Object(_e.a)({name:"Button",compose:pj.a,keys:[],useProps:function(e,t){var n=t.ref,r=Object($.a)(t,["ref"]),o=Object(q.useRef)(null),a=Object(q.useState)(void 0),i=a[0],c=a[1],s=Object(q.useState)("button"),l=s[0],u=s[1];return Object(q.useEffect)((function(){var e=o.current;e&&(Object(fj.a)(e)||("A"!==e.tagName&&c("button"),u(void 0)))}),[]),Object($.b)({ref:Object(Ee.a)(o,n),role:i,type:l},r)}}),hj=(Object(xe.a)({as:"button",memo:!0,useHook:bj}),Object(_e.a)({name:"Disclosure",compose:bj,keys:lm,useProps:function(e,t){var n=t.onClick,r=t["aria-controls"],o=Object($.a)(t,["onClick","aria-controls"]),a=Object(ke.a)(n),i=r?r+" "+e.baseId:e.baseId,c=Object(q.useCallback)((function(t){var n,r;null===(n=a.current)||void 0===n||n.call(a,t),t.defaultPrevented||null===(r=e.toggle)||void 0===r||r.call(e)}),[e.toggle]);return Object($.b)({"aria-expanded":!!e.visible,"aria-controls":i,onClick:c},o)}})),mj=(Object(xe.a)({as:"button",memo:!0,useHook:hj}),Object(_e.a)({name:"DialogDisclosure",compose:hj,keys:dj,useProps:function(e,t){var n=t.ref,r=t.onClick,o=Object($.a)(t,["ref","onClick"]),a=Object(q.useRef)(null),i=Object(ke.a)(r),c=Object(q.useState)(!1),s=c[0],l=c[1],u=e.unstable_disclosureRef;Object(X.a)((function(){var t=a.current;u&&!u.current&&(u.current=t);var n=!(null!=u&&u.current)||u.current===t;l(!!e.visible&&n)}),[e.visible,u]);var d=Object(q.useCallback)((function(e){var t;null===(t=i.current)||void 0===t||t.call(i,e),e.defaultPrevented||u&&(u.current=e.currentTarget)}),[u]);return Object($.b)({ref:Object(Ee.a)(a,n),"aria-haspopup":"dialog","aria-expanded":s,onClick:d},o)}})),vj=(Object(xe.a)({as:"button",memo:!0,useHook:mj}),Object(_e.a)({name:"PopoverDisclosure",compose:mj,keys:sj,useProps:function(e,t){var n=t.ref,r=Object($.a)(t,["ref"]);return Object($.b)({ref:Object(Ee.a)(e.unstable_referenceRef,n)},r)}})),gj=Object(xe.a)({as:"button",memo:!0,useHook:vj});const yj=Object(s.createContext)({});var Oj=n("SSiF"),jj=n.n(Oj);var wj=n("PcHe"),xj=n("kqkJ");function _j(e,t){var n=Object(q.useRef)(!1);Object(q.useEffect)((function(){if(n.current)return e();n.current=!0}),t)}var Ej=n("AClM");function kj(e,t){var n=e.indexOf(t);return function(e,t){return-1===t?e:[].concat(e.slice(0,t),e.slice(t+1))}(e,n)}var Sj=Object(q.createContext)(null);var Cj=!1;if("undefined"!=typeof window){var Pj={get passive(){Cj=!0}};window.addEventListener("testPassive",null,Pj),window.removeEventListener("testPassive",null,Pj)}var Tj="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),Mj=[],Dj=!1,Ij=-1,Rj=void 0,Aj=void 0,Nj=function(e){return Mj.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},Lj=function(e){var t=e||window.event;return!!Nj(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},Fj=function(){void 0!==Aj&&(document.body.style.paddingRight=Aj,Aj=void 0),void 0!==Rj&&(document.body.style.overflow=Rj,Rj=void 0)},zj=function(e,t){if(e){if(!Mj.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};Mj=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(Mj),[n]),Tj?(e.ontouchstart=function(e){1===e.targetTouches.length&&(Ij=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-Ij;!Nj(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?Lj(e):e.stopPropagation())}(t,e)},Dj||(document.addEventListener("touchmove",Lj,Cj?{passive:!1}:void 0),Dj=!0)):function(e){if(void 0===Aj){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(Aj=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===Rj&&(Rj=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},Bj=n("APjL"),Hj=n("utzN"),Vj=Object(q.createContext)(void 0),Wj=n("Ptb8");function Uj(e,t){var n=Boolean(t.preventBodyScroll&&t.visible);Object(q.useEffect)((function(){var t=e.current;if(t&&n)return zj(t,{reserveScrollBarGap:!0}),function(){var e;(e=t)?(Mj=Mj.filter((function(t){return t.targetElement!==e})),Tj?(e.ontouchstart=null,e.ontouchmove=null,Dj&&0===Mj.length&&(document.removeEventListener("touchmove",Lj,Cj?{passive:!1}:void 0),Dj=!1)):Mj.length||Fj()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}}),[e,n])}function Kj(e){null!=e.parentNode&&e.parentNode.removeChild(e)}function Gj(e,t,n){var r=function(e,t){var n=Object(q.useRef)(null);return Object(q.useEffect)((function(){var r=e.current;r&&t.visible&&(n.current=Object(Bj.a)(r,mm.__selector))}),[e,t.visible]),n}(e,n),o=n.visible&&n.modal,a=Object(q.useRef)(null),i=Object(q.useRef)(null);Object(q.useEffect)((function(){if(o){var e=r.current;if(e){if(!a.current){var t=Object(J.a)(e);a.current=t.createElement("div"),a.current.className="__reakit-focus-trap",a.current.tabIndex=0,a.current.style.position="fixed",a.current.setAttribute("aria-hidden","true")}return i.current||(i.current=a.current.cloneNode()),e.insertAdjacentElement("beforebegin",a.current),e.insertAdjacentElement("afterend",i.current),function(){a.current&&Kj(a.current),i.current&&Kj(i.current)}}}}),[r,o]),Object(q.useEffect)((function(){var n=a.current,r=i.current;if(o&&n&&r){var c=function(n){var o=e.current;if(o&&!t.length){n.preventDefault();var a=n.target===r?Object(xj.a)(o):Object(xj.b)(o);a?a.focus():o.focus()}};return n.addEventListener("focus",c),r.addEventListener("focus",c),function(){n.removeEventListener("focus",c),r.removeEventListener("focus",c)}}}),[e,t,o])}function $j(e,t,n){var r=n.unstable_autoFocusOnHide&&!n.visible,o=!(!n.animated||!n.animating);_j((function(){var a;if(r&&!o&&!function(e){var t=e.current;if(!t)return!1;var n=Object(Fe.a)(t);return!!n&&(!Object(Hj.a)(t,n)&&(!!Object(xj.d)(n)||"true"===n.getAttribute("data-dialog")))}(e)){var i=(null===(a=n.unstable_finalFocusRef)||void 0===a?void 0:a.current)||t.current;if(i){if(i.id){var c=Object(J.a)(i).querySelector("[aria-activedescendant='"+i.id+"']");if(c)return void Object(Ej.a)(c)}Object(Ej.a)(i)}else;}}),[r,o,e,t])}var qj=Object(q.createContext)({});function Yj(e,t,n,r,o,a,i){var c=Object(ke.a)(o);Object(q.useEffect)((function(){if(a){var o=function(r){if(c.current){var o,a=e.current,i=t.current,s=r.target;if(a)if(function(e){var t=Object(J.a)(e);return"HTML"===e.tagName||Object(Hj.a)(t.body,e)}(s))if(!Object(Hj.a)(a,s))if(!i||!function(e,t){return Object(Hj.a)(t,e)}(s,i))if(!(null===(o=s.classList)||void 0===o?void 0:o.contains("__reakit-focus-trap"))&&!n.some(function(e){return function(t){var n=t.current;if(!n)return!1;if(Object(Hj.a)(n,e))return!0;var r=Object(J.a)(n).querySelector('[data-dialog-ref="'+n.id+'"]');return!!r&&Object(Hj.a)(r,e)}}(s)))c.current(r)}},s=Object(J.a)(e.current);return s.addEventListener(r,o,i),function(){return s.removeEventListener(r,o,i)}}}),[e,t,n,r,a,c])}function Xj(e,t,n,r){var o=function(e,t){var n=Object(q.useRef)();return Object(q.useEffect)((function(){if(t.visible&&t.hideOnClickOutside){var r=Object(J.a)(e.current),o=function(e){n.current=e.target};return r.addEventListener("mousedown",o),function(){return r.removeEventListener("mousedown",o)}}}),[t.visible,t.hideOnClickOutside,e]),n}(e,r);Yj(e,t,n,"click",(function(e){var t;o.current===e.target&&(null===(t=r.hide)||void 0===t||t.call(r))}),r.visible&&r.hideOnClickOutside),Yj(e,t,n,"focusin",(function(t){var n,o=Object(J.a)(e.current);t.target!==o&&t.target!==o.body&&(null===(n=r.hide)||void 0===n||n.call(r))}),r.visible&&r.hideOnClickOutside)}function Zj(e,t){Object(q.useEffect)((function(){var n=e.current;if(t.visible&&n){var r=new MutationObserver((function(e){if(e[0].target===n){var t,r=Object(J.a)(n),o=Object(Fe.a)(n);o!==r.body&&(t=o,Array.isArray(t)?t.length:Object(Wj.a)(t)?Object.keys(t).length:null!=t&&""!==t)||n.focus()}}));return r.observe(n,{childList:!0,subtree:!0}),function(){r.disconnect()}}}),[t.visible,e])}function Jj(e){return e&&e.tagName&&"HTML"!==e.tagName&&e!==Object(J.a)(e).body}var Qj=Object(_e.a)({name:"Dialog",compose:dm,keys:uj,useOptions:function(e){var t=e.modal,n=void 0===t||t,r=e.hideOnEsc,o=void 0===r||r,a=e.hideOnClickOutside,i=void 0===a||a,c=e.preventBodyScroll,s=void 0===c?n:c,l=e.unstable_autoFocusOnShow,u=void 0===l||l,d=e.unstable_autoFocusOnHide,f=void 0===d||d,p=e.unstable_orphan,b=Object($.a)(e,["modal","hideOnEsc","hideOnClickOutside","preventBodyScroll","unstable_autoFocusOnShow","unstable_autoFocusOnHide","unstable_orphan"]);return Object($.b)({modal:n,hideOnEsc:o,hideOnClickOutside:i,preventBodyScroll:n&&s,unstable_autoFocusOnShow:u,unstable_autoFocusOnHide:f,unstable_orphan:n&&p},b)},useProps:function(e,t){var n=t.ref,r=t.onKeyDown,o=t.onBlur,a=t.wrapElement,i=t.tabIndex,c=Object($.a)(t,["ref","onKeyDown","onBlur","wrapElement","tabIndex"]),s=Object(q.useRef)(null),l=Object(q.useContext)(Vj),u=l&&l===e.baseId,d=function(e,t){var n=Object(q.useRef)(null),r=!(!t.animated||!t.animating);return Object(q.useEffect)((function(){if(!t.visible&&!r){var o=function(e){var r=e.target;"focus"in r&&(n.current=r,t.unstable_disclosureRef&&(t.unstable_disclosureRef.current=r))},a=Object(J.a)(e.current);return a.addEventListener("focusin",o),function(){return a.removeEventListener("focusin",o)}}}),[t.visible,r,t.unstable_disclosureRef,e]),Object(q.useEffect)((function(){var e;if(t.visible&&!r){var o=function(e){var t=e.currentTarget;Object(fj.a)(t)&&(e.preventDefault(),t.focus())},a=(null===(e=t.unstable_disclosureRef)||void 0===e?void 0:e.current)||n.current;return null==a||a.addEventListener("mousedown",o),function(){return null==a?void 0:a.removeEventListener("mousedown",o)}}}),[t.visible,r,t.unstable_disclosureRef]),t.unstable_disclosureRef||n}(s,e),f=Object(ke.a)(r),p=Object(ke.a)(o),b=function(e,t){var n=Object(q.useReducer)((function(e){return e+1}),0),r=n[0],o=n[1];return Object(X.a)((function(){var n=e.current;t.visible&&r&&(Jj(Object(Fe.a)(n))||null==n||n.focus())}),[r,e]),Object(q.useCallback)((function(e){t.visible&&(Jj(Be(e))||o())}),[t.visible])}(s,e),h=function(e,t){var n=Object(q.useContext)(qj),r=Object(q.useState)([]),o=r[0],a=r[1],i=Object(q.useState)(o),c=i[0],s=i[1],l=Object(q.useCallback)((function(e){var t;null===(t=n.addDialog)||void 0===t||t.call(n,e),a((function(t){return[].concat(t,[e])}))}),[n.addDialog]),u=Object(q.useCallback)((function(e){var t;null===(t=n.removeDialog)||void 0===t||t.call(n,e),a((function(t){return kj(t,e)}))}),[n.removeDialog]),d=Object(q.useCallback)((function(e){var t;null===(t=n.showDialog)||void 0===t||t.call(n,e),s((function(t){return[].concat(t,[e])}))}),[n.showDialog]),f=Object(q.useCallback)((function(e){var t;null===(t=n.hideDialog)||void 0===t||t.call(n,e),s((function(t){return kj(t,e)}))}),[n.hideDialog]);Object(q.useEffect)((function(){var r;if(!t.unstable_orphan)return null===(r=n.addDialog)||void 0===r||r.call(n,e),function(){var t;null===(t=n.removeDialog)||void 0===t||t.call(n,e)}}),[t.unstable_orphan,n.addDialog,e,n.removeDialog]),Object(q.useEffect)((function(){var r;if(!t.unstable_orphan&&t.modal&&t.visible)return null===(r=n.showDialog)||void 0===r||r.call(n,e),function(){var t;null===(t=n.hideDialog)||void 0===t||t.call(n,e)}}),[t.unstable_orphan,t.modal,t.visible,n.showDialog,e,n.hideDialog]),Object(q.useEffect)((function(){var e;!1===n.visible&&t.visible&&!t.unstable_orphan&&(null===(e=t.hide)||void 0===e||e.call(t))}),[n.visible,t.visible,t.hide,t.unstable_orphan]);var p=Object(q.useMemo)((function(){return{visible:t.visible,addDialog:l,removeDialog:u,showDialog:d,hideDialog:f}}),[t.visible,l,u,d,f]);return{dialogs:o,visibleModals:c,wrap:Object(q.useCallback)((function(e){return Object(q.createElement)(qj.Provider,{value:p},e)}),[p])}}(s,e),m=h.dialogs,v=h.visibleModals,g=h.wrap,y=!(!e.modal||v.length)||void 0;Uj(s,e),Gj(s,v,e),Zj(s,e),function(e,t,n){var r=n.unstable_initialFocusRef,o=n.visible&&n.unstable_autoFocusOnShow,a=!(!n.animated||!n.animating);_j((function(){var n=e.current;if(o&&n&&!a&&!t.some((function(e){return e.current&&!e.current.hidden})))if(null!=r&&r.current)r.current.focus({preventScroll:!0});else{var i=Object(xj.a)(n,!0),c=function(){return Object(wj.a)(n)};i?Object(Ej.a)(i,{preventScroll:!0,isActive:c}):Object(Ej.a)(n,{preventScroll:!0,isActive:c})}}),[e,o,a,t,r])}(s,m,e),$j(s,d,e),Xj(s,d,m,e),function(e,t,n){var r=function(r){return Yj(e,{current:null},t,r,(function(e){e.stopPropagation(),e.preventDefault()}),n.visible&&n.modal,!0)};r("mouseover"),r("mousemove"),r("mouseout")}(s,m,e);var O=Object(q.useCallback)((function(t){var n;null===(n=f.current)||void 0===n||n.call(f,t),t.defaultPrevented||"Escape"===t.key&&e.hideOnEsc&&e.hide&&(t.stopPropagation(),e.hide())}),[e.hideOnEsc,e.hide]),j=Object(q.useCallback)((function(e){var t;null===(t=p.current)||void 0===t||t.call(p,e),b(e)}),[b]),w=Object(q.useCallback)((function(t){return t=g(t),e.modal&&!u&&(t=Object(q.createElement)(mm,null,t)),a&&(t=a(t)),Object(q.createElement)(Sj.Provider,{value:null},t)}),[g,e.modal,u,a]);return Object($.b)({ref:Object(Ee.a)(s,n),role:"dialog",tabIndex:null!=i?i:-1,"aria-modal":y,"data-dialog":!0,onKeyDown:O,onBlur:j,wrapElement:w},c)}}),ew=(Object(xe.a)({as:"div",useHook:Qj,useCreateElement:function(e,t,n){return Object(Te.a)(e,t,n)}}),Object(_e.a)({name:"Popover",compose:Qj,keys:cj,useOptions:function(e){var t=e.modal,n=void 0!==t&&t,r=Object($.a)(e,["modal"]);return Object($.b)({modal:n},r)},useProps:function(e,t){var n=t.ref,r=t.style,o=Object($.a)(t,["ref","style"]);return Object($.b)({ref:Object(Ee.a)(e.unstable_popoverRef,n),style:Object($.b)(Object($.b)({},e.unstable_popoverStyles),r)},o)}})),tw=Object(xe.a)({as:"div",useHook:ew,useCreateElement:function(e,t,n){return Object(Te.a)(e,t,n)}});const nw=Object(w.a)(tw,{target:"e1vtu5161"})("z-index:",1e4,";box-sizing:border-box;opacity:0;outline:none;position:relative;transform-origin:center center;transition:opacity ",Ks.transitionDurationFastest," linear;width:100%;&[data-enter]{opacity:1;}&::before,&::after{display:none;}"),rw=Object(w.a)(Mp,{target:"e1vtu5160"})(zp.selector,"{max-height:80vh;}");var ow=Object(os.a)((function(e,t){const{children:n,elevation:r,maxWidth:o,style:a={},...i}=Object(is.a)(e,"FlyoutContent"),{label:l,flyoutState:u}=Object(s.useContext)(yj);if(!u)throw new Error("`FlyoutContent` must only be used inside a `Flyout`.");const d=u.visible||u.animating;return Object(s.createElement)(nw,Object(c.a)({"aria-label":l,style:{maxWidth:o,...a}},i,u),d&&Object(s.createElement)(rw,{elevation:r,ref:t},n))}),"FlyoutContent");var aw=Object(os.a)((function(e,t){const{children:n,elevation:r,label:o,maxWidth:a,onVisibleChange:i,trigger:l,flyoutState:u,...d}=function(e){const{animated:t=!0,animationDuration:n=160,baseId:r,elevation:o=5,id:a,maxWidth:i=360,placement:c,state:s,visible:l,...u}=Object(is.a)(e,"Flyout"),d=tm({animated:t?n:void 0,baseId:r||a,placement:c,visible:l,...u}),f=s||d;return{...u,elevation:o,maxWidth:i,flyoutState:f}}(e),f=function(e){let{onResize:t}=e;const[n,r]=jj()();return Object(p.useIsomorphicLayoutEffect)(()=>{null==t||t()},[r.width,r.height]),n}({onResize:u.unstable_update}),b="flyout-"+u.baseId,h=o||b,m=Object(s.useMemo)(()=>({label:h,flyoutState:u}),[h,u]),v=Object(s.useCallback)(e=>Object(s.cloneElement)(l,e),[l]);return qu(()=>{null==i||i(u.visible)},[u.visible]),Object(s.createElement)(yj.Provider,{value:m},l&&Object(s.createElement)(gj,Object(c.a)({},u,{ref:l.ref},l.props),v),Object(s.createElement)(mm,null,Object(s.createElement)(ow,Object(c.a)({ref:t},d,{elevation:r,maxWidth:a}),f,n)))}),"Flyout");const iw=Object(w.a)("div",{target:"e11wezi78"})({name:"1g31405",styles:"background-color:transparent;box-sizing:border-box;text-align:center;width:100%"}),cw=Object(w.a)("div",{target:"e11wezi77"})({name:"v0nrlz",styles:"align-items:center;box-sizing:border-box;box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.2 );cursor:pointer;display:inline-flex;justify-content:center;margin:auto;position:relative;height:100%;img,video{box-sizing:border-box;display:block;height:auto;margin:0;max-height:100%;max-width:100%;pointer-events:none;user-select:none;width:auto;}"}),sw=Object(w.a)("div",{target:"e11wezi76"})("background:",L.lightGray[300],";box-sizing:border-box;height:170px;max-width:280px;min-width:200px;width:100%;"),lw=Object(w.a)(Zd,{target:"e11wezi75"})({name:"1pzk433",styles:"width:100px"}),uw=Object(w.a)(Ms,{target:"e11wezi74"})({name:"ox4xcy",styles:"max-width:320px;padding:1em 0"}),dw=Object(w.a)("div",{target:"e11wezi73"})("box-sizing:border-box;left:50%;opacity:0;overflow:hidden;pointer-events:none;position:absolute;top:50%;transform:translate3d( -50%, -50%, 0 );transition:opacity 120ms linear;z-index:1;",e=>{let{isActive:t}=e;return t&&"\n\t\topacity: 1;\n\t"},";"),fw=Object(w.a)("div",{target:"e11wezi72"})({name:"1sy4ch9",styles:"box-sizing:border-box;background:white;box-shadow:0 0 2px rgba( 0, 0, 0, 0.6 );position:absolute;opacity:0.4;transform:translateZ( 0 )"}),pw=Object(w.a)(fw,{target:"e11wezi71"})({name:"1qp910y",styles:"height:1px;left:0;right:0"}),bw=Object(w.a)(fw,{target:"e11wezi70"})({name:"1oz3zka",styles:"width:1px;top:0;bottom:0"}),hw={top:0,left:0,bottom:0,right:0,width:0,height:0},mw=["avi","mpg","mpeg","mov","mp4","m4v","ogg","ogv","webm","wmv"];function vw(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=e.split(".");return t[t.length-1]}function gw(e){return Math.round(100*e)}function yw(e){let{onChange:t=l.noop,percentages:n={x:.5,y:.5}}=e;const r=gw(n.x),o=gw(n.y),a=(e,r)=>{const o=parseInt(e,10);isNaN(o)||t({...n,[r]:o/100})};return Object(s.createElement)(uw,{className:"focal-point-picker__controls"},Object(s.createElement)(Ow,{label:Object(f.__)("Left"),value:r,onChange:e=>a(e,"x"),dragDirection:"e"}),Object(s.createElement)(Ow,{label:Object(f.__)("Top"),value:o,onChange:e=>a(e,"y"),dragDirection:"s"}))}function Ow(e){return Object(s.createElement)(lw,Object(c.a)({className:"focal-point-picker__controls-position-unit-control",labelPosition:"top",max:100,min:0,unit:"%",units:[{value:"%",label:"%"}]},e))}const jw=Object(w.a)("div",{target:"eas61re3"})("background-color:transparent;box-sizing:border-box;cursor:grab;height:30px;margin:-15px 0 0 -15px;opacity:0.8;position:absolute;user-select:none;width:30px;will-change:transform;z-index:10000;",e=>{let{isDragging:t}=e;return t&&"cursor: grabbing;"},";"),ww=Object(w.a)(i.SVG,{target:"eas61re2"})({name:"qkx60y",styles:"display:block;height:100%;left:0;position:absolute;top:0;width:100%"}),xw=Object(w.a)(i.Path,{target:"eas61re1"})({name:"1b3qpiw",styles:"fill:white"}),_w=Object(w.a)(i.Path,{target:"eas61re0"})("fill:",L.blue.wordpress[700],";fill:",L.ui.theme,";");function Ew(e){let{coordinates:t={left:"50%",top:"50%"},...n}=e;const r=d()("components-focal-point-picker__icon_container"),o={left:t.left,top:t.top};return Object(s.createElement)(jw,Object(c.a)({},n,{className:r,style:o}),Object(s.createElement)(ww,{className:"components-focal-point-picker__icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30"},Object(s.createElement)(xw,{className:"components-focal-point-picker__icon-outline",d:"M15 1C7.3 1 1 7.3 1 15s6.3 14 14 14 14-6.3 14-14S22.7 1 15 1zm0 22c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8z"}),Object(s.createElement)(_w,{className:"components-focal-point-picker__icon-fill",d:"M15 3C8.4 3 3 8.4 3 15s5.4 12 12 12 12-5.4 12-12S21.6 3 15 3zm0 22C9.5 25 5 20.5 5 15S9.5 5 15 5s10 4.5 10 10-4.5 10-10 10z"})))}const{clearTimeout:kw,setTimeout:Sw}="undefined"!=typeof window?window:{};function Cw(e){let{bounds:t={},value:n,...r}=e;const o=function(e){const[t,n]=Object(s.useState)(!1);return qu(()=>{n(!0);const e=Sw(()=>{n(!1)},600);return()=>kw(e)},[e]),{isActive:t}}(n),a={width:t.width,height:t.height};return Object(s.createElement)(dw,Object(c.a)({},r,o,{className:"components-focal-point-picker__grid",style:a}),Object(s.createElement)(pw,{style:{top:"33%"}}),Object(s.createElement)(pw,{style:{top:"66%"}}),Object(s.createElement)(bw,{style:{left:"33%"}}),Object(s.createElement)(bw,{style:{left:"66%"}}))}function Pw(e){let{alt:t,autoPlay:n,src:r,onLoad:o=l.noop,mediaRef:a,muted:i=!0,...u}=e;if(!r)return Object(s.createElement)(Tw,{className:"components-focal-point-picker__media components-focal-point-picker__media--placeholder",onLoad:o,mediaRef:a});return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!!e&&mw.includes(vw(e))}(r)?Object(s.createElement)("video",Object(c.a)({},u,{autoPlay:n,className:"components-focal-point-picker__media components-focal-point-picker__media--video",loop:!0,muted:i,onLoadedData:o,ref:a,src:r})):Object(s.createElement)("img",Object(c.a)({},u,{alt:t,className:"components-focal-point-picker__media components-focal-point-picker__media--image",onLoad:o,ref:a,src:r}))}function Tw(e){let{mediaRef:t,onLoad:n=l.noop,...r}=e;const o=Object(s.useRef)(n);return Object(s.useLayoutEffect)(()=>{window.requestAnimationFrame(()=>{o.current()})},[]),Object(s.createElement)(sw,Object(c.a)({ref:t},r))}class Mw extends s.Component{constructor(e){super(...arguments),this.state={isDragging:!1,bounds:hw,percentages:e.value},this.containerRef=Object(s.createRef)(),this.mediaRef=Object(s.createRef)(),this.onMouseDown=this.startDrag.bind(this),this.onMouseUp=this.stopDrag.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.onMouseMove=this.doDrag.bind(this),this.ifDraggingStop=()=>{this.state.isDragging&&this.stopDrag()},this.onChangeAtControls=e=>{this.updateValue(e),this.props.onChange(e)},this.updateBounds=this.updateBounds.bind(this),this.updateValue=this.updateValue.bind(this)}componentDidMount(){const{defaultView:e}=this.containerRef.current.ownerDocument;e.addEventListener("resize",this.updateBounds),this.updateBounds()}componentDidUpdate(e){e.url!==this.props.url&&this.ifDraggingStop();const{isDragging:t,percentages:{x:n,y:r}}=this.state,{value:o}=this.props;t||o.x===n&&o.y===r||this.setState({percentages:this.props.value})}componentWillUnmount(){const{defaultView:e}=this.containerRef.current.ownerDocument;e.removeEventListener("resize",this.updateBounds),this.ifDraggingStop()}calculateBounds(){const e=hw;if(!this.mediaRef.current)return e;if(0===this.mediaRef.current.clientWidth||0===this.mediaRef.current.clientHeight)return e;const t=this.mediaRef.current.clientWidth,n=this.mediaRef.current.clientHeight,r=this.pickerDimensions(),o=r.width/t,a=r.height/n;return a>=o?(e.width=e.right=r.width,e.height=n*o,e.top=(r.height-e.height)/2,e.bottom=e.top+e.height):(e.height=e.bottom=r.height,e.width=t*a,e.left=(r.width-e.width)/2,e.right=e.left+e.width),e}updateValue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{x:t,y:n}=e,r={x:parseFloat(t).toFixed(2),y:parseFloat(n).toFixed(2)};this.setState({percentages:r})}updateBounds(){this.setState({bounds:this.calculateBounds()})}startDrag(e){var t,n;e.persist(),this.containerRef.current.focus(),this.setState({isDragging:!0});const{ownerDocument:r}=this.containerRef.current;r.addEventListener("mouseup",this.onMouseUp),r.addEventListener("mousemove",this.onMouseMove);const o=this.getValueFromPoint({x:e.pageX,y:e.pageY},e.shiftKey);this.updateValue(o),null===(t=(n=this.props).onDragStart)||void 0===t||t.call(n,o,e)}stopDrag(e){var t,n;const{ownerDocument:r}=this.containerRef.current;r.removeEventListener("mouseup",this.onMouseUp),r.removeEventListener("mousemove",this.onMouseMove),this.setState({isDragging:!1},()=>{this.props.onChange(this.state.percentages)}),null===(t=(n=this.props).onDragEnd)||void 0===t||t.call(n,e)}onKeyDown(e){const{keyCode:t,shiftKey:n}=e;if(![zu.UP,zu.DOWN,zu.LEFT,zu.RIGHT].includes(t))return;e.preventDefault();const r={...this.state.percentages},o=n?.1:.01,a=t===zu.UP||t===zu.LEFT?-1*o:o,i=t===zu.UP||t===zu.DOWN?"y":"x",c=parseFloat(r[i])+a;r[i]=Cd(c,0,1,o),this.updateValue(r),this.props.onChange(r)}doDrag(e){var t,n;e.preventDefault();const r=this.getValueFromPoint({x:e.pageX,y:e.pageY},e.shiftKey);this.updateValue(r),null===(t=(n=this.props).onDrag)||void 0===t||t.call(n,r,e)}getValueFromPoint(e,t){const{bounds:n}=this.state,r=this.pickerDimensions(),o={left:e.x-r.left,top:e.y-r.top},a=Math.max(n.left,Math.min(o.left,n.right)),i=Math.max(n.top,Math.min(o.top,n.bottom));let c=(a-n.left)/(r.width-2*n.left),s=(i-n.top)/(r.height-2*n.top);const l=t?.1:.01;return c=Cd(c,0,1,l),s=Cd(s,0,1,l),{x:c,y:s}}pickerDimensions(){const e=this.containerRef.current;if(!e)return{width:0,height:0,left:0,top:0};const{clientHeight:t,clientWidth:n}=e,{top:r,left:o}=e.getBoundingClientRect();return{width:n,height:t,top:r+document.body.scrollTop,left:o}}iconCoordinates(){const{bounds:e,percentages:{x:t,y:n}}=this.state;if(void 0===e.left||void 0===e.top)return{left:"50%",top:"50%"};const{width:r,height:o}=this.pickerDimensions();return{left:t*(r-2*e.left)+e.left,top:n*(o-2*e.top)+e.top}}render(){const{autoPlay:e,className:t,help:n,instanceId:r,label:o,url:a}=this.props,{bounds:i,isDragging:c,percentages:l}=this.state,u=this.iconCoordinates(),p=d()("components-focal-point-picker-control",t),b="inspector-focal-point-picker-control-"+r;return Object(s.createElement)(jd,{label:o,id:b,help:n,className:p},Object(s.createElement)(iw,{className:"components-focal-point-picker-wrapper"},Object(s.createElement)(cw,{className:"components-focal-point-picker",onKeyDown:this.onKeyDown,onMouseDown:this.onMouseDown,onBlur:this.ifDraggingStop,ref:this.containerRef,role:"button",tabIndex:"-1"},Object(s.createElement)(Cw,{bounds:i,value:l.x+l.y}),Object(s.createElement)(Pw,{alt:Object(f.__)("Media preview"),autoPlay:e,mediaRef:this.mediaRef,onLoad:this.updateBounds,src:a}),Object(s.createElement)(Ew,{coordinates:u,isDragging:c}))),Object(s.createElement)(yw,{percentages:l,onChange:this.onChangeAtControls}))}}Mw.defaultProps={autoPlay:!0,value:{x:.5,y:.5},url:null};var Dw=Object(p.withInstanceId)(Mw);function Iw(e){let{iframeRef:t,...n}=e;const r=Object(p.useMergeRefs)([t,Object(p.useFocusableIframe)()]);return gs()("wp.components.FocusableIframe",{alternative:"wp.compose.useFocusableIframe"}),Object(s.createElement)("iframe",Object(c.a)({ref:r},n))}function Rw(e){void 0===e&&(e={});var t=Z(e),n=t.state,r=t.loop,o=void 0===r||r,a=Object($.a)(t,["state","loop"]),i=Object(q.useState)(n),c=i[0],s=i[1],l=we(Object($.b)(Object($.b)({},a),{},{loop:o}));return Object($.b)(Object($.b)({},l),{},{state:c,setState:s})}var Aw=["baseId","unstable_idCountRef","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","state","setBaseId","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget","setState"],Nw=[].concat(Aw,["value","checked","unstable_checkOnFocus"]),Lw=Aw,Fw=Object(_e.a)({name:"RadioGroup",compose:Ge,keys:Lw,useProps:function(e,t){return Object($.b)({role:"radiogroup"},t)}}),zw=Object(xe.a)({as:"div",useHook:Fw,useCreateElement:function(e,t,n){return Object(Te.a)(e,t,n)}});const Bw=Object(x.a)("background:",L.ui.background,";border:1px solid;border-color:",L.ui.border,";border-radius:",Ks.controlBorderRadius,";display:inline-flex;min-height:",Ks.controlHeight,";min-width:0;padding:2px;position:relative;transition:transform ",Ks.transitionDurationFastest," linear;",F("transition")," &:hover{border-color:",L.ui.borderHover,";}&:focus-within{border-color:",L.ui.borderFocus,";box-shadow:",Ks.controlBoxShadowFocus,";outline:none;z-index:1;}",""),Hw={name:"7whenc",styles:"display:flex;width:100%"},Vw=Object(w.a)("div",{target:"eakva830"})("background:",L.gray[900],";border-radius:",Ks.controlBorderRadius,";box-shadow:",Ks.toggleGroupControlBackdropBoxShadow,";left:0;position:absolute;top:2px;bottom:2px;transition:transform ",Ks.transitionDurationFast," ease;",F("transition")," z-index:1;");var Ww=Object(s.memo)((function(e){let{containerRef:t,containerWidth:n,isAdaptiveWidth:r,state:o}=e;const[a,i]=Object(s.useState)(0),[c,l]=Object(s.useState)(0),[u,d]=Object(s.useState)(!1),[f,p]=Object(s.useState)(!1);return Object(s.useEffect)(()=>{const e=null==t?void 0:t.current;if(!e)return;const n=e.querySelector(`[data-value="${o}"]`);if(p(!!n),!n)return;const{x:r}=e.getBoundingClientRect(),{width:a,x:c}=n.getBoundingClientRect();let s;return i(c-r-1),l(a),u||(s=window.requestAnimationFrame(()=>{d(!0)})),()=>window.cancelAnimationFrame(s)},[u,t,n,o,r]),f?Object(s.createElement)(Vw,{role:"presentation",style:{transform:`translateX(${a}px)`,transition:u?void 0:"none",width:c}}):null}));const Uw=Object(s.createContext)({});var Kw=Uw;const Gw=()=>{};var $w=Object(os.a)((function e(t,n){const{className:r,isAdaptiveWidth:o=!1,isBlock:a=!1,label:i,hideLabelFromVision:l=!1,help:u,onChange:d=Gw,value:f,children:b,...h}=Object(is.a)(t,"ToggleGroupControl"),m=Object(ps.a)(),v=Object(s.useRef)(),[g,y]=jj()(),O=Rw({baseId:Object(p.useInstanceId)(e,"toggle-group-control").toString(),state:f});qu(()=>{d(O.state)},[O.state]),qu(()=>{f!==O.state&&O.setState(f)},[f]);const j=Object(s.useMemo)(()=>m(Bw,a&&Hw,"medium",r),[r,a]);return Object(s.createElement)(jd,{help:u},Object(s.createElement)(Kw.Provider,{value:{...O,isBlock:!o}},!l&&Object(s.createElement)("div",null,Object(s.createElement)(jd.VisualLabel,null,i)),Object(s.createElement)(zw,Object(c.a)({},O,{"aria-label":i,as:as.a,className:j},h,{ref:Object(p.useMergeRefs)([v,n])}),g,Object(s.createElement)(Ww,Object(c.a)({},O,{containerRef:v,containerWidth:y.width,isAdaptiveWidth:o})),b)))}),"ToggleGroupControl");n("WnOg");function qw(e){return void 0!==e.checked?e.checked:void 0!==e.value&&e.state===e.value}function Yw(e,t){var n=Object(De.a)(e,"change");Object.defineProperties(n,{type:{value:"change"},target:{value:e},currentTarget:{value:e}}),null==t||t(n)}var Xw=Object(_e.a)({name:"Radio",compose:b.b,keys:Nw,useOptions:function(e,t){var n,r=t.value,o=t.checked,a=e.unstable_clickOnEnter,i=void 0!==a&&a,c=e.unstable_checkOnFocus,s=void 0===c||c,l=Object($.a)(e,["unstable_clickOnEnter","unstable_checkOnFocus"]);return Object($.b)(Object($.b)({checked:o,unstable_clickOnEnter:i,unstable_checkOnFocus:s},l),{},{value:null!=(n=l.value)?n:r})},useProps:function(e,t){var n=t.ref,r=t.onChange,o=t.onClick,a=Object($.a)(t,["ref","onChange","onClick"]),i=Object(q.useRef)(null),c=Object(q.useState)(!0),s=c[0],l=c[1],u=qw(e),d=Object(ke.a)(e.currentId===e.id),f=Object(ke.a)(r),p=Object(ke.a)(o);!function(e){var t=Object(q.useState)((function(){return qw(e)}))[0],n=Object(q.useState)(e.currentId)[0],r=e.id,o=e.setCurrentId;Object(q.useEffect)((function(){t&&r&&n!==r&&(null==o||o(r))}),[t,r,o,n])}(e),Object(q.useEffect)((function(){var e=i.current;e&&("INPUT"===e.tagName&&"radio"===e.type||l(!1))}),[]);var b=Object(q.useCallback)((function(t){var n,r;null===(n=f.current)||void 0===n||n.call(f,t),t.defaultPrevented||e.disabled||null===(r=e.setState)||void 0===r||r.call(e,e.value)}),[e.disabled,e.setState,e.value]),h=Object(q.useCallback)((function(e){var t;null===(t=p.current)||void 0===t||t.call(p,e),e.defaultPrevented||s||Yw(e.currentTarget,b)}),[b,s]);return Object(q.useEffect)((function(){var t=i.current;t&&e.unstable_moves&&d.current&&e.unstable_checkOnFocus&&Yw(t,b)}),[e.unstable_moves,e.unstable_checkOnFocus,b]),Object($.b)({ref:Object(Ee.a)(i,n),role:s?void 0:"radio",type:s?"radio":void 0,value:s?e.value:void 0,name:s?e.baseId:void 0,"aria-checked":u,checked:u,onChange:b,onClick:h},a)}}),Zw=Object(xe.a)({as:"input",memo:!0,useHook:Xw});const Jw=Object(w.a)("div",{target:"eu1cvm72"})({name:"sln1fl",styles:"display:inline-flex;max-width:100%;min-width:0;position:relative"}),Qw={name:"82a6rk",styles:"flex:1"},ex=Object(x.a)("align-items:center;appearance:none;background:transparent;border:none;border-radius:",Ks.controlBorderRadius,";color:",L.gray[700],";cursor:pointer;display:flex;height:100%;justify-content:center;line-height:100%;outline:none;padding:0 12px;position:relative;text-align:center;transition:background ",Ks.transitionDurationFast," linear,color ",Ks.transitionDurationFast," linear,font-weight 60ms linear;",F("transition")," user-select:none;width:100%;z-index:2;&::-moz-focus-inner{border:0;}&:active{background:",Ks.toggleGroupControlBackgroundColor,";}",""),tx=Object(x.a)("color:",L.white,";",""),nx=Object(w.a)("div",{target:"eu1cvm71"})("font-size:",Ks.fontSize,";line-height:1;position:absolute;top:50%;left:50%;transform:translate( -50%, -50% );"),rx={name:"1qsuvl4",styles:"background:transparent"},ox=Object(w.a)("div",{target:"eu1cvm70"})("font-size:",Ks.fontSize,";font-weight:bold;height:0;overflow:hidden;visibility:hidden;"),ax=Object(x.a)("min-height:",Ks.controlHeight,";",""),{ButtonContentView:ix,LabelPlaceholderView:cx,LabelView:sx}=a,lx=e=>{let{showTooltip:t,text:n,children:r}=e;return t&&n?Object(s.createElement)(h.a,{text:n,position:"top center"},r):Object(s.createElement)(s.Fragment,null,r)};var ux=Object(os.a)((function e(t,n){const r=Object(s.useContext)(Uw),o=Object(p.useInstanceId)(e,r.baseId||"toggle-group-control-option"),a=Object(is.a)({...t,id:o},"ToggleGroupControlOption"),{className:i,isBlock:l=!1,label:u,value:d,showTooltip:f=!1,...b}={...r,...a},h=b.state===d,m=Object(ps.a)(),v=m(l&&Qw),g=m(ex,i,h&&tx),y=b["aria-label"]?b["aria-label"]:u;return Object(s.createElement)(sx,{className:v,"data-active":h},Object(s.createElement)(lx,{showTooltip:f,text:y},Object(s.createElement)(Zw,Object(c.a)({},b,{as:"button","aria-label":y,className:g,"data-value":d,ref:n,value:d}),Object(s.createElement)(ix,null,u),Object(s.createElement)(cx,{"aria-hidden":!0},u))))}),"ToggleGroupControlOption");const dx={slug:"default",name:Object(f.__)("Default")},fx={slug:"custom",name:Object(f.__)("Custom")};function px(e){const[,t,n]=e.split(/(\d+)/);return[t,n]}function bx(e){return/^(?!0)\d+(px|em|rem|vw|vh|%)?$/i.test(e)}function hx(e,t,n){return n&&!t.length?null:e?function(e,t){return[dx,...e,...t?[]:[fx]].map(e=>{let{slug:t,name:n,size:r}=e;return{key:t,name:n,size:r,__experimentalHint:r&&bx(r)&&parseInt(r)}})}(t,n):function(e){return e.map(e=>{let{slug:t,size:n,name:r}=e,o=n;if("string"==typeof n){const[e]=px(n);o=e}return{key:t,value:n,label:o,name:r}})}(t)}var mx=Object(s.forwardRef)((function(e,t){var n,r;let{fallbackFontSize:o,fontSizes:a=[],disableCustomFontSizes:i=!1,onChange:l,value:u,withSlider:d=!1,withReset:p=!0}=e;const b=[typeof u,typeof(null==a||null===(n=a[0])||void 0===n?void 0:n.size)].includes("string"),h=b?parseInt(u):u,v="number"==typeof u||(null==u||null===(r=u.endsWith)||void 0===r?void 0:r.call(u,"px")),g=$d({availableUnits:["px","em","rem"]}),y=a.length>5||a.some(e=>{let{size:t}=e;return!bx(t)}),O=Object(s.useMemo)(()=>hx(y,a,i),[y,a,i]),j=function(e,t){return t?e.find(e=>e.size===t)||fx:dx}(a,u),w="custom"===j.slug,[x,_]=Object(s.useState)(!i&&w),E=Object(s.useMemo)(()=>{if(x)return`(${Object(f.__)("Custom")})`;if(w)return bx(u)&&`(${u})`;if(y)return bx(null==j?void 0:j.size)&&`(${null==j?void 0:j.size})`;let e=j.name;if("string"==typeof j.size){const[,t]=px(j.size);e+=`(${t})`}return e},[x,null==j?void 0:j.slug,u,w]);if(!O)return null;const k=Object(f.sprintf)(Object(f.__)("Currently selected font size: %s"),j.name),S="components-font-size-picker";return Object(s.createElement)("fieldset",Object(c.a)({className:S},t?{}:{ref:t}),Object(s.createElement)(m.a,{as:"legend"},Object(f.__)("Font size")),Object(s.createElement)(Ms,{justify:"space-between",className:S+"__header"},Object(s.createElement)(ms,null,Object(f.__)("Size"),E&&Object(s.createElement)("span",{className:S+"__header__hint"},E)),!i&&Object(s.createElement)(ms,null,Object(s.createElement)(ld.a,{label:x?Object(f.__)("Use size preset"):Object(f.__)("Set custom size"),showTooltip:!1,icon:tb.a,onClick:()=>{_(!x)},isPressed:x,isSmall:!0}))),Object(s.createElement)("div",{className:S+"__controls"},!!a.length&&y&&!x&&Object(s.createElement)(bO,{className:S+"__select",label:Object(f.__)("Font size"),hideLabelFromVision:!0,describedBy:k,options:O,value:O.find(e=>e.key===j.slug),onChange:e=>{let{selectedItem:t}=e;l(b?t.size:Number(t.size)),"custom"===t.key&&_(!0)}}),!y&&!x&&Object(s.createElement)($w,{label:Object(f.__)("Font size"),hideLabelFromVision:!0,value:u,onChange:e=>{l(b?e:Number(e))},isBlock:!0},O.map(e=>Object(s.createElement)(ux,{key:e.key,value:e.value,label:e.label,"aria-label":e.name,showTooltip:!0}))),!d&&!i&&x&&Object(s.createElement)(Ms,{justify:"space-between",className:S+"__custom-size-control"},Object(s.createElement)(ms,{isBlock:!0},Object(s.createElement)(Zd,{label:Object(f.__)("Custom"),labelPosition:"top",hideLabelFromVision:!0,value:u,onChange:e=>{0!==parseFloat(e)&&e?l(b?e:parseInt(e,10)):l(void 0)},units:!!b&&g})),p&&Object(s.createElement)(ms,{isBlock:!0},Object(s.createElement)(ld.a,{className:"components-color-palette__clear",disabled:void 0===u,onClick:()=>{l(void 0)},isSmall:!0,variant:"secondary"},Object(f.__)("Reset"))))),d&&Object(s.createElement)(zb,{className:S+"__custom-input",label:Object(f.__)("Custom Size"),value:v&&h||"",initialPosition:o,onChange:e=>{l(b?e+"px":e)},min:12,max:100}))}));var vx=function(e){let{accept:t,children:n,multiple:r=!1,onChange:o,render:a,...i}=e;const l=Object(s.useRef)(),u=()=>{l.current.click()},d=a?a({openFileDialog:u}):Object(s.createElement)(ld.a,Object(c.a)({onClick:u},i),n);return Object(s.createElement)("div",{className:"components-form-file-upload"},d,Object(s.createElement)("input",{type:"file",ref:l,multiple:r,style:{display:"none"},accept:t,onChange:o}))};var gx=function(e){let{className:t,checked:n,id:r,disabled:o,onChange:a=l.noop,...i}=e;const u=d()("components-form-toggle",t,{"is-checked":n,"is-disabled":o});return Object(s.createElement)("span",{className:u},Object(s.createElement)("input",Object(c.a)({className:"components-form-toggle__input",id:r,type:"checkbox",checked:n,onChange:a,disabled:o},i)),Object(s.createElement)("span",{className:"components-form-toggle__track"}),Object(s.createElement)("span",{className:"components-form-toggle__thumb"}))},yx=n("rl8x"),Ox=n.n(yx);function jx(e){let{value:t,status:n,title:r,displayTransform:o,isBorderless:a=!1,disabled:i=!1,onClickRemove:c=l.noop,onMouseEnter:u,onMouseLeave:b,messages:h,termPosition:v,termsCount:g}=e;const y=Object(p.useInstanceId)(jx),O=d()("components-form-token-field__token",{"is-error":"error"===n,"is-success":"success"===n,"is-validating":"validating"===n,"is-borderless":a,"is-disabled":i}),j=o(t),w=Object(f.sprintf)(Object(f.__)("%1$s (%2$s of %3$s)"),j,v,g);return Object(s.createElement)("span",{className:O,onMouseEnter:u,onMouseLeave:b,title:r},Object(s.createElement)("span",{className:"components-form-token-field__token-text",id:"components-form-token-field__token-text-"+y},Object(s.createElement)(m.a,{as:"span"},w),Object(s.createElement)("span",{"aria-hidden":"true"},j)),Object(s.createElement)(ld.a,{className:"components-form-token-field__remove-token",icon:Jg.a,onClick:!i&&(()=>c({value:t})),label:h.remove,"aria-describedby":"components-form-token-field__token-text-"+y}))}var wx=Object(p.createHigherOrderComponent)(e=>t=>Object(s.createElement)(e,Object(c.a)({},t,{speak:cd.speak,debouncedSpeak:Object(p.useDebounce)(cd.speak,500)})),"withSpokenMessages");const xx={incompleteTokenValue:"",inputOffsetFromEnd:0,isActive:!1,isExpanded:!1,selectedSuggestionIndex:-1,selectedSuggestionScroll:!1};class _x extends s.Component{constructor(){super(...arguments),this.state=xx,this.onKeyDown=this.onKeyDown.bind(this),this.onKeyPress=this.onKeyPress.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.deleteTokenBeforeInput=this.deleteTokenBeforeInput.bind(this),this.deleteTokenAfterInput=this.deleteTokenAfterInput.bind(this),this.addCurrentToken=this.addCurrentToken.bind(this),this.onContainerTouched=this.onContainerTouched.bind(this),this.renderToken=this.renderToken.bind(this),this.onTokenClickRemove=this.onTokenClickRemove.bind(this),this.onSuggestionHovered=this.onSuggestionHovered.bind(this),this.onSuggestionSelected=this.onSuggestionSelected.bind(this),this.onInputChange=this.onInputChange.bind(this),this.bindInput=this.bindInput.bind(this),this.bindTokensAndInput=this.bindTokensAndInput.bind(this),this.updateSuggestions=this.updateSuggestions.bind(this)}componentDidUpdate(e){this.state.isActive&&!this.input.hasFocus()&&this.input.focus();const{suggestions:t,value:n}=this.props,r=!Ox()(t,e.suggestions);(r||n!==e.value)&&this.updateSuggestions(r)}static getDerivedStateFromProps(e,t){return e.disabled&&t.isActive?{isActive:!1,incompleteTokenValue:""}:null}bindInput(e){this.input=e}bindTokensAndInput(e){this.tokensAndInput=e}onFocus(e){const{__experimentalExpandOnFocus:t}=this.props;this.input.hasFocus()||e.target===this.tokensAndInput?this.setState({isActive:!0,isExpanded:!!t||this.state.isExpanded}):this.setState({isActive:!1}),"function"==typeof this.props.onFocus&&this.props.onFocus(e)}onBlur(){this.inputHasValidValue()?this.setState({isActive:!1}):this.setState(xx)}onKeyDown(e){let t=!1;if(!e.defaultPrevented){switch(e.keyCode){case zu.BACKSPACE:t=this.handleDeleteKey(this.deleteTokenBeforeInput);break;case zu.ENTER:t=this.addCurrentToken();break;case zu.LEFT:t=this.handleLeftArrowKey();break;case zu.UP:t=this.handleUpArrowKey();break;case zu.RIGHT:t=this.handleRightArrowKey();break;case zu.DOWN:t=this.handleDownArrowKey();break;case zu.DELETE:t=this.handleDeleteKey(this.deleteTokenAfterInput);break;case zu.SPACE:this.props.tokenizeOnSpace&&(t=this.addCurrentToken());break;case zu.ESCAPE:t=this.handleEscapeKey(e)}t&&e.preventDefault()}}onKeyPress(e){let t=!1;switch(e.charCode){case 44:t=this.handleCommaKey()}t&&e.preventDefault()}onContainerTouched(e){e.target===this.tokensAndInput&&this.state.isActive&&e.preventDefault()}onTokenClickRemove(e){this.deleteToken(e.value),this.input.focus()}onSuggestionHovered(e){const t=this.getMatchingSuggestions().indexOf(e);t>=0&&this.setState({selectedSuggestionIndex:t,selectedSuggestionScroll:!1})}onSuggestionSelected(e){this.addNewToken(e)}onInputChange(e){const t=e.value,n=this.props.tokenizeOnSpace?/[ ,\t]+/:/[,\t]+/,r=t.split(n),o=Object(l.last)(r)||"";r.length>1&&this.addNewTokens(r.slice(0,-1)),this.setState({incompleteTokenValue:o},this.updateSuggestions),this.props.onInputChange(o)}handleDeleteKey(e){let t=!1;return this.input.hasFocus()&&this.isInputEmpty()&&(e(),t=!0),t}handleLeftArrowKey(){let e=!1;return this.isInputEmpty()&&(this.moveInputBeforePreviousToken(),e=!0),e}handleRightArrowKey(){let e=!1;return this.isInputEmpty()&&(this.moveInputAfterNextToken(),e=!0),e}handleUpArrowKey(){return this.setState((e,t)=>({selectedSuggestionIndex:(0===e.selectedSuggestionIndex?this.getMatchingSuggestions(e.incompleteTokenValue,t.suggestions,t.value,t.maxSuggestions,t.saveTransform).length:e.selectedSuggestionIndex)-1,selectedSuggestionScroll:!0})),!0}handleDownArrowKey(){return this.setState((e,t)=>({selectedSuggestionIndex:(e.selectedSuggestionIndex+1)%this.getMatchingSuggestions(e.incompleteTokenValue,t.suggestions,t.value,t.maxSuggestions,t.saveTransform).length,selectedSuggestionScroll:!0})),!0}handleEscapeKey(e){return this.setState({incompleteTokenValue:e.target.value,isExpanded:!1,selectedSuggestionIndex:-1,selectedSuggestionScroll:!1}),!0}handleCommaKey(){return this.inputHasValidValue()&&this.addNewToken(this.state.incompleteTokenValue),!0}moveInputToIndex(e){this.setState((t,n)=>({inputOffsetFromEnd:n.value.length-Math.max(e,-1)-1}))}moveInputBeforePreviousToken(){this.setState((e,t)=>({inputOffsetFromEnd:Math.min(e.inputOffsetFromEnd+1,t.value.length)}))}moveInputAfterNextToken(){this.setState(e=>({inputOffsetFromEnd:Math.max(e.inputOffsetFromEnd-1,0)}))}deleteTokenBeforeInput(){const e=this.getIndexOfInput()-1;e>-1&&this.deleteToken(this.props.value[e])}deleteTokenAfterInput(){const e=this.getIndexOfInput();e<this.props.value.length&&(this.deleteToken(this.props.value[e]),this.moveInputToIndex(e))}addCurrentToken(){let e=!1;const t=this.getSelectedSuggestion();return t?(this.addNewToken(t),e=!0):this.inputHasValidValue()&&(this.addNewToken(this.state.incompleteTokenValue),e=!0),e}addNewTokens(e){const t=Object(l.uniq)(e.map(this.props.saveTransform).filter(Boolean).filter(e=>!this.valueContainsToken(e)));if(t.length>0){const e=Object(l.clone)(this.props.value);e.splice.apply(e,[this.getIndexOfInput(),0].concat(t)),this.props.onChange(e)}}addNewToken(e){const{__experimentalExpandOnFocus:t,__experimentalValidateInput:n}=this.props;n(e)?(this.addNewTokens([e]),this.props.speak(this.props.messages.added,"assertive"),this.setState({incompleteTokenValue:"",selectedSuggestionIndex:-1,selectedSuggestionScroll:!1,isExpanded:!t}),this.state.isActive&&this.input.focus()):this.props.speak(this.props.messages.__experimentalInvalid,"assertive")}deleteToken(e){const t=this.props.value.filter(t=>this.getTokenValue(t)!==this.getTokenValue(e));this.props.onChange(t),this.props.speak(this.props.messages.removed,"assertive")}getTokenValue(e){return"object"==typeof e?e.value:e}getMatchingSuggestions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.incompleteTokenValue,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.suggestions,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props.value,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.props.maxSuggestions,o=(arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.props.saveTransform)(e);const a=[],i=[];return 0===o.length?t=Object(l.difference)(t,n):(o=o.toLocaleLowerCase(),Object(l.each)(t,e=>{const t=e.toLocaleLowerCase().indexOf(o);-1===n.indexOf(e)&&(0===t?a.push(e):t>0&&i.push(e))}),t=a.concat(i)),Object(l.take)(t,r)}getSelectedSuggestion(){if(-1!==this.state.selectedSuggestionIndex)return this.getMatchingSuggestions()[this.state.selectedSuggestionIndex]}valueContainsToken(e){return Object(l.some)(this.props.value,t=>this.getTokenValue(e)===this.getTokenValue(t))}getIndexOfInput(){return this.props.value.length-this.state.inputOffsetFromEnd}isInputEmpty(){return 0===this.state.incompleteTokenValue.length}inputHasValidValue(){return this.props.saveTransform(this.state.incompleteTokenValue).length>0}updateSuggestions(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const{__experimentalExpandOnFocus:t}=this.props,{incompleteTokenValue:n}=this.state,r=n.trim().length>1,o=this.getMatchingSuggestions(n),a=o.length>0,i={isExpanded:t||r&&a};if(e&&(i.selectedSuggestionIndex=-1,i.selectedSuggestionScroll=!1),this.setState(i),r){const{debouncedSpeak:e}=this.props;e(a?Object(f.sprintf)(Object(f._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",o.length),o.length):Object(f.__)("No results."),"assertive")}}renderTokensAndInput(){const e=Object(l.map)(this.props.value,this.renderToken);return e.splice(this.getIndexOfInput(),0,this.renderInput()),e}renderToken(e,t,n){const r=this.getTokenValue(e),o=e.status?e.status:void 0,a=t+1,i=n.length;return Object(s.createElement)(jx,{key:"token-"+r,value:r,status:o,title:e.title,displayTransform:this.props.displayTransform,onClickRemove:this.onTokenClickRemove,isBorderless:e.isBorderless||this.props.isBorderless,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,disabled:"error"!==o&&this.props.disabled,messages:this.props.messages,termsCount:i,termPosition:a})}renderInput(){const{autoCapitalize:e,autoComplete:t,maxLength:n,placeholder:r,value:o,instanceId:a}=this.props;let i={instanceId:a,autoCapitalize:e,autoComplete:t,placeholder:0===o.length?r:"",ref:this.bindInput,key:"input",disabled:this.props.disabled,value:this.state.incompleteTokenValue,onBlur:this.onBlur,isExpanded:this.state.isExpanded,selectedSuggestionIndex:this.state.selectedSuggestionIndex};return n&&o.length>=n||(i={...i,onChange:this.onInputChange}),Object(s.createElement)(ey,i)}render(){const{disabled:e,label:t=Object(f.__)("Add item"),instanceId:n,className:r,__experimentalShowHowTo:o}=this.props,{isExpanded:a}=this.state,i=d()(r,"components-form-token-field__input-container",{"is-active":this.state.isActive,"is-disabled":e});let c={className:"components-form-token-field",tabIndex:"-1"};const l=this.getMatchingSuggestions();return e||(c=Object.assign({},c,{onKeyDown:this.onKeyDown,onKeyPress:this.onKeyPress,onFocus:this.onFocus})),Object(s.createElement)("div",c,Object(s.createElement)("label",{htmlFor:"components-form-token-input-"+n,className:"components-form-token-field__label"},t),Object(s.createElement)("div",{ref:this.bindTokensAndInput,className:i,tabIndex:"-1",onMouseDown:this.onContainerTouched,onTouchStart:this.onContainerTouched},this.renderTokensAndInput(),a&&Object(s.createElement)(oy,{instanceId:n,match:this.props.saveTransform(this.state.incompleteTokenValue),displayTransform:this.props.displayTransform,suggestions:l,selectedIndex:this.state.selectedSuggestionIndex,scrollIntoView:this.state.selectedSuggestionScroll,onHover:this.onSuggestionHovered,onSelect:this.onSuggestionSelected})),o&&Object(s.createElement)("p",{id:"components-form-token-suggestions-howto-"+n,className:"components-form-token-field__help"},this.props.tokenizeOnSpace?Object(f.__)("Separate with commas, spaces, or the Enter key."):Object(f.__)("Separate with commas or the Enter key.")))}}_x.defaultProps={suggestions:Object.freeze([]),maxSuggestions:100,value:Object.freeze([]),displayTransform:l.identity,saveTransform:e=>e.trim(),onChange:()=>{},onInputChange:()=>{},isBorderless:!1,disabled:!1,tokenizeOnSpace:!1,messages:{added:Object(f.__)("Item added."),removed:Object(f.__)("Item removed."),remove:Object(f.__)("Remove item"),__experimentalInvalid:Object(f.__)("Invalid item")},__experimentalExpandOnFocus:!1,__experimentalValidateInput:()=>!0,__experimentalShowHowTo:!0};var Ex=wx(Object(p.withInstanceId)(_x));const kx={bottom:{alignItems:"flex-end",justifyContent:"center"},bottomLeft:{alignItems:"flex-start",justifyContent:"flex-end"},bottomRight:{alignItems:"flex-end",justifyContent:"flex-end"},center:{alignItems:"center",justifyContent:"center"},spaced:{alignItems:"center",justifyContent:"space-between"},left:{alignItems:"center",justifyContent:"flex-start"},right:{alignItems:"center",justifyContent:"flex-end"},stretch:{alignItems:"stretch"},top:{alignItems:"flex-start",justifyContent:"center"},topLeft:{alignItems:"flex-start",justifyContent:"flex-start"},topRight:{alignItems:"flex-start",justifyContent:"flex-end"}};function Sx(e){const{align:t,alignment:n,className:r,columnGap:o,columns:a=2,gap:i=3,isInline:c=!1,justify:l,rowGap:u,rows:d,templateColumns:f,templateRows:p,...b}=Object(is.a)(e,"Grid"),h=js(Array.isArray(a)?a:[a]),m=js(Array.isArray(d)?d:[d]),v=f||!!a&&`repeat( ${h}, 1fr )`,g=p||!!d&&`repeat( ${m}, 1fr )`,y=Object(ps.a)();return{...b,className:Object(s.useMemo)(()=>{const e=function(e){return e?kx[e]:{}}(n),a=Object(x.a)({alignItems:t,display:c?"inline-grid":"grid",gap:`calc( ${Ks.gridBase} * ${i} )`,gridTemplateColumns:v||void 0,gridTemplateRows:g||void 0,gridRowGap:u,gridColumnGap:o,justifyContent:l,verticalAlign:c?"middle":void 0,...e},"","");return y(a,r)},[t,n,r,o,i,v,g,c,l,u])}}var Cx=Object(os.a)((function(e,t){const n=Sx(e);return Object(s.createElement)(as.a,Object(c.a)({},n,{ref:t}))}),"Grid");const Px=new Set(["alert","status","log","marquee","timer"]);let Tx=[],Mx=!1;function Dx(e){if(Mx)return;const t=document.body.children;Object(l.forEach)(t,t=>{t!==e&&function(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||Px.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),Tx.push(t))}),Mx=!0}var Ix=n("ek6p"),Rx=n("+1VY"),Ax=n("7Cbv");const Nx=new Set,Lx=zs()(e=>{let t=Ax.a().replace(/[0-9]/g,"");for(;Nx.has(t);)t=Ax.a().replace(/[0-9]/g,"");return Nx.add(t),Object(Rx.a)({container:e,key:t})});function Fx(e){let{children:t,document:n}=e;if(!n)return null;const r=Lx(n.head);return Object(s.createElement)(Ix.a,{value:r},t)}let zx=0;function Bx(e){let{bodyOpenClassName:t="modal-open",role:n="dialog",title:r=null,focusOnMount:o=!0,shouldCloseOnEsc:a=!0,shouldCloseOnClickOutside:i=!0,isDismissable:u,isDismissible:b=u||!0,aria:h={labelledby:null,describedby:null},onRequestClose:m,icon:v,closeButtonLabel:g,children:y,style:O,overlayClassName:j,className:w,contentLabel:x,onKeyDown:_,isFullScreen:E=!1}=e;const k=Object(s.useRef)(),S=Object(p.useInstanceId)(Bx),C=r?"components-modal-header-"+S:h.labelledby,P=Object(p.useFocusOnMount)(o),T=Object(p.useConstrainedTabbing)(),M=Object(p.useFocusReturn)(),D=Object(p.__experimentalUseFocusOutside)(m);return Object(s.useEffect)(()=>(zx++,1===zx&&(Dx(k.current),document.body.classList.add(t)),()=>{zx--,0===zx&&(document.body.classList.remove(t),Mx&&(Object(l.forEach)(Tx,e=>{e.removeAttribute("aria-hidden")}),Tx=[],Mx=!1))}),[]),u&&gs()("isDismissable prop of the Modal component",{since:"5.4",alternative:"isDismissible prop (renamed) of the Modal component"}),Object(s.createPortal)(Object(s.createElement)("div",{ref:k,className:d()("components-modal__screen-overlay",j),onKeyDown:function(e){a&&e.keyCode===zu.ESCAPE&&!e.defaultPrevented&&(e.preventDefault(),m&&m(e))}},Object(s.createElement)(Fx,{document:document},Object(s.createElement)("div",Object(c.a)({className:d()("components-modal__frame",w,{"is-full-screen":E}),style:O,ref:Object(p.useMergeRefs)([T,M,P]),role:n,"aria-label":x,"aria-labelledby":x?null:C,"aria-describedby":h.describedby,tabIndex:"-1"},i?D:{},{onKeyDown:_}),Object(s.createElement)("div",{className:"components-modal__content",role:"document"},Object(s.createElement)("div",{className:"components-modal__header"},Object(s.createElement)("div",{className:"components-modal__header-heading-container"},v&&Object(s.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},v),r&&Object(s.createElement)("h1",{id:C,className:"components-modal__header-heading"},r)),b&&Object(s.createElement)(ld.a,{onClick:m,icon:Jg.a,label:g||Object(f.__)("Close dialog")})),y)))),document.body)}const Hx=e=>{let{isSelected:t}=e;return Object(s.createElement)(i.SVG,{width:"8",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(s.createElement)(i.Circle,{cx:"4",cy:"4",r:"4",fill:t?"#419ECD":"#E1E3E6"}))};function Vx(e){let{currentPage:t,numberOfPages:n,setCurrentPage:r}=e;return Object(s.createElement)("ul",{className:"components-guide__page-control","aria-label":Object(f.__)("Guide controls")},Object(l.times)(n,e=>Object(s.createElement)("li",{key:e,"aria-current":e===t?"step":void 0},Object(s.createElement)(ld.a,{key:e,icon:Object(s.createElement)(Hx,{isSelected:e===t}),"aria-label":Object(f.sprintf)(Object(f.__)("Page %1$d of %2$d"),e+1,n),onClick:()=>r(e)}))))}function Wx(e){const t=Object(s.useRef)();return Object(s.useLayoutEffect)(()=>{const{ownerDocument:e}=t.current,{activeElement:n,body:r}=e;n&&n!==r||t.current.focus()},[]),Object(s.createElement)(ld.a,Object(c.a)({},e,{ref:t}))}function Ux(e){let{children:t,className:n,contentLabel:r,finishButtonText:o,onFinish:a,pages:i=[]}=e;const[c,l]=Object(s.useState)(0);Object(s.useEffect)(()=>{s.Children.count(t)&&gs()("Passing children to <Guide>",{since:"5.5",alternative:"the `pages` prop"})},[t]),s.Children.count(t)&&(i=s.Children.map(t,e=>({content:e})));const u=c>0,p=c<i.length-1,b=()=>{u&&l(c-1)},h=()=>{p&&l(c+1)};return 0===i.length?null:Object(s.createElement)(Bx,{className:d()("components-guide",n),contentLabel:r,onRequestClose:a,onKeyDown:e=>{e.keyCode===zu.LEFT?b():e.keyCode===zu.RIGHT&&h()}},Object(s.createElement)("div",{className:"components-guide__container"},Object(s.createElement)("div",{className:"components-guide__page"},i[c].image,i.length>1&&Object(s.createElement)(Vx,{currentPage:c,numberOfPages:i.length,setCurrentPage:l}),i[c].content,!p&&Object(s.createElement)(Wx,{className:"components-guide__inline-finish-button",onClick:a},o||Object(f.__)("Finish"))),Object(s.createElement)("div",{className:"components-guide__footer"},u&&Object(s.createElement)(ld.a,{className:"components-guide__back-button",onClick:b},Object(f.__)("Previous")),p&&Object(s.createElement)(ld.a,{className:"components-guide__forward-button",onClick:h},Object(f.__)("Next")),!p&&Object(s.createElement)(Wx,{className:"components-guide__finish-button",onClick:a},o||Object(f.__)("Finish")))))}function Kx(e){return Object(s.useEffect)(()=>{gs()("<GuidePage>",{since:"5.5",alternative:"the `pages` prop in <Guide>"})},[]),Object(s.createElement)("div",e)}var Gx=Object(s.forwardRef)((function(e,t){let{labelPosition:n,size:r,tooltip:o,label:a,...i}=e;return gs()("wp.components.IconButton",{since:"5.4",alternative:"wp.components.Button"}),Object(s.createElement)(ld.a,Object(c.a)({},i,{ref:t,tooltipPosition:n,iconSize:r,showTooltip:void 0!==o?!!o:void 0,label:o||a}))}));function $x(e){let{target:t,callback:n,shortcut:r,bindGlobal:o,eventName:a}=e;return Object(p.useKeyboardShortcut)(r,n,{bindGlobal:o,target:t,eventName:a}),null}var qx=function(e){let{children:t,shortcuts:n,bindGlobal:r,eventName:o}=e;const a=Object(s.useRef)(),i=Object(l.map)(n,(e,t)=>Object(s.createElement)($x,{key:t,shortcut:t,callback:e,bindGlobal:r,eventName:o,target:a}));return s.Children.count(t)?Object(s.createElement)("div",{ref:a},i,t):i};var Yx=function e(t){const{children:n,className:r="",label:o,hideSeparator:a}=t,i=Object(p.useInstanceId)(e);if(!s.Children.count(n))return null;const c="components-menu-group-label-"+i,l=d()(r,"components-menu-group",{"has-hidden-separator":a});return Object(s.createElement)("div",{className:l},o&&Object(s.createElement)("div",{className:"components-menu-group__label",id:c,"aria-hidden":"true"},o),Object(s.createElement)("div",{role:"group","aria-labelledby":o?c:null},n))},Xx=n("Cw+6");var Zx=Object(s.forwardRef)((function(e,t){let{children:n,info:r,className:o,icon:a,iconPosition:i="right",shortcut:u,isSelected:f,role:p="menuitem",...b}=e;return o=d()("components-menu-item__button",o),r&&(n=Object(s.createElement)("span",{className:"components-menu-item__info-wrapper"},Object(s.createElement)("span",{className:"components-menu-item__item"},n),Object(s.createElement)("span",{className:"components-menu-item__info"},r))),a&&!Object(l.isString)(a)&&(a=Object(s.cloneElement)(a,{className:d()("components-menu-items__item-icon",{"has-icon-right":"right"===i})})),Object(s.createElement)(ld.a,Object(c.a)({ref:t,"aria-checked":"menuitemcheckbox"===p||"menuitemradio"===p?f:void 0,role:p,icon:"left"===i?a:void 0,className:o},b),Object(s.createElement)("span",{className:"components-menu-item__item"},n),Object(s.createElement)(Xx.a,{className:"components-menu-item__shortcut",shortcut:u}),a&&"right"===i&&Object(s.createElement)(fb.a,{icon:a}))}));function Jx(e){let{choices:t=[],onHover:n=l.noop,onSelect:r,value:o}=e;return t.map(e=>{const t=o===e.value;return Object(s.createElement)(Zx,{key:e.value,role:"menuitemradio",icon:t&&Yp.a,info:e.info,isSelected:t,shortcut:e.shortcut,className:"components-menu-items-choice",onClick:()=>{t||r(e.value)},onMouseEnter:()=>n(e.value),onMouseLeave:()=>n(null),"aria-label":e["aria-label"]},e.label)})}var Qx=n("k8OV");var e_=Object(s.forwardRef)((function(e,t){let{eventToOffset:n,...r}=e;return Object(s.createElement)(Mg,Object(c.a)({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!0,eventToOffset:e=>{const{keyCode:t,shiftKey:r}=e;return zu.TAB===t?r?-1:1:n?n(e):void 0}},r))}));const t_="root",n_=Object(s.createContext)({activeItem:void 0,activeMenu:t_,setActiveMenu:l.noop,isMenuEmpty:l.noop,navigationTree:{items:{},getItem:l.noop,addItem:l.noop,removeItem:l.noop,menus:{},getMenu:l.noop,addMenu:l.noop,removeMenu:l.noop,childMenu:{},traverseMenu:l.noop,isMenuEmpty:l.noop}}),r_=()=>Object(s.useContext)(n_);var o_=n("cGtP");var a_=Object(s.forwardRef)((function e(t,n){let{className:r,onChange:o,onKeyDown:a,value:i,label:c,placeholder:l=Object(f.__)("Search"),hideLabelFromVision:u=!0,help:b,onClose:h}=t;const m=Object(p.useInstanceId)(e),v=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=Object(s.useRef)(null);return Object(s.useEffect)(()=>{t.forEach(e=>{e&&("function"==typeof e?e(r.current):e.current=r.current)})},[t]),r}(n),g="components-search-control-"+m;return Object(s.createElement)(jd,{label:c,id:g,hideLabelFromVision:u,help:b,className:d()(r,"components-search-control")},Object(s.createElement)("div",{className:"components-search-control__input-wrapper"},Object(s.createElement)("input",{ref:v,className:"components-search-control__input",id:g,type:"search",placeholder:l,onChange:e=>o(e.target.value),onKeyDown:a,autoComplete:"off",value:i||""}),Object(s.createElement)("div",{className:"components-search-control__icon"},h?Object(s.createElement)(ld.a,{icon:Jg.a,label:Object(f.__)("Close search"),onClick:h}):i?Object(s.createElement)(ld.a,{icon:Jg.a,label:Object(f.__)("Reset search"),onClick:()=>{o(""),v.current.focus()}}):Object(s.createElement)(qp.a,{icon:o_.a}))))}));const i_=Object(w.a)("div",{target:"ejwewyf11"})("width:100%;box-sizing:border-box;padding:0 ",ws(4),";overflow:hidden;"),c_=Object(w.a)("div",{target:"ejwewyf10"})("margin-top:",ws(6),";margin-bottom:",ws(6),";display:flex;flex-direction:column;ul{padding:0;margin:0;list-style:none;}.components-navigation__back-button{margin-bottom:",ws(6),";}.components-navigation__group+.components-navigation__group{margin-top:",ws(6),";}"),s_=Object(w.a)(ld.a,{target:"ejwewyf9"})({name:"26l0q2",styles:"&.is-tertiary{color:inherit;opacity:0.7;&:hover:not( :disabled ){opacity:1;box-shadow:none;color:inherit;}&:active:not( :disabled ){background:transparent;opacity:1;color:inherit;}}"}),l_=Object(w.a)("div",{target:"ejwewyf8"})({name:"1aubja5",styles:"overflow:hidden;width:100%"}),u_=Object(w.a)("span",{target:"ejwewyf7"})("height:",ws(6),";.components-button.is-small{color:inherit;opacity:0.7;margin-right:",ws(1),";padding:0;&:active:not( :disabled ){background:none;opacity:1;color:inherit;}&:hover:not( :disabled ){box-shadow:none;opacity:1;color:inherit;}}"),d_=Object(w.a)(a_,{target:"ejwewyf6"})({name:"za3n3e",styles:"input[type='search'].components-search-control__input{margin:0;background:#303030;color:#fff;&:focus{background:#434343;color:#fff;}&::placeholder{color:rgba( 255, 255, 255, 0.6 );}}svg{fill:white;}.components-button.has-icon{padding:0;min-width:auto;}"}),f_=Object(w.a)(vg,{target:"ejwewyf5"})("min-height:",ws(12),";align-items:center;color:inherit;display:flex;justify-content:space-between;margin-bottom:",ws(2),";padding:",()=>Object(f.isRTL)()?`${ws(1)} ${ws(4)} ${ws(1)} ${ws(2)}`:`${ws(1)} ${ws(2)} ${ws(1)} ${ws(4)}`,";"),p_=Object(w.a)("li",{target:"ejwewyf4"})("border-radius:2px;color:inherit;margin-bottom:0;>button,>a.components-button,>a{width:100%;color:inherit;opacity:0.7;padding:",ws(2)," ",ws(4),";",Ps({textAlign:"left"},{textAlign:"right"})," &:hover,&:focus:not( [aria-disabled='true'] ):active,&:active:not( [aria-disabled='true'] ):active{color:inherit;opacity:1;}}&.is-active{background-color:",N.theme,";color:",S.white,";>button,>a{color:",S.white,";opacity:1;}}>svg path{color:",C.lightGray.ui,";}"),b_=Object(w.a)("div",{target:"ejwewyf3"})("display:flex;align-items:center;height:auto;min-height:40px;margin:0;padding:",ws(1.5)," ",ws(4),";font-weight:400;line-height:20px;width:100%;color:inherit;opacity:0.7;"),h_=Object(w.a)("span",{target:"ejwewyf2"})("display:flex;margin-right:",ws(2),";"),m_=Object(w.a)("span",{target:"ejwewyf1"})("margin-left:",()=>Object(f.isRTL)()?"0":ws(2),";margin-right:",()=>Object(f.isRTL)()?ws(2):"0",";display:inline-flex;padding:",ws(1)," ",ws(3),";border-radius:2px;animation:fade-in 250ms ease-out;@keyframes fade-in{from{opacity:0;}to{opacity:1;}}",F("animation"),";"),v_=Object(w.a)(cl,{target:"ejwewyf0"})(()=>Object(f.isRTL)()?"margin-left: auto;":"margin-right: auto;"," font-size:14px;line-height:20px;color:inherit;"),g_=()=>{const[e,t]=Object(s.useState)({});return{nodes:e,getNode:t=>e[t],addNode:(e,n)=>t(t=>({...t,[e]:Object(l.omit)(n,"children")})),removeNode:e=>t(t=>Object(l.omit)(t,e))}};function y_(e){let{activeItem:t,activeMenu:n=t_,children:r,className:o,onActivateMenu:a=l.noop}=e;const[i,c]=Object(s.useState)(n),[u,p]=Object(s.useState)(),b=(()=>{const{nodes:e,getNode:t,addNode:n,removeNode:r}=g_(),{nodes:o,getNode:a,addNode:i,removeNode:c}=g_(),[l,u]=Object(s.useState)({}),d=(e,t)=>{const n=[];let r,o=[e];for(;o.length>0&&(r=a(o.shift()),!r||n.includes(r.menu)||(n.push(r.menu),o=[...o,...(i=r.menu,l[i]||[])],!1!==t(r))););var i};return{items:e,getItem:t,addItem:n,removeItem:r,menus:o,getMenu:a,addMenu:(e,t)=>{u(n=>{const r={...n};return r[t.parentMenu]||(r[t.parentMenu]=[]),r[t.parentMenu].push(e),r}),i(e,t)},removeMenu:c,childMenu:l,traverseMenu:d,isMenuEmpty:e=>{let t=!0;return d(e,e=>{if(!e.isEmpty)return t=!1,!1}),t}}})(),h=Object(f.isRTL)()?"right":"left",m=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;b.getMenu(e)&&(p(t),c(e),a(e))},v=Object(s.useRef)(!1);Object(s.useEffect)(()=>{v.current||(v.current=!0)},[]),Object(s.useEffect)(()=>{n!==i&&m(n)},[n]);const g={activeItem:t,activeMenu:i,setActiveMenu:m,navigationTree:b},y=d()("components-navigation",o),O=Object(rt.b)({type:"slide-in",origin:u});return Object(s.createElement)(i_,{className:y},Object(s.createElement)("div",{key:i,className:d()({[O]:v.current&&u})},Object(s.createElement)(n_.Provider,{value:g},r)))}var O_=n("1iEr"),j_=n("2gm7");var w_=Object(s.forwardRef)((function(e,t){var n;let{backButtonLabel:r,className:o,href:a,onClick:i,parentMenu:c}=e;const{setActiveMenu:l,navigationTree:u}=r_(),p=d()("components-navigation__back-button",o),b=null===(n=u.getMenu(c))||void 0===n?void 0:n.title,h=Object(f.isRTL)()?O_.a:j_.a;return Object(s.createElement)(s_,{className:p,href:a,variant:"tertiary",ref:t,onClick:e=>{"function"==typeof i&&i(e);const t=Object(f.isRTL)()?"left":"right";c&&!e.defaultPrevented&&l(c,t)}},Object(s.createElement)(qp.a,{icon:h}),r||b||Object(f.__)("Back"))}));const x_=Object(s.createContext)({group:void 0});function __(e){let{children:t,className:n,title:r}=e;const[o]=Object(s.useState)(Object(l.uniqueId)("group-")),{navigationTree:{items:a}}=r_(),i={group:o};if(!Object(l.find)(a,{group:o,_isVisible:!0}))return Object(s.createElement)(x_.Provider,{value:i},t);const c="components-navigation__group-title-"+o,u=d()("components-navigation__group",n);return Object(s.createElement)(x_.Provider,{value:i},Object(s.createElement)("li",{className:u},r&&Object(s.createElement)(f_,{className:"components-navigation__group-title",id:c,level:3},r),Object(s.createElement)("ul",{"aria-labelledby":c,role:"group"},t)))}function E_(e){const{badge:t,title:n}=e;return Object(s.createElement)(s.Fragment,null,n&&Object(s.createElement)(v_,{className:"components-navigation__item-title",variant:"body.small",as:"span"},n),t&&Object(s.createElement)(m_,{className:"components-navigation__item-badge"},t))}const k_=Object(s.createContext)({menu:void 0,search:""}),S_=()=>Object(s.useContext)(k_),C_=e=>Object(l.deburr)(e).replace(/^\//,"").toLowerCase(),P_=(e,t)=>{const{activeMenu:n,navigationTree:{addItem:r,removeItem:o}}=r_(),{group:a}=Object(s.useContext)(x_),{menu:i,search:c}=S_();Object(s.useEffect)(()=>{const s=n===i,l=!c||((e,t)=>-1!==C_(e).indexOf(C_(t)))(t.title,c);return r(e,{...t,group:a,menu:i,_isVisible:s&&l}),()=>{o(e)}},[n,c])};function T_(e){var t;const{children:n,className:r,...o}=e,[a]=Object(s.useState)(Object(l.uniqueId)("item-"));P_(a,e);const{navigationTree:i}=r_();if(null===(t=i.getItem(a))||void 0===t||!t._isVisible)return null;const u=d()("components-navigation__item",r);return Object(s.createElement)(p_,Object(c.a)({className:u},o),n)}function M_(e){const{badge:t,children:n,className:r,href:o,item:a,navigateToMenu:i,onClick:u=l.noop,title:p,icon:b,hideIfTargetMenuEmpty:h,isText:m,...v}=e,{activeItem:g,setActiveMenu:y,navigationTree:{isMenuEmpty:O}}=r_();if(h&&i&&O(i))return null;const j=d()(r,{"is-active":a&&g===a}),w=Object(f.isRTL)()?j_.a:O_.a,x=n?e:{...e,onClick:void 0},_=m?v:{as:ld.a,href:o,onClick:e=>{i&&y(i),u(e)},...v};return Object(s.createElement)(T_,Object(c.a)({},x,{className:j}),n||Object(s.createElement)(b_,_,b&&Object(s.createElement)(h_,null,Object(s.createElement)(qp.a,{icon:b})),Object(s.createElement)(E_,{title:p,badge:t}),i&&Object(s.createElement)(qp.a,{icon:w})))}var D_=wx((function(e){let{debouncedSpeak:t,onCloseSearch:n,onSearch:r,search:o,title:a}=e;const{navigationTree:{items:i}}=r_(),{menu:c}=S_(),u=Object(s.useRef)();Object(s.useEffect)(()=>{const e=setTimeout(()=>{u.current.focus()},100);return()=>{clearTimeout(e)}},[]),Object(s.useEffect)(()=>{if(!o)return;const e=Object(l.filter)(i,"_isVisible").length,n=Object(f.sprintf)(Object(f._n)("%d result found.","%d results found.",e),e);t(n)},[i,o]);const d=()=>{r(""),n()},p="components-navigation__menu-title-search-"+c,b=Object(f.sprintf)(Object(f.__)("Search %s"),null==a?void 0:a.toLowerCase()).trim();return Object(s.createElement)("div",{className:"components-navigation__menu-title-search"},Object(s.createElement)(d_,{autoComplete:"off",className:"components-navigation__menu-search-input",id:p,onChange:e=>r(e),onKeyDown:function(e){e.keyCode!==zu.ESCAPE||e.defaultPrevented||(e.preventDefault(),d())},placeholder:b,onClose:d,ref:u,type:"search",value:o}))}));function I_(e){let{hasSearch:t,onSearch:n,search:r,title:o,titleAction:a}=e;const[i,c]=Object(s.useState)(!1),{menu:l}=S_(),u=Object(s.useRef)();if(!o)return null;const d="components-navigation__menu-title-"+l,p=Object(f.sprintf)(Object(f.__)("Search in %s"),o);return Object(s.createElement)(l_,{className:"components-navigation__menu-title"},!i&&Object(s.createElement)(f_,{as:"h2",className:"components-navigation__menu-title-heading",level:3},Object(s.createElement)("span",{id:d},o),(t||a)&&Object(s.createElement)(u_,null,a,t&&Object(s.createElement)(ld.a,{isSmall:!0,variant:"tertiary",label:p,onClick:()=>c(!0),ref:u},Object(s.createElement)(qp.a,{icon:o_.a})))),i&&Object(s.createElement)("div",{className:Object(rt.b)({type:"slide-in",origin:"left"})},Object(s.createElement)(D_,{onCloseSearch:()=>{c(!1),setTimeout(()=>{u.current.focus()},100)},onSearch:n,search:r,title:o})))}function R_(e){let{search:t}=e;const{navigationTree:{items:n}}=r_(),r=Object(l.filter)(n,"_isVisible").length;return!t||r?null:Object(s.createElement)(p_,null,Object(s.createElement)(b_,null,Object(f.__)("No results found.")," "))}function A_(e){const{backButtonLabel:t,children:n,className:r,hasSearch:o,menu:a=t_,onBackButtonClick:i,onSearch:c,parentMenu:l,search:u,isSearchDebouncing:f,title:p,titleAction:b}=e,[h,m]=Object(s.useState)("");(e=>{const{navigationTree:{addMenu:t,removeMenu:n}}=r_(),r=e.menu||t_;Object(s.useEffect)(()=>(t(r,{...e,menu:r}),()=>{n(r)}),[])})(e);const{activeMenu:v}=r_(),g={menu:a,search:h};if(v!==a)return Object(s.createElement)(k_.Provider,{value:g},n);const y=!!c,O=y?u:h,j=y?c:m,w="components-navigation__menu-title-"+a,x=d()("components-navigation__menu",r);return Object(s.createElement)(k_.Provider,{value:g},Object(s.createElement)(c_,{className:x},(l||i)&&Object(s.createElement)(w_,{backButtonLabel:t,parentMenu:l,onClick:i}),p&&Object(s.createElement)(I_,{hasSearch:o,onSearch:j,search:O,title:p,titleAction:b}),Object(s.createElement)(Dg,null,Object(s.createElement)("ul",{"aria-labelledby":w},n,O&&!f&&Object(s.createElement)(R_,{search:O})))))}const N_=Object(s.createContext)([{},()=>{}]);var L_={name:"15bx5k",styles:"overflow-x:hidden"};var F_=Object(os.a)((function(e,t){const{initialPath:n,children:r,className:o,...a}=Object(is.a)(e,"NavigatorProvider"),[i,l]=Object(s.useState)({path:n}),u=Object(ps.a)(),d=Object(s.useMemo)(()=>u(L_,o),[o]);return Object(s.createElement)(as.a,Object(c.a)({ref:t,className:d},a),Object(s.createElement)(N_.Provider,{value:[i,l]},r))}),"NavigatorProvider");var z_={name:"14x3t6z",styles:"overflow-x:auto;max-height:100%"};var B_=Object(os.a)((function(e,t){const{children:n,className:r,path:o,...a}=Object(is.a)(e,"NavigatorScreen"),i=Object(p.useReducedMotion)(),[l]=Object(s.useContext)(N_),u=l.path===o,d=Object(p.useFocusOnMount)(),b=Object(ps.a)(),h=Object(s.useMemo)(()=>b(z_,r),[r]),[m,v]=Object(s.useState)(!1);if(Object(s.useEffect)(()=>{v(!0)},[o]),!u)return null;if(i)return Object(s.createElement)(as.a,Object(c.a)({ref:t,className:h},a),n);const g={opacity:1,transition:{delay:0,duration:.14,ease:"easeInOut"},x:0},y={opacity:0,x:Object(f.isRTL)()&&l.isBack||!Object(f.isRTL)()&&!l.isBack?50:-50},O={animate:g,exit:{delay:0,opacity:0,x:!Object(f.isRTL)()&&l.isBack||Object(f.isRTL)()&&!l.isBack?50:-50,transition:{duration:.14,ease:"easeInOut"}},initial:y};return Object(s.createElement)(rs.div,Object(c.a)({ref:m?d:void 0,className:h},a,O),n)}),"NavigatorScreen");var H_=function(){const[,e]=Object(s.useContext)(N_);return{push(t,n){e({path:t,...n})}}},V_=n("w95h");function W_(e){switch(e){case"success":case"warning":case"info":return"polite";case"error":default:return"assertive"}}var U_=function(e){let{className:t,status:n="info",children:r,spokenMessage:o=r,onRemove:a=l.noop,isDismissible:i=!0,actions:c=[],politeness:u=W_(n),__unstableHTML:p,onDismiss:b=l.noop}=e;!function(e,t){const n="string"==typeof e?e:Object(s.renderToString)(e);Object(s.useEffect)(()=>{n&&Object(cd.speak)(n,t)},[n,t])}(o,u);const h=d()(t,"components-notice","is-"+n,{"is-dismissible":i});return p&&(r=Object(s.createElement)(s.RawHTML,null,r)),Object(s.createElement)("div",{className:h},Object(s.createElement)("div",{className:"components-notice__content"},r,Object(s.createElement)("div",{className:"components-notice__actions"},c.map((e,t)=>{let{className:n,label:r,isPrimary:o,variant:a,noDefaultClasses:i=!1,onClick:c,url:l}=e,u=a;return"primary"===a||i||(u=l?"link":"secondary"),void 0===u&&o&&(u="primary"),Object(s.createElement)(ld.a,{key:t,href:l,variant:u,onClick:l?void 0:c,className:d()("components-notice__action",n)},r)}))),i&&Object(s.createElement)(ld.a,{className:"components-notice__dismiss",icon:V_.a,label:Object(f.__)("Dismiss this notice"),onClick:e=>{var t;null==e||null===(t=e.preventDefault)||void 0===t||t.call(e),b(),a()},showTooltip:!1}))};var K_=function(e){let{notices:t,onRemove:n=l.noop,className:r,children:o}=e;return r=d()("components-notice-list",r),Object(s.createElement)("div",{className:r},o,[...t].reverse().map(e=>{return Object(s.createElement)(U_,Object(c.a)({},Object(l.omit)(e,["content"]),{key:e.id,onRemove:(t=e.id,()=>n(t))}),e.content);var t}))};var G_=function(e){let{label:t,children:n}=e;return Object(s.createElement)("div",{className:"components-panel__header"},t&&Object(s.createElement)("h2",null,t),n)};var $_=Object(s.forwardRef)((function(e,t){let{header:n,className:r,children:o}=e;const a=d()(r,"components-panel");return Object(s.createElement)("div",{className:a,ref:t},n&&Object(s.createElement)(G_,{label:n}),o)})),q_=n("XgzB");const Y_=Object(s.forwardRef)((e,t)=>{let{isOpened:n,icon:r,title:o,...a}=e;return o?Object(s.createElement)("h2",{className:"components-panel__body-title"},Object(s.createElement)(ld.a,Object(c.a)({className:"components-panel__body-toggle","aria-expanded":n,ref:t},a),Object(s.createElement)("span",{"aria-hidden":"true"},Object(s.createElement)(fb.a,{className:"components-panel__arrow",icon:n?q_.a:cb.a})),o,r&&Object(s.createElement)(fb.a,{icon:r,className:"components-panel__icon",size:20}))):null}),X_=Object(s.forwardRef)((function(e,t){let{buttonProps:n={},children:r,className:o,icon:a,initialOpen:i,onToggle:u=l.noop,opened:f,title:b,scrollAfterOpen:h=!0}=e;const[m,v]=Xd(f,{initial:void 0===i||i}),g=Object(s.useRef)(),y=Object(p.useReducedMotion)()?"auto":"smooth",O=Object(s.useRef)();O.current=h,qu(()=>{var e;m&&O.current&&null!==(e=g.current)&&void 0!==e&&e.scrollIntoView&&g.current.scrollIntoView({inline:"nearest",block:"nearest",behavior:y})},[m,y]);const j=d()("components-panel__body",o,{"is-opened":m});return Object(s.createElement)("div",{className:j,ref:Object(p.useMergeRefs)([g,t])},Object(s.createElement)(Y_,Object(c.a)({icon:a,isOpened:m,onClick:e=>{e.preventDefault();const t=!m;v(t),u(t)},title:b},n)),"function"==typeof r?r({opened:m}):m&&r)}));X_.displayName="PanelBody";var Z_=X_;var J_=Object(s.forwardRef)((e,t)=>{let{className:n,children:r}=e;return Object(s.createElement)("div",{className:d()("components-panel__row",n),ref:t},r)});var Q_=function(e){let{icon:t,children:n,label:r,instructions:o,className:a,notices:i,preview:l,isColumnLayout:u,...f}=e;const[b,{width:h}]=Object(p.useResizeObserver)();let m;"number"==typeof h&&(m={"is-large":h>=480,"is-medium":h>=160&&h<480,"is-small":h<160});const v=d()("components-placeholder",a,m),g=d()("components-placeholder__fieldset",{"is-column-layout":u});return Object(s.createElement)("div",Object(c.a)({},f,{className:v}),b,i,l&&Object(s.createElement)("div",{className:"components-placeholder__preview"},l),Object(s.createElement)("div",{className:"components-placeholder__label"},Object(s.createElement)(fb.a,{icon:t}),r),!!o&&Object(s.createElement)("div",{className:"components-placeholder__instructions"},o),Object(s.createElement)("div",{className:g},n))};function eE(e){const t=e.map(e=>({children:[],parent:null,...e})),n=Object(l.groupBy)(t,"parent");if(n.null&&n.null.length)return t;const r=e=>e.map(e=>{const t=n[e.id];return{...e,children:t&&t.length?r(t):[]}});return r(n[0]||[])}function tE(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object(l.flatMap)(e,e=>[{value:e.id,label:Object(l.repeat)(" ",3*t)+Object(l.unescape)(e.name)},...tE(e.children||[],t+1)])}function nE(e){let{label:t,noOptionLabel:n,onChange:r,selectedId:o,tree:a,...i}=e;const u=Object(s.useMemo)(()=>Object(l.compact)([n&&{value:"",label:n},...tE(a)]),[n,a]);return Object(s.createElement)(db,Object(c.a)({label:t,options:u,onChange:r,value:o},i))}function rE(e){let{label:t,noOptionLabel:n,categoriesList:r,selectedCategoryId:o,onChange:a,...i}=e;const l=Object(s.useMemo)(()=>eE(r),[r]);return Object(s.createElement)(nE,Object(c.a)({label:t,noOptionLabel:n,onChange:a,tree:l,selectedId:o},i))}function oE(e){let{label:t,noOptionLabel:n,authorList:r,selectedAuthorId:o,onChange:a}=e;if(!r)return null;const i=eE(r);return Object(s.createElement)(nE,{label:t,noOptionLabel:n,onChange:a,tree:i,selectedId:o})}const aE=1,iE=100;function cE(e){let{authorList:t,selectedAuthorId:n,categoriesList:r,selectedCategoryId:o,categorySuggestions:a,selectedCategories:i,numberOfItems:c,order:l,orderBy:u,maxItems:d=iE,minItems:p=aE,onCategoryChange:b,onAuthorChange:h,onNumberOfItemsChange:m,onOrderChange:v,onOrderByChange:g}=e;return[v&&g&&Object(s.createElement)(db,{key:"query-controls-order-select",label:Object(f.__)("Order by"),value:`${u}/${l}`,options:[{label:Object(f.__)("Newest to oldest"),value:"date/desc"},{label:Object(f.__)("Oldest to newest"),value:"date/asc"},{label:Object(f.__)("A → Z"),value:"title/asc"},{label:Object(f.__)("Z → A"),value:"title/desc"}],onChange:e=>{const[t,n]=e.split("/");n!==l&&v(n),t!==u&&g(t)}}),r&&b&&Object(s.createElement)(rE,{key:"query-controls-category-select",categoriesList:r,label:Object(f.__)("Category"),noOptionLabel:Object(f.__)("All"),selectedCategoryId:o,onChange:b}),a&&b&&Object(s.createElement)(Ex,{key:"query-controls-categories-select",label:Object(f.__)("Categories"),value:i&&i.map(e=>({id:e.id,value:e.name||e.value})),suggestions:Object.keys(a),onChange:b,maxSuggestions:20}),h&&Object(s.createElement)(oE,{key:"query-controls-author-select",authorList:t,label:Object(f.__)("Author"),noOptionLabel:Object(f.__)("All"),selectedAuthorId:n,onChange:h}),m&&Object(s.createElement)(zb,{key:"query-controls-range-control",label:Object(f.__)("Number of items"),value:c,onChange:m,min:p,max:d,required:!0})]}var sE=Object(s.createContext)({state:null,setState:()=>{}});var lE=Object(s.forwardRef)((function(e,t){let{children:n,value:r,...o}=e;const a=Object(s.useContext)(sE),i=a.state===r;return Object(s.createElement)(Zw,Object(c.a)({ref:t,as:ld.a,variant:i?"primary":"secondary",value:r},a,o),n||r)}));var uE=Object(s.forwardRef)((function(e,t){let{label:n,checked:r,defaultChecked:o,disabled:a,onChange:i,...l}=e;const u=Rw({state:o,baseId:l.id}),d={...u,disabled:a,state:null!=r?r:u.state,setState:null!=i?i:u.setState};return Object(s.createElement)(sE.Provider,{value:d},Object(s.createElement)(zw,Object(c.a)({ref:t,as:ep,"aria-label":n},u,l)))}));function dE(e){let{label:t,className:n,selected:r,help:o,onChange:a,hideLabelFromVision:i,options:u=[],...f}=e;const b="inspector-radio-control-"+Object(p.useInstanceId)(dE),h=e=>a(e.target.value);return!Object(l.isEmpty)(u)&&Object(s.createElement)(jd,{label:t,id:b,hideLabelFromVision:i,help:o,className:d()(n,"components-radio-control")},u.map((e,t)=>Object(s.createElement)("div",{key:`${b}-${t}`,className:"components-radio-control__option"},Object(s.createElement)("input",Object(c.a)({id:`${b}-${t}`,className:"components-radio-control__input",type:"radio",name:b,value:e.value,onChange:h,checked:e.value===r,"aria-describedby":o?b+"__help":void 0},f)),Object(s.createElement)("label",{htmlFor:`${b}-${t}`},e.label))))}var fE=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pE=function(){return(pE=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},bE={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},hE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return fE(t,e),t.prototype.render=function(){return q.createElement("div",{className:this.props.className||"",style:pE(pE({position:"absolute",userSelect:"none"},bE[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(q.PureComponent),mE=n("75pU"),vE=n.n(mE),gE=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yE=function(){return(yE=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},OE={width:"auto",height:"auto"},jE=vE()((function(e,t,n){return Math.max(Math.min(e,n),t)})),wE=vE()((function(e,t){return Math.round(e/t)*t})),xE=vE()((function(e,t){return new RegExp(e,"i").test(t)})),_E=function(e){return Boolean(e.touches&&e.touches.length)},EE=vE()((function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,o){return Math.abs(r-e)<Math.abs(t[n]-e)?o:n}),0),o=Math.abs(t[r]-e);return 0===n||o<n?t[r]:e})),kE=vE()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),SE=vE()((function(e){return"auto"===(e=e.toString())||kE(e,"px")||kE(e,"%")||kE(e,"vh")||kE(e,"vw")||kE(e,"vmax")||kE(e,"vmin")?e:e+"px"})),CE=function(e,t,n,r){if(e&&"string"==typeof e){if(kE(e,"px"))return Number(e.replace("px",""));if(kE(e,"%"))return t*(Number(e.replace("%",""))/100);if(kE(e,"vw"))return n*(Number(e.replace("vw",""))/100);if(kE(e,"vh"))return r*(Number(e.replace("vh",""))/100)}return e},PE=vE()((function(e,t,n,r,o,a,i){return r=CE(r,e.width,t,n),o=CE(o,e.height,t,n),a=CE(a,e.width,t,n),i=CE(i,e.height,t,n),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===o?void 0:Number(o),minWidth:void 0===a?void 0:Number(a),minHeight:void 0===i?void 0:Number(i)}})),TE=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],ME=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var e=n.parentNode;if(!e)return null;var t=n.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0",t.classList?t.classList.add("__resizable_base__"):t.className+="__resizable_base__",e.appendChild(t),t},n.removeBase=function(e){var t=n.parentNode;t&&t.removeChild(e)},n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return gE(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||OE},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,o=this.resizable.style.position;"relative"!==o&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=o}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&kE(e.propsSize[t].toString(),"%")){if(kE(e.state[t].toString(),"%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return SE(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?SE(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?SE(t.height):n("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,n=this.parentNode.style.flexWrap;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%";var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var n,r,o=this.props.boundsByDirection,a=this.state.direction,i=o&&xE("left",a),c=o&&xE("top",a);if("parent"===this.props.bounds){var s=this.parentNode;s&&(n=i?this.resizableRight-this.parentLeft:s.offsetWidth+(this.parentLeft-this.resizableLeft),r=c?this.resizableBottom-this.parentTop:s.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(n=i?this.resizableRight:this.window.innerWidth-this.resizableLeft,r=c?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(n=i?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),r=c?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return n&&Number.isFinite(n)&&(e=e&&e<n?e:n),r&&Number.isFinite(r)&&(t=t&&t<r?t:r),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,r=this.props.resizeRatio||1,o=this.state,a=o.direction,i=o.original,c=this.props,s=c.lockAspectRatio,l=c.lockAspectRatioExtraHeight,u=c.lockAspectRatioExtraWidth,d=i.width,f=i.height,p=l||0,b=u||0;return xE("right",a)&&(d=i.width+(e-i.x)*r/n,s&&(f=(d-b)/this.ratio+p)),xE("left",a)&&(d=i.width-(e-i.x)*r/n,s&&(f=(d-b)/this.ratio+p)),xE("bottom",a)&&(f=i.height+(t-i.y)*r/n,s&&(d=(f-p)*this.ratio+b)),xE("top",a)&&(f=i.height-(t-i.y)*r/n,s&&(d=(f-p)*this.ratio+b)),{newWidth:d,newHeight:f}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var o=this.props,a=o.lockAspectRatio,i=o.lockAspectRatioExtraHeight,c=o.lockAspectRatioExtraWidth,s=void 0===r.width?10:r.width,l=void 0===n.width||n.width<0?e:n.width,u=void 0===r.height?10:r.height,d=void 0===n.height||n.height<0?t:n.height,f=i||0,p=c||0;if(a){var b=(u-f)*this.ratio+p,h=(d-f)*this.ratio+p,m=(s-p)/this.ratio+f,v=(l-p)/this.ratio+f,g=Math.max(s,b),y=Math.min(l,h),O=Math.max(u,m),j=Math.min(d,v);e=jE(e,g,y),t=jE(t,O,j)}else e=jE(e,s,l),t=jE(t,u,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),o=r.left,a=r.top,i=r.right,c=r.bottom;this.resizableLeft=o,this.resizableRight=i,this.resizableTop=a,this.resizableBottom=c}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,r=0,o=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(r=e.nativeEvent.clientX,o=e.nativeEvent.clientY):e.nativeEvent&&_E(e.nativeEvent)&&(r=e.nativeEvent.touches[0].clientX,o=e.nativeEvent.touches[0].clientY),this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var a=this.window.getComputedStyle(this.resizable);if("auto"!==a.flexBasis){var i=this.parentNode;if(i){var c=this.window.getComputedStyle(i).flexDirection;this.flexDir=c.startsWith("row")?"row":"column",n=a.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var s={original:{x:r,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:yE(yE({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(s)}},t.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&_E(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var t=this.props,n=t.maxWidth,r=t.maxHeight,o=t.minWidth,a=t.minHeight,i=_E(e)?e.touches[0].clientX:e.clientX,c=_E(e)?e.touches[0].clientY:e.clientY,s=this.state,l=s.direction,u=s.original,d=s.width,f=s.height,p=this.getParentSize(),b=PE(p,this.window.innerWidth,this.window.innerHeight,n,r,o,a);n=b.maxWidth,r=b.maxHeight,o=b.minWidth,a=b.minHeight;var h=this.calculateNewSizeFromDirection(i,c),m=h.newHeight,v=h.newWidth,g=this.calculateNewMaxFromBoundary(n,r),y=this.calculateNewSizeFromAspectRatio(v,m,{width:g.maxWidth,height:g.maxHeight},{width:o,height:a});if(v=y.newWidth,m=y.newHeight,this.props.grid){var O=wE(v,this.props.grid[0]),j=wE(m,this.props.grid[1]),w=this.props.snapGap||0;v=0===w||Math.abs(O-v)<=w?O:v,m=0===w||Math.abs(j-m)<=w?j:m}this.props.snap&&this.props.snap.x&&(v=EE(v,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(m=EE(m,this.props.snap.y,this.props.snapGap));var x={width:v-u.width,height:m-u.height};if(d&&"string"==typeof d)if(kE(d,"%"))v=v/p.width*100+"%";else if(kE(d,"vw")){v=v/this.window.innerWidth*100+"vw"}else if(kE(d,"vh")){v=v/this.window.innerHeight*100+"vh"}if(f&&"string"==typeof f)if(kE(f,"%"))m=m/p.height*100+"%";else if(kE(f,"vw")){m=m/this.window.innerWidth*100+"vw"}else if(kE(f,"vh")){m=m/this.window.innerHeight*100+"vh"}var _={width:this.createSizeForCssProperty(v,"width"),height:this.createSizeForCssProperty(m,"height")};"row"===this.flexDir?_.flexBasis=_.width:"column"===this.flexDir&&(_.flexBasis=_.height),this.setState(_),this.props.onResize&&this.props.onResize(e,l,this.resizable,x)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction,o=t.original;if(n&&this.resizable){var a={width:this.size.width-o.width,height:this.size.height-o.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,a),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:yE(yE({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,r=t.handleStyles,o=t.handleClasses,a=t.handleWrapperStyle,i=t.handleWrapperClass,c=t.handleComponent;if(!n)return null;var s=Object.keys(n).map((function(t){return!1!==n[t]?q.createElement(hE,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:o&&o[t]},c&&c[t]?c[t]:null):null}));return q.createElement("div",{className:i,style:a},s)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==TE.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=yE(yE(yE({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var r=this.props.as||"div";return q.createElement(r,yE({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&q.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(q.PureComponent);const{clearTimeout:DE,setTimeout:IE}=window,RE={bottom:"bottom",corner:"corner"};function AE(e){let{axis:t,fadeTimeout:n=180,onResize:r=l.noop,position:o=RE.bottom,showPx:a=!1}=e;const[i,c]=jj()(),u=!!t,[d,f]=Object(s.useState)(!1),[p,b]=Object(s.useState)(!1),{width:h,height:m}=c,v=Object(s.useRef)(m),g=Object(s.useRef)(h),y=Object(s.useRef)(),O=()=>{u||(f(!1),b(!1))};Object(s.useEffect)(()=>{if(!(null!==h||null!==m))return;const e=h!==g.current,t=m!==v.current;if(e||t){if(h&&!g.current&&m&&!v.current)return g.current=h,void(v.current=m);e&&(f(!0),g.current=h),t&&(b(!0),v.current=m),r({width:h,height:m}),y.current&&DE(y.current),y.current=IE(O,n)}},[h,m]);return{label:function(e){let{axis:t,height:n,moveX:r=!1,moveY:o=!1,position:a=RE.bottom,showPx:i=!1,width:c}=e;if(!r&&!o)return;if(a===RE.corner)return`${c} x ${n}`;const s=i?" px":"";if(t){if("x"===t&&r)return`${c}${s}`;if("y"===t&&o)return`${n}${s}`}if(r&&o)return`${c} x ${n}`;if(r)return`${c}${s}`;if(o)return`${n}${s}`;return}({axis:t,height:m,moveX:d,moveY:p,position:o,showPx:a,width:h}),resizeListener:i}}const NE=Object(w.a)("div",{target:"ekdag503"})({name:"1cd7zoc",styles:"bottom:0;box-sizing:border-box;left:0;pointer-events:none;position:absolute;right:0;top:0"}),LE=Object(w.a)("div",{target:"ekdag502"})({name:"ajymcs",styles:"align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;opacity:0;pointer-events:none;transition:opacity 120ms linear"}),FE=Object(w.a)("div",{target:"ekdag501"})("background:",L.ui.border,";border-radius:2px;box-sizing:border-box;font-size:12px;color:",L.ui.textDark,";padding:4px 8px;position:relative;"),zE=Object(w.a)(cl,{target:"ekdag500"})("&&&{color:",L.ui.textDark,";display:block;font-size:13px;line-height:1.4;}");var BE=Object(s.forwardRef)((function(e,t){let{label:n,position:r=RE.corner,zIndex:o=1e3,...a}=e;const i=!!n,l=r===RE.bottom,u=r===RE.corner;if(!i)return null;let d={opacity:i?1:void 0,zIndex:o},p={};return l&&(d={...d,position:"absolute",bottom:-10,left:"50%",transform:"translate(-50%, 0)"},p={transform:"translate(0, 100%)"}),u&&(d={...d,position:"absolute",top:4,right:Object(f.isRTL)()?void 0:4,left:Object(f.isRTL)()?4:void 0}),Object(s.createElement)(LE,Object(c.a)({"aria-hidden":"true",className:"components-resizable-tooltip__tooltip-wrapper",ref:t,style:d},a),Object(s.createElement)(FE,{className:"components-resizable-tooltip__tooltip",style:p},Object(s.createElement)(zE,{as:"span"},n)))}));var HE=Object(s.forwardRef)((function(e,t){let{axis:n,className:r,fadeTimeout:o=180,isVisible:a=!0,labelRef:i,onResize:u=l.noop,position:f=RE.bottom,showPx:p=!0,zIndex:b=1e3,...h}=e;const{label:m,resizeListener:v}=AE({axis:n,fadeTimeout:o,onResize:u,showPx:p,position:f});if(!a)return null;const g=d()("components-resize-tooltip",r);return Object(s.createElement)(NE,Object(c.a)({"aria-hidden":"true",className:g,ref:t},h),v,Object(s.createElement)(BE,{"aria-hidden":h["aria-hidden"],label:m,position:f,ref:i,zIndex:b}))}));const VE="components-resizable-box__handle",WE="components-resizable-box__side-handle",UE="components-resizable-box__corner-handle",KE={top:d()(VE,WE,"components-resizable-box__handle-top"),right:d()(VE,WE,"components-resizable-box__handle-right"),bottom:d()(VE,WE,"components-resizable-box__handle-bottom"),left:d()(VE,WE,"components-resizable-box__handle-left"),topLeft:d()(VE,UE,"components-resizable-box__handle-top","components-resizable-box__handle-left"),topRight:d()(VE,UE,"components-resizable-box__handle-top","components-resizable-box__handle-right"),bottomRight:d()(VE,UE,"components-resizable-box__handle-bottom","components-resizable-box__handle-right"),bottomLeft:d()(VE,UE,"components-resizable-box__handle-bottom","components-resizable-box__handle-left")},GE={width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0},$E={top:GE,right:GE,bottom:GE,left:GE,topLeft:GE,topRight:GE,bottomRight:GE,bottomLeft:GE};var qE=Object(s.forwardRef)((function(e,t){let{className:n,children:r,showHandle:o=!0,__experimentalShowTooltip:a=!1,__experimentalTooltipProps:i={},...l}=e;return Object(s.createElement)(ME,Object(c.a)({className:d()("components-resizable-box__container",o&&"has-show-handle",n),handleClasses:KE,handleStyles:$E,ref:t},l),r,a&&Object(s.createElement)(HE,i))}));var YE=function(e){let{naturalWidth:t,naturalHeight:n,children:r,isInline:o=!1}=e;const[a,{width:i}]=Object(p.useResizeObserver)();if(1!==s.Children.count(r))return null;const c={paddingBottom:t<i?n:n/t*100+"%"},l=o?"span":"div";return Object(s.createElement)(l,{className:"components-responsive-wrapper"},a,Object(s.createElement)(l,{style:c}),Object(s.cloneElement)(r,{className:d()("components-responsive-wrapper__content",r.props.className)}))};const XE="\n\t( function() {\n\t\tvar observer;\n\n\t\tif ( ! window.MutationObserver || ! document.body || ! window.parent ) {\n\t\t\treturn;\n\t\t}\n\n\t\tfunction sendResize() {\n\t\t\tvar clientBoundingRect = document.body.getBoundingClientRect();\n\n\t\t\twindow.parent.postMessage( {\n\t\t\t\taction: 'resize',\n\t\t\t\twidth: clientBoundingRect.width,\n\t\t\t\theight: clientBoundingRect.height,\n\t\t\t}, '*' );\n\t\t}\n\n\t\tobserver = new MutationObserver( sendResize );\n\t\tobserver.observe( document.body, {\n\t\t\tattributes: true,\n\t\t\tattributeOldValue: false,\n\t\t\tcharacterData: true,\n\t\t\tcharacterDataOldValue: false,\n\t\t\tchildList: true,\n\t\t\tsubtree: true\n\t\t} );\n\n\t\twindow.addEventListener( 'load', sendResize, true );\n\n\t\t// Hack: Remove viewport unit styles, as these are relative\n\t\t// the iframe root and interfere with our mechanism for\n\t\t// determining the unconstrained page bounds.\n\t\tfunction removeViewportStyles( ruleOrNode ) {\n\t\t\tif( ruleOrNode.style ) {\n\t\t\t\t[ 'width', 'height', 'minHeight', 'maxHeight' ].forEach( function( style ) {\n\t\t\t\t\tif ( /^\\d+(vmin|vmax|vh|vw)$/.test( ruleOrNode.style[ style ] ) ) {\n\t\t\t\t\t\truleOrNode.style[ style ] = '';\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t}\n\t\t}\n\n\t\tArray.prototype.forEach.call( document.querySelectorAll( '[style]' ), removeViewportStyles );\n\t\tArray.prototype.forEach.call( document.styleSheets, function( stylesheet ) {\n\t\t\tArray.prototype.forEach.call( stylesheet.cssRules || stylesheet.rules, removeViewportStyles );\n\t\t} );\n\n\t\tdocument.body.style.position = 'absolute';\n\t\tdocument.body.style.width = '100%';\n\t\tdocument.body.setAttribute( 'data-resizable-iframe-connected', '' );\n\n\t\tsendResize();\n\n\t\t// Resize events can change the width of elements with 100% width, but we don't\n\t\t// get an DOM mutations for that, so do the resize when the window is resized, too.\n\t\twindow.addEventListener( 'resize', sendResize, true );\n} )();",ZE="\n\tbody {\n\t\tmargin: 0;\n\t}\n\thtml,\n\tbody,\n\tbody > div,\n\tbody > div iframe {\n\t\twidth: 100%;\n\t}\n\thtml.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio > div,\n\tbody.wp-has-aspect-ratio > div iframe {\n\t\theight: 100%;\n\t\toverflow: hidden; /* If it has an aspect ratio, it shouldn't scroll. */\n\t}\n\tbody > div > * {\n\t\tmargin-top: 0 !important; /* Has to have !important to override inline styles. */\n\t\tmargin-bottom: 0 !important;\n\t}\n";function JE(e){let{html:t="",title:n="",type:r,styles:o=[],scripts:a=[],onFocus:i}=e;const c=Object(s.useRef)(),[l,u]=Object(s.useState)(0),[d,f]=Object(s.useState)(0);function b(){try{return!!c.current.contentDocument.body}catch(e){return!1}}function h(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!b())return;const{contentDocument:i,ownerDocument:l}=c.current,{body:u}=i;if(!e&&null!==u.getAttribute("data-resizable-iframe-connected"))return;const d=Object(s.createElement)("html",{lang:l.documentElement.lang,className:r},Object(s.createElement)("head",null,Object(s.createElement)("title",null,n),Object(s.createElement)("style",{dangerouslySetInnerHTML:{__html:ZE}}),o.map((e,t)=>Object(s.createElement)("style",{key:t,dangerouslySetInnerHTML:{__html:e}}))),Object(s.createElement)("body",{"data-resizable-iframe-connected":"data-resizable-iframe-connected",className:r},Object(s.createElement)("div",{dangerouslySetInnerHTML:{__html:t}}),Object(s.createElement)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:XE}}),a.map(e=>Object(s.createElement)("script",{key:e,src:e}))));i.open(),i.write("<!DOCTYPE html>"+Object(s.renderToString)(d)),i.close()}return Object(s.useEffect)(()=>{function e(){h(!1)}function t(e){const t=c.current;if(!t||t.contentWindow!==e.source)return;let n=e.data||{};if("string"==typeof n)try{n=JSON.parse(n)}catch(e){}"resize"===n.action&&(u(n.width),f(n.height))}h();const{ownerDocument:n}=c.current,{defaultView:r}=n;return c.current.addEventListener("load",e,!1),r.addEventListener("message",t),()=>{var n;null===(n=c.current)||void 0===n||n.removeEventListener("load",e,!1),r.addEventListener("message",t)}},[]),Object(s.useEffect)(()=>{h()},[n,r,o,a]),Object(s.useEffect)(()=>{h(!0)},[t]),Object(s.createElement)("iframe",{ref:Object(p.useMergeRefs)([c,Object(p.useFocusableIframe)()]),title:n,className:"components-sandbox",sandbox:"allow-scripts allow-same-origin allow-presentation",onFocus:i,width:Math.ceil(l),height:Math.ceil(d)})}var QE=n("iB/h");const ek={init:{height:0,opacity:0},open:{height:"auto",opacity:1,transition:{height:{stiffness:1e3,velocity:-100}}},exit:{opacity:0,transition:{duration:.5}}},tk={init:!1,open:!1,exit:!1};var nk=function(e){let{notices:t,className:n,children:r,onRemove:o=l.noop}=e;const a=Object(s.useRef)(),i=Object(p.useReducedMotion)();n=d()("components-snackbar-list",n);const u=e=>()=>o(e.id);return Object(s.createElement)("div",{className:n,tabIndex:-1,ref:a},r,Object(s.createElement)(GO,null,t.map(e=>Object(s.createElement)(rs.div,{layout:!i,initial:"init",animate:"open",exit:"exit",key:e.id,variants:i?tk:ek},Object(s.createElement)("div",{className:"components-snackbar-list__notice-container"},Object(s.createElement)(QE.a,Object(c.a)({},Object(l.omit)(e,["content"]),{onRemove:u(e),listRef:a}),e.content))))))};const rk=x.b` from { transform: rotate(0deg); } @@ -57,12 +57,12 @@ PERFORMANCE OF THIS SOFTWARE. to { transform: rotate(360deg); } -`,rk=`calc( ( ${Ks.spinnerSize} - ${Ks.spinnerSize} * ( 2 / 3 ) ) / 2 )`,ok=Object(w.a)("span",{target:"e1s472tg0"})("display:inline-block;background-color:",L.gray[600],";width:",Ks.spinnerSize,";height:",Ks.spinnerSize,";opacity:0.7;margin:5px 11px 0;border-radius:100%;position:relative;&::before{content:'';position:absolute;background-color:",L.white,";top:",rk,";left:",rk,";width:calc( ",Ks.spinnerSize," / 4.5 );height:calc( ",Ks.spinnerSize," / 4.5 );border-radius:100%;transform-origin:calc( ",Ks.spinnerSize," / 3 ) calc( ",Ks.spinnerSize," / 3 );animation:",nk," 1s infinite linear;}");function ak(){return Object(s.createElement)(ok,{className:"components-spinner"})}var ik=Object(os.a)((function(e,t){const n=Pp(e);return Object(s.createElement)(as.a,Object(c.a)({},n,{ref:t}))}),"Surface");const ck=e=>{let{tabId:t,onClick:n,children:r,selected:o,...a}=e;return Object(s.createElement)(ld.a,Object(c.a)({role:"tab",tabIndex:o?null:-1,"aria-selected":o,id:t,onClick:n},a),r)};function sk(e){var t;let{className:n,children:r,tabs:o,initialTabName:a,orientation:i="horizontal",activeClass:c="is-active",onSelect:u=l.noop}=e;const f=Object(p.useInstanceId)(sk,"tab-panel"),[b,h]=Object(s.useState)(null),m=e=>{h(e),u(e)},v=Object(l.find)(o,{name:b}),g=`${f}-${null!==(t=null==v?void 0:v.name)&&void 0!==t?t:"none"}`;return Object(s.useEffect)(()=>{Object(l.find)(o,{name:b})||h(a||(o.length>0?o[0].name:null))},[o]),Object(s.createElement)("div",{className:n},Object(s.createElement)(og,{role:"tablist",orientation:i,onNavigate:(e,t)=>{t.click()},className:"components-tab-panel__tabs"},o.map(e=>Object(s.createElement)(ck,{className:d()("components-tab-panel__tabs-item",e.className,{[c]:e.name===b}),tabId:`${f}-${e.name}`,"aria-controls":`${f}-${e.name}-view`,selected:e.name===b,key:e.name,onClick:Object(l.partial)(m,e.name)},e.title))),v&&Object(s.createElement)("div",{key:g,"aria-labelledby":g,role:"tabpanel",id:g+"-view",className:"components-tab-panel__tab-content"},r(v)))}var lk=Object(s.forwardRef)((function e(t,n){let{label:r,hideLabelFromVision:o,value:a,help:i,className:l,onChange:u,type:d="text",...f}=t;const b="inspector-text-control-"+Object(p.useInstanceId)(e);return Object(s.createElement)(jd,{label:r,hideLabelFromVision:o,id:b,help:i,className:l},Object(s.createElement)("input",Object(c.a)({className:"components-text-control__input",type:d,id:b,value:a,onChange:e=>u(e.target.value),"aria-describedby":i?b+"__help":void 0,ref:n},f)))}));const uk=Object(x.a)("box-shadow:0 0 0 transparent;transition:box-shadow 0.1s linear;border-radius:",Ks.radiusBlockUi,";border:",Ks.borderWidth," solid ",L.ui.border,";",""),dk=Object(x.a)("border-color:var( --wp-admin-theme-color );box-shadow:0 0 0 calc( ",Ks.borderWidthFocus," - ",Ks.borderWidth," ) var( --wp-admin-theme-color );outline:2px solid transparent;","");var fk={huge:"1440px",wide:"1280px","x-large":"1080px",large:"960px",medium:"782px",small:"600px",mobile:"480px","zoomed-in":"280px"};const pk=Object(x.a)("font-family:",hd("default.fontFamily"),";padding:6px 8px;",uk,";font-size:",hd("mobileTextMinFontSize"),";line-height:normal;",`@media (min-width: ${fk["small"]})`,"{font-size:",hd("default.fontSize"),";line-height:normal;}&:focus{",dk,";}&::-webkit-input-placeholder{color:",L.darkGray.placeholder,";}&::-moz-placeholder{opacity:1;color:",L.darkGray.placeholder,";}&:-ms-input-placeholder{color:",L.darkGray.placeholder,";}.is-dark-theme &{&::-webkit-input-placeholder{color:",L.lightGray.placeholder,";}&::-moz-placeholder{opacity:1;color:",L.lightGray.placeholder,";}&:-ms-input-placeholder{color:",L.lightGray.placeholder,";}}","");const bk=Object(w.a)("textarea",{target:"ebk7yr50"})("width:100%;",pk,";");function hk(e){let{label:t,hideLabelFromVision:n,value:r,help:o,onChange:a,rows:i=4,className:l,...u}=e;const d="inspector-textarea-control-"+Object(p.useInstanceId)(hk);return Object(s.createElement)(jd,{label:t,hideLabelFromVision:n,id:d,help:o,className:l},Object(s.createElement)(bk,Object(c.a)({className:"components-textarea-control__input",id:d,rows:i,onChange:e=>a(e.target.value),"aria-describedby":o?d+"__help":void 0,value:r},u)))}var mk=e=>{let{text:t="",highlight:n=""}=e;const r=n.trim();if(!r)return t;const o=new RegExp(`(${Object(l.escapeRegExp)(r)})`,"gi");return Object(s.createInterpolateElement)(t.replace(o,"<mark>$&</mark>"),{mark:Object(s.createElement)("mark",null)})};var vk=function(e){return Object(s.createElement)("div",{className:"components-tip"},Object(s.createElement)(i.SVG,{width:"24",height:"24",viewBox:"0 0 24 24"},Object(s.createElement)(i.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})),Object(s.createElement)("p",null,e.children))};function gk(e){let{label:t,checked:n,help:r,className:o,onChange:a,disabled:i}=e;const c="inspector-toggle-control-"+Object(p.useInstanceId)(gk);let u,f;return r&&(u=c+"__help",f=Object(l.isFunction)(r)?r(n):r),Object(s.createElement)(jd,{id:c,help:f,className:d()("components-toggle-control",o)},Object(s.createElement)(ex,{id:c,checked:n,onChange:function(e){a(e.target.checked)},"aria-describedby":u,disabled:i}),Object(s.createElement)("label",{htmlFor:c,className:"components-toggle-control__label"},t))}var yk=n("aA0e"),Ok=n("GK4x");var jk=e=>Object(s.createElement)("div",{className:e.className},e.children);var wk=Object(s.forwardRef)((function(e,t){let{containerClassName:n,className:r,extraProps:o,children:a,title:i,isActive:l,isDisabled:u,...f}=e;return Object(s.useContext)(Ok.a)?Object(s.createElement)(yk.a,Object(c.a)({className:d()("components-toolbar-button",r)},o,f,{ref:t}),e=>Object(s.createElement)(ld.a,Object(c.a)({label:i,isPressed:l,disabled:u},e),a)):Object(s.createElement)(jk,{className:n},Object(s.createElement)(ld.a,Object(c.a)({ref:t,icon:f.icon,label:i,shortcut:f.shortcut,"data-subscript":f.subscript,onClick:e=>{e.stopPropagation(),f.onClick&&f.onClick(e)},className:d()("components-toolbar__control",r),isPressed:l,disabled:u,"data-toolbar-item":!0},o,f),a))}));var xk=e=>{let{className:t,children:n,...r}=e;return Object(s.createElement)("div",Object(c.a)({className:t},r),n)};var _k=function(e){let{controls:t=[],toggleProps:n,...r}=e;const o=e=>Object(s.createElement)(ig,Object(c.a)({controls:t,toggleProps:{...e,"data-toolbar-item":!0}},r));return Object(s.useContext)(Ok.a)?Object(s.createElement)(yk.a,n,o):o(n)};var Ek=function(e){let{controls:t=[],children:n,className:r,isCollapsed:o,title:a,...i}=e;const u=Object(s.useContext)(Ok.a);if(!(t&&t.length||n))return null;const f=d()(u?"components-toolbar-group":"components-toolbar",r);let p=t;return Array.isArray(p[0])||(p=[p]),o?Object(s.createElement)(_k,Object(c.a)({label:a,controls:p,className:f,children:n},i)):Object(s.createElement)(xk,Object(c.a)({className:f},i),Object(l.flatMap)(p,(e,t)=>e.map((e,n)=>Object(s.createElement)(wk,Object(c.a)({key:[t,n].join(),containerClassName:t>0&&0===n?"has-left-divider":null},e)))),n)};var kk=n("mjVI"),Sk=Object(_e.a)({name:"Toolbar",compose:Ge,keys:kk.a,useProps:function(e,t){return Object($.b)({role:"toolbar","aria-orientation":e.orientation},t)}}),Ck=Object(xe.a)({as:"div",useHook:Sk,useCreateElement:function(e,t,n){return Object(Te.a)(e,t,n)}});var Pk=Object(s.forwardRef)((function(e,t){let{label:n,...r}=e;const o=function(e){void 0===e&&(e={});var t=Z(e),n=t.orientation,r=void 0===n?"horizontal":n,o=Object($.a)(t,["orientation"]);return we(Object($.b)({orientation:r},o))}({loop:!0,baseId:r.id,rtl:Object(f.isRTL)()});return Object(s.createElement)(Ok.a.Provider,{value:o},Object(s.createElement)(Ck,Object(c.a)({ref:t,"aria-label":n},o,r)))}));var Tk=Object(s.forwardRef)((function(e,t){let{className:n,label:r,...o}=e;if(!r)return gs()("Using Toolbar without label prop",{since:"5.6",alternative:"ToolbarGroup component",link:"https://developer.wordpress.org/block-editor/components/toolbar/"}),Object(s.createElement)(Ek,Object(c.a)({},o,{className:n}));const a=d()("components-accessible-toolbar",n);return Object(s.createElement)(Pk,Object(c.a)({className:a,label:r,ref:t},o))}));var Mk=Object(s.forwardRef)((function(e,t){return Object(s.useContext)(Ok.a)?Object(s.createElement)(yk.a,Object(c.a)({ref:t},e.toggleProps),t=>Object(s.createElement)(ig,Object(c.a)({},e,{popoverProps:{isAlternate:!0,...e.popoverProps},toggleProps:t}))):Object(s.createElement)(ig,e)}));var Dk=Object(s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(s.createElement)(i.Path,{d:"M7 11.5h10V13H7z"}));const Ik={spacing:Object(x.a)("column-gap:",ws(4),";row-gap:",ws(6),";",""),item:{fullWidth:{name:"18iuzk9",styles:"grid-column:1/-1"}}},Rk=Object(x.a)(Ik.spacing,";border-top:",Ks.borderWidth," solid ",L.gray[200],";margin-top:-1px;padding:",ws(4),";",""),Ak={name:"huufmu",styles:">div:not( :first-of-type ){display:none;}"},Nk=Object(x.a)(Ik.item.fullWidth," gap:",ws(2),";.components-dropdown-menu{margin:",ws(-1)," 0;}&&&& .components-dropdown-menu__toggle{padding:0;min-width:",ws(6),";}",""),Lk={name:"1pmxm02",styles:"font-size:inherit;font-weight:500;line-height:normal;&&{margin:0;}"},Fk=Object(x.a)(Ik.item.fullWidth,"&>div,&>fieldset{padding-bottom:0;margin-bottom:0;max-width:100%;}&& ",md,"{margin-bottom:0;",vd,"{margin-bottom:0;}}",""),zk={name:"eivff4",styles:"display:none"},Bk={name:"16gsvie",styles:"min-width:200px"},Hk=()=>{},Vk=Object(s.createContext)({menuItems:{default:{},optional:{}},hasMenuItems:!1,isResetting:!1,shouldRenderPlaceholderItems:!1,registerPanelItem:Hk,deregisterPanelItem:Hk,flagItemCustomization:Hk,areAllOptionalControlsHidden:!0}),Wk=()=>Object(s.useContext)(Vk);const Uk=()=>{},Kk=e=>{let{items:t,onClose:n,toggleItem:r}=e;return t.length?Object(s.createElement)(Yx,null,t.map(e=>{let[t,o]=e;const a=o?Dk:Yp.a,i=o?Object(f.sprintf)(Object(f.__)("Reset %s"),t):void 0;return Object(s.createElement)(Zx,{key:t,icon:a,isSelected:!0,disabled:!o,label:i,onClick:()=>{r(t),n()},role:"menuitemcheckbox"},t)})):null},Gk=e=>{let{items:t,onClose:n,toggleItem:r}=e;return t.length?Object(s.createElement)(Yx,null,t.map(e=>{let[t,o]=e;const a=o?Object(f.sprintf)(Object(f.__)("Hide and reset %s"),t):Object(f.sprintf)(Object(f.__)("Show %s"),t);return Object(s.createElement)(Zx,{key:t,icon:o&&Yp.a,isSelected:o,label:a,onClick:()=>{r(t),n()},role:"menuitemcheckbox"},t)})):null};var $k=Object(os.a)((e,t)=>{const{areAllOptionalControlsHidden:n,dropdownMenuClassName:r,hasMenuItems:o,headingClassName:a,label:i,menuItems:l,resetAll:u,toggleItem:d,...p}=function(e){const{className:t,...n}=Object(is.a)(e,"ToolsPanelHeader"),r=Object(ps.a)(),o=Object(s.useMemo)(()=>r(Nk,t),[t]),a=Object(s.useMemo)(()=>r(Bk),[]),i=Object(s.useMemo)(()=>r(Lk),[]),{menuItems:c,hasMenuItems:l,areAllOptionalControlsHidden:u}=Wk();return{...n,areAllOptionalControlsHidden:u,dropdownMenuClassName:a,hasMenuItems:l,headingClassName:i,menuItems:c,className:o}}(e);if(!i)return null;const b=Object.entries((null==l?void 0:l.default)||{}),h=Object.entries((null==l?void 0:l.optional)||{}),m=n?Qp.a:eb.a,v=n?Object(f._x)("View and add options","Button label to reveal tool panel options"):Object(f._x)("View options","Button label to reveal tool panel options");return Object(s.createElement)(ib,Object(c.a)({},p,{ref:t}),Object(s.createElement)($v,{level:2,className:a},i),o&&Object(s.createElement)(ig,{icon:m,label:v,menuProps:{className:r},toggleProps:{isSmall:!0}},e=>{let{onClose:t=Uk}=e;return Object(s.createElement)(s.Fragment,null,Object(s.createElement)(Kk,{items:b,onClose:t,toggleItem:d}),Object(s.createElement)(Gk,{items:h,onClose:t,toggleItem:d}),Object(s.createElement)(Yx,null,Object(s.createElement)(Zx,{variant:"tertiary",onClick:()=>{u(),t()}},Object(f.__)("Reset all"))))}))},"ToolsPanelHeader");const qk=e=>{let{panelItems:t,shouldReset:n}=e;const r={default:{},optional:{}};return t.forEach(e=>{let{hasValue:t,isShownByDefault:o,label:a}=e;r[o?"default":"optional"][a]=!n&&t()}),r};function Yk(e){const{className:t,resetAll:n,panelId:r,hasInnerWrapper:o,shouldRenderPlaceholderItems:a,...i}=Object(is.a)(e,"ToolsPanel"),c=Object(s.useRef)(!1),l=c.current;Object(s.useEffect)(()=>{l&&(c.current=!1)},[l]);const[u,d]=Object(s.useState)([]),[f,p]=Object(s.useState)({default:{},optional:{}});Object(s.useEffect)(()=>{const e=qk({panelItems:u,shouldReset:!1});p(e)},[u]);const[b,h]=Object(s.useState)(!1);Object(s.useEffect)(()=>{if(f.optional){const e=Object.entries(f.optional),t=e.length>0&&!e.some(e=>{let[,t]=e;return t});h(t)}},[f.optional]);const m=Object(ps.a)(),v=Object(s.useMemo)(()=>{const e=(null==f?void 0:f.default)&&!!Object.keys(null==f?void 0:f.default).length,n=o&&(r=2,Object(x.a)(">div:not( :first-of-type ){display:grid;grid-template-columns:",`repeat( ${r}, 1fr )`,";",Ik.spacing," ",Ik.item.fullWidth,";}",""));var r;return m(Rk,n,!e&&b&&Ak,t)},[t,o,f,b]);return{...i,panelContext:{panelId:r,menuItems:f,registerPanelItem:e=>{d(t=>[...t,e])},deregisterPanelItem:e=>{const t=u.findIndex(t=>t.label===e);-1!==t&&d(e=>e.splice(t,1))},flagItemCustomization:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";p({...f,[t]:{...f[t],[e]:!0}})},areAllOptionalControlsHidden:b,hasMenuItems:!!u.length,isResetting:c.current,shouldRenderPlaceholderItems:a},resetAllItems:()=>{"function"==typeof n&&(c.current=!0,n((()=>{const e=[];return u.forEach(t=>{t.resetAllFilter&&e.push(t.resetAllFilter)}),e})()));const e=qk({panelItems:u,shouldReset:!0});p(e)},toggleItem:e=>{const t=u.find(t=>t.label===e);if(!t)return;const n=t.isShownByDefault?"default":"optional",r={...f,[n]:{...f[n],[e]:!f[n][e]}};p(r)},className:v}}var Xk=Object(os.a)((e,t)=>{const{children:n,label:r,panelContext:o,resetAllItems:a,toggleItem:i,className:c}=Yk(e);return Object(s.createElement)(Cx,{columns:2,className:c,ref:t},Object(s.createElement)(Vk.Provider,{value:o},Object(s.createElement)($k,{label:r,resetAll:a,toggleItem:i}),n))},"ToolsPanel");var Zk=Object(os.a)((e,t)=>{const{children:n,isShown:r,shouldRenderPlaceholder:o,...a}=function(e){var t,n;const{className:r,hasValue:o,isShownByDefault:a,label:i,panelId:c,resetAllFilter:l,onDeselect:u,onSelect:d,...f}=Object(is.a)(e,"ToolsPanelItem"),{panelId:b,menuItems:h,registerPanelItem:m,deregisterPanelItem:v,flagItemCustomization:g,isResetting:y,shouldRenderPlaceholderItems:O}=Wk(),j=Object(s.useCallback)(o,[c]),w=Object(s.useCallback)(l,[c]);Object(s.useEffect)(()=>(b===c&&m({hasValue:j,isShownByDefault:a,label:i,resetAllFilter:w,panelId:c}),()=>v(i)),[b,c,a,i,j,w]);const x=o(),_=Object(p.usePrevious)(x);Object(s.useEffect)(()=>{a&&x&&!_&&g(i)},[x,_,a,i]);const E=a?"default":"optional",k=null==h||null===(t=h[E])||void 0===t?void 0:t[i],S=Object(p.usePrevious)(k);Object(s.useEffect)(()=>{y||b!==c||(!k||x||S||null==d||d(),!k&&S&&(null==u||u()))},[b,k,y,x,c,S]);const C=a?void 0!==(null==h||null===(n=h[E])||void 0===n?void 0:n[i]):k,P=Object(ps.a)(),T=Object(s.useMemo)(()=>P(Fk,O&&!C&&zk,r),[C,O,r]);return{...f,isShown:C,shouldRenderPlaceholder:O,className:T}}(e);return r?Object(s.createElement)(as.a,Object(c.a)({},a,{ref:t}),n):o?Object(s.createElement)(as.a,Object(c.a)({},a,{ref:t})):null},"ToolsPanelItem");const Jk=Object(s.createContext)(),Qk=Jk.Provider;function eS(e){let{children:t}=e;const[n,r]=Object(s.useState)(),o=Object(s.useMemo)(()=>({lastFocusedElement:n,setLastFocusedElement:r}),[n]);return Object(s.createElement)(Qk,{value:o},t)}function tS(e){const t=Qv.focus.focusable.find(e,{sequential:!0});if(t&&t.length)return t.filter(t=>t.closest('[role="row"]')===e)}var nS=Object(s.forwardRef)((function(e,t){let{children:n,onExpandRow:r=(()=>{}),onCollapseRow:o=(()=>{}),...a}=e;const i=Object(s.useCallback)(e=>{const{keyCode:t,metaKey:n,ctrlKey:a,altKey:i,shiftKey:c}=e;if(n||a||i||c||!Object(l.includes)([zu.UP,zu.DOWN,zu.LEFT,zu.RIGHT],t))return;e.stopPropagation();const{activeElement:s}=document,{currentTarget:u}=e;if(!u.contains(s))return;const d=s.closest('[role="row"]'),f=tS(d),p=f.indexOf(s);if(Object(l.includes)([zu.LEFT,zu.RIGHT],t)){let n;if(n=t===zu.LEFT?Math.max(0,p-1):Math.min(p+1,f.length-1),n===p){if(t===zu.LEFT){var b,h,m;if("true"===(null==d?void 0:d.ariaExpanded))return o(d),void e.preventDefault();const t=Math.max(parseInt(null!==(b=null==d?void 0:d.ariaLevel)&&void 0!==b?b:1,10)-1,1),n=Array.from(u.querySelectorAll('[role="row"]'));let r=d;for(let e=n.indexOf(d);e>=0;e--)if(parseInt(n[e].ariaLevel,10)===t){r=n[e];break}null===(h=tS(r))||void 0===h||null===(m=h[0])||void 0===m||m.focus()}else{if("false"===(null==d?void 0:d.ariaExpanded))return r(d),void e.preventDefault();const t=tS(d);var v;if(t.length>0)null===(v=t[t.length-1])||void 0===v||v.focus()}return void e.preventDefault()}f[n].focus(),e.preventDefault()}else if(Object(l.includes)([zu.UP,zu.DOWN],t)){const n=Array.from(u.querySelectorAll('[role="row"]')),r=n.indexOf(d);let o;if(o=t===zu.UP?Math.max(0,r-1):Math.min(r+1,n.length-1),o===r)return void e.preventDefault();const a=tS(n[o]);if(!a||!a.length)return void e.preventDefault();a[Math.min(p,a.length-1)].focus(),e.preventDefault()}},[]);return Object(s.createElement)(eS,null,Object(s.createElement)("table",Object(c.a)({},a,{role:"treegrid",onKeyDown:i,ref:t}),Object(s.createElement)("tbody",null,n)))}));var rS=Object(s.forwardRef)((function(e,t){let{children:n,level:r,positionInSet:o,setSize:a,isExpanded:i,...l}=e;return Object(s.createElement)("tr",Object(c.a)({},l,{ref:t,role:"row","aria-level":r,"aria-posinset":o,"aria-setsize":a,"aria-expanded":i}),n)})),oS=Object(s.forwardRef)((function(e,t){let{children:n,as:r,...o}=e;const a=Object(s.useRef)(),i=t||a,{lastFocusedElement:c,setLastFocusedElement:l}=Object(s.useContext)(Jk);let u;c&&(u=c===i.current?0:-1);const d={ref:i,tabIndex:u,onFocus:e=>l(e.target),...o};return"function"==typeof n?n(d):Object(s.createElement)(r,d,n)})),aS=Object(s.forwardRef)((function(e,t){let{children:n,...r}=e;return Object(s.createElement)(oS,Object(c.a)({ref:t},r),n)})),iS=Object(s.forwardRef)((function(e,t){let{children:n,withoutGridItem:r=!1,...o}=e;return Object(s.createElement)("td",Object(c.a)({},o,{role:"gridcell"}),r?n:Object(s.createElement)(aS,{ref:t},n))}));var cS=Object(os.a)((function(e,t){const n=Ls(e);return Object(s.createElement)(as.a,Object(c.a)({as:"span"},n,{ref:t}))}),"Truncate");function sS(e){e.stopPropagation()}var lS=Object(s.forwardRef)((e,t)=>{let{children:n,...r}=e;return gs()("wp.components.IsolatedEventContainer",{since:"5.7"}),Object(s.createElement)("div",Object(c.a)({},r,{ref:t,onMouseDown:sS}),n)}),uS=n("dSD1"),dS=n("+WFq");const fS=Object(w.a)("div",{target:"ebn2ljm1"})({name:"5ob2ly",styles:"display:flex;position:relative"}),pS=Object(w.a)("div",{target:"ebn2ljm0"})(e=>{let{isLayered:t,offsetAmount:n}=e;return t?Object(x.a)({marginLeft:n},"",""):Object(x.a)({right:-1*n},"","")}," ",e=>{let{isLayered:t}=e;return t?bS:hS}," ",e=>{let{zIndex:t}=e;return Object(x.a)({zIndex:t},"","")},";"),bS={name:"a4hmbt",styles:"position:absolute"},hS={name:"bjn8wh",styles:"position:relative"};var mS=Object(os.a)((function(e,t){const{children:n,className:r,isLayered:o=!0,isReversed:a=!1,offset:i=0,...l}=Object(is.a)(e,"ZStack"),u=ob(n),d=u.length-1,f=u.map((e,t)=>{const n=a?d-t:t,r=i*t,c=Object(s.isValidElement)(e)?e.key:t;return Object(s.createElement)(pS,{isLayered:o,offsetAmount:r,zIndex:n,key:c},e)});return Object(s.createElement)(fS,Object(c.a)({},l,{className:r,ref:t}),f)}),"ZStack");const vS={previous:[{modifier:"ctrlShift",character:"`"},{modifier:"access",character:"p"}],next:[{modifier:"ctrl",character:"`"},{modifier:"access",character:"n"}]};function gS(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vS;const t=Object(s.useRef)(),[n,r]=Object(s.useState)(!1);function o(e){const n=Array.from(t.current.querySelectorAll('[role="region"]'));if(!n.length)return;let o=n[0];const a=n.indexOf(t.current.ownerDocument.activeElement);if(-1!==a){let t=a+e;t=-1===t?n.length-1:t,t=t===n.length?0:t,o=n[t]}o.focus(),r(!0)}const a=Object(p.useRefEffect)(e=>{function t(){r(!1)}return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}},[r]);return{ref:Object(p.useMergeRefs)([t,a]),className:n?"is-focusing-regions":"",onKeyDown(t){e.previous.some(e=>{let{modifier:n,character:r}=e;return zu.isKeyboardEvent[n](t,r)})?o(-1):e.next.some(e=>{let{modifier:n,character:r}=e;return zu.isKeyboardEvent[n](t,r)})&&o(1)}}}var yS=Object(p.createHigherOrderComponent)(e=>t=>{let{shortcuts:n,...r}=t;return Object(s.createElement)("div",gS(n),Object(s.createElement)(e,r))},"navigateRegions");var OS=Object(p.createHigherOrderComponent)(e=>function(t){const n=Object(p.useConstrainedTabbing)();return Object(s.createElement)("div",{ref:n,tabIndex:"-1"},Object(s.createElement)(e,t))},"withConstrainedTabbing"),jS=e=>Object(p.createHigherOrderComponent)(t=>class extends s.Component{constructor(){super(...arguments),this.nodeRef=this.props.node,this.state={fallbackStyles:void 0,grabStylesCompleted:!1},this.bindRef=this.bindRef.bind(this)}bindRef(e){e&&(this.nodeRef=e)}componentDidMount(){this.grabFallbackStyles()}componentDidUpdate(){this.grabFallbackStyles()}grabFallbackStyles(){const{grabStylesCompleted:t,fallbackStyles:n}=this.state;if(this.nodeRef&&!t){const t=e(this.nodeRef,this.props);Object(l.isEqual)(t,n)||this.setState({fallbackStyles:t,grabStylesCompleted:!!Object(l.every)(t)})}}render(){const e=Object(s.createElement)(t,Object(c.a)({},this.props,this.state.fallbackStyles));return this.props.node?e:Object(s.createElement)("div",{ref:this.bindRef}," ",e," ")}},"withFallbackStyles"),wS=n("g56x");function xS(e){return Object(p.createHigherOrderComponent)(t=>{const n="core/with-filters/"+e;let r;class o extends s.Component{constructor(){super(...arguments),void 0===r&&(r=Object(wS.applyFilters)(e,t))}componentDidMount(){o.instances.push(this),1===o.instances.length&&(Object(wS.addAction)("hookRemoved",n,i),Object(wS.addAction)("hookAdded",n,i))}componentWillUnmount(){o.instances=Object(l.without)(o.instances,this),0===o.instances.length&&(Object(wS.removeAction)("hookRemoved",n),Object(wS.removeAction)("hookAdded",n))}render(){return Object(s.createElement)(r,this.props)}}o.instances=[];const a=Object(l.debounce)(()=>{r=Object(wS.applyFilters)(e,t),o.instances.forEach(e=>{e.forceUpdate()})},16);function i(t){t===e&&a()}return o},"withFilters")}var _S=Object(p.createHigherOrderComponent)(e=>{const t=function(){let{onFocusReturn:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t=>n=>{const r=Object(p.useFocusReturn)(e);return Object(s.createElement)("div",{ref:r},Object(s.createElement)(t,n))}};if((n=e)instanceof s.Component||"function"==typeof n){const n=e;return t()(n)}var n;return t(e)},"withFocusReturn");const ES=e=>{let{children:t}=e;return gs()("wp.components.FocusReturnProvider component",{since:"5.7",hint:"This provider is not used anymore. You can just remove it from your codebase"}),t};var kS=Object(p.createHigherOrderComponent)(e=>{function t(t,r){const[o,a]=Object(s.useState)([]),i=Object(s.useMemo)(()=>{const e=e=>{const t=e.id?e:{...e,id:Object(Ax.a)()};a(e=>[...e,t])};return{createNotice:e,createErrorNotice:t=>{e({status:"error",content:t})},removeNotice:e=>{a(t=>t.filter(t=>t.id!==e))},removeAllNotices:()=>{a([])}}},[]),l={...t,noticeList:o,noticeOperations:i,noticeUI:o.length>0&&Object(s.createElement)(U_,{className:"components-with-notices-ui",notices:o,onRemove:i.removeNotice})};return n?Object(s.createElement)(e,Object(c.a)({},l,{ref:r})):Object(s.createElement)(e,l)}let n;const{render:r}=e;return"function"==typeof r?(n=!0,Object(s.forwardRef)(t)):t})},SLit:function(e,t,n){"use strict";var r=n("D3zA"),o=n("AM7I"),a=o("%Function.prototype.apply%"),i=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(i,a),s=o("%Object.getOwnPropertyDescriptor%",!0),l=o("%Object.defineProperty%",!0),u=o("%Math.max%");if(l)try{l({},"a",{value:1})}catch(e){l=null}e.exports=function(e){var t=c(r,i,arguments);if(s&&l){var n=s(t,"length");n.configurable&&l(t,"length",{value:1+u(0,e.length-(arguments.length-1))})}return t};var d=function(){return c(r,a,arguments)};l?l(e.exports,"apply",{value:d}):e.exports.apply=d},SSiF:function(e,t,n){var r=n("cDcd"),o={display:"block",opacity:0,position:"absolute",top:0,left:0,height:"100%",width:"100%",overflow:"hidden",pointerEvents:"none",zIndex:-1},a=function(e){var t=e.onResize,n=r.useRef();return function(e,t){var n=function(){return e.current&&e.current.contentDocument&&e.current.contentDocument.defaultView};function o(){t();var e=n();e&&e.addEventListener("resize",t)}r.useEffect((function(){return n()?o():e.current&&e.current.addEventListener&&e.current.addEventListener("load",o),function(){var e=n();e&&"function"==typeof e.removeEventListener&&e.removeEventListener("resize",t)}}),[])}(n,(function(){return t(n)})),r.createElement("iframe",{style:o,src:"about:blank",ref:n,"aria-hidden":!0,tabIndex:-1,frameBorder:0})},i=function(e){return{width:null!=e?e.offsetWidth:null,height:null!=e?e.offsetHeight:null}};e.exports=function(e){void 0===e&&(e=i);var t=r.useState(e(null)),n=t[0],o=t[1],c=r.useCallback((function(t){return o(e(t.current))}),[e]);return[r.useMemo((function(){return r.createElement(a,{onResize:c})}),[c]),n]}},SVgp:function(e,t,n){"use strict";t.a=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},SegQ:function(e,t,n){"use strict";var r,o,a,i,c=n("qeuH"),s=n("B6Q+")();if(s){r=c("Object.prototype.hasOwnProperty"),o=c("RegExp.prototype.exec"),a={};var l=function(){throw a};i={toString:l,valueOf:l},"symbol"==typeof Symbol.toPrimitive&&(i[Symbol.toPrimitive]=l)}var u=c("Object.prototype.toString"),d=Object.getOwnPropertyDescriptor;e.exports=s?function(e){if(!e||"object"!=typeof e)return!1;var t=d(e,"lastIndex");if(!(t&&r(t,"value")))return!1;try{o(e,i)}catch(e){return e===a}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===u(e)}},SyVe:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r,o=n("ouKs");try{r=window}catch(e){}function a(e){return e&&Object(o.a)(e).defaultView||r}},TFEf:function(e,t,n){"use strict";var r=n("Jt44")("%Reflect.construct%",!0),o=n("aflq");try{o({},"",{"[[Get]]":function(){}})}catch(e){o=null}if(o&&r){var a={},i={};o(i,"length",{"[[Get]]":function(){throw a},"[[Enumerable]]":!0}),e.exports=function(e){try{r(e,i)}catch(e){return e===a}}}else e.exports=function(e){return"function"==typeof e&&!!e.prototype}},TFuP:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a}));var r=["baseId","unstable_idCountRef","setBaseId","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget"],o=r,a=r},"TG4+":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withStylesPropTypes=t.css=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.withStyles=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.stylesPropName,c=void 0===n?"styles":n,u=t.themePropName,f=void 0===u?"theme":u,v=t.cssPropName,w=void 0===v?"css":v,x=t.flushBefore,_=void 0!==x&&x,E=t.pureComponent,k=void 0!==E&&E,S=void 0,C=void 0,P=void 0,T=void 0,M=y(k);function D(e){return e===l.DIRECTIONS.LTR?d.default.resolveLTR:d.default.resolveRTL}function I(e){return e===l.DIRECTIONS.LTR?P:T}function R(t,n){var r=I(t),o=t===l.DIRECTIONS.LTR?S:C,a=d.default.get();return o&&r===a||(t===l.DIRECTIONS.RTL?(C=e?d.default.createRTL(e):g,T=a,o=C):(S=e?d.default.createLTR(e):g,P=a,o=S)),o}function A(e,t){return{resolveMethod:D(e),styleDef:R(e)}}return function(e){var t=e.displayName||e.name||"Component",n=function(t){function n(e,t){p(this,n);var r=b(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t)),o=r.context[l.CHANNEL]?r.context[l.CHANNEL].getState():j;return r.state=A(o),r}return h(n,t),o(n,[{key:"componentDidMount",value:function(){var e=this;this.context[l.CHANNEL]&&(this.channelUnsubscribe=this.context[l.CHANNEL].subscribe((function(t){e.setState(A(t))})))}},{key:"componentWillUnmount",value:function(){this.channelUnsubscribe&&this.channelUnsubscribe()}},{key:"render",value:function(){var t;_&&d.default.flush();var n=this.state,o=n.resolveMethod,a=n.styleDef;return i.default.createElement(e,r({},this.props,(m(t={},f,d.default.get()),m(t,c,a()),m(t,w,o),t)))}}]),n}(M);return n.WrappedComponent=e,n.displayName="withStyles("+String(t)+")",n.contextTypes=O,e.propTypes&&(n.propTypes=(0,a.default)({},e.propTypes),delete n.propTypes[c],delete n.propTypes[f],delete n.propTypes[w]),e.defaultProps&&(n.defaultProps=(0,a.default)({},e.defaultProps)),(0,s.default)(n,e)}};var a=f(n("Koq/")),i=f(n("cDcd")),c=f(n("17x9")),s=f(n("2mql")),l=n("QEu6"),u=f(n("sDMB")),d=f(n("030x"));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.css=d.default.resolveLTR,t.withStylesPropTypes={styles:c.default.object.isRequired,theme:c.default.object.isRequired,css:c.default.func.isRequired};var v={},g=function(){return v};function y(e){if(e){if(!i.default.PureComponent)throw new ReferenceError("withStyles() pureComponent option requires React 15.3.0 or later");return i.default.PureComponent}return i.default.Component}var O=m({},l.CHANNEL,u.default),j=l.DIRECTIONS.LTR},TO8r:function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},TOwV:function(e,t,n){"use strict";e.exports=n("qT12")},TSYQ:function(e,t,n){var r; +`,ok=`calc( ( ${Ks.spinnerSize} - ${Ks.spinnerSize} * ( 2 / 3 ) ) / 2 )`,ak=Object(w.a)("span",{target:"e1s472tg0"})("display:inline-block;background-color:",L.gray[600],";width:",Ks.spinnerSize,";height:",Ks.spinnerSize,";opacity:0.7;margin:5px 11px 0;border-radius:100%;position:relative;&::before{content:'';position:absolute;background-color:",L.white,";top:",ok,";left:",ok,";width:calc( ",Ks.spinnerSize," / 4.5 );height:calc( ",Ks.spinnerSize," / 4.5 );border-radius:100%;transform-origin:calc( ",Ks.spinnerSize," / 3 ) calc( ",Ks.spinnerSize," / 3 );animation:",rk," 1s infinite linear;}");function ik(){return Object(s.createElement)(ak,{className:"components-spinner"})}var ck=Object(os.a)((function(e,t){const n=Pp(e);return Object(s.createElement)(as.a,Object(c.a)({},n,{ref:t}))}),"Surface");const sk=e=>{let{tabId:t,onClick:n,children:r,selected:o,...a}=e;return Object(s.createElement)(ld.a,Object(c.a)({role:"tab",tabIndex:o?null:-1,"aria-selected":o,id:t,onClick:n},a),r)};function lk(e){var t;let{className:n,children:r,tabs:o,initialTabName:a,orientation:i="horizontal",activeClass:c="is-active",onSelect:u=l.noop}=e;const f=Object(p.useInstanceId)(lk,"tab-panel"),[b,h]=Object(s.useState)(null),m=e=>{h(e),u(e)},v=Object(l.find)(o,{name:b}),g=`${f}-${null!==(t=null==v?void 0:v.name)&&void 0!==t?t:"none"}`;return Object(s.useEffect)(()=>{Object(l.find)(o,{name:b})||h(a||(o.length>0?o[0].name:null))},[o]),Object(s.createElement)("div",{className:n},Object(s.createElement)(Dg,{role:"tablist",orientation:i,onNavigate:(e,t)=>{t.click()},className:"components-tab-panel__tabs"},o.map(e=>Object(s.createElement)(sk,{className:d()("components-tab-panel__tabs-item",e.className,{[c]:e.name===b}),tabId:`${f}-${e.name}`,"aria-controls":`${f}-${e.name}-view`,selected:e.name===b,key:e.name,onClick:Object(l.partial)(m,e.name)},e.title))),v&&Object(s.createElement)("div",{key:g,"aria-labelledby":g,role:"tabpanel",id:g+"-view",className:"components-tab-panel__tab-content"},r(v)))}var uk=Object(s.forwardRef)((function e(t,n){let{label:r,hideLabelFromVision:o,value:a,help:i,className:l,onChange:u,type:d="text",...f}=t;const b="inspector-text-control-"+Object(p.useInstanceId)(e);return Object(s.createElement)(jd,{label:r,hideLabelFromVision:o,id:b,help:i,className:l},Object(s.createElement)("input",Object(c.a)({className:"components-text-control__input",type:d,id:b,value:a,onChange:e=>u(e.target.value),"aria-describedby":i?b+"__help":void 0,ref:n},f)))}));const dk=Object(x.a)("box-shadow:0 0 0 transparent;transition:box-shadow 0.1s linear;border-radius:",Ks.radiusBlockUi,";border:",Ks.borderWidth," solid ",L.ui.border,";",""),fk=Object(x.a)("border-color:var( --wp-admin-theme-color );box-shadow:0 0 0 calc( ",Ks.borderWidthFocus," - ",Ks.borderWidth," ) var( --wp-admin-theme-color );outline:2px solid transparent;","");var pk={huge:"1440px",wide:"1280px","x-large":"1080px",large:"960px",medium:"782px",small:"600px",mobile:"480px","zoomed-in":"280px"};const bk=Object(x.a)("font-family:",hd("default.fontFamily"),";padding:6px 8px;",dk,";font-size:",hd("mobileTextMinFontSize"),";line-height:normal;",`@media (min-width: ${pk["small"]})`,"{font-size:",hd("default.fontSize"),";line-height:normal;}&:focus{",fk,";}&::-webkit-input-placeholder{color:",L.darkGray.placeholder,";}&::-moz-placeholder{opacity:1;color:",L.darkGray.placeholder,";}&:-ms-input-placeholder{color:",L.darkGray.placeholder,";}.is-dark-theme &{&::-webkit-input-placeholder{color:",L.lightGray.placeholder,";}&::-moz-placeholder{opacity:1;color:",L.lightGray.placeholder,";}&:-ms-input-placeholder{color:",L.lightGray.placeholder,";}}","");const hk=Object(w.a)("textarea",{target:"ebk7yr50"})("width:100%;",bk,";");function mk(e){let{label:t,hideLabelFromVision:n,value:r,help:o,onChange:a,rows:i=4,className:l,...u}=e;const d="inspector-textarea-control-"+Object(p.useInstanceId)(mk);return Object(s.createElement)(jd,{label:t,hideLabelFromVision:n,id:d,help:o,className:l},Object(s.createElement)(hk,Object(c.a)({className:"components-textarea-control__input",id:d,rows:i,onChange:e=>a(e.target.value),"aria-describedby":o?d+"__help":void 0,value:r},u)))}var vk=e=>{let{text:t="",highlight:n=""}=e;const r=n.trim();if(!r)return t;const o=new RegExp(`(${Object(l.escapeRegExp)(r)})`,"gi");return Object(s.createInterpolateElement)(t.replace(o,"<mark>$&</mark>"),{mark:Object(s.createElement)("mark",null)})};var gk=function(e){return Object(s.createElement)("div",{className:"components-tip"},Object(s.createElement)(i.SVG,{width:"24",height:"24",viewBox:"0 0 24 24"},Object(s.createElement)(i.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})),Object(s.createElement)("p",null,e.children))};function yk(e){let{label:t,checked:n,help:r,className:o,onChange:a,disabled:i}=e;const c="inspector-toggle-control-"+Object(p.useInstanceId)(yk);let u,f;return r&&(u=c+"__help",f=Object(l.isFunction)(r)?r(n):r),Object(s.createElement)(jd,{id:c,help:f,className:d()("components-toggle-control",o)},Object(s.createElement)(gx,{id:c,checked:n,onChange:function(e){a(e.target.checked)},"aria-describedby":u,disabled:i}),Object(s.createElement)("label",{htmlFor:c,className:"components-toggle-control__label"},t))}var Ok=n("aA0e"),jk=n("GK4x");var wk=e=>Object(s.createElement)("div",{className:e.className},e.children);var xk=Object(s.forwardRef)((function(e,t){let{containerClassName:n,className:r,extraProps:o,children:a,title:i,isActive:l,isDisabled:u,...f}=e;return Object(s.useContext)(jk.a)?Object(s.createElement)(Ok.a,Object(c.a)({className:d()("components-toolbar-button",r)},o,f,{ref:t}),e=>Object(s.createElement)(ld.a,Object(c.a)({label:i,isPressed:l,disabled:u},e),a)):Object(s.createElement)(wk,{className:n},Object(s.createElement)(ld.a,Object(c.a)({ref:t,icon:f.icon,label:i,shortcut:f.shortcut,"data-subscript":f.subscript,onClick:e=>{e.stopPropagation(),f.onClick&&f.onClick(e)},className:d()("components-toolbar__control",r),isPressed:l,disabled:u,"data-toolbar-item":!0},o,f),a))}));var _k=e=>{let{className:t,children:n,...r}=e;return Object(s.createElement)("div",Object(c.a)({className:t},r),n)};var Ek=function(e){let{controls:t=[],toggleProps:n,...r}=e;const o=e=>Object(s.createElement)(Rg,Object(c.a)({controls:t,toggleProps:{...e,"data-toolbar-item":!0}},r));return Object(s.useContext)(jk.a)?Object(s.createElement)(Ok.a,n,o):o(n)};var kk=function(e){let{controls:t=[],children:n,className:r,isCollapsed:o,title:a,...i}=e;const u=Object(s.useContext)(jk.a);if(!(t&&t.length||n))return null;const f=d()(u?"components-toolbar-group":"components-toolbar",r);let p=t;return Array.isArray(p[0])||(p=[p]),o?Object(s.createElement)(Ek,Object(c.a)({label:a,controls:p,className:f,children:n},i)):Object(s.createElement)(_k,Object(c.a)({className:f},i),Object(l.flatMap)(p,(e,t)=>e.map((e,n)=>Object(s.createElement)(xk,Object(c.a)({key:[t,n].join(),containerClassName:t>0&&0===n?"has-left-divider":null},e)))),n)};var Sk=n("mjVI"),Ck=Object(_e.a)({name:"Toolbar",compose:Ge,keys:Sk.a,useProps:function(e,t){return Object($.b)({role:"toolbar","aria-orientation":e.orientation},t)}}),Pk=Object(xe.a)({as:"div",useHook:Ck,useCreateElement:function(e,t,n){return Object(Te.a)(e,t,n)}});var Tk=Object(s.forwardRef)((function(e,t){let{label:n,...r}=e;const o=function(e){void 0===e&&(e={});var t=Z(e),n=t.orientation,r=void 0===n?"horizontal":n,o=Object($.a)(t,["orientation"]);return we(Object($.b)({orientation:r},o))}({loop:!0,baseId:r.id,rtl:Object(f.isRTL)()});return Object(s.createElement)(jk.a.Provider,{value:o},Object(s.createElement)(Pk,Object(c.a)({ref:t,"aria-label":n},o,r)))}));var Mk=Object(s.forwardRef)((function(e,t){let{className:n,label:r,...o}=e;if(!r)return gs()("Using Toolbar without label prop",{since:"5.6",alternative:"ToolbarGroup component",link:"https://developer.wordpress.org/block-editor/components/toolbar/"}),Object(s.createElement)(kk,Object(c.a)({},o,{className:n}));const a=d()("components-accessible-toolbar",n);return Object(s.createElement)(Tk,Object(c.a)({className:a,label:r,ref:t},o))}));var Dk=Object(s.forwardRef)((function(e,t){return Object(s.useContext)(jk.a)?Object(s.createElement)(Ok.a,Object(c.a)({ref:t},e.toggleProps),t=>Object(s.createElement)(Rg,Object(c.a)({},e,{popoverProps:{isAlternate:!0,...e.popoverProps},toggleProps:t}))):Object(s.createElement)(Rg,e)}));var Ik=Object(s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(s.createElement)(i.Path,{d:"M7 11.5h10V13H7z"}));const Rk={spacing:Object(x.a)("column-gap:",ws(4),";row-gap:",ws(6),";",""),item:{fullWidth:{name:"18iuzk9",styles:"grid-column:1/-1"}}},Ak=Object(x.a)(Rk.spacing,";border-top:",Ks.borderWidth," solid ",L.gray[200],";margin-top:-1px;padding:",ws(4),";",""),Nk={name:"huufmu",styles:">div:not( :first-of-type ){display:none;}"},Lk=Object(x.a)(Rk.item.fullWidth," gap:",ws(2),";.components-dropdown-menu{margin:",ws(-1)," 0;}&&&& .components-dropdown-menu__toggle{padding:0;min-width:",ws(6),";}",""),Fk={name:"1pmxm02",styles:"font-size:inherit;font-weight:500;line-height:normal;&&{margin:0;}"},zk=Object(x.a)(Rk.item.fullWidth,"&>div,&>fieldset{padding-bottom:0;margin-bottom:0;max-width:100%;}&& ",md,"{margin-bottom:0;",vd,"{margin-bottom:0;}}",""),Bk={name:"eivff4",styles:"display:none"},Hk={name:"16gsvie",styles:"min-width:200px"},Vk=()=>{},Wk=Object(s.createContext)({menuItems:{default:{},optional:{}},hasMenuItems:!1,isResetting:!1,shouldRenderPlaceholderItems:!1,registerPanelItem:Vk,deregisterPanelItem:Vk,flagItemCustomization:Vk,areAllOptionalControlsHidden:!0}),Uk=()=>Object(s.useContext)(Wk);const Kk=()=>{},Gk=e=>{let{items:t,onClose:n,toggleItem:r}=e;return t.length?Object(s.createElement)(Yx,null,t.map(e=>{let[t,o]=e;const a=o?Ik:Yp.a,i=o?Object(f.sprintf)(Object(f.__)("Reset %s"),t):void 0;return Object(s.createElement)(Zx,{key:t,icon:a,isSelected:!0,disabled:!o,label:i,onClick:()=>{r(t),n()},role:"menuitemcheckbox"},t)})):null},$k=e=>{let{items:t,onClose:n,toggleItem:r}=e;return t.length?Object(s.createElement)(Yx,null,t.map(e=>{let[t,o]=e;const a=o?Object(f.sprintf)(Object(f.__)("Hide and reset %s"),t):Object(f.sprintf)(Object(f.__)("Show %s"),t);return Object(s.createElement)(Zx,{key:t,icon:o&&Yp.a,isSelected:o,label:a,onClick:()=>{r(t),n()},role:"menuitemcheckbox"},t)})):null};var qk=Object(os.a)((e,t)=>{const{areAllOptionalControlsHidden:n,dropdownMenuClassName:r,hasMenuItems:o,headingClassName:a,label:i,menuItems:l,resetAll:u,toggleItem:d,...p}=function(e){const{className:t,...n}=Object(is.a)(e,"ToolsPanelHeader"),r=Object(ps.a)(),o=Object(s.useMemo)(()=>r(Lk,t),[t]),a=Object(s.useMemo)(()=>r(Hk),[]),i=Object(s.useMemo)(()=>r(Fk),[]),{menuItems:c,hasMenuItems:l,areAllOptionalControlsHidden:u}=Uk();return{...n,areAllOptionalControlsHidden:u,dropdownMenuClassName:a,hasMenuItems:l,headingClassName:i,menuItems:c,className:o}}(e);if(!i)return null;const b=Object.entries((null==l?void 0:l.default)||{}),h=Object.entries((null==l?void 0:l.optional)||{}),m=n?Qp.a:eb.a,v=n?Object(f._x)("View and add options","Button label to reveal tool panel options"):Object(f._x)("View options","Button label to reveal tool panel options");return Object(s.createElement)(ib,Object(c.a)({},p,{ref:t}),Object(s.createElement)(vg,{level:2,className:a},i),o&&Object(s.createElement)(Rg,{icon:m,label:v,menuProps:{className:r},toggleProps:{isSmall:!0}},e=>{let{onClose:t=Kk}=e;return Object(s.createElement)(s.Fragment,null,Object(s.createElement)(Gk,{items:b,onClose:t,toggleItem:d}),Object(s.createElement)($k,{items:h,onClose:t,toggleItem:d}),Object(s.createElement)(Yx,null,Object(s.createElement)(Zx,{variant:"tertiary",onClick:()=>{u(),t()}},Object(f.__)("Reset all"))))}))},"ToolsPanelHeader");const Yk=e=>{let{panelItems:t,shouldReset:n}=e;const r={default:{},optional:{}};return t.forEach(e=>{let{hasValue:t,isShownByDefault:o,label:a}=e;r[o?"default":"optional"][a]=!n&&t()}),r};function Xk(e){const{className:t,resetAll:n,panelId:r,hasInnerWrapper:o,shouldRenderPlaceholderItems:a,...i}=Object(is.a)(e,"ToolsPanel"),c=Object(s.useRef)(!1),l=c.current;Object(s.useEffect)(()=>{l&&(c.current=!1)},[l]);const[u,d]=Object(s.useState)([]),[f,p]=Object(s.useState)({default:{},optional:{}});Object(s.useEffect)(()=>{const e=Yk({panelItems:u,shouldReset:!1});p(e)},[u]);const[b,h]=Object(s.useState)(!1);Object(s.useEffect)(()=>{if(f.optional){const e=Object.entries(f.optional),t=e.length>0&&!e.some(e=>{let[,t]=e;return t});h(t)}},[f.optional]);const m=Object(ps.a)(),v=Object(s.useMemo)(()=>{const e=(null==f?void 0:f.default)&&!!Object.keys(null==f?void 0:f.default).length,n=o&&(r=2,Object(x.a)(">div:not( :first-of-type ){display:grid;grid-template-columns:",`repeat( ${r}, 1fr )`,";",Rk.spacing," ",Rk.item.fullWidth,";}",""));var r;return m(Ak,n,!e&&b&&Nk,t)},[t,o,f,b]);return{...i,panelContext:{panelId:r,menuItems:f,registerPanelItem:e=>{d(t=>[...t,e])},deregisterPanelItem:e=>{const t=u.findIndex(t=>t.label===e);-1!==t&&d(e=>e.splice(t,1))},flagItemCustomization:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";p({...f,[t]:{...f[t],[e]:!0}})},areAllOptionalControlsHidden:b,hasMenuItems:!!u.length,isResetting:c.current,shouldRenderPlaceholderItems:a},resetAllItems:()=>{"function"==typeof n&&(c.current=!0,n((()=>{const e=[];return u.forEach(t=>{t.resetAllFilter&&e.push(t.resetAllFilter)}),e})()));const e=Yk({panelItems:u,shouldReset:!0});p(e)},toggleItem:e=>{const t=u.find(t=>t.label===e);if(!t)return;const n=t.isShownByDefault?"default":"optional",r={...f,[n]:{...f[n],[e]:!f[n][e]}};p(r)},className:v}}var Zk=Object(os.a)((e,t)=>{const{children:n,label:r,panelContext:o,resetAllItems:a,toggleItem:i,className:c}=Xk(e);return Object(s.createElement)(Cx,{columns:2,className:c,ref:t},Object(s.createElement)(Wk.Provider,{value:o},Object(s.createElement)(qk,{label:r,resetAll:a,toggleItem:i}),n))},"ToolsPanel");var Jk=Object(os.a)((e,t)=>{const{children:n,isShown:r,shouldRenderPlaceholder:o,...a}=function(e){var t,n;const{className:r,hasValue:o,isShownByDefault:a,label:i,panelId:c,resetAllFilter:l,onDeselect:u,onSelect:d,...f}=Object(is.a)(e,"ToolsPanelItem"),{panelId:b,menuItems:h,registerPanelItem:m,deregisterPanelItem:v,flagItemCustomization:g,isResetting:y,shouldRenderPlaceholderItems:O}=Uk(),j=Object(s.useCallback)(o,[c]),w=Object(s.useCallback)(l,[c]);Object(s.useEffect)(()=>(b===c&&m({hasValue:j,isShownByDefault:a,label:i,resetAllFilter:w,panelId:c}),()=>v(i)),[b,c,a,i,j,w]);const x=o(),_=Object(p.usePrevious)(x);Object(s.useEffect)(()=>{a&&x&&!_&&g(i)},[x,_,a,i]);const E=a?"default":"optional",k=null==h||null===(t=h[E])||void 0===t?void 0:t[i],S=Object(p.usePrevious)(k);Object(s.useEffect)(()=>{y||b!==c||(!k||x||S||null==d||d(),!k&&S&&(null==u||u()))},[b,k,y,x,c,S]);const C=a?void 0!==(null==h||null===(n=h[E])||void 0===n?void 0:n[i]):k,P=Object(ps.a)(),T=Object(s.useMemo)(()=>P(zk,O&&!C&&Bk,r),[C,O,r]);return{...f,isShown:C,shouldRenderPlaceholder:O,className:T}}(e);return r?Object(s.createElement)(as.a,Object(c.a)({},a,{ref:t}),n):o?Object(s.createElement)(as.a,Object(c.a)({},a,{ref:t})):null},"ToolsPanelItem");const Qk=Object(s.createContext)(),eS=Qk.Provider;function tS(e){let{children:t}=e;const[n,r]=Object(s.useState)(),o=Object(s.useMemo)(()=>({lastFocusedElement:n,setLastFocusedElement:r}),[n]);return Object(s.createElement)(eS,{value:o},t)}function nS(e){const t=Sg.focus.focusable.find(e,{sequential:!0});if(t&&t.length)return t.filter(t=>t.closest('[role="row"]')===e)}var rS=Object(s.forwardRef)((function(e,t){let{children:n,onExpandRow:r=(()=>{}),onCollapseRow:o=(()=>{}),...a}=e;const i=Object(s.useCallback)(e=>{const{keyCode:t,metaKey:n,ctrlKey:a,altKey:i,shiftKey:c}=e;if(n||a||i||c||!Object(l.includes)([zu.UP,zu.DOWN,zu.LEFT,zu.RIGHT],t))return;e.stopPropagation();const{activeElement:s}=document,{currentTarget:u}=e;if(!u.contains(s))return;const d=s.closest('[role="row"]'),f=nS(d),p=f.indexOf(s);if(Object(l.includes)([zu.LEFT,zu.RIGHT],t)){let n;if(n=t===zu.LEFT?Math.max(0,p-1):Math.min(p+1,f.length-1),n===p){if(t===zu.LEFT){var b,h,m;if("true"===(null==d?void 0:d.ariaExpanded))return o(d),void e.preventDefault();const t=Math.max(parseInt(null!==(b=null==d?void 0:d.ariaLevel)&&void 0!==b?b:1,10)-1,1),n=Array.from(u.querySelectorAll('[role="row"]'));let r=d;for(let e=n.indexOf(d);e>=0;e--)if(parseInt(n[e].ariaLevel,10)===t){r=n[e];break}null===(h=nS(r))||void 0===h||null===(m=h[0])||void 0===m||m.focus()}else{if("false"===(null==d?void 0:d.ariaExpanded))return r(d),void e.preventDefault();const t=nS(d);var v;if(t.length>0)null===(v=t[t.length-1])||void 0===v||v.focus()}return void e.preventDefault()}f[n].focus(),e.preventDefault()}else if(Object(l.includes)([zu.UP,zu.DOWN],t)){const n=Array.from(u.querySelectorAll('[role="row"]')),r=n.indexOf(d);let o;if(o=t===zu.UP?Math.max(0,r-1):Math.min(r+1,n.length-1),o===r)return void e.preventDefault();const a=nS(n[o]);if(!a||!a.length)return void e.preventDefault();a[Math.min(p,a.length-1)].focus(),e.preventDefault()}},[]);return Object(s.createElement)(tS,null,Object(s.createElement)("table",Object(c.a)({},a,{role:"treegrid",onKeyDown:i,ref:t}),Object(s.createElement)("tbody",null,n)))}));var oS=Object(s.forwardRef)((function(e,t){let{children:n,level:r,positionInSet:o,setSize:a,isExpanded:i,...l}=e;return Object(s.createElement)("tr",Object(c.a)({},l,{ref:t,role:"row","aria-level":r,"aria-posinset":o,"aria-setsize":a,"aria-expanded":i}),n)})),aS=Object(s.forwardRef)((function(e,t){let{children:n,as:r,...o}=e;const a=Object(s.useRef)(),i=t||a,{lastFocusedElement:c,setLastFocusedElement:l}=Object(s.useContext)(Qk);let u;c&&(u=c===i.current?0:-1);const d={ref:i,tabIndex:u,onFocus:e=>l(e.target),...o};return"function"==typeof n?n(d):Object(s.createElement)(r,d,n)})),iS=Object(s.forwardRef)((function(e,t){let{children:n,...r}=e;return Object(s.createElement)(aS,Object(c.a)({ref:t},r),n)})),cS=Object(s.forwardRef)((function(e,t){let{children:n,withoutGridItem:r=!1,...o}=e;return Object(s.createElement)("td",Object(c.a)({},o,{role:"gridcell"}),r?n:Object(s.createElement)(iS,{ref:t},n))}));var sS=Object(os.a)((function(e,t){const n=Ls(e);return Object(s.createElement)(as.a,Object(c.a)({as:"span"},n,{ref:t}))}),"Truncate");function lS(e){e.stopPropagation()}var uS=Object(s.forwardRef)((e,t)=>{let{children:n,...r}=e;return gs()("wp.components.IsolatedEventContainer",{since:"5.7"}),Object(s.createElement)("div",Object(c.a)({},r,{ref:t,onMouseDown:lS}),n)}),dS=n("dSD1"),fS=n("+WFq");const pS=Object(w.a)("div",{target:"ebn2ljm1"})({name:"5ob2ly",styles:"display:flex;position:relative"}),bS=Object(w.a)("div",{target:"ebn2ljm0"})(e=>{let{isLayered:t,offsetAmount:n}=e;return t?Object(x.a)({marginLeft:n},"",""):Object(x.a)({right:-1*n},"","")}," ",e=>{let{isLayered:t}=e;return t?hS:mS}," ",e=>{let{zIndex:t}=e;return Object(x.a)({zIndex:t},"","")},";"),hS={name:"a4hmbt",styles:"position:absolute"},mS={name:"bjn8wh",styles:"position:relative"};var vS=Object(os.a)((function(e,t){const{children:n,className:r,isLayered:o=!0,isReversed:a=!1,offset:i=0,...l}=Object(is.a)(e,"ZStack"),u=ob(n),d=u.length-1,f=u.map((e,t)=>{const n=a?d-t:t,r=i*t,c=Object(s.isValidElement)(e)?e.key:t;return Object(s.createElement)(bS,{isLayered:o,offsetAmount:r,zIndex:n,key:c},e)});return Object(s.createElement)(pS,Object(c.a)({},l,{className:r,ref:t}),f)}),"ZStack");const gS={previous:[{modifier:"ctrlShift",character:"`"},{modifier:"access",character:"p"}],next:[{modifier:"ctrl",character:"`"},{modifier:"access",character:"n"}]};function yS(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:gS;const t=Object(s.useRef)(),[n,r]=Object(s.useState)(!1);function o(e){const n=Array.from(t.current.querySelectorAll('[role="region"]'));if(!n.length)return;let o=n[0];const a=n.indexOf(t.current.ownerDocument.activeElement);if(-1!==a){let t=a+e;t=-1===t?n.length-1:t,t=t===n.length?0:t,o=n[t]}o.focus(),r(!0)}const a=Object(p.useRefEffect)(e=>{function t(){r(!1)}return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}},[r]);return{ref:Object(p.useMergeRefs)([t,a]),className:n?"is-focusing-regions":"",onKeyDown(t){e.previous.some(e=>{let{modifier:n,character:r}=e;return zu.isKeyboardEvent[n](t,r)})?o(-1):e.next.some(e=>{let{modifier:n,character:r}=e;return zu.isKeyboardEvent[n](t,r)})&&o(1)}}}var OS=Object(p.createHigherOrderComponent)(e=>t=>{let{shortcuts:n,...r}=t;return Object(s.createElement)("div",yS(n),Object(s.createElement)(e,r))},"navigateRegions");var jS=Object(p.createHigherOrderComponent)(e=>function(t){const n=Object(p.useConstrainedTabbing)();return Object(s.createElement)("div",{ref:n,tabIndex:"-1"},Object(s.createElement)(e,t))},"withConstrainedTabbing"),wS=e=>Object(p.createHigherOrderComponent)(t=>class extends s.Component{constructor(){super(...arguments),this.nodeRef=this.props.node,this.state={fallbackStyles:void 0,grabStylesCompleted:!1},this.bindRef=this.bindRef.bind(this)}bindRef(e){e&&(this.nodeRef=e)}componentDidMount(){this.grabFallbackStyles()}componentDidUpdate(){this.grabFallbackStyles()}grabFallbackStyles(){const{grabStylesCompleted:t,fallbackStyles:n}=this.state;if(this.nodeRef&&!t){const t=e(this.nodeRef,this.props);Object(l.isEqual)(t,n)||this.setState({fallbackStyles:t,grabStylesCompleted:!!Object(l.every)(t)})}}render(){const e=Object(s.createElement)(t,Object(c.a)({},this.props,this.state.fallbackStyles));return this.props.node?e:Object(s.createElement)("div",{ref:this.bindRef}," ",e," ")}},"withFallbackStyles"),xS=n("g56x");function _S(e){return Object(p.createHigherOrderComponent)(t=>{const n="core/with-filters/"+e;let r;class o extends s.Component{constructor(){super(...arguments),void 0===r&&(r=Object(xS.applyFilters)(e,t))}componentDidMount(){o.instances.push(this),1===o.instances.length&&(Object(xS.addAction)("hookRemoved",n,i),Object(xS.addAction)("hookAdded",n,i))}componentWillUnmount(){o.instances=Object(l.without)(o.instances,this),0===o.instances.length&&(Object(xS.removeAction)("hookRemoved",n),Object(xS.removeAction)("hookAdded",n))}render(){return Object(s.createElement)(r,this.props)}}o.instances=[];const a=Object(l.debounce)(()=>{r=Object(xS.applyFilters)(e,t),o.instances.forEach(e=>{e.forceUpdate()})},16);function i(t){t===e&&a()}return o},"withFilters")}var ES=Object(p.createHigherOrderComponent)(e=>{const t=function(){let{onFocusReturn:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t=>n=>{const r=Object(p.useFocusReturn)(e);return Object(s.createElement)("div",{ref:r},Object(s.createElement)(t,n))}};if((n=e)instanceof s.Component||"function"==typeof n){const n=e;return t()(n)}var n;return t(e)},"withFocusReturn");const kS=e=>{let{children:t}=e;return gs()("wp.components.FocusReturnProvider component",{since:"5.7",hint:"This provider is not used anymore. You can just remove it from your codebase"}),t};var SS=Object(p.createHigherOrderComponent)(e=>{function t(t,r){const[o,a]=Object(s.useState)([]),i=Object(s.useMemo)(()=>{const e=e=>{const t=e.id?e:{...e,id:Object(Ax.a)()};a(e=>[...e,t])};return{createNotice:e,createErrorNotice:t=>{e({status:"error",content:t})},removeNotice:e=>{a(t=>t.filter(t=>t.id!==e))},removeAllNotices:()=>{a([])}}},[]),l={...t,noticeList:o,noticeOperations:i,noticeUI:o.length>0&&Object(s.createElement)(K_,{className:"components-with-notices-ui",notices:o,onRemove:i.removeNotice})};return n?Object(s.createElement)(e,Object(c.a)({},l,{ref:r})):Object(s.createElement)(e,l)}let n;const{render:r}=e;return"function"==typeof r?(n=!0,Object(s.forwardRef)(t)):t})},SLit:function(e,t,n){"use strict";var r=n("D3zA"),o=n("AM7I"),a=o("%Function.prototype.apply%"),i=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(i,a),s=o("%Object.getOwnPropertyDescriptor%",!0),l=o("%Object.defineProperty%",!0),u=o("%Math.max%");if(l)try{l({},"a",{value:1})}catch(e){l=null}e.exports=function(e){var t=c(r,i,arguments);if(s&&l){var n=s(t,"length");n.configurable&&l(t,"length",{value:1+u(0,e.length-(arguments.length-1))})}return t};var d=function(){return c(r,a,arguments)};l?l(e.exports,"apply",{value:d}):e.exports.apply=d},SSiF:function(e,t,n){var r=n("cDcd"),o={display:"block",opacity:0,position:"absolute",top:0,left:0,height:"100%",width:"100%",overflow:"hidden",pointerEvents:"none",zIndex:-1},a=function(e){var t=e.onResize,n=r.useRef();return function(e,t){var n=function(){return e.current&&e.current.contentDocument&&e.current.contentDocument.defaultView};function o(){t();var e=n();e&&e.addEventListener("resize",t)}r.useEffect((function(){return n()?o():e.current&&e.current.addEventListener&&e.current.addEventListener("load",o),function(){var e=n();e&&"function"==typeof e.removeEventListener&&e.removeEventListener("resize",t)}}),[])}(n,(function(){return t(n)})),r.createElement("iframe",{style:o,src:"about:blank",ref:n,"aria-hidden":!0,tabIndex:-1,frameBorder:0})},i=function(e){return{width:null!=e?e.offsetWidth:null,height:null!=e?e.offsetHeight:null}};e.exports=function(e){void 0===e&&(e=i);var t=r.useState(e(null)),n=t[0],o=t[1],c=r.useCallback((function(t){return o(e(t.current))}),[e]);return[r.useMemo((function(){return r.createElement(a,{onResize:c})}),[c]),n]}},SVgp:function(e,t,n){"use strict";t.a=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},SegQ:function(e,t,n){"use strict";var r,o,a,i,c=n("qeuH"),s=n("B6Q+")();if(s){r=c("Object.prototype.hasOwnProperty"),o=c("RegExp.prototype.exec"),a={};var l=function(){throw a};i={toString:l,valueOf:l},"symbol"==typeof Symbol.toPrimitive&&(i[Symbol.toPrimitive]=l)}var u=c("Object.prototype.toString"),d=Object.getOwnPropertyDescriptor;e.exports=s?function(e){if(!e||"object"!=typeof e)return!1;var t=d(e,"lastIndex");if(!(t&&r(t,"value")))return!1;try{o(e,i)}catch(e){return e===a}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===u(e)}},SyVe:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r,o=n("ouKs");try{r=window}catch(e){}function a(e){return e&&Object(o.a)(e).defaultView||r}},TFEf:function(e,t,n){"use strict";var r=n("Jt44")("%Reflect.construct%",!0),o=n("aflq");try{o({},"",{"[[Get]]":function(){}})}catch(e){o=null}if(o&&r){var a={},i={};o(i,"length",{"[[Get]]":function(){throw a},"[[Enumerable]]":!0}),e.exports=function(e){try{r(e,i)}catch(e){return e===a}}}else e.exports=function(e){return"function"==typeof e&&!!e.prototype}},TFuP:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a}));var r=["baseId","unstable_idCountRef","setBaseId","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget"],o=r,a=r},"TG4+":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withStylesPropTypes=t.css=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.withStyles=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.stylesPropName,c=void 0===n?"styles":n,u=t.themePropName,f=void 0===u?"theme":u,v=t.cssPropName,w=void 0===v?"css":v,x=t.flushBefore,_=void 0!==x&&x,E=t.pureComponent,k=void 0!==E&&E,S=void 0,C=void 0,P=void 0,T=void 0,M=y(k);function D(e){return e===l.DIRECTIONS.LTR?d.default.resolveLTR:d.default.resolveRTL}function I(e){return e===l.DIRECTIONS.LTR?P:T}function R(t,n){var r=I(t),o=t===l.DIRECTIONS.LTR?S:C,a=d.default.get();return o&&r===a||(t===l.DIRECTIONS.RTL?(C=e?d.default.createRTL(e):g,T=a,o=C):(S=e?d.default.createLTR(e):g,P=a,o=S)),o}function A(e,t){return{resolveMethod:D(e),styleDef:R(e)}}return function(e){var t=e.displayName||e.name||"Component",n=function(t){function n(e,t){p(this,n);var r=b(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t)),o=r.context[l.CHANNEL]?r.context[l.CHANNEL].getState():j;return r.state=A(o),r}return h(n,t),o(n,[{key:"componentDidMount",value:function(){var e=this;this.context[l.CHANNEL]&&(this.channelUnsubscribe=this.context[l.CHANNEL].subscribe((function(t){e.setState(A(t))})))}},{key:"componentWillUnmount",value:function(){this.channelUnsubscribe&&this.channelUnsubscribe()}},{key:"render",value:function(){var t;_&&d.default.flush();var n=this.state,o=n.resolveMethod,a=n.styleDef;return i.default.createElement(e,r({},this.props,(m(t={},f,d.default.get()),m(t,c,a()),m(t,w,o),t)))}}]),n}(M);return n.WrappedComponent=e,n.displayName="withStyles("+String(t)+")",n.contextTypes=O,e.propTypes&&(n.propTypes=(0,a.default)({},e.propTypes),delete n.propTypes[c],delete n.propTypes[f],delete n.propTypes[w]),e.defaultProps&&(n.defaultProps=(0,a.default)({},e.defaultProps)),(0,s.default)(n,e)}};var a=f(n("Koq/")),i=f(n("cDcd")),c=f(n("17x9")),s=f(n("2mql")),l=n("QEu6"),u=f(n("sDMB")),d=f(n("030x"));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.css=d.default.resolveLTR,t.withStylesPropTypes={styles:c.default.object.isRequired,theme:c.default.object.isRequired,css:c.default.func.isRequired};var v={},g=function(){return v};function y(e){if(e){if(!i.default.PureComponent)throw new ReferenceError("withStyles() pureComponent option requires React 15.3.0 or later");return i.default.PureComponent}return i.default.Component}var O=m({},l.CHANNEL,u.default),j=l.DIRECTIONS.LTR},TO8r:function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},TOwV:function(e,t,n){"use strict";e.exports=n("qT12")},TSYQ:function(e,t,n){var r; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)){if(r.length){var i=o.apply(null,r);i&&e.push(i)}}else if("object"===a)if(r.toString===Object.prototype.toString)for(var c in r)n.call(r,c)&&r[c]&&e.push(c);else e.push(r.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},TUyu:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){(0,o.default)(r.default)};var r=a(n("lzPt")),o=a(n("WI5Z"));function a(e){return e&&e.__esModule?e:{default:e}}},Teho:function(e,t,n){"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},Thzv:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=S(n("Koq/")),i=S(n("cDcd")),c=S(n("17x9")),s=S(n("YZDV")),l=S(n("XGBb")),u=n("Hsqg"),d=n("TG4+"),f=S(n("wy2R")),p=n("1TsT"),b=n("vV+G"),h=S(n("yc2e")),m=S(n("mMiH")),v=S(n("dRQD")),g=S(n("q86A")),y=S(n("m2ax")),O=S(n("jenk")),j=S(n("Pq96")),w=S(n("6HWY")),x=S(n("J7JS")),_=S(n("aE6U")),E=S(n("2S2E")),k=n("Fv1B");function S(e){return e&&e.__esModule?e:{default:e}}var C=(0,u.forbidExtraProps)((0,a.default)({},d.withStylesPropTypes,{enableOutsideDays:c.default.bool,firstVisibleMonthIndex:c.default.number,horizontalMonthPadding:u.nonNegativeInteger,initialMonth:l.default.momentObj,isAnimating:c.default.bool,numberOfMonths:c.default.number,modifiers:c.default.objectOf(c.default.objectOf(x.default)),orientation:_.default,onDayClick:c.default.func,onDayMouseEnter:c.default.func,onDayMouseLeave:c.default.func,onMonthTransitionEnd:c.default.func,onMonthChange:c.default.func,onYearChange:c.default.func,renderMonthText:(0,u.mutuallyExclusiveProps)(c.default.func,"renderMonthText","renderMonthElement"),renderCalendarDay:c.default.func,renderDayContents:c.default.func,translationValue:c.default.number,renderMonthElement:(0,u.mutuallyExclusiveProps)(c.default.func,"renderMonthText","renderMonthElement"),daySize:u.nonNegativeInteger,focusedDate:l.default.momentObj,isFocused:c.default.bool,firstDayOfWeek:E.default,setMonthTitleHeight:c.default.func,isRTL:c.default.bool,transitionDuration:u.nonNegativeInteger,verticalBorderSpacing:u.nonNegativeInteger,monthFormat:c.default.string,phrases:c.default.shape((0,h.default)(b.CalendarDayPhrases)),dayAriaLabelFormat:c.default.string})),P={enableOutsideDays:!1,firstVisibleMonthIndex:0,horizontalMonthPadding:13,initialMonth:(0,f.default)(),isAnimating:!1,numberOfMonths:1,modifiers:{},orientation:k.HORIZONTAL_ORIENTATION,onDayClick:function(){},onDayMouseEnter:function(){},onDayMouseLeave:function(){},onMonthChange:function(){},onYearChange:function(){},onMonthTransitionEnd:function(){},renderMonthText:null,renderCalendarDay:void 0,renderDayContents:null,translationValue:null,renderMonthElement:null,daySize:k.DAY_SIZE,focusedDate:null,isFocused:!1,firstDayOfWeek:null,setMonthTitleHeight:null,isRTL:!1,transitionDuration:200,verticalBorderSpacing:void 0,monthFormat:"MMMM YYYY",phrases:b.CalendarDayPhrases,dayAriaLabelFormat:void 0};function T(e,t,n){var r=e.clone();n||(r=r.subtract(1,"month"));for(var o=[],a=0;a<(n?t:t+2);a+=1)o.push(r),r=r.clone().add(1,"month");return o}var M=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=e.orientation===k.VERTICAL_SCROLLABLE;return n.state={months:T(e.initialMonth,e.numberOfMonths,r)},n.isTransitionEndSupported=(0,v.default)(),n.onTransitionEnd=n.onTransitionEnd.bind(n),n.setContainerRef=n.setContainerRef.bind(n),n.locale=f.default.locale(),n.onMonthSelect=n.onMonthSelect.bind(n),n.onYearSelect=n.onYearSelect.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.removeEventListener=(0,p.addEventListener)(this.container,"transitionend",this.onTransitionEnd)}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=e.initialMonth,r=e.numberOfMonths,o=e.orientation,a=this.state.months,i=this.props,c=i.initialMonth,s=i.numberOfMonths!==r,l=a;c.isSame(n,"month")||s||((0,w.default)(c,n)?(l=a.slice(1)).push(a[a.length-1].clone().add(1,"month")):(0,j.default)(c,n)?(l=a.slice(0,a.length-1)).unshift(a[0].clone().subtract(1,"month")):l=T(n,r,o===k.VERTICAL_SCROLLABLE));s&&(l=T(n,r,o===k.VERTICAL_SCROLLABLE));var u=f.default.locale();this.locale!==u&&(this.locale=u,l=l.map((function(e){return e.locale(t.locale)}))),this.setState({months:l})}},{key:"shouldComponentUpdate",value:function(e,t){return(0,s.default)(this,e,t)}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.isAnimating,n=e.transitionDuration,r=e.onMonthTransitionEnd;this.isTransitionEndSupported&&n||!t||r()}},{key:"componentWillUnmount",value:function(){this.removeEventListener&&this.removeEventListener()}},{key:"onTransitionEnd",value:function(){(0,this.props.onMonthTransitionEnd)()}},{key:"onMonthSelect",value:function(e,t){var n=e.clone(),r=this.props,o=r.onMonthChange,a=r.orientation,i=this.state.months,c=a===k.VERTICAL_SCROLLABLE,s=i.indexOf(e);c||(s-=1),n.set("month",t).subtract(s,"months"),o(n)}},{key:"onYearSelect",value:function(e,t){var n=e.clone(),r=this.props,o=r.onYearChange,a=r.orientation,i=this.state.months,c=a===k.VERTICAL_SCROLLABLE,s=i.indexOf(e);c||(s-=1),n.set("year",t).subtract(s,"months"),o(n)}},{key:"setContainerRef",value:function(e){this.container=e}},{key:"render",value:function(){var e=this,t=this.props,n=t.enableOutsideDays,o=t.firstVisibleMonthIndex,c=t.horizontalMonthPadding,s=t.isAnimating,l=t.modifiers,u=t.numberOfMonths,f=t.monthFormat,p=t.orientation,b=t.translationValue,h=t.daySize,v=t.onDayMouseEnter,j=t.onDayMouseLeave,w=t.onDayClick,x=t.renderMonthText,_=t.renderCalendarDay,E=t.renderDayContents,S=t.renderMonthElement,C=t.onMonthTransitionEnd,P=t.firstDayOfWeek,T=t.focusedDate,M=t.isFocused,D=t.isRTL,I=t.styles,R=t.phrases,A=t.dayAriaLabelFormat,N=t.transitionDuration,L=t.verticalBorderSpacing,F=t.setMonthTitleHeight,z=this.state.months,B=p===k.VERTICAL_ORIENTATION,H=p===k.VERTICAL_SCROLLABLE,V=p===k.HORIZONTAL_ORIENTATION,W=(0,y.default)(h,c),U=B||H?W:(u+2)*W,K=(B||H?"translateY":"translateX")+"("+String(b)+"px)";return i.default.createElement("div",r({},(0,d.css)(I.CalendarMonthGrid,V&&I.CalendarMonthGrid__horizontal,B&&I.CalendarMonthGrid__vertical,H&&I.CalendarMonthGrid__vertical_scrollable,s&&I.CalendarMonthGrid__animating,s&&N&&{transition:"transform "+String(N)+"ms ease-in-out"},(0,a.default)({},(0,g.default)(K),{width:U})),{ref:this.setContainerRef,onTransitionEnd:C}),z.map((function(t,a){var g=a>=o&&a<o+u,y=0===a&&!g,k=0===a&&s&&g,C=(0,O.default)(t);return i.default.createElement("div",r({key:C},(0,d.css)(V&&I.CalendarMonthGrid_month__horizontal,y&&I.CalendarMonthGrid_month__hideForAnimation,k&&!B&&!D&&{position:"absolute",left:-W},k&&!B&&D&&{position:"absolute",right:0},k&&B&&{position:"absolute",top:-b},!g&&!s&&I.CalendarMonthGrid_month__hidden)),i.default.createElement(m.default,{month:t,isVisible:g,enableOutsideDays:n,modifiers:l[C],monthFormat:f,orientation:p,onDayMouseEnter:v,onDayMouseLeave:j,onDayClick:w,onMonthSelect:e.onMonthSelect,onYearSelect:e.onYearSelect,renderMonthText:x,renderCalendarDay:_,renderDayContents:E,renderMonthElement:S,firstDayOfWeek:P,daySize:h,focusedDate:g?T:null,isFocused:M,phrases:R,setMonthTitleHeight:F,dayAriaLabelFormat:A,verticalBorderSpacing:L,horizontalMonthPadding:c}))})))}}]),t}(i.default.Component);M.propTypes=C,M.defaultProps=P,t.default=(0,d.withStyles)((function(e){var t=e.reactDates,n=t.color,r=t.noScrollBarOnVerticalScrollable,o=t.spacing,i=t.zIndex;return{CalendarMonthGrid:{background:n.background,textAlign:"left",zIndex:i},CalendarMonthGrid__animating:{zIndex:i+1},CalendarMonthGrid__horizontal:{position:"absolute",left:o.dayPickerHorizontalPadding},CalendarMonthGrid__vertical:{margin:"0 auto"},CalendarMonthGrid__vertical_scrollable:(0,a.default)({margin:"0 auto",overflowY:"scroll"},r&&{"-webkitOverflowScrolling":"touch","::-webkit-scrollbar":{"-webkit-appearance":"none",display:"none"}}),CalendarMonthGrid_month__horizontal:{display:"inline-block",verticalAlign:"top",minHeight:"100%"},CalendarMonthGrid_month__hideForAnimation:{position:"absolute",zIndex:i-1,opacity:0,pointerEvents:"none"},CalendarMonthGrid_month__hidden:{visibility:"hidden"}}}))(M)},Tqx9:function(e,t){e.exports=window.wp.primitives},U69M:function(e,t,n){"use strict";var r=n("j1Hc"),o=r("%String%"),a=r("%TypeError%");e.exports=function(e){if("symbol"==typeof e)throw new a("Cannot convert a Symbol value to a string");return o(e)}},UAm0:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("YLtl"),o=n("4eJC");const a=n.n(o)()((function(e){return"components-"+Object(r.kebabCase)(e)}))},UFhG:function(e,t,n){"use strict";var r=Math.floor;e.exports=function(e){return r(e)}},UVaH:function(e,t,n){"use strict";(function(t){var r=t.Symbol,o=n("FpZJ");e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,n("yLpj"))},UaFt:function(e,t,n){"use strict";var r=n("j1Hc")("%Object%"),o=n("BeK9"),a=r.preventExtensions,i=r.isExtensible;e.exports=a?function(e){return!o(e)&&i(e)}:function(e){return!o(e)}},VDVV:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=s(n("/ZKw")),o=s(n("9pTB")),a=n("kFtd"),i=s(n("nLTY")),c=s(n("3HjQ"));function s(e){return e&&e.__esModule?e:{default:e}}t.default={create:function(e){var t={},n=Object.keys(e),r=(o.default.get(a.GLOBAL_CACHE_KEY)||{}).namespace,c=void 0===r?"":r;return n.forEach((function(e){var n=(0,i.default)(c,e);t[e]=n})),t},resolve:function(e){var t=(0,r.default)(e,1/0),n=(0,c.default)(t),o=n.classNames,a=n.hasInlineStyles,i=n.inlineStyles,s={className:o.map((function(e,t){return String(e)+" "+String(e)+"_"+String(t+1)})).join(" ")};return a&&(s.style=i),s}}},VF6F:function(e,t,n){"use strict";var r=n("AM7I"),o=n("PrET"),a=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&a(e,".prototype.")>-1?o(n):n}},VKE3:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));t.a=a},Vq1w:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("utzN");function o(e){return!Object(r.a)(e.currentTarget,e.target)}},"W/NR":function(e,t,n){"use strict";var r=n("GRId"),o=n("YLtl"),a=n("K9lf"),i=n("oXO/"),c=n("Cw+6");const s=700,l=Object(r.createElement)("div",{className:"event-catcher"}),u=e=>{let{eventHandlers:t,child:n,childrenWithPopover:o}=e;return Object(r.cloneElement)(Object(r.createElement)("span",{className:"disabled-element-wrapper"},Object(r.cloneElement)(l,t),Object(r.cloneElement)(n,{children:o})),t)},d=e=>{let{child:t,eventHandlers:n,childrenWithPopover:o}=e;return Object(r.cloneElement)(t,{...n,children:o})},f=(e,t,n)=>{if(1!==r.Children.count(e))return;const o=r.Children.only(e);o.props.disabled||"function"==typeof o.props[t]&&o.props[t](n)};t.a=function(e){let{children:t,position:n,text:l,shortcut:p,delay:b=s}=e;const[h,m]=Object(r.useState)(!1),[v,g]=Object(r.useState)(!1),y=Object(a.useDebounce)(g,b),O=e=>{f(t,"onMouseDown",e),document.addEventListener("mouseup",x),m(!0)},j=e=>{f(t,"onMouseUp",e),document.removeEventListener("mouseup",x),m(!1)},w=e=>"mouseUp"===e?j:"mouseDown"===e?O:void 0,x=w("mouseUp"),_=(e,n)=>r=>{if(f(t,e,r),r.currentTarget.disabled)return;if("focus"===r.type&&h)return;y.cancel();const a=Object(o.includes)(["focus","mouseenter"],r.type);a!==v&&(n?y(a):g(a))},E=()=>{y.cancel(),document.removeEventListener("mouseup",x)};if(Object(r.useEffect)(()=>E,[]),1!==r.Children.count(t))return t;const k={onMouseEnter:_("onMouseEnter",!0),onMouseLeave:_("onMouseLeave"),onClick:_("onClick"),onFocus:_("onFocus"),onBlur:_("onBlur"),onMouseDown:w("mouseDown")},S=r.Children.only(t),{children:C,disabled:P}=S.props;return(P?u:d)({child:S,eventHandlers:k,childrenWithPopover:(e=>{let{grandchildren:t,isOver:n,position:o,text:a,shortcut:s}=e;return Object(r.concatChildren)(t,n&&Object(r.createElement)(i.a,{focusOnMount:!1,position:o,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},a,Object(r.createElement)(c.a,{className:"components-tooltip__shortcut",shortcut:s})))})({grandchildren:C,...{isOver:v,position:n,text:l,shortcut:p}})})}},WFqU:function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("yLpj"))},WI5Z:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){r.default.registerInterface(e),r.default.registerTheme(o.default)};var r=a(n("030x")),o=a(n("xOhs"));function a(e){return e&&e.__esModule?e:{default:e}}},WZeS:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,o=n("Teho"),a=n("IdCN"),i=n("DmXP"),c=n("/sVA"),s=function(e,t){if(null==e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var n,r,i,c="string"===t?["toString","valueOf"]:["valueOf","toString"];for(i=0;i<c.length;++i)if(n=e[c[i]],a(n)&&(r=n.call(e),o(r)))return r;throw new TypeError("No default value")},l=function(e,t){var n=e[t];if(null!=n){if(!a(n))throw new TypeError(n+" returned for property "+t+" of object "+e+" is not a function");return n}};e.exports=function(e){if(o(e))return e;var t,n="default";if(arguments.length>1&&(arguments[1]===String?n="string":arguments[1]===Number&&(n="number")),r&&(Symbol.toPrimitive?t=l(e,Symbol.toPrimitive):c(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var a=t.call(e,n);if(o(a))return a;throw new TypeError("unable to convert exotic object to primitive")}return"default"===n&&(i(e)||c(e))&&(n="string"),s(e,"default"===n?"number":n)}},WbBG:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},"Wfh+":function(e,t,n){"use strict";var r=n("nKkb"),o=n("UFhG"),a=n("Pjai"),i=n("HwJD"),c=n("ald4"),s=n("6I5v");e.exports=function(e){var t=a(e);return i(t)?0:0!==t&&c(t)?s(t)*o(r(t)):t}},WmS1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=t?[t,i.DISPLAY_FORMAT,i.ISO_FORMAT]:[i.DISPLAY_FORMAT,i.ISO_FORMAT],r=(0,a.default)(e,n,!0);return r.isValid()?r.hour(12):null};var r,o=n("wy2R"),a=(r=o)&&r.__esModule?r:{default:r},i=n("Fv1B")},WnOg:function(e,t,n){"use strict"},XGBb:function(e,t,n){var r=n("wy2R"),o=n("c6aN"),a=n("iNdV");e.exports={momentObj:a.createMomentChecker("object",(function(e){return"object"==typeof e}),(function(e){return o.isValidMoment(e)}),"Moment"),momentString:a.createMomentChecker("string",(function(e){return"string"==typeof e}),(function(e){return o.isValidMoment(r(e))}),"Moment"),momentDurationObj:a.createMomentChecker("object",(function(e){return"object"==typeof e}),(function(e){return r.isDuration(e)}),"Duration")}},XgzB:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));t.a=a},Xtko:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=k(n("Koq/")),i=k(n("cDcd")),c=k(n("17x9")),s=k(n("XGBb")),l=n("Hsqg"),u=k(n("wy2R")),d=k(n("4cSd")),f=k(n("LTAC")),p=n("vV+G"),b=k(n("yc2e")),h=k(n("pRvc")),m=k(n("Nho6")),v=k(n("u5Fq")),g=k(n("IgE5")),y=k(n("pYxT")),O=k(n("jenk")),j=k(n("aE6U")),w=k(n("2S2E")),x=k(n("oR9Z")),_=n("Fv1B"),E=k(n("Nloh"));function k(e){return e&&e.__esModule?e:{default:e}}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var C=(0,l.forbidExtraProps)({date:s.default.momentObj,onDateChange:c.default.func,focused:c.default.bool,onFocusChange:c.default.func,onClose:c.default.func,keepOpenOnDateSelect:c.default.bool,isOutsideRange:c.default.func,isDayBlocked:c.default.func,isDayHighlighted:c.default.func,renderMonthText:(0,l.mutuallyExclusiveProps)(c.default.func,"renderMonthText","renderMonthElement"),renderMonthElement:(0,l.mutuallyExclusiveProps)(c.default.func,"renderMonthText","renderMonthElement"),enableOutsideDays:c.default.bool,numberOfMonths:c.default.number,orientation:j.default,withPortal:c.default.bool,initialVisibleMonth:c.default.func,firstDayOfWeek:w.default,hideKeyboardShortcutsPanel:c.default.bool,daySize:l.nonNegativeInteger,verticalHeight:l.nonNegativeInteger,noBorder:c.default.bool,verticalBorderSpacing:l.nonNegativeInteger,transitionDuration:l.nonNegativeInteger,horizontalMonthPadding:l.nonNegativeInteger,navPrev:c.default.node,navNext:c.default.node,onPrevMonthClick:c.default.func,onNextMonthClick:c.default.func,onOutsideClick:c.default.func,renderCalendarDay:c.default.func,renderDayContents:c.default.func,renderCalendarInfo:c.default.func,calendarInfoPosition:x.default,onBlur:c.default.func,isFocused:c.default.bool,showKeyboardShortcuts:c.default.bool,monthFormat:c.default.string,weekDayFormat:c.default.string,phrases:c.default.shape((0,b.default)(p.DayPickerPhrases)),dayAriaLabelFormat:c.default.string,isRTL:c.default.bool}),P={date:void 0,onDateChange:function(){},focused:!1,onFocusChange:function(){},onClose:function(){},keepOpenOnDateSelect:!1,isOutsideRange:function(){},isDayBlocked:function(){},isDayHighlighted:function(){},renderMonthText:null,enableOutsideDays:!1,numberOfMonths:1,orientation:_.HORIZONTAL_ORIENTATION,withPortal:!1,hideKeyboardShortcutsPanel:!1,initialVisibleMonth:null,firstDayOfWeek:null,daySize:_.DAY_SIZE,verticalHeight:null,noBorder:!1,verticalBorderSpacing:void 0,transitionDuration:void 0,horizontalMonthPadding:13,navPrev:null,navNext:null,onPrevMonthClick:function(){},onNextMonthClick:function(){},onOutsideClick:function(){},renderCalendarDay:void 0,renderDayContents:null,renderCalendarInfo:null,renderMonthElement:null,calendarInfoPosition:_.INFO_POSITION_BOTTOM,onBlur:function(){},isFocused:!1,showKeyboardShortcuts:!1,monthFormat:"MMMM YYYY",weekDayFormat:"dd",phrases:p.DayPickerPhrases,dayAriaLabelFormat:void 0,isRTL:!1},T=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.isTouchDevice=!1,n.today=(0,u.default)(),n.modifiers={today:function(e){return n.isToday(e)},blocked:function(e){return n.isBlocked(e)},"blocked-calendar":function(t){return e.isDayBlocked(t)},"blocked-out-of-range":function(t){return e.isOutsideRange(t)},"highlighted-calendar":function(t){return e.isDayHighlighted(t)},valid:function(e){return!n.isBlocked(e)},hovered:function(e){return n.isHovered(e)},selected:function(e){return n.isSelected(e)},"first-day-of-week":function(e){return n.isFirstDayOfWeek(e)},"last-day-of-week":function(e){return n.isLastDayOfWeek(e)}};var r=n.getStateForNewMonth(e),o=r.currentMonth,a=r.visibleDays;return n.state={hoverDate:null,currentMonth:o,visibleDays:a},n.onDayMouseEnter=n.onDayMouseEnter.bind(n),n.onDayMouseLeave=n.onDayMouseLeave.bind(n),n.onDayClick=n.onDayClick.bind(n),n.onPrevMonthClick=n.onPrevMonthClick.bind(n),n.onNextMonthClick=n.onNextMonthClick.bind(n),n.onMonthChange=n.onMonthChange.bind(n),n.onYearChange=n.onYearChange.bind(n),n.getFirstFocusableDay=n.getFirstFocusableDay.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.isTouchDevice=(0,f.default)()}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=e.date,r=e.focused,o=e.isOutsideRange,i=e.isDayBlocked,c=e.isDayHighlighted,s=e.initialVisibleMonth,l=e.numberOfMonths,f=e.enableOutsideDays,p=this.props,b=p.isOutsideRange,m=p.isDayBlocked,v=p.isDayHighlighted,g=p.numberOfMonths,y=p.enableOutsideDays,O=p.initialVisibleMonth,j=p.focused,w=p.date,x=this.state.visibleDays,_=!1,E=!1,k=!1;o!==b&&(this.modifiers["blocked-out-of-range"]=function(e){return o(e)},_=!0),i!==m&&(this.modifiers["blocked-calendar"]=function(e){return i(e)},E=!0),c!==v&&(this.modifiers["highlighted-calendar"]=function(e){return c(e)},k=!0);var S=_||E||k;if(l!==g||f!==y||s!==O&&!j&&r){var C=this.getStateForNewMonth(e),P=C.currentMonth;x=C.visibleDays,this.setState({currentMonth:P,visibleDays:x})}var T=r!==j,M={};n!==w&&(M=this.deleteModifier(M,w,"selected"),M=this.addModifier(M,n,"selected")),(T||S)&&(0,d.default)(x).forEach((function(e){Object.keys(e).forEach((function(e){var n=(0,u.default)(e);M=t.isBlocked(n)?t.addModifier(M,n,"blocked"):t.deleteModifier(M,n,"blocked"),(T||_)&&(M=o(n)?t.addModifier(M,n,"blocked-out-of-range"):t.deleteModifier(M,n,"blocked-out-of-range")),(T||E)&&(M=i(n)?t.addModifier(M,n,"blocked-calendar"):t.deleteModifier(M,n,"blocked-calendar")),(T||k)&&(M=c(n)?t.addModifier(M,n,"highlighted-calendar"):t.deleteModifier(M,n,"highlighted-calendar"))}))}));var D=(0,u.default)();(0,h.default)(this.today,D)||(M=this.deleteModifier(M,this.today,"today"),M=this.addModifier(M,D,"today"),this.today=D),Object.keys(M).length>0&&this.setState({visibleDays:(0,a.default)({},x,M)})}},{key:"componentWillUpdate",value:function(){this.today=(0,u.default)()}},{key:"onDayClick",value:function(e,t){if(t&&t.preventDefault(),!this.isBlocked(e)){var n=this.props,r=n.onDateChange,o=n.keepOpenOnDateSelect,a=n.onFocusChange,i=n.onClose;r(e),o||(a({focused:!1}),i({date:e}))}}},{key:"onDayMouseEnter",value:function(e){if(!this.isTouchDevice){var t=this.state,n=t.hoverDate,r=t.visibleDays,o=this.deleteModifier({},n,"hovered");o=this.addModifier(o,e,"hovered"),this.setState({hoverDate:e,visibleDays:(0,a.default)({},r,o)})}}},{key:"onDayMouseLeave",value:function(){var e=this.state,t=e.hoverDate,n=e.visibleDays;if(!this.isTouchDevice&&t){var r=this.deleteModifier({},t,"hovered");this.setState({hoverDate:null,visibleDays:(0,a.default)({},n,r)})}}},{key:"onPrevMonthClick",value:function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,c=o.visibleDays,s={};Object.keys(c).sort().slice(0,n+1).forEach((function(e){s[e]=c[e]}));var l=i.clone().subtract(1,"month"),u=(0,v.default)(l,1,r);this.setState({currentMonth:l,visibleDays:(0,a.default)({},s,this.getModifiers(u))},(function(){t(l.clone())}))}},{key:"onNextMonthClick",value:function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,c=o.visibleDays,s={};Object.keys(c).sort().slice(1).forEach((function(e){s[e]=c[e]}));var l=i.clone().add(n,"month"),u=(0,v.default)(l,1,r),d=i.clone().add(1,"month");this.setState({currentMonth:d,visibleDays:(0,a.default)({},s,this.getModifiers(u))},(function(){t(d.clone())}))}},{key:"onMonthChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===_.VERTICAL_SCROLLABLE,a=(0,v.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}},{key:"onYearChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===_.VERTICAL_SCROLLABLE,a=(0,v.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}},{key:"getFirstFocusableDay",value:function(e){var t=this,n=this.props,o=n.date,a=n.numberOfMonths,i=e.clone().startOf("month");if(o&&(i=o.clone()),this.isBlocked(i)){for(var c=[],s=e.clone().add(a-1,"months").endOf("month"),l=i.clone();!(0,m.default)(l,s);)l=l.clone().add(1,"day"),c.push(l);var u=c.filter((function(e){return!t.isBlocked(e)&&(0,m.default)(e,i)}));if(u.length>0){var d=r(u,1);i=d[0]}}return i}},{key:"getModifiers",value:function(e){var t=this,n={};return Object.keys(e).forEach((function(r){n[r]={},e[r].forEach((function(e){n[r][(0,y.default)(e)]=t.getModifiersForDay(e)}))})),n}},{key:"getModifiersForDay",value:function(e){var t=this;return new Set(Object.keys(this.modifiers).filter((function(n){return t.modifiers[n](e)})))}},{key:"getStateForNewMonth",value:function(e){var t=this,n=e.initialVisibleMonth,r=e.date,o=e.numberOfMonths,a=e.enableOutsideDays,i=(n||(r?function(){return r}:function(){return t.today}))();return{currentMonth:i,visibleDays:this.getModifiers((0,v.default)(i,o,a))}}},{key:"addModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,c=r.orientation,s=this.state,l=s.currentMonth,u=s.visibleDays,d=l,f=o;if(c===_.VERTICAL_SCROLLABLE?f=Object.keys(u).length:(d=d.clone().subtract(1,"month"),f+=2),!t||!(0,g.default)(t,d,f,i))return e;var p=(0,y.default)(t),b=(0,a.default)({},e);if(i)b=Object.keys(u).filter((function(e){return Object.keys(u[e]).indexOf(p)>-1})).reduce((function(t,r){var o=e[r]||u[r],i=new Set(o[p]);return i.add(n),(0,a.default)({},t,S({},r,(0,a.default)({},o,S({},p,i))))}),b);else{var h=(0,O.default)(t),m=e[h]||u[h],v=new Set(m[p]);v.add(n),b=(0,a.default)({},b,S({},h,(0,a.default)({},m,S({},p,v))))}return b}},{key:"deleteModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,c=r.orientation,s=this.state,l=s.currentMonth,u=s.visibleDays,d=l,f=o;if(c===_.VERTICAL_SCROLLABLE?f=Object.keys(u).length:(d=d.clone().subtract(1,"month"),f+=2),!t||!(0,g.default)(t,d,f,i))return e;var p=(0,y.default)(t),b=(0,a.default)({},e);if(i)b=Object.keys(u).filter((function(e){return Object.keys(u[e]).indexOf(p)>-1})).reduce((function(t,r){var o=e[r]||u[r],i=new Set(o[p]);return i.delete(n),(0,a.default)({},t,S({},r,(0,a.default)({},o,S({},p,i))))}),b);else{var h=(0,O.default)(t),m=e[h]||u[h],v=new Set(m[p]);v.delete(n),b=(0,a.default)({},b,S({},h,(0,a.default)({},m,S({},p,v))))}return b}},{key:"isBlocked",value:function(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)}},{key:"isHovered",value:function(e){var t=(this.state||{}).hoverDate;return(0,h.default)(e,t)}},{key:"isSelected",value:function(e){var t=this.props.date;return(0,h.default)(e,t)}},{key:"isToday",value:function(e){return(0,h.default)(e,this.today)}},{key:"isFirstDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||u.default.localeData().firstDayOfWeek())}},{key:"isLastDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||u.default.localeData().firstDayOfWeek())+6)%7}},{key:"render",value:function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,o=e.renderMonthText,a=e.navPrev,c=e.navNext,s=e.onOutsideClick,l=e.withPortal,u=e.focused,d=e.enableOutsideDays,f=e.hideKeyboardShortcutsPanel,p=e.daySize,b=e.firstDayOfWeek,h=e.renderCalendarDay,m=e.renderDayContents,v=e.renderCalendarInfo,g=e.renderMonthElement,y=e.calendarInfoPosition,O=e.isFocused,j=e.isRTL,w=e.phrases,x=e.dayAriaLabelFormat,_=e.onBlur,k=e.showKeyboardShortcuts,S=e.weekDayFormat,C=e.verticalHeight,P=e.noBorder,T=e.transitionDuration,M=e.verticalBorderSpacing,D=e.horizontalMonthPadding,I=this.state,R=I.currentMonth,A=I.visibleDays;return i.default.createElement(E.default,{orientation:n,enableOutsideDays:d,modifiers:A,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,monthFormat:r,withPortal:l,hidden:!u,hideKeyboardShortcutsPanel:f,initialVisibleMonth:function(){return R},firstDayOfWeek:b,onOutsideClick:s,navPrev:a,navNext:c,renderMonthText:o,renderCalendarDay:h,renderDayContents:m,renderCalendarInfo:v,renderMonthElement:g,calendarInfoPosition:y,isFocused:O,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:_,phrases:w,daySize:p,isRTL:j,showKeyboardShortcuts:k,weekDayFormat:S,dayAriaLabelFormat:x,verticalHeight:C,noBorder:P,transitionDuration:T,verticalBorderSpacing:M,horizontalMonthPadding:D})}}]),t}(i.default.Component);t.default=T,T.propTypes=C,T.defaultProps=P},YLtl:function(e,t){e.exports=window.lodash},YZDV:function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function a(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var i=0;i<n.length;i++)if(!r.call(t,n[i])||!o(e[n[i]],t[n[i]]))return!1;return!0}e.exports=function(e,t,n){return!a(e.props,t)||!a(e.state,n)}},Yesc:function(e,t,n){"use strict";var r=n("j1Hc")("%TypeError%"),o=n("yyeE"),a=n("u9yu"),i=n("hWh2"),c=n("aBsX"),s=n("1ao6"),l=n("Bl8U"),u=n("/A+k"),d=n("U69M");e.exports=function e(t,n,f,p,b){var h;arguments.length>5&&(h=arguments[5]);for(var m=p,v=0;v<f;){var g=d(v),y=s(n,g);if(!0===y){var O=c(n,g);if(void 0!==h){if(arguments.length<=6)throw new r("Assertion failed: thisArg is required when mapperFunction is provided");O=a(h,arguments[6],[O,v,n])}var j=!1;if(b>0&&(j=l(O)),j){var w=u(O);m=e(t,O,w,m,b-1)}else{if(m>=o)throw new r("index too large");i(t,d(m),O),m+=1}}v+=1}return m}},Z23Y:function(e,t){e.exports=window.wp.warning},ZbWB:function(e,t,n){"use strict";var r=n("j1Hc")("RegExp.prototype.test"),o=n("SLit");e.exports=function(e){return o(r,e)}},a73V:function(e,t,n){"use strict";var r=n("j1Hc")("%Symbol.match%",!0),o=n("SegQ"),a=n("e87w");e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(r){var t=e[r];if(void 0!==t)return a(t)}return o(e)}},aA0e:function(e,t,n){"use strict";(function(e){var r=n("wx14"),o=n("GRId"),a=n("zTEx"),i=(n("Z23Y"),n("GK4x"));t.a=Object(o.forwardRef)((function(t,n){let{children:c,as:s,...l}=t;const u=Object(o.useContext)(i.a);if("function"!=typeof c&&!s)return void 0!==e&&e.env,null;const d={...l,ref:n,"data-toolbar-item":!0};return u?Object(o.createElement)(a.a,Object(r.a)({},u,d,{as:s}),c):s?Object(o.createElement)(s,d,c):c(d)}))}).call(this,n("8oxB"))},aBsX:function(e,t,n){"use strict";var r=n("j1Hc")("%TypeError%"),o=n("4qvr"),a=n("nR7C"),i=n("PoQ0");e.exports=function(e,t){if("Object"!==i(e))throw new r("Assertion failed: Type(O) is not Object");if(!a(t))throw new r("Assertion failed: IsPropertyKey(P) is not true, got "+o(t));return e[t]}},aE6U:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("17x9"),a=(r=o)&&r.__esModule?r:{default:r},i=n("Fv1B");t.default=a.default.oneOf([i.HORIZONTAL_ORIENTATION,i.VERTICAL_ORIENTATION,i.VERTICAL_SCROLLABLE])},aI7X:function(e,t,n){"use strict";var r="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,a=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==a.call(t))throw new TypeError(r+t);for(var n,i=o.call(arguments,1),c=function(){if(this instanceof n){var r=t.apply(this,i.concat(o.call(arguments)));return Object(r)===r?r:this}return t.apply(e,i.concat(o.call(arguments)))},s=Math.max(0,t.length-i.length),l=[],u=0;u<s;u++)l.push("$"+u);if(n=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(c),t.prototype){var d=function(){};d.prototype=t.prototype,n.prototype=new d,d.prototype=null}return n}},aU41:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("cDcd");function o(e,t){void 0===t&&(t=null),e&&("function"==typeof e?e(t):e.current=t)}function a(e,t){return Object(r.useMemo)((function(){return null==e&&null==t?null:function(n){o(e,n),o(t,n)}}),[e,t])}},aUaa:function(e,t,n){"use strict";var r=n("v7lB")("%TypeError%");e.exports=function(e,t){if(null==e)throw new r(t||"Cannot call method on "+e);return e}},abaT:function(e,t,n){"use strict";t.a=function(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in n)r[n[o]]=o;var a={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var o,i,c=r[this.toHex()];if(c)return c;if(null==t?void 0:t.closest){var s=this.toRgb(),l=1/0,u="black";if(!a.length)for(var d in n)a[d]=new e(n[d]).toRgb();for(var f in n){var p=(o=s,i=a[f],Math.pow(o.r-i.r,2)+Math.pow(o.g-i.g,2)+Math.pow(o.b-i.b,2));p<l&&(l=p,u=f)}return u}},t.string.push([function(t){var r=t.toLowerCase(),o="transparent"===r?"#0000":n[r];return o?new e(o).toRgb():null},"name"])}},aflq:function(e,t,n){"use strict";var r=n("j1Hc")("%TypeError%"),o=n("Qmvf"),a=n("wTIp"),i=n("rQBh"),c=n("vYfR"),s=n("6/BL"),l=n("nR7C"),u=n("uug5"),d=n("6orR"),f=n("PoQ0");e.exports=function(e,t,n){if("Object"!==f(e))throw new r("Assertion failed: Type(O) is not Object");if(!l(t))throw new r("Assertion failed: IsPropertyKey(P) is not true");var p=o({Type:f,IsDataDescriptor:s,IsAccessorDescriptor:c},n)?n:d(n);if(!o({Type:f,IsDataDescriptor:s,IsAccessorDescriptor:c},p))throw new r("Assertion failed: Desc is not a valid Property Descriptor");return a(s,u,i,e,t,p)}},ald4:function(e,t,n){"use strict";var r=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!r(e)&&e!==1/0&&e!==-1/0}},bVTw:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},Object(r.createElement)(o.Path,{d:"M5 11.25h14v1.5H5z"}));t.a=a},bWcr:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));t.a=a},c6aN:function(e,t,n){var r=n("wy2R");e.exports={isValidMoment:function(e){return!("function"==typeof r.isMoment&&!r.isMoment(e))&&("function"==typeof e.isValid?e.isValid():!isNaN(e))}}},cD2C:function(e,t,n){"use strict";e.exports=n("5aBA")},cDcd:function(e,t){e.exports=window.React},cGtP:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"}));t.a=a},dRQD:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!("undefined"==typeof window||!("TransitionEvent"in window))}},dSD1:function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"c",(function(){return x})),n.d(t,"b",(function(){return _})),n.d(t,"d",(function(){return E}));var r=n("wx14"),o=n("GRId"),a=n("YLtl");var i=Object(o.createContext)({registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>{},subscribe:()=>{}});var c=e=>{const{getSlot:t,subscribe:n}=Object(o.useContext)(i),[r,a]=Object(o.useState)(t(e));return Object(o.useEffect)(()=>{a(t(e));return n(()=>{a(t(e))})},[e]),r};function s(e){let{name:t,children:n,registerFill:r,unregisterFill:i}=e;const s=c(t),l=Object(o.useRef)({name:t,children:n});return Object(o.useLayoutEffect)(()=>(r(t,l.current),()=>i(t,l.current)),[]),Object(o.useLayoutEffect)(()=>{l.current.children=n,s&&s.forceUpdate()},[n]),Object(o.useLayoutEffect)(()=>{t!==l.current.name&&(i(l.current.name,l.current),l.current.name=t,r(t,l.current))},[t]),s&&s.node?(Object(a.isFunction)(n)&&(n=n(s.props.fillProps)),Object(o.createPortal)(n,s.node)):null}var l=e=>Object(o.createElement)(i.Consumer,null,t=>{let{registerFill:n,unregisterFill:a}=t;return Object(o.createElement)(s,Object(r.a)({},e,{registerFill:n,unregisterFill:a}))});class u extends o.Component{constructor(){super(...arguments),this.isUnmounted=!1,this.bindNode=this.bindNode.bind(this)}componentDidMount(){const{registerSlot:e}=this.props;e(this.props.name,this)}componentWillUnmount(){const{unregisterSlot:e}=this.props;this.isUnmounted=!0,e(this.props.name,this)}componentDidUpdate(e){const{name:t,unregisterSlot:n,registerSlot:r}=this.props;e.name!==t&&(n(e.name),r(t,this))}bindNode(e){this.node=e}forceUpdate(){this.isUnmounted||super.forceUpdate()}render(){const{children:e,name:t,fillProps:n={},getFills:r}=this.props,i=Object(a.map)(r(t,this),e=>{const t=Object(a.isFunction)(e.children)?e.children(n):e.children;return o.Children.map(t,(e,t)=>{if(!e||Object(a.isString)(e))return e;const n=e.key||t;return Object(o.cloneElement)(e,{key:n})})}).filter(Object(a.negate)(o.isEmptyElement));return Object(o.createElement)(o.Fragment,null,Object(a.isFunction)(e)?e(i):i)}}var d=e=>Object(o.createElement)(i.Consumer,null,t=>{let{registerSlot:n,unregisterSlot:a,getFills:i}=t;return Object(o.createElement)(u,Object(r.a)({},e,{registerSlot:n,unregisterSlot:a,getFills:i}))}),f=n("+WFq");function p(){const[,e]=Object(o.useState)({}),t=Object(o.useRef)(!0);return Object(o.useEffect)(()=>()=>{t.current=!1},[]),()=>{t.current&&e({})}}function b(e){let{name:t,children:n}=e;const r=Object(f.a)(t),a=Object(o.useRef)({rerender:p()});return Object(o.useEffect)(()=>(r.registerFill(a),()=>{r.unregisterFill(a)}),[r.registerFill,r.unregisterFill]),r.ref&&r.ref.current?("function"==typeof n&&(n=n(r.fillProps)),Object(o.createPortal)(n,r.ref.current)):null}var h=n("K9lf"),m=n("JYkG");var v=Object(o.forwardRef)((function(e,t){let{name:n,fillProps:a={},as:i="div",...c}=e;const s=Object(o.useContext)(m.a),l=Object(o.useRef)();return Object(o.useLayoutEffect)(()=>(s.registerSlot(n,l,a),()=>{s.unregisterSlot(n,l)}),[s.registerSlot,s.unregisterSlot,n]),Object(o.useLayoutEffect)(()=>{s.updateSlot(n,a)}),Object(o.createElement)(i,Object(r.a)({ref:Object(h.useMergeRefs)([t,l])},c))})),g=n("rl8x"),y=n.n(g);function O(e){let{children:t}=e;const n=function(){const[e,t]=Object(o.useState)({}),[n,r]=Object(o.useState)({}),a=Object(o.useCallback)((e,n,r)=>{t(t=>{const o=t[e]||{};return{...t,[e]:{...o,ref:n||o.ref,fillProps:r||o.fillProps||{}}}})},[]),i=Object(o.useCallback)((e,n)=>{t(t=>{const{[e]:r,...o}=t;return(null==r?void 0:r.ref)===n?o:t})},[]),c=Object(o.useCallback)((t,r)=>{const o=e[t];if(o&&!y()(o.fillProps,r)){o.fillProps=r;const e=n[t];e&&e.map(e=>e.current.rerender())}},[e,n]),s=Object(o.useCallback)((e,t)=>{r(n=>({...n,[e]:[...n[e]||[],t]}))},[]),l=Object(o.useCallback)((e,t)=>{r(n=>n[e]?{...n,[e]:n[e].filter(e=>e!==t)}:n)},[]);return Object(o.useMemo)(()=>({slots:e,fills:n,registerSlot:a,updateSlot:c,unregisterSlot:i,registerFill:s,unregisterFill:l}),[e,n,a,c,i,s,l])}();return Object(o.createElement)(m.a.Provider,{value:n},t)}class j extends o.Component{constructor(){super(...arguments),this.registerSlot=this.registerSlot.bind(this),this.registerFill=this.registerFill.bind(this),this.unregisterSlot=this.unregisterSlot.bind(this),this.unregisterFill=this.unregisterFill.bind(this),this.getSlot=this.getSlot.bind(this),this.getFills=this.getFills.bind(this),this.hasFills=this.hasFills.bind(this),this.subscribe=this.subscribe.bind(this),this.slots={},this.fills={},this.listeners=[],this.contextValue={registerSlot:this.registerSlot,unregisterSlot:this.unregisterSlot,registerFill:this.registerFill,unregisterFill:this.unregisterFill,getSlot:this.getSlot,getFills:this.getFills,hasFills:this.hasFills,subscribe:this.subscribe}}registerSlot(e,t){const n=this.slots[e];this.slots[e]=t,this.triggerListeners(),this.forceUpdateSlot(e),n&&n.forceUpdate()}registerFill(e,t){this.fills[e]=[...this.fills[e]||[],t],this.forceUpdateSlot(e)}unregisterSlot(e,t){this.slots[e]===t&&(delete this.slots[e],this.triggerListeners())}unregisterFill(e,t){this.fills[e]=Object(a.without)(this.fills[e],t),this.forceUpdateSlot(e)}getSlot(e){return this.slots[e]}getFills(e,t){return this.slots[e]!==t?[]:this.fills[e]}hasFills(e){return this.fills[e]&&!!this.fills[e].length}forceUpdateSlot(e){const t=this.getSlot(e);t&&t.forceUpdate()}triggerListeners(){this.listeners.forEach(e=>e())}subscribe(e){return this.listeners.push(e),()=>{this.listeners=Object(a.without)(this.listeners,e)}}render(){return Object(o.createElement)(i.Provider,{value:this.contextValue},this.props.children)}}function w(e){return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(l,e),Object(o.createElement)(b,e))}const x=Object(o.forwardRef)((e,t)=>{let{bubblesVirtually:n,...a}=e;return n?Object(o.createElement)(v,Object(r.a)({},a,{ref:t})):Object(o.createElement)(d,a)});function _(e){let{children:t,...n}=e;return Object(o.createElement)(j,n,Object(o.createElement)(O,null,t))}function E(e){const t=t=>Object(o.createElement)(w,Object(r.a)({name:e},t));t.displayName=e+"Fill";const n=t=>Object(o.createElement)(x,Object(r.a)({name:e},t));return n.displayName=e+"Slot",n.__unstableName=e,{Fill:t,Slot:n}}},e87w:function(e,t,n){"use strict";e.exports=function(e){return!!e}},eH4f:function(e,t,n){"use strict";e.exports=n("laOf")},eJkf:function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},eNtd:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("cDcd"),o=n("AXvK");function a(e){var t=Object(r.useRef)(e);return Object(o.a)((function(){t.current=e})),t}},eUCI:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("cDcd"),o=Object(r.createContext)({})},eVQB:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var o=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0);o=o.next}while(void 0!==o)}}},"ep+1":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}()},fHnH:function(e,t,n){"use strict";n.d(t,"a",(function(){return P})),n.d(t,"b",(function(){return M}));var r={grad:.9,turn:360,rad:360/(2*Math.PI)},o=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},a=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},i=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},c=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},s=function(e){return{r:i(e.r,0,255),g:i(e.g,0,255),b:i(e.b,0,255),a:i(e.a)}},l=function(e){return{r:a(e.r),g:a(e.g),b:a(e.b),a:a(e.a,3)}},u=/^#([0-9a-f]{3,8})$/i,d=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},f=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),i=a-Math.min(t,n,r),c=i?a===t?(n-r)/i:a===n?2+(r-t)/i:4+(t-n)/i:0;return{h:60*(c<0?c+6:c),s:a?i/a*100:0,v:a/255*100,a:o}},p=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),i=r*(1-n),c=r*(1-(t-a)*n),s=r*(1-(1-t+a)*n),l=a%6;return{r:255*[r,c,i,i,s,r][l],g:255*[s,r,r,c,i,i][l],b:255*[i,i,s,r,r,c][l],a:o}},b=function(e){return{h:c(e.h),s:i(e.s,0,100),l:i(e.l,0,100),a:i(e.a)}},h=function(e){return{h:a(e.h),s:a(e.s),l:a(e.l),a:a(e.a,3)}},m=function(e){return p((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},v=function(e){return{h:(t=f(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},g=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,O=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,j=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,w={string:[[function(e){var t=u.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?a(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?a(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=O.exec(e)||j.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:s({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=g.exec(e)||y.exec(e);if(!t)return null;var n,o,a=b({h:(n=t[1],o=t[2],void 0===o&&(o="deg"),Number(n)*(r[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return m(a)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,a=e.a,i=void 0===a?1:a;return o(t)&&o(n)&&o(r)?s({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,a=e.a,i=void 0===a?1:a;if(!o(t)||!o(n)||!o(r))return null;var c=b({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return m(c)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,a=e.a,s=void 0===a?1:a;if(!o(t)||!o(n)||!o(r))return null;var l=function(e){return{h:c(e.h),s:i(e.s,0,100),v:i(e.v,0,100),a:i(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(s)});return p(l)},"hsv"]]},x=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},_=function(e){return"string"==typeof e?x(e.trim(),w.string):"object"==typeof e&&null!==e?x(e,w.object):[null,void 0]},E=function(e,t){var n=v(e);return{h:n.h,s:i(n.s+100*t,0,100),l:n.l,a:n.a}},k=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},S=function(e,t){var n=v(e);return{h:n.h,s:n.s,l:i(n.l+100*t,0,100),a:n.a}},C=function(){function e(e){this.parsed=_(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return a(k(this.rgba),2)},e.prototype.isDark=function(){return k(this.rgba)<.5},e.prototype.isLight=function(){return k(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=l(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?d(a(255*o)):"","#"+d(t)+d(n)+d(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return l(this.rgba)},e.prototype.toRgbString=function(){return t=(e=l(this.rgba)).r,n=e.g,r=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+r+", "+o+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,o},e.prototype.toHsl=function(){return h(v(this.rgba))},e.prototype.toHslString=function(){return t=(e=h(v(this.rgba))).h,n=e.s,r=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+o+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,o},e.prototype.toHsv=function(){return e=f(this.rgba),{h:a(e.h),s:a(e.s),v:a(e.v),a:a(e.a,3)};var e},e.prototype.invert=function(){return P({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),P(E(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),P(E(this.rgba,-e))},e.prototype.grayscale=function(){return P(E(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),P(S(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),P(S(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?P({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):a(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=v(this.rgba);return"number"==typeof e?P({h:e,s:t.s,l:t.l,a:t.a}):a(t.h)},e.prototype.isEqual=function(e){return this.toHex()===P(e).toHex()},e}(),P=function(e){return e instanceof C?e:new C(e)},T=[],M=function(e){e.forEach((function(e){T.indexOf(e)<0&&(e(C,w),T.push(e))}))}},faye:function(e,t){e.exports=window.ReactDOM},g56x:function(e,t){e.exports=window.wp.hooks},gCm3:function(e,t,n){"use strict";n.r(t);var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,o=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return r.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));t.default=o},gRFL:function(e,t,n){"use strict";t.a=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}},gZI3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("cDcd"),a=(r=o)&&r.__esModule?r:{default:r};var i=function(e){return a.default.createElement("svg",e,a.default.createElement("path",{d:"M694.4 242.4l249.1 249.1c11 11 11 21 0 32L694.4 772.7c-5 5-10 7-16 7s-11-2-16-7c-11-11-11-21 0-32l210.1-210.1H67.1c-13 0-23-10-23-23s10-23 23-23h805.4L662.4 274.5c-21-21.1 11-53.1 32-32.1z"}))};i.defaultProps={viewBox:"0 0 1000 1000"},t.default=i},gdqT:function(e,t){e.exports=window.wp.a11y},h6xH:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!a.default.isMoment(e)||!a.default.isMoment(t))return!1;var n=e.year(),r=e.month(),o=t.year(),i=t.month(),c=n===o,s=r===i;return c&&s?e.date()<t.date():c?r<i:n<o};var r,o=n("wy2R"),a=(r=o)&&r.__esModule?r:{default:r}},"h9+V":function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n("vAQN"),o=n("eVQB"),a=n("+1VY"),i=n("Exhd");function c(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function s(e,t,n){var r=[],a=Object(o.a)(e,r,n);return r.length<2?n:a+t(r)}var l=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var i in a="",o)o[i]&&i&&(a&&(a+=" "),a+=i);break;default:a=o}a&&(n&&(n+=" "),n+=a)}}return n},u=function(e){var t=Object(a.a)(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var a=Object(i.a)(n,t.registered,void 0);return Object(o.b)(t,a,!1),t.key+"-"+a.name};return{css:n,cx:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return s(t.registered,n,l(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Object(i.a)(n,t.registered);c(t,o)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Object(i.a)(n,t.registered),a="animation-"+o.name;return c(t,{name:o.name,styles:"@keyframes "+a+"{"+o.styles+"}"}),a},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:o.a.bind(null,t.registered),merge:s.bind(null,t.registered,n)}}({key:"css"}),d=(u.flush,u.hydrate,u.cx),f=(u.merge,u.getRegisteredStyles,u.injectGlobal,u.keyframes,u.css,u.sheet,u.cache,n("GRId"));const p=e=>null!=e&&["name","styles"].every(t=>void 0!==e[t]),b=()=>{const e=Object(r.d)();return Object(f.useCallback)((function(){if(null===e)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return d(...n.map(t=>p(t)?(Object(o.b)(e,t,!1),`${e.key}-${t.name}`):t))}),[e])}},hE48:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n("cDcd"),o=n("RDTF"),a=n("IVEb"),i=n("I/A+"),c=n("Ptb8");function s(e){var t;if(!Object(c.a)(e))return!1;var n=Object.getPrototypeOf(e);return null==n||(null===(t=n.constructor)||void 0===t?void 0:t.toString())===Object.toString()}function l(e,t){for(var n={},r={},o=0,a=Object.keys(e);o<a.length;o++){var i=a[o];t.indexOf(i)>=0?n[i]=e[i]:r[i]=e[i]}return[n,r]}function u(e,t){if(void 0===t&&(t=[]),!s(e.state))return l(e,t);var n=l(e,[].concat(t,["state"])),r=n[0],o=n[1],a=r.state,c=Object(i.a)(r,["state"]);return[Object(i.b)(Object(i.b)({},a),c),o]}var d=n("uqqE");function f(e){return"normalizePropsAreEqualInner"===e.name?e:function(t,n){return s(t.state)&&s(n.state)?e(Object(i.b)(Object(i.b)({},t.state),t),Object(i.b)(Object(i.b)({},n.state),n)):e(t,n)}}function p(e){var t,n=e.as,i=e.useHook,c=e.memo,s=e.propsAreEqual,l=void 0===s?null==i?void 0:i.unstable_propsAreEqual:s,p=e.keys,b=void 0===p?(null==i?void 0:i.__keys)||[]:p,h=e.useCreateElement,m=void 0===h?a.a:h,v=function(e,t){var r=e.as,a=void 0===r?n:r,c=Object(o.b)(e,["as"]);if(i){var s,l=u(c,b),d=l[0],f=l[1],p=i(d,Object(o.a)({ref:t},f)),h=p.wrapElement,v=Object(o.b)(p,["wrapElement"]),g=(null===(s=a.render)||void 0===s?void 0:s.__keys)||a.__keys,y=g&&u(c,g)[0],O=y?Object(o.a)(Object(o.a)({},v),y):v,j=m(a,O);return h?h(j):j}return m(a,Object(o.a)({ref:t},c))};return t=v,v=Object(r.forwardRef)(t),c&&(v=function(e,t){return Object(r.memo)(e,t)}(v,l&&f(l))),v.__keys=b,v.unstable_propsAreEqual=f(l||d.a),v}},hWh2:function(e,t,n){"use strict";var r=n("j1Hc")("%TypeError%"),o=n("S3lO"),a=n("nR7C"),i=n("PoQ0");e.exports=function(e,t,n){if("Object"!==i(e))throw new r("Assertion failed: Type(O) is not Object");if(!a(t))throw new r("Assertion failed: IsPropertyKey(P) is not true");var c=o(e,t,n);if(!c)throw new r("unable to create data property");return c}},i2T3:function(e,t,n){"use strict";var r=n("2mql"),o=n.n(r);t.a=function(e,t){return o()(e,t)}},"iB/h":function(e,t,n){"use strict";(function(e){var r=n("GRId"),o=n("YLtl"),a=n("TSYQ"),i=n.n(a),c=n("gdqT"),s=n("l3Sj"),l=(n("Z23Y"),n("kA6J"));t.a=Object(r.forwardRef)((function(t,n){let{className:a,children:u,spokenMessage:d=u,politeness:f="polite",actions:p=[],onRemove:b=o.noop,icon:h=null,explicitDismiss:m=!1,onDismiss:v=o.noop,listRef:g}=t;function y(e){e&&e.preventDefault&&e.preventDefault(),g.current.focus(),v(),b()}v=v||o.noop,function(e,t){const n="string"==typeof e?e:Object(r.renderToString)(e);Object(r.useEffect)(()=>{n&&Object(c.speak)(n,t)},[n,t])}(d,f),Object(r.useEffect)(()=>{const e=setTimeout(()=>{m||(v(),b())},1e4);return()=>clearTimeout(e)},[v,b]);const O=i()(a,"components-snackbar",{"components-snackbar-explicit-dismiss":!!m});p&&p.length>1&&(void 0!==e&&e.env,p=[p[0]]);const j=i()("components-snackbar__content",{"components-snackbar__content-with-icon":!!h});return Object(r.createElement)("div",{ref:n,className:O,onClick:m?o.noop:y,tabIndex:"0",role:m?"":"button",onKeyPress:m?o.noop:y,"aria-label":m?"":Object(s.__)("Dismiss this notice")},Object(r.createElement)("div",{className:j},h&&Object(r.createElement)("div",{className:"components-snackbar__icon"},h),u,p.map((e,t)=>{let{label:n,onClick:o,url:a}=e;return Object(r.createElement)(l.a,{key:t,href:a,variant:"tertiary",onClick:e=>function(e,t){e.stopPropagation(),b(),t&&t(e)}(e,o),className:"components-snackbar__action"},n)}),m&&Object(r.createElement)("span",{role:"button","aria-label":"Dismiss this notice",tabIndex:"0",className:"components-snackbar__dismiss-button",onClick:y,onKeyPress:y},"✕")))}))}).call(this,n("8oxB"))},iClF:function(e,t,n){"use strict";var r=n("GRId");t.a=function(e){let{icon:t,size:n=24,...o}=e;return Object(r.cloneElement)(t,{width:n,height:n,...o})}},iNdV:function(e,t){var n={invalidPredicate:"`predicate` must be a function",invalidPropValidator:"`propValidator` must be a function",requiredCore:"is marked as required",invalidTypeCore:"Invalid input type",predicateFailureCore:"Failed to succeed with predicate",anonymousMessage:"<<anonymous>>",baseInvalidMessage:"Invalid "};function r(e){if("function"!=typeof e)throw new Error(n.invalidPropValidator);var t=e.bind(null,!1,null);return t.isRequired=e.bind(null,!0,null),t.withPredicate=function(t){if("function"!=typeof t)throw new Error(n.invalidPredicate);var r=e.bind(null,!1,t);return r.isRequired=e.bind(null,!0,t),r},t}function o(e,t,r){return new Error("The prop `"+e+"` "+n.requiredCore+" in `"+t+"`, but its value is `"+r+"`.")}e.exports={constructPropValidatorVariations:r,createMomentChecker:function(e,t,a,i){return r((function(r,c,s,l,u,d,f){var p=s[l],b=typeof p,h=function(e,t,n,r){var a=void 0===r,i=null===r;if(e){if(a)return o(n,t,"undefined");if(i)return o(n,t,"null")}return a||i?null:-1}(r,u=u||n.anonymousMessage,f=f||l,p);if(-1!==h)return h;if(t&&!t(p))return new Error(n.invalidTypeCore+": `"+l+"` of type `"+b+"` supplied to `"+u+"`, expected `"+e+"`.");if(!a(p))return new Error(n.baseInvalidMessage+d+" `"+l+"` of type `"+b+"` supplied to `"+u+"`, expected `"+i+"`.");if(c&&!c(p)){var m=c.name||n.anonymousMessage;return new Error(n.baseInvalidMessage+d+" `"+l+"` of type `"+b+"` supplied to `"+u+"`. "+n.predicateFailureCore+" `"+m+"`.")}return null}))},messages:n}},iSWJ:function(e,t,n){"use strict";var r=n("wx14"),o=n("GRId"),a=n("C6yU"),i=n("7Jlx");const c={border:0,clip:"rect(1px, 1px, 1px, 1px)",WebkitClipPath:"inset( 50% )",clipPath:"inset( 50% )",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",wordWrap:"normal"};var s=n("q9zb");const l=Object(i.a)((function(e,t){const{style:n,...i}=Object(a.a)(e,"VisuallyHidden");return Object(o.createElement)(s.a,Object(r.a)({ref:t},i,{style:{...c,...n||{}}}))}),"VisuallyHidden");t.a=l},iYXd:function(e,t,n){"use strict";function r(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function o(e,t){var n;return t||null===t?t:e.currentId||null===e.currentId?e.currentId:null===(n=r(e.items||[]))||void 0===n?void 0:n.id}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}))},ib7Q:function(e,t,n){"use strict";var r=n("xoj2"),o=n("82c2");e.exports=function(){var e=r();return o(Object,{values:e},{values:function(){return Object.values!==e}}),e}},ixyq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return 0;var o="width"===t?"Left":"Top",a="width"===t?"Right":"Bottom",i=!n||r?window.getComputedStyle(e):null,c=e.offsetWidth,s=e.offsetHeight,l="width"===t?c:s;n||(l-=parseFloat(i["padding"+o])+parseFloat(i["padding"+a])+parseFloat(i["border"+o+"Width"])+parseFloat(i["border"+a+"Width"]));r&&(l+=parseFloat(i["margin"+o])+parseFloat(i["margin"+a]));return l}},j1Hc:function(e,t,n){"use strict";var r=SyntaxError,o=Function,a=TypeError,i=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var s=function(){throw new a},l=c?function(){try{return s}catch(e){try{return c(arguments,"callee").get}catch(e){return s}}}():s,u=n("HyUg")(),d=Object.getPrototypeOf||function(e){return e.__proto__},f={},p="undefined"==typeof Uint8Array?void 0:d(Uint8Array),b={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":u?d([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":f,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u?d(d([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u?d((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&u?d((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u?d(""[Symbol.iterator]()):void 0,"%Symbol%":u?Symbol:void 0,"%SyntaxError%":r,"%ThrowTypeError%":l,"%TypedArray%":p,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},h={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},m=n("D3zA"),v=n("oNNP"),g=m.call(Function.call,Array.prototype.concat),y=m.call(Function.apply,Array.prototype.splice),O=m.call(Function.call,String.prototype.replace),j=m.call(Function.call,String.prototype.slice),w=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,x=/\\(\\)?/g,_=function(e){var t=j(e,0,1),n=j(e,-1);if("%"===t&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new r("invalid intrinsic syntax, expected opening `%`");var o=[];return O(e,w,(function(e,t,n,r){o[o.length]=n?O(r,x,"$1"):t||e})),o},E=function(e,t){var n,o=e;if(v(h,o)&&(o="%"+(n=h[o])[0]+"%"),v(b,o)){var c=b[o];if(c===f&&(c=function e(t){var n;if("%AsyncFunction%"===t)n=i("async function () {}");else if("%GeneratorFunction%"===t)n=i("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=i("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(n=d(o.prototype))}return b[t]=n,n}(o)),void 0===c&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:c}}throw new r("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');var n=_(e),o=n.length>0?n[0]:"",i=E("%"+o+"%",t),s=i.name,l=i.value,u=!1,d=i.alias;d&&(o=d[0],y(n,g([0,1],d)));for(var f=1,p=!0;f<n.length;f+=1){var h=n[f],m=j(h,0,1),O=j(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===O||"'"===O||"`"===O)&&m!==O)throw new r("property names with quotes must have matching quotes");if("constructor"!==h&&p||(u=!0),v(b,s="%"+(o+="."+h)+"%"))l=b[s];else if(null!=l){if(!(h in l)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&f+1>=n.length){var w=c(l,h);l=(p=!!w)&&"get"in w&&!("originalValue"in w.get)?w.get:l[h]}else p=v(l,h),l=l[h];p&&!u&&(b[s]=l)}}return l}},jB5C:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function a(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function i(e){return a(e)}function c(e){return a(e,!0)}function s(e){var t=function(e){var t,n=void 0,r=void 0,o=e.ownerDocument,a=o.body,i=o&&o.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=i.clientLeft||a.clientLeft||0,top:r-=i.clientTop||a.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=i(r),t.top+=c(r),t}var l=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),u=/^(top|right|bottom|left)$/,d="left";var f=void 0;function p(e,t){for(var n=0;n<e.length;n++)t(e[n])}function b(e){return"border-box"===f(e,"boxSizing")}"undefined"!=typeof window&&(f=window.getComputedStyle?function(e,t,n){var r="",o=e.ownerDocument,a=n||o.defaultView.getComputedStyle(e,null);return a&&(r=a.getPropertyValue(t)||a[t]),r}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(l.test(n)&&!u.test(t)){var r=e.style,o=r[d],a=e.runtimeStyle[d];e.runtimeStyle[d]=e.currentStyle[d],r[d]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[d]=o,e.runtimeStyle[d]=a}return""===n?"auto":n});var h=["margin","border","padding"];function m(e,t,n){var r={},o=e.style,a=void 0;for(a in t)t.hasOwnProperty(a)&&(r[a]=o[a],o[a]=t[a]);for(a in n.call(e),t)t.hasOwnProperty(a)&&(o[a]=r[a])}function v(e,t,n){var r=0,o=void 0,a=void 0,i=void 0;for(a=0;a<t.length;a++)if(o=t[a])for(i=0;i<n.length;i++){var c=void 0;c="border"===o?o+n[i]+"Width":o+n[i],r+=parseFloat(f(e,c))||0}return r}function g(e){return null!=e&&e==e.window}var y={};function O(e,t,n){if(g(e))return"width"===t?y.viewportWidth(e):y.viewportHeight(e);if(9===e.nodeType)return"width"===t?y.docWidth(e):y.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?e.offsetWidth:e.offsetHeight,a=(f(e),b(e)),i=0;(null==o||o<=0)&&(o=void 0,(null==(i=f(e,t))||Number(i)<0)&&(i=e.style[t]||0),i=parseFloat(i)||0),void 0===n&&(n=a?1:-1);var c=void 0!==o||a,s=o||i;if(-1===n)return c?s-v(e,["border","padding"],r):i;if(c){var l=2===n?-v(e,["border"],r):v(e,["margin"],r);return s+(1===n?0:l)}return i+v(e,h.slice(n),r)}p(["Width","Height"],(function(e){y["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],y["viewport"+e](n))},y["viewport"+e]=function(t){var n="client"+e,r=t.document,o=r.body,a=r.documentElement[n];return"CSS1Compat"===r.compatMode&&a||o&&o[n]||a}}));var j={position:"absolute",visibility:"hidden",display:"block"};function w(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=O.apply(void 0,n):m(e,j,(function(){t=O.apply(void 0,n)})),t}function x(e,t,n){var r=n;if("object"!==(void 0===t?"undefined":o(t)))return void 0!==r?("number"==typeof r&&(r+="px"),void(e.style[t]=r)):f(e,t);for(var a in t)t.hasOwnProperty(a)&&x(e,a,t[a])}p(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);y["outer"+t]=function(t,n){return t&&w(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];y[e]=function(t,r){if(void 0===r)return t&&w(t,e,-1);if(t){f(t);return b(t)&&(r+=v(t,["padding","border"],n)),x(t,e,r)}}})),e.exports=r({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return s(e);!function(e,t){"static"===x(e,"position")&&(e.style.position="relative");var n=s(e),r={},o=void 0,a=void 0;for(a in t)t.hasOwnProperty(a)&&(o=parseFloat(x(e,a))||0,r[a]=o+t[a]-n[a]);x(e,r)}(e,t)},isWindow:g,each:p,css:x,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(g(e)){if(void 0===t)return i(e);window.scrollTo(t,c(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(g(e)){if(void 0===t)return c(e);window.scrollTo(i(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},y)},jXQH:function(e,t,n){var r=n("TO8r"),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},jenk:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=r.default.isMoment(e)?e:(0,o.default)(e,t);return n?n.format(a.ISO_MONTH_FORMAT):null};var r=i(n("wy2R")),o=i(n("WmS1")),a=n("Fv1B");function i(e){return e&&e.__esModule?e:{default:e}}},k2cL:function(e,t,n){"use strict";function r(e){return e.target===e.currentTarget}n.d(t,"a",(function(){return r}))},k8OV:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("GRId");let o=0;function a(e){const t=document.scrollingElement||document.body;e&&(o=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=o)}let i=0;function c(){return Object(r.useEffect)(()=>(0===i&&a(!0),++i,()=>{1===i&&a(!1),--i}),[]),null}},kA6J:function(e,t,n){"use strict";var r=n("wx14"),o=n("GRId"),a=n("TSYQ"),i=n.n(a),c=n("YLtl"),s=n("NMb1"),l=n.n(s),u=n("K9lf"),d=n("W/NR"),f=n("9VDH"),p=n("iSWJ");const b=["onMouseDown","onClick"];t.a=Object(o.forwardRef)((function e(t,n){const{href:a,target:s,isSmall:h,isPressed:m,isBusy:v,isDestructive:g,className:y,disabled:O,icon:j,iconPosition:w="left",iconSize:x,showTooltip:_,tooltipPosition:E,shortcut:k,label:S,children:C,text:P,variant:T,__experimentalIsFocusable:M,describedBy:D,...I}=function(e){let{isDefault:t,isPrimary:n,isSecondary:r,isTertiary:o,isLink:a,variant:i,...c}=e,s=i;var u,d,f,p,b;return n&&(null!==(u=s)&&void 0!==u||(s="primary")),o&&(null!==(d=s)&&void 0!==d||(s="tertiary")),r&&(null!==(f=s)&&void 0!==f||(s="secondary")),t&&(l()("Button isDefault prop",{since:"5.4",alternative:'variant="secondary"'}),null!==(p=s)&&void 0!==p||(s="secondary")),a&&(null!==(b=s)&&void 0!==b||(s="link")),{...c,variant:s}}(t),R=Object(u.useInstanceId)(e,"components-button__description"),A=i()("components-button",y,{"is-secondary":"secondary"===T,"is-primary":"primary"===T,"is-small":h,"is-tertiary":"tertiary"===T,"is-pressed":m,"is-busy":v,"is-link":"link"===T,"is-destructive":g,"has-text":!!j&&!!C,"has-icon":!!j}),N=O&&!M,L=void 0===a||N?"button":"a",F="a"===L?{href:a,target:s}:{type:"button",disabled:N,"aria-pressed":m};if(O&&M){F["aria-disabled"]=!0;for(const e of b)I[e]=e=>{e.stopPropagation(),e.preventDefault()}}const z=!N&&(_&&S||k||!!S&&(!C||Object(c.isArray)(C)&&!C.length)&&!1!==_),B=D?R:null,H=I["aria-describedby"]||B,V=Object(o.createElement)(L,Object(r.a)({},F,I,{className:A,"aria-label":I["aria-label"]||S,"aria-describedby":H,ref:n}),j&&"left"===w&&Object(o.createElement)(f.a,{icon:j,size:x}),P&&Object(o.createElement)(o.Fragment,null,P),j&&"right"===w&&Object(o.createElement)(f.a,{icon:j,size:x}),C);return z?Object(o.createElement)(o.Fragment,null,Object(o.createElement)(d.a,{text:D||S,shortcut:k,position:E},V),D&&Object(o.createElement)(p.a,null,Object(o.createElement)("span",{id:B},D))):Object(o.createElement)(o.Fragment,null,V,D&&Object(o.createElement)(p.a,null,Object(o.createElement)("span",{id:B},D)))}))},kFtd:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.GLOBAL_CACHE_KEY="reactWithStylesInterfaceCSS",t.MAX_SPECIFICITY=20},kTC8:function(e,t,n){"use strict";n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return w}));var r=n("BZp5"),o=n("hE48"),a=n("qdes"),i=n("cDcd"),c=n("aU41"),s=(n("KA1K"),n("eNtd")),l=n("k2cL"),u=n("PcHe"),d=n("Vq1w"),f=n("JLmN"),p=n("ouKs"),b=n("iYXd"),h=n("TFuP"),m=n("Mih7"),v=n("4po3"),g=n("AClM"),y=n("ym77"),O=n("0HL0");function j(e){return e.querySelector("[data-composite-item-widget]")}var w=Object(a.a)({name:"CompositeItem",compose:[f.a,y.a],keys:h.c,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return f.a.unstable_propsAreEqual(e,t);var n=e.currentId,o=e.unstable_moves,a=Object(r.a)(e,["currentId","unstable_moves"]),i=t.currentId,c=t.unstable_moves,s=Object(r.a)(t,["currentId","unstable_moves"]);if(i!==n){if(t.id===i||t.id===n)return!1}else if(o!==c)return!1;return f.a.unstable_propsAreEqual(a,s)},useOptions:function(e){return Object(r.b)(Object(r.b)({},e),{},{id:e.id,currentId:Object(b.b)(e),unstable_clickOnSpace:!e.unstable_hasActiveWidget&&e.unstable_clickOnSpace})},useProps:function(e,t){var n,o=t.ref,a=t.tabIndex,f=void 0===a?0:a,b=t.onMouseDown,h=t.onFocus,y=t.onBlurCapture,w=t.onKeyDown,x=t.onClick,_=Object(r.a)(t,["ref","tabIndex","onMouseDown","onFocus","onBlurCapture","onKeyDown","onClick"]),E=Object(i.useRef)(null),k=e.id,S=e.disabled&&!e.focusable,C=e.currentId===k,P=Object(s.a)(C),T=Object(i.useRef)(!1),M=function(e){return Object(i.useMemo)((function(){var t;return null===(t=e.items)||void 0===t?void 0:t.find((function(t){return e.id&&t.id===e.id}))}),[e.items,e.id])}(e),D=Object(s.a)(b),I=Object(s.a)(h),R=Object(s.a)(y),A=Object(s.a)(w),N=Object(s.a)(x),L=!e.unstable_virtual&&!e.unstable_hasActiveWidget&&C||!(null!==(n=e.items)&&void 0!==n&&n.length);Object(i.useEffect)((function(){var t;if(k)return null===(t=e.registerItem)||void 0===t||t.call(e,{id:k,ref:E,disabled:!!S}),function(){var t;null===(t=e.unregisterItem)||void 0===t||t.call(e,k)}}),[k,S,e.registerItem,e.unregisterItem]),Object(i.useEffect)((function(){var t=E.current;t&&e.unstable_moves&&P.current&&Object(m.c)(t)}),[e.unstable_moves]);var F=Object(i.useCallback)((function(e){var t;null===(t=D.current)||void 0===t||t.call(D,e),Object(m.b)(e.currentTarget,!0)}),[]),z=Object(i.useCallback)((function(t){var n,o,a=Object(m.a)(t.currentTarget);if(Object(m.b)(t.currentTarget,!1),null===(n=I.current)||void 0===n||n.call(I,t),!t.defaultPrevented&&!Object(d.a)(t)&&k&&!function(e,t){if(Object(l.a)(e))return!1;for(var n,o=Object(r.c)(t);!(n=o()).done;){if(n.value.ref.current===e.target)return!0}return!1}(t,e.items)&&(null===(o=e.setCurrentId)||void 0===o||o.call(e,k),a&&e.unstable_virtual&&e.baseId&&Object(l.a)(t))){var i=t.target,c=Object(p.a)(i).getElementById(e.baseId);c&&(T.current=!0,Object(g.a)(c))}}),[k,e.items,e.setCurrentId,e.unstable_virtual,e.baseId]),B=Object(i.useCallback)((function(t){var n;null===(n=R.current)||void 0===n||n.call(R,t),t.defaultPrevented||e.unstable_virtual&&T.current&&(T.current=!1,t.preventDefault(),t.stopPropagation())}),[e.unstable_virtual]),H=Object(i.useCallback)((function(t){var n;if(Object(l.a)(t)){var r="horizontal"!==e.orientation,o="vertical"!==e.orientation,a=!(null==M||!M.groupId),i={ArrowUp:(a||r)&&e.up,ArrowRight:(a||o)&&e.next,ArrowDown:(a||r)&&e.down,ArrowLeft:(a||o)&&e.previous,Home:function(){var n,r;!a||t.ctrlKey?null===(n=e.first)||void 0===n||n.call(e):null===(r=e.previous)||void 0===r||r.call(e,!0)},End:function(){var n,r;!a||t.ctrlKey?null===(n=e.last)||void 0===n||n.call(e):null===(r=e.next)||void 0===r||r.call(e,!0)},PageUp:function(){var t,n;a?null===(t=e.up)||void 0===t||t.call(e,!0):null===(n=e.first)||void 0===n||n.call(e)},PageDown:function(){var t,n;a?null===(t=e.down)||void 0===t||t.call(e,!0):null===(n=e.last)||void 0===n||n.call(e)}}[t.key];if(i)return t.preventDefault(),void i();if(null===(n=A.current)||void 0===n||n.call(A,t),!t.defaultPrevented)if(1===t.key.length&&" "!==t.key){var c=j(t.currentTarget);c&&Object(v.a)(c)&&(c.focus(),Object(O.a)(c,""))}else if("Delete"===t.key||"Backspace"===t.key){var s=j(t.currentTarget);s&&Object(v.a)(s)&&(t.preventDefault(),Object(O.a)(s,""))}}}),[e.orientation,M,e.up,e.next,e.down,e.previous,e.first,e.last]),V=Object(i.useCallback)((function(e){var t;if(null===(t=N.current)||void 0===t||t.call(N,e),!e.defaultPrevented){var n=j(e.currentTarget);n&&!Object(u.a)(n)&&n.focus()}}),[]);return Object(r.b)({ref:Object(c.a)(E,o),id:k,tabIndex:L?f:-1,"aria-selected":!(!e.unstable_virtual||!C)||void 0,onMouseDown:F,onFocus:z,onBlurCapture:B,onKeyDown:H,onClick:V},_)}}),x=Object(o.a)({as:"button",memo:!0,useHook:w})},khzz:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("ouKs");function o(e,t,n){if("function"==typeof Event)return new Event(t,n);var o=Object(r.a)(e).createEvent("Event");return o.initEvent(t,null==n?void 0:n.bubbles,null==n?void 0:n.cancelable),o}},knm9:function(e,t,n){"use strict";var r=n("j1Hc")("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},kqkJ:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return i}));var r=n("9Zbq"),o=(n("APjL"),n("Nym8"),"input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])");function a(e){return Object(r.a)(e,o)&&function(e){var t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}(e)}function i(e){return a(e)&&!function(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}(e)}function c(e,t){var n=Array.from(e.querySelectorAll(o)),r=n.filter(i);return i(e)&&r.unshift(e),!r.length&&t?n:r}function s(e,t){return c(e,t)[0]||null}function l(e,t){var n=c(e,t);return n[n.length-1]||null}},l3Sj:function(e,t){e.exports=window.wp.i18n},laOf:function(e,t,n){"use strict";var r=n("j1Hc")("%TypeError%");e.exports=function(e,t){if(null==e)throw new r(t||"Cannot call method on "+e);return e}},lzPt:function(e,t,n){e.exports=n("VDVV").default},m2ax:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return 7*e+2*t+1}},mMiH:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=E(n("Koq/")),i=E(n("cDcd")),c=E(n("17x9")),s=E(n("YZDV")),l=E(n("XGBb")),u=n("Hsqg"),d=n("TG4+"),f=E(n("wy2R")),p=n("vV+G"),b=E(n("yc2e")),h=E(n("2Q00")),m=E(n("N3k4")),v=E(n("ixyq")),g=E(n("F7ZS")),y=E(n("pRvc")),O=E(n("pYxT")),j=E(n("J7JS")),w=E(n("aE6U")),x=E(n("2S2E")),_=n("Fv1B");function E(e){return e&&e.__esModule?e:{default:e}}var k=(0,u.forbidExtraProps)((0,a.default)({},d.withStylesPropTypes,{month:l.default.momentObj,horizontalMonthPadding:u.nonNegativeInteger,isVisible:c.default.bool,enableOutsideDays:c.default.bool,modifiers:c.default.objectOf(j.default),orientation:w.default,daySize:u.nonNegativeInteger,onDayClick:c.default.func,onDayMouseEnter:c.default.func,onDayMouseLeave:c.default.func,onMonthSelect:c.default.func,onYearSelect:c.default.func,renderMonthText:(0,u.mutuallyExclusiveProps)(c.default.func,"renderMonthText","renderMonthElement"),renderCalendarDay:c.default.func,renderDayContents:c.default.func,renderMonthElement:(0,u.mutuallyExclusiveProps)(c.default.func,"renderMonthText","renderMonthElement"),firstDayOfWeek:x.default,setMonthTitleHeight:c.default.func,verticalBorderSpacing:u.nonNegativeInteger,focusedDate:l.default.momentObj,isFocused:c.default.bool,monthFormat:c.default.string,phrases:c.default.shape((0,b.default)(p.CalendarDayPhrases)),dayAriaLabelFormat:c.default.string})),S={month:(0,f.default)(),horizontalMonthPadding:13,isVisible:!0,enableOutsideDays:!1,modifiers:{},orientation:_.HORIZONTAL_ORIENTATION,daySize:_.DAY_SIZE,onDayClick:function(){},onDayMouseEnter:function(){},onDayMouseLeave:function(){},onMonthSelect:function(){},onYearSelect:function(){},renderMonthText:null,renderCalendarDay:function(e){return i.default.createElement(m.default,e)},renderDayContents:null,renderMonthElement:null,firstDayOfWeek:null,setMonthTitleHeight:null,focusedDate:null,isFocused:!1,monthFormat:"MMMM YYYY",phrases:p.CalendarDayPhrases,dayAriaLabelFormat:void 0,verticalBorderSpacing:void 0},C=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={weeks:(0,g.default)(e.month,e.enableOutsideDays,null==e.firstDayOfWeek?f.default.localeData().firstDayOfWeek():e.firstDayOfWeek)},n.setCaptionRef=n.setCaptionRef.bind(n),n.setMonthTitleHeight=n.setMonthTitleHeight.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.setMonthTitleHeightTimeout=setTimeout(this.setMonthTitleHeight,0)}},{key:"componentWillReceiveProps",value:function(e){var t=e.month,n=e.enableOutsideDays,r=e.firstDayOfWeek,o=this.props,a=o.month,i=o.enableOutsideDays,c=o.firstDayOfWeek;t.isSame(a)&&n===i&&r===c||this.setState({weeks:(0,g.default)(t,n,null==r?f.default.localeData().firstDayOfWeek():r)})}},{key:"shouldComponentUpdate",value:function(e,t){return(0,s.default)(this,e,t)}},{key:"componentWillUnmount",value:function(){this.setMonthTitleHeightTimeout&&clearTimeout(this.setMonthTitleHeightTimeout)}},{key:"setMonthTitleHeight",value:function(){var e=this.props.setMonthTitleHeight;e&&e((0,v.default)(this.captionRef,"height",!0,!0))}},{key:"setCaptionRef",value:function(e){this.captionRef=e}},{key:"render",value:function(){var e=this.props,t=e.dayAriaLabelFormat,n=e.daySize,o=e.focusedDate,a=e.horizontalMonthPadding,c=e.isFocused,s=e.isVisible,l=e.modifiers,u=e.month,f=e.monthFormat,p=e.onDayClick,b=e.onDayMouseEnter,m=e.onDayMouseLeave,v=e.onMonthSelect,g=e.onYearSelect,j=e.orientation,w=e.phrases,x=e.renderCalendarDay,E=e.renderDayContents,k=e.renderMonthElement,S=e.renderMonthText,C=e.styles,P=e.verticalBorderSpacing,T=this.state.weeks,M=S?S(u):u.format(f),D=j===_.VERTICAL_SCROLLABLE;return i.default.createElement("div",r({},(0,d.css)(C.CalendarMonth,{padding:"0 "+String(a)+"px"}),{"data-visible":s}),i.default.createElement("div",r({ref:this.setCaptionRef},(0,d.css)(C.CalendarMonth_caption,D&&C.CalendarMonth_caption__verticalScrollable)),k?k({month:u,onMonthSelect:v,onYearSelect:g}):i.default.createElement("strong",null,M)),i.default.createElement("table",r({},(0,d.css)(!P&&C.CalendarMonth_table,P&&C.CalendarMonth_verticalSpacing,P&&{borderSpacing:"0px "+String(P)+"px"}),{role:"presentation"}),i.default.createElement("tbody",null,T.map((function(e,r){return i.default.createElement(h.default,{key:r},e.map((function(e,r){return x({key:r,day:e,daySize:n,isOutsideDay:!e||e.month()!==u.month(),tabIndex:s&&(0,y.default)(e,o)?0:-1,isFocused:c,onDayMouseEnter:b,onDayMouseLeave:m,onDayClick:p,renderDayContents:E,phrases:w,modifiers:l[(0,O.default)(e)],ariaLabelFormat:t})})))})))))}}]),t}(i.default.Component);C.propTypes=k,C.defaultProps=S,t.default=(0,d.withStyles)((function(e){var t=e.reactDates,n=t.color,r=t.font,o=t.spacing;return{CalendarMonth:{background:n.background,textAlign:"center",verticalAlign:"top",userSelect:"none"},CalendarMonth_table:{borderCollapse:"collapse",borderSpacing:0},CalendarMonth_verticalSpacing:{borderCollapse:"separate"},CalendarMonth_caption:{color:n.text,fontSize:r.captionSize,textAlign:"center",paddingTop:o.captionPaddingTop,paddingBottom:o.captionPaddingBottom,captionSide:"initial"},CalendarMonth_caption__verticalScrollable:{paddingTop:12,paddingBottom:7}}}))(C)},mi6C:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"}));t.a=a},mjVI:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r=["baseId","unstable_idCountRef","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","setBaseId","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget"],o=r},n1Y7:function(e,t,n){"use strict";var r=n("82c2"),o=n("nRDI"),a=n("5yQQ"),i=a(),c=function(e,t){return i.apply(e,[t])};r(c,{getPolyfill:a,implementation:o,shim:n("Gn0q")}),e.exports=c},nKkb:function(e,t,n){"use strict";var r=n("j1Hc")("%Math.abs%");e.exports=function(e){return r(e)}},nLTY:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(e.length>0?String(e)+"__":"")+String(t)}},nR7C:function(e,t,n){"use strict";e.exports=function(e){return"string"==typeof e||"symbol"==typeof e}},nRDI:function(e,t,n){"use strict";e.exports=function(e){if(arguments.length<1)throw new TypeError("1 argument is required");if("object"!=typeof e)throw new TypeError("Argument 1 (”other“) to Node.contains must be an instance of Node");var t=e;do{if(this===t)return!0;t&&(t=t.parentNode)}while(t);return!1}},nmnc:function(e,t,n){var r=n("Kz5y").Symbol;e.exports=r},oNNP:function(e,t,n){"use strict";var r=n("D3zA");e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},oOcr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof e)return e;if("function"==typeof e)return e(t);return""}},oR9Z:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("17x9"),a=(r=o)&&r.__esModule?r:{default:r},i=n("Fv1B");t.default=a.default.oneOf([i.INFO_POSITION_TOP,i.INFO_POSITION_BOTTOM,i.INFO_POSITION_BEFORE,i.INFO_POSITION_AFTER])},"oXO/":function(e,t,n){"use strict";var r=n("wx14"),o=n("GRId"),a=n("TSYQ"),i=n.n(a),c=n("1CF3"),s=n("K9lf"),l=n("w95h"),u=n("l3Sj");function d(e,t,n,r,o,a,i,c,s){const{width:l}=t;"left"===n&&Object(u.isRTL)()?n="right":"right"===n&&Object(u.isRTL)()&&(n="left"),"left"===r&&Object(u.isRTL)()?r="right":"right"===r&&Object(u.isRTL)()&&(r="left");const d=Math.round(e.left+e.width/2),f={popoverLeft:d,contentWidth:(d-l/2>0?l/2:d)+(d+l/2>window.innerWidth?window.innerWidth-d:l/2)};let p=e.left;"right"===r?p=e.right:"middle"===a||s||(p=d);let b=e.right;"left"===r?b=e.left:"middle"===a||s||(b=d);const h={popoverLeft:p,contentWidth:p-l>0?l:p},m={popoverLeft:b,contentWidth:b+l>window.innerWidth?window.innerWidth-b:l};let v,g=n,y=null;if(!o&&!c)if("center"===n&&f.contentWidth===l)g="center";else if("left"===n&&h.contentWidth===l)g="left";else if("right"===n&&m.contentWidth===l)g="right";else{g=h.contentWidth>m.contentWidth?"left":"right";const e="left"===g?h.contentWidth:m.contentWidth;l>window.innerWidth&&(y=window.innerWidth),e!==l&&(g="center",f.popoverLeft=window.innerWidth/2)}return v="center"===g?f.popoverLeft:"left"===g?h.popoverLeft:m.popoverLeft,i&&(v=Math.min(v,i.offsetLeft+i.offsetWidth-l),Object(u.isRTL)()||(v=Math.max(v,0))),{xAxis:g,popoverLeft:v,contentWidth:y}}function f(e,t,n,r,o,a,i,c,s){const{height:l}=t;if(o){const t=o.getBoundingClientRect(),r=t.top+l-i,a=t.bottom-l-i;if(e.top<=r){if(s){if(!(l+10<s.scrollTop+e.top))return{yAxis:"bottom",popoverTop:Math.min(e.bottom,a)}}return{yAxis:n,popoverTop:Math.min(e.bottom,r)}}}let u=e.top+e.height/2;"bottom"===r?u=e.bottom:"top"===r&&(u=e.top);const d={popoverTop:u,contentHeight:(u-l/2>0?l/2:u)+(u+l/2>window.innerHeight?window.innerHeight-u:l/2)},f={popoverTop:e.top,contentHeight:e.top-10-l>0?l:e.top-10},p={popoverTop:e.bottom,contentHeight:e.bottom+10+l>window.innerHeight?window.innerHeight-10-e.bottom:l};let b,h=n,m=null;if(!o&&!c)if("middle"===n&&d.contentHeight===l)h="middle";else if("top"===n&&f.contentHeight===l)h="top";else if("bottom"===n&&p.contentHeight===l)h="bottom";else{h=f.contentHeight>p.contentHeight?"top":"bottom";const e="top"===h?f.contentHeight:p.contentHeight;m=e!==l?e:null}return b="middle"===h?d.popoverTop:"top"===h?f.popoverTop:p.popoverTop,{yAxis:h,popoverTop:b,contentHeight:m}}function p(e,t,n){const{defaultView:r}=t,{frameElement:o}=r;if(!o||t===n.ownerDocument)return e;const a=o.getBoundingClientRect();return new r.DOMRect(e.left+a.left,e.top+a.top,e.width,e.height)}var b=n("kA6J"),h=n("k8OV"),m=n("+WFq"),v=n("dSD1"),g=n("L8Kx");const y="Popover",O=Object(o.createContext)();function j(e,t){const{paddingTop:n,paddingBottom:r,paddingLeft:o,paddingRight:a}=(i=t).ownerDocument.defaultView.getComputedStyle(i);var i;const c=n?parseInt(n,10):0,s=r?parseInt(r,10):0,l=o?parseInt(o,10):0,u=a?parseInt(a,10):0;return{x:e.left+l,y:e.top+c,width:e.width-l-u,height:e.height-c-s,left:e.left+l,right:e.right-u,top:e.top+c,bottom:e.bottom-s}}function w(e,t,n){n?e.getAttribute(t)!==n&&e.setAttribute(t,n):e.hasAttribute(t)&&e.removeAttribute(t)}function x(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==n&&(e.style[t]=n)}function _(e,t,n){n?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}const E=Object(o.forwardRef)((e,t)=>{let{headerTitle:n,onClose:a,children:u,className:E,noArrow:k=!0,isAlternate:S,position:C="bottom right",range:P,focusOnMount:T="firstElement",anchorRef:M,shouldAnchorIncludePadding:D,anchorRect:I,getAnchorRect:R,expandOnMobile:A,animate:N=!0,onFocusOutside:L,__unstableStickyBoundaryElement:F,__unstableSlotName:z=y,__unstableObserveElement:B,__unstableBoundaryParent:H,__unstableForcePosition:V,__unstableForceXAlignment:W,__unstableEditorCanvasWrapper:U,...K}=e;const G=Object(o.useRef)(null),$=Object(o.useRef)(null),q=Object(o.useRef)(),Y=Object(s.useViewportMatch)("medium","<"),[X,Z]=Object(o.useState)(),J=Object(o.useContext)(O)||z,Q=Object(m.a)(J),ee=A&&Y,[te,ne]=Object(s.useResizeObserver)();k=ee||k,Object(o.useLayoutEffect)(()=>{if(ee)return _(q.current,"is-without-arrow",k),_(q.current,"is-alternate",S),w(q.current,"data-x-axis"),w(q.current,"data-y-axis"),x(q.current,"top"),x(q.current,"left"),x($.current,"maxHeight"),void x($.current,"maxWidth");const e=()=>{if(!q.current||!$.current)return;let e=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;if(t)return t;if(n){if(!e.current)return;const t=n(e.current);return p(t,t.ownerDocument||e.current.ownerDocument,a)}if(!1!==r){if(!(r&&window.Range&&window.Element&&window.DOMRect))return;if("function"==typeof(null==r?void 0:r.cloneRange))return p(Object(c.getRectangleFromRange)(r),r.endContainer.ownerDocument,a);if("function"==typeof(null==r?void 0:r.getBoundingClientRect)){const e=p(r.getBoundingClientRect(),r.ownerDocument,a);return o?e:j(e,r)}const{top:e,bottom:t}=r,n=e.getBoundingClientRect(),i=t.getBoundingClientRect(),s=p(new window.DOMRect(n.left,n.top,n.width,i.bottom-n.top),e.ownerDocument,a);return o?s:j(s,r)}if(!e.current)return;const{parentNode:i}=e.current,s=i.getBoundingClientRect();return o?s:j(s,i)}(G,I,R,M,D,q.current);if(!e)return;const{offsetParent:t,ownerDocument:n}=q.current;let r,o=0;if(t&&t!==n.body){const n=t.getBoundingClientRect();o=n.top,e=new window.DOMRect(e.left-n.left,e.top-n.top,e.width,e.height)}H&&(r=q.current.parentElement);const a=ne.height?ne:$.current.getBoundingClientRect(),{popoverTop:i,popoverLeft:s,xAxis:l,yAxis:u,contentHeight:b,contentWidth:h}=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",r=arguments.length>3?arguments[3]:void 0,o=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,i=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,s=arguments.length>9?arguments[9]:void 0;const[l,u="center",p]=n.split(" "),b=f(e,t,l,p,r,0,o,i,s),h=d(e,t,u,p,r,b.yAxis,a,i,c);return{...h,...b}}(e,a,C,F,q.current,o,r,V,W,U);"number"==typeof i&&"number"==typeof s&&(x(q.current,"top",i+"px"),x(q.current,"left",s+"px")),_(q.current,"is-without-arrow",k||"center"===l&&"middle"===u),_(q.current,"is-alternate",S),w(q.current,"data-x-axis",l),w(q.current,"data-y-axis",u),x($.current,"maxHeight","number"==typeof b?b+"px":""),x($.current,"maxWidth","number"==typeof h?h+"px":"");Z(({left:"right",right:"left"}[l]||"center")+" "+({top:"bottom",bottom:"top"}[u]||"middle"))};e();const{ownerDocument:t}=q.current,{defaultView:n}=t,r=n.setInterval(e,500);let o;const a=()=>{n.cancelAnimationFrame(o),o=n.requestAnimationFrame(e)};n.addEventListener("click",a),n.addEventListener("resize",e),n.addEventListener("scroll",e,!0);const i=function(e){if(e)return e.endContainer?e.endContainer.ownerDocument:e.top?e.top.ownerDocument:e.ownerDocument}(M);let s;return i&&i!==t&&(i.defaultView.addEventListener("resize",e),i.defaultView.addEventListener("scroll",e,!0)),B&&(s=new n.MutationObserver(e),s.observe(B,{attributes:!0})),()=>{var c,l;(n.clearInterval(r),n.removeEventListener("resize",e),n.removeEventListener("scroll",e,!0),n.removeEventListener("click",a),n.cancelAnimationFrame(o),i&&i!==t)&&(null===(c=i.defaultView)||void 0===c||c.removeEventListener("resize",e),null===(l=i.defaultView)||void 0===l||l.removeEventListener("scroll",e,!0));s&&s.disconnect()}},[ee,I,R,M,D,C,ne,F,B,H]);const re=(e,t)=>{"focus-outside"===e&&L?L(t):a&&a()},[oe,ae]=Object(s.__experimentalUseDialog)({focusOnMount:T,__unstableOnClose:re,onClose:re}),ie=Object(s.useMergeRefs)([q,oe,t]),ce=Boolean(N&&X)&&Object(g.b)({type:"appear",origin:X});let se=Object(o.createElement)("div",Object(r.a)({className:i()("components-popover",E,ce,{"is-expanded":ee,"is-without-arrow":k,"is-alternate":S})},K,{ref:ie},ae,{tabIndex:"-1"}),ee&&Object(o.createElement)(h.a,null),ee&&Object(o.createElement)("div",{className:"components-popover__header"},Object(o.createElement)("span",{className:"components-popover__header-title"},n),Object(o.createElement)(b.a,{className:"components-popover__close",icon:l.a,onClick:a})),Object(o.createElement)("div",{ref:$,className:"components-popover__content"},Object(o.createElement)("div",{style:{position:"relative"}},te,u)));return Q.ref&&(se=Object(o.createElement)(v.a,{name:J},se)),M||I?se:Object(o.createElement)("span",{ref:G},se)});E.Slot=Object(o.forwardRef)((function(e,t){let{name:n=y}=e;return Object(o.createElement)(v.c,{bubblesVirtually:!0,name:n,className:"popover-slot",ref:t})})),E.__unstableSlotNameProvider=O.Provider;t.a=E},ouKs:function(e,t,n){"use strict";function r(e){return e?e.ownerDocument||e:document}n.d(t,"a",(function(){return r}))},pRvc:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!a.default.isMoment(e)||!a.default.isMoment(t))&&(e.date()===t.date()&&e.month()===t.month()&&e.year()===t.year())};var r,o=n("wy2R"),a=(r=o)&&r.__esModule?r:{default:r}},pVnL:function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,n.apply(this,arguments)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},pYxT:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=r.default.isMoment(e)?e:(0,o.default)(e,t);return n?n.format(a.ISO_FORMAT):null};var r=i(n("wy2R")),o=i(n("WmS1")),a=n("Fv1B");function i(e){return e&&e.__esModule?e:{default:e}}},q86A:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return{transform:e,msTransform:e,MozTransform:e,WebkitTransform:e}}},q9zb:function(e,t,n){"use strict";var r=n("DZdY");const o=Object(r.a)("div",{target:"em57xhy0"})("");o.selector=".components-view",o.displayName="View",t.a=o},qGip:function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},qOxZ:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("khzz");function o(e,t,n){return e.dispatchEvent(Object(r.a)(e,t,n))}},qRz9:function(e,t){e.exports=window.wp.richText},qT12:function(e,t,n){"use strict"; +*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)){if(r.length){var i=o.apply(null,r);i&&e.push(i)}}else if("object"===a)if(r.toString===Object.prototype.toString)for(var c in r)n.call(r,c)&&r[c]&&e.push(c);else e.push(r.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},TUyu:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){(0,o.default)(r.default)};var r=a(n("lzPt")),o=a(n("WI5Z"));function a(e){return e&&e.__esModule?e:{default:e}}},Teho:function(e,t,n){"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},Thzv:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=S(n("Koq/")),i=S(n("cDcd")),c=S(n("17x9")),s=S(n("YZDV")),l=S(n("XGBb")),u=n("Hsqg"),d=n("TG4+"),f=S(n("wy2R")),p=n("1TsT"),b=n("vV+G"),h=S(n("yc2e")),m=S(n("mMiH")),v=S(n("dRQD")),g=S(n("q86A")),y=S(n("m2ax")),O=S(n("jenk")),j=S(n("Pq96")),w=S(n("6HWY")),x=S(n("J7JS")),_=S(n("aE6U")),E=S(n("2S2E")),k=n("Fv1B");function S(e){return e&&e.__esModule?e:{default:e}}var C=(0,u.forbidExtraProps)((0,a.default)({},d.withStylesPropTypes,{enableOutsideDays:c.default.bool,firstVisibleMonthIndex:c.default.number,horizontalMonthPadding:u.nonNegativeInteger,initialMonth:l.default.momentObj,isAnimating:c.default.bool,numberOfMonths:c.default.number,modifiers:c.default.objectOf(c.default.objectOf(x.default)),orientation:_.default,onDayClick:c.default.func,onDayMouseEnter:c.default.func,onDayMouseLeave:c.default.func,onMonthTransitionEnd:c.default.func,onMonthChange:c.default.func,onYearChange:c.default.func,renderMonthText:(0,u.mutuallyExclusiveProps)(c.default.func,"renderMonthText","renderMonthElement"),renderCalendarDay:c.default.func,renderDayContents:c.default.func,translationValue:c.default.number,renderMonthElement:(0,u.mutuallyExclusiveProps)(c.default.func,"renderMonthText","renderMonthElement"),daySize:u.nonNegativeInteger,focusedDate:l.default.momentObj,isFocused:c.default.bool,firstDayOfWeek:E.default,setMonthTitleHeight:c.default.func,isRTL:c.default.bool,transitionDuration:u.nonNegativeInteger,verticalBorderSpacing:u.nonNegativeInteger,monthFormat:c.default.string,phrases:c.default.shape((0,h.default)(b.CalendarDayPhrases)),dayAriaLabelFormat:c.default.string})),P={enableOutsideDays:!1,firstVisibleMonthIndex:0,horizontalMonthPadding:13,initialMonth:(0,f.default)(),isAnimating:!1,numberOfMonths:1,modifiers:{},orientation:k.HORIZONTAL_ORIENTATION,onDayClick:function(){},onDayMouseEnter:function(){},onDayMouseLeave:function(){},onMonthChange:function(){},onYearChange:function(){},onMonthTransitionEnd:function(){},renderMonthText:null,renderCalendarDay:void 0,renderDayContents:null,translationValue:null,renderMonthElement:null,daySize:k.DAY_SIZE,focusedDate:null,isFocused:!1,firstDayOfWeek:null,setMonthTitleHeight:null,isRTL:!1,transitionDuration:200,verticalBorderSpacing:void 0,monthFormat:"MMMM YYYY",phrases:b.CalendarDayPhrases,dayAriaLabelFormat:void 0};function T(e,t,n){var r=e.clone();n||(r=r.subtract(1,"month"));for(var o=[],a=0;a<(n?t:t+2);a+=1)o.push(r),r=r.clone().add(1,"month");return o}var M=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=e.orientation===k.VERTICAL_SCROLLABLE;return n.state={months:T(e.initialMonth,e.numberOfMonths,r)},n.isTransitionEndSupported=(0,v.default)(),n.onTransitionEnd=n.onTransitionEnd.bind(n),n.setContainerRef=n.setContainerRef.bind(n),n.locale=f.default.locale(),n.onMonthSelect=n.onMonthSelect.bind(n),n.onYearSelect=n.onYearSelect.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.removeEventListener=(0,p.addEventListener)(this.container,"transitionend",this.onTransitionEnd)}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=e.initialMonth,r=e.numberOfMonths,o=e.orientation,a=this.state.months,i=this.props,c=i.initialMonth,s=i.numberOfMonths!==r,l=a;c.isSame(n,"month")||s||((0,w.default)(c,n)?(l=a.slice(1)).push(a[a.length-1].clone().add(1,"month")):(0,j.default)(c,n)?(l=a.slice(0,a.length-1)).unshift(a[0].clone().subtract(1,"month")):l=T(n,r,o===k.VERTICAL_SCROLLABLE));s&&(l=T(n,r,o===k.VERTICAL_SCROLLABLE));var u=f.default.locale();this.locale!==u&&(this.locale=u,l=l.map((function(e){return e.locale(t.locale)}))),this.setState({months:l})}},{key:"shouldComponentUpdate",value:function(e,t){return(0,s.default)(this,e,t)}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.isAnimating,n=e.transitionDuration,r=e.onMonthTransitionEnd;this.isTransitionEndSupported&&n||!t||r()}},{key:"componentWillUnmount",value:function(){this.removeEventListener&&this.removeEventListener()}},{key:"onTransitionEnd",value:function(){(0,this.props.onMonthTransitionEnd)()}},{key:"onMonthSelect",value:function(e,t){var n=e.clone(),r=this.props,o=r.onMonthChange,a=r.orientation,i=this.state.months,c=a===k.VERTICAL_SCROLLABLE,s=i.indexOf(e);c||(s-=1),n.set("month",t).subtract(s,"months"),o(n)}},{key:"onYearSelect",value:function(e,t){var n=e.clone(),r=this.props,o=r.onYearChange,a=r.orientation,i=this.state.months,c=a===k.VERTICAL_SCROLLABLE,s=i.indexOf(e);c||(s-=1),n.set("year",t).subtract(s,"months"),o(n)}},{key:"setContainerRef",value:function(e){this.container=e}},{key:"render",value:function(){var e=this,t=this.props,n=t.enableOutsideDays,o=t.firstVisibleMonthIndex,c=t.horizontalMonthPadding,s=t.isAnimating,l=t.modifiers,u=t.numberOfMonths,f=t.monthFormat,p=t.orientation,b=t.translationValue,h=t.daySize,v=t.onDayMouseEnter,j=t.onDayMouseLeave,w=t.onDayClick,x=t.renderMonthText,_=t.renderCalendarDay,E=t.renderDayContents,S=t.renderMonthElement,C=t.onMonthTransitionEnd,P=t.firstDayOfWeek,T=t.focusedDate,M=t.isFocused,D=t.isRTL,I=t.styles,R=t.phrases,A=t.dayAriaLabelFormat,N=t.transitionDuration,L=t.verticalBorderSpacing,F=t.setMonthTitleHeight,z=this.state.months,B=p===k.VERTICAL_ORIENTATION,H=p===k.VERTICAL_SCROLLABLE,V=p===k.HORIZONTAL_ORIENTATION,W=(0,y.default)(h,c),U=B||H?W:(u+2)*W,K=(B||H?"translateY":"translateX")+"("+String(b)+"px)";return i.default.createElement("div",r({},(0,d.css)(I.CalendarMonthGrid,V&&I.CalendarMonthGrid__horizontal,B&&I.CalendarMonthGrid__vertical,H&&I.CalendarMonthGrid__vertical_scrollable,s&&I.CalendarMonthGrid__animating,s&&N&&{transition:"transform "+String(N)+"ms ease-in-out"},(0,a.default)({},(0,g.default)(K),{width:U})),{ref:this.setContainerRef,onTransitionEnd:C}),z.map((function(t,a){var g=a>=o&&a<o+u,y=0===a&&!g,k=0===a&&s&&g,C=(0,O.default)(t);return i.default.createElement("div",r({key:C},(0,d.css)(V&&I.CalendarMonthGrid_month__horizontal,y&&I.CalendarMonthGrid_month__hideForAnimation,k&&!B&&!D&&{position:"absolute",left:-W},k&&!B&&D&&{position:"absolute",right:0},k&&B&&{position:"absolute",top:-b},!g&&!s&&I.CalendarMonthGrid_month__hidden)),i.default.createElement(m.default,{month:t,isVisible:g,enableOutsideDays:n,modifiers:l[C],monthFormat:f,orientation:p,onDayMouseEnter:v,onDayMouseLeave:j,onDayClick:w,onMonthSelect:e.onMonthSelect,onYearSelect:e.onYearSelect,renderMonthText:x,renderCalendarDay:_,renderDayContents:E,renderMonthElement:S,firstDayOfWeek:P,daySize:h,focusedDate:g?T:null,isFocused:M,phrases:R,setMonthTitleHeight:F,dayAriaLabelFormat:A,verticalBorderSpacing:L,horizontalMonthPadding:c}))})))}}]),t}(i.default.Component);M.propTypes=C,M.defaultProps=P,t.default=(0,d.withStyles)((function(e){var t=e.reactDates,n=t.color,r=t.noScrollBarOnVerticalScrollable,o=t.spacing,i=t.zIndex;return{CalendarMonthGrid:{background:n.background,textAlign:"left",zIndex:i},CalendarMonthGrid__animating:{zIndex:i+1},CalendarMonthGrid__horizontal:{position:"absolute",left:o.dayPickerHorizontalPadding},CalendarMonthGrid__vertical:{margin:"0 auto"},CalendarMonthGrid__vertical_scrollable:(0,a.default)({margin:"0 auto",overflowY:"scroll"},r&&{"-webkitOverflowScrolling":"touch","::-webkit-scrollbar":{"-webkit-appearance":"none",display:"none"}}),CalendarMonthGrid_month__horizontal:{display:"inline-block",verticalAlign:"top",minHeight:"100%"},CalendarMonthGrid_month__hideForAnimation:{position:"absolute",zIndex:i-1,opacity:0,pointerEvents:"none"},CalendarMonthGrid_month__hidden:{visibility:"hidden"}}}))(M)},Tqx9:function(e,t){e.exports=window.wp.primitives},U69M:function(e,t,n){"use strict";var r=n("j1Hc"),o=r("%String%"),a=r("%TypeError%");e.exports=function(e){if("symbol"==typeof e)throw new a("Cannot convert a Symbol value to a string");return o(e)}},UAm0:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("YLtl"),o=n("4eJC");const a=n.n(o)()((function(e){return"components-"+Object(r.kebabCase)(e)}))},UFhG:function(e,t,n){"use strict";var r=Math.floor;e.exports=function(e){return r(e)}},UVaH:function(e,t,n){"use strict";(function(t){var r=t.Symbol,o=n("FpZJ");e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,n("yLpj"))},UaFt:function(e,t,n){"use strict";var r=n("j1Hc")("%Object%"),o=n("BeK9"),a=r.preventExtensions,i=r.isExtensible;e.exports=a?function(e){return!o(e)&&i(e)}:function(e){return!o(e)}},VDVV:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=s(n("/ZKw")),o=s(n("9pTB")),a=n("kFtd"),i=s(n("nLTY")),c=s(n("3HjQ"));function s(e){return e&&e.__esModule?e:{default:e}}t.default={create:function(e){var t={},n=Object.keys(e),r=(o.default.get(a.GLOBAL_CACHE_KEY)||{}).namespace,c=void 0===r?"":r;return n.forEach((function(e){var n=(0,i.default)(c,e);t[e]=n})),t},resolve:function(e){var t=(0,r.default)(e,1/0),n=(0,c.default)(t),o=n.classNames,a=n.hasInlineStyles,i=n.inlineStyles,s={className:o.map((function(e,t){return String(e)+" "+String(e)+"_"+String(t+1)})).join(" ")};return a&&(s.style=i),s}}},VF6F:function(e,t,n){"use strict";var r=n("AM7I"),o=n("PrET"),a=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&a(e,".prototype.")>-1?o(n):n}},VKE3:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));t.a=a},Vq1w:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("utzN");function o(e){return!Object(r.a)(e.currentTarget,e.target)}},"W/NR":function(e,t,n){"use strict";var r=n("GRId"),o=n("YLtl"),a=n("K9lf"),i=n("oXO/"),c=n("Cw+6");const s=700,l=Object(r.createElement)("div",{className:"event-catcher"}),u=e=>{let{eventHandlers:t,child:n,childrenWithPopover:o}=e;return Object(r.cloneElement)(Object(r.createElement)("span",{className:"disabled-element-wrapper"},Object(r.cloneElement)(l,t),Object(r.cloneElement)(n,{children:o})),t)},d=e=>{let{child:t,eventHandlers:n,childrenWithPopover:o}=e;return Object(r.cloneElement)(t,{...n,children:o})},f=(e,t,n)=>{if(1!==r.Children.count(e))return;const o=r.Children.only(e);o.props.disabled||"function"==typeof o.props[t]&&o.props[t](n)};t.a=function(e){const{children:t,position:n,text:l,shortcut:p,delay:b=s}=e,[h,m]=Object(r.useState)(!1),[v,g]=Object(r.useState)(!1),y=Object(a.useDebounce)(g,b),O=e=>{f(t,"onMouseDown",e),document.addEventListener("mouseup",x),m(!0)},j=e=>{f(t,"onMouseUp",e),document.removeEventListener("mouseup",x),m(!1)},w=e=>"mouseUp"===e?j:"mouseDown"===e?O:void 0,x=w("mouseUp"),_=(e,n)=>r=>{if(f(t,e,r),r.currentTarget.disabled)return;if("focus"===r.type&&h)return;y.cancel();const a=Object(o.includes)(["focus","mouseenter"],r.type);a!==v&&(n?y(a):g(a))},E=()=>{y.cancel(),document.removeEventListener("mouseup",x)};if(Object(r.useEffect)(()=>E,[]),1!==r.Children.count(t))return t;const k={onMouseEnter:_("onMouseEnter",!0),onMouseLeave:_("onMouseLeave"),onClick:_("onClick"),onFocus:_("onFocus"),onBlur:_("onBlur"),onMouseDown:w("mouseDown")},S=r.Children.only(t),{children:C,disabled:P}=S.props;return(P?u:d)({child:S,eventHandlers:k,childrenWithPopover:(e=>{let{grandchildren:t,isOver:n,position:o,text:a,shortcut:s}=e;return Object(r.concatChildren)(t,n&&Object(r.createElement)(i.a,{focusOnMount:!1,position:o,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},a,Object(r.createElement)(c.a,{className:"components-tooltip__shortcut",shortcut:s})))})({grandchildren:C,...{isOver:v,position:n,text:l,shortcut:p}})})}},WFqU:function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("yLpj"))},WI5Z:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){r.default.registerInterface(e),r.default.registerTheme(o.default)};var r=a(n("030x")),o=a(n("xOhs"));function a(e){return e&&e.__esModule?e:{default:e}}},WZeS:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,o=n("Teho"),a=n("IdCN"),i=n("DmXP"),c=n("/sVA"),s=function(e,t){if(null==e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var n,r,i,c="string"===t?["toString","valueOf"]:["valueOf","toString"];for(i=0;i<c.length;++i)if(n=e[c[i]],a(n)&&(r=n.call(e),o(r)))return r;throw new TypeError("No default value")},l=function(e,t){var n=e[t];if(null!=n){if(!a(n))throw new TypeError(n+" returned for property "+t+" of object "+e+" is not a function");return n}};e.exports=function(e){if(o(e))return e;var t,n="default";if(arguments.length>1&&(arguments[1]===String?n="string":arguments[1]===Number&&(n="number")),r&&(Symbol.toPrimitive?t=l(e,Symbol.toPrimitive):c(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var a=t.call(e,n);if(o(a))return a;throw new TypeError("unable to convert exotic object to primitive")}return"default"===n&&(i(e)||c(e))&&(n="string"),s(e,"default"===n?"number":n)}},WbBG:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},"Wfh+":function(e,t,n){"use strict";var r=n("nKkb"),o=n("UFhG"),a=n("Pjai"),i=n("HwJD"),c=n("ald4"),s=n("6I5v");e.exports=function(e){var t=a(e);return i(t)?0:0!==t&&c(t)?s(t)*o(r(t)):t}},WmS1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=t?[t,i.DISPLAY_FORMAT,i.ISO_FORMAT]:[i.DISPLAY_FORMAT,i.ISO_FORMAT],r=(0,a.default)(e,n,!0);return r.isValid()?r.hour(12):null};var r,o=n("wy2R"),a=(r=o)&&r.__esModule?r:{default:r},i=n("Fv1B")},WnOg:function(e,t,n){"use strict"},XGBb:function(e,t,n){var r=n("wy2R"),o=n("c6aN"),a=n("iNdV");e.exports={momentObj:a.createMomentChecker("object",(function(e){return"object"==typeof e}),(function(e){return o.isValidMoment(e)}),"Moment"),momentString:a.createMomentChecker("string",(function(e){return"string"==typeof e}),(function(e){return o.isValidMoment(r(e))}),"Moment"),momentDurationObj:a.createMomentChecker("object",(function(e){return"object"==typeof e}),(function(e){return r.isDuration(e)}),"Duration")}},XgzB:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));t.a=a},Xtko:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=k(n("Koq/")),i=k(n("cDcd")),c=k(n("17x9")),s=k(n("XGBb")),l=n("Hsqg"),u=k(n("wy2R")),d=k(n("4cSd")),f=k(n("LTAC")),p=n("vV+G"),b=k(n("yc2e")),h=k(n("pRvc")),m=k(n("Nho6")),v=k(n("u5Fq")),g=k(n("IgE5")),y=k(n("pYxT")),O=k(n("jenk")),j=k(n("aE6U")),w=k(n("2S2E")),x=k(n("oR9Z")),_=n("Fv1B"),E=k(n("Nloh"));function k(e){return e&&e.__esModule?e:{default:e}}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var C=(0,l.forbidExtraProps)({date:s.default.momentObj,onDateChange:c.default.func,focused:c.default.bool,onFocusChange:c.default.func,onClose:c.default.func,keepOpenOnDateSelect:c.default.bool,isOutsideRange:c.default.func,isDayBlocked:c.default.func,isDayHighlighted:c.default.func,renderMonthText:(0,l.mutuallyExclusiveProps)(c.default.func,"renderMonthText","renderMonthElement"),renderMonthElement:(0,l.mutuallyExclusiveProps)(c.default.func,"renderMonthText","renderMonthElement"),enableOutsideDays:c.default.bool,numberOfMonths:c.default.number,orientation:j.default,withPortal:c.default.bool,initialVisibleMonth:c.default.func,firstDayOfWeek:w.default,hideKeyboardShortcutsPanel:c.default.bool,daySize:l.nonNegativeInteger,verticalHeight:l.nonNegativeInteger,noBorder:c.default.bool,verticalBorderSpacing:l.nonNegativeInteger,transitionDuration:l.nonNegativeInteger,horizontalMonthPadding:l.nonNegativeInteger,navPrev:c.default.node,navNext:c.default.node,onPrevMonthClick:c.default.func,onNextMonthClick:c.default.func,onOutsideClick:c.default.func,renderCalendarDay:c.default.func,renderDayContents:c.default.func,renderCalendarInfo:c.default.func,calendarInfoPosition:x.default,onBlur:c.default.func,isFocused:c.default.bool,showKeyboardShortcuts:c.default.bool,monthFormat:c.default.string,weekDayFormat:c.default.string,phrases:c.default.shape((0,b.default)(p.DayPickerPhrases)),dayAriaLabelFormat:c.default.string,isRTL:c.default.bool}),P={date:void 0,onDateChange:function(){},focused:!1,onFocusChange:function(){},onClose:function(){},keepOpenOnDateSelect:!1,isOutsideRange:function(){},isDayBlocked:function(){},isDayHighlighted:function(){},renderMonthText:null,enableOutsideDays:!1,numberOfMonths:1,orientation:_.HORIZONTAL_ORIENTATION,withPortal:!1,hideKeyboardShortcutsPanel:!1,initialVisibleMonth:null,firstDayOfWeek:null,daySize:_.DAY_SIZE,verticalHeight:null,noBorder:!1,verticalBorderSpacing:void 0,transitionDuration:void 0,horizontalMonthPadding:13,navPrev:null,navNext:null,onPrevMonthClick:function(){},onNextMonthClick:function(){},onOutsideClick:function(){},renderCalendarDay:void 0,renderDayContents:null,renderCalendarInfo:null,renderMonthElement:null,calendarInfoPosition:_.INFO_POSITION_BOTTOM,onBlur:function(){},isFocused:!1,showKeyboardShortcuts:!1,monthFormat:"MMMM YYYY",weekDayFormat:"dd",phrases:p.DayPickerPhrases,dayAriaLabelFormat:void 0,isRTL:!1},T=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.isTouchDevice=!1,n.today=(0,u.default)(),n.modifiers={today:function(e){return n.isToday(e)},blocked:function(e){return n.isBlocked(e)},"blocked-calendar":function(t){return e.isDayBlocked(t)},"blocked-out-of-range":function(t){return e.isOutsideRange(t)},"highlighted-calendar":function(t){return e.isDayHighlighted(t)},valid:function(e){return!n.isBlocked(e)},hovered:function(e){return n.isHovered(e)},selected:function(e){return n.isSelected(e)},"first-day-of-week":function(e){return n.isFirstDayOfWeek(e)},"last-day-of-week":function(e){return n.isLastDayOfWeek(e)}};var r=n.getStateForNewMonth(e),o=r.currentMonth,a=r.visibleDays;return n.state={hoverDate:null,currentMonth:o,visibleDays:a},n.onDayMouseEnter=n.onDayMouseEnter.bind(n),n.onDayMouseLeave=n.onDayMouseLeave.bind(n),n.onDayClick=n.onDayClick.bind(n),n.onPrevMonthClick=n.onPrevMonthClick.bind(n),n.onNextMonthClick=n.onNextMonthClick.bind(n),n.onMonthChange=n.onMonthChange.bind(n),n.onYearChange=n.onYearChange.bind(n),n.getFirstFocusableDay=n.getFirstFocusableDay.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.isTouchDevice=(0,f.default)()}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=e.date,r=e.focused,o=e.isOutsideRange,i=e.isDayBlocked,c=e.isDayHighlighted,s=e.initialVisibleMonth,l=e.numberOfMonths,f=e.enableOutsideDays,p=this.props,b=p.isOutsideRange,m=p.isDayBlocked,v=p.isDayHighlighted,g=p.numberOfMonths,y=p.enableOutsideDays,O=p.initialVisibleMonth,j=p.focused,w=p.date,x=this.state.visibleDays,_=!1,E=!1,k=!1;o!==b&&(this.modifiers["blocked-out-of-range"]=function(e){return o(e)},_=!0),i!==m&&(this.modifiers["blocked-calendar"]=function(e){return i(e)},E=!0),c!==v&&(this.modifiers["highlighted-calendar"]=function(e){return c(e)},k=!0);var S=_||E||k;if(l!==g||f!==y||s!==O&&!j&&r){var C=this.getStateForNewMonth(e),P=C.currentMonth;x=C.visibleDays,this.setState({currentMonth:P,visibleDays:x})}var T=r!==j,M={};n!==w&&(M=this.deleteModifier(M,w,"selected"),M=this.addModifier(M,n,"selected")),(T||S)&&(0,d.default)(x).forEach((function(e){Object.keys(e).forEach((function(e){var n=(0,u.default)(e);M=t.isBlocked(n)?t.addModifier(M,n,"blocked"):t.deleteModifier(M,n,"blocked"),(T||_)&&(M=o(n)?t.addModifier(M,n,"blocked-out-of-range"):t.deleteModifier(M,n,"blocked-out-of-range")),(T||E)&&(M=i(n)?t.addModifier(M,n,"blocked-calendar"):t.deleteModifier(M,n,"blocked-calendar")),(T||k)&&(M=c(n)?t.addModifier(M,n,"highlighted-calendar"):t.deleteModifier(M,n,"highlighted-calendar"))}))}));var D=(0,u.default)();(0,h.default)(this.today,D)||(M=this.deleteModifier(M,this.today,"today"),M=this.addModifier(M,D,"today"),this.today=D),Object.keys(M).length>0&&this.setState({visibleDays:(0,a.default)({},x,M)})}},{key:"componentWillUpdate",value:function(){this.today=(0,u.default)()}},{key:"onDayClick",value:function(e,t){if(t&&t.preventDefault(),!this.isBlocked(e)){var n=this.props,r=n.onDateChange,o=n.keepOpenOnDateSelect,a=n.onFocusChange,i=n.onClose;r(e),o||(a({focused:!1}),i({date:e}))}}},{key:"onDayMouseEnter",value:function(e){if(!this.isTouchDevice){var t=this.state,n=t.hoverDate,r=t.visibleDays,o=this.deleteModifier({},n,"hovered");o=this.addModifier(o,e,"hovered"),this.setState({hoverDate:e,visibleDays:(0,a.default)({},r,o)})}}},{key:"onDayMouseLeave",value:function(){var e=this.state,t=e.hoverDate,n=e.visibleDays;if(!this.isTouchDevice&&t){var r=this.deleteModifier({},t,"hovered");this.setState({hoverDate:null,visibleDays:(0,a.default)({},n,r)})}}},{key:"onPrevMonthClick",value:function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,c=o.visibleDays,s={};Object.keys(c).sort().slice(0,n+1).forEach((function(e){s[e]=c[e]}));var l=i.clone().subtract(1,"month"),u=(0,v.default)(l,1,r);this.setState({currentMonth:l,visibleDays:(0,a.default)({},s,this.getModifiers(u))},(function(){t(l.clone())}))}},{key:"onNextMonthClick",value:function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,c=o.visibleDays,s={};Object.keys(c).sort().slice(1).forEach((function(e){s[e]=c[e]}));var l=i.clone().add(n,"month"),u=(0,v.default)(l,1,r),d=i.clone().add(1,"month");this.setState({currentMonth:d,visibleDays:(0,a.default)({},s,this.getModifiers(u))},(function(){t(d.clone())}))}},{key:"onMonthChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===_.VERTICAL_SCROLLABLE,a=(0,v.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}},{key:"onYearChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===_.VERTICAL_SCROLLABLE,a=(0,v.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}},{key:"getFirstFocusableDay",value:function(e){var t=this,n=this.props,o=n.date,a=n.numberOfMonths,i=e.clone().startOf("month");if(o&&(i=o.clone()),this.isBlocked(i)){for(var c=[],s=e.clone().add(a-1,"months").endOf("month"),l=i.clone();!(0,m.default)(l,s);)l=l.clone().add(1,"day"),c.push(l);var u=c.filter((function(e){return!t.isBlocked(e)&&(0,m.default)(e,i)}));if(u.length>0){var d=r(u,1);i=d[0]}}return i}},{key:"getModifiers",value:function(e){var t=this,n={};return Object.keys(e).forEach((function(r){n[r]={},e[r].forEach((function(e){n[r][(0,y.default)(e)]=t.getModifiersForDay(e)}))})),n}},{key:"getModifiersForDay",value:function(e){var t=this;return new Set(Object.keys(this.modifiers).filter((function(n){return t.modifiers[n](e)})))}},{key:"getStateForNewMonth",value:function(e){var t=this,n=e.initialVisibleMonth,r=e.date,o=e.numberOfMonths,a=e.enableOutsideDays,i=(n||(r?function(){return r}:function(){return t.today}))();return{currentMonth:i,visibleDays:this.getModifiers((0,v.default)(i,o,a))}}},{key:"addModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,c=r.orientation,s=this.state,l=s.currentMonth,u=s.visibleDays,d=l,f=o;if(c===_.VERTICAL_SCROLLABLE?f=Object.keys(u).length:(d=d.clone().subtract(1,"month"),f+=2),!t||!(0,g.default)(t,d,f,i))return e;var p=(0,y.default)(t),b=(0,a.default)({},e);if(i)b=Object.keys(u).filter((function(e){return Object.keys(u[e]).indexOf(p)>-1})).reduce((function(t,r){var o=e[r]||u[r],i=new Set(o[p]);return i.add(n),(0,a.default)({},t,S({},r,(0,a.default)({},o,S({},p,i))))}),b);else{var h=(0,O.default)(t),m=e[h]||u[h],v=new Set(m[p]);v.add(n),b=(0,a.default)({},b,S({},h,(0,a.default)({},m,S({},p,v))))}return b}},{key:"deleteModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,c=r.orientation,s=this.state,l=s.currentMonth,u=s.visibleDays,d=l,f=o;if(c===_.VERTICAL_SCROLLABLE?f=Object.keys(u).length:(d=d.clone().subtract(1,"month"),f+=2),!t||!(0,g.default)(t,d,f,i))return e;var p=(0,y.default)(t),b=(0,a.default)({},e);if(i)b=Object.keys(u).filter((function(e){return Object.keys(u[e]).indexOf(p)>-1})).reduce((function(t,r){var o=e[r]||u[r],i=new Set(o[p]);return i.delete(n),(0,a.default)({},t,S({},r,(0,a.default)({},o,S({},p,i))))}),b);else{var h=(0,O.default)(t),m=e[h]||u[h],v=new Set(m[p]);v.delete(n),b=(0,a.default)({},b,S({},h,(0,a.default)({},m,S({},p,v))))}return b}},{key:"isBlocked",value:function(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)}},{key:"isHovered",value:function(e){var t=(this.state||{}).hoverDate;return(0,h.default)(e,t)}},{key:"isSelected",value:function(e){var t=this.props.date;return(0,h.default)(e,t)}},{key:"isToday",value:function(e){return(0,h.default)(e,this.today)}},{key:"isFirstDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||u.default.localeData().firstDayOfWeek())}},{key:"isLastDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||u.default.localeData().firstDayOfWeek())+6)%7}},{key:"render",value:function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,o=e.renderMonthText,a=e.navPrev,c=e.navNext,s=e.onOutsideClick,l=e.withPortal,u=e.focused,d=e.enableOutsideDays,f=e.hideKeyboardShortcutsPanel,p=e.daySize,b=e.firstDayOfWeek,h=e.renderCalendarDay,m=e.renderDayContents,v=e.renderCalendarInfo,g=e.renderMonthElement,y=e.calendarInfoPosition,O=e.isFocused,j=e.isRTL,w=e.phrases,x=e.dayAriaLabelFormat,_=e.onBlur,k=e.showKeyboardShortcuts,S=e.weekDayFormat,C=e.verticalHeight,P=e.noBorder,T=e.transitionDuration,M=e.verticalBorderSpacing,D=e.horizontalMonthPadding,I=this.state,R=I.currentMonth,A=I.visibleDays;return i.default.createElement(E.default,{orientation:n,enableOutsideDays:d,modifiers:A,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,monthFormat:r,withPortal:l,hidden:!u,hideKeyboardShortcutsPanel:f,initialVisibleMonth:function(){return R},firstDayOfWeek:b,onOutsideClick:s,navPrev:a,navNext:c,renderMonthText:o,renderCalendarDay:h,renderDayContents:m,renderCalendarInfo:v,renderMonthElement:g,calendarInfoPosition:y,isFocused:O,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:_,phrases:w,daySize:p,isRTL:j,showKeyboardShortcuts:k,weekDayFormat:S,dayAriaLabelFormat:x,verticalHeight:C,noBorder:P,transitionDuration:T,verticalBorderSpacing:M,horizontalMonthPadding:D})}}]),t}(i.default.Component);t.default=T,T.propTypes=C,T.defaultProps=P},YLtl:function(e,t){e.exports=window.lodash},YZDV:function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function a(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var i=0;i<n.length;i++)if(!r.call(t,n[i])||!o(e[n[i]],t[n[i]]))return!1;return!0}e.exports=function(e,t,n){return!a(e.props,t)||!a(e.state,n)}},Yesc:function(e,t,n){"use strict";var r=n("j1Hc")("%TypeError%"),o=n("yyeE"),a=n("u9yu"),i=n("hWh2"),c=n("aBsX"),s=n("1ao6"),l=n("Bl8U"),u=n("/A+k"),d=n("U69M");e.exports=function e(t,n,f,p,b){var h;arguments.length>5&&(h=arguments[5]);for(var m=p,v=0;v<f;){var g=d(v),y=s(n,g);if(!0===y){var O=c(n,g);if(void 0!==h){if(arguments.length<=6)throw new r("Assertion failed: thisArg is required when mapperFunction is provided");O=a(h,arguments[6],[O,v,n])}var j=!1;if(b>0&&(j=l(O)),j){var w=u(O);m=e(t,O,w,m,b-1)}else{if(m>=o)throw new r("index too large");i(t,d(m),O),m+=1}}v+=1}return m}},Z23Y:function(e,t){e.exports=window.wp.warning},ZbWB:function(e,t,n){"use strict";var r=n("j1Hc")("RegExp.prototype.test"),o=n("SLit");e.exports=function(e){return o(r,e)}},a73V:function(e,t,n){"use strict";var r=n("j1Hc")("%Symbol.match%",!0),o=n("SegQ"),a=n("e87w");e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(r){var t=e[r];if(void 0!==t)return a(t)}return o(e)}},aA0e:function(e,t,n){"use strict";(function(e){var r=n("wx14"),o=n("GRId"),a=n("zTEx"),i=(n("Z23Y"),n("GK4x"));t.a=Object(o.forwardRef)((function(t,n){let{children:c,as:s,...l}=t;const u=Object(o.useContext)(i.a);if("function"!=typeof c&&!s)return void 0!==e&&e.env,null;const d={...l,ref:n,"data-toolbar-item":!0};return u?Object(o.createElement)(a.a,Object(r.a)({},u,d,{as:s}),c):s?Object(o.createElement)(s,d,c):c(d)}))}).call(this,n("8oxB"))},aBsX:function(e,t,n){"use strict";var r=n("j1Hc")("%TypeError%"),o=n("4qvr"),a=n("nR7C"),i=n("PoQ0");e.exports=function(e,t){if("Object"!==i(e))throw new r("Assertion failed: Type(O) is not Object");if(!a(t))throw new r("Assertion failed: IsPropertyKey(P) is not true, got "+o(t));return e[t]}},aE6U:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("17x9"),a=(r=o)&&r.__esModule?r:{default:r},i=n("Fv1B");t.default=a.default.oneOf([i.HORIZONTAL_ORIENTATION,i.VERTICAL_ORIENTATION,i.VERTICAL_SCROLLABLE])},aI7X:function(e,t,n){"use strict";var r="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,a=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==a.call(t))throw new TypeError(r+t);for(var n,i=o.call(arguments,1),c=function(){if(this instanceof n){var r=t.apply(this,i.concat(o.call(arguments)));return Object(r)===r?r:this}return t.apply(e,i.concat(o.call(arguments)))},s=Math.max(0,t.length-i.length),l=[],u=0;u<s;u++)l.push("$"+u);if(n=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(c),t.prototype){var d=function(){};d.prototype=t.prototype,n.prototype=new d,d.prototype=null}return n}},aU41:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("cDcd");function o(e,t){void 0===t&&(t=null),e&&("function"==typeof e?e(t):e.current=t)}function a(e,t){return Object(r.useMemo)((function(){return null==e&&null==t?null:function(n){o(e,n),o(t,n)}}),[e,t])}},aUaa:function(e,t,n){"use strict";var r=n("v7lB")("%TypeError%");e.exports=function(e,t){if(null==e)throw new r(t||"Cannot call method on "+e);return e}},abaT:function(e,t,n){"use strict";t.a=function(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in n)r[n[o]]=o;var a={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var o,i,c=r[this.toHex()];if(c)return c;if(null==t?void 0:t.closest){var s=this.toRgb(),l=1/0,u="black";if(!a.length)for(var d in n)a[d]=new e(n[d]).toRgb();for(var f in n){var p=(o=s,i=a[f],Math.pow(o.r-i.r,2)+Math.pow(o.g-i.g,2)+Math.pow(o.b-i.b,2));p<l&&(l=p,u=f)}return u}},t.string.push([function(t){var r=t.toLowerCase(),o="transparent"===r?"#0000":n[r];return o?new e(o).toRgb():null},"name"])}},aflq:function(e,t,n){"use strict";var r=n("j1Hc")("%TypeError%"),o=n("Qmvf"),a=n("wTIp"),i=n("rQBh"),c=n("vYfR"),s=n("6/BL"),l=n("nR7C"),u=n("uug5"),d=n("6orR"),f=n("PoQ0");e.exports=function(e,t,n){if("Object"!==f(e))throw new r("Assertion failed: Type(O) is not Object");if(!l(t))throw new r("Assertion failed: IsPropertyKey(P) is not true");var p=o({Type:f,IsDataDescriptor:s,IsAccessorDescriptor:c},n)?n:d(n);if(!o({Type:f,IsDataDescriptor:s,IsAccessorDescriptor:c},p))throw new r("Assertion failed: Desc is not a valid Property Descriptor");return a(s,u,i,e,t,p)}},ald4:function(e,t,n){"use strict";var r=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!r(e)&&e!==1/0&&e!==-1/0}},bVTw:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},Object(r.createElement)(o.Path,{d:"M5 11.25h14v1.5H5z"}));t.a=a},bWcr:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));t.a=a},c6aN:function(e,t,n){var r=n("wy2R");e.exports={isValidMoment:function(e){return!("function"==typeof r.isMoment&&!r.isMoment(e))&&("function"==typeof e.isValid?e.isValid():!isNaN(e))}}},cD2C:function(e,t,n){"use strict";e.exports=n("5aBA")},cDcd:function(e,t){e.exports=window.React},cGtP:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"}));t.a=a},dRQD:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!("undefined"==typeof window||!("TransitionEvent"in window))}},dSD1:function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"c",(function(){return x})),n.d(t,"b",(function(){return _})),n.d(t,"d",(function(){return E}));var r=n("wx14"),o=n("GRId"),a=n("YLtl");var i=Object(o.createContext)({registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>{},subscribe:()=>{}});var c=e=>{const{getSlot:t,subscribe:n}=Object(o.useContext)(i),[r,a]=Object(o.useState)(t(e));return Object(o.useEffect)(()=>{a(t(e));return n(()=>{a(t(e))})},[e]),r};function s(e){let{name:t,children:n,registerFill:r,unregisterFill:i}=e;const s=c(t),l=Object(o.useRef)({name:t,children:n});return Object(o.useLayoutEffect)(()=>(r(t,l.current),()=>i(t,l.current)),[]),Object(o.useLayoutEffect)(()=>{l.current.children=n,s&&s.forceUpdate()},[n]),Object(o.useLayoutEffect)(()=>{t!==l.current.name&&(i(l.current.name,l.current),l.current.name=t,r(t,l.current))},[t]),s&&s.node?(Object(a.isFunction)(n)&&(n=n(s.props.fillProps)),Object(o.createPortal)(n,s.node)):null}var l=e=>Object(o.createElement)(i.Consumer,null,t=>{let{registerFill:n,unregisterFill:a}=t;return Object(o.createElement)(s,Object(r.a)({},e,{registerFill:n,unregisterFill:a}))});class u extends o.Component{constructor(){super(...arguments),this.isUnmounted=!1,this.bindNode=this.bindNode.bind(this)}componentDidMount(){const{registerSlot:e}=this.props;e(this.props.name,this)}componentWillUnmount(){const{unregisterSlot:e}=this.props;this.isUnmounted=!0,e(this.props.name,this)}componentDidUpdate(e){const{name:t,unregisterSlot:n,registerSlot:r}=this.props;e.name!==t&&(n(e.name),r(t,this))}bindNode(e){this.node=e}forceUpdate(){this.isUnmounted||super.forceUpdate()}render(){const{children:e,name:t,fillProps:n={},getFills:r}=this.props,i=Object(a.map)(r(t,this),e=>{const t=Object(a.isFunction)(e.children)?e.children(n):e.children;return o.Children.map(t,(e,t)=>{if(!e||Object(a.isString)(e))return e;const n=e.key||t;return Object(o.cloneElement)(e,{key:n})})}).filter(Object(a.negate)(o.isEmptyElement));return Object(o.createElement)(o.Fragment,null,Object(a.isFunction)(e)?e(i):i)}}var d=e=>Object(o.createElement)(i.Consumer,null,t=>{let{registerSlot:n,unregisterSlot:a,getFills:i}=t;return Object(o.createElement)(u,Object(r.a)({},e,{registerSlot:n,unregisterSlot:a,getFills:i}))}),f=n("+WFq");function p(){const[,e]=Object(o.useState)({}),t=Object(o.useRef)(!0);return Object(o.useEffect)(()=>()=>{t.current=!1},[]),()=>{t.current&&e({})}}function b(e){let{name:t,children:n}=e;const r=Object(f.a)(t),a=Object(o.useRef)({rerender:p()});return Object(o.useEffect)(()=>(r.registerFill(a),()=>{r.unregisterFill(a)}),[r.registerFill,r.unregisterFill]),r.ref&&r.ref.current?("function"==typeof n&&(n=n(r.fillProps)),Object(o.createPortal)(n,r.ref.current)):null}var h=n("K9lf"),m=n("JYkG");var v=Object(o.forwardRef)((function(e,t){let{name:n,fillProps:a={},as:i="div",...c}=e;const s=Object(o.useContext)(m.a),l=Object(o.useRef)();return Object(o.useLayoutEffect)(()=>(s.registerSlot(n,l,a),()=>{s.unregisterSlot(n,l)}),[s.registerSlot,s.unregisterSlot,n]),Object(o.useLayoutEffect)(()=>{s.updateSlot(n,a)}),Object(o.createElement)(i,Object(r.a)({ref:Object(h.useMergeRefs)([t,l])},c))})),g=n("rl8x"),y=n.n(g);function O(e){let{children:t}=e;const n=function(){const[e,t]=Object(o.useState)({}),[n,r]=Object(o.useState)({}),a=Object(o.useCallback)((e,n,r)=>{t(t=>{const o=t[e]||{};return{...t,[e]:{...o,ref:n||o.ref,fillProps:r||o.fillProps||{}}}})},[]),i=Object(o.useCallback)((e,n)=>{t(t=>{const{[e]:r,...o}=t;return(null==r?void 0:r.ref)===n?o:t})},[]),c=Object(o.useCallback)((t,r)=>{const o=e[t];if(o&&!y()(o.fillProps,r)){o.fillProps=r;const e=n[t];e&&e.map(e=>e.current.rerender())}},[e,n]),s=Object(o.useCallback)((e,t)=>{r(n=>({...n,[e]:[...n[e]||[],t]}))},[]),l=Object(o.useCallback)((e,t)=>{r(n=>n[e]?{...n,[e]:n[e].filter(e=>e!==t)}:n)},[]);return Object(o.useMemo)(()=>({slots:e,fills:n,registerSlot:a,updateSlot:c,unregisterSlot:i,registerFill:s,unregisterFill:l}),[e,n,a,c,i,s,l])}();return Object(o.createElement)(m.a.Provider,{value:n},t)}class j extends o.Component{constructor(){super(...arguments),this.registerSlot=this.registerSlot.bind(this),this.registerFill=this.registerFill.bind(this),this.unregisterSlot=this.unregisterSlot.bind(this),this.unregisterFill=this.unregisterFill.bind(this),this.getSlot=this.getSlot.bind(this),this.getFills=this.getFills.bind(this),this.hasFills=this.hasFills.bind(this),this.subscribe=this.subscribe.bind(this),this.slots={},this.fills={},this.listeners=[],this.contextValue={registerSlot:this.registerSlot,unregisterSlot:this.unregisterSlot,registerFill:this.registerFill,unregisterFill:this.unregisterFill,getSlot:this.getSlot,getFills:this.getFills,hasFills:this.hasFills,subscribe:this.subscribe}}registerSlot(e,t){const n=this.slots[e];this.slots[e]=t,this.triggerListeners(),this.forceUpdateSlot(e),n&&n.forceUpdate()}registerFill(e,t){this.fills[e]=[...this.fills[e]||[],t],this.forceUpdateSlot(e)}unregisterSlot(e,t){this.slots[e]===t&&(delete this.slots[e],this.triggerListeners())}unregisterFill(e,t){this.fills[e]=Object(a.without)(this.fills[e],t),this.forceUpdateSlot(e)}getSlot(e){return this.slots[e]}getFills(e,t){return this.slots[e]!==t?[]:this.fills[e]}hasFills(e){return this.fills[e]&&!!this.fills[e].length}forceUpdateSlot(e){const t=this.getSlot(e);t&&t.forceUpdate()}triggerListeners(){this.listeners.forEach(e=>e())}subscribe(e){return this.listeners.push(e),()=>{this.listeners=Object(a.without)(this.listeners,e)}}render(){return Object(o.createElement)(i.Provider,{value:this.contextValue},this.props.children)}}function w(e){return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(l,e),Object(o.createElement)(b,e))}const x=Object(o.forwardRef)((e,t)=>{let{bubblesVirtually:n,...a}=e;return n?Object(o.createElement)(v,Object(r.a)({},a,{ref:t})):Object(o.createElement)(d,a)});function _(e){let{children:t,...n}=e;return Object(o.createElement)(j,n,Object(o.createElement)(O,null,t))}function E(e){const t=t=>Object(o.createElement)(w,Object(r.a)({name:e},t));t.displayName=e+"Fill";const n=t=>Object(o.createElement)(x,Object(r.a)({name:e},t));return n.displayName=e+"Slot",n.__unstableName=e,{Fill:t,Slot:n}}},e87w:function(e,t,n){"use strict";e.exports=function(e){return!!e}},eH4f:function(e,t,n){"use strict";e.exports=n("laOf")},eJkf:function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},eNtd:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("cDcd"),o=n("AXvK");function a(e){var t=Object(r.useRef)(e);return Object(o.a)((function(){t.current=e})),t}},eUCI:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("cDcd"),o=Object(r.createContext)({})},eVQB:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var o=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0);o=o.next}while(void 0!==o)}}},ek6p:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return b})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return d}));var r=n("cDcd"),o=n("+1VY"),a=(n("wx14"),n("gRFL"),n("i2T3"),n("eVQB")),i=n("Exhd"),c={}.hasOwnProperty,s=Object(r.createContext)("undefined"!=typeof HTMLElement?Object(o.a)({key:"css"}):null);var l=s.Provider,u=function(){return Object(r.useContext)(s)},d=function(e){return Object(r.forwardRef)((function(t,n){var o=Object(r.useContext)(s);return e(t,o,n)}))},f=Object(r.createContext)({});var p="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",b=function(e,t){var n={};for(var r in t)c.call(t,r)&&(n[r]=t[r]);return n[p]=e,n},h=function(){return null},m=d((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var s=e[p],l=[o],u="";"string"==typeof e.className?u=Object(a.a)(t.registered,l,e.className):null!=e.className&&(u=e.className+" ");var d=Object(i.a)(l,void 0,Object(r.useContext)(f));Object(a.b)(t,d,"string"==typeof s);u+=t.key+"-"+d.name;var b={};for(var m in e)c.call(e,m)&&"css"!==m&&m!==p&&(b[m]=e[m]);b.ref=n,b.className=u;var v=Object(r.createElement)(s,b),g=Object(r.createElement)(h,null);return Object(r.createElement)(r.Fragment,null,g,v)}))},"ep+1":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}()},fHnH:function(e,t,n){"use strict";n.d(t,"a",(function(){return P})),n.d(t,"b",(function(){return M}));var r={grad:.9,turn:360,rad:360/(2*Math.PI)},o=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},a=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},i=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},c=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},s=function(e){return{r:i(e.r,0,255),g:i(e.g,0,255),b:i(e.b,0,255),a:i(e.a)}},l=function(e){return{r:a(e.r),g:a(e.g),b:a(e.b),a:a(e.a,3)}},u=/^#([0-9a-f]{3,8})$/i,d=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},f=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),i=a-Math.min(t,n,r),c=i?a===t?(n-r)/i:a===n?2+(r-t)/i:4+(t-n)/i:0;return{h:60*(c<0?c+6:c),s:a?i/a*100:0,v:a/255*100,a:o}},p=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),i=r*(1-n),c=r*(1-(t-a)*n),s=r*(1-(1-t+a)*n),l=a%6;return{r:255*[r,c,i,i,s,r][l],g:255*[s,r,r,c,i,i][l],b:255*[i,i,s,r,r,c][l],a:o}},b=function(e){return{h:c(e.h),s:i(e.s,0,100),l:i(e.l,0,100),a:i(e.a)}},h=function(e){return{h:a(e.h),s:a(e.s),l:a(e.l),a:a(e.a,3)}},m=function(e){return p((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},v=function(e){return{h:(t=f(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},g=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,O=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,j=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,w={string:[[function(e){var t=u.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?a(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?a(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=O.exec(e)||j.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:s({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=g.exec(e)||y.exec(e);if(!t)return null;var n,o,a=b({h:(n=t[1],o=t[2],void 0===o&&(o="deg"),Number(n)*(r[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return m(a)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,a=e.a,i=void 0===a?1:a;return o(t)&&o(n)&&o(r)?s({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,a=e.a,i=void 0===a?1:a;if(!o(t)||!o(n)||!o(r))return null;var c=b({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return m(c)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,a=e.a,s=void 0===a?1:a;if(!o(t)||!o(n)||!o(r))return null;var l=function(e){return{h:c(e.h),s:i(e.s,0,100),v:i(e.v,0,100),a:i(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(s)});return p(l)},"hsv"]]},x=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},_=function(e){return"string"==typeof e?x(e.trim(),w.string):"object"==typeof e&&null!==e?x(e,w.object):[null,void 0]},E=function(e,t){var n=v(e);return{h:n.h,s:i(n.s+100*t,0,100),l:n.l,a:n.a}},k=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},S=function(e,t){var n=v(e);return{h:n.h,s:n.s,l:i(n.l+100*t,0,100),a:n.a}},C=function(){function e(e){this.parsed=_(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return a(k(this.rgba),2)},e.prototype.isDark=function(){return k(this.rgba)<.5},e.prototype.isLight=function(){return k(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=l(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?d(a(255*o)):"","#"+d(t)+d(n)+d(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return l(this.rgba)},e.prototype.toRgbString=function(){return t=(e=l(this.rgba)).r,n=e.g,r=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+r+", "+o+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,o},e.prototype.toHsl=function(){return h(v(this.rgba))},e.prototype.toHslString=function(){return t=(e=h(v(this.rgba))).h,n=e.s,r=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+o+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,o},e.prototype.toHsv=function(){return e=f(this.rgba),{h:a(e.h),s:a(e.s),v:a(e.v),a:a(e.a,3)};var e},e.prototype.invert=function(){return P({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),P(E(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),P(E(this.rgba,-e))},e.prototype.grayscale=function(){return P(E(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),P(S(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),P(S(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?P({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):a(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=v(this.rgba);return"number"==typeof e?P({h:e,s:t.s,l:t.l,a:t.a}):a(t.h)},e.prototype.isEqual=function(e){return this.toHex()===P(e).toHex()},e}(),P=function(e){return e instanceof C?e:new C(e)},T=[],M=function(e){e.forEach((function(e){T.indexOf(e)<0&&(e(C,w),T.push(e))}))}},faye:function(e,t){e.exports=window.ReactDOM},g56x:function(e,t){e.exports=window.wp.hooks},gCm3:function(e,t,n){"use strict";n.r(t);var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,o=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return r.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));t.default=o},gRFL:function(e,t,n){"use strict";t.a=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}},gZI3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("cDcd"),a=(r=o)&&r.__esModule?r:{default:r};var i=function(e){return a.default.createElement("svg",e,a.default.createElement("path",{d:"M694.4 242.4l249.1 249.1c11 11 11 21 0 32L694.4 772.7c-5 5-10 7-16 7s-11-2-16-7c-11-11-11-21 0-32l210.1-210.1H67.1c-13 0-23-10-23-23s10-23 23-23h805.4L662.4 274.5c-21-21.1 11-53.1 32-32.1z"}))};i.defaultProps={viewBox:"0 0 1000 1000"},t.default=i},gdqT:function(e,t){e.exports=window.wp.a11y},h6xH:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!a.default.isMoment(e)||!a.default.isMoment(t))return!1;var n=e.year(),r=e.month(),o=t.year(),i=t.month(),c=n===o,s=r===i;return c&&s?e.date()<t.date():c?r<i:n<o};var r,o=n("wy2R"),a=(r=o)&&r.__esModule?r:{default:r}},"h9+V":function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n("ek6p"),o=n("eVQB"),a=n("+1VY"),i=n("Exhd");function c(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function s(e,t,n){var r=[],a=Object(o.a)(e,r,n);return r.length<2?n:a+t(r)}var l=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var i in a="",o)o[i]&&i&&(a&&(a+=" "),a+=i);break;default:a=o}a&&(n&&(n+=" "),n+=a)}}return n},u=function(e){var t=Object(a.a)(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var a=Object(i.a)(n,t.registered,void 0);return Object(o.b)(t,a,!1),t.key+"-"+a.name};return{css:n,cx:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return s(t.registered,n,l(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Object(i.a)(n,t.registered);c(t,o)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Object(i.a)(n,t.registered),a="animation-"+o.name;return c(t,{name:o.name,styles:"@keyframes "+a+"{"+o.styles+"}"}),a},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:o.a.bind(null,t.registered),merge:s.bind(null,t.registered,n)}}({key:"css"}),d=(u.flush,u.hydrate,u.cx),f=(u.merge,u.getRegisteredStyles,u.injectGlobal,u.keyframes,u.css,u.sheet,u.cache,n("GRId"));const p=e=>null!=e&&["name","styles"].every(t=>void 0!==e[t]),b=()=>{const e=Object(r.d)();return Object(f.useCallback)((function(){if(null===e)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return d(...n.map(t=>p(t)?(Object(o.b)(e,t,!1),`${e.key}-${t.name}`):t))}),[e])}},hE48:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n("cDcd"),o=n("RDTF"),a=n("IVEb"),i=n("I/A+"),c=n("Ptb8");function s(e){var t;if(!Object(c.a)(e))return!1;var n=Object.getPrototypeOf(e);return null==n||(null===(t=n.constructor)||void 0===t?void 0:t.toString())===Object.toString()}function l(e,t){for(var n={},r={},o=0,a=Object.keys(e);o<a.length;o++){var i=a[o];t.indexOf(i)>=0?n[i]=e[i]:r[i]=e[i]}return[n,r]}function u(e,t){if(void 0===t&&(t=[]),!s(e.state))return l(e,t);var n=l(e,[].concat(t,["state"])),r=n[0],o=n[1],a=r.state,c=Object(i.a)(r,["state"]);return[Object(i.b)(Object(i.b)({},a),c),o]}var d=n("uqqE");function f(e){return"normalizePropsAreEqualInner"===e.name?e:function(t,n){return s(t.state)&&s(n.state)?e(Object(i.b)(Object(i.b)({},t.state),t),Object(i.b)(Object(i.b)({},n.state),n)):e(t,n)}}function p(e){var t,n=e.as,i=e.useHook,c=e.memo,s=e.propsAreEqual,l=void 0===s?null==i?void 0:i.unstable_propsAreEqual:s,p=e.keys,b=void 0===p?(null==i?void 0:i.__keys)||[]:p,h=e.useCreateElement,m=void 0===h?a.a:h,v=function(e,t){var r=e.as,a=void 0===r?n:r,c=Object(o.b)(e,["as"]);if(i){var s,l=u(c,b),d=l[0],f=l[1],p=i(d,Object(o.a)({ref:t},f)),h=p.wrapElement,v=Object(o.b)(p,["wrapElement"]),g=(null===(s=a.render)||void 0===s?void 0:s.__keys)||a.__keys,y=g&&u(c,g)[0],O=y?Object(o.a)(Object(o.a)({},v),y):v,j=m(a,O);return h?h(j):j}return m(a,Object(o.a)({ref:t},c))};return t=v,v=Object(r.forwardRef)(t),c&&(v=function(e,t){return Object(r.memo)(e,t)}(v,l&&f(l))),v.__keys=b,v.unstable_propsAreEqual=f(l||d.a),v}},hWh2:function(e,t,n){"use strict";var r=n("j1Hc")("%TypeError%"),o=n("S3lO"),a=n("nR7C"),i=n("PoQ0");e.exports=function(e,t,n){if("Object"!==i(e))throw new r("Assertion failed: Type(O) is not Object");if(!a(t))throw new r("Assertion failed: IsPropertyKey(P) is not true");var c=o(e,t,n);if(!c)throw new r("unable to create data property");return c}},i2T3:function(e,t,n){"use strict";var r=n("2mql"),o=n.n(r);t.a=function(e,t){return o()(e,t)}},"iB/h":function(e,t,n){"use strict";(function(e){var r=n("GRId"),o=n("YLtl"),a=n("TSYQ"),i=n.n(a),c=n("gdqT"),s=n("l3Sj"),l=(n("Z23Y"),n("kA6J"));t.a=Object(r.forwardRef)((function(t,n){let{className:a,children:u,spokenMessage:d=u,politeness:f="polite",actions:p=[],onRemove:b=o.noop,icon:h=null,explicitDismiss:m=!1,onDismiss:v=o.noop,listRef:g}=t;function y(e){e&&e.preventDefault&&e.preventDefault(),g.current.focus(),v(),b()}v=v||o.noop,function(e,t){const n="string"==typeof e?e:Object(r.renderToString)(e);Object(r.useEffect)(()=>{n&&Object(c.speak)(n,t)},[n,t])}(d,f),Object(r.useEffect)(()=>{const e=setTimeout(()=>{m||(v(),b())},1e4);return()=>clearTimeout(e)},[v,b]);const O=i()(a,"components-snackbar",{"components-snackbar-explicit-dismiss":!!m});p&&p.length>1&&(void 0!==e&&e.env,p=[p[0]]);const j=i()("components-snackbar__content",{"components-snackbar__content-with-icon":!!h});return Object(r.createElement)("div",{ref:n,className:O,onClick:m?o.noop:y,tabIndex:"0",role:m?"":"button",onKeyPress:m?o.noop:y,"aria-label":m?"":Object(s.__)("Dismiss this notice")},Object(r.createElement)("div",{className:j},h&&Object(r.createElement)("div",{className:"components-snackbar__icon"},h),u,p.map((e,t)=>{let{label:n,onClick:o,url:a}=e;return Object(r.createElement)(l.a,{key:t,href:a,variant:"tertiary",onClick:e=>function(e,t){e.stopPropagation(),b(),t&&t(e)}(e,o),className:"components-snackbar__action"},n)}),m&&Object(r.createElement)("span",{role:"button","aria-label":"Dismiss this notice",tabIndex:"0",className:"components-snackbar__dismiss-button",onClick:y,onKeyPress:y},"✕")))}))}).call(this,n("8oxB"))},iClF:function(e,t,n){"use strict";var r=n("GRId");t.a=function(e){let{icon:t,size:n=24,...o}=e;return Object(r.cloneElement)(t,{width:n,height:n,...o})}},iNdV:function(e,t){var n={invalidPredicate:"`predicate` must be a function",invalidPropValidator:"`propValidator` must be a function",requiredCore:"is marked as required",invalidTypeCore:"Invalid input type",predicateFailureCore:"Failed to succeed with predicate",anonymousMessage:"<<anonymous>>",baseInvalidMessage:"Invalid "};function r(e){if("function"!=typeof e)throw new Error(n.invalidPropValidator);var t=e.bind(null,!1,null);return t.isRequired=e.bind(null,!0,null),t.withPredicate=function(t){if("function"!=typeof t)throw new Error(n.invalidPredicate);var r=e.bind(null,!1,t);return r.isRequired=e.bind(null,!0,t),r},t}function o(e,t,r){return new Error("The prop `"+e+"` "+n.requiredCore+" in `"+t+"`, but its value is `"+r+"`.")}e.exports={constructPropValidatorVariations:r,createMomentChecker:function(e,t,a,i){return r((function(r,c,s,l,u,d,f){var p=s[l],b=typeof p,h=function(e,t,n,r){var a=void 0===r,i=null===r;if(e){if(a)return o(n,t,"undefined");if(i)return o(n,t,"null")}return a||i?null:-1}(r,u=u||n.anonymousMessage,f=f||l,p);if(-1!==h)return h;if(t&&!t(p))return new Error(n.invalidTypeCore+": `"+l+"` of type `"+b+"` supplied to `"+u+"`, expected `"+e+"`.");if(!a(p))return new Error(n.baseInvalidMessage+d+" `"+l+"` of type `"+b+"` supplied to `"+u+"`, expected `"+i+"`.");if(c&&!c(p)){var m=c.name||n.anonymousMessage;return new Error(n.baseInvalidMessage+d+" `"+l+"` of type `"+b+"` supplied to `"+u+"`. "+n.predicateFailureCore+" `"+m+"`.")}return null}))},messages:n}},iSWJ:function(e,t,n){"use strict";var r=n("wx14"),o=n("GRId"),a=n("C6yU"),i=n("7Jlx");const c={border:0,clip:"rect(1px, 1px, 1px, 1px)",WebkitClipPath:"inset( 50% )",clipPath:"inset( 50% )",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",wordWrap:"normal"};var s=n("q9zb");const l=Object(i.a)((function(e,t){const{style:n,...i}=Object(a.a)(e,"VisuallyHidden");return Object(o.createElement)(s.a,Object(r.a)({ref:t},i,{style:{...c,...n||{}}}))}),"VisuallyHidden");t.a=l},iYXd:function(e,t,n){"use strict";function r(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function o(e,t){var n;return t||null===t?t:e.currentId||null===e.currentId?e.currentId:null===(n=r(e.items||[]))||void 0===n?void 0:n.id}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}))},ib7Q:function(e,t,n){"use strict";var r=n("xoj2"),o=n("82c2");e.exports=function(){var e=r();return o(Object,{values:e},{values:function(){return Object.values!==e}}),e}},ixyq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return 0;var o="width"===t?"Left":"Top",a="width"===t?"Right":"Bottom",i=!n||r?window.getComputedStyle(e):null,c=e.offsetWidth,s=e.offsetHeight,l="width"===t?c:s;n||(l-=parseFloat(i["padding"+o])+parseFloat(i["padding"+a])+parseFloat(i["border"+o+"Width"])+parseFloat(i["border"+a+"Width"]));r&&(l+=parseFloat(i["margin"+o])+parseFloat(i["margin"+a]));return l}},j1Hc:function(e,t,n){"use strict";var r=SyntaxError,o=Function,a=TypeError,i=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var s=function(){throw new a},l=c?function(){try{return s}catch(e){try{return c(arguments,"callee").get}catch(e){return s}}}():s,u=n("HyUg")(),d=Object.getPrototypeOf||function(e){return e.__proto__},f={},p="undefined"==typeof Uint8Array?void 0:d(Uint8Array),b={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":u?d([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":f,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u?d(d([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u?d((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&u?d((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u?d(""[Symbol.iterator]()):void 0,"%Symbol%":u?Symbol:void 0,"%SyntaxError%":r,"%ThrowTypeError%":l,"%TypedArray%":p,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},h={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},m=n("D3zA"),v=n("oNNP"),g=m.call(Function.call,Array.prototype.concat),y=m.call(Function.apply,Array.prototype.splice),O=m.call(Function.call,String.prototype.replace),j=m.call(Function.call,String.prototype.slice),w=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,x=/\\(\\)?/g,_=function(e){var t=j(e,0,1),n=j(e,-1);if("%"===t&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new r("invalid intrinsic syntax, expected opening `%`");var o=[];return O(e,w,(function(e,t,n,r){o[o.length]=n?O(r,x,"$1"):t||e})),o},E=function(e,t){var n,o=e;if(v(h,o)&&(o="%"+(n=h[o])[0]+"%"),v(b,o)){var c=b[o];if(c===f&&(c=function e(t){var n;if("%AsyncFunction%"===t)n=i("async function () {}");else if("%GeneratorFunction%"===t)n=i("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=i("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(n=d(o.prototype))}return b[t]=n,n}(o)),void 0===c&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:c}}throw new r("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');var n=_(e),o=n.length>0?n[0]:"",i=E("%"+o+"%",t),s=i.name,l=i.value,u=!1,d=i.alias;d&&(o=d[0],y(n,g([0,1],d)));for(var f=1,p=!0;f<n.length;f+=1){var h=n[f],m=j(h,0,1),O=j(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===O||"'"===O||"`"===O)&&m!==O)throw new r("property names with quotes must have matching quotes");if("constructor"!==h&&p||(u=!0),v(b,s="%"+(o+="."+h)+"%"))l=b[s];else if(null!=l){if(!(h in l)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&f+1>=n.length){var w=c(l,h);l=(p=!!w)&&"get"in w&&!("originalValue"in w.get)?w.get:l[h]}else p=v(l,h),l=l[h];p&&!u&&(b[s]=l)}}return l}},jB5C:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function a(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function i(e){return a(e)}function c(e){return a(e,!0)}function s(e){var t=function(e){var t,n=void 0,r=void 0,o=e.ownerDocument,a=o.body,i=o&&o.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=i.clientLeft||a.clientLeft||0,top:r-=i.clientTop||a.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=i(r),t.top+=c(r),t}var l=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),u=/^(top|right|bottom|left)$/,d="left";var f=void 0;function p(e,t){for(var n=0;n<e.length;n++)t(e[n])}function b(e){return"border-box"===f(e,"boxSizing")}"undefined"!=typeof window&&(f=window.getComputedStyle?function(e,t,n){var r="",o=e.ownerDocument,a=n||o.defaultView.getComputedStyle(e,null);return a&&(r=a.getPropertyValue(t)||a[t]),r}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(l.test(n)&&!u.test(t)){var r=e.style,o=r[d],a=e.runtimeStyle[d];e.runtimeStyle[d]=e.currentStyle[d],r[d]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[d]=o,e.runtimeStyle[d]=a}return""===n?"auto":n});var h=["margin","border","padding"];function m(e,t,n){var r={},o=e.style,a=void 0;for(a in t)t.hasOwnProperty(a)&&(r[a]=o[a],o[a]=t[a]);for(a in n.call(e),t)t.hasOwnProperty(a)&&(o[a]=r[a])}function v(e,t,n){var r=0,o=void 0,a=void 0,i=void 0;for(a=0;a<t.length;a++)if(o=t[a])for(i=0;i<n.length;i++){var c=void 0;c="border"===o?o+n[i]+"Width":o+n[i],r+=parseFloat(f(e,c))||0}return r}function g(e){return null!=e&&e==e.window}var y={};function O(e,t,n){if(g(e))return"width"===t?y.viewportWidth(e):y.viewportHeight(e);if(9===e.nodeType)return"width"===t?y.docWidth(e):y.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?e.offsetWidth:e.offsetHeight,a=(f(e),b(e)),i=0;(null==o||o<=0)&&(o=void 0,(null==(i=f(e,t))||Number(i)<0)&&(i=e.style[t]||0),i=parseFloat(i)||0),void 0===n&&(n=a?1:-1);var c=void 0!==o||a,s=o||i;if(-1===n)return c?s-v(e,["border","padding"],r):i;if(c){var l=2===n?-v(e,["border"],r):v(e,["margin"],r);return s+(1===n?0:l)}return i+v(e,h.slice(n),r)}p(["Width","Height"],(function(e){y["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],y["viewport"+e](n))},y["viewport"+e]=function(t){var n="client"+e,r=t.document,o=r.body,a=r.documentElement[n];return"CSS1Compat"===r.compatMode&&a||o&&o[n]||a}}));var j={position:"absolute",visibility:"hidden",display:"block"};function w(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=O.apply(void 0,n):m(e,j,(function(){t=O.apply(void 0,n)})),t}function x(e,t,n){var r=n;if("object"!==(void 0===t?"undefined":o(t)))return void 0!==r?("number"==typeof r&&(r+="px"),void(e.style[t]=r)):f(e,t);for(var a in t)t.hasOwnProperty(a)&&x(e,a,t[a])}p(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);y["outer"+t]=function(t,n){return t&&w(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];y[e]=function(t,r){if(void 0===r)return t&&w(t,e,-1);if(t){f(t);return b(t)&&(r+=v(t,["padding","border"],n)),x(t,e,r)}}})),e.exports=r({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return s(e);!function(e,t){"static"===x(e,"position")&&(e.style.position="relative");var n=s(e),r={},o=void 0,a=void 0;for(a in t)t.hasOwnProperty(a)&&(o=parseFloat(x(e,a))||0,r[a]=o+t[a]-n[a]);x(e,r)}(e,t)},isWindow:g,each:p,css:x,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(g(e)){if(void 0===t)return i(e);window.scrollTo(t,c(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(g(e)){if(void 0===t)return c(e);window.scrollTo(i(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},y)},jXQH:function(e,t,n){var r=n("TO8r"),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},jenk:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=r.default.isMoment(e)?e:(0,o.default)(e,t);return n?n.format(a.ISO_MONTH_FORMAT):null};var r=i(n("wy2R")),o=i(n("WmS1")),a=n("Fv1B");function i(e){return e&&e.__esModule?e:{default:e}}},k2cL:function(e,t,n){"use strict";function r(e){return e.target===e.currentTarget}n.d(t,"a",(function(){return r}))},k8OV:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("GRId");let o=0;function a(e){const t=document.scrollingElement||document.body;e&&(o=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=o)}let i=0;function c(){return Object(r.useEffect)(()=>(0===i&&a(!0),++i,()=>{1===i&&a(!1),--i}),[]),null}},kA6J:function(e,t,n){"use strict";var r=n("wx14"),o=n("GRId"),a=n("TSYQ"),i=n.n(a),c=n("YLtl"),s=n("NMb1"),l=n.n(s),u=n("K9lf"),d=n("W/NR"),f=n("9VDH"),p=n("iSWJ");const b=["onMouseDown","onClick"];t.a=Object(o.forwardRef)((function e(t,n){const{href:a,target:s,isSmall:h,isPressed:m,isBusy:v,isDestructive:g,className:y,disabled:O,icon:j,iconPosition:w="left",iconSize:x,showTooltip:_,tooltipPosition:E,shortcut:k,label:S,children:C,text:P,variant:T,__experimentalIsFocusable:M,describedBy:D,...I}=function(e){let{isDefault:t,isPrimary:n,isSecondary:r,isTertiary:o,isLink:a,variant:i,...c}=e,s=i;var u,d,f,p,b;return n&&(null!==(u=s)&&void 0!==u||(s="primary")),o&&(null!==(d=s)&&void 0!==d||(s="tertiary")),r&&(null!==(f=s)&&void 0!==f||(s="secondary")),t&&(l()("Button isDefault prop",{since:"5.4",alternative:'variant="secondary"'}),null!==(p=s)&&void 0!==p||(s="secondary")),a&&(null!==(b=s)&&void 0!==b||(s="link")),{...c,variant:s}}(t),R=Object(u.useInstanceId)(e,"components-button__description"),A=i()("components-button",y,{"is-secondary":"secondary"===T,"is-primary":"primary"===T,"is-small":h,"is-tertiary":"tertiary"===T,"is-pressed":m,"is-busy":v,"is-link":"link"===T,"is-destructive":g,"has-text":!!j&&!!C,"has-icon":!!j}),N=O&&!M,L=void 0===a||N?"button":"a",F="a"===L?{href:a,target:s}:{type:"button",disabled:N,"aria-pressed":m};if(O&&M){F["aria-disabled"]=!0;for(const e of b)I[e]=e=>{e.stopPropagation(),e.preventDefault()}}const z=!N&&(_&&S||k||!!S&&(!C||Object(c.isArray)(C)&&!C.length)&&!1!==_),B=D?R:null,H=I["aria-describedby"]||B,V=Object(o.createElement)(L,Object(r.a)({},F,I,{className:A,"aria-label":I["aria-label"]||S,"aria-describedby":H,ref:n}),j&&"left"===w&&Object(o.createElement)(f.a,{icon:j,size:x}),P&&Object(o.createElement)(o.Fragment,null,P),j&&"right"===w&&Object(o.createElement)(f.a,{icon:j,size:x}),C);return z?Object(o.createElement)(o.Fragment,null,Object(o.createElement)(d.a,{text:D||S,shortcut:k,position:E},V),D&&Object(o.createElement)(p.a,null,Object(o.createElement)("span",{id:B},D))):Object(o.createElement)(o.Fragment,null,V,D&&Object(o.createElement)(p.a,null,Object(o.createElement)("span",{id:B},D)))}))},kFtd:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.GLOBAL_CACHE_KEY="reactWithStylesInterfaceCSS",t.MAX_SPECIFICITY=20},kTC8:function(e,t,n){"use strict";n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return w}));var r=n("BZp5"),o=n("hE48"),a=n("qdes"),i=n("cDcd"),c=n("aU41"),s=(n("KA1K"),n("eNtd")),l=n("k2cL"),u=n("PcHe"),d=n("Vq1w"),f=n("JLmN"),p=n("ouKs"),b=n("iYXd"),h=n("TFuP"),m=n("Mih7"),v=n("4po3"),g=n("AClM"),y=n("ym77"),O=n("0HL0");function j(e){return e.querySelector("[data-composite-item-widget]")}var w=Object(a.a)({name:"CompositeItem",compose:[f.a,y.a],keys:h.c,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return f.a.unstable_propsAreEqual(e,t);var n=e.currentId,o=e.unstable_moves,a=Object(r.a)(e,["currentId","unstable_moves"]),i=t.currentId,c=t.unstable_moves,s=Object(r.a)(t,["currentId","unstable_moves"]);if(i!==n){if(t.id===i||t.id===n)return!1}else if(o!==c)return!1;return f.a.unstable_propsAreEqual(a,s)},useOptions:function(e){return Object(r.b)(Object(r.b)({},e),{},{id:e.id,currentId:Object(b.b)(e),unstable_clickOnSpace:!e.unstable_hasActiveWidget&&e.unstable_clickOnSpace})},useProps:function(e,t){var n,o=t.ref,a=t.tabIndex,f=void 0===a?0:a,b=t.onMouseDown,h=t.onFocus,y=t.onBlurCapture,w=t.onKeyDown,x=t.onClick,_=Object(r.a)(t,["ref","tabIndex","onMouseDown","onFocus","onBlurCapture","onKeyDown","onClick"]),E=Object(i.useRef)(null),k=e.id,S=e.disabled&&!e.focusable,C=e.currentId===k,P=Object(s.a)(C),T=Object(i.useRef)(!1),M=function(e){return Object(i.useMemo)((function(){var t;return null===(t=e.items)||void 0===t?void 0:t.find((function(t){return e.id&&t.id===e.id}))}),[e.items,e.id])}(e),D=Object(s.a)(b),I=Object(s.a)(h),R=Object(s.a)(y),A=Object(s.a)(w),N=Object(s.a)(x),L=!e.unstable_virtual&&!e.unstable_hasActiveWidget&&C||!(null!==(n=e.items)&&void 0!==n&&n.length);Object(i.useEffect)((function(){var t;if(k)return null===(t=e.registerItem)||void 0===t||t.call(e,{id:k,ref:E,disabled:!!S}),function(){var t;null===(t=e.unregisterItem)||void 0===t||t.call(e,k)}}),[k,S,e.registerItem,e.unregisterItem]),Object(i.useEffect)((function(){var t=E.current;t&&e.unstable_moves&&P.current&&Object(m.c)(t)}),[e.unstable_moves]);var F=Object(i.useCallback)((function(e){var t;null===(t=D.current)||void 0===t||t.call(D,e),Object(m.b)(e.currentTarget,!0)}),[]),z=Object(i.useCallback)((function(t){var n,o,a=Object(m.a)(t.currentTarget);if(Object(m.b)(t.currentTarget,!1),null===(n=I.current)||void 0===n||n.call(I,t),!t.defaultPrevented&&!Object(d.a)(t)&&k&&!function(e,t){if(Object(l.a)(e))return!1;for(var n,o=Object(r.c)(t);!(n=o()).done;){if(n.value.ref.current===e.target)return!0}return!1}(t,e.items)&&(null===(o=e.setCurrentId)||void 0===o||o.call(e,k),a&&e.unstable_virtual&&e.baseId&&Object(l.a)(t))){var i=t.target,c=Object(p.a)(i).getElementById(e.baseId);c&&(T.current=!0,Object(g.a)(c))}}),[k,e.items,e.setCurrentId,e.unstable_virtual,e.baseId]),B=Object(i.useCallback)((function(t){var n;null===(n=R.current)||void 0===n||n.call(R,t),t.defaultPrevented||e.unstable_virtual&&T.current&&(T.current=!1,t.preventDefault(),t.stopPropagation())}),[e.unstable_virtual]),H=Object(i.useCallback)((function(t){var n;if(Object(l.a)(t)){var r="horizontal"!==e.orientation,o="vertical"!==e.orientation,a=!(null==M||!M.groupId),i={ArrowUp:(a||r)&&e.up,ArrowRight:(a||o)&&e.next,ArrowDown:(a||r)&&e.down,ArrowLeft:(a||o)&&e.previous,Home:function(){var n,r;!a||t.ctrlKey?null===(n=e.first)||void 0===n||n.call(e):null===(r=e.previous)||void 0===r||r.call(e,!0)},End:function(){var n,r;!a||t.ctrlKey?null===(n=e.last)||void 0===n||n.call(e):null===(r=e.next)||void 0===r||r.call(e,!0)},PageUp:function(){var t,n;a?null===(t=e.up)||void 0===t||t.call(e,!0):null===(n=e.first)||void 0===n||n.call(e)},PageDown:function(){var t,n;a?null===(t=e.down)||void 0===t||t.call(e,!0):null===(n=e.last)||void 0===n||n.call(e)}}[t.key];if(i)return t.preventDefault(),void i();if(null===(n=A.current)||void 0===n||n.call(A,t),!t.defaultPrevented)if(1===t.key.length&&" "!==t.key){var c=j(t.currentTarget);c&&Object(v.a)(c)&&(c.focus(),Object(O.a)(c,""))}else if("Delete"===t.key||"Backspace"===t.key){var s=j(t.currentTarget);s&&Object(v.a)(s)&&(t.preventDefault(),Object(O.a)(s,""))}}}),[e.orientation,M,e.up,e.next,e.down,e.previous,e.first,e.last]),V=Object(i.useCallback)((function(e){var t;if(null===(t=N.current)||void 0===t||t.call(N,e),!e.defaultPrevented){var n=j(e.currentTarget);n&&!Object(u.a)(n)&&n.focus()}}),[]);return Object(r.b)({ref:Object(c.a)(E,o),id:k,tabIndex:L?f:-1,"aria-selected":!(!e.unstable_virtual||!C)||void 0,onMouseDown:F,onFocus:z,onBlurCapture:B,onKeyDown:H,onClick:V},_)}}),x=Object(o.a)({as:"button",memo:!0,useHook:w})},khzz:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("ouKs");function o(e,t,n){if("function"==typeof Event)return new Event(t,n);var o=Object(r.a)(e).createEvent("Event");return o.initEvent(t,null==n?void 0:n.bubbles,null==n?void 0:n.cancelable),o}},knm9:function(e,t,n){"use strict";var r=n("j1Hc")("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},kqkJ:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return i}));var r=n("9Zbq"),o=(n("APjL"),n("Nym8"),"input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])");function a(e){return Object(r.a)(e,o)&&function(e){var t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}(e)}function i(e){return a(e)&&!function(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}(e)}function c(e,t){var n=Array.from(e.querySelectorAll(o)),r=n.filter(i);return i(e)&&r.unshift(e),!r.length&&t?n:r}function s(e,t){return c(e,t)[0]||null}function l(e,t){var n=c(e,t);return n[n.length-1]||null}},l3Sj:function(e,t){e.exports=window.wp.i18n},laOf:function(e,t,n){"use strict";var r=n("j1Hc")("%TypeError%");e.exports=function(e,t){if(null==e)throw new r(t||"Cannot call method on "+e);return e}},lzPt:function(e,t,n){e.exports=n("VDVV").default},m2ax:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return 7*e+2*t+1}},mMiH:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=E(n("Koq/")),i=E(n("cDcd")),c=E(n("17x9")),s=E(n("YZDV")),l=E(n("XGBb")),u=n("Hsqg"),d=n("TG4+"),f=E(n("wy2R")),p=n("vV+G"),b=E(n("yc2e")),h=E(n("2Q00")),m=E(n("N3k4")),v=E(n("ixyq")),g=E(n("F7ZS")),y=E(n("pRvc")),O=E(n("pYxT")),j=E(n("J7JS")),w=E(n("aE6U")),x=E(n("2S2E")),_=n("Fv1B");function E(e){return e&&e.__esModule?e:{default:e}}var k=(0,u.forbidExtraProps)((0,a.default)({},d.withStylesPropTypes,{month:l.default.momentObj,horizontalMonthPadding:u.nonNegativeInteger,isVisible:c.default.bool,enableOutsideDays:c.default.bool,modifiers:c.default.objectOf(j.default),orientation:w.default,daySize:u.nonNegativeInteger,onDayClick:c.default.func,onDayMouseEnter:c.default.func,onDayMouseLeave:c.default.func,onMonthSelect:c.default.func,onYearSelect:c.default.func,renderMonthText:(0,u.mutuallyExclusiveProps)(c.default.func,"renderMonthText","renderMonthElement"),renderCalendarDay:c.default.func,renderDayContents:c.default.func,renderMonthElement:(0,u.mutuallyExclusiveProps)(c.default.func,"renderMonthText","renderMonthElement"),firstDayOfWeek:x.default,setMonthTitleHeight:c.default.func,verticalBorderSpacing:u.nonNegativeInteger,focusedDate:l.default.momentObj,isFocused:c.default.bool,monthFormat:c.default.string,phrases:c.default.shape((0,b.default)(p.CalendarDayPhrases)),dayAriaLabelFormat:c.default.string})),S={month:(0,f.default)(),horizontalMonthPadding:13,isVisible:!0,enableOutsideDays:!1,modifiers:{},orientation:_.HORIZONTAL_ORIENTATION,daySize:_.DAY_SIZE,onDayClick:function(){},onDayMouseEnter:function(){},onDayMouseLeave:function(){},onMonthSelect:function(){},onYearSelect:function(){},renderMonthText:null,renderCalendarDay:function(e){return i.default.createElement(m.default,e)},renderDayContents:null,renderMonthElement:null,firstDayOfWeek:null,setMonthTitleHeight:null,focusedDate:null,isFocused:!1,monthFormat:"MMMM YYYY",phrases:p.CalendarDayPhrases,dayAriaLabelFormat:void 0,verticalBorderSpacing:void 0},C=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={weeks:(0,g.default)(e.month,e.enableOutsideDays,null==e.firstDayOfWeek?f.default.localeData().firstDayOfWeek():e.firstDayOfWeek)},n.setCaptionRef=n.setCaptionRef.bind(n),n.setMonthTitleHeight=n.setMonthTitleHeight.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.setMonthTitleHeightTimeout=setTimeout(this.setMonthTitleHeight,0)}},{key:"componentWillReceiveProps",value:function(e){var t=e.month,n=e.enableOutsideDays,r=e.firstDayOfWeek,o=this.props,a=o.month,i=o.enableOutsideDays,c=o.firstDayOfWeek;t.isSame(a)&&n===i&&r===c||this.setState({weeks:(0,g.default)(t,n,null==r?f.default.localeData().firstDayOfWeek():r)})}},{key:"shouldComponentUpdate",value:function(e,t){return(0,s.default)(this,e,t)}},{key:"componentWillUnmount",value:function(){this.setMonthTitleHeightTimeout&&clearTimeout(this.setMonthTitleHeightTimeout)}},{key:"setMonthTitleHeight",value:function(){var e=this.props.setMonthTitleHeight;e&&e((0,v.default)(this.captionRef,"height",!0,!0))}},{key:"setCaptionRef",value:function(e){this.captionRef=e}},{key:"render",value:function(){var e=this.props,t=e.dayAriaLabelFormat,n=e.daySize,o=e.focusedDate,a=e.horizontalMonthPadding,c=e.isFocused,s=e.isVisible,l=e.modifiers,u=e.month,f=e.monthFormat,p=e.onDayClick,b=e.onDayMouseEnter,m=e.onDayMouseLeave,v=e.onMonthSelect,g=e.onYearSelect,j=e.orientation,w=e.phrases,x=e.renderCalendarDay,E=e.renderDayContents,k=e.renderMonthElement,S=e.renderMonthText,C=e.styles,P=e.verticalBorderSpacing,T=this.state.weeks,M=S?S(u):u.format(f),D=j===_.VERTICAL_SCROLLABLE;return i.default.createElement("div",r({},(0,d.css)(C.CalendarMonth,{padding:"0 "+String(a)+"px"}),{"data-visible":s}),i.default.createElement("div",r({ref:this.setCaptionRef},(0,d.css)(C.CalendarMonth_caption,D&&C.CalendarMonth_caption__verticalScrollable)),k?k({month:u,onMonthSelect:v,onYearSelect:g}):i.default.createElement("strong",null,M)),i.default.createElement("table",r({},(0,d.css)(!P&&C.CalendarMonth_table,P&&C.CalendarMonth_verticalSpacing,P&&{borderSpacing:"0px "+String(P)+"px"}),{role:"presentation"}),i.default.createElement("tbody",null,T.map((function(e,r){return i.default.createElement(h.default,{key:r},e.map((function(e,r){return x({key:r,day:e,daySize:n,isOutsideDay:!e||e.month()!==u.month(),tabIndex:s&&(0,y.default)(e,o)?0:-1,isFocused:c,onDayMouseEnter:b,onDayMouseLeave:m,onDayClick:p,renderDayContents:E,phrases:w,modifiers:l[(0,O.default)(e)],ariaLabelFormat:t})})))})))))}}]),t}(i.default.Component);C.propTypes=k,C.defaultProps=S,t.default=(0,d.withStyles)((function(e){var t=e.reactDates,n=t.color,r=t.font,o=t.spacing;return{CalendarMonth:{background:n.background,textAlign:"center",verticalAlign:"top",userSelect:"none"},CalendarMonth_table:{borderCollapse:"collapse",borderSpacing:0},CalendarMonth_verticalSpacing:{borderCollapse:"separate"},CalendarMonth_caption:{color:n.text,fontSize:r.captionSize,textAlign:"center",paddingTop:o.captionPaddingTop,paddingBottom:o.captionPaddingBottom,captionSide:"initial"},CalendarMonth_caption__verticalScrollable:{paddingTop:12,paddingBottom:7}}}))(C)},mi6C:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"}));t.a=a},mjVI:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r=["baseId","unstable_idCountRef","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","setBaseId","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget"],o=r},n1Y7:function(e,t,n){"use strict";var r=n("82c2"),o=n("nRDI"),a=n("5yQQ"),i=a(),c=function(e,t){return i.apply(e,[t])};r(c,{getPolyfill:a,implementation:o,shim:n("Gn0q")}),e.exports=c},nKkb:function(e,t,n){"use strict";var r=n("j1Hc")("%Math.abs%");e.exports=function(e){return r(e)}},nLTY:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(e.length>0?String(e)+"__":"")+String(t)}},nR7C:function(e,t,n){"use strict";e.exports=function(e){return"string"==typeof e||"symbol"==typeof e}},nRDI:function(e,t,n){"use strict";e.exports=function(e){if(arguments.length<1)throw new TypeError("1 argument is required");if("object"!=typeof e)throw new TypeError("Argument 1 (”other“) to Node.contains must be an instance of Node");var t=e;do{if(this===t)return!0;t&&(t=t.parentNode)}while(t);return!1}},nmnc:function(e,t,n){var r=n("Kz5y").Symbol;e.exports=r},oNNP:function(e,t,n){"use strict";var r=n("D3zA");e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},oOcr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof e)return e;if("function"==typeof e)return e(t);return""}},oR9Z:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("17x9"),a=(r=o)&&r.__esModule?r:{default:r},i=n("Fv1B");t.default=a.default.oneOf([i.INFO_POSITION_TOP,i.INFO_POSITION_BOTTOM,i.INFO_POSITION_BEFORE,i.INFO_POSITION_AFTER])},"oXO/":function(e,t,n){"use strict";var r=n("wx14"),o=n("GRId"),a=n("TSYQ"),i=n.n(a),c=n("1CF3"),s=n("K9lf"),l=n("w95h"),u=n("l3Sj");function d(e,t,n,r,o,a,i,c,s){const{width:l}=t;"left"===n&&Object(u.isRTL)()?n="right":"right"===n&&Object(u.isRTL)()&&(n="left"),"left"===r&&Object(u.isRTL)()?r="right":"right"===r&&Object(u.isRTL)()&&(r="left");const d=Math.round(e.left+e.width/2),f={popoverLeft:d,contentWidth:(d-l/2>0?l/2:d)+(d+l/2>window.innerWidth?window.innerWidth-d:l/2)};let p=e.left;"right"===r?p=e.right:"middle"===a||s||(p=d);let b=e.right;"left"===r?b=e.left:"middle"===a||s||(b=d);const h={popoverLeft:p,contentWidth:p-l>0?l:p},m={popoverLeft:b,contentWidth:b+l>window.innerWidth?window.innerWidth-b:l};let v,g=n,y=null;if(!o&&!c)if("center"===n&&f.contentWidth===l)g="center";else if("left"===n&&h.contentWidth===l)g="left";else if("right"===n&&m.contentWidth===l)g="right";else{g=h.contentWidth>m.contentWidth?"left":"right";const e="left"===g?h.contentWidth:m.contentWidth;l>window.innerWidth&&(y=window.innerWidth),e!==l&&(g="center",f.popoverLeft=window.innerWidth/2)}return v="center"===g?f.popoverLeft:"left"===g?h.popoverLeft:m.popoverLeft,i&&(v=Math.min(v,i.offsetLeft+i.offsetWidth-l),Object(u.isRTL)()||(v=Math.max(v,0))),{xAxis:g,popoverLeft:v,contentWidth:y}}function f(e,t,n,r,o,a,i,c,s){const{height:l}=t;if(o){const t=o.getBoundingClientRect(),r=t.top+l-i,a=t.bottom-l-i;if(e.top<=r){if(s){if(!(l+10<s.scrollTop+e.top))return{yAxis:"bottom",popoverTop:Math.min(e.bottom,a)}}return{yAxis:n,popoverTop:Math.min(e.bottom,r)}}}let u=e.top+e.height/2;"bottom"===r?u=e.bottom:"top"===r&&(u=e.top);const d={popoverTop:u,contentHeight:(u-l/2>0?l/2:u)+(u+l/2>window.innerHeight?window.innerHeight-u:l/2)},f={popoverTop:e.top,contentHeight:e.top-10-l>0?l:e.top-10},p={popoverTop:e.bottom,contentHeight:e.bottom+10+l>window.innerHeight?window.innerHeight-10-e.bottom:l};let b,h=n,m=null;if(!o&&!c)if("middle"===n&&d.contentHeight===l)h="middle";else if("top"===n&&f.contentHeight===l)h="top";else if("bottom"===n&&p.contentHeight===l)h="bottom";else{h=f.contentHeight>p.contentHeight?"top":"bottom";const e="top"===h?f.contentHeight:p.contentHeight;m=e!==l?e:null}return b="middle"===h?d.popoverTop:"top"===h?f.popoverTop:p.popoverTop,{yAxis:h,popoverTop:b,contentHeight:m}}function p(e,t,n){const{defaultView:r}=t,{frameElement:o}=r;if(!o||t===n.ownerDocument)return e;const a=o.getBoundingClientRect();return new r.DOMRect(e.left+a.left,e.top+a.top,e.width,e.height)}var b=n("kA6J"),h=n("k8OV"),m=n("+WFq"),v=n("dSD1"),g=n("L8Kx");const y="Popover",O=Object(o.createContext)();function j(e,t){const{paddingTop:n,paddingBottom:r,paddingLeft:o,paddingRight:a}=(i=t).ownerDocument.defaultView.getComputedStyle(i);var i;const c=n?parseInt(n,10):0,s=r?parseInt(r,10):0,l=o?parseInt(o,10):0,u=a?parseInt(a,10):0;return{x:e.left+l,y:e.top+c,width:e.width-l-u,height:e.height-c-s,left:e.left+l,right:e.right-u,top:e.top+c,bottom:e.bottom-s}}function w(e,t,n){n?e.getAttribute(t)!==n&&e.setAttribute(t,n):e.hasAttribute(t)&&e.removeAttribute(t)}function x(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==n&&(e.style[t]=n)}function _(e,t,n){n?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}const E=Object(o.forwardRef)((e,t)=>{let{headerTitle:n,onClose:a,children:u,className:E,noArrow:k=!0,isAlternate:S,position:C="bottom right",range:P,focusOnMount:T="firstElement",anchorRef:M,shouldAnchorIncludePadding:D,anchorRect:I,getAnchorRect:R,expandOnMobile:A,animate:N=!0,onFocusOutside:L,__unstableStickyBoundaryElement:F,__unstableSlotName:z=y,__unstableObserveElement:B,__unstableBoundaryParent:H,__unstableForcePosition:V,__unstableForceXAlignment:W,__unstableEditorCanvasWrapper:U,...K}=e;const G=Object(o.useRef)(null),$=Object(o.useRef)(null),q=Object(o.useRef)(),Y=Object(s.useViewportMatch)("medium","<"),[X,Z]=Object(o.useState)(),J=Object(o.useContext)(O)||z,Q=Object(m.a)(J),ee=A&&Y,[te,ne]=Object(s.useResizeObserver)();k=ee||k,Object(o.useLayoutEffect)(()=>{if(ee)return _(q.current,"is-without-arrow",k),_(q.current,"is-alternate",S),w(q.current,"data-x-axis"),w(q.current,"data-y-axis"),x(q.current,"top"),x(q.current,"left"),x($.current,"maxHeight"),void x($.current,"maxWidth");const e=()=>{if(!q.current||!$.current)return;let e=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;if(t)return t;if(n){if(!e.current)return;const t=n(e.current);return p(t,t.ownerDocument||e.current.ownerDocument,a)}if(!1!==r){if(!(r&&window.Range&&window.Element&&window.DOMRect))return;if("function"==typeof(null==r?void 0:r.cloneRange))return p(Object(c.getRectangleFromRange)(r),r.endContainer.ownerDocument,a);if("function"==typeof(null==r?void 0:r.getBoundingClientRect)){const e=p(r.getBoundingClientRect(),r.ownerDocument,a);return o?e:j(e,r)}const{top:e,bottom:t}=r,n=e.getBoundingClientRect(),i=t.getBoundingClientRect(),s=p(new window.DOMRect(n.left,n.top,n.width,i.bottom-n.top),e.ownerDocument,a);return o?s:j(s,r)}if(!e.current)return;const{parentNode:i}=e.current,s=p(i.getBoundingClientRect(),i.ownerDocument,a);return o?s:j(s,i)}(G,I,R,M,D,q.current);if(!e)return;const{offsetParent:t,ownerDocument:n}=q.current;let r,o=0;if(t&&t!==n.body){const n=t.getBoundingClientRect();o=n.top,e=new window.DOMRect(e.left-n.left,e.top-n.top,e.width,e.height)}H&&(r=q.current.parentElement);const a=ne.height?ne:$.current.getBoundingClientRect(),{popoverTop:i,popoverLeft:s,xAxis:l,yAxis:u,contentHeight:b,contentWidth:h}=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",r=arguments.length>3?arguments[3]:void 0,o=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,i=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,s=arguments.length>9?arguments[9]:void 0;const[l,u="center",p]=n.split(" "),b=f(e,t,l,p,r,0,o,i,s),h=d(e,t,u,p,r,b.yAxis,a,i,c);return{...h,...b}}(e,a,C,F,q.current,o,r,V,W,U);"number"==typeof i&&"number"==typeof s&&(x(q.current,"top",i+"px"),x(q.current,"left",s+"px")),_(q.current,"is-without-arrow",k||"center"===l&&"middle"===u),_(q.current,"is-alternate",S),w(q.current,"data-x-axis",l),w(q.current,"data-y-axis",u),x($.current,"maxHeight","number"==typeof b?b+"px":""),x($.current,"maxWidth","number"==typeof h?h+"px":"");Z(({left:"right",right:"left"}[l]||"center")+" "+({top:"bottom",bottom:"top"}[u]||"middle"))};e();const{ownerDocument:t}=q.current,{defaultView:n}=t,r=n.setInterval(e,500);let o;const a=()=>{n.cancelAnimationFrame(o),o=n.requestAnimationFrame(e)};n.addEventListener("click",a),n.addEventListener("resize",e),n.addEventListener("scroll",e,!0);const i=function(e){if(e)return e.endContainer?e.endContainer.ownerDocument:e.top?e.top.ownerDocument:e.ownerDocument}(M);let s;return i&&i!==t&&(i.defaultView.addEventListener("resize",e),i.defaultView.addEventListener("scroll",e,!0)),B&&(s=new n.MutationObserver(e),s.observe(B,{attributes:!0})),()=>{var c,l;(n.clearInterval(r),n.removeEventListener("resize",e),n.removeEventListener("scroll",e,!0),n.removeEventListener("click",a),n.cancelAnimationFrame(o),i&&i!==t)&&(null===(c=i.defaultView)||void 0===c||c.removeEventListener("resize",e),null===(l=i.defaultView)||void 0===l||l.removeEventListener("scroll",e,!0));s&&s.disconnect()}},[ee,I,R,M,D,C,ne,F,B,H]);const re=(e,t)=>{"focus-outside"===e&&L?L(t):a&&a()},[oe,ae]=Object(s.__experimentalUseDialog)({focusOnMount:T,__unstableOnClose:re,onClose:re}),ie=Object(s.useMergeRefs)([q,oe,t]),ce=Boolean(N&&X)&&Object(g.b)({type:"appear",origin:X});let se=Object(o.createElement)("div",Object(r.a)({className:i()("components-popover",E,ce,{"is-expanded":ee,"is-without-arrow":k,"is-alternate":S})},K,{ref:ie},ae,{tabIndex:"-1"}),ee&&Object(o.createElement)(h.a,null),ee&&Object(o.createElement)("div",{className:"components-popover__header"},Object(o.createElement)("span",{className:"components-popover__header-title"},n),Object(o.createElement)(b.a,{className:"components-popover__close",icon:l.a,onClick:a})),Object(o.createElement)("div",{ref:$,className:"components-popover__content"},Object(o.createElement)("div",{style:{position:"relative"}},te,u)));return Q.ref&&(se=Object(o.createElement)(v.a,{name:J},se)),M||I?se:Object(o.createElement)("span",{ref:G},se)});E.Slot=Object(o.forwardRef)((function(e,t){let{name:n=y}=e;return Object(o.createElement)(v.c,{bubblesVirtually:!0,name:n,className:"popover-slot",ref:t})})),E.__unstableSlotNameProvider=O.Provider;t.a=E},ouKs:function(e,t,n){"use strict";function r(e){return e?e.ownerDocument||e:document}n.d(t,"a",(function(){return r}))},pRvc:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!a.default.isMoment(e)||!a.default.isMoment(t))&&(e.date()===t.date()&&e.month()===t.month()&&e.year()===t.year())};var r,o=n("wy2R"),a=(r=o)&&r.__esModule?r:{default:r}},pVnL:function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,n.apply(this,arguments)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},pYxT:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=r.default.isMoment(e)?e:(0,o.default)(e,t);return n?n.format(a.ISO_FORMAT):null};var r=i(n("wy2R")),o=i(n("WmS1")),a=n("Fv1B");function i(e){return e&&e.__esModule?e:{default:e}}},q86A:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return{transform:e,msTransform:e,MozTransform:e,WebkitTransform:e}}},q9zb:function(e,t,n){"use strict";var r=n("DZdY");const o=Object(r.a)("div",{target:"em57xhy0"})("");o.selector=".components-view",o.displayName="View",t.a=o},qGip:function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},qOxZ:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("khzz");function o(e,t,n){return e.dispatchEvent(Object(r.a)(e,t,n))}},qRz9:function(e,t){e.exports=window.wp.richText},qT12:function(e,t,n){"use strict"; /** @license React v16.13.1 * react-is.production.min.js * @@ -70,4 +70,4 @@ PERFORMANCE OF THIS SOFTWARE. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,b=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,O=r?Symbol.for("react.responder"):60118,j=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case f:case i:case s:case c:case b:return e;default:switch(e=e&&e.$$typeof){case u:case p:case v:case m:case l:return e;default:return t}}case a:return t}}}function x(e){return w(e)===f}t.AsyncMode=d,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=p,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=a,t.Profiler=s,t.StrictMode=c,t.Suspense=b,t.isAsyncMode=function(e){return x(e)||w(e)===d},t.isConcurrentMode=x,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===a},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===c},t.isSuspense=function(e){return w(e)===b},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===s||e===c||e===b||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===y||e.$$typeof===O||e.$$typeof===j||e.$$typeof===g)},t.typeOf=w},qdes:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("cDcd"),o=n("eUCI");function a(e,t){Object(r.useDebugValue)(e);var n=Object(r.useContext)(o.a);return null!=n[e]?n[e]:t}var i=n("RDTF");var c=n("uqqE");function s(e){var t,n,o,s=(o=e.compose,Array.isArray(o)?o:void 0!==o?[o]:[]),l=function(t,n){if(e.useOptions&&(t=e.useOptions(t,n)),e.name&&(t=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Options";Object(r.useDebugValue)(o);var c=a(o);return c?Object(i.a)(Object(i.a)({},t),c(t,n)):t}(e.name,t,n)),e.compose)for(var o,c=Object(i.c)(s);!(o=c()).done;){t=o.value.__useOptions(t,n)}return t},u=function(t,n,o){if(void 0===t&&(t={}),void 0===n&&(n={}),void 0===o&&(o=!1),o||(t=l(t,n)),e.useProps&&(n=e.useProps(t,n)),e.name&&(n=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Props";Object(r.useDebugValue)(o);var i=a(o);return i?i(t,n):n}(e.name,t,n)),e.compose)if(e.useComposeOptions&&(t=e.useComposeOptions(t,n)),e.useComposeProps)n=e.useComposeProps(t,n);else for(var c,u=Object(i.c)(s);!(c=u()).done;){n=(0,c.value)(t,n,!0)}var d={},f=n||{};for(var p in f)void 0!==f[p]&&(d[p]=f[p]);return d};u.__useOptions=l;var d=s.reduce((function(e,t){return e.push.apply(e,t.__keys||[]),e}),[]);return u.__keys=[].concat(d,(null===(t=e.useState)||void 0===t?void 0:t.__keys)||[],e.keys||[]),u.unstable_propsAreEqual=e.propsAreEqual||(null===(n=s[0])||void 0===n?void 0:n.unstable_propsAreEqual)||c.a,u}},qeuH:function(e,t,n){"use strict";var r=n("AM7I"),o=n("SLit"),a=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&a(e,".prototype.")>-1?o(n):n}},rQBh:function(e,t,n){"use strict";var r=n("10Kj"),o=n("PoQ0");e.exports=function(e){if(void 0===e)return e;r(o,"Property Descriptor","Desc",e);var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=e["[[Configurable]]"]),t}},rQy3:function(e,t,n){"use strict";var r=n("oNNP"),o=n("25kQ"),a=n("VF6F")("Object.prototype.propertyIsEnumerable");e.exports=function(e){var t=o(e),n=[];for(var i in t)r(t,i)&&a(t,i)&&n.push(t[i]);return n}},reMF:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("+ipW");function o(e){return!!r.a&&-1!==window.navigator.userAgent.indexOf(e)}},rl8x:function(e,t){e.exports=window.wp.isShallowEqual},sDMB:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("17x9"),a=(r=o)&&r.__esModule?r:{default:r};t.default=a.default.shape({getState:a.default.func,setState:a.default.func,subscribe:a.default.func})},sEfC:function(e,t,n){var r=n("GoyQ"),o=n("QIyF"),a=n("tLB3"),i=Math.max,c=Math.min;e.exports=function(e,t,n){var s,l,u,d,f,p,b=0,h=!1,m=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=s,r=l;return s=l=void 0,b=t,d=e.apply(r,n)}function y(e){return b=e,f=setTimeout(j,t),h?g(e):d}function O(e){var n=e-p;return void 0===p||n>=t||n<0||m&&e-b>=u}function j(){var e=o();if(O(e))return w(e);f=setTimeout(j,function(e){var n=t-(e-p);return m?c(n,u-(e-b)):n}(e))}function w(e){return f=void 0,v&&s?g(e):(s=l=void 0,d)}function x(){var e=o(),n=O(e);if(s=arguments,l=this,p=e,n){if(void 0===f)return y(p);if(m)return clearTimeout(f),f=setTimeout(j,t),g(p)}return void 0===f&&(f=setTimeout(j,t)),d}return t=a(t)||0,r(n)&&(h=!!n.leading,u=(m="maxWait"in n)?i(a(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),x.cancel=function(){void 0!==f&&clearTimeout(f),b=0,s=p=l=f=void 0},x.flush=function(){return void 0===f?d:w(o())},x}},sYn3:function(e,t,n){"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,a=Object.prototype.toString,i=n("1KsK"),c=Object.prototype.propertyIsEnumerable,s=!c.call({toString:null},"toString"),l=c.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===a.call(e),r=i(e),c=t&&"[object String]"===a.call(e),f=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var b=l&&n;if(c&&e.length>0&&!o.call(e,0))for(var h=0;h<e.length;++h)f.push(String(h));if(r&&e.length>0)for(var m=0;m<e.length;++m)f.push(String(m));else for(var v in e)b&&"prototype"===v||!o.call(e,v)||f.push(String(v));if(s)for(var g=function(e){if("undefined"==typeof window||!p)return d(e);try{return d(e)}catch(e){return!1}}(e),y=0;y<u.length;++y)g&&"constructor"===u[y]||!o.call(e,u[y])||f.push(u[y]);return f}}e.exports=r},tLB3:function(e,t,n){var r=n("jXQH"),o=n("GoyQ"),a=n("/9aa"),i=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=c.test(e);return n||s.test(e)?l(e.slice(2),n?2:8):i.test(e)?NaN:+e}},"tQ+x":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a}));const r="data-wp-component",o="data-wp-c16t",a="__contextSystemKey__"},u5Fq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,a){if(!r.default.isMoment(e))return{};for(var i={},c=a?e.clone():e.clone().subtract(1,"month"),s=0;s<(a?t:t+2);s+=1){var l=[],u=c.clone(),d=u.clone().startOf("month").hour(12),f=u.clone().endOf("month").hour(12),p=d.clone();if(n)for(var b=0;b<p.weekday();b+=1){var h=p.clone().subtract(b+1,"day");l.unshift(h)}for(;p<f;)l.push(p.clone()),p.add(1,"day");if(n&&0!==p.weekday())for(var m=p.weekday(),v=0;m<7;m+=1,v+=1){var g=p.clone().add(v,"day");l.push(g)}i[(0,o.default)(c)]=l,c=c.clone().add(1,"month")}return i};var r=a(n("wy2R")),o=a(n("jenk"));function a(e){return e&&e.__esModule?e:{default:e}}},u9yu:function(e,t,n){"use strict";var r=n("j1Hc"),o=n("qeuH"),a=r("%TypeError%"),i=n("Bl8U"),c=r("%Reflect.apply%",!0)||o("%Function.prototype.apply%");e.exports=function(e,t){var n=arguments.length>2?arguments[2]:[];if(!i(n))throw new a("Assertion failed: optional `argumentsList`, if provided, must be a List");return c(e,t,n)}},ulUS:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!a.default.isMoment(e)||!a.default.isMoment(t))&&(e.month()===t.month()&&e.year()===t.year())};var r,o=n("wy2R"),a=(r=o)&&r.__esModule?r:{default:r}},uqqE:function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var a=0,i=n;a<i.length;a++){var c=i[a];if(e[c]!==t[c])return!1}return!0}n.d(t,"a",(function(){return r}))},utzN:function(e,t,n){"use strict";function r(e,t){return e===t||e.contains(t)}n.d(t,"a",(function(){return r}))},uug5:function(e,t,n){"use strict";var r=n("HwJD");e.exports=function(e,t){return e===t?0!==e||1/e==1/t:r(e)&&r(t)}},v3P4:function(e,t,n){"use strict";var r=n("82c2"),o=n("22yB");e.exports=function(){var e=o();return r(Array.prototype,{flat:e},{flat:function(){return Array.prototype.flat!==e}}),e}},v7lB:function(e,t,n){"use strict";var r=SyntaxError,o=Function,a=TypeError,i=function(e){try{return Function('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var s=function(){throw new a},l=c?function(){try{return s}catch(e){try{return c(arguments,"callee").get}catch(e){return s}}}():s,u=n("UVaH")(),d=Object.getPrototypeOf||function(e){return e.__proto__},f=i("async function* () {}"),p=f?f.prototype:void 0,b=p?p.prototype:void 0,h="undefined"==typeof Uint8Array?void 0:d(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":u?d([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":i("async function () {}"),"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":b?d(b):void 0,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":i("function* () {}"),"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u?d(d([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u?d((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&u?d((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u?d(""[Symbol.iterator]()):void 0,"%Symbol%":u?Symbol:void 0,"%SyntaxError%":r,"%ThrowTypeError%":l,"%TypedArray%":h,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=n("D3zA"),y=n("oNNP"),O=g.call(Function.call,Array.prototype.concat),j=g.call(Function.apply,Array.prototype.splice),w=g.call(Function.call,String.prototype.replace),x=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,E=function(e){var t=[];return w(e,x,(function(e,n,r,o){t[t.length]=r?w(o,_,"$1"):n||e})),t},k=function(e,t){var n,o=e;if(y(v,o)&&(o="%"+(n=v[o])[0]+"%"),y(m,o)){var i=m[o];if(void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:i}}throw new r("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');var n=E(e),r=n.length>0?n[0]:"",o=k("%"+r+"%",t),i=o.name,s=o.value,l=!1,u=o.alias;u&&(r=u[0],j(n,O([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d];if("constructor"!==p&&f||(l=!0),y(m,i="%"+(r+="."+p)+"%"))s=m[i];else if(null!=s){if(c&&d+1>=n.length){var b=c(s,p);if(f=!!b,!t&&!(p in s))throw new a("base intrinsic for "+e+" exists, but the property is not available.");s=f&&"get"in b&&!("originalValue"in b.get)?b.get:s[p]}else f=y(s,p),s=s[p];f&&!l&&(m[i]=s)}}return s}},vAQN:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return b})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return d}));var r=n("cDcd"),o=n("+1VY"),a=(n("wx14"),n("gRFL"),n("i2T3"),n("eVQB")),i=n("Exhd"),c={}.hasOwnProperty,s=Object(r.createContext)("undefined"!=typeof HTMLElement?Object(o.a)({key:"css"}):null);var l=s.Provider,u=function(){return Object(r.useContext)(s)},d=function(e){return Object(r.forwardRef)((function(t,n){var o=Object(r.useContext)(s);return e(t,o,n)}))},f=Object(r.createContext)({});var p="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",b=function(e,t){var n={};for(var r in t)c.call(t,r)&&(n[r]=t[r]);return n[p]=e,n},h=function(){return null},m=d((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var s=e[p],l=[o],u="";"string"==typeof e.className?u=Object(a.a)(t.registered,l,e.className):null!=e.className&&(u=e.className+" ");var d=Object(i.a)(l,void 0,Object(r.useContext)(f));Object(a.b)(t,d,"string"==typeof s);u+=t.key+"-"+d.name;var b={};for(var m in e)c.call(e,m)&&"css"!==m&&m!==p&&(b[m]=e[m]);b.ref=n,b.className=u;var v=Object(r.createElement)(s,b),g=Object(r.createElement)(h,null);return Object(r.createElement)(r.Fragment,null,g,v)}))},vLdR:function(e,t,n){"use strict";e.exports=n("Lxf3")},vUUf:function(e,t,n){"use strict";var r=n("wx14"),o=n("GRId");t.a=function(e){let{icon:t,className:n,...a}=e;const i=["dashicon","dashicons","dashicons-"+t,n].filter(Boolean).join(" ");return Object(o.createElement)("span",Object(r.a)({className:i},a))}},"vV+G":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="Interact with the calendar and add the check-in date for your trip.",o="Move backward to switch to the previous month.",a="Move forward to switch to the next month.",i="page up and page down keys",c="Home and end keys",s="Escape key",l="Select the date in focus.",u="Move backward (left) and forward (right) by one day.",d="Move backward (up) and forward (down) by one week.",f="Return to the date input field.",p="Press the down arrow key to interact with the calendar and\n select a date. Press the question mark key to get the keyboard shortcuts for changing dates.",b=function(e){var t=e.date;return"Choose "+String(t)+" as your check-in date. It’s available."},h=function(e){var t=e.date;return"Choose "+String(t)+" as your check-out date. It’s available."},m=function(e){return e.date},v=function(e){var t=e.date;return"Not available. "+String(t)},g=function(e){var t=e.date;return"Selected. "+String(t)};t.default={calendarLabel:"Calendar",closeDatePicker:"Close",focusStartDate:r,clearDate:"Clear Date",clearDates:"Clear Dates",jumpToPrevMonth:o,jumpToNextMonth:a,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:c,escape:s,questionMark:"Question mark",selectFocusedDate:l,moveFocusByOneDay:u,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:f,keyboardNavigationInstructions:p,chooseAvailableStartDate:b,chooseAvailableEndDate:h,dateIsUnavailable:v,dateIsSelected:g};t.DateRangePickerPhrases={calendarLabel:"Calendar",closeDatePicker:"Close",clearDates:"Clear Dates",focusStartDate:r,jumpToPrevMonth:o,jumpToNextMonth:a,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:c,escape:s,questionMark:"Question mark",selectFocusedDate:l,moveFocusByOneDay:u,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:f,keyboardNavigationInstructions:p,chooseAvailableStartDate:b,chooseAvailableEndDate:h,dateIsUnavailable:v,dateIsSelected:g},t.DateRangePickerInputPhrases={focusStartDate:r,clearDates:"Clear Dates",keyboardNavigationInstructions:p},t.SingleDatePickerPhrases={calendarLabel:"Calendar",closeDatePicker:"Close",clearDate:"Clear Date",jumpToPrevMonth:o,jumpToNextMonth:a,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:c,escape:s,questionMark:"Question mark",selectFocusedDate:l,moveFocusByOneDay:u,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:f,keyboardNavigationInstructions:p,chooseAvailableDate:m,dateIsUnavailable:v,dateIsSelected:g},t.SingleDatePickerInputPhrases={clearDate:"Clear Date",keyboardNavigationInstructions:p},t.DayPickerPhrases={calendarLabel:"Calendar",jumpToPrevMonth:o,jumpToNextMonth:a,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:c,escape:s,questionMark:"Question mark",selectFocusedDate:l,moveFocusByOneDay:u,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:f,chooseAvailableStartDate:b,chooseAvailableEndDate:h,chooseAvailableDate:m,dateIsUnavailable:v,dateIsSelected:g},t.DayPickerKeyboardShortcutsPhrases={keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:c,escape:s,questionMark:"Question mark",selectFocusedDate:l,moveFocusByOneDay:u,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:f},t.DayPickerNavigationPhrases={jumpToPrevMonth:o,jumpToNextMonth:a},t.CalendarDayPhrases={chooseAvailableDate:m,dateIsUnavailable:v,dateIsSelected:g}},vYfR:function(e,t,n){"use strict";var r=n("oNNP"),o=n("10Kj"),a=n("PoQ0");e.exports=function(e){return void 0!==e&&(o(a,"Property Descriptor","Desc",e),!(!r(e,"[[Get]]")&&!r(e,"[[Set]]")))}},w95h:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=a},wTIp:function(e,t,n){"use strict";var r=n("j1Hc")("%Object.defineProperty%",!0);if(r)try{r({},"a",{value:1})}catch(e){r=null}var o=Object.defineProperty&&0===Object.defineProperty([],"length",{value:1}).length,a=o&&n("9cOx"),i=n("qeuH")("Object.prototype.propertyIsEnumerable");e.exports=function(e,t,n,c,s,l){if(!r){if(!e(l))return!1;if(!l["[[Configurable]]"]||!l["[[Writable]]"])return!1;if(s in c&&i(c,s)!==!!l["[[Enumerable]]"])return!1;var u=l["[[Value]]"];return c[s]=u,t(c[s],u)}return o&&"length"===s&&"[[Value]]"in l&&a(c)&&c.length!==l["[[Value]]"]?(c.length=l["[[Value]]"],c.length===l["[[Value]]"]):(r(c,s,n(l)),!0)}},wx14:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},wy2R:function(e,t){e.exports=window.moment},xEte:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("cDcd"),a=(r=o)&&r.__esModule?r:{default:r};var i=function(e){return a.default.createElement("svg",e,a.default.createElement("path",{fillRule:"evenodd",d:"M11.53.47a.75.75 0 0 0-1.061 0l-4.47 4.47L1.529.47A.75.75 0 1 0 .468 1.531l4.47 4.47-4.47 4.47a.75.75 0 1 0 1.061 1.061l4.47-4.47 4.47 4.47a.75.75 0 1 0 1.061-1.061l-4.47-4.47 4.47-4.47a.75.75 0 0 0 0-1.061z"}))};i.defaultProps={viewBox:"0 0 12 12"},t.default=i},xOhs:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={white:"#fff",gray:"#484848",grayLight:"#82888a",grayLighter:"#cacccd",grayLightest:"#f2f2f2",borderMedium:"#c4c4c4",border:"#dbdbdb",borderLight:"#e4e7e7",borderLighter:"#eceeee",borderBright:"#f4f5f5",primary:"#00a699",primaryShade_1:"#33dacd",primaryShade_2:"#66e2da",primaryShade_3:"#80e8e0",primaryShade_4:"#b2f1ec",primary_dark:"#008489",secondary:"#007a87",yellow:"#ffe8bc",yellow_dark:"#ffce71"};t.default={reactDates:{zIndex:0,border:{input:{border:0,borderTop:0,borderRight:0,borderBottom:"2px solid transparent",borderLeft:0,outlineFocused:0,borderFocused:0,borderTopFocused:0,borderLeftFocused:0,borderBottomFocused:"2px solid "+String(r.primary_dark),borderRightFocused:0,borderRadius:0},pickerInput:{borderWidth:1,borderStyle:"solid",borderRadius:2}},color:{core:r,disabled:r.grayLightest,background:r.white,backgroundDark:"#f2f2f2",backgroundFocused:r.white,border:"rgb(219, 219, 219)",text:r.gray,textDisabled:r.border,textFocused:"#007a87",placeholderText:"#757575",outside:{backgroundColor:r.white,backgroundColor_active:r.white,backgroundColor_hover:r.white,color:r.gray,color_active:r.gray,color_hover:r.gray},highlighted:{backgroundColor:r.yellow,backgroundColor_active:r.yellow_dark,backgroundColor_hover:r.yellow_dark,color:r.gray,color_active:r.gray,color_hover:r.gray},minimumNights:{backgroundColor:r.white,backgroundColor_active:r.white,backgroundColor_hover:r.white,borderColor:r.borderLighter,color:r.grayLighter,color_active:r.grayLighter,color_hover:r.grayLighter},hoveredSpan:{backgroundColor:r.primaryShade_4,backgroundColor_active:r.primaryShade_3,backgroundColor_hover:r.primaryShade_4,borderColor:r.primaryShade_3,borderColor_active:r.primaryShade_3,borderColor_hover:r.primaryShade_3,color:r.secondary,color_active:r.secondary,color_hover:r.secondary},selectedSpan:{backgroundColor:r.primaryShade_2,backgroundColor_active:r.primaryShade_1,backgroundColor_hover:r.primaryShade_1,borderColor:r.primaryShade_1,borderColor_active:r.primary,borderColor_hover:r.primary,color:r.white,color_active:r.white,color_hover:r.white},selected:{backgroundColor:r.primary,backgroundColor_active:r.primary,backgroundColor_hover:r.primary,borderColor:r.primary,borderColor_active:r.primary,borderColor_hover:r.primary,color:r.white,color_active:r.white,color_hover:r.white},blocked_calendar:{backgroundColor:r.grayLighter,backgroundColor_active:r.grayLighter,backgroundColor_hover:r.grayLighter,borderColor:r.grayLighter,borderColor_active:r.grayLighter,borderColor_hover:r.grayLighter,color:r.grayLight,color_active:r.grayLight,color_hover:r.grayLight},blocked_out_of_range:{backgroundColor:r.white,backgroundColor_active:r.white,backgroundColor_hover:r.white,borderColor:r.borderLight,borderColor_active:r.borderLight,borderColor_hover:r.borderLight,color:r.grayLighter,color_active:r.grayLighter,color_hover:r.grayLighter}},spacing:{dayPickerHorizontalPadding:9,captionPaddingTop:22,captionPaddingBottom:37,inputPadding:0,displayTextPaddingVertical:void 0,displayTextPaddingTop:11,displayTextPaddingBottom:9,displayTextPaddingHorizontal:void 0,displayTextPaddingLeft:11,displayTextPaddingRight:11,displayTextPaddingVertical_small:void 0,displayTextPaddingTop_small:7,displayTextPaddingBottom_small:5,displayTextPaddingHorizontal_small:void 0,displayTextPaddingLeft_small:7,displayTextPaddingRight_small:7},sizing:{inputWidth:130,inputWidth_small:97,arrowWidth:24},noScrollBarOnVerticalScrollable:!1,font:{size:14,captionSize:18,input:{size:19,lineHeight:"24px",size_small:15,lineHeight_small:"18px",letterSpacing_small:"0.2px",styleDisabled:"italic"}}}}},xoj2:function(e,t,n){"use strict";var r=n("rQy3");e.exports=function(){return"function"==typeof Object.values?Object.values:r}},yLpj:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},yLpt:function(e,t,n){"use strict";var r=n("FufO");e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r<t.length;++r)n[t[r]]=t[r];var o=Object.assign({},n),a="";for(var i in o)a+=i;return e!==a}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?r:Object.assign:r}},yN6O:function(e,t,n){"use strict";var r=n("KtDd"),o=n("Yesc"),a=n("aBsX"),i=n("3iup"),c=n("3HW2"),s=n("PFEc");e.exports=function(){var e=s(this),t=c(a(e,"length")),n=1;arguments.length>0&&void 0!==arguments[0]&&(n=i(arguments[0]));var l=r(e,0);return o(l,e,t,0,n),l}},yc2e:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce((function(e,t){return(0,r.default)({},e,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},t,o.default.oneOfType([o.default.string,o.default.func,o.default.node])))}),{})};var r=a(n("Koq/")),o=a(n("17x9"));function a(e){return e&&e.__esModule?e:{default:e}}},ym77:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("BZp5"),o=n("hE48"),a=n("qdes"),i=n("cDcd"),c=n("KCH1"),s=[].concat(["baseId","unstable_idCountRef","setBaseId"],["id"]),l=Object(a.a)({keys:s,useOptions:function(e,t){var n=Object(i.useContext)(c.a),o=Object(i.useState)((function(){return e.unstable_idCountRef?(e.unstable_idCountRef.current+=1,"-"+e.unstable_idCountRef.current):e.baseId?"-"+n(""):""}))[0],a=Object(i.useMemo)((function(){return e.baseId||n()}),[e.baseId,n]),s=t.id||e.id||""+a+o;return Object(r.b)(Object(r.b)({},e),{},{id:s})},useProps:function(e,t){return Object(r.b)({id:e.id},t)}});Object(o.a)({as:"div",useHook:l})},yyeE:function(e,t,n){"use strict";var r=n("j1Hc"),o=r("%Math%"),a=r("%Number%");e.exports=a.MAX_SAFE_INTEGER||o.pow(2,53)-1},zGFp:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("BZp5"),o=n("hE48"),a=n("qdes"),i=n("uqqE"),c=Object(a.a)({name:"Role",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,o=Object(r.a)(e,["unstable_system"]),a=t.unstable_system,c=Object(r.a)(t,["unstable_system"]);return!(n!==a&&!Object(i.a)(n,a))&&Object(i.a)(o,c)}});Object(o.a)({as:"div",useHook:c})},zN8g:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=l(n("Koq/")),a=l(n("cDcd")),i=l(n("17x9")),c=n("Hsqg"),s=n("TG4+");function l(e){return e&&e.__esModule?e:{default:e}}var u=(0,c.forbidExtraProps)((0,o.default)({},s.withStylesPropTypes,{unicode:i.default.string.isRequired,label:i.default.string.isRequired,action:i.default.string.isRequired,block:i.default.bool}));function d(e){var t=e.unicode,n=e.label,o=e.action,i=e.block,c=e.styles;return a.default.createElement("li",(0,s.css)(c.KeyboardShortcutRow,i&&c.KeyboardShortcutRow__block),a.default.createElement("div",(0,s.css)(c.KeyboardShortcutRow_keyContainer,i&&c.KeyboardShortcutRow_keyContainer__block),a.default.createElement("span",r({},(0,s.css)(c.KeyboardShortcutRow_key),{role:"img","aria-label":String(n)+","}),t)),a.default.createElement("div",(0,s.css)(c.KeyboardShortcutRow_action),o))}d.propTypes=u,d.defaultProps={block:!1},t.default=(0,s.withStyles)((function(e){return{KeyboardShortcutRow:{listStyle:"none",margin:"6px 0"},KeyboardShortcutRow__block:{marginBottom:16},KeyboardShortcutRow_keyContainer:{display:"inline-block",whiteSpace:"nowrap",textAlign:"right",marginRight:6},KeyboardShortcutRow_keyContainer__block:{textAlign:"left",display:"inline"},KeyboardShortcutRow_key:{fontFamily:"monospace",fontSize:12,textTransform:"uppercase",background:e.reactDates.color.core.grayLightest,padding:"2px 6px"},KeyboardShortcutRow_action:{display:"inline",wordBreak:"break-word",marginLeft:8}}}))(d)},zTEx:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("hE48"),o=n("qdes"),a=(n("cDcd"),n("KA1K"),n("kTC8")),i=n("mjVI"),c=Object(o.a)({name:"ToolbarItem",compose:a.b,keys:i.b}),s=Object(r.a)({as:"button",memo:!0,useHook:c})},zfJ5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=v(n("Koq/")),a=v(n("cDcd")),i=v(n("17x9")),c=n("Hsqg"),s=n("TG4+"),l=n("vV+G"),u=v(n("yc2e")),d=v(n("0XP8")),f=v(n("gZI3")),p=v(n("9gmn")),b=v(n("DHWS")),h=v(n("aE6U")),m=n("Fv1B");function v(e){return e&&e.__esModule?e:{default:e}}function g(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var y=(0,c.forbidExtraProps)((0,o.default)({},s.withStylesPropTypes,{navPrev:i.default.node,navNext:i.default.node,orientation:h.default,onPrevMonthClick:i.default.func,onNextMonthClick:i.default.func,phrases:i.default.shape((0,u.default)(l.DayPickerNavigationPhrases)),isRTL:i.default.bool})),O={navPrev:null,navNext:null,orientation:m.HORIZONTAL_ORIENTATION,onPrevMonthClick:function(){},onNextMonthClick:function(){},phrases:l.DayPickerNavigationPhrases,isRTL:!1};function j(e){var t=e.navPrev,n=e.navNext,o=e.onPrevMonthClick,i=e.onNextMonthClick,c=e.orientation,l=e.phrases,u=e.isRTL,h=e.styles,v=c===m.HORIZONTAL_ORIENTATION,y=c!==m.HORIZONTAL_ORIENTATION,O=c===m.VERTICAL_SCROLLABLE,j=t,w=n,x=!1,_=!1;if(!j){x=!0;var E=y?p.default:d.default;u&&!y&&(E=f.default),j=a.default.createElement(E,(0,s.css)(v&&h.DayPickerNavigation_svg__horizontal,y&&h.DayPickerNavigation_svg__vertical))}if(!w){_=!0;var k=y?b.default:f.default;u&&!y&&(k=d.default),w=a.default.createElement(k,(0,s.css)(v&&h.DayPickerNavigation_svg__horizontal,y&&h.DayPickerNavigation_svg__vertical))}var S=O?_:_||x;return a.default.createElement("div",s.css.apply(void 0,[h.DayPickerNavigation,v&&h.DayPickerNavigation__horizontal].concat(g(y&&[h.DayPickerNavigation__vertical,S&&h.DayPickerNavigation__verticalDefault]),g(O&&[h.DayPickerNavigation__verticalScrollable,S&&h.DayPickerNavigation__verticalScrollableDefault]))),!O&&a.default.createElement("div",r({role:"button",tabIndex:"0"},s.css.apply(void 0,[h.DayPickerNavigation_button,x&&h.DayPickerNavigation_button__default].concat(g(v&&[h.DayPickerNavigation_button__horizontal].concat(g(x&&[h.DayPickerNavigation_button__horizontalDefault,!u&&h.DayPickerNavigation_leftButton__horizontalDefault,u&&h.DayPickerNavigation_rightButton__horizontalDefault]))),g(y&&[h.DayPickerNavigation_button__vertical].concat(g(x&&[h.DayPickerNavigation_button__verticalDefault,h.DayPickerNavigation_prevButton__verticalDefault]))))),{"aria-label":l.jumpToPrevMonth,onClick:o,onKeyUp:function(e){var t=e.key;"Enter"!==t&&" "!==t||o(e)},onMouseUp:function(e){e.currentTarget.blur()}}),j),a.default.createElement("div",r({role:"button",tabIndex:"0"},s.css.apply(void 0,[h.DayPickerNavigation_button,_&&h.DayPickerNavigation_button__default].concat(g(v&&[h.DayPickerNavigation_button__horizontal].concat(g(_&&[h.DayPickerNavigation_button__horizontalDefault,u&&h.DayPickerNavigation_leftButton__horizontalDefault,!u&&h.DayPickerNavigation_rightButton__horizontalDefault]))),g(y&&[h.DayPickerNavigation_button__vertical,h.DayPickerNavigation_nextButton__vertical].concat(g(_&&[h.DayPickerNavigation_button__verticalDefault,h.DayPickerNavigation_nextButton__verticalDefault,O&&h.DayPickerNavigation_nextButton__verticalScrollableDefault]))))),{"aria-label":l.jumpToNextMonth,onClick:i,onKeyUp:function(e){var t=e.key;"Enter"!==t&&" "!==t||i(e)},onMouseUp:function(e){e.currentTarget.blur()}}),w))}j.propTypes=y,j.defaultProps=O,t.default=(0,s.withStyles)((function(e){var t=e.reactDates,n=t.color;return{DayPickerNavigation:{position:"relative",zIndex:t.zIndex+2},DayPickerNavigation__horizontal:{height:0},DayPickerNavigation__vertical:{},DayPickerNavigation__verticalScrollable:{},DayPickerNavigation__verticalDefault:{position:"absolute",width:"100%",height:52,bottom:0,left:0},DayPickerNavigation__verticalScrollableDefault:{position:"relative"},DayPickerNavigation_button:{cursor:"pointer",userSelect:"none",border:0,padding:0,margin:0},DayPickerNavigation_button__default:{border:"1px solid "+String(n.core.borderLight),backgroundColor:n.background,color:n.placeholderText,":focus":{border:"1px solid "+String(n.core.borderMedium)},":hover":{border:"1px solid "+String(n.core.borderMedium)},":active":{background:n.backgroundDark}},DayPickerNavigation_button__horizontal:{},DayPickerNavigation_button__horizontalDefault:{position:"absolute",top:18,lineHeight:.78,borderRadius:3,padding:"6px 9px"},DayPickerNavigation_leftButton__horizontalDefault:{left:22},DayPickerNavigation_rightButton__horizontalDefault:{right:22},DayPickerNavigation_button__vertical:{},DayPickerNavigation_button__verticalDefault:{padding:5,background:n.background,boxShadow:"0 0 5px 2px rgba(0, 0, 0, 0.1)",position:"relative",display:"inline-block",height:"100%",width:"50%"},DayPickerNavigation_prevButton__verticalDefault:{},DayPickerNavigation_nextButton__verticalDefault:{borderLeft:0},DayPickerNavigation_nextButton__verticalScrollableDefault:{width:"100%"},DayPickerNavigation_svg__horizontal:{height:19,width:19,fill:n.core.grayLight,display:"block"},DayPickerNavigation_svg__vertical:{height:42,width:42,fill:n.text,display:"block"}}}))(j)},zt9T:function(e,t,n){"use strict";var r=n("jB5C");e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,a=n.onlyScrollIfNeeded,i=n.alignWithTop,c=n.alignWithLeft,s=n.offsetTop||0,l=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;o=void 0===o||o;var f=r.isWindow(t),p=r.offset(e),b=r.outerHeight(e),h=r.outerWidth(e),m=void 0,v=void 0,g=void 0,y=void 0,O=void 0,j=void 0,w=void 0,x=void 0,_=void 0,E=void 0;f?(w=t,E=r.height(w),_=r.width(w),x={left:r.scrollLeft(w),top:r.scrollTop(w)},O={left:p.left-x.left-l,top:p.top-x.top-s},j={left:p.left+h-(x.left+_)+d,top:p.top+b-(x.top+E)+u},y=x):(m=r.offset(t),v=t.clientHeight,g=t.clientWidth,y={left:t.scrollLeft,top:t.scrollTop},O={left:p.left-(m.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-l,top:p.top-(m.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-s},j={left:p.left+h-(m.left+g+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:p.top+b-(m.top+v+(parseFloat(r.css(t,"borderBottomWidth"))||0))+u}),O.top<0||j.top>0?!0===i?r.scrollTop(t,y.top+O.top):!1===i?r.scrollTop(t,y.top+j.top):O.top<0?r.scrollTop(t,y.top+O.top):r.scrollTop(t,y.top+j.top):a||((i=void 0===i||!!i)?r.scrollTop(t,y.top+O.top):r.scrollTop(t,y.top+j.top)),o&&(O.left<0||j.left>0?!0===c?r.scrollLeft(t,y.left+O.left):!1===c?r.scrollLeft(t,y.left+j.left):O.left<0?r.scrollLeft(t,y.left+O.left):r.scrollLeft(t,y.left+j.left):a||((c=void 0===c||!!c)?r.scrollLeft(t,y.left+O.left):r.scrollLeft(t,y.left+j.left)))}}}); \ No newline at end of file + */var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,b=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,O=r?Symbol.for("react.responder"):60118,j=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case f:case i:case s:case c:case b:return e;default:switch(e=e&&e.$$typeof){case u:case p:case v:case m:case l:return e;default:return t}}case a:return t}}}function x(e){return w(e)===f}t.AsyncMode=d,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=p,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=a,t.Profiler=s,t.StrictMode=c,t.Suspense=b,t.isAsyncMode=function(e){return x(e)||w(e)===d},t.isConcurrentMode=x,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===a},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===c},t.isSuspense=function(e){return w(e)===b},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===s||e===c||e===b||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===y||e.$$typeof===O||e.$$typeof===j||e.$$typeof===g)},t.typeOf=w},qdes:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("cDcd"),o=n("eUCI");function a(e,t){Object(r.useDebugValue)(e);var n=Object(r.useContext)(o.a);return null!=n[e]?n[e]:t}var i=n("RDTF");var c=n("uqqE");function s(e){var t,n,o,s=(o=e.compose,Array.isArray(o)?o:void 0!==o?[o]:[]),l=function(t,n){if(e.useOptions&&(t=e.useOptions(t,n)),e.name&&(t=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Options";Object(r.useDebugValue)(o);var c=a(o);return c?Object(i.a)(Object(i.a)({},t),c(t,n)):t}(e.name,t,n)),e.compose)for(var o,c=Object(i.c)(s);!(o=c()).done;){t=o.value.__useOptions(t,n)}return t},u=function(t,n,o){if(void 0===t&&(t={}),void 0===n&&(n={}),void 0===o&&(o=!1),o||(t=l(t,n)),e.useProps&&(n=e.useProps(t,n)),e.name&&(n=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Props";Object(r.useDebugValue)(o);var i=a(o);return i?i(t,n):n}(e.name,t,n)),e.compose)if(e.useComposeOptions&&(t=e.useComposeOptions(t,n)),e.useComposeProps)n=e.useComposeProps(t,n);else for(var c,u=Object(i.c)(s);!(c=u()).done;){n=(0,c.value)(t,n,!0)}var d={},f=n||{};for(var p in f)void 0!==f[p]&&(d[p]=f[p]);return d};u.__useOptions=l;var d=s.reduce((function(e,t){return e.push.apply(e,t.__keys||[]),e}),[]);return u.__keys=[].concat(d,(null===(t=e.useState)||void 0===t?void 0:t.__keys)||[],e.keys||[]),u.unstable_propsAreEqual=e.propsAreEqual||(null===(n=s[0])||void 0===n?void 0:n.unstable_propsAreEqual)||c.a,u}},qeuH:function(e,t,n){"use strict";var r=n("AM7I"),o=n("SLit"),a=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&a(e,".prototype.")>-1?o(n):n}},rQBh:function(e,t,n){"use strict";var r=n("10Kj"),o=n("PoQ0");e.exports=function(e){if(void 0===e)return e;r(o,"Property Descriptor","Desc",e);var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=e["[[Configurable]]"]),t}},rQy3:function(e,t,n){"use strict";var r=n("oNNP"),o=n("25kQ"),a=n("VF6F")("Object.prototype.propertyIsEnumerable");e.exports=function(e){var t=o(e),n=[];for(var i in t)r(t,i)&&a(t,i)&&n.push(t[i]);return n}},reMF:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("+ipW");function o(e){return!!r.a&&-1!==window.navigator.userAgent.indexOf(e)}},rl8x:function(e,t){e.exports=window.wp.isShallowEqual},sDMB:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("17x9"),a=(r=o)&&r.__esModule?r:{default:r};t.default=a.default.shape({getState:a.default.func,setState:a.default.func,subscribe:a.default.func})},sEfC:function(e,t,n){var r=n("GoyQ"),o=n("QIyF"),a=n("tLB3"),i=Math.max,c=Math.min;e.exports=function(e,t,n){var s,l,u,d,f,p,b=0,h=!1,m=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=s,r=l;return s=l=void 0,b=t,d=e.apply(r,n)}function y(e){return b=e,f=setTimeout(j,t),h?g(e):d}function O(e){var n=e-p;return void 0===p||n>=t||n<0||m&&e-b>=u}function j(){var e=o();if(O(e))return w(e);f=setTimeout(j,function(e){var n=t-(e-p);return m?c(n,u-(e-b)):n}(e))}function w(e){return f=void 0,v&&s?g(e):(s=l=void 0,d)}function x(){var e=o(),n=O(e);if(s=arguments,l=this,p=e,n){if(void 0===f)return y(p);if(m)return clearTimeout(f),f=setTimeout(j,t),g(p)}return void 0===f&&(f=setTimeout(j,t)),d}return t=a(t)||0,r(n)&&(h=!!n.leading,u=(m="maxWait"in n)?i(a(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),x.cancel=function(){void 0!==f&&clearTimeout(f),b=0,s=p=l=f=void 0},x.flush=function(){return void 0===f?d:w(o())},x}},sYn3:function(e,t,n){"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,a=Object.prototype.toString,i=n("1KsK"),c=Object.prototype.propertyIsEnumerable,s=!c.call({toString:null},"toString"),l=c.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===a.call(e),r=i(e),c=t&&"[object String]"===a.call(e),f=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var b=l&&n;if(c&&e.length>0&&!o.call(e,0))for(var h=0;h<e.length;++h)f.push(String(h));if(r&&e.length>0)for(var m=0;m<e.length;++m)f.push(String(m));else for(var v in e)b&&"prototype"===v||!o.call(e,v)||f.push(String(v));if(s)for(var g=function(e){if("undefined"==typeof window||!p)return d(e);try{return d(e)}catch(e){return!1}}(e),y=0;y<u.length;++y)g&&"constructor"===u[y]||!o.call(e,u[y])||f.push(u[y]);return f}}e.exports=r},tLB3:function(e,t,n){var r=n("jXQH"),o=n("GoyQ"),a=n("/9aa"),i=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=c.test(e);return n||s.test(e)?l(e.slice(2),n?2:8):i.test(e)?NaN:+e}},"tQ+x":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a}));const r="data-wp-component",o="data-wp-c16t",a="__contextSystemKey__"},u5Fq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,a){if(!r.default.isMoment(e))return{};for(var i={},c=a?e.clone():e.clone().subtract(1,"month"),s=0;s<(a?t:t+2);s+=1){var l=[],u=c.clone(),d=u.clone().startOf("month").hour(12),f=u.clone().endOf("month").hour(12),p=d.clone();if(n)for(var b=0;b<p.weekday();b+=1){var h=p.clone().subtract(b+1,"day");l.unshift(h)}for(;p<f;)l.push(p.clone()),p.add(1,"day");if(n&&0!==p.weekday())for(var m=p.weekday(),v=0;m<7;m+=1,v+=1){var g=p.clone().add(v,"day");l.push(g)}i[(0,o.default)(c)]=l,c=c.clone().add(1,"month")}return i};var r=a(n("wy2R")),o=a(n("jenk"));function a(e){return e&&e.__esModule?e:{default:e}}},u9yu:function(e,t,n){"use strict";var r=n("j1Hc"),o=n("qeuH"),a=r("%TypeError%"),i=n("Bl8U"),c=r("%Reflect.apply%",!0)||o("%Function.prototype.apply%");e.exports=function(e,t){var n=arguments.length>2?arguments[2]:[];if(!i(n))throw new a("Assertion failed: optional `argumentsList`, if provided, must be a List");return c(e,t,n)}},ulUS:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!a.default.isMoment(e)||!a.default.isMoment(t))&&(e.month()===t.month()&&e.year()===t.year())};var r,o=n("wy2R"),a=(r=o)&&r.__esModule?r:{default:r}},uqqE:function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var a=0,i=n;a<i.length;a++){var c=i[a];if(e[c]!==t[c])return!1}return!0}n.d(t,"a",(function(){return r}))},utzN:function(e,t,n){"use strict";function r(e,t){return e===t||e.contains(t)}n.d(t,"a",(function(){return r}))},uug5:function(e,t,n){"use strict";var r=n("HwJD");e.exports=function(e,t){return e===t?0!==e||1/e==1/t:r(e)&&r(t)}},v3P4:function(e,t,n){"use strict";var r=n("82c2"),o=n("22yB");e.exports=function(){var e=o();return r(Array.prototype,{flat:e},{flat:function(){return Array.prototype.flat!==e}}),e}},v7lB:function(e,t,n){"use strict";var r=SyntaxError,o=Function,a=TypeError,i=function(e){try{return Function('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var s=function(){throw new a},l=c?function(){try{return s}catch(e){try{return c(arguments,"callee").get}catch(e){return s}}}():s,u=n("UVaH")(),d=Object.getPrototypeOf||function(e){return e.__proto__},f=i("async function* () {}"),p=f?f.prototype:void 0,b=p?p.prototype:void 0,h="undefined"==typeof Uint8Array?void 0:d(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":u?d([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":i("async function () {}"),"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":b?d(b):void 0,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":i("function* () {}"),"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u?d(d([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u?d((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&u?d((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u?d(""[Symbol.iterator]()):void 0,"%Symbol%":u?Symbol:void 0,"%SyntaxError%":r,"%ThrowTypeError%":l,"%TypedArray%":h,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=n("D3zA"),y=n("oNNP"),O=g.call(Function.call,Array.prototype.concat),j=g.call(Function.apply,Array.prototype.splice),w=g.call(Function.call,String.prototype.replace),x=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,E=function(e){var t=[];return w(e,x,(function(e,n,r,o){t[t.length]=r?w(o,_,"$1"):n||e})),t},k=function(e,t){var n,o=e;if(y(v,o)&&(o="%"+(n=v[o])[0]+"%"),y(m,o)){var i=m[o];if(void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:i}}throw new r("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');var n=E(e),r=n.length>0?n[0]:"",o=k("%"+r+"%",t),i=o.name,s=o.value,l=!1,u=o.alias;u&&(r=u[0],j(n,O([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d];if("constructor"!==p&&f||(l=!0),y(m,i="%"+(r+="."+p)+"%"))s=m[i];else if(null!=s){if(c&&d+1>=n.length){var b=c(s,p);if(f=!!b,!t&&!(p in s))throw new a("base intrinsic for "+e+" exists, but the property is not available.");s=f&&"get"in b&&!("originalValue"in b.get)?b.get:s[p]}else f=y(s,p),s=s[p];f&&!l&&(m[i]=s)}}return s}},vLdR:function(e,t,n){"use strict";e.exports=n("Lxf3")},vUUf:function(e,t,n){"use strict";var r=n("wx14"),o=n("GRId");t.a=function(e){let{icon:t,className:n,...a}=e;const i=["dashicon","dashicons","dashicons-"+t,n].filter(Boolean).join(" ");return Object(o.createElement)("span",Object(r.a)({className:i},a))}},"vV+G":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="Interact with the calendar and add the check-in date for your trip.",o="Move backward to switch to the previous month.",a="Move forward to switch to the next month.",i="page up and page down keys",c="Home and end keys",s="Escape key",l="Select the date in focus.",u="Move backward (left) and forward (right) by one day.",d="Move backward (up) and forward (down) by one week.",f="Return to the date input field.",p="Press the down arrow key to interact with the calendar and\n select a date. Press the question mark key to get the keyboard shortcuts for changing dates.",b=function(e){var t=e.date;return"Choose "+String(t)+" as your check-in date. It’s available."},h=function(e){var t=e.date;return"Choose "+String(t)+" as your check-out date. It’s available."},m=function(e){return e.date},v=function(e){var t=e.date;return"Not available. "+String(t)},g=function(e){var t=e.date;return"Selected. "+String(t)};t.default={calendarLabel:"Calendar",closeDatePicker:"Close",focusStartDate:r,clearDate:"Clear Date",clearDates:"Clear Dates",jumpToPrevMonth:o,jumpToNextMonth:a,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:c,escape:s,questionMark:"Question mark",selectFocusedDate:l,moveFocusByOneDay:u,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:f,keyboardNavigationInstructions:p,chooseAvailableStartDate:b,chooseAvailableEndDate:h,dateIsUnavailable:v,dateIsSelected:g};t.DateRangePickerPhrases={calendarLabel:"Calendar",closeDatePicker:"Close",clearDates:"Clear Dates",focusStartDate:r,jumpToPrevMonth:o,jumpToNextMonth:a,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:c,escape:s,questionMark:"Question mark",selectFocusedDate:l,moveFocusByOneDay:u,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:f,keyboardNavigationInstructions:p,chooseAvailableStartDate:b,chooseAvailableEndDate:h,dateIsUnavailable:v,dateIsSelected:g},t.DateRangePickerInputPhrases={focusStartDate:r,clearDates:"Clear Dates",keyboardNavigationInstructions:p},t.SingleDatePickerPhrases={calendarLabel:"Calendar",closeDatePicker:"Close",clearDate:"Clear Date",jumpToPrevMonth:o,jumpToNextMonth:a,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:c,escape:s,questionMark:"Question mark",selectFocusedDate:l,moveFocusByOneDay:u,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:f,keyboardNavigationInstructions:p,chooseAvailableDate:m,dateIsUnavailable:v,dateIsSelected:g},t.SingleDatePickerInputPhrases={clearDate:"Clear Date",keyboardNavigationInstructions:p},t.DayPickerPhrases={calendarLabel:"Calendar",jumpToPrevMonth:o,jumpToNextMonth:a,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:c,escape:s,questionMark:"Question mark",selectFocusedDate:l,moveFocusByOneDay:u,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:f,chooseAvailableStartDate:b,chooseAvailableEndDate:h,chooseAvailableDate:m,dateIsUnavailable:v,dateIsSelected:g},t.DayPickerKeyboardShortcutsPhrases={keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:c,escape:s,questionMark:"Question mark",selectFocusedDate:l,moveFocusByOneDay:u,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:f},t.DayPickerNavigationPhrases={jumpToPrevMonth:o,jumpToNextMonth:a},t.CalendarDayPhrases={chooseAvailableDate:m,dateIsUnavailable:v,dateIsSelected:g}},vYfR:function(e,t,n){"use strict";var r=n("oNNP"),o=n("10Kj"),a=n("PoQ0");e.exports=function(e){return void 0!==e&&(o(a,"Property Descriptor","Desc",e),!(!r(e,"[[Get]]")&&!r(e,"[[Set]]")))}},w95h:function(e,t,n){"use strict";var r=n("GRId"),o=n("Tqx9");const a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=a},wTIp:function(e,t,n){"use strict";var r=n("j1Hc")("%Object.defineProperty%",!0);if(r)try{r({},"a",{value:1})}catch(e){r=null}var o=Object.defineProperty&&0===Object.defineProperty([],"length",{value:1}).length,a=o&&n("9cOx"),i=n("qeuH")("Object.prototype.propertyIsEnumerable");e.exports=function(e,t,n,c,s,l){if(!r){if(!e(l))return!1;if(!l["[[Configurable]]"]||!l["[[Writable]]"])return!1;if(s in c&&i(c,s)!==!!l["[[Enumerable]]"])return!1;var u=l["[[Value]]"];return c[s]=u,t(c[s],u)}return o&&"length"===s&&"[[Value]]"in l&&a(c)&&c.length!==l["[[Value]]"]?(c.length=l["[[Value]]"],c.length===l["[[Value]]"]):(r(c,s,n(l)),!0)}},wx14:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},wy2R:function(e,t){e.exports=window.moment},xEte:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("cDcd"),a=(r=o)&&r.__esModule?r:{default:r};var i=function(e){return a.default.createElement("svg",e,a.default.createElement("path",{fillRule:"evenodd",d:"M11.53.47a.75.75 0 0 0-1.061 0l-4.47 4.47L1.529.47A.75.75 0 1 0 .468 1.531l4.47 4.47-4.47 4.47a.75.75 0 1 0 1.061 1.061l4.47-4.47 4.47 4.47a.75.75 0 1 0 1.061-1.061l-4.47-4.47 4.47-4.47a.75.75 0 0 0 0-1.061z"}))};i.defaultProps={viewBox:"0 0 12 12"},t.default=i},xOhs:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={white:"#fff",gray:"#484848",grayLight:"#82888a",grayLighter:"#cacccd",grayLightest:"#f2f2f2",borderMedium:"#c4c4c4",border:"#dbdbdb",borderLight:"#e4e7e7",borderLighter:"#eceeee",borderBright:"#f4f5f5",primary:"#00a699",primaryShade_1:"#33dacd",primaryShade_2:"#66e2da",primaryShade_3:"#80e8e0",primaryShade_4:"#b2f1ec",primary_dark:"#008489",secondary:"#007a87",yellow:"#ffe8bc",yellow_dark:"#ffce71"};t.default={reactDates:{zIndex:0,border:{input:{border:0,borderTop:0,borderRight:0,borderBottom:"2px solid transparent",borderLeft:0,outlineFocused:0,borderFocused:0,borderTopFocused:0,borderLeftFocused:0,borderBottomFocused:"2px solid "+String(r.primary_dark),borderRightFocused:0,borderRadius:0},pickerInput:{borderWidth:1,borderStyle:"solid",borderRadius:2}},color:{core:r,disabled:r.grayLightest,background:r.white,backgroundDark:"#f2f2f2",backgroundFocused:r.white,border:"rgb(219, 219, 219)",text:r.gray,textDisabled:r.border,textFocused:"#007a87",placeholderText:"#757575",outside:{backgroundColor:r.white,backgroundColor_active:r.white,backgroundColor_hover:r.white,color:r.gray,color_active:r.gray,color_hover:r.gray},highlighted:{backgroundColor:r.yellow,backgroundColor_active:r.yellow_dark,backgroundColor_hover:r.yellow_dark,color:r.gray,color_active:r.gray,color_hover:r.gray},minimumNights:{backgroundColor:r.white,backgroundColor_active:r.white,backgroundColor_hover:r.white,borderColor:r.borderLighter,color:r.grayLighter,color_active:r.grayLighter,color_hover:r.grayLighter},hoveredSpan:{backgroundColor:r.primaryShade_4,backgroundColor_active:r.primaryShade_3,backgroundColor_hover:r.primaryShade_4,borderColor:r.primaryShade_3,borderColor_active:r.primaryShade_3,borderColor_hover:r.primaryShade_3,color:r.secondary,color_active:r.secondary,color_hover:r.secondary},selectedSpan:{backgroundColor:r.primaryShade_2,backgroundColor_active:r.primaryShade_1,backgroundColor_hover:r.primaryShade_1,borderColor:r.primaryShade_1,borderColor_active:r.primary,borderColor_hover:r.primary,color:r.white,color_active:r.white,color_hover:r.white},selected:{backgroundColor:r.primary,backgroundColor_active:r.primary,backgroundColor_hover:r.primary,borderColor:r.primary,borderColor_active:r.primary,borderColor_hover:r.primary,color:r.white,color_active:r.white,color_hover:r.white},blocked_calendar:{backgroundColor:r.grayLighter,backgroundColor_active:r.grayLighter,backgroundColor_hover:r.grayLighter,borderColor:r.grayLighter,borderColor_active:r.grayLighter,borderColor_hover:r.grayLighter,color:r.grayLight,color_active:r.grayLight,color_hover:r.grayLight},blocked_out_of_range:{backgroundColor:r.white,backgroundColor_active:r.white,backgroundColor_hover:r.white,borderColor:r.borderLight,borderColor_active:r.borderLight,borderColor_hover:r.borderLight,color:r.grayLighter,color_active:r.grayLighter,color_hover:r.grayLighter}},spacing:{dayPickerHorizontalPadding:9,captionPaddingTop:22,captionPaddingBottom:37,inputPadding:0,displayTextPaddingVertical:void 0,displayTextPaddingTop:11,displayTextPaddingBottom:9,displayTextPaddingHorizontal:void 0,displayTextPaddingLeft:11,displayTextPaddingRight:11,displayTextPaddingVertical_small:void 0,displayTextPaddingTop_small:7,displayTextPaddingBottom_small:5,displayTextPaddingHorizontal_small:void 0,displayTextPaddingLeft_small:7,displayTextPaddingRight_small:7},sizing:{inputWidth:130,inputWidth_small:97,arrowWidth:24},noScrollBarOnVerticalScrollable:!1,font:{size:14,captionSize:18,input:{size:19,lineHeight:"24px",size_small:15,lineHeight_small:"18px",letterSpacing_small:"0.2px",styleDisabled:"italic"}}}}},xoj2:function(e,t,n){"use strict";var r=n("rQy3");e.exports=function(){return"function"==typeof Object.values?Object.values:r}},yLpj:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},yLpt:function(e,t,n){"use strict";var r=n("FufO");e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r<t.length;++r)n[t[r]]=t[r];var o=Object.assign({},n),a="";for(var i in o)a+=i;return e!==a}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?r:Object.assign:r}},yN6O:function(e,t,n){"use strict";var r=n("KtDd"),o=n("Yesc"),a=n("aBsX"),i=n("3iup"),c=n("3HW2"),s=n("PFEc");e.exports=function(){var e=s(this),t=c(a(e,"length")),n=1;arguments.length>0&&void 0!==arguments[0]&&(n=i(arguments[0]));var l=r(e,0);return o(l,e,t,0,n),l}},yc2e:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce((function(e,t){return(0,r.default)({},e,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},t,o.default.oneOfType([o.default.string,o.default.func,o.default.node])))}),{})};var r=a(n("Koq/")),o=a(n("17x9"));function a(e){return e&&e.__esModule?e:{default:e}}},ym77:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("BZp5"),o=n("hE48"),a=n("qdes"),i=n("cDcd"),c=n("KCH1"),s=[].concat(["baseId","unstable_idCountRef","setBaseId"],["id"]),l=Object(a.a)({keys:s,useOptions:function(e,t){var n=Object(i.useContext)(c.a),o=Object(i.useState)((function(){return e.unstable_idCountRef?(e.unstable_idCountRef.current+=1,"-"+e.unstable_idCountRef.current):e.baseId?"-"+n(""):""}))[0],a=Object(i.useMemo)((function(){return e.baseId||n()}),[e.baseId,n]),s=t.id||e.id||""+a+o;return Object(r.b)(Object(r.b)({},e),{},{id:s})},useProps:function(e,t){return Object(r.b)({id:e.id},t)}});Object(o.a)({as:"div",useHook:l})},yyeE:function(e,t,n){"use strict";var r=n("j1Hc"),o=r("%Math%"),a=r("%Number%");e.exports=a.MAX_SAFE_INTEGER||o.pow(2,53)-1},zGFp:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("BZp5"),o=n("hE48"),a=n("qdes"),i=n("uqqE"),c=Object(a.a)({name:"Role",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,o=Object(r.a)(e,["unstable_system"]),a=t.unstable_system,c=Object(r.a)(t,["unstable_system"]);return!(n!==a&&!Object(i.a)(n,a))&&Object(i.a)(o,c)}});Object(o.a)({as:"div",useHook:c})},zN8g:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=l(n("Koq/")),a=l(n("cDcd")),i=l(n("17x9")),c=n("Hsqg"),s=n("TG4+");function l(e){return e&&e.__esModule?e:{default:e}}var u=(0,c.forbidExtraProps)((0,o.default)({},s.withStylesPropTypes,{unicode:i.default.string.isRequired,label:i.default.string.isRequired,action:i.default.string.isRequired,block:i.default.bool}));function d(e){var t=e.unicode,n=e.label,o=e.action,i=e.block,c=e.styles;return a.default.createElement("li",(0,s.css)(c.KeyboardShortcutRow,i&&c.KeyboardShortcutRow__block),a.default.createElement("div",(0,s.css)(c.KeyboardShortcutRow_keyContainer,i&&c.KeyboardShortcutRow_keyContainer__block),a.default.createElement("span",r({},(0,s.css)(c.KeyboardShortcutRow_key),{role:"img","aria-label":String(n)+","}),t)),a.default.createElement("div",(0,s.css)(c.KeyboardShortcutRow_action),o))}d.propTypes=u,d.defaultProps={block:!1},t.default=(0,s.withStyles)((function(e){return{KeyboardShortcutRow:{listStyle:"none",margin:"6px 0"},KeyboardShortcutRow__block:{marginBottom:16},KeyboardShortcutRow_keyContainer:{display:"inline-block",whiteSpace:"nowrap",textAlign:"right",marginRight:6},KeyboardShortcutRow_keyContainer__block:{textAlign:"left",display:"inline"},KeyboardShortcutRow_key:{fontFamily:"monospace",fontSize:12,textTransform:"uppercase",background:e.reactDates.color.core.grayLightest,padding:"2px 6px"},KeyboardShortcutRow_action:{display:"inline",wordBreak:"break-word",marginLeft:8}}}))(d)},zTEx:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("hE48"),o=n("qdes"),a=(n("cDcd"),n("KA1K"),n("kTC8")),i=n("mjVI"),c=Object(o.a)({name:"ToolbarItem",compose:a.b,keys:i.b}),s=Object(r.a)({as:"button",memo:!0,useHook:c})},zfJ5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=v(n("Koq/")),a=v(n("cDcd")),i=v(n("17x9")),c=n("Hsqg"),s=n("TG4+"),l=n("vV+G"),u=v(n("yc2e")),d=v(n("0XP8")),f=v(n("gZI3")),p=v(n("9gmn")),b=v(n("DHWS")),h=v(n("aE6U")),m=n("Fv1B");function v(e){return e&&e.__esModule?e:{default:e}}function g(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var y=(0,c.forbidExtraProps)((0,o.default)({},s.withStylesPropTypes,{navPrev:i.default.node,navNext:i.default.node,orientation:h.default,onPrevMonthClick:i.default.func,onNextMonthClick:i.default.func,phrases:i.default.shape((0,u.default)(l.DayPickerNavigationPhrases)),isRTL:i.default.bool})),O={navPrev:null,navNext:null,orientation:m.HORIZONTAL_ORIENTATION,onPrevMonthClick:function(){},onNextMonthClick:function(){},phrases:l.DayPickerNavigationPhrases,isRTL:!1};function j(e){var t=e.navPrev,n=e.navNext,o=e.onPrevMonthClick,i=e.onNextMonthClick,c=e.orientation,l=e.phrases,u=e.isRTL,h=e.styles,v=c===m.HORIZONTAL_ORIENTATION,y=c!==m.HORIZONTAL_ORIENTATION,O=c===m.VERTICAL_SCROLLABLE,j=t,w=n,x=!1,_=!1;if(!j){x=!0;var E=y?p.default:d.default;u&&!y&&(E=f.default),j=a.default.createElement(E,(0,s.css)(v&&h.DayPickerNavigation_svg__horizontal,y&&h.DayPickerNavigation_svg__vertical))}if(!w){_=!0;var k=y?b.default:f.default;u&&!y&&(k=d.default),w=a.default.createElement(k,(0,s.css)(v&&h.DayPickerNavigation_svg__horizontal,y&&h.DayPickerNavigation_svg__vertical))}var S=O?_:_||x;return a.default.createElement("div",s.css.apply(void 0,[h.DayPickerNavigation,v&&h.DayPickerNavigation__horizontal].concat(g(y&&[h.DayPickerNavigation__vertical,S&&h.DayPickerNavigation__verticalDefault]),g(O&&[h.DayPickerNavigation__verticalScrollable,S&&h.DayPickerNavigation__verticalScrollableDefault]))),!O&&a.default.createElement("div",r({role:"button",tabIndex:"0"},s.css.apply(void 0,[h.DayPickerNavigation_button,x&&h.DayPickerNavigation_button__default].concat(g(v&&[h.DayPickerNavigation_button__horizontal].concat(g(x&&[h.DayPickerNavigation_button__horizontalDefault,!u&&h.DayPickerNavigation_leftButton__horizontalDefault,u&&h.DayPickerNavigation_rightButton__horizontalDefault]))),g(y&&[h.DayPickerNavigation_button__vertical].concat(g(x&&[h.DayPickerNavigation_button__verticalDefault,h.DayPickerNavigation_prevButton__verticalDefault]))))),{"aria-label":l.jumpToPrevMonth,onClick:o,onKeyUp:function(e){var t=e.key;"Enter"!==t&&" "!==t||o(e)},onMouseUp:function(e){e.currentTarget.blur()}}),j),a.default.createElement("div",r({role:"button",tabIndex:"0"},s.css.apply(void 0,[h.DayPickerNavigation_button,_&&h.DayPickerNavigation_button__default].concat(g(v&&[h.DayPickerNavigation_button__horizontal].concat(g(_&&[h.DayPickerNavigation_button__horizontalDefault,u&&h.DayPickerNavigation_leftButton__horizontalDefault,!u&&h.DayPickerNavigation_rightButton__horizontalDefault]))),g(y&&[h.DayPickerNavigation_button__vertical,h.DayPickerNavigation_nextButton__vertical].concat(g(_&&[h.DayPickerNavigation_button__verticalDefault,h.DayPickerNavigation_nextButton__verticalDefault,O&&h.DayPickerNavigation_nextButton__verticalScrollableDefault]))))),{"aria-label":l.jumpToNextMonth,onClick:i,onKeyUp:function(e){var t=e.key;"Enter"!==t&&" "!==t||i(e)},onMouseUp:function(e){e.currentTarget.blur()}}),w))}j.propTypes=y,j.defaultProps=O,t.default=(0,s.withStyles)((function(e){var t=e.reactDates,n=t.color;return{DayPickerNavigation:{position:"relative",zIndex:t.zIndex+2},DayPickerNavigation__horizontal:{height:0},DayPickerNavigation__vertical:{},DayPickerNavigation__verticalScrollable:{},DayPickerNavigation__verticalDefault:{position:"absolute",width:"100%",height:52,bottom:0,left:0},DayPickerNavigation__verticalScrollableDefault:{position:"relative"},DayPickerNavigation_button:{cursor:"pointer",userSelect:"none",border:0,padding:0,margin:0},DayPickerNavigation_button__default:{border:"1px solid "+String(n.core.borderLight),backgroundColor:n.background,color:n.placeholderText,":focus":{border:"1px solid "+String(n.core.borderMedium)},":hover":{border:"1px solid "+String(n.core.borderMedium)},":active":{background:n.backgroundDark}},DayPickerNavigation_button__horizontal:{},DayPickerNavigation_button__horizontalDefault:{position:"absolute",top:18,lineHeight:.78,borderRadius:3,padding:"6px 9px"},DayPickerNavigation_leftButton__horizontalDefault:{left:22},DayPickerNavigation_rightButton__horizontalDefault:{right:22},DayPickerNavigation_button__vertical:{},DayPickerNavigation_button__verticalDefault:{padding:5,background:n.background,boxShadow:"0 0 5px 2px rgba(0, 0, 0, 0.1)",position:"relative",display:"inline-block",height:"100%",width:"50%"},DayPickerNavigation_prevButton__verticalDefault:{},DayPickerNavigation_nextButton__verticalDefault:{borderLeft:0},DayPickerNavigation_nextButton__verticalScrollableDefault:{width:"100%"},DayPickerNavigation_svg__horizontal:{height:19,width:19,fill:n.core.grayLight,display:"block"},DayPickerNavigation_svg__vertical:{height:42,width:42,fill:n.text,display:"block"}}}))(j)},zt9T:function(e,t,n){"use strict";var r=n("jB5C");e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,a=n.onlyScrollIfNeeded,i=n.alignWithTop,c=n.alignWithLeft,s=n.offsetTop||0,l=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;o=void 0===o||o;var f=r.isWindow(t),p=r.offset(e),b=r.outerHeight(e),h=r.outerWidth(e),m=void 0,v=void 0,g=void 0,y=void 0,O=void 0,j=void 0,w=void 0,x=void 0,_=void 0,E=void 0;f?(w=t,E=r.height(w),_=r.width(w),x={left:r.scrollLeft(w),top:r.scrollTop(w)},O={left:p.left-x.left-l,top:p.top-x.top-s},j={left:p.left+h-(x.left+_)+d,top:p.top+b-(x.top+E)+u},y=x):(m=r.offset(t),v=t.clientHeight,g=t.clientWidth,y={left:t.scrollLeft,top:t.scrollTop},O={left:p.left-(m.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-l,top:p.top-(m.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-s},j={left:p.left+h-(m.left+g+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:p.top+b-(m.top+v+(parseFloat(r.css(t,"borderBottomWidth"))||0))+u}),O.top<0||j.top>0?!0===i?r.scrollTop(t,y.top+O.top):!1===i?r.scrollTop(t,y.top+j.top):O.top<0?r.scrollTop(t,y.top+O.top):r.scrollTop(t,y.top+j.top):a||((i=void 0===i||!!i)?r.scrollTop(t,y.top+O.top):r.scrollTop(t,y.top+j.top)),o&&(O.left<0||j.left>0?!0===c?r.scrollLeft(t,y.left+O.left):!1===c?r.scrollLeft(t,y.left+j.left):O.left<0?r.scrollLeft(t,y.left+O.left):r.scrollLeft(t,y.left+j.left):a||((c=void 0===c||!!c)?r.scrollLeft(t,y.left+O.left):r.scrollLeft(t,y.left+j.left)))}}}); \ No newline at end of file diff --git a/wp-includes/js/dist/core-data.js b/wp-includes/js/dist/core-data.js index 7db69229f3..aaa4419a0d 100644 --- a/wp-includes/js/dist/core-data.js +++ b/wp-includes/js/dist/core-data.js @@ -2021,6 +2021,15 @@ const defaultEntities = [{ context: 'edit' }, key: 'stylesheet' +}, { + label: Object(external_wp_i18n_["__"])('Plugins'), + name: 'plugin', + kind: 'root', + baseURL: '/wp/v2/plugins', + baseURLParams: { + context: 'edit' + }, + key: 'plugin' }]; const kinds = [{ name: 'postType', diff --git a/wp-includes/js/dist/core-data.min.js b/wp-includes/js/dist/core-data.min.js index df7224e615..4e9ef1d3e6 100644 --- a/wp-includes/js/dist/core-data.min.js +++ b/wp-includes/js/dist/core-data.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.coreData=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="dsJ0")}({"1ZqX":function(e,t){e.exports=window.wp.data},"7Cbv":function(e,t,n){"use strict";var r,i=new Uint8Array(16);function s(){if(!r&&!(r="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 r(i)}var o=/^(?:[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 a=function(e){return"string"==typeof e&&o.test(e)},c=[],u=0;u<256;++u)c.push((u+256).toString(16).substr(1));var l=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(!a(n))throw TypeError("Stringified UUID is invalid");return n};t.a=function(e,t,n){var r=(e=e||{}).random||(e.rng||s)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return l(r)}},FtRg:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){var n=e._map,r=e._arrayTreeMap,i=e._objectTreeMap;if(n.has(t))return n.get(t);for(var s=Object.keys(t).sort(),o=Array.isArray(t)?r:i,a=0;a<s.length;a++){var c=s[a];if(void 0===(o=o.get(c)))return;var u=t[c];if(void 0===(o=o.get(u)))return}var l=o.get("_ekm_value");return l?(n.delete(l[0]),l[0]=t,o.set("_ekm_value",l),n.set(t,l),l):void 0}var o=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.clear(),t instanceof e){var n=[];t.forEach((function(e,t){n.push([t,e])})),t=n}if(null!=t)for(var r=0;r<t.length;r++)this.set(t[r][0],t[r][1])}var t,n,o;return t=e,(n=[{key:"set",value:function(t,n){if(null===t||"object"!==r(t))return this._map.set(t,n),this;for(var i=Object.keys(t).sort(),s=[t,n],o=Array.isArray(t)?this._arrayTreeMap:this._objectTreeMap,a=0;a<i.length;a++){var c=i[a];o.has(c)||o.set(c,new e),o=o.get(c);var u=t[c];o.has(u)||o.set(u,new e),o=o.get(u)}var l=o.get("_ekm_value");return l&&this._map.delete(l[0]),o.set("_ekm_value",s),this._map.set(t,s),this}},{key:"get",value:function(e){if(null===e||"object"!==r(e))return this._map.get(e);var t=s(this,e);return t?t[1]:void 0}},{key:"has",value:function(e){return null===e||"object"!==r(e)?this._map.has(e):void 0!==s(this,e)}},{key:"delete",value:function(e){return!!this.has(e)&&(this.set(e,void 0),!0)}},{key:"forEach",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(i,s){null!==s&&"object"===r(s)&&(i=i[1]),e.call(n,i,s,t)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}])&&i(t.prototype,n),o&&i(t,o),e}();e.exports=o},GRId:function(e,t){e.exports=window.wp.element},HSyU:function(e,t){e.exports=window.wp.blocks},Mmq9:function(e,t){e.exports=window.wp.url},NMb1:function(e,t){e.exports=window.wp.deprecated},YLtl:function(e,t){e.exports=window.lodash},dsJ0:function(e,t,n){"use strict";n.r(t),n.d(t,"store",(function(){return $t})),n.d(t,"EntityProvider",(function(){return Pt})),n.d(t,"useEntityId",(function(){return Dt})),n.d(t,"useEntityProp",(function(){return qt})),n.d(t,"useEntityBlockEditor",(function(){return Nt})),n.d(t,"__experimentalFetchLinkSuggestions",(function(){return Vt})),n.d(t,"__experimentalFetchUrlData",(function(){return Ft}));var r={};n.r(r),n.d(r,"receiveUserQuery",(function(){return T})),n.d(r,"receiveCurrentUser",(function(){return S})),n.d(r,"addEntities",(function(){return I})),n.d(r,"receiveEntityRecords",(function(){return U})),n.d(r,"receiveCurrentTheme",(function(){return x})),n.d(r,"__experimentalReceiveCurrentGlobalStylesId",(function(){return A})),n.d(r,"__experimentalReceiveThemeBaseGlobalStyles",(function(){return C})),n.d(r,"receiveThemeSupports",(function(){return L})),n.d(r,"receiveEmbedPreview",(function(){return P})),n.d(r,"deleteEntityRecord",(function(){return D})),n.d(r,"editEntityRecord",(function(){return q})),n.d(r,"undo",(function(){return N})),n.d(r,"redo",(function(){return M})),n.d(r,"__unstableCreateUndoLevel",(function(){return V})),n.d(r,"saveEntityRecord",(function(){return G})),n.d(r,"__experimentalBatch",(function(){return F})),n.d(r,"saveEditedEntityRecord",(function(){return B})),n.d(r,"__experimentalSaveSpecifiedEntityEdits",(function(){return Q})),n.d(r,"receiveUploadPermissions",(function(){return Y})),n.d(r,"receiveUserPermission",(function(){return $})),n.d(r,"receiveAutosaves",(function(){return H}));var i={};n.r(i),n.d(i,"isRequestingEmbedPreview",(function(){return ge})),n.d(i,"getAuthors",(function(){return _e})),n.d(i,"getCurrentUser",(function(){return Re})),n.d(i,"getUserQueryResults",(function(){return Oe})),n.d(i,"getEntitiesByKind",(function(){return we})),n.d(i,"getEntity",(function(){return je})),n.d(i,"getEntityRecord",(function(){return ke})),n.d(i,"__experimentalGetEntityRecordNoResolver",(function(){return Te})),n.d(i,"getRawEntityRecord",(function(){return Se})),n.d(i,"hasEntityRecords",(function(){return Ie})),n.d(i,"getEntityRecords",(function(){return Ue})),n.d(i,"__experimentalGetDirtyEntityRecords",(function(){return xe})),n.d(i,"__experimentalGetEntitiesBeingSaved",(function(){return Ae})),n.d(i,"getEntityRecordEdits",(function(){return Ce})),n.d(i,"getEntityRecordNonTransientEdits",(function(){return Le})),n.d(i,"hasEditsForEntityRecord",(function(){return Pe})),n.d(i,"getEditedEntityRecord",(function(){return De})),n.d(i,"isAutosavingEntityRecord",(function(){return qe})),n.d(i,"isSavingEntityRecord",(function(){return Ne})),n.d(i,"isDeletingEntityRecord",(function(){return Me})),n.d(i,"getLastEntitySaveError",(function(){return Ve})),n.d(i,"getLastEntityDeleteError",(function(){return Ge})),n.d(i,"getUndoEdit",(function(){return Be})),n.d(i,"getRedoEdit",(function(){return Qe})),n.d(i,"hasUndo",(function(){return Ye})),n.d(i,"hasRedo",(function(){return $e})),n.d(i,"getCurrentTheme",(function(){return He})),n.d(i,"__experimentalGetCurrentGlobalStylesId",(function(){return Ke})),n.d(i,"getThemeSupports",(function(){return We})),n.d(i,"getEmbedPreview",(function(){return ze})),n.d(i,"isPreviewEmbedFallback",(function(){return Xe})),n.d(i,"canUser",(function(){return Je})),n.d(i,"canUserEditEntityRecord",(function(){return Ze})),n.d(i,"getAutosaves",(function(){return et})),n.d(i,"getAutosave",(function(){return tt})),n.d(i,"hasFetchedAutosaves",(function(){return nt})),n.d(i,"getReferenceByDistinctEdits",(function(){return rt})),n.d(i,"__experimentalGetTemplateForLink",(function(){return it})),n.d(i,"__experimentalGetCurrentThemeBaseGlobalStyles",(function(){return st}));var s={};n.r(s),n.d(s,"getAuthors",(function(){return at})),n.d(s,"getCurrentUser",(function(){return ct})),n.d(s,"getEntityRecord",(function(){return ut})),n.d(s,"getRawEntityRecord",(function(){return lt})),n.d(s,"getEditedEntityRecord",(function(){return dt})),n.d(s,"getEntityRecords",(function(){return ft})),n.d(s,"getCurrentTheme",(function(){return pt})),n.d(s,"getThemeSupports",(function(){return yt})),n.d(s,"getEmbedPreview",(function(){return bt})),n.d(s,"canUser",(function(){return vt})),n.d(s,"canUserEditEntityRecord",(function(){return ht})),n.d(s,"getAutosaves",(function(){return Et})),n.d(s,"getAutosave",(function(){return mt})),n.d(s,"__experimentalGetTemplateForLink",(function(){return gt})),n.d(s,"__experimentalGetCurrentGlobalStylesId",(function(){return _t})),n.d(s,"__experimentalGetCurrentThemeBaseGlobalStyles",(function(){return Rt}));var o=n("1ZqX"),a=n("YLtl"),c=n("rl8x"),u=n.n(c);var l=e=>t=>(n,r)=>void 0===n||e(r)?t(n,r):n;var d=e=>t=>(n,r)=>t(n,e(r));function f(e,t){if(!e)return t;let n=!1;const r={};for(const i in t)Object(a.isEqual)(e[i],t[i])?r[i]=e[i]:(n=!0,r[i]=t[i]);if(!n)return e;for(const t in e)r.hasOwnProperty(t)||(r[t]=e[t]);return r}var p=e=>t=>function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;const i=r[e];if(void 0===i)return n;const s=t(n[i],r);return s===n[i]?n:{...n,[i]:s}},y=n("ywyh"),b=n.n(y),v=n("l3Sj"),h=n("7Cbv"),E=n("Mmq9"),m=n("NMb1"),g=n.n(m);function _(e,t){return{type:"RECEIVE_ITEMS",items:Object(a.castArray)(e),persistedEdits:t}}function R(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return{type:"REMOVE_ITEMS",itemIds:Object(a.castArray)(n),kind:e,name:t,invalidateCache:r}}function O(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return{..._(e,n),query:t}}let w=null;async function j(e){if(null===w){const e=await b()({path:"/batch/v1",method:"OPTIONS"});w=e.endpoints[0].args.requests.maxItems}const t=[];for(const n of Object(a.chunk)(e,w)){const e=await b()({path:"/batch/v1",method:"POST",data:{validation:"require-all-validate",requests:n.map(e=>({path:e.path,body:e.data,method:e.method,headers:e.headers}))}});let r;r=e.failed?e.responses.map(e=>({error:null==e?void 0:e.body})):e.responses.map(e=>{const t={};return e.status>=200&&e.status<300?t.output=e.body:t.error=e.body,t}),t.push(...r)}return t}class k{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.set=new Set(...t),this.subscribers=new Set}get size(){return this.set.size}add(){return this.set.add(...arguments),this.subscribers.forEach(e=>e()),this}delete(){const e=this.set.delete(...arguments);return this.subscribers.forEach(e=>e()),e}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}}function T(e,t){return{type:"RECEIVE_USER_QUERY",users:Object(a.castArray)(t),queryID:e}}function S(e){return{type:"RECEIVE_CURRENT_USER",currentUser:e}}function I(e){return{type:"ADD_ENTITIES",entities:e}}function U(e,t,n,r){let i,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5?arguments[5]:void 0;return"postType"===e&&(n=Object(a.castArray)(n).map(e=>"auto-draft"===e.status?{...e,title:""}:e)),i=r?O(n,r,o):_(n,o),{...i,kind:e,name:t,invalidateCache:s}}function x(e){return{type:"RECEIVE_CURRENT_THEME",currentTheme:e}}function A(e){return{type:"RECEIVE_CURRENT_GLOBAL_STYLES_ID",id:e}}function C(e,t){return{type:"RECEIVE_THEME_GLOBAL_STYLES",stylesheet:e,globalStyles:t}}function L(){return g()("wp.data.dispatch( 'core' ).receiveThemeSupports",{since:"5.9"}),{type:"DO_NOTHING"}}function P(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}const D=function(e,t,n,r){let{__unstableFetch:i=b.a}=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return async s=>{let{dispatch:o}=s;const c=await o(ee(e)),u=Object(a.find)(c,{kind:e,name:t});let l,d=!1;if(!u||null!=u&&u.__experimentalNoFetch)return;const f=await o.__unstableAcquireStoreLock("core",["entities","data",e,t,n],{exclusive:!0});try{o({type:"DELETE_ENTITY_RECORD_START",kind:e,name:t,recordId:n});try{let s=`${u.baseURL}/${n}`;r&&(s=Object(E.addQueryArgs)(s,r)),d=await i({path:s,method:"DELETE"}),await o(R(e,t,n,!0))}catch(e){l=e}return o({type:"DELETE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:n,error:l}),d}finally{o.__unstableReleaseStoreLock(f)}}},q=function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return s=>{let{select:o,dispatch:c}=s;const u=o.getEntity(e,t);if(!u)throw new Error(`The entity being edited (${e}, ${t}) does not have a loaded config.`);const{transientEdits:l={},mergedEdits:d={}}=u,f=o.getRawEntityRecord(e,t,n),p=o.getEditedEntityRecord(e,t,n),y={kind:e,name:t,recordId:n,edits:Object.keys(r).reduce((e,t)=>{const n=f[t],i=p[t],s=d[t]?{...i,...r[t]}:r[t];return e[t]=Object(a.isEqual)(n,s)?void 0:s,e},{}),transientEdits:l};c({type:"EDIT_ENTITY_RECORD",...y,meta:{undo:!i.undoIgnore&&{...y,edits:Object.keys(r).reduce((e,t)=>(e[t]=p[t],e),{})}}})}},N=()=>e=>{let{select:t,dispatch:n}=e;const r=t.getUndoEdit();r&&n({type:"EDIT_ENTITY_RECORD",...r,meta:{isUndo:!0}})},M=()=>e=>{let{select:t,dispatch:n}=e;const r=t.getRedoEdit();r&&n({type:"EDIT_ENTITY_RECORD",...r,meta:{isRedo:!0}})};function V(){return{type:"CREATE_UNDO_LEVEL"}}const G=function(e,t,n){let{isAutosave:r=!1,__unstableFetch:i=b.a}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return async s=>{let{select:o,resolveSelect:c,dispatch:u}=s;const l=await u(ee(e)),d=Object(a.find)(l,{kind:e,name:t});if(!d||null!=d&&d.__experimentalNoFetch)return;const f=d.key||K,p=n[f],y=await u.__unstableAcquireStoreLock("core",["entities","data",e,t,p||Object(h.a)()],{exclusive:!0});try{for(const[r,i]of Object.entries(n))if("function"==typeof i){const s=i(o.getEditedEntityRecord(e,t,p));u.editEntityRecord(e,t,p,{[r]:s},{undoIgnore:!0}),n[r]=s}let s,a;u({type:"SAVE_ENTITY_RECORD_START",kind:e,name:t,recordId:p,isAutosave:r});try{const a=`${d.baseURL}${p?"/"+p:""}`,l=o.getRawEntityRecord(e,t,p);if(r){const r=o.getCurrentUser(),d=r?r.id:void 0,f=c.getAutosave(l.type,l.id,d);let p={...l,...f,...n};if(p=Object.keys(p).reduce((e,t)=>(["title","excerpt","content"].includes(t)&&(e[t]=p[t]),e),{status:"auto-draft"===p.status?"draft":p.status}),s=await i({path:a+"/autosaves",method:"POST",data:p}),l.id===s.id){let n={...l,...p,...s};n=Object.keys(n).reduce((e,t)=>(["title","excerpt","content"].includes(t)?e[t]=n[t]:e[t]="status"===t?"auto-draft"===l.status&&"draft"===n.status?n.status:l.status:l[t],e),{}),u.receiveEntityRecords(e,t,n,void 0,!0)}else u.receiveAutosaves(l.id,s)}else{let r=n;d.__unstablePrePersist&&(r={...r,...d.__unstablePrePersist(l,r)}),s=await i({path:a,method:p?"PUT":"POST",data:r}),u.receiveEntityRecords(e,t,s,void 0,!0,r)}}catch(e){a=e}return u({type:"SAVE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:p,error:a,isAutosave:r}),s}finally{u.__unstableReleaseStoreLock(y)}}},F=e=>async t=>{let{dispatch:n}=t;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j,t=0,n=[];const r=new k;return{add(e){const i=++t;r.add(i);const s=e=>new Promise((t,s)=>{n.push({input:e,resolve:t,reject:s}),r.delete(i)});return Object(a.isFunction)(e)?Promise.resolve(e(s)).finally(()=>{r.delete(i)}):s(e)},async run(){let t;r.size&&await new Promise(e=>{const t=r.subscribe(()=>{r.size||(t(),e())})});try{if(t=await e(n.map(e=>{let{input:t}=e;return t})),t.length!==n.length)throw new Error("run: Array returned by processor must be same size as input array.")}catch(e){for(const{reject:t}of n)t(e);throw e}let i=!0;for(const[e,{resolve:r,reject:o}]of Object(a.zip)(t,n)){var s;if(null!=e&&e.error)o(e.error),i=!1;else r(null!==(s=null==e?void 0:e.output)&&void 0!==s?s:e)}return n=[],i}}}(),i={saveEntityRecord:(e,t,i,s)=>r.add(r=>n.saveEntityRecord(e,t,i,{...s,__unstableFetch:r})),saveEditedEntityRecord:(e,t,i,s)=>r.add(r=>n.saveEditedEntityRecord(e,t,i,{...s,__unstableFetch:r})),deleteEntityRecord:(e,t,i,s,o)=>r.add(r=>n.deleteEntityRecord(e,t,i,s,{...o,__unstableFetch:r}))},s=e.map(e=>e(i)),[,...o]=await Promise.all([r.run(),...s]);return o},B=(e,t,n,r)=>async i=>{let{select:s,dispatch:o}=i;if(!s.hasEditsForEntityRecord(e,t,n))return;const c=await o(ee(e)),u=Object(a.find)(c,{kind:e,name:t});if(!u)return;const l=u.key||K,d=s.getEntityRecordNonTransientEdits(e,t,n),f={[l]:n,...d};return await o.saveEntityRecord(e,t,f,r)},Q=(e,t,n,r,i)=>async s=>{let{select:o,dispatch:a}=s;if(!o.hasEditsForEntityRecord(e,t,n))return;const c=o.getEntityRecordNonTransientEdits(e,t,n),u={};for(const e in c)r.some(t=>t===e)&&(u[e]=c[e]);return await a.saveEntityRecord(e,t,u,i)};function Y(e){return{type:"RECEIVE_USER_PERMISSION",key:"create/media",isAllowed:e}}function $(e,t){return{type:"RECEIVE_USER_PERMISSION",key:e,isAllowed:t}}function H(e,t){return{type:"RECEIVE_AUTOSAVES",postId:e,autosaves:Object(a.castArray)(t)}}const K="id",W=["title","excerpt","content"],z=[{label:Object(v.__)("Base"),name:"__unstableBase",kind:"root",baseURL:"/"},{label:Object(v.__)("Site"),name:"site",kind:"root",baseURL:"/wp/v2/settings",getTitle:e=>Object(a.get)(e,["title"],Object(v.__)("Site Title"))},{label:Object(v.__)("Post Type"),name:"postType",kind:"root",key:"slug",baseURL:"/wp/v2/types",baseURLParams:{context:"edit"},rawAttributes:W},{name:"media",kind:"root",baseURL:"/wp/v2/media",baseURLParams:{context:"edit"},plural:"mediaItems",label:Object(v.__)("Media")},{name:"taxonomy",kind:"root",key:"slug",baseURL:"/wp/v2/taxonomies",baseURLParams:{context:"edit"},plural:"taxonomies",label:Object(v.__)("Taxonomy")},{name:"sidebar",kind:"root",baseURL:"/wp/v2/sidebars",plural:"sidebars",transientEdits:{blocks:!0},label:Object(v.__)("Widget areas")},{name:"widget",kind:"root",baseURL:"/wp/v2/widgets",baseURLParams:{context:"edit"},plural:"widgets",transientEdits:{blocks:!0},label:Object(v.__)("Widgets")},{name:"widgetType",kind:"root",baseURL:"/wp/v2/widget-types",baseURLParams:{context:"edit"},plural:"widgetTypes",label:Object(v.__)("Widget types")},{label:Object(v.__)("User"),name:"user",kind:"root",baseURL:"/wp/v2/users",baseURLParams:{context:"edit"},plural:"users"},{name:"comment",kind:"root",baseURL:"/wp/v2/comments",baseURLParams:{context:"edit"},plural:"comments",label:Object(v.__)("Comment")},{name:"menu",kind:"root",baseURL:"/wp/v2/menus",baseURLParams:{context:"edit"},plural:"menus",label:Object(v.__)("Menu")},{name:"menuItem",kind:"root",baseURL:"/wp/v2/menu-items",baseURLParams:{context:"edit"},plural:"menuItems",label:Object(v.__)("Menu Item"),rawAttributes:["title","content"]},{name:"menuLocation",kind:"root",baseURL:"/wp/v2/menu-locations",baseURLParams:{context:"edit"},plural:"menuLocations",label:Object(v.__)("Menu Location"),key:"name"},{name:"navigationArea",kind:"root",baseURL:"/wp/v2/block-navigation-areas",baseURLParams:{context:"edit"},plural:"navigationAreas",label:Object(v.__)("Navigation Area"),key:"name",getTitle:e=>null==e?void 0:e.description},{label:Object(v.__)("Global Styles"),name:"globalStyles",kind:"root",baseURL:"/wp/v2/global-styles",baseURLParams:{context:"edit"},plural:"globalStylesVariations",getTitle:e=>{var t;return(null==e||null===(t=e.title)||void 0===t?void 0:t.rendered)||(null==e?void 0:e.title)}},{label:Object(v.__)("Themes"),name:"theme",kind:"root",baseURL:"/wp/v2/themes",baseURLParams:{context:"edit"},key:"stylesheet"}],X=[{name:"postType",loadEntities:async function(){const e=await b()({path:"/wp/v2/types?context=edit"});return Object(a.map)(e,(e,t)=>{var n;const r=["wp_template","wp_template_part"].includes(t);return{kind:"postType",baseURL:`/${null!==(n=null==e?void 0:e.rest_namespace)&&void 0!==n?n:"wp/v2"}/${e.rest_base}`,baseURLParams:{context:"edit"},name:t,label:e.labels.singular_name,transientEdits:{blocks:!0,selection:!0},mergedEdits:{meta:!0},rawAttributes:W,getTitle:e=>{var t;return(null==e||null===(t=e.title)||void 0===t?void 0:t.rendered)||(null==e?void 0:e.title)||(r?Object(a.startCase)(e.slug):String(e.id))},__unstablePrePersist:r?void 0:J,__unstable_rest_base:e.rest_base}})}},{name:"taxonomy",loadEntities:async function(){const e=await b()({path:"/wp/v2/taxonomies?context=edit"});return Object(a.map)(e,(e,t)=>{var n;return{kind:"taxonomy",baseURL:`/${null!==(n=null==e?void 0:e.rest_namespace)&&void 0!==n?n:"wp/v2"}/${e.rest_base}`,baseURLParams:{context:"edit"},name:t,label:e.labels.singular_name}})}}],J=(e,t)=>{const n={};return"auto-draft"===(null==e?void 0:e.status)&&(t.status||n.status||(n.status="draft"),t.title&&"Auto Draft"!==t.title||n.title||null!=e&&e.title&&"Auto Draft"!==(null==e?void 0:e.title)||(n.title="")),n};const Z=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"get",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=Object(a.find)(z,{kind:e,name:t}),s="root"===e?"":Object(a.upperFirst)(Object(a.camelCase)(e)),o=Object(a.upperFirst)(Object(a.camelCase)(t))+(r?"s":""),c=r&&i.plural?Object(a.upperFirst)(Object(a.camelCase)(i.plural)):o;return`${n}${s}${c}`},ee=e=>async t=>{let{select:n,dispatch:r}=t,i=n.getEntitiesByKind(e);if(i&&0!==i.length)return i;const s=Object(a.find)(X,{name:e});return s?(i=await s.loadEntities(),r(I(i)),i):[]};var te=function(e){return"string"==typeof e?e.split(","):Array.isArray(e)?e:null};var ne=function(e){const t=new WeakMap;return n=>{let r;return t.has(n)?r=t.get(n):(r=e(n),Object(a.isObjectLike)(n)&&t.set(n,r)),r}}((function(e){const t={stableKey:"",page:1,perPage:10,fields:null,include:null,context:"default"},n=Object.keys(e).sort();for(let r=0;r<n.length;r++){const i=n[r];let s=e[i];switch(i){case"page":t[i]=Number(s);break;case"per_page":t.perPage=Number(s);break;case"context":t.context=s;break;default:"_fields"===i&&(t.fields=te(s),s=t.fields.join()),"include"===i&&(t.include=te(s).map(Number),s=t.include.join()),t.stableKey+=(t.stableKey?"&":"")+Object(E.addQueryArgs)("",{[i]:s}).slice(1)}}return t}));function re(e){const{query:t}=e;if(!t)return"default";return ne(t).context}function ie(e,t,n,r){if(1===n&&-1===r)return t;const i=(n-1)*r,s=Math.max(e.length,i+t.length),o=new Array(s);for(let n=0;n<s;n++){const r=n>=i&&n<i+t.length;o[n]=r?t[n-i]:e[n]}return o}const se=Object(a.flowRight)([l(e=>"query"in e),d(e=>e.query?{...e,...ne(e.query)}:e),p("context"),p("stableKey")])((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;const{type:n,page:r,perPage:i,key:s=K}=t;return"RECEIVE_ITEMS"!==n?e:ie(e||[],Object(a.map)(t.items,s),r,i)}));var oe=Object(o.combineReducers)({items:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_ITEMS":{const n=re(t),r=t.key||K;return{...e,[n]:{...e[n],...t.items.reduce((t,i)=>{var s;const o=i[r];return t[o]=f(null==e||null===(s=e[n])||void 0===s?void 0:s[o],i),t},{})}}}case"REMOVE_ITEMS":return Object(a.mapValues)(e,e=>Object(a.omit)(e,t.itemIds))}return e},itemIsComplete:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_ITEMS":{const n=re(t),{query:r,key:i=K}=t,s=r?ne(r):{},o=!r||!Array.isArray(s.fields);return{...e,[n]:{...e[n],...t.items.reduce((t,r)=>{var s;const a=r[i];return t[a]=(null==e||null===(s=e[n])||void 0===s?void 0:s[a])||o,t},{})}}}case"REMOVE_ITEMS":return Object(a.mapValues)(e,e=>Object(a.omit)(e,t.itemIds))}return e},queries:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_ITEMS":return se(e,t);case"REMOVE_ITEMS":const n=t.itemIds.reduce((e,t)=>(e[t]=!0,e),{});return Object(a.mapValues)(e,e=>Object(a.mapValues)(e,e=>Object(a.filter)(e,e=>!n[e])));default:return e}}});function ae(e){return Object(a.flowRight)([l(t=>t.name&&t.kind&&t.name===e.name&&t.kind===e.kind),d(t=>({...t,key:e.key||K}))])(Object(o.combineReducers)({queriedData:oe,edits:function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;switch(r.type){case"RECEIVE_ITEMS":if("default"!==(null!==(e=null==r||null===(t=r.query)||void 0===t?void 0:t.context)&&void 0!==e?e:"default"))return n;const i={...n};for(const e of r.items){const t=e[r.key],n=i[t];if(!n)continue;const s=Object.keys(n).reduce((t,i)=>(Object(a.isEqual)(n[i],Object(a.get)(e[i],"raw",e[i]))||r.persistedEdits&&Object(a.isEqual)(n[i],r.persistedEdits[i])||(t[i]=n[i]),t),{});Object.keys(s).length?i[t]=s:delete i[t]}return i;case"EDIT_ENTITY_RECORD":const s={...n[r.recordId],...r.edits};return Object.keys(s).forEach(e=>{void 0===s[e]&&delete s[e]}),{...n,[r.recordId]:s}}return n},saving:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SAVE_ENTITY_RECORD_START":case"SAVE_ENTITY_RECORD_FINISH":return{...e,[t.recordId]:{pending:"SAVE_ENTITY_RECORD_START"===t.type,error:t.error,isAutosave:t.isAutosave}}}return e},deleting:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DELETE_ENTITY_RECORD_START":case"DELETE_ENTITY_RECORD_FINISH":return{...e,[t.recordId]:{pending:"DELETE_ENTITY_RECORD_START"===t.type,error:t.error}}}return e}}))}function ce(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_ENTITIES":return[...e,...t.entities]}return e}const ue=[];let le;ue.offset=0;var de=Object(o.combineReducers)({terms:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_TERMS":return{...e,[t.taxonomy]:t.terms}}return e},users:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{byId:{},queries:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_USER_QUERY":return{byId:{...e.byId,...Object(a.keyBy)(t.users,"id")},queries:{...e.queries,[t.queryID]:Object(a.map)(t.users,e=>e.id)}}}return e},currentTheme:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_CURRENT_THEME":return t.currentTheme.stylesheet}return e},currentGlobalStylesId:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_CURRENT_GLOBAL_STYLES_ID":return t.id}return e},currentUser:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_CURRENT_USER":return t.currentUser}return e},themeBaseGlobalStyles:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_THEME_GLOBAL_STYLES":return{...e,[t.stylesheet]:t.globalStyles}}return e},taxonomies:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_TAXONOMIES":return t.taxonomies}return e},entities:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;const n=ce(e.config,t);let r=e.reducer;if(!r||n!==e.config){const e=Object(a.groupBy)(n,"kind");r=Object(o.combineReducers)(Object.entries(e).reduce((e,t)=>{let[n,r]=t;const i=Object(o.combineReducers)(r.reduce((e,t)=>({...e,[t.name]:ae(t)}),{}));return e[n]=i,e},{}))}const i=r(e.data,t);return i===e.data&&n===e.config&&r===e.reducer?e:{reducer:r,data:i,config:n}},undo:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ue,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"EDIT_ENTITY_RECORD":case"CREATE_UNDO_LEVEL":let n="CREATE_UNDO_LEVEL"===t.type;const r=!n&&(t.meta.isUndo||t.meta.isRedo);let i;if(n?t=le:r||(le=Object.keys(t.edits).some(e=>!t.transientEdits[e])?t:{...t,edits:{...le&&le.edits,...t.edits}}),r){if(i=[...e],i.offset=e.offset+(t.meta.isUndo?-1:1),!e.flattenedUndo)return i;n=!0,t=le}if(!t.meta.undo)return e;if(!n&&!Object.keys(t.edits).some(e=>!t.transientEdits[e]))return i=[...e],i.flattenedUndo={...e.flattenedUndo,...t.edits},i.offset=e.offset,i;i=i||e.slice(0,e.offset||void 0),i.offset=i.offset||0,i.pop(),n||i.push({kind:t.meta.undo.kind,name:t.meta.undo.name,recordId:t.meta.undo.recordId,edits:{...e.flattenedUndo,...t.meta.undo.edits}});const s=Object.values(t.meta.undo.edits).filter(e=>"function"!=typeof e),o=Object.values(t.edits).filter(e=>"function"!=typeof e);return u()(s,o)||i.push({kind:t.kind,name:t.name,recordId:t.recordId,edits:n?{...e.flattenedUndo,...t.edits}:t.edits}),i}return e},embedPreviews:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_EMBED_PREVIEW":const{url:n,preview:r}=t;return{...e,[n]:r}}return e},userPermissions:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_USER_PERMISSION":return{...e,[t.key]:t.isAllowed}}return e},autosaves:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_AUTOSAVES":const{postId:n,autosaves:r}=t;return{...e,[n]:r}}return e}}),fe=n("pPDe"),pe=n("FtRg"),ye=n.n(pe);const be=new WeakMap;function ve(e,t){var n,r;const{stableKey:i,page:s,perPage:o,include:c,fields:u,context:l}=ne(t);let d;if(null!==(n=e.queries)&&void 0!==n&&null!==(r=n[l])&&void 0!==r&&r[i]&&(d=e.queries[l][i]),!d)return null;const f=-1===o?0:(s-1)*o,p=-1===o?d.length:Math.min(f+o,d.length),y=[];for(let t=f;t<p;t++){var b;const n=d[t];if(Array.isArray(c)&&!c.includes(n))continue;if(null===(b=e.items[l])||void 0===b||!b.hasOwnProperty(n))return null;const r=e.items[l][n];let i;if(Array.isArray(u)){i={};for(let e=0;e<u.length;e++){const t=u[e].split("."),n=Object(a.get)(r,t);Object(a.set)(i,t,n)}}else{var v;if(null===(v=e.itemIsComplete[l])||void 0===v||!v[n])return null;i=r}y.push(i)}return y}const he=Object(fe.a)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=be.get(e);if(n){const e=n.get(t);if(void 0!==e)return e}else n=new ye.a,be.set(e,n);const r=ve(e,t);return n.set(t,r),r}));const Ee={},me=[],ge=Object(o.createRegistrySelector)(e=>(t,n)=>e("core").isResolving("getEmbedPreview",[n]));function _e(e,t){g()("select( 'core' ).getAuthors()",{since:"5.9",alternative:"select( 'core' ).getUsers({ who: 'authors' })"});const n=Object(E.addQueryArgs)("/wp/v2/users/?who=authors&per_page=100",t);return Oe(e,n)}function Re(e){return e.currentUser}const Oe=Object(fe.a)((e,t)=>{const n=e.users.queries[t];return Object(a.map)(n,t=>e.users.byId[t])},(e,t)=>[e.users.queries[t],e.users.byId]);function we(e,t){return Object(a.filter)(e.entities.config,{kind:t})}function je(e,t,n){return Object(a.find)(e.entities.config,{kind:t,name:n})}const ke=Object(fe.a)((e,t,n,r,i)=>{var s,o;const c=Object(a.get)(e.entities.data,[t,n,"queriedData"]);if(!c)return;const u=null!==(s=null==i?void 0:i.context)&&void 0!==s?s:"default";if(void 0===i){var l;if(null===(l=c.itemIsComplete[u])||void 0===l||!l[r])return;return c.items[u][r]}const d=null===(o=c.items[u])||void 0===o?void 0:o[r];if(d&&i._fields){const e={},t=te(i._fields);for(let n=0;n<t.length;n++){const r=t[n].split("."),i=Object(a.get)(d,r);Object(a.set)(e,r,i)}return e}return d},(e,t,n,r,i)=>{var s;const o=null!==(s=null==i?void 0:i.context)&&void 0!==s?s:"default";return[Object(a.get)(e.entities.data,[t,n,"queriedData","items",o,r]),Object(a.get)(e.entities.data,[t,n,"queriedData","itemIsComplete",o,r])]});function Te(e,t,n,r){return ke(e,t,n,r)}const Se=Object(fe.a)((e,t,n,r)=>{const i=ke(e,t,n,r);return i&&Object.keys(i).reduce((r,s)=>{var o,c;return o=je(e,t,n),c=s,(o.rawAttributes||[]).includes(c)?r[s]=Object(a.get)(i[s],"raw",i[s]):r[s]=i[s],r},{})},(e,t,n,r,i)=>{var s;const o=null!==(s=null==i?void 0:i.context)&&void 0!==s?s:"default";return[e.entities.config,Object(a.get)(e.entities.data,[t,n,"queriedData","items",o,r]),Object(a.get)(e.entities.data,[t,n,"queriedData","itemIsComplete",o,r])]});function Ie(e,t,n,r){return Array.isArray(Ue(e,t,n,r))}function Ue(e,t,n,r){const i=Object(a.get)(e.entities.data,[t,n,"queriedData"]);return i?he(i,r):me}const xe=Object(fe.a)(e=>{const{entities:{data:t}}=e,n=[];return Object.keys(t).forEach(r=>{Object.keys(t[r]).forEach(i=>{const s=Object.keys(t[r][i].edits).filter(t=>ke(e,r,i,t)&&Pe(e,r,i,t));if(s.length){const t=je(e,r,i);s.forEach(s=>{var o;const a=De(e,r,i,s);n.push({key:a[t.key||K],title:(null==t||null===(o=t.getTitle)||void 0===o?void 0:o.call(t,a))||"",name:i,kind:r})})}})}),n},e=>[e.entities.data]),Ae=Object(fe.a)(e=>{const{entities:{data:t}}=e,n=[];return Object.keys(t).forEach(r=>{Object.keys(t[r]).forEach(i=>{const s=Object.keys(t[r][i].saving).filter(t=>Ne(e,r,i,t));if(s.length){const t=je(e,r,i);s.forEach(s=>{var o;const a=De(e,r,i,s);n.push({key:a[t.key||K],title:(null==t||null===(o=t.getTitle)||void 0===o?void 0:o.call(t,a))||"",name:i,kind:r})})}})}),n},e=>[e.entities.data]);function Ce(e,t,n,r){return Object(a.get)(e.entities.data,[t,n,"edits",r])}const Le=Object(fe.a)((e,t,n,r)=>{const{transientEdits:i}=je(e,t,n)||{},s=Ce(e,t,n,r)||{};return i?Object.keys(s).reduce((e,t)=>(i[t]||(e[t]=s[t]),e),{}):s},(e,t,n,r)=>[e.entities.config,Object(a.get)(e.entities.data,[t,n,"edits",r])]);function Pe(e,t,n,r){return Ne(e,t,n,r)||Object.keys(Le(e,t,n,r)).length>0}const De=Object(fe.a)((e,t,n,r)=>({...Se(e,t,n,r),...Ce(e,t,n,r)}),(e,t,n,r,i)=>{var s;const o=null!==(s=null==i?void 0:i.context)&&void 0!==s?s:"default";return[e.entities.config,Object(a.get)(e.entities.data,[t,n,"queriedData","items",o,r]),Object(a.get)(e.entities.data,[t,n,"queriedData","itemIsComplete",o,r]),Object(a.get)(e.entities.data,[t,n,"edits",r])]});function qe(e,t,n,r){const{pending:i,isAutosave:s}=Object(a.get)(e.entities.data,[t,n,"saving",r],{});return Boolean(i&&s)}function Ne(e,t,n,r){return Object(a.get)(e.entities.data,[t,n,"saving",r,"pending"],!1)}function Me(e,t,n,r){return Object(a.get)(e.entities.data,[t,n,"deleting",r,"pending"],!1)}function Ve(e,t,n,r){return Object(a.get)(e.entities.data,[t,n,"saving",r,"error"])}function Ge(e,t,n,r){return Object(a.get)(e.entities.data,[t,n,"deleting",r,"error"])}function Fe(e){return e.undo.offset}function Be(e){return e.undo[e.undo.length-2+Fe(e)]}function Qe(e){return e.undo[e.undo.length+Fe(e)]}function Ye(e){return Boolean(Be(e))}function $e(e){return Boolean(Qe(e))}function He(e){return ke(e,"root","theme",e.currentTheme)}function Ke(e){return e.currentGlobalStylesId}function We(e){var t,n;return null!==(t=null===(n=He(e))||void 0===n?void 0:n.theme_supports)&&void 0!==t?t:Ee}function ze(e,t){return e.embedPreviews[t]}function Xe(e,t){const n=e.embedPreviews[t],r='<a href="'+t+'">'+t+"</a>";return!!n&&n.html===r}function Je(e,t,n,r){const i=Object(a.compact)([t,n,r]).join("/");return Object(a.get)(e,["userPermissions",i])}function Ze(e,t,n,r){const i=je(e,t,n);if(!i)return!1;return Je(e,"update",i.__unstable_rest_base,r)}function et(e,t,n){return e.autosaves[n]}function tt(e,t,n,r){if(void 0===r)return;const i=e.autosaves[n];return Object(a.find)(i,{author:r})}const nt=Object(o.createRegistrySelector)(e=>(t,n,r)=>e("core").hasFinishedResolution("getAutosaves",[n,r])),rt=Object(fe.a)(()=>[],e=>[e.undo.length,e.undo.offset,e.undo.flattenedUndo]);function it(e,t){const n=Ue(e,"postType","wp_template",{"find-template":t}),r=null!=n&&n.length?n[0]:null;return r?De(e,"postType","wp_template",r.id):r}function st(e){const t=He(e);return t?e.themeBaseGlobalStyles[t.stylesheet]:null}var ot=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return async t=>{let{resolveSelect:r}=t;await r[e](...n)}};const at=e=>async t=>{let{dispatch:n}=t;const r=Object(E.addQueryArgs)("/wp/v2/users/?who=authors&per_page=100",e),i=await b()({path:r});n.receiveUserQuery(r,i)},ct=()=>async e=>{let{dispatch:t}=e;const n=await b()({path:"/wp/v2/users/me"});t.receiveCurrentUser(n)},ut=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3?arguments[3]:void 0;return async i=>{let{select:s,dispatch:o}=i;const c=await o(ee(e)),u=Object(a.find)(c,{kind:e,name:t});if(!u||null!=u&&u.__experimentalNoFetch)return;const l=await o.__unstableAcquireStoreLock("core",["entities","data",e,t,n],{exclusive:!1});try{void 0!==r&&r._fields&&(r={...r,_fields:Object(a.uniq)([...te(r._fields)||[],u.key||K]).join()});const i=Object(E.addQueryArgs)(u.baseURL+(n?"/"+n:""),{...u.baseURLParams,...r});if(void 0!==r){r={...r,include:[n]};if(s.hasEntityRecords(e,t,r))return}const c=await b()({path:i});o.receiveEntityRecords(e,t,c,r)}catch(e){}finally{o.__unstableReleaseStoreLock(l)}}},lt=ot("getEntityRecord"),dt=ot("getEntityRecord"),ft=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return async r=>{let{dispatch:i}=r;const s=await i(ee(e)),o=Object(a.find)(s,{kind:e,name:t});if(!o||null!=o&&o.__experimentalNoFetch)return;const c=await i.__unstableAcquireStoreLock("core",["entities","data",e,t],{exclusive:!1});try{var u;n._fields&&(n={...n,_fields:Object(a.uniq)([...te(n._fields)||[],o.key||K]).join()});const r=Object(E.addQueryArgs)(o.baseURL,{...o.baseURLParams,...n});let s=Object.values(await b()({path:r}));if(n._fields&&(s=s.map(e=>(n._fields.split(",").forEach(t=>{e.hasOwnProperty(t)||(e[t]=void 0)}),e))),i.receiveEntityRecords(e,t,s,n),!(null!==(u=n)&&void 0!==u&&u._fields||n.context)){const n=o.key||K,r=s.filter(e=>e[n]).map(r=>[e,t,r[n]]);i({type:"START_RESOLUTIONS",selectorName:"getEntityRecord",args:r}),i({type:"FINISH_RESOLUTIONS",selectorName:"getEntityRecord",args:r})}}catch(e){}finally{i.__unstableReleaseStoreLock(c)}}};ft.shouldInvalidate=(e,t,n)=>("RECEIVE_ITEMS"===e.type||"REMOVE_ITEMS"===e.type)&&e.invalidateCache&&t===e.kind&&n===e.name;const pt=()=>async e=>{let{dispatch:t,resolveSelect:n}=e;const r=await n.getEntityRecords("root","theme",{status:"active"});t.receiveCurrentTheme(r[0])},yt=ot("getCurrentTheme"),bt=e=>async t=>{let{dispatch:n}=t;try{const t=await b()({path:Object(E.addQueryArgs)("/oembed/1.0/proxy",{url:e})});n.receiveEmbedPreview(e,t)}catch(t){n.receiveEmbedPreview(e,!1)}},vt=(e,t,n)=>async r=>{let{dispatch:i}=r;const s={create:"POST",read:"GET",update:"PUT",delete:"DELETE"}[e];if(!s)throw new Error(`'${e}' is not a valid action.`);const o=n?`/wp/v2/${t}/${n}`:"/wp/v2/"+t;let c,u;try{c=await b()({path:o,method:n?"GET":"OPTIONS",parse:!1})}catch(e){return}u=Object(a.hasIn)(c,["headers","get"])?c.headers.get("allow"):Object(a.get)(c,["headers","Allow"],"");const l=Object(a.compact)([e,t,n]).join("/"),d=Object(a.includes)(u,s);i.receiveUserPermission(l,d)},ht=(e,t,n)=>async r=>{let{dispatch:i}=r;const s=await i(ee(e)),o=Object(a.find)(s,{kind:e,name:t});if(!o)return;const c=o.__unstable_rest_base;await i(vt("update",c,n))},Et=(e,t)=>async n=>{let{dispatch:r,resolveSelect:i}=n;const{rest_base:s}=await i.getPostType(e),o=await b()({path:`/wp/v2/${s}/${t}/autosaves?context=edit`});o&&o.length&&r.receiveAutosaves(t,o)},mt=(e,t)=>async n=>{let{resolveSelect:r}=n;await r.getAutosaves(e,t)},gt=e=>async t=>{let n,{dispatch:r,resolveSelect:i}=t;try{n=await window.fetch(Object(E.addQueryArgs)(e,{"_wp-find-template":!0})).then(e=>e.json()).then(e=>{let{data:t}=e;return t})}catch(e){}if(!n)return;const s=await i.getEntityRecord("postType","wp_template",n.id);s&&r.receiveEntityRecords("postType","wp_template",[s],{"find-template":e})};gt.shouldInvalidate=e=>("RECEIVE_ITEMS"===e.type||"REMOVE_ITEMS"===e.type)&&e.invalidateCache&&"postType"===e.kind&&"wp_template"===e.name;const _t=()=>async e=>{let{dispatch:t,resolveSelect:n}=e;const r=await n.getEntityRecords("root","theme",{status:"active"}),i=Object(a.get)(r,[0,"_links","wp:user-global-styles",0,"href"]);if(i){const e=await b()({url:i});t.__experimentalReceiveCurrentGlobalStylesId(e.id)}},Rt=()=>async e=>{let{resolveSelect:t,dispatch:n}=e;const r=await t.getCurrentTheme(),i=await b()({path:"/wp/v2/global-styles/themes/"+r.stylesheet});await n.__experimentalReceiveThemeBaseGlobalStyles(r.stylesheet,i)};function Ot(e,t){const n={...e};let r=n;for(const e of t)r.children={...r.children,[e]:{locks:[],children:{},...r.children[e]}},r=r.children[e];return n}function wt(e,t){let n=e;for(const e of t){const t=n.children[e];if(!t)return null;n=t}return n}function jt(e,t){let{exclusive:n}=e;return!(!n||!t.length)||!(n||!t.filter(e=>e.exclusive).length)}const kt={requests:[],tree:{locks:[],children:{}}};function Tt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:kt,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENQUEUE_LOCK_REQUEST":{const{request:n}=t;return{...e,requests:[n,...e.requests]}}case"GRANT_LOCK_REQUEST":{const{lock:n,request:r}=t,{store:i,path:s}=r,o=[i,...s],a=Ot(e.tree,o),c=wt(a,o);return c.locks=[...c.locks,n],{...e,requests:e.requests.filter(e=>e!==r),tree:a}}case"RELEASE_LOCK":{const{lock:n}=t,r=[n.store,...n.path],i=Ot(e.tree,r),s=wt(i,r);return s.locks=s.locks.filter(e=>e!==n),{...e,tree:i}}}return e}function St(e,t,n,r){let{exclusive:i}=r;const s=[t,...n],o=e.tree;for(const e of function*(e,t){let n=e;yield n;for(const e of t){const t=n.children[e];if(!t)break;yield t,n=t}}(o,s))if(jt({exclusive:i},e.locks))return!1;const a=wt(o,s);if(!a)return!0;for(const e of function*(e){const t=Object.values(e.children);for(;t.length;){const e=t.pop();yield e,t.push(...Object.values(e.children))}}(a))if(jt({exclusive:i},e.locks))return!1;return!0}function It(){const e=function(){let e=Tt(void 0,{type:"@@INIT"});function t(){for(const t of function(e){return e.requests}(e)){const{store:n,path:r,exclusive:i,notifyAcquired:s}=t;if(St(e,n,r,{exclusive:i})){const o={store:n,path:r,exclusive:i};e=Tt(e,{type:"GRANT_LOCK_REQUEST",lock:o,request:t}),s(o)}}}return{acquire:function(n,r,i){return new Promise(s=>{e=Tt(e,{type:"ENQUEUE_LOCK_REQUEST",request:{store:n,path:r,exclusive:i,notifyAcquired:s}}),t()})},release:function(n){e=Tt(e,{type:"RELEASE_LOCK",lock:n}),t()}}}();return{__unstableAcquireStoreLock:function(t,n,r){let{exclusive:i}=r;return()=>e.acquire(t,n,i)},__unstableReleaseStoreLock:function(t){return()=>e.release(t)}}}var Ut=n("GRId"),xt=n("HSyU");const At=[],Ct={...z.reduce((e,t)=>(e[t.kind]||(e[t.kind]={}),e[t.kind][t.name]={context:Object(Ut.createContext)()},e),{}),...X.reduce((e,t)=>(e[t.name]={},e),{})},Lt=(e,t)=>{if(!Ct[e])throw new Error(`Missing entity config for kind: ${e}.`);return Ct[e][t]||(Ct[e][t]={context:Object(Ut.createContext)()}),Ct[e][t]};function Pt(e){let{kind:t,type:n,id:r,children:i}=e;const s=Lt(t,n).context.Provider;return Object(Ut.createElement)(s,{value:r},i)}function Dt(e,t){return Object(Ut.useContext)(Lt(e,t).context)}function qt(e,t,n,r){const i=Dt(e,t),s=null!=r?r:i,{value:a,fullValue:c}=Object(o.useSelect)(r=>{const{getEntityRecord:i,getEditedEntityRecord:o}=r("core"),a=i(e,t,s),c=o(e,t,s);return a&&c?{value:c[n],fullValue:a[n]}:{}},[e,t,s,n]),{editEntityRecord:u}=Object(o.useDispatch)("core");return[a,Object(Ut.useCallback)(r=>{u(e,t,s,{[n]:r})},[e,t,s,n]),c]}function Nt(e,t){let{id:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=Dt(e,t),i=null!=n?n:r,{content:s,blocks:a}=Object(o.useSelect)(n=>{const{getEditedEntityRecord:r}=n("core"),s=r(e,t,i);return{blocks:s.blocks,content:s.content}},[e,t,i]),{__unstableCreateUndoLevel:c,editEntityRecord:u}=Object(o.useDispatch)("core");Object(Ut.useEffect)(()=>{if(s&&"function"!=typeof s&&!a){const n=Object(xt.parse)(s);u(e,t,i,{blocks:n},{undoIgnore:!0})}},[s]);const l=Object(Ut.useCallback)((n,r)=>{const{selection:s}=r,o={blocks:n,selection:s};if(a===o.blocks)return c(e,t,i);o.content=e=>{let{blocks:t=[]}=e;return Object(xt.__unstableSerializeAndClean)(t)},u(e,t,i,o)},[e,t,i,a]),d=Object(Ut.useCallback)((n,r)=>{const{selection:s}=r;u(e,t,i,{blocks:n,selection:s})},[e,t,i]);return[null!=a?a:At,d,l]}var Mt=n("rmEH");var Vt=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{isInitialSuggestions:r=!1,type:i,subtype:s,page:o,perPage:a=(r?3:20)}=t,{disablePostFormats:c=!1}=n,u=[];return i&&"post"!==i||u.push(b()({path:Object(E.addQueryArgs)("/wp/v2/search",{search:e,page:o,per_page:a,type:"post",subtype:s})}).then(e=>e.map(e=>({...e,meta:{kind:"post-type",subtype:s}}))).catch(()=>[])),i&&"term"!==i||u.push(b()({path:Object(E.addQueryArgs)("/wp/v2/search",{search:e,page:o,per_page:a,type:"term",subtype:s})}).then(e=>e.map(e=>({...e,meta:{kind:"taxonomy",subtype:s}}))).catch(()=>[])),c||i&&"post-format"!==i||u.push(b()({path:Object(E.addQueryArgs)("/wp/v2/search",{search:e,page:o,per_page:a,type:"post-format",subtype:s})}).then(e=>e.map(e=>({...e,meta:{kind:"taxonomy",subtype:s}}))).catch(()=>[])),Promise.all(u).then(e=>e.reduce((e,t)=>e.concat(t),[]).filter(e=>!!e.id).slice(0,a).map(e=>{var t;return{id:e.id,url:e.url,title:Object(Mt.decodeEntities)(e.title||"")||Object(v.__)("(no title)"),type:e.subtype||e.type,kind:null==e||null===(t=e.meta)||void 0===t?void 0:t.kind}}))};const Gt=new Map;var Ft=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n="/wp-block-editor/v1/url-details",r={url:Object(E.prependHTTP)(e)};if(!Object(E.isURL)(e))return Promise.reject(e+" is not a valid URL.");const i=Object(E.getProtocol)(e);return Object(E.isValidProtocol)(i)&&i.startsWith("http")&&/^https?:\/\/[^\/\s]/i.test(e)?Gt.has(e)?Gt.get(e):b()({path:Object(E.addQueryArgs)(n,r),...t}).then(t=>(Gt.set(e,t),t)):Promise.reject(e+' does not have a valid protocol. URLs must be "http" based')};const Bt=z.reduce((e,t)=>{const{kind:n,name:r}=t;return e[Z(n,r)]=(e,t,i)=>ke(e,n,r,t,i),e[Z(n,r,"get",!0)]=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];return Ue(e,n,r,...i)},e},{}),Qt=z.reduce((e,t)=>{const{kind:n,name:r}=t;e[Z(n,r)]=(e,t)=>ut(n,r,e,t);const i=Z(n,r,"get",!0);return e[i]=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return ft(n,r,...t)},e[i].shouldInvalidate=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];return ft.shouldInvalidate(e,n,r,...i)},e},{}),Yt=z.reduce((e,t)=>{const{kind:n,name:r}=t;return e[Z(n,r,"save")]=e=>G(n,r,e),e[Z(n,r,"delete")]=(e,t)=>D(n,r,e,t),e},{}),$t=Object(o.createReduxStore)("core",{reducer:de,actions:{...r,...Yt,...It()},selectors:{...i,...Bt},resolvers:{...s,...Qt},__experimentalUseThunks:!0});Object(o.register)($t)},l3Sj:function(e,t){e.exports=window.wp.i18n},pPDe:function(e,t,n){"use strict";var r,i;function s(e){return[e]}function o(){var e={clear:function(){e.head=null}};return e}function a(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r={},i="undefined"!=typeof WeakMap,t.a=function(e,t){var n,c;function u(){n=i?new WeakMap:o()}function l(){var n,r,i,s,o,u=arguments.length;for(s=new Array(u),i=0;i<u;i++)s[i]=arguments[i];for(o=t.apply(null,s),(n=c(o)).isUniqueByDependants||(n.lastDependants&&!a(o,n.lastDependants,0)&&n.clear(),n.lastDependants=o),r=n.head;r;){if(a(r.args,s,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:e.apply(null,s)},s[0]=null,r.args=s,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return t||(t=s),c=i?function(e){var t,i,s,a,c,u=n,l=!0;for(t=0;t<e.length;t++){if(i=e[t],!(c=i)||"object"!=typeof c){l=!1;break}u.has(i)?u=u.get(i):(s=new WeakMap,u.set(i,s),u=s)}return u.has(r)||((a=o()).isUniqueByDependants=l,u.set(r,a)),u.get(r)}:function(){return n},l.getDependants=t,l.clear=u,u(),l}},rl8x:function(e,t){e.exports=window.wp.isShallowEqual},rmEH:function(e,t){e.exports=window.wp.htmlEntities},ywyh:function(e,t){e.exports=window.wp.apiFetch}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.coreData=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="dsJ0")}({"1ZqX":function(e,t){e.exports=window.wp.data},"7Cbv":function(e,t,n){"use strict";var r,i=new Uint8Array(16);function s(){if(!r&&!(r="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 r(i)}var o=/^(?:[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 a=function(e){return"string"==typeof e&&o.test(e)},c=[],u=0;u<256;++u)c.push((u+256).toString(16).substr(1));var l=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(!a(n))throw TypeError("Stringified UUID is invalid");return n};t.a=function(e,t,n){var r=(e=e||{}).random||(e.rng||s)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return l(r)}},FtRg:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){var n=e._map,r=e._arrayTreeMap,i=e._objectTreeMap;if(n.has(t))return n.get(t);for(var s=Object.keys(t).sort(),o=Array.isArray(t)?r:i,a=0;a<s.length;a++){var c=s[a];if(void 0===(o=o.get(c)))return;var u=t[c];if(void 0===(o=o.get(u)))return}var l=o.get("_ekm_value");return l?(n.delete(l[0]),l[0]=t,o.set("_ekm_value",l),n.set(t,l),l):void 0}var o=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.clear(),t instanceof e){var n=[];t.forEach((function(e,t){n.push([t,e])})),t=n}if(null!=t)for(var r=0;r<t.length;r++)this.set(t[r][0],t[r][1])}var t,n,o;return t=e,(n=[{key:"set",value:function(t,n){if(null===t||"object"!==r(t))return this._map.set(t,n),this;for(var i=Object.keys(t).sort(),s=[t,n],o=Array.isArray(t)?this._arrayTreeMap:this._objectTreeMap,a=0;a<i.length;a++){var c=i[a];o.has(c)||o.set(c,new e),o=o.get(c);var u=t[c];o.has(u)||o.set(u,new e),o=o.get(u)}var l=o.get("_ekm_value");return l&&this._map.delete(l[0]),o.set("_ekm_value",s),this._map.set(t,s),this}},{key:"get",value:function(e){if(null===e||"object"!==r(e))return this._map.get(e);var t=s(this,e);return t?t[1]:void 0}},{key:"has",value:function(e){return null===e||"object"!==r(e)?this._map.has(e):void 0!==s(this,e)}},{key:"delete",value:function(e){return!!this.has(e)&&(this.set(e,void 0),!0)}},{key:"forEach",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(i,s){null!==s&&"object"===r(s)&&(i=i[1]),e.call(n,i,s,t)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}])&&i(t.prototype,n),o&&i(t,o),e}();e.exports=o},GRId:function(e,t){e.exports=window.wp.element},HSyU:function(e,t){e.exports=window.wp.blocks},Mmq9:function(e,t){e.exports=window.wp.url},NMb1:function(e,t){e.exports=window.wp.deprecated},YLtl:function(e,t){e.exports=window.lodash},dsJ0:function(e,t,n){"use strict";n.r(t),n.d(t,"store",(function(){return $t})),n.d(t,"EntityProvider",(function(){return Pt})),n.d(t,"useEntityId",(function(){return Dt})),n.d(t,"useEntityProp",(function(){return qt})),n.d(t,"useEntityBlockEditor",(function(){return Nt})),n.d(t,"__experimentalFetchLinkSuggestions",(function(){return Vt})),n.d(t,"__experimentalFetchUrlData",(function(){return Ft}));var r={};n.r(r),n.d(r,"receiveUserQuery",(function(){return T})),n.d(r,"receiveCurrentUser",(function(){return S})),n.d(r,"addEntities",(function(){return I})),n.d(r,"receiveEntityRecords",(function(){return U})),n.d(r,"receiveCurrentTheme",(function(){return x})),n.d(r,"__experimentalReceiveCurrentGlobalStylesId",(function(){return A})),n.d(r,"__experimentalReceiveThemeBaseGlobalStyles",(function(){return C})),n.d(r,"receiveThemeSupports",(function(){return L})),n.d(r,"receiveEmbedPreview",(function(){return P})),n.d(r,"deleteEntityRecord",(function(){return D})),n.d(r,"editEntityRecord",(function(){return q})),n.d(r,"undo",(function(){return N})),n.d(r,"redo",(function(){return M})),n.d(r,"__unstableCreateUndoLevel",(function(){return V})),n.d(r,"saveEntityRecord",(function(){return G})),n.d(r,"__experimentalBatch",(function(){return F})),n.d(r,"saveEditedEntityRecord",(function(){return B})),n.d(r,"__experimentalSaveSpecifiedEntityEdits",(function(){return Q})),n.d(r,"receiveUploadPermissions",(function(){return Y})),n.d(r,"receiveUserPermission",(function(){return $})),n.d(r,"receiveAutosaves",(function(){return H}));var i={};n.r(i),n.d(i,"isRequestingEmbedPreview",(function(){return ge})),n.d(i,"getAuthors",(function(){return _e})),n.d(i,"getCurrentUser",(function(){return Re})),n.d(i,"getUserQueryResults",(function(){return Oe})),n.d(i,"getEntitiesByKind",(function(){return we})),n.d(i,"getEntity",(function(){return je})),n.d(i,"getEntityRecord",(function(){return ke})),n.d(i,"__experimentalGetEntityRecordNoResolver",(function(){return Te})),n.d(i,"getRawEntityRecord",(function(){return Se})),n.d(i,"hasEntityRecords",(function(){return Ie})),n.d(i,"getEntityRecords",(function(){return Ue})),n.d(i,"__experimentalGetDirtyEntityRecords",(function(){return xe})),n.d(i,"__experimentalGetEntitiesBeingSaved",(function(){return Ae})),n.d(i,"getEntityRecordEdits",(function(){return Ce})),n.d(i,"getEntityRecordNonTransientEdits",(function(){return Le})),n.d(i,"hasEditsForEntityRecord",(function(){return Pe})),n.d(i,"getEditedEntityRecord",(function(){return De})),n.d(i,"isAutosavingEntityRecord",(function(){return qe})),n.d(i,"isSavingEntityRecord",(function(){return Ne})),n.d(i,"isDeletingEntityRecord",(function(){return Me})),n.d(i,"getLastEntitySaveError",(function(){return Ve})),n.d(i,"getLastEntityDeleteError",(function(){return Ge})),n.d(i,"getUndoEdit",(function(){return Be})),n.d(i,"getRedoEdit",(function(){return Qe})),n.d(i,"hasUndo",(function(){return Ye})),n.d(i,"hasRedo",(function(){return $e})),n.d(i,"getCurrentTheme",(function(){return He})),n.d(i,"__experimentalGetCurrentGlobalStylesId",(function(){return Ke})),n.d(i,"getThemeSupports",(function(){return We})),n.d(i,"getEmbedPreview",(function(){return ze})),n.d(i,"isPreviewEmbedFallback",(function(){return Xe})),n.d(i,"canUser",(function(){return Je})),n.d(i,"canUserEditEntityRecord",(function(){return Ze})),n.d(i,"getAutosaves",(function(){return et})),n.d(i,"getAutosave",(function(){return tt})),n.d(i,"hasFetchedAutosaves",(function(){return nt})),n.d(i,"getReferenceByDistinctEdits",(function(){return rt})),n.d(i,"__experimentalGetTemplateForLink",(function(){return it})),n.d(i,"__experimentalGetCurrentThemeBaseGlobalStyles",(function(){return st}));var s={};n.r(s),n.d(s,"getAuthors",(function(){return at})),n.d(s,"getCurrentUser",(function(){return ct})),n.d(s,"getEntityRecord",(function(){return ut})),n.d(s,"getRawEntityRecord",(function(){return lt})),n.d(s,"getEditedEntityRecord",(function(){return dt})),n.d(s,"getEntityRecords",(function(){return ft})),n.d(s,"getCurrentTheme",(function(){return pt})),n.d(s,"getThemeSupports",(function(){return yt})),n.d(s,"getEmbedPreview",(function(){return bt})),n.d(s,"canUser",(function(){return vt})),n.d(s,"canUserEditEntityRecord",(function(){return ht})),n.d(s,"getAutosaves",(function(){return Et})),n.d(s,"getAutosave",(function(){return mt})),n.d(s,"__experimentalGetTemplateForLink",(function(){return gt})),n.d(s,"__experimentalGetCurrentGlobalStylesId",(function(){return _t})),n.d(s,"__experimentalGetCurrentThemeBaseGlobalStyles",(function(){return Rt}));var o=n("1ZqX"),a=n("YLtl"),c=n("rl8x"),u=n.n(c);var l=e=>t=>(n,r)=>void 0===n||e(r)?t(n,r):n;var d=e=>t=>(n,r)=>t(n,e(r));function f(e,t){if(!e)return t;let n=!1;const r={};for(const i in t)Object(a.isEqual)(e[i],t[i])?r[i]=e[i]:(n=!0,r[i]=t[i]);if(!n)return e;for(const t in e)r.hasOwnProperty(t)||(r[t]=e[t]);return r}var p=e=>t=>function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;const i=r[e];if(void 0===i)return n;const s=t(n[i],r);return s===n[i]?n:{...n,[i]:s}},y=n("ywyh"),b=n.n(y),v=n("l3Sj"),h=n("7Cbv"),E=n("Mmq9"),m=n("NMb1"),g=n.n(m);function _(e,t){return{type:"RECEIVE_ITEMS",items:Object(a.castArray)(e),persistedEdits:t}}function R(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return{type:"REMOVE_ITEMS",itemIds:Object(a.castArray)(n),kind:e,name:t,invalidateCache:r}}function O(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return{..._(e,n),query:t}}let w=null;async function j(e){if(null===w){const e=await b()({path:"/batch/v1",method:"OPTIONS"});w=e.endpoints[0].args.requests.maxItems}const t=[];for(const n of Object(a.chunk)(e,w)){const e=await b()({path:"/batch/v1",method:"POST",data:{validation:"require-all-validate",requests:n.map(e=>({path:e.path,body:e.data,method:e.method,headers:e.headers}))}});let r;r=e.failed?e.responses.map(e=>({error:null==e?void 0:e.body})):e.responses.map(e=>{const t={};return e.status>=200&&e.status<300?t.output=e.body:t.error=e.body,t}),t.push(...r)}return t}class k{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.set=new Set(...t),this.subscribers=new Set}get size(){return this.set.size}add(){return this.set.add(...arguments),this.subscribers.forEach(e=>e()),this}delete(){const e=this.set.delete(...arguments);return this.subscribers.forEach(e=>e()),e}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}}function T(e,t){return{type:"RECEIVE_USER_QUERY",users:Object(a.castArray)(t),queryID:e}}function S(e){return{type:"RECEIVE_CURRENT_USER",currentUser:e}}function I(e){return{type:"ADD_ENTITIES",entities:e}}function U(e,t,n,r){let i,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5?arguments[5]:void 0;return"postType"===e&&(n=Object(a.castArray)(n).map(e=>"auto-draft"===e.status?{...e,title:""}:e)),i=r?O(n,r,o):_(n,o),{...i,kind:e,name:t,invalidateCache:s}}function x(e){return{type:"RECEIVE_CURRENT_THEME",currentTheme:e}}function A(e){return{type:"RECEIVE_CURRENT_GLOBAL_STYLES_ID",id:e}}function C(e,t){return{type:"RECEIVE_THEME_GLOBAL_STYLES",stylesheet:e,globalStyles:t}}function L(){return g()("wp.data.dispatch( 'core' ).receiveThemeSupports",{since:"5.9"}),{type:"DO_NOTHING"}}function P(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}const D=function(e,t,n,r){let{__unstableFetch:i=b.a}=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return async s=>{let{dispatch:o}=s;const c=await o(ee(e)),u=Object(a.find)(c,{kind:e,name:t});let l,d=!1;if(!u||null!=u&&u.__experimentalNoFetch)return;const f=await o.__unstableAcquireStoreLock("core",["entities","data",e,t,n],{exclusive:!0});try{o({type:"DELETE_ENTITY_RECORD_START",kind:e,name:t,recordId:n});try{let s=`${u.baseURL}/${n}`;r&&(s=Object(E.addQueryArgs)(s,r)),d=await i({path:s,method:"DELETE"}),await o(R(e,t,n,!0))}catch(e){l=e}return o({type:"DELETE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:n,error:l}),d}finally{o.__unstableReleaseStoreLock(f)}}},q=function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return s=>{let{select:o,dispatch:c}=s;const u=o.getEntity(e,t);if(!u)throw new Error(`The entity being edited (${e}, ${t}) does not have a loaded config.`);const{transientEdits:l={},mergedEdits:d={}}=u,f=o.getRawEntityRecord(e,t,n),p=o.getEditedEntityRecord(e,t,n),y={kind:e,name:t,recordId:n,edits:Object.keys(r).reduce((e,t)=>{const n=f[t],i=p[t],s=d[t]?{...i,...r[t]}:r[t];return e[t]=Object(a.isEqual)(n,s)?void 0:s,e},{}),transientEdits:l};c({type:"EDIT_ENTITY_RECORD",...y,meta:{undo:!i.undoIgnore&&{...y,edits:Object.keys(r).reduce((e,t)=>(e[t]=p[t],e),{})}}})}},N=()=>e=>{let{select:t,dispatch:n}=e;const r=t.getUndoEdit();r&&n({type:"EDIT_ENTITY_RECORD",...r,meta:{isUndo:!0}})},M=()=>e=>{let{select:t,dispatch:n}=e;const r=t.getRedoEdit();r&&n({type:"EDIT_ENTITY_RECORD",...r,meta:{isRedo:!0}})};function V(){return{type:"CREATE_UNDO_LEVEL"}}const G=function(e,t,n){let{isAutosave:r=!1,__unstableFetch:i=b.a}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return async s=>{let{select:o,resolveSelect:c,dispatch:u}=s;const l=await u(ee(e)),d=Object(a.find)(l,{kind:e,name:t});if(!d||null!=d&&d.__experimentalNoFetch)return;const f=d.key||K,p=n[f],y=await u.__unstableAcquireStoreLock("core",["entities","data",e,t,p||Object(h.a)()],{exclusive:!0});try{for(const[r,i]of Object.entries(n))if("function"==typeof i){const s=i(o.getEditedEntityRecord(e,t,p));u.editEntityRecord(e,t,p,{[r]:s},{undoIgnore:!0}),n[r]=s}let s,a;u({type:"SAVE_ENTITY_RECORD_START",kind:e,name:t,recordId:p,isAutosave:r});try{const a=`${d.baseURL}${p?"/"+p:""}`,l=o.getRawEntityRecord(e,t,p);if(r){const r=o.getCurrentUser(),d=r?r.id:void 0,f=c.getAutosave(l.type,l.id,d);let p={...l,...f,...n};if(p=Object.keys(p).reduce((e,t)=>(["title","excerpt","content"].includes(t)&&(e[t]=p[t]),e),{status:"auto-draft"===p.status?"draft":p.status}),s=await i({path:a+"/autosaves",method:"POST",data:p}),l.id===s.id){let n={...l,...p,...s};n=Object.keys(n).reduce((e,t)=>(["title","excerpt","content"].includes(t)?e[t]=n[t]:e[t]="status"===t?"auto-draft"===l.status&&"draft"===n.status?n.status:l.status:l[t],e),{}),u.receiveEntityRecords(e,t,n,void 0,!0)}else u.receiveAutosaves(l.id,s)}else{let r=n;d.__unstablePrePersist&&(r={...r,...d.__unstablePrePersist(l,r)}),s=await i({path:a,method:p?"PUT":"POST",data:r}),u.receiveEntityRecords(e,t,s,void 0,!0,r)}}catch(e){a=e}return u({type:"SAVE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:p,error:a,isAutosave:r}),s}finally{u.__unstableReleaseStoreLock(y)}}},F=e=>async t=>{let{dispatch:n}=t;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j,t=0,n=[];const r=new k;return{add(e){const i=++t;r.add(i);const s=e=>new Promise((t,s)=>{n.push({input:e,resolve:t,reject:s}),r.delete(i)});return Object(a.isFunction)(e)?Promise.resolve(e(s)).finally(()=>{r.delete(i)}):s(e)},async run(){let t;r.size&&await new Promise(e=>{const t=r.subscribe(()=>{r.size||(t(),e())})});try{if(t=await e(n.map(e=>{let{input:t}=e;return t})),t.length!==n.length)throw new Error("run: Array returned by processor must be same size as input array.")}catch(e){for(const{reject:t}of n)t(e);throw e}let i=!0;for(const[e,{resolve:r,reject:o}]of Object(a.zip)(t,n)){var s;if(null!=e&&e.error)o(e.error),i=!1;else r(null!==(s=null==e?void 0:e.output)&&void 0!==s?s:e)}return n=[],i}}}(),i={saveEntityRecord:(e,t,i,s)=>r.add(r=>n.saveEntityRecord(e,t,i,{...s,__unstableFetch:r})),saveEditedEntityRecord:(e,t,i,s)=>r.add(r=>n.saveEditedEntityRecord(e,t,i,{...s,__unstableFetch:r})),deleteEntityRecord:(e,t,i,s,o)=>r.add(r=>n.deleteEntityRecord(e,t,i,s,{...o,__unstableFetch:r}))},s=e.map(e=>e(i)),[,...o]=await Promise.all([r.run(),...s]);return o},B=(e,t,n,r)=>async i=>{let{select:s,dispatch:o}=i;if(!s.hasEditsForEntityRecord(e,t,n))return;const c=await o(ee(e)),u=Object(a.find)(c,{kind:e,name:t});if(!u)return;const l=u.key||K,d=s.getEntityRecordNonTransientEdits(e,t,n),f={[l]:n,...d};return await o.saveEntityRecord(e,t,f,r)},Q=(e,t,n,r,i)=>async s=>{let{select:o,dispatch:a}=s;if(!o.hasEditsForEntityRecord(e,t,n))return;const c=o.getEntityRecordNonTransientEdits(e,t,n),u={};for(const e in c)r.some(t=>t===e)&&(u[e]=c[e]);return await a.saveEntityRecord(e,t,u,i)};function Y(e){return{type:"RECEIVE_USER_PERMISSION",key:"create/media",isAllowed:e}}function $(e,t){return{type:"RECEIVE_USER_PERMISSION",key:e,isAllowed:t}}function H(e,t){return{type:"RECEIVE_AUTOSAVES",postId:e,autosaves:Object(a.castArray)(t)}}const K="id",W=["title","excerpt","content"],z=[{label:Object(v.__)("Base"),name:"__unstableBase",kind:"root",baseURL:"/"},{label:Object(v.__)("Site"),name:"site",kind:"root",baseURL:"/wp/v2/settings",getTitle:e=>Object(a.get)(e,["title"],Object(v.__)("Site Title"))},{label:Object(v.__)("Post Type"),name:"postType",kind:"root",key:"slug",baseURL:"/wp/v2/types",baseURLParams:{context:"edit"},rawAttributes:W},{name:"media",kind:"root",baseURL:"/wp/v2/media",baseURLParams:{context:"edit"},plural:"mediaItems",label:Object(v.__)("Media")},{name:"taxonomy",kind:"root",key:"slug",baseURL:"/wp/v2/taxonomies",baseURLParams:{context:"edit"},plural:"taxonomies",label:Object(v.__)("Taxonomy")},{name:"sidebar",kind:"root",baseURL:"/wp/v2/sidebars",plural:"sidebars",transientEdits:{blocks:!0},label:Object(v.__)("Widget areas")},{name:"widget",kind:"root",baseURL:"/wp/v2/widgets",baseURLParams:{context:"edit"},plural:"widgets",transientEdits:{blocks:!0},label:Object(v.__)("Widgets")},{name:"widgetType",kind:"root",baseURL:"/wp/v2/widget-types",baseURLParams:{context:"edit"},plural:"widgetTypes",label:Object(v.__)("Widget types")},{label:Object(v.__)("User"),name:"user",kind:"root",baseURL:"/wp/v2/users",baseURLParams:{context:"edit"},plural:"users"},{name:"comment",kind:"root",baseURL:"/wp/v2/comments",baseURLParams:{context:"edit"},plural:"comments",label:Object(v.__)("Comment")},{name:"menu",kind:"root",baseURL:"/wp/v2/menus",baseURLParams:{context:"edit"},plural:"menus",label:Object(v.__)("Menu")},{name:"menuItem",kind:"root",baseURL:"/wp/v2/menu-items",baseURLParams:{context:"edit"},plural:"menuItems",label:Object(v.__)("Menu Item"),rawAttributes:["title","content"]},{name:"menuLocation",kind:"root",baseURL:"/wp/v2/menu-locations",baseURLParams:{context:"edit"},plural:"menuLocations",label:Object(v.__)("Menu Location"),key:"name"},{name:"navigationArea",kind:"root",baseURL:"/wp/v2/block-navigation-areas",baseURLParams:{context:"edit"},plural:"navigationAreas",label:Object(v.__)("Navigation Area"),key:"name",getTitle:e=>null==e?void 0:e.description},{label:Object(v.__)("Global Styles"),name:"globalStyles",kind:"root",baseURL:"/wp/v2/global-styles",baseURLParams:{context:"edit"},plural:"globalStylesVariations",getTitle:e=>{var t;return(null==e||null===(t=e.title)||void 0===t?void 0:t.rendered)||(null==e?void 0:e.title)}},{label:Object(v.__)("Themes"),name:"theme",kind:"root",baseURL:"/wp/v2/themes",baseURLParams:{context:"edit"},key:"stylesheet"},{label:Object(v.__)("Plugins"),name:"plugin",kind:"root",baseURL:"/wp/v2/plugins",baseURLParams:{context:"edit"},key:"plugin"}],X=[{name:"postType",loadEntities:async function(){const e=await b()({path:"/wp/v2/types?context=edit"});return Object(a.map)(e,(e,t)=>{var n;const r=["wp_template","wp_template_part"].includes(t);return{kind:"postType",baseURL:`/${null!==(n=null==e?void 0:e.rest_namespace)&&void 0!==n?n:"wp/v2"}/${e.rest_base}`,baseURLParams:{context:"edit"},name:t,label:e.labels.singular_name,transientEdits:{blocks:!0,selection:!0},mergedEdits:{meta:!0},rawAttributes:W,getTitle:e=>{var t;return(null==e||null===(t=e.title)||void 0===t?void 0:t.rendered)||(null==e?void 0:e.title)||(r?Object(a.startCase)(e.slug):String(e.id))},__unstablePrePersist:r?void 0:J,__unstable_rest_base:e.rest_base}})}},{name:"taxonomy",loadEntities:async function(){const e=await b()({path:"/wp/v2/taxonomies?context=edit"});return Object(a.map)(e,(e,t)=>{var n;return{kind:"taxonomy",baseURL:`/${null!==(n=null==e?void 0:e.rest_namespace)&&void 0!==n?n:"wp/v2"}/${e.rest_base}`,baseURLParams:{context:"edit"},name:t,label:e.labels.singular_name}})}}],J=(e,t)=>{const n={};return"auto-draft"===(null==e?void 0:e.status)&&(t.status||n.status||(n.status="draft"),t.title&&"Auto Draft"!==t.title||n.title||null!=e&&e.title&&"Auto Draft"!==(null==e?void 0:e.title)||(n.title="")),n};const Z=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"get",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=Object(a.find)(z,{kind:e,name:t}),s="root"===e?"":Object(a.upperFirst)(Object(a.camelCase)(e)),o=Object(a.upperFirst)(Object(a.camelCase)(t))+(r?"s":""),c=r&&i.plural?Object(a.upperFirst)(Object(a.camelCase)(i.plural)):o;return`${n}${s}${c}`},ee=e=>async t=>{let{select:n,dispatch:r}=t,i=n.getEntitiesByKind(e);if(i&&0!==i.length)return i;const s=Object(a.find)(X,{name:e});return s?(i=await s.loadEntities(),r(I(i)),i):[]};var te=function(e){return"string"==typeof e?e.split(","):Array.isArray(e)?e:null};var ne=function(e){const t=new WeakMap;return n=>{let r;return t.has(n)?r=t.get(n):(r=e(n),Object(a.isObjectLike)(n)&&t.set(n,r)),r}}((function(e){const t={stableKey:"",page:1,perPage:10,fields:null,include:null,context:"default"},n=Object.keys(e).sort();for(let r=0;r<n.length;r++){const i=n[r];let s=e[i];switch(i){case"page":t[i]=Number(s);break;case"per_page":t.perPage=Number(s);break;case"context":t.context=s;break;default:"_fields"===i&&(t.fields=te(s),s=t.fields.join()),"include"===i&&(t.include=te(s).map(Number),s=t.include.join()),t.stableKey+=(t.stableKey?"&":"")+Object(E.addQueryArgs)("",{[i]:s}).slice(1)}}return t}));function re(e){const{query:t}=e;if(!t)return"default";return ne(t).context}function ie(e,t,n,r){if(1===n&&-1===r)return t;const i=(n-1)*r,s=Math.max(e.length,i+t.length),o=new Array(s);for(let n=0;n<s;n++){const r=n>=i&&n<i+t.length;o[n]=r?t[n-i]:e[n]}return o}const se=Object(a.flowRight)([l(e=>"query"in e),d(e=>e.query?{...e,...ne(e.query)}:e),p("context"),p("stableKey")])((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;const{type:n,page:r,perPage:i,key:s=K}=t;return"RECEIVE_ITEMS"!==n?e:ie(e||[],Object(a.map)(t.items,s),r,i)}));var oe=Object(o.combineReducers)({items:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_ITEMS":{const n=re(t),r=t.key||K;return{...e,[n]:{...e[n],...t.items.reduce((t,i)=>{var s;const o=i[r];return t[o]=f(null==e||null===(s=e[n])||void 0===s?void 0:s[o],i),t},{})}}}case"REMOVE_ITEMS":return Object(a.mapValues)(e,e=>Object(a.omit)(e,t.itemIds))}return e},itemIsComplete:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_ITEMS":{const n=re(t),{query:r,key:i=K}=t,s=r?ne(r):{},o=!r||!Array.isArray(s.fields);return{...e,[n]:{...e[n],...t.items.reduce((t,r)=>{var s;const a=r[i];return t[a]=(null==e||null===(s=e[n])||void 0===s?void 0:s[a])||o,t},{})}}}case"REMOVE_ITEMS":return Object(a.mapValues)(e,e=>Object(a.omit)(e,t.itemIds))}return e},queries:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_ITEMS":return se(e,t);case"REMOVE_ITEMS":const n=t.itemIds.reduce((e,t)=>(e[t]=!0,e),{});return Object(a.mapValues)(e,e=>Object(a.mapValues)(e,e=>Object(a.filter)(e,e=>!n[e])));default:return e}}});function ae(e){return Object(a.flowRight)([l(t=>t.name&&t.kind&&t.name===e.name&&t.kind===e.kind),d(t=>({...t,key:e.key||K}))])(Object(o.combineReducers)({queriedData:oe,edits:function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;switch(r.type){case"RECEIVE_ITEMS":if("default"!==(null!==(e=null==r||null===(t=r.query)||void 0===t?void 0:t.context)&&void 0!==e?e:"default"))return n;const i={...n};for(const e of r.items){const t=e[r.key],n=i[t];if(!n)continue;const s=Object.keys(n).reduce((t,i)=>(Object(a.isEqual)(n[i],Object(a.get)(e[i],"raw",e[i]))||r.persistedEdits&&Object(a.isEqual)(n[i],r.persistedEdits[i])||(t[i]=n[i]),t),{});Object.keys(s).length?i[t]=s:delete i[t]}return i;case"EDIT_ENTITY_RECORD":const s={...n[r.recordId],...r.edits};return Object.keys(s).forEach(e=>{void 0===s[e]&&delete s[e]}),{...n,[r.recordId]:s}}return n},saving:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SAVE_ENTITY_RECORD_START":case"SAVE_ENTITY_RECORD_FINISH":return{...e,[t.recordId]:{pending:"SAVE_ENTITY_RECORD_START"===t.type,error:t.error,isAutosave:t.isAutosave}}}return e},deleting:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DELETE_ENTITY_RECORD_START":case"DELETE_ENTITY_RECORD_FINISH":return{...e,[t.recordId]:{pending:"DELETE_ENTITY_RECORD_START"===t.type,error:t.error}}}return e}}))}function ce(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_ENTITIES":return[...e,...t.entities]}return e}const ue=[];let le;ue.offset=0;var de=Object(o.combineReducers)({terms:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_TERMS":return{...e,[t.taxonomy]:t.terms}}return e},users:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{byId:{},queries:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_USER_QUERY":return{byId:{...e.byId,...Object(a.keyBy)(t.users,"id")},queries:{...e.queries,[t.queryID]:Object(a.map)(t.users,e=>e.id)}}}return e},currentTheme:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_CURRENT_THEME":return t.currentTheme.stylesheet}return e},currentGlobalStylesId:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_CURRENT_GLOBAL_STYLES_ID":return t.id}return e},currentUser:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_CURRENT_USER":return t.currentUser}return e},themeBaseGlobalStyles:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_THEME_GLOBAL_STYLES":return{...e,[t.stylesheet]:t.globalStyles}}return e},taxonomies:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_TAXONOMIES":return t.taxonomies}return e},entities:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;const n=ce(e.config,t);let r=e.reducer;if(!r||n!==e.config){const e=Object(a.groupBy)(n,"kind");r=Object(o.combineReducers)(Object.entries(e).reduce((e,t)=>{let[n,r]=t;const i=Object(o.combineReducers)(r.reduce((e,t)=>({...e,[t.name]:ae(t)}),{}));return e[n]=i,e},{}))}const i=r(e.data,t);return i===e.data&&n===e.config&&r===e.reducer?e:{reducer:r,data:i,config:n}},undo:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ue,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"EDIT_ENTITY_RECORD":case"CREATE_UNDO_LEVEL":let n="CREATE_UNDO_LEVEL"===t.type;const r=!n&&(t.meta.isUndo||t.meta.isRedo);let i;if(n?t=le:r||(le=Object.keys(t.edits).some(e=>!t.transientEdits[e])?t:{...t,edits:{...le&&le.edits,...t.edits}}),r){if(i=[...e],i.offset=e.offset+(t.meta.isUndo?-1:1),!e.flattenedUndo)return i;n=!0,t=le}if(!t.meta.undo)return e;if(!n&&!Object.keys(t.edits).some(e=>!t.transientEdits[e]))return i=[...e],i.flattenedUndo={...e.flattenedUndo,...t.edits},i.offset=e.offset,i;i=i||e.slice(0,e.offset||void 0),i.offset=i.offset||0,i.pop(),n||i.push({kind:t.meta.undo.kind,name:t.meta.undo.name,recordId:t.meta.undo.recordId,edits:{...e.flattenedUndo,...t.meta.undo.edits}});const s=Object.values(t.meta.undo.edits).filter(e=>"function"!=typeof e),o=Object.values(t.edits).filter(e=>"function"!=typeof e);return u()(s,o)||i.push({kind:t.kind,name:t.name,recordId:t.recordId,edits:n?{...e.flattenedUndo,...t.edits}:t.edits}),i}return e},embedPreviews:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_EMBED_PREVIEW":const{url:n,preview:r}=t;return{...e,[n]:r}}return e},userPermissions:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_USER_PERMISSION":return{...e,[t.key]:t.isAllowed}}return e},autosaves:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_AUTOSAVES":const{postId:n,autosaves:r}=t;return{...e,[n]:r}}return e}}),fe=n("pPDe"),pe=n("FtRg"),ye=n.n(pe);const be=new WeakMap;function ve(e,t){var n,r;const{stableKey:i,page:s,perPage:o,include:c,fields:u,context:l}=ne(t);let d;if(null!==(n=e.queries)&&void 0!==n&&null!==(r=n[l])&&void 0!==r&&r[i]&&(d=e.queries[l][i]),!d)return null;const f=-1===o?0:(s-1)*o,p=-1===o?d.length:Math.min(f+o,d.length),y=[];for(let t=f;t<p;t++){var b;const n=d[t];if(Array.isArray(c)&&!c.includes(n))continue;if(null===(b=e.items[l])||void 0===b||!b.hasOwnProperty(n))return null;const r=e.items[l][n];let i;if(Array.isArray(u)){i={};for(let e=0;e<u.length;e++){const t=u[e].split("."),n=Object(a.get)(r,t);Object(a.set)(i,t,n)}}else{var v;if(null===(v=e.itemIsComplete[l])||void 0===v||!v[n])return null;i=r}y.push(i)}return y}const he=Object(fe.a)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=be.get(e);if(n){const e=n.get(t);if(void 0!==e)return e}else n=new ye.a,be.set(e,n);const r=ve(e,t);return n.set(t,r),r}));const Ee={},me=[],ge=Object(o.createRegistrySelector)(e=>(t,n)=>e("core").isResolving("getEmbedPreview",[n]));function _e(e,t){g()("select( 'core' ).getAuthors()",{since:"5.9",alternative:"select( 'core' ).getUsers({ who: 'authors' })"});const n=Object(E.addQueryArgs)("/wp/v2/users/?who=authors&per_page=100",t);return Oe(e,n)}function Re(e){return e.currentUser}const Oe=Object(fe.a)((e,t)=>{const n=e.users.queries[t];return Object(a.map)(n,t=>e.users.byId[t])},(e,t)=>[e.users.queries[t],e.users.byId]);function we(e,t){return Object(a.filter)(e.entities.config,{kind:t})}function je(e,t,n){return Object(a.find)(e.entities.config,{kind:t,name:n})}const ke=Object(fe.a)((e,t,n,r,i)=>{var s,o;const c=Object(a.get)(e.entities.data,[t,n,"queriedData"]);if(!c)return;const u=null!==(s=null==i?void 0:i.context)&&void 0!==s?s:"default";if(void 0===i){var l;if(null===(l=c.itemIsComplete[u])||void 0===l||!l[r])return;return c.items[u][r]}const d=null===(o=c.items[u])||void 0===o?void 0:o[r];if(d&&i._fields){const e={},t=te(i._fields);for(let n=0;n<t.length;n++){const r=t[n].split("."),i=Object(a.get)(d,r);Object(a.set)(e,r,i)}return e}return d},(e,t,n,r,i)=>{var s;const o=null!==(s=null==i?void 0:i.context)&&void 0!==s?s:"default";return[Object(a.get)(e.entities.data,[t,n,"queriedData","items",o,r]),Object(a.get)(e.entities.data,[t,n,"queriedData","itemIsComplete",o,r])]});function Te(e,t,n,r){return ke(e,t,n,r)}const Se=Object(fe.a)((e,t,n,r)=>{const i=ke(e,t,n,r);return i&&Object.keys(i).reduce((r,s)=>{var o,c;return o=je(e,t,n),c=s,(o.rawAttributes||[]).includes(c)?r[s]=Object(a.get)(i[s],"raw",i[s]):r[s]=i[s],r},{})},(e,t,n,r,i)=>{var s;const o=null!==(s=null==i?void 0:i.context)&&void 0!==s?s:"default";return[e.entities.config,Object(a.get)(e.entities.data,[t,n,"queriedData","items",o,r]),Object(a.get)(e.entities.data,[t,n,"queriedData","itemIsComplete",o,r])]});function Ie(e,t,n,r){return Array.isArray(Ue(e,t,n,r))}function Ue(e,t,n,r){const i=Object(a.get)(e.entities.data,[t,n,"queriedData"]);return i?he(i,r):me}const xe=Object(fe.a)(e=>{const{entities:{data:t}}=e,n=[];return Object.keys(t).forEach(r=>{Object.keys(t[r]).forEach(i=>{const s=Object.keys(t[r][i].edits).filter(t=>ke(e,r,i,t)&&Pe(e,r,i,t));if(s.length){const t=je(e,r,i);s.forEach(s=>{var o;const a=De(e,r,i,s);n.push({key:a[t.key||K],title:(null==t||null===(o=t.getTitle)||void 0===o?void 0:o.call(t,a))||"",name:i,kind:r})})}})}),n},e=>[e.entities.data]),Ae=Object(fe.a)(e=>{const{entities:{data:t}}=e,n=[];return Object.keys(t).forEach(r=>{Object.keys(t[r]).forEach(i=>{const s=Object.keys(t[r][i].saving).filter(t=>Ne(e,r,i,t));if(s.length){const t=je(e,r,i);s.forEach(s=>{var o;const a=De(e,r,i,s);n.push({key:a[t.key||K],title:(null==t||null===(o=t.getTitle)||void 0===o?void 0:o.call(t,a))||"",name:i,kind:r})})}})}),n},e=>[e.entities.data]);function Ce(e,t,n,r){return Object(a.get)(e.entities.data,[t,n,"edits",r])}const Le=Object(fe.a)((e,t,n,r)=>{const{transientEdits:i}=je(e,t,n)||{},s=Ce(e,t,n,r)||{};return i?Object.keys(s).reduce((e,t)=>(i[t]||(e[t]=s[t]),e),{}):s},(e,t,n,r)=>[e.entities.config,Object(a.get)(e.entities.data,[t,n,"edits",r])]);function Pe(e,t,n,r){return Ne(e,t,n,r)||Object.keys(Le(e,t,n,r)).length>0}const De=Object(fe.a)((e,t,n,r)=>({...Se(e,t,n,r),...Ce(e,t,n,r)}),(e,t,n,r,i)=>{var s;const o=null!==(s=null==i?void 0:i.context)&&void 0!==s?s:"default";return[e.entities.config,Object(a.get)(e.entities.data,[t,n,"queriedData","items",o,r]),Object(a.get)(e.entities.data,[t,n,"queriedData","itemIsComplete",o,r]),Object(a.get)(e.entities.data,[t,n,"edits",r])]});function qe(e,t,n,r){const{pending:i,isAutosave:s}=Object(a.get)(e.entities.data,[t,n,"saving",r],{});return Boolean(i&&s)}function Ne(e,t,n,r){return Object(a.get)(e.entities.data,[t,n,"saving",r,"pending"],!1)}function Me(e,t,n,r){return Object(a.get)(e.entities.data,[t,n,"deleting",r,"pending"],!1)}function Ve(e,t,n,r){return Object(a.get)(e.entities.data,[t,n,"saving",r,"error"])}function Ge(e,t,n,r){return Object(a.get)(e.entities.data,[t,n,"deleting",r,"error"])}function Fe(e){return e.undo.offset}function Be(e){return e.undo[e.undo.length-2+Fe(e)]}function Qe(e){return e.undo[e.undo.length+Fe(e)]}function Ye(e){return Boolean(Be(e))}function $e(e){return Boolean(Qe(e))}function He(e){return ke(e,"root","theme",e.currentTheme)}function Ke(e){return e.currentGlobalStylesId}function We(e){var t,n;return null!==(t=null===(n=He(e))||void 0===n?void 0:n.theme_supports)&&void 0!==t?t:Ee}function ze(e,t){return e.embedPreviews[t]}function Xe(e,t){const n=e.embedPreviews[t],r='<a href="'+t+'">'+t+"</a>";return!!n&&n.html===r}function Je(e,t,n,r){const i=Object(a.compact)([t,n,r]).join("/");return Object(a.get)(e,["userPermissions",i])}function Ze(e,t,n,r){const i=je(e,t,n);if(!i)return!1;return Je(e,"update",i.__unstable_rest_base,r)}function et(e,t,n){return e.autosaves[n]}function tt(e,t,n,r){if(void 0===r)return;const i=e.autosaves[n];return Object(a.find)(i,{author:r})}const nt=Object(o.createRegistrySelector)(e=>(t,n,r)=>e("core").hasFinishedResolution("getAutosaves",[n,r])),rt=Object(fe.a)(()=>[],e=>[e.undo.length,e.undo.offset,e.undo.flattenedUndo]);function it(e,t){const n=Ue(e,"postType","wp_template",{"find-template":t}),r=null!=n&&n.length?n[0]:null;return r?De(e,"postType","wp_template",r.id):r}function st(e){const t=He(e);return t?e.themeBaseGlobalStyles[t.stylesheet]:null}var ot=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return async t=>{let{resolveSelect:r}=t;await r[e](...n)}};const at=e=>async t=>{let{dispatch:n}=t;const r=Object(E.addQueryArgs)("/wp/v2/users/?who=authors&per_page=100",e),i=await b()({path:r});n.receiveUserQuery(r,i)},ct=()=>async e=>{let{dispatch:t}=e;const n=await b()({path:"/wp/v2/users/me"});t.receiveCurrentUser(n)},ut=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3?arguments[3]:void 0;return async i=>{let{select:s,dispatch:o}=i;const c=await o(ee(e)),u=Object(a.find)(c,{kind:e,name:t});if(!u||null!=u&&u.__experimentalNoFetch)return;const l=await o.__unstableAcquireStoreLock("core",["entities","data",e,t,n],{exclusive:!1});try{void 0!==r&&r._fields&&(r={...r,_fields:Object(a.uniq)([...te(r._fields)||[],u.key||K]).join()});const i=Object(E.addQueryArgs)(u.baseURL+(n?"/"+n:""),{...u.baseURLParams,...r});if(void 0!==r){r={...r,include:[n]};if(s.hasEntityRecords(e,t,r))return}const c=await b()({path:i});o.receiveEntityRecords(e,t,c,r)}catch(e){}finally{o.__unstableReleaseStoreLock(l)}}},lt=ot("getEntityRecord"),dt=ot("getEntityRecord"),ft=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return async r=>{let{dispatch:i}=r;const s=await i(ee(e)),o=Object(a.find)(s,{kind:e,name:t});if(!o||null!=o&&o.__experimentalNoFetch)return;const c=await i.__unstableAcquireStoreLock("core",["entities","data",e,t],{exclusive:!1});try{var u;n._fields&&(n={...n,_fields:Object(a.uniq)([...te(n._fields)||[],o.key||K]).join()});const r=Object(E.addQueryArgs)(o.baseURL,{...o.baseURLParams,...n});let s=Object.values(await b()({path:r}));if(n._fields&&(s=s.map(e=>(n._fields.split(",").forEach(t=>{e.hasOwnProperty(t)||(e[t]=void 0)}),e))),i.receiveEntityRecords(e,t,s,n),!(null!==(u=n)&&void 0!==u&&u._fields||n.context)){const n=o.key||K,r=s.filter(e=>e[n]).map(r=>[e,t,r[n]]);i({type:"START_RESOLUTIONS",selectorName:"getEntityRecord",args:r}),i({type:"FINISH_RESOLUTIONS",selectorName:"getEntityRecord",args:r})}}catch(e){}finally{i.__unstableReleaseStoreLock(c)}}};ft.shouldInvalidate=(e,t,n)=>("RECEIVE_ITEMS"===e.type||"REMOVE_ITEMS"===e.type)&&e.invalidateCache&&t===e.kind&&n===e.name;const pt=()=>async e=>{let{dispatch:t,resolveSelect:n}=e;const r=await n.getEntityRecords("root","theme",{status:"active"});t.receiveCurrentTheme(r[0])},yt=ot("getCurrentTheme"),bt=e=>async t=>{let{dispatch:n}=t;try{const t=await b()({path:Object(E.addQueryArgs)("/oembed/1.0/proxy",{url:e})});n.receiveEmbedPreview(e,t)}catch(t){n.receiveEmbedPreview(e,!1)}},vt=(e,t,n)=>async r=>{let{dispatch:i}=r;const s={create:"POST",read:"GET",update:"PUT",delete:"DELETE"}[e];if(!s)throw new Error(`'${e}' is not a valid action.`);const o=n?`/wp/v2/${t}/${n}`:"/wp/v2/"+t;let c,u;try{c=await b()({path:o,method:n?"GET":"OPTIONS",parse:!1})}catch(e){return}u=Object(a.hasIn)(c,["headers","get"])?c.headers.get("allow"):Object(a.get)(c,["headers","Allow"],"");const l=Object(a.compact)([e,t,n]).join("/"),d=Object(a.includes)(u,s);i.receiveUserPermission(l,d)},ht=(e,t,n)=>async r=>{let{dispatch:i}=r;const s=await i(ee(e)),o=Object(a.find)(s,{kind:e,name:t});if(!o)return;const c=o.__unstable_rest_base;await i(vt("update",c,n))},Et=(e,t)=>async n=>{let{dispatch:r,resolveSelect:i}=n;const{rest_base:s}=await i.getPostType(e),o=await b()({path:`/wp/v2/${s}/${t}/autosaves?context=edit`});o&&o.length&&r.receiveAutosaves(t,o)},mt=(e,t)=>async n=>{let{resolveSelect:r}=n;await r.getAutosaves(e,t)},gt=e=>async t=>{let n,{dispatch:r,resolveSelect:i}=t;try{n=await window.fetch(Object(E.addQueryArgs)(e,{"_wp-find-template":!0})).then(e=>e.json()).then(e=>{let{data:t}=e;return t})}catch(e){}if(!n)return;const s=await i.getEntityRecord("postType","wp_template",n.id);s&&r.receiveEntityRecords("postType","wp_template",[s],{"find-template":e})};gt.shouldInvalidate=e=>("RECEIVE_ITEMS"===e.type||"REMOVE_ITEMS"===e.type)&&e.invalidateCache&&"postType"===e.kind&&"wp_template"===e.name;const _t=()=>async e=>{let{dispatch:t,resolveSelect:n}=e;const r=await n.getEntityRecords("root","theme",{status:"active"}),i=Object(a.get)(r,[0,"_links","wp:user-global-styles",0,"href"]);if(i){const e=await b()({url:i});t.__experimentalReceiveCurrentGlobalStylesId(e.id)}},Rt=()=>async e=>{let{resolveSelect:t,dispatch:n}=e;const r=await t.getCurrentTheme(),i=await b()({path:"/wp/v2/global-styles/themes/"+r.stylesheet});await n.__experimentalReceiveThemeBaseGlobalStyles(r.stylesheet,i)};function Ot(e,t){const n={...e};let r=n;for(const e of t)r.children={...r.children,[e]:{locks:[],children:{},...r.children[e]}},r=r.children[e];return n}function wt(e,t){let n=e;for(const e of t){const t=n.children[e];if(!t)return null;n=t}return n}function jt(e,t){let{exclusive:n}=e;return!(!n||!t.length)||!(n||!t.filter(e=>e.exclusive).length)}const kt={requests:[],tree:{locks:[],children:{}}};function Tt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:kt,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENQUEUE_LOCK_REQUEST":{const{request:n}=t;return{...e,requests:[n,...e.requests]}}case"GRANT_LOCK_REQUEST":{const{lock:n,request:r}=t,{store:i,path:s}=r,o=[i,...s],a=Ot(e.tree,o),c=wt(a,o);return c.locks=[...c.locks,n],{...e,requests:e.requests.filter(e=>e!==r),tree:a}}case"RELEASE_LOCK":{const{lock:n}=t,r=[n.store,...n.path],i=Ot(e.tree,r),s=wt(i,r);return s.locks=s.locks.filter(e=>e!==n),{...e,tree:i}}}return e}function St(e,t,n,r){let{exclusive:i}=r;const s=[t,...n],o=e.tree;for(const e of function*(e,t){let n=e;yield n;for(const e of t){const t=n.children[e];if(!t)break;yield t,n=t}}(o,s))if(jt({exclusive:i},e.locks))return!1;const a=wt(o,s);if(!a)return!0;for(const e of function*(e){const t=Object.values(e.children);for(;t.length;){const e=t.pop();yield e,t.push(...Object.values(e.children))}}(a))if(jt({exclusive:i},e.locks))return!1;return!0}function It(){const e=function(){let e=Tt(void 0,{type:"@@INIT"});function t(){for(const t of function(e){return e.requests}(e)){const{store:n,path:r,exclusive:i,notifyAcquired:s}=t;if(St(e,n,r,{exclusive:i})){const o={store:n,path:r,exclusive:i};e=Tt(e,{type:"GRANT_LOCK_REQUEST",lock:o,request:t}),s(o)}}}return{acquire:function(n,r,i){return new Promise(s=>{e=Tt(e,{type:"ENQUEUE_LOCK_REQUEST",request:{store:n,path:r,exclusive:i,notifyAcquired:s}}),t()})},release:function(n){e=Tt(e,{type:"RELEASE_LOCK",lock:n}),t()}}}();return{__unstableAcquireStoreLock:function(t,n,r){let{exclusive:i}=r;return()=>e.acquire(t,n,i)},__unstableReleaseStoreLock:function(t){return()=>e.release(t)}}}var Ut=n("GRId"),xt=n("HSyU");const At=[],Ct={...z.reduce((e,t)=>(e[t.kind]||(e[t.kind]={}),e[t.kind][t.name]={context:Object(Ut.createContext)()},e),{}),...X.reduce((e,t)=>(e[t.name]={},e),{})},Lt=(e,t)=>{if(!Ct[e])throw new Error(`Missing entity config for kind: ${e}.`);return Ct[e][t]||(Ct[e][t]={context:Object(Ut.createContext)()}),Ct[e][t]};function Pt(e){let{kind:t,type:n,id:r,children:i}=e;const s=Lt(t,n).context.Provider;return Object(Ut.createElement)(s,{value:r},i)}function Dt(e,t){return Object(Ut.useContext)(Lt(e,t).context)}function qt(e,t,n,r){const i=Dt(e,t),s=null!=r?r:i,{value:a,fullValue:c}=Object(o.useSelect)(r=>{const{getEntityRecord:i,getEditedEntityRecord:o}=r("core"),a=i(e,t,s),c=o(e,t,s);return a&&c?{value:c[n],fullValue:a[n]}:{}},[e,t,s,n]),{editEntityRecord:u}=Object(o.useDispatch)("core");return[a,Object(Ut.useCallback)(r=>{u(e,t,s,{[n]:r})},[e,t,s,n]),c]}function Nt(e,t){let{id:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=Dt(e,t),i=null!=n?n:r,{content:s,blocks:a}=Object(o.useSelect)(n=>{const{getEditedEntityRecord:r}=n("core"),s=r(e,t,i);return{blocks:s.blocks,content:s.content}},[e,t,i]),{__unstableCreateUndoLevel:c,editEntityRecord:u}=Object(o.useDispatch)("core");Object(Ut.useEffect)(()=>{if(s&&"function"!=typeof s&&!a){const n=Object(xt.parse)(s);u(e,t,i,{blocks:n},{undoIgnore:!0})}},[s]);const l=Object(Ut.useCallback)((n,r)=>{const{selection:s}=r,o={blocks:n,selection:s};if(a===o.blocks)return c(e,t,i);o.content=e=>{let{blocks:t=[]}=e;return Object(xt.__unstableSerializeAndClean)(t)},u(e,t,i,o)},[e,t,i,a]),d=Object(Ut.useCallback)((n,r)=>{const{selection:s}=r;u(e,t,i,{blocks:n,selection:s})},[e,t,i]);return[null!=a?a:At,d,l]}var Mt=n("rmEH");var Vt=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{isInitialSuggestions:r=!1,type:i,subtype:s,page:o,perPage:a=(r?3:20)}=t,{disablePostFormats:c=!1}=n,u=[];return i&&"post"!==i||u.push(b()({path:Object(E.addQueryArgs)("/wp/v2/search",{search:e,page:o,per_page:a,type:"post",subtype:s})}).then(e=>e.map(e=>({...e,meta:{kind:"post-type",subtype:s}}))).catch(()=>[])),i&&"term"!==i||u.push(b()({path:Object(E.addQueryArgs)("/wp/v2/search",{search:e,page:o,per_page:a,type:"term",subtype:s})}).then(e=>e.map(e=>({...e,meta:{kind:"taxonomy",subtype:s}}))).catch(()=>[])),c||i&&"post-format"!==i||u.push(b()({path:Object(E.addQueryArgs)("/wp/v2/search",{search:e,page:o,per_page:a,type:"post-format",subtype:s})}).then(e=>e.map(e=>({...e,meta:{kind:"taxonomy",subtype:s}}))).catch(()=>[])),Promise.all(u).then(e=>e.reduce((e,t)=>e.concat(t),[]).filter(e=>!!e.id).slice(0,a).map(e=>{var t;return{id:e.id,url:e.url,title:Object(Mt.decodeEntities)(e.title||"")||Object(v.__)("(no title)"),type:e.subtype||e.type,kind:null==e||null===(t=e.meta)||void 0===t?void 0:t.kind}}))};const Gt=new Map;var Ft=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n="/wp-block-editor/v1/url-details",r={url:Object(E.prependHTTP)(e)};if(!Object(E.isURL)(e))return Promise.reject(e+" is not a valid URL.");const i=Object(E.getProtocol)(e);return Object(E.isValidProtocol)(i)&&i.startsWith("http")&&/^https?:\/\/[^\/\s]/i.test(e)?Gt.has(e)?Gt.get(e):b()({path:Object(E.addQueryArgs)(n,r),...t}).then(t=>(Gt.set(e,t),t)):Promise.reject(e+' does not have a valid protocol. URLs must be "http" based')};const Bt=z.reduce((e,t)=>{const{kind:n,name:r}=t;return e[Z(n,r)]=(e,t,i)=>ke(e,n,r,t,i),e[Z(n,r,"get",!0)]=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];return Ue(e,n,r,...i)},e},{}),Qt=z.reduce((e,t)=>{const{kind:n,name:r}=t;e[Z(n,r)]=(e,t)=>ut(n,r,e,t);const i=Z(n,r,"get",!0);return e[i]=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return ft(n,r,...t)},e[i].shouldInvalidate=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];return ft.shouldInvalidate(e,n,r,...i)},e},{}),Yt=z.reduce((e,t)=>{const{kind:n,name:r}=t;return e[Z(n,r,"save")]=e=>G(n,r,e),e[Z(n,r,"delete")]=(e,t)=>D(n,r,e,t),e},{}),$t=Object(o.createReduxStore)("core",{reducer:de,actions:{...r,...Yt,...It()},selectors:{...i,...Bt},resolvers:{...s,...Qt},__experimentalUseThunks:!0});Object(o.register)($t)},l3Sj:function(e,t){e.exports=window.wp.i18n},pPDe:function(e,t,n){"use strict";var r,i;function s(e){return[e]}function o(){var e={clear:function(){e.head=null}};return e}function a(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r={},i="undefined"!=typeof WeakMap,t.a=function(e,t){var n,c;function u(){n=i?new WeakMap:o()}function l(){var n,r,i,s,o,u=arguments.length;for(s=new Array(u),i=0;i<u;i++)s[i]=arguments[i];for(o=t.apply(null,s),(n=c(o)).isUniqueByDependants||(n.lastDependants&&!a(o,n.lastDependants,0)&&n.clear(),n.lastDependants=o),r=n.head;r;){if(a(r.args,s,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:e.apply(null,s)},s[0]=null,r.args=s,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return t||(t=s),c=i?function(e){var t,i,s,a,c,u=n,l=!0;for(t=0;t<e.length;t++){if(i=e[t],!(c=i)||"object"!=typeof c){l=!1;break}u.has(i)?u=u.get(i):(s=new WeakMap,u.set(i,s),u=s)}return u.has(r)||((a=o()).isUniqueByDependants=l,u.set(r,a)),u.get(r)}:function(){return n},l.getDependants=t,l.clear=u,u(),l}},rl8x:function(e,t){e.exports=window.wp.isShallowEqual},rmEH:function(e,t){e.exports=window.wp.htmlEntities},ywyh:function(e,t){e.exports=window.wp.apiFetch}}); \ No newline at end of file diff --git a/wp-includes/js/dist/edit-site.js b/wp-includes/js/dist/edit-site.js index 797cd8f425..26a5da7ab3 100644 --- a/wp-includes/js/dist/edit-site.js +++ b/wp-includes/js/dist/edit-site.js @@ -87,6 +87,31 @@ this["wp"] = this["wp"] || {}; this["wp"]["editSite"] = /************************************************************************/ /******/ ({ +/***/ "0Ene": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId"); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9"); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +const plugins = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z" +})); +/* harmony default export */ __webpack_exports__["a"] = (plugins); + + +/***/ }), + /***/ "1ZqX": /***/ (function(module, exports) { @@ -293,7 +318,7 @@ __webpack_require__.d(actions_namespaceObject, "goBack", function() { return act __webpack_require__.d(actions_namespaceObject, "showHomepage", function() { return actions_showHomepage; }); __webpack_require__.d(actions_namespaceObject, "setNavigationPanelActiveMenu", function() { return setNavigationPanelActiveMenu; }); __webpack_require__.d(actions_namespaceObject, "openNavigationPanelToMenu", function() { return openNavigationPanelToMenu; }); -__webpack_require__.d(actions_namespaceObject, "setIsNavigationPanelOpened", function() { return setIsNavigationPanelOpened; }); +__webpack_require__.d(actions_namespaceObject, "setIsNavigationPanelOpened", function() { return actions_setIsNavigationPanelOpened; }); __webpack_require__.d(actions_namespaceObject, "setIsInserterOpened", function() { return actions_setIsInserterOpened; }); __webpack_require__.d(actions_namespaceObject, "updateSettings", function() { return actions_updateSettings; }); __webpack_require__.d(actions_namespaceObject, "setIsListViewOpened", function() { return actions_setIsListViewOpened; }); @@ -307,6 +332,7 @@ __webpack_require__.r(selectors_namespaceObject); __webpack_require__.d(selectors_namespaceObject, "isFeatureActive", function() { return isFeatureActive; }); __webpack_require__.d(selectors_namespaceObject, "__experimentalGetPreviewDeviceType", function() { return selectors_experimentalGetPreviewDeviceType; }); __webpack_require__.d(selectors_namespaceObject, "getCanUserCreateMedia", function() { return getCanUserCreateMedia; }); +__webpack_require__.d(selectors_namespaceObject, "getReusableBlocks", function() { return getReusableBlocks; }); __webpack_require__.d(selectors_namespaceObject, "getSettings", function() { return selectors_getSettings; }); __webpack_require__.d(selectors_namespaceObject, "getHomeTemplateId", function() { return getHomeTemplateId; }); __webpack_require__.d(selectors_namespaceObject, "getEditedPostType", function() { return selectors_getEditedPostType; }); @@ -340,6 +366,9 @@ var external_wp_coreData_ = __webpack_require__("jZUy"); // EXTERNAL MODULE: external ["wp","editor"] var external_wp_editor_ = __webpack_require__("jSdM"); +// EXTERNAL MODULE: external ["wp","viewport"] +var external_wp_viewport_ = __webpack_require__("KEfo"); + // EXTERNAL MODULE: ./node_modules/downloadjs/download.js var download = __webpack_require__("rrFr"); var download_default = /*#__PURE__*/__webpack_require__.n(download); @@ -894,9 +923,27 @@ function* addTemplate(template) { */ function* actions_removeTemplate(template) { - yield external_wp_data_["controls"].dispatch(external_wp_coreData_["store"], 'deleteEntityRecord', 'postType', template.type, template.id, { - force: true - }); + try { + yield external_wp_data_["controls"].dispatch(external_wp_coreData_["store"], 'deleteEntityRecord', 'postType', template.type, template.id, { + force: true + }); + const lastError = yield external_wp_data_["controls"].select(external_wp_coreData_["store"], 'getLastEntityDeleteError', 'postType', template.type, template.id); + + if (lastError) { + throw lastError; + } + + yield external_wp_data_["controls"].dispatch(external_wp_notices_["store"], 'createSuccessNotice', Object(external_wp_i18n_["sprintf"])( + /* translators: The template/part's name. */ + Object(external_wp_i18n_["__"])('"%s" removed.'), template.title.rendered), { + type: 'snackbar' + }); + } catch (error) { + const errorMessage = error.message && error.code !== 'unknown_error' ? error.message : Object(external_wp_i18n_["__"])('An error occurred while deleting the template.'); + yield external_wp_data_["controls"].dispatch(external_wp_notices_["store"], 'createErrorNotice', errorMessage, { + type: 'snackbar' + }); + } } /** * Returns an action object used to set a template part. @@ -1039,7 +1086,7 @@ function openNavigationPanelToMenu(menu) { * does not toggle the state, but sets it directly. */ -function setIsNavigationPanelOpened(isOpen) { +function actions_setIsNavigationPanelOpened(isOpen) { return { type: 'SET_IS_NAVIGATION_PANEL_OPENED', isOpen @@ -1094,10 +1141,17 @@ function actions_setIsListViewOpened(isOpen) { /** * Reverts a template to its original theme-provided file. * - * @param {Object} template The template to revert. + * @param {Object} template The template to revert. + * @param {Object} [options] + * @param {boolean} [options.allowUndo] Whether to allow the user to undo + * reverting the template. Default true. */ function* actions_revertTemplate(template) { + let { + allowUndo = true + } = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + if (!isTemplateRevertable(template)) { yield external_wp_data_["controls"].dispatch(external_wp_notices_["store"], 'createErrorNotice', Object(external_wp_i18n_["__"])('This template is not revertable.'), { type: 'snackbar' @@ -1160,21 +1214,25 @@ function* actions_revertTemplate(template) { source: 'theme' }); - const undoRevert = async () => { - await Object(external_wp_data_["dispatch"])(external_wp_coreData_["store"]).editEntityRecord('postType', template.type, edited.id, { - content: serializeBlocks, - blocks: edited.blocks, - source: 'custom' - }); - }; + if (allowUndo) { + const undoRevert = async () => { + await Object(external_wp_data_["dispatch"])(external_wp_coreData_["store"]).editEntityRecord('postType', template.type, edited.id, { + content: serializeBlocks, + blocks: edited.blocks, + source: 'custom' + }); + }; - yield external_wp_data_["controls"].dispatch(external_wp_notices_["store"], 'createSuccessNotice', Object(external_wp_i18n_["__"])('Template reverted.'), { - type: 'snackbar', - actions: [{ - label: Object(external_wp_i18n_["__"])('Undo'), - onClick: undoRevert - }] - }); + yield external_wp_data_["controls"].dispatch(external_wp_notices_["store"], 'createSuccessNotice', Object(external_wp_i18n_["__"])('Template reverted.'), { + type: 'snackbar', + actions: [{ + label: Object(external_wp_i18n_["__"])('Undo'), + onClick: undoRevert + }] + }); + } else { + yield external_wp_data_["controls"].dispatch(external_wp_notices_["store"], 'createSuccessNotice', Object(external_wp_i18n_["__"])('Template reverted.')); + } } catch (error) { const errorMessage = error.message && error.code !== 'unknown_error' ? error.message : Object(external_wp_i18n_["__"])('Template revert failed. Please reload.'); yield external_wp_data_["controls"].dispatch(external_wp_notices_["store"], 'createErrorNotice', errorMessage, { @@ -1290,6 +1348,7 @@ function getTemplatesLocationMap(templates) { + /** * Internal dependencies */ @@ -1332,6 +1391,20 @@ function selectors_experimentalGetPreviewDeviceType(state) { */ const getCanUserCreateMedia = Object(external_wp_data_["createRegistrySelector"])(select => () => select(external_wp_coreData_["store"]).canUser('create', 'media')); +/** + * Returns any available Reusable blocks. + * + * @param {Object} state Global application state. + * + * @return {Array} The available reusable blocks. + */ + +const getReusableBlocks = Object(external_wp_data_["createRegistrySelector"])(select => () => { + const isWeb = external_wp_element_["Platform"].OS === 'web'; + return isWeb ? select(external_wp_coreData_["store"]).getEntityRecords('postType', 'wp_block', { + per_page: -1 + }) : []; +}); /** * Returns the settings, taking into account active features and permissions. * @@ -1346,7 +1419,8 @@ const selectors_getSettings = Object(rememo["a" /* default */])((state, setIsIns outlineMode: true, focusMode: isFeatureActive(state, 'focusMode'), hasFixedToolbar: isFeatureActive(state, 'fixedToolbar'), - __experimentalSetIsInserterOpened: setIsInserterOpen + __experimentalSetIsInserterOpened: setIsInserterOpen, + __experimentalReusableBlocks: getReusableBlocks(state) }; const canUserCreateMedia = getCanUserCreateMedia(state); @@ -1372,7 +1446,7 @@ const selectors_getSettings = Object(rememo["a" /* default */])((state, setIsIns }; return settings; -}, state => [getCanUserCreateMedia(state), state.settings, isFeatureActive(state, 'focusMode'), isFeatureActive(state, 'fixedToolbar')]); +}, state => [getCanUserCreateMedia(state), state.settings, isFeatureActive(state, 'focusMode'), isFeatureActive(state, 'fixedToolbar'), getReusableBlocks(state)]); /** * Returns the current home template ID. * @@ -1558,7 +1632,9 @@ const getCurrentTemplateTemplateParts = Object(external_wp_data_["createRegistry const templateType = selectors_getEditedPostType(state); const templateId = selectors_getEditedPostId(state); const template = select(external_wp_coreData_["store"]).getEditedEntityRecord('postType', templateType, templateId); - const templateParts = select(external_wp_coreData_["store"]).getEntityRecords('postType', 'wp_template_part'); + const templateParts = select(external_wp_coreData_["store"]).getEntityRecords('postType', 'wp_template_part', { + per_page: -1 + }); const templatePartsById = Object(external_lodash_["keyBy"])(templateParts, templatePart => templatePart.id); return ((_template$blocks = template.blocks) !== null && _template$blocks !== void 0 ? _template$blocks : []).filter(block => Object(external_wp_blocks_["isTemplatePart"])(block)).map(block => { const { @@ -2567,7 +2643,7 @@ function findInPresetsBy(features, blockName, presetPath, presetProperty, preset for (const presetByOrigin of orderedPresetsByOrigin) { if (presetByOrigin) { // Preset origins ordered by priority. - const origins = ['user', 'theme', 'default']; + const origins = ['custom', 'theme', 'default']; for (const origin of origins) { const presets = presetByOrigin[origin]; @@ -2748,7 +2824,7 @@ function useSetting(path, blockName) { const setSetting = newValue => { setUserConfig(currentConfig => { const newUserConfig = Object(external_lodash_["cloneDeep"])(currentConfig); - const pathToSet = external_wp_blocks_["__EXPERIMENTAL_PATHS_WITH_MERGE"][path] ? fullPath + '.user' : fullPath; + const pathToSet = external_wp_blocks_["__EXPERIMENTAL_PATHS_WITH_MERGE"][path] ? fullPath + '.custom' : fullPath; Object(external_lodash_["set"])(newUserConfig, pathToSet, newValue); return newUserConfig; }); @@ -2761,9 +2837,9 @@ function useSetting(path, blockName) { const result = Object(external_lodash_["get"])(configToUse, currentPath); if (external_wp_blocks_["__EXPERIMENTAL_PATHS_WITH_MERGE"][path]) { - var _ref, _result$user; + var _ref, _result$custom; - return (_ref = (_result$user = result === null || result === void 0 ? void 0 : result.user) !== null && _result$user !== void 0 ? _result$user : result === null || result === void 0 ? void 0 : result.theme) !== null && _ref !== void 0 ? _ref : result === null || result === void 0 ? void 0 : result.default; + return (_ref = (_result$custom = result === null || result === void 0 ? void 0 : result.custom) !== null && _result$custom !== void 0 ? _result$custom : result === null || result === void 0 ? void 0 : result.theme) !== null && _ref !== void 0 ? _ref : result === null || result === void 0 ? void 0 : result.default; } return result; @@ -2870,7 +2946,7 @@ function getSupportedGlobalStylesPanels(name) { return supportKeys; } function useColorsPerOrigin(name) { - const [customColors] = useSetting('color.palette.user', name); + const [customColors] = useSetting('color.palette.custom', name); const [themeColors] = useSetting('color.palette.theme', name); const [defaultColors] = useSetting('color.palette.default', name); const [shouldDisplayDefaultColors] = useSetting('color.defaultPalette'); @@ -2902,7 +2978,7 @@ function useColorsPerOrigin(name) { }, [customColors, themeColors, defaultColors]); } function useGradientsPerOrigin(name) { - const [customGradients] = useSetting('color.gradients.user', name); + const [customGradients] = useSetting('color.gradients.custom', name); const [themeGradients] = useSetting('color.gradients.theme', name); const [defaultGradients] = useSetting('color.gradients.default', name); const [shouldDisplayDefaultGradients] = useSetting('color.defaultGradients'); @@ -3367,9 +3443,11 @@ function useHasLetterSpacingControl(name) { function TypographyPanel(_ref) { let { - name + name, + element } = _ref; const supports = getSupportedGlobalStylesPanels(name); + const prefix = element === 'text' || !element ? '' : `elements.${element}.`; const [fontSizes] = useSetting('typography.fontSizes', name); const disableCustomFontSizes = !useSetting('typography.customFontSize', name)[0]; const [fontFamilies] = useSetting('typography.fontFamilies', name); @@ -3378,16 +3456,34 @@ function TypographyPanel(_ref) { const hasLineHeightEnabled = useHasLineHeightControl(name); const hasAppearanceControl = useHasAppearanceControl(name); const hasLetterSpacingControl = useHasLetterSpacingControl(name); - const [fontFamily, setFontFamily] = useStyle('typography.fontFamily', name); - const [fontSize, setFontSize] = useStyle('typography.fontSize', name); - const [fontStyle, setFontStyle] = useStyle('typography.fontStyle', name); - const [fontWeight, setFontWeight] = useStyle('typography.fontWeight', name); - const [lineHeight, setLineHeight] = useStyle('typography.lineHeight', name); - const [letterSpacing, setLetterSpacing] = useStyle('typography.letterSpacing', name); + const [fontFamily, setFontFamily] = useStyle(prefix + 'typography.fontFamily', name); + const [fontSize, setFontSize] = useStyle(prefix + 'typography.fontSize', name); + const [fontStyle, setFontStyle] = useStyle(prefix + 'typography.fontStyle', name); + const [fontWeight, setFontWeight] = useStyle(prefix + 'typography.fontWeight', name); + const [lineHeight, setLineHeight] = useStyle(prefix + 'typography.lineHeight', name); + const [letterSpacing, setLetterSpacing] = useStyle(prefix + 'typography.letterSpacing', name); + const [backgroundColor] = useStyle(prefix + 'color.background', name); + const [gradientValue] = useStyle(prefix + 'color.gradient', name); + const [color] = useStyle(prefix + 'color.text', name); + const extraStyles = element === 'link' ? { + textDecoration: 'underline' + } : {}; return Object(external_wp_element_["createElement"])(external_wp_components_["PanelBody"], { className: "edit-site-typography-panel", initialOpen: true - }, supports.includes('fontFamily') && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["__experimentalFontFamilyControl"], { + }, Object(external_wp_element_["createElement"])("div", { + className: "edit-site-typography-panel__preview", + style: { + fontFamily: fontFamily !== null && fontFamily !== void 0 ? fontFamily : 'serif', + background: gradientValue !== null && gradientValue !== void 0 ? gradientValue : backgroundColor, + color, + fontSize, + fontStyle, + fontWeight, + letterSpacing, + ...extraStyles + } + }, "Aa"), supports.includes('fontFamily') && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["__experimentalFontFamilyControl"], { fontFamilies: fontFamilies, value: fontFamily, onChange: setFontFamily @@ -3626,36 +3722,6 @@ function ScreenBlock(_ref) { /* harmony default export */ var screen_block = (ScreenBlock); -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/screen-typography.js - - -/** - * WordPress dependencies - */ - -/** - * Internal dependencies - */ - - - - -function ScreenTypography(_ref) { - let { - name - } = _ref; - const parentMenu = name === undefined ? '' : '/blocks/' + name; - return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(global_styles_header, { - back: parentMenu ? parentMenu : '/', - title: Object(external_wp_i18n_["__"])('Typography'), - description: Object(external_wp_i18n_["__"])('Manage the fonts used on the website and the default aspect of different global elements.') - }), Object(external_wp_element_["createElement"])(TypographyPanel, { - name: name - })); -} - -/* harmony default export */ var screen_typography = (ScreenTypography); - // CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/subtitle.js @@ -3676,6 +3742,142 @@ function Subtitle(_ref) { /* harmony default export */ var subtitle = (Subtitle); +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/screen-typography.js + + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + + + + + +function Item(_ref) { + let { + name, + parentMenu, + element, + label + } = _ref; + const hasSupport = !name; + const prefix = element === 'text' || !element ? '' : `elements.${element}.`; + const extraStyles = element === 'link' ? { + textDecoration: 'underline' + } : {}; + const [fontFamily] = useStyle(prefix + 'typography.fontFamily', name); + const [fontStyle] = useStyle(prefix + 'typography.fontStyle', name); + const [fontWeight] = useStyle(prefix + 'typography.fontWeight', name); + const [letterSpacing] = useStyle(prefix + 'typography.letterSpacing', name); + const [backgroundColor] = useStyle(prefix + 'color.background', name); + const [gradientValue] = useStyle(prefix + 'color.gradient', name); + const [color] = useStyle(prefix + 'color.text', name); + + if (!hasSupport) { + return null; + } + + return Object(external_wp_element_["createElement"])(navigation_button, { + path: parentMenu + '/typography/' + element + }, Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalHStack"], { + justify: "flex-start" + }, Object(external_wp_element_["createElement"])(external_wp_components_["FlexItem"], { + className: "edit-site-global-styles-screen-typography__indicator", + style: { + fontFamily: fontFamily !== null && fontFamily !== void 0 ? fontFamily : 'serif', + background: gradientValue !== null && gradientValue !== void 0 ? gradientValue : backgroundColor, + color, + fontStyle, + fontWeight, + letterSpacing, + ...extraStyles + } + }, Object(external_wp_i18n_["__"])('Aa')), Object(external_wp_element_["createElement"])(external_wp_components_["FlexItem"], null, label))); +} + +function ScreenTypography(_ref2) { + let { + name + } = _ref2; + const parentMenu = name === undefined ? '' : '/blocks/' + name; + return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(global_styles_header, { + back: parentMenu ? parentMenu : '/', + title: Object(external_wp_i18n_["__"])('Typography'), + description: Object(external_wp_i18n_["__"])('Manage the typography settings for different elements.') + }), !name && Object(external_wp_element_["createElement"])("div", { + className: "edit-site-global-styles-screen-typography" + }, Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalVStack"], { + spacing: 3 + }, Object(external_wp_element_["createElement"])(subtitle, null, Object(external_wp_i18n_["__"])('Elements')), Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalItemGroup"], { + isBordered: true, + isSeparated: true + }, Object(external_wp_element_["createElement"])(Item, { + name: name, + parentMenu: parentMenu, + element: "text", + label: Object(external_wp_i18n_["__"])('Text') + }), Object(external_wp_element_["createElement"])(Item, { + name: name, + parentMenu: parentMenu, + element: "link", + label: Object(external_wp_i18n_["__"])('Links') + })))), !!name && Object(external_wp_element_["createElement"])(TypographyPanel, { + name: name, + element: "text" + })); +} + +/* harmony default export */ var screen_typography = (ScreenTypography); + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/screen-typography-element.js + + +/** + * WordPress dependencies + */ + +/** + * Internal dependencies + */ + + + +const screen_typography_element_elements = { + text: { + description: Object(external_wp_i18n_["__"])('Manage the fonts used on the site.'), + title: Object(external_wp_i18n_["__"])('Text') + }, + link: { + description: Object(external_wp_i18n_["__"])('Manage the fonts and typography used on the links.'), + title: Object(external_wp_i18n_["__"])('Links') + } +}; + +function ScreenTypographyElement(_ref) { + let { + name, + element + } = _ref; + const parentMenu = name === undefined ? '/typography' : '/blocks/' + name + '/typography'; + return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(global_styles_header, { + back: parentMenu, + title: screen_typography_element_elements[element].title, + description: screen_typography_element_elements[element].description + }), Object(external_wp_element_["createElement"])(TypographyPanel, { + name: name, + element: element + })); +} + +/* harmony default export */ var screen_typography_element = (ScreenTypographyElement); + // CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/palette.js @@ -3684,6 +3886,7 @@ function Subtitle(_ref) { */ + /** * Internal dependencies */ @@ -3697,9 +3900,14 @@ function Palette(_ref) { let { name } = _ref; - const [colorsSetting] = useSetting('color.palette.user', name); - const colors = colorsSetting || EMPTY_COLORS; + const [customColors] = useSetting('color.palette.custom'); + const [themeColors] = useSetting('color.palette.theme'); + const [defaultColors] = useSetting('color.palette.default'); + const [defaultPaletteEnabled] = useSetting('color.defaultPalette', name); + const colors = Object(external_wp_element_["useMemo"])(() => [...(customColors || EMPTY_COLORS), ...(themeColors || EMPTY_COLORS), ...(defaultColors && defaultPaletteEnabled ? defaultColors : EMPTY_COLORS)], [customColors, themeColors, defaultColors, defaultPaletteEnabled]); const screenPath = !name ? '/colors/palette' : '/blocks/' + name + '/colors/palette'; + const paletteButtonText = colors.length > 0 ? Object(external_wp_i18n_["sprintf"])( // Translators: %d: Number of palette colors. + Object(external_wp_i18n_["_n"])('%d color', '%d colors', colors.length), colors.length) : Object(external_wp_i18n_["__"])('Add custom colors'); return Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalVStack"], { spacing: 3 }, Object(external_wp_element_["createElement"])(subtitle, null, Object(external_wp_i18n_["__"])('Palette')), Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalItemGroup"], { @@ -3707,7 +3915,9 @@ function Palette(_ref) { isSeparated: true }, Object(external_wp_element_["createElement"])(navigation_button, { path: screenPath - }, Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalHStack"], null, Object(external_wp_element_["createElement"])(external_wp_components_["FlexBlock"], null, Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalZStack"], { + }, Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalHStack"], { + isReversed: colors.length === 0 + }, Object(external_wp_element_["createElement"])(external_wp_components_["FlexBlock"], null, Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalZStack"], { isLayered: false, offset: -8 }, colors.slice(0, 5).map(_ref2 => { @@ -3718,8 +3928,7 @@ function Palette(_ref) { key: color, colorValue: color }); - }))), Object(external_wp_element_["createElement"])(external_wp_components_["FlexItem"], null, Object(external_wp_i18n_["sprintf"])( // Translators: %d: Number of palette colors. - Object(external_wp_i18n_["_n"])('%d color', '%d colors', colors.length), colors.length)))))); + }))), Object(external_wp_element_["createElement"])(external_wp_components_["FlexItem"], null, paletteButtonText))))); } /* harmony default export */ var palette = (Palette); @@ -3864,24 +4073,24 @@ function ColorPalettePanel(_ref) { const [baseThemeColors] = useSetting('color.palette.theme', name, 'base'); const [defaultColors, setDefaultColors] = useSetting('color.palette.default', name); const [baseDefaultColors] = useSetting('color.palette.default', name, 'base'); - const [customColors, setCustomColors] = useSetting('color.palette.user', name); + const [customColors, setCustomColors] = useSetting('color.palette.custom', name); const [defaultPaletteEnabled] = useSetting('color.defaultPalette', name); return Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalVStack"], { className: "edit-site-global-styles-color-palette-panel", spacing: 10 - }, !!themeColors && !!themeColors.length && Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalColorEdit"], { + }, !!themeColors && !!themeColors.length && Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalPaletteEdit"], { canReset: themeColors !== baseThemeColors, canOnlyChangeValues: true, colors: themeColors, onChange: setThemeColors, paletteLabel: Object(external_wp_i18n_["__"])('Theme') - }), !!defaultColors && !!defaultColors.length && !!defaultPaletteEnabled && Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalColorEdit"], { + }), !!defaultColors && !!defaultColors.length && !!defaultPaletteEnabled && Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalPaletteEdit"], { canReset: defaultColors !== baseDefaultColors, canOnlyChangeValues: true, colors: defaultColors, onChange: setDefaultColors, paletteLabel: Object(external_wp_i18n_["__"])('Default') - }), Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalColorEdit"], { + }), Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalPaletteEdit"], { colors: customColors, onChange: setCustomColors, paletteLabel: Object(external_wp_i18n_["__"])('Custom'), @@ -3890,6 +4099,53 @@ function ColorPalettePanel(_ref) { })); } +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/gradients-palette-panel.js + + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + +function GradientPalettePanel(_ref) { + let { + name + } = _ref; + const [themeGradients, setThemeGradients] = useSetting('color.gradients.theme', name); + const [baseThemeGradients] = useSetting('color.gradients.theme', name, 'base'); + const [defaultGradients, setDefaultGradients] = useSetting('color.gradients.default', name); + const [baseDefaultGradients] = useSetting('color.gradients.default', name, 'base'); + const [customGradients, setCustomGradients] = useSetting('color.gradients.custom', name); + const [defaultPaletteEnabled] = useSetting('color.defaultGradients', name); + return Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalVStack"], { + className: "edit-site-global-styles-gradient-palette-panel", + spacing: 10 + }, !!themeGradients && !!themeGradients.length && Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalPaletteEdit"], { + canReset: themeGradients !== baseThemeGradients, + canOnlyChangeValues: true, + gradients: themeGradients, + onChange: setThemeGradients, + paletteLabel: Object(external_wp_i18n_["__"])('Theme') + }), !!defaultGradients && !!defaultGradients.length && !!defaultPaletteEnabled && Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalPaletteEdit"], { + canReset: defaultGradients !== baseDefaultGradients, + canOnlyChangeValues: true, + gradients: defaultGradients, + onChange: setDefaultGradients, + paletteLabel: Object(external_wp_i18n_["__"])('Default') + }), Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalPaletteEdit"], { + gradients: customGradients, + onChange: setCustomGradients, + paletteLabel: Object(external_wp_i18n_["__"])('Custom'), + emptyMessage: Object(external_wp_i18n_["__"])('Custom gradients are empty! Add some gradients to create your own palette.'), + slugPrefix: "custom-" + })); +} + // CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/global-styles/screen-color-palette.js @@ -3897,6 +4153,8 @@ function ColorPalettePanel(_ref) { * WordPress dependencies */ + + /** * Internal dependencies */ @@ -3904,16 +4162,33 @@ function ColorPalettePanel(_ref) { + function ScreenColorPalette(_ref) { let { name } = _ref; + const [currentTab, setCurrentTab] = Object(external_wp_element_["useState"])('solid'); const parentMenu = name === undefined ? '' : '/blocks/' + name; return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(global_styles_header, { back: parentMenu + '/colors', - title: Object(external_wp_i18n_["__"])('Color Palette'), - description: Object(external_wp_i18n_["__"])('Color palettes are used to provide default color options for blocks and various design tools. Here you can edit the colors with their labels.') - }), Object(external_wp_element_["createElement"])(ColorPalettePanel, { + title: Object(external_wp_i18n_["__"])('Palette'), + description: Object(external_wp_i18n_["__"])('Palettes are used to provide default color options for blocks and various design tools. Here you can edit the colors with their labels.') + }), Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalToggleGroupControl"], { + className: "edit-site-screen-color-palette-toggle", + value: currentTab, + onChange: setCurrentTab, + label: Object(external_wp_i18n_["__"])('Select palette type'), + hideLabelFromVision: true, + isBlock: true + }, Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalToggleGroupControlOption"], { + value: "solid", + label: Object(external_wp_i18n_["__"])('Solid') + }), Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalToggleGroupControlOption"], { + value: "gradient", + label: Object(external_wp_i18n_["__"])('Gradient') + })), currentTab === 'solid' && Object(external_wp_element_["createElement"])(ColorPalettePanel, { + name: name + }), currentTab === 'gradient' && Object(external_wp_element_["createElement"])(GradientPalettePanel, { name: name })); } @@ -4002,7 +4277,8 @@ function ScreenBackgroundColor(_ref) { disableCustomColors: !areCustomSolidsEnabled, disableCustomGradients: !areCustomGradientsEnabled, __experimentalHasMultipleOrigins: true, - showTitle: false + showTitle: false, + enableAlpha: true })); } @@ -4057,7 +4333,8 @@ function ScreenTextColor(_ref) { colors: colorsPerOrigin, disableCustomColors: !areCustomSolidsEnabled, __experimentalHasMultipleOrigins: true, - showTitle: false + showTitle: false, + enableAlpha: true })); } @@ -4112,7 +4389,8 @@ function ScreenLinkColor(_ref) { colors: colorsPerOrigin, disableCustomColors: !areCustomSolidsEnabled, __experimentalHasMultipleOrigins: true, - showTitle: false + showTitle: false, + enableAlpha: true })); } @@ -4175,6 +4453,7 @@ function ScreenLayout(_ref) { + function ContextScreens(_ref) { let { name @@ -4184,6 +4463,16 @@ function ContextScreens(_ref) { path: parentMenu + '/typography' }, Object(external_wp_element_["createElement"])(screen_typography, { name: name + })), Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalNavigatorScreen"], { + path: parentMenu + '/typography/text' + }, Object(external_wp_element_["createElement"])(screen_typography_element, { + name: name, + element: "text" + })), Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalNavigatorScreen"], { + path: parentMenu + '/typography/link' + }, Object(external_wp_element_["createElement"])(screen_typography_element, { + name: name, + element: "link" })), Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalNavigatorScreen"], { path: parentMenu + '/colors' }, Object(external_wp_element_["createElement"])(screen_colors, { @@ -4284,7 +4573,7 @@ function getPresetsDeclarations() { cssVarInfix } = _ref; const presetByOrigin = Object(external_lodash_["get"])(blockPresets, path, []); - ['default', 'theme', 'user'].forEach(origin => { + ['default', 'theme', 'custom'].forEach(origin => { if (presetByOrigin[origin]) { presetByOrigin[origin].forEach(value => { declarations.push(`--wp--preset--${cssVarInfix}--${Object(external_lodash_["kebabCase"])(value.slug)}: ${value[valueKey]}`); @@ -4317,7 +4606,7 @@ function getPresetsClasses(blockSelector) { } const presetByOrigin = Object(external_lodash_["get"])(blockPresets, path, []); - ['default', 'theme', 'user'].forEach(origin => { + ['default', 'theme', 'custom'].forEach(origin => { if (presetByOrigin[origin]) { presetByOrigin[origin].forEach(_ref3 => { let { @@ -4923,6 +5212,24 @@ function SidebarComplementaryAreaFills() { // EXTERNAL MODULE: external ["wp","htmlEntities"] var external_wp_htmlEntities_ = __webpack_require__("rmEH"); +// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/home.js + + +/** + * WordPress dependencies + */ + +const home = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], { + d: "M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z" +})); +/* harmony default export */ var library_home = (home); + +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/symbol-filled.js +var symbol_filled = __webpack_require__("OE6V"); + // CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/main-dashboard-button/index.js @@ -4975,45 +5282,55 @@ MainDashboardButton.Slot = main_dashboard_button_Slot; + /** * Internal dependencies */ +const SITE_EDITOR_KEY = 'site-editor'; + const NavigationPanel = _ref => { let { - isOpen, - setIsOpen, - activeTemplateType + activeItem = SITE_EDITOR_KEY } = _ref; - const siteTitle = Object(external_wp_data_["useSelect"])(select => { + const { + isNavigationOpen, + siteTitle + } = Object(external_wp_data_["useSelect"])(select => { const { getEntityRecord } = select(external_wp_coreData_["store"]); const siteData = getEntityRecord('root', '__unstableBase', undefined) || {}; - return siteData.name; - }, []); // Ensures focus is moved to the panel area when it is activated + return { + siteTitle: siteData.name, + isNavigationOpen: select(store).isNavigationOpened() + }; + }, []); + const { + setIsNavigationPanelOpened + } = Object(external_wp_data_["useDispatch"])(store); // Ensures focus is moved to the panel area when it is activated // from a separate component (such as document actions in the header). const panelRef = Object(external_wp_element_["useRef"])(); Object(external_wp_element_["useEffect"])(() => { - if (isOpen) { + if (isNavigationOpen) { panelRef.current.focus(); } - }, [activeTemplateType, isOpen]); + }, [activeItem, isNavigationOpen]); const closeOnEscape = event => { if (event.keyCode === external_wp_keycodes_["ESCAPE"] && !event.defaultPrevented) { event.preventDefault(); - setIsOpen(false); + setIsNavigationPanelOpened(false); } }; return (// eslint-disable-next-line jsx-a11y/no-static-element-interactions Object(external_wp_element_["createElement"])("div", { className: classnames_default()(`edit-site-navigation-panel`, { - 'is-open': isOpen + 'is-open': isNavigationOpen }), ref: panelRef, tabIndex: "-1", @@ -5027,7 +5344,7 @@ const NavigationPanel = _ref => { }, Object(external_wp_htmlEntities_["decodeEntities"])(siteTitle))), Object(external_wp_element_["createElement"])("div", { className: "edit-site-navigation-panel__scroll-container" }, Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalNavigation"], { - activeItem: activeTemplateType + activeItem: activeItem }, Object(external_wp_element_["createElement"])(main_dashboard_button.Slot, null, Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalNavigationBackButton"], { backButtonLabel: Object(external_wp_i18n_["__"])('Dashboard'), className: "edit-site-navigation-panel__back-to-dashboard", @@ -5035,12 +5352,15 @@ const NavigationPanel = _ref => { })), Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalNavigationMenu"], null, Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalNavigationGroup"], { title: Object(external_wp_i18n_["__"])('Editor') }, Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalNavigationItem"], { + icon: library_home, title: Object(external_wp_i18n_["__"])('Site'), + item: SITE_EDITOR_KEY, href: Object(external_wp_url_["addQueryArgs"])(window.location.href, { postId: undefined, postType: undefined }) }), Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalNavigationItem"], { + icon: layout["a" /* default */], title: Object(external_wp_i18n_["__"])('Templates'), item: "wp_template", href: Object(external_wp_url_["addQueryArgs"])(window.location.href, { @@ -5048,6 +5368,7 @@ const NavigationPanel = _ref => { postType: 'wp_template' }) }), Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalNavigationItem"], { + icon: symbol_filled["a" /* default */], title: Object(external_wp_i18n_["__"])('Template Parts'), item: "wp_template_part", href: Object(external_wp_url_["addQueryArgs"])(window.location.href, { @@ -5075,14 +5396,18 @@ var wordpress = __webpack_require__("wduq"); +/** + * Internal dependencies + */ + + function NavigationToggle(_ref) { let { - icon, - isOpen, - setIsOpen + icon } = _ref; const { + isNavigationOpen, isRequestingSiteIcon, siteIconUrl } = Object(external_wp_data_["useSelect"])(select => { @@ -5092,13 +5417,17 @@ function NavigationToggle(_ref) { } = select(external_wp_coreData_["store"]); const siteData = getEntityRecord('root', '__unstableBase', undefined) || {}; return { + isNavigationOpen: select(store).isNavigationOpened(), isRequestingSiteIcon: isResolving('core', 'getEntityRecord', ['root', '__unstableBase', undefined]), siteIconUrl: siteData.site_icon_url }; }, []); + const { + setIsNavigationPanelOpened + } = Object(external_wp_data_["useDispatch"])(store); const disableMotion = Object(external_wp_compose_["useReducedMotion"])(); - const toggleNavigationPanel = () => setIsOpen(open => !open); + const toggleNavigationPanel = () => setIsNavigationPanelOpened(!isNavigationOpen); let buttonIcon = Object(external_wp_element_["createElement"])(external_wp_components_["Icon"], { size: "36px", @@ -5132,7 +5461,7 @@ function NavigationToggle(_ref) { } return Object(external_wp_element_["createElement"])(external_wp_components_["__unstableMotion"].div, { - className: 'edit-site-navigation-toggle' + (isOpen ? ' is-open' : ''), + className: 'edit-site-navigation-toggle' + (isNavigationOpen ? ' is-open' : ''), whileHover: "expand" }, Object(external_wp_element_["createElement"])(external_wp_components_["Button"], { className: "edit-site-navigation-toggle__button has-icon", @@ -5153,12 +5482,14 @@ function NavigationToggle(_ref) { + /** * Internal dependencies */ + const { Fill: NavigationPanelPreviewFill, Slot: NavigationPanelPreviewSlot @@ -5169,28 +5500,28 @@ function NavigationSidebar(_ref) { activeTemplateType } = _ref; const isDesktopViewport = Object(external_wp_compose_["useViewportMatch"])('medium'); - const [isNavigationOpen, setIsNavigationOpen] = Object(external_wp_element_["useState"])(isDefaultOpen && isDesktopViewport); + const { + setIsNavigationPanelOpened + } = Object(external_wp_data_["useDispatch"])(store); Object(external_wp_element_["useEffect"])(() => { // When transitioning to desktop open the navigation if `isDefaultOpen` is true. if (isDefaultOpen && isDesktopViewport) { - setIsNavigationOpen(true); + setIsNavigationPanelOpened(true); } // When transitioning to mobile/tablet, close the navigation. if (!isDesktopViewport) { - setIsNavigationOpen(false); + setIsNavigationPanelOpened(false); } - }, [isDefaultOpen, isDesktopViewport]); - return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(navigation_toggle, { - isOpen: isNavigationOpen, - setIsOpen: setIsNavigationOpen - }), Object(external_wp_element_["createElement"])(navigation_panel, { - isOpen: isNavigationOpen, - setIsOpen: setIsNavigationOpen, - activeTemplateType: activeTemplateType + }, [isDefaultOpen, isDesktopViewport, setIsNavigationPanelOpened]); + return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(navigation_toggle, null), Object(external_wp_element_["createElement"])(navigation_panel, { + activeItem: activeTemplateType }), Object(external_wp_element_["createElement"])(NavigationPanelPreviewSlot, null)); } +// EXTERNAL MODULE: external ["wp","reusableBlocks"] +var external_wp_reusableBlocks_ = __webpack_require__("diJD"); + // CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/template-part-converter/convert-to-regular.js @@ -5839,6 +6170,7 @@ function ResizableEditor(_ref) { + /** * Internal dependencies */ @@ -5927,7 +6259,7 @@ function BlockEditor(_ref) { return Object(external_wp_element_["createElement"])(BlockInspectorButton, { onClick: onClose }); - }))); + })), Object(external_wp_element_["createElement"])(external_wp_reusableBlocks_["ReusableBlocksMenuItems"], null)); } // CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/keyboard-shortcuts/index.js @@ -6975,6 +7307,8 @@ function useRegisterShortcuts() { + + const DEFAULT_TEMPLATE_SLUGS = ['front-page', 'single-post', 'page', 'archive', 'search', '404', 'index']; function NewTemplate(_ref) { let { @@ -6984,36 +7318,51 @@ function NewTemplate(_ref) { templates, defaultTemplateTypes } = Object(external_wp_data_["useSelect"])(select => ({ - templates: select(external_wp_coreData_["store"]).getEntityRecords('postType', 'wp_template'), + templates: select(external_wp_coreData_["store"]).getEntityRecords('postType', 'wp_template', { + per_page: -1 + }), defaultTemplateTypes: select(external_wp_editor_["store"]).__experimentalGetDefaultTemplateTypes() }), []); + const { + createErrorNotice + } = Object(external_wp_data_["useDispatch"])(external_wp_notices_["store"]); async function createTemplate(_ref2) { let { slug } = _ref2; - const { - title, - description - } = Object(external_lodash_["find"])(defaultTemplateTypes, { - slug - }); - const template = await external_wp_apiFetch_default()({ - path: '/wp/v2/templates', - method: 'POST', - data: { - excerpt: description, - // Slugs need to be strings, so this is for template `404` - slug: slug.toString(), - status: 'publish', - title - } - }); // Navigate to the created template editor. - window.location.href = Object(external_wp_url_["addQueryArgs"])(window.location.href, { - postId: template.id, - postType: 'wp_template' - }); + try { + const { + title, + description + } = Object(external_lodash_["find"])(defaultTemplateTypes, { + slug + }); + const template = await external_wp_apiFetch_default()({ + path: '/wp/v2/templates', + method: 'POST', + data: { + excerpt: description, + // Slugs need to be strings, so this is for template `404` + slug: slug.toString(), + status: 'publish', + title + } + }); // Navigate to the created template editor. + + window.location.href = Object(external_wp_url_["addQueryArgs"])(window.location.href, { + postId: template.id, + postType: 'wp_template' + }); // Wait for async navigation to happen before closing the modal. + + await new Promise(() => {}); + } catch (error) { + const errorMessage = error.message && error.code !== 'unknown_error' ? error.message : Object(external_wp_i18n_["__"])('An error occurred while creating the template.'); + createErrorNotice(errorMessage, { + type: 'snackbar' + }); + } } const existingTemplateSlugs = Object(external_lodash_["map"])(templates, 'slug'); @@ -7071,6 +7420,9 @@ function NewTemplate(_ref) { + + + /** * Internal dependencies */ @@ -7081,6 +7433,9 @@ function NewTemplatePart(_ref) { postType } = _ref; const [isModalOpen, setIsModalOpen] = Object(external_wp_element_["useState"])(false); + const { + createErrorNotice + } = Object(external_wp_data_["useDispatch"])(external_wp_notices_["store"]); async function createTemplatePart(_ref2) { let { @@ -7089,26 +7444,34 @@ function NewTemplatePart(_ref) { } = _ref2; if (!title) { + createErrorNotice(Object(external_wp_i18n_["__"])('Title is not defined.'), { + type: 'snackbar' + }); return; } - const templatePart = await external_wp_apiFetch_default()({ - path: '/wp/v2/template-parts', - method: 'POST', - data: { - slug: Object(external_lodash_["kebabCase"])(title), - title, - content: '', - area - } - }); // Navigate to the created template part editor. + try { + const templatePart = await external_wp_apiFetch_default()({ + path: '/wp/v2/template-parts', + method: 'POST', + data: { + slug: Object(external_lodash_["kebabCase"])(title), + title, + content: '', + area + } + }); // Navigate to the created template part editor. - window.location.href = Object(external_wp_url_["addQueryArgs"])(window.location.href, { - postId: templatePart.id, - postType: 'wp_template_part' - }); // Wait for async navigation to happen before closing the modal. - - await new Promise(() => {}); + window.location.href = Object(external_wp_url_["addQueryArgs"])(window.location.href, { + postId: templatePart.id, + postType: 'wp_template_part' + }); + } catch (error) { + const errorMessage = error.message && error.code !== 'unknown_error' ? error.message : Object(external_wp_i18n_["__"])('An error occurred while creating the template part.'); + createErrorNotice(errorMessage, { + type: 'snackbar' + }); + } } return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(external_wp_components_["Button"], { @@ -7212,7 +7575,109 @@ function isTemplateRemovable(template) { return template.source === 'custom' && !template.has_theme_file; } -// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/list/table.js +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/list/actions/rename-menu-item.js + + +/** + * WordPress dependencies + */ + + + + + + +function RenameMenuItem(_ref) { + let { + template, + onClose + } = _ref; + const [title, setTitle] = Object(external_wp_element_["useState"])(() => template.title.rendered); + const [isModalOpen, setIsModalOpen] = Object(external_wp_element_["useState"])(false); + const { + getLastEntitySaveError + } = Object(external_wp_data_["useSelect"])(external_wp_coreData_["store"]); + const { + editEntityRecord, + saveEditedEntityRecord + } = Object(external_wp_data_["useDispatch"])(external_wp_coreData_["store"]); + const { + createSuccessNotice, + createErrorNotice + } = Object(external_wp_data_["useDispatch"])(external_wp_notices_["store"]); + + if (!template.is_custom) { + return null; + } + + async function onTemplateRename(event) { + event.preventDefault(); + + try { + await editEntityRecord('postType', template.type, template.id, { + title + }); // Update state before saving rerenders the list. + + setTitle(''); + setIsModalOpen(false); + onClose(); // Persist edited entity. + + await saveEditedEntityRecord('postType', template.type, template.id); + const lastError = getLastEntitySaveError('postType', template.type, template.id); + + if (lastError) { + throw lastError; + } + + createSuccessNotice(Object(external_wp_i18n_["__"])('Template has been renamed.'), { + type: 'snackbar' + }); + } catch (error) { + const errorMessage = error.message && error.code !== 'unknown_error' ? error.message : Object(external_wp_i18n_["__"])('An error occurred while renaming the template.'); + createErrorNotice(errorMessage, { + type: 'snackbar' + }); + } + } + + return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], { + onClick: () => { + setIsModalOpen(true); + setTitle(template.title.rendered); + } + }, Object(external_wp_i18n_["__"])('Rename')), isModalOpen && Object(external_wp_element_["createElement"])(external_wp_components_["Modal"], { + title: Object(external_wp_i18n_["__"])('Rename template'), + closeLabel: Object(external_wp_i18n_["__"])('Close'), + onRequestClose: () => { + setIsModalOpen(false); + }, + overlayClassName: "edit-site-list__rename-modal" + }, Object(external_wp_element_["createElement"])("form", { + onSubmit: onTemplateRename + }, Object(external_wp_element_["createElement"])(external_wp_components_["Flex"], { + align: "flex-start", + gap: 8 + }, Object(external_wp_element_["createElement"])(external_wp_components_["FlexItem"], null, Object(external_wp_element_["createElement"])(external_wp_components_["TextControl"], { + label: Object(external_wp_i18n_["__"])('Name'), + value: title, + onChange: setTitle, + required: true + }))), Object(external_wp_element_["createElement"])(external_wp_components_["Flex"], { + className: "edit-site-list__rename-modal-actions", + justify: "flex-end", + expanded: false + }, Object(external_wp_element_["createElement"])(external_wp_components_["FlexItem"], null, Object(external_wp_element_["createElement"])(external_wp_components_["Button"], { + variant: "tertiary", + onClick: () => { + setIsModalOpen(false); + } + }, Object(external_wp_i18n_["__"])('Cancel'))), Object(external_wp_element_["createElement"])(external_wp_components_["FlexItem"], null, Object(external_wp_element_["createElement"])(external_wp_components_["Button"], { + variant: "primary", + type: "submit" + }, Object(external_wp_i18n_["__"])('Save'))))))); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/list/actions/index.js /** @@ -7231,26 +7696,264 @@ function isTemplateRemovable(template) { + function Actions(_ref) { let { - template, - onClose + template } = _ref; const { - removeTemplate + removeTemplate, + revertTemplate } = Object(external_wp_data_["useDispatch"])(store); - return Object(external_wp_element_["createElement"])(external_wp_components_["MenuGroup"], null, Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], { - onClick: () => { - removeTemplate(template); - onClose(); + const { + saveEditedEntityRecord + } = Object(external_wp_data_["useDispatch"])(external_wp_coreData_["store"]); + const { + createSuccessNotice, + createErrorNotice + } = Object(external_wp_data_["useDispatch"])(external_wp_notices_["store"]); + const isRemovable = isTemplateRemovable(template); + const isRevertable = isTemplateRevertable(template); + + if (!isRemovable && !isRevertable) { + return null; + } + + async function revertAndSaveTemplate() { + try { + await revertTemplate(template, { + allowUndo: false + }); + await saveEditedEntityRecord('postType', template.type, template.id); + createSuccessNotice(Object(external_wp_i18n_["__"])('Template reverted.'), { + type: 'snackbar' + }); + } catch (error) { + const errorMessage = error.message && error.code !== 'unknown_error' ? error.message : Object(external_wp_i18n_["__"])('An error occurred while reverting the template.'); + createErrorNotice(errorMessage, { + type: 'snackbar' + }); } - }, Object(external_wp_i18n_["__"])('Remove template'))); + } + + return Object(external_wp_element_["createElement"])(external_wp_components_["DropdownMenu"], { + icon: more_vertical["a" /* default */], + label: Object(external_wp_i18n_["__"])('Actions'), + className: "edit-site-list-table__actions" + }, _ref2 => { + let { + onClose + } = _ref2; + return Object(external_wp_element_["createElement"])(external_wp_components_["MenuGroup"], null, isRemovable && Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(RenameMenuItem, { + template: template, + onClose: onClose + }), Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], { + isDestructive: true, + onClick: () => { + removeTemplate(template); + onClose(); + } + }, Object(external_wp_i18n_["__"])('Delete template'))), isRevertable && Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], { + info: Object(external_wp_i18n_["__"])('Restore template to theme default'), + onClick: () => { + revertAndSaveTemplate(); + onClose(); + } + }, Object(external_wp_i18n_["__"])('Clear customizations'))); + }); } -function Table(_ref2) { +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/plugins.js +var plugins = __webpack_require__("0Ene"); + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/list/added-by.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + + +const TEMPLATE_POST_TYPE_NAMES = ['wp_template', 'wp_template_part']; + +function CustomizedTooltip(_ref) { + let { + isCustomized, + children + } = _ref; + + if (!isCustomized) { + return children; + } + + return Object(external_wp_element_["createElement"])(external_wp_components_["Tooltip"], { + text: Object(external_wp_i18n_["__"])('This template has been customized') + }, children); +} + +function AddedByTheme(_ref2) { + var _theme$name; + + let { + slug, + isCustomized + } = _ref2; + const theme = Object(external_wp_data_["useSelect"])(select => select(external_wp_coreData_["store"]).getTheme(slug), [slug]); + return Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalHStack"], { + alignment: "left" + }, Object(external_wp_element_["createElement"])(CustomizedTooltip, { + isCustomized: isCustomized + }, Object(external_wp_element_["createElement"])("div", { + className: classnames_default()('edit-site-list-added-by__icon', { + 'is-customized': isCustomized + }) + }, Object(external_wp_element_["createElement"])(external_wp_components_["Icon"], { + icon: layout["a" /* default */] + }))), Object(external_wp_element_["createElement"])("span", null, (theme === null || theme === void 0 ? void 0 : (_theme$name = theme.name) === null || _theme$name === void 0 ? void 0 : _theme$name.rendered) || slug)); +} + +function AddedByPlugin(_ref3) { + let { + slug, + isCustomized + } = _ref3; + const plugin = Object(external_wp_data_["useSelect"])(select => select(external_wp_coreData_["store"]).getPlugin(slug), [slug]); + return Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalHStack"], { + alignment: "left" + }, Object(external_wp_element_["createElement"])(CustomizedTooltip, { + isCustomized: isCustomized + }, Object(external_wp_element_["createElement"])("div", { + className: "edit-site-list-added-by__icon" + }, Object(external_wp_element_["createElement"])(external_wp_components_["Icon"], { + icon: plugins["a" /* default */] + }))), Object(external_wp_element_["createElement"])("span", null, (plugin === null || plugin === void 0 ? void 0 : plugin.name) || slug)); +} + +function AddedByAuthor(_ref4) { + let { + id + } = _ref4; + const user = Object(external_wp_data_["useSelect"])(select => select(external_wp_coreData_["store"]).getUser(id), [id]); + const [isImageLoaded, setIsImageLoaded] = Object(external_wp_element_["useState"])(false); + return Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalHStack"], { + alignment: "left" + }, Object(external_wp_element_["createElement"])("div", { + className: classnames_default()('edit-site-list-added-by__avatar', { + 'is-loaded': isImageLoaded + }) + }, Object(external_wp_element_["createElement"])("img", { + onLoad: () => setIsImageLoaded(true), + alt: "", + src: user === null || user === void 0 ? void 0 : user.avatar_urls[48] + })), Object(external_wp_element_["createElement"])("span", null, user === null || user === void 0 ? void 0 : user.nickname)); +} + +function AddedBySite() { + const { + name, + logoURL + } = Object(external_wp_data_["useSelect"])(select => { + var _getMedia; + + const { + getEntityRecord, + getMedia + } = select(external_wp_coreData_["store"]); + const siteData = getEntityRecord('root', '__unstableBase'); + return { + name: siteData.name, + logoURL: siteData !== null && siteData !== void 0 && siteData.site_logo ? (_getMedia = getMedia(siteData.site_logo)) === null || _getMedia === void 0 ? void 0 : _getMedia.source_url : undefined + }; + }, []); + const [isImageLoaded, setIsImageLoaded] = Object(external_wp_element_["useState"])(false); + return Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalHStack"], { + alignment: "left" + }, Object(external_wp_element_["createElement"])("div", { + className: classnames_default()('edit-site-list-added-by__avatar', { + 'is-loaded': isImageLoaded + }) + }, Object(external_wp_element_["createElement"])("img", { + onLoad: () => setIsImageLoaded(true), + alt: "", + src: logoURL + })), Object(external_wp_element_["createElement"])("span", null, name)); +} + +function AddedBy(_ref5) { + let { + templateType, + template + } = _ref5; + + if (!template) { + return; + } + + if (TEMPLATE_POST_TYPE_NAMES.includes(templateType)) { + // Template originally provided by a theme, but customized by a user. + // Templates originally didn't have the 'origin' field so identify + // older customized templates by checking for no origin and a 'theme' + // or 'custom' source. + if (template.has_theme_file && (template.origin === 'theme' || !template.origin && ['theme', 'custom'].includes(template.source))) { + return Object(external_wp_element_["createElement"])(AddedByTheme, { + slug: template.theme, + isCustomized: template.source === 'custom' + }); + } // Template originally provided by a plugin, but customized by a user. + + + if (template.has_theme_file && template.origin === 'plugin') { + return Object(external_wp_element_["createElement"])(AddedByPlugin, { + slug: template.theme, + isCustomized: template.source === 'custom' + }); + } // Template was created from scratch, but has no author. Author support + // was only added to templates in WordPress 5.9. Fallback to showing the + // site logo and title. + + + if (!template.has_theme_file && template.source === 'custom' && !template.author) { + return Object(external_wp_element_["createElement"])(AddedBySite, null); + } + } // Simply show the author for templates created from scratch that have an + // author or for any other post type. + + + return Object(external_wp_element_["createElement"])(AddedByAuthor, { + id: template.author + }); +} + +// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/list/table.js + + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + + +function Table(_ref) { let { templateType - } = _ref2; + } = _ref; const { templates, isLoading, @@ -7262,8 +7965,12 @@ function Table(_ref2) { getPostType } = select(external_wp_coreData_["store"]); return { - templates: getEntityRecords('postType', templateType), - isLoading: !hasFinishedResolution('getEntityRecords', ['postType', templateType]), + templates: getEntityRecords('postType', templateType, { + per_page: -1 + }), + isLoading: !hasFinishedResolution('getEntityRecords', ['postType', templateType, { + per_page: -1 + }]), postType: getPostType(templateType) }; }, [templateType]); @@ -7279,54 +7986,59 @@ function Table(_ref2) { Object(external_wp_i18n_["__"])('No %s found.'), postType === null || postType === void 0 ? void 0 : (_postType$labels = postType.labels) === null || _postType$labels === void 0 ? void 0 : (_postType$labels$name = _postType$labels.name) === null || _postType$labels$name === void 0 ? void 0 : _postType$labels$name.toLowerCase())); } - return Object(external_wp_element_["createElement"])("ul", { - className: "edit-site-list-table" - }, Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalHStack"], { - className: "edit-site-list-table-head", - as: "li" - }, Object(external_wp_element_["createElement"])(external_wp_components_["FlexItem"], { - className: "edit-site-list-table-column" - }, Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalHeading"], { - level: 4 - }, Object(external_wp_i18n_["__"])('Template'))), Object(external_wp_element_["createElement"])(external_wp_components_["FlexItem"], { - className: "edit-site-list-table-column" - }, Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalHeading"], { - level: 4 - }, Object(external_wp_i18n_["__"])('Added by'))), Object(external_wp_element_["createElement"])(external_wp_components_["FlexItem"], { - className: "edit-site-list-table-column" - }, Object(external_wp_element_["createElement"])(external_wp_components_["VisuallyHidden"], null, Object(external_wp_i18n_["__"])('Actions')))), templates.map(template => Object(external_wp_element_["createElement"])("li", { - key: template.id - }, Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalHStack"], { - className: "edit-site-list-table-row" - }, Object(external_wp_element_["createElement"])(external_wp_components_["FlexItem"], { - className: "edit-site-list-table-column" - }, Object(external_wp_element_["createElement"])("a", { - href: Object(external_wp_url_["addQueryArgs"])(window.location.href, { - postId: template.id, - postType: template.type - }) - }, template.title.rendered), template.description), Object(external_wp_element_["createElement"])(external_wp_components_["FlexItem"], { - className: "edit-site-list-table-column" - }, template.theme), Object(external_wp_element_["createElement"])(external_wp_components_["FlexItem"], { - className: "edit-site-list-table-column" - }, isTemplateRemovable(template) && Object(external_wp_element_["createElement"])(external_wp_components_["DropdownMenu"], { - icon: more_vertical["a" /* default */], - label: Object(external_wp_i18n_["__"])('Actions'), - className: "edit-site-list-table__actions" - }, _ref3 => { - let { - onClose - } = _ref3; - return Object(external_wp_element_["createElement"])(Actions, { - template: template, - onClose: onClose - }); - })))))); + return (// These explicit aria roles are needed for Safari. + // See https://developer.mozilla.org/en-US/docs/Web/CSS/display#tables + Object(external_wp_element_["createElement"])("table", { + className: "edit-site-list-table", + role: "table" + }, Object(external_wp_element_["createElement"])("thead", null, Object(external_wp_element_["createElement"])("tr", { + className: "edit-site-list-table-head", + role: "row" + }, Object(external_wp_element_["createElement"])("th", { + className: "edit-site-list-table-column", + role: "columnheader" + }, Object(external_wp_i18n_["__"])('Template')), Object(external_wp_element_["createElement"])("th", { + className: "edit-site-list-table-column", + role: "columnheader" + }, Object(external_wp_i18n_["__"])('Added by')), Object(external_wp_element_["createElement"])("th", { + className: "edit-site-list-table-column", + role: "columnheader" + }, Object(external_wp_element_["createElement"])(external_wp_components_["VisuallyHidden"], null, Object(external_wp_i18n_["__"])('Actions'))))), Object(external_wp_element_["createElement"])("tbody", null, templates.map(template => Object(external_wp_element_["createElement"])("tr", { + key: template.id, + className: "edit-site-list-table-row", + role: "row" + }, Object(external_wp_element_["createElement"])("td", { + className: "edit-site-list-table-column", + role: "cell" + }, Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalHeading"], { + level: 4 + }, Object(external_wp_element_["createElement"])("a", { + href: Object(external_wp_url_["addQueryArgs"])(window.location.href, { + postId: template.id, + postType: template.type + }) + }, template.title.rendered)), template.description), Object(external_wp_element_["createElement"])("td", { + className: "edit-site-list-table-column", + role: "cell" + }, Object(external_wp_element_["createElement"])(AddedBy, { + templateType: templateType, + template: template + })), Object(external_wp_element_["createElement"])("td", { + className: "edit-site-list-table-column", + role: "cell" + }, Object(external_wp_element_["createElement"])(Actions, { + template: template + })))))) + ); } // CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/list/index.js +/** + * External dependencies + */ + /** * WordPress dependencies */ @@ -7335,6 +8047,8 @@ function Table(_ref2) { + + /** * Internal dependencies */ @@ -7343,6 +8057,7 @@ function Table(_ref2) { + function List(_ref) { var _postType$labels; @@ -7352,11 +8067,13 @@ function List(_ref) { useRegisterShortcuts(); const { previousShortcut, - nextShortcut + nextShortcut, + isNavigationOpen } = Object(external_wp_data_["useSelect"])(select => { return { previousShortcut: select(external_wp_keyboardShortcuts_["store"]).getAllShortcutKeyCombinations('core/edit-site/previous-region'), - nextShortcut: select(external_wp_keyboardShortcuts_["store"]).getAllShortcutKeyCombinations('core/edit-site/next-region') + nextShortcut: select(external_wp_keyboardShortcuts_["store"]).getAllShortcutKeyCombinations('core/edit-site/next-region'), + isNavigationOpen: select(store).isNavigationOpened() }; }, []); const postType = Object(external_wp_data_["useSelect"])(select => select(external_wp_coreData_["store"]).getPostType(templateType), [templateType]); // `postType` could load in asynchronously. Only provide the detailed region labels if @@ -7370,7 +8087,9 @@ function List(_ref) { Object(external_wp_i18n_["__"])('%s - Content'), itemsListLabel) } : undefined; return Object(external_wp_element_["createElement"])(build_module["e" /* InterfaceSkeleton */], { - className: "edit-site-list", + className: classnames_default()('edit-site-list', { + 'is-navigation-open': isNavigationOpen + }), labels: { drawer: Object(external_wp_i18n_["__"])('Navigation Sidebar'), ...detailedRegionLabels @@ -7382,6 +8101,7 @@ function List(_ref) { activeTemplateType: templateType, isDefaultOpen: true }), + notices: Object(external_wp_element_["createElement"])(external_wp_editor_["EditorSnackbars"], null), content: Object(external_wp_element_["createElement"])("main", { className: "edit-site-list-main" }, Object(external_wp_element_["createElement"])(Table, { @@ -7628,6 +8348,7 @@ function PluginSidebarMoreMenuItem(props) { + /** * Internal dependencies */ @@ -7693,7 +8414,11 @@ function initializeList(id, templateType, settings) { Object(external_wp_data_["dispatch"])(external_wp_editor_["store"]).updateEditorSettings({ defaultTemplateTypes: settings.defaultTemplateTypes, defaultTemplatePartAreas: settings.defaultTemplatePartAreas - }); + }); // Default the navigation panel to be opened when we're in a bigger screen. + // We update the store synchronously before rendering so that we won't + // trigger an unnecessary re-render with useEffect. + + Object(external_wp_data_["dispatch"])(store).setIsNavigationPanelOpened(Object(external_wp_data_["select"])(external_wp_viewport_["store"]).isViewportMatch('medium')); Object(external_wp_element_["render"])(Object(external_wp_element_["createElement"])(List, { templateType: templateType }), target); @@ -7801,6 +8526,31 @@ const undo = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEleme /* harmony default export */ __webpack_exports__["a"] = (undo); +/***/ }), + +/***/ "OE6V": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId"); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9"); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +const symbolFilled = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z" +})); +/* harmony default export */ __webpack_exports__["a"] = (symbolFilled); + + /***/ }), /***/ "OzlF": @@ -9353,6 +10103,13 @@ const arrowLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["create /* harmony default export */ __webpack_exports__["a"] = (arrowLeft); +/***/ }), + +/***/ "diJD": +/***/ (function(module, exports) { + +(function() { module.exports = window["wp"]["reusableBlocks"]; }()); + /***/ }), /***/ "g56x": diff --git a/wp-includes/js/dist/edit-site.min.js b/wp-includes/js/dist/edit-site.min.js index 8a40a62b71..7798ad2ce7 100644 --- a/wp-includes/js/dist/edit-site.min.js +++ b/wp-includes/js/dist/edit-site.min.js @@ -1,7 +1,7 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.editSite=function(e){var t={};function n(c){if(t[c])return t[c].exports;var r=t[c]={i:c,l:!1,exports:{}};return e[c].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,c){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:c})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(n.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(c,r,function(t){return e[t]}.bind(null,r));return c},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="IqXm")}({"1ZqX":function(e,t){e.exports=window.wp.data},"1iEr":function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=a},"2gm7":function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=a},"51Zz":function(e,t){e.exports=window.wp.dataControls},"6aBm":function(e,t){e.exports=window.wp.mediaUtils},B9Az:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");var a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=a},Cg8A:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{fillRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",clipRule:"evenodd"}));t.a=a},Civd:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));t.a=a},GRId:function(e,t){e.exports=window.wp.element},HSyU:function(e,t){e.exports=window.wp.blocks},IqXm:function(e,t,n){"use strict";n.r(t),n.d(t,"reinitializeEditor",(function(){return Wc})),n.d(t,"initializeEditor",(function(){return qc})),n.d(t,"initializeList",(function(){return $c})),n.d(t,"__experimentalMainDashboardButton",(function(){return zn})),n.d(t,"__experimentalNavigationToggle",(function(){return Wn})),n.d(t,"PluginSidebar",(function(){return zc})),n.d(t,"PluginSidebarMoreMenuItem",(function(){return Uc})),n.d(t,"PluginMoreMenuItem",(function(){return Hc}));var c={};n.r(c),n.d(c,"toggleFeature",(function(){return G})),n.d(c,"__experimentalSetPreviewDeviceType",(function(){return V})),n.d(c,"setTemplate",(function(){return z})),n.d(c,"addTemplate",(function(){return U})),n.d(c,"removeTemplate",(function(){return H})),n.d(c,"setTemplatePart",(function(){return W})),n.d(c,"pushTemplatePart",(function(){return q})),n.d(c,"setHomeTemplateId",(function(){return $})),n.d(c,"setPage",(function(){return K})),n.d(c,"goBack",(function(){return Q})),n.d(c,"showHomepage",(function(){return Y})),n.d(c,"setNavigationPanelActiveMenu",(function(){return X})),n.d(c,"openNavigationPanelToMenu",(function(){return Z})),n.d(c,"setIsNavigationPanelOpened",(function(){return J})),n.d(c,"setIsInserterOpened",(function(){return ee})),n.d(c,"updateSettings",(function(){return te})),n.d(c,"setIsListViewOpened",(function(){return ne})),n.d(c,"revertTemplate",(function(){return ce})),n.d(c,"openGeneralSidebar",(function(){return re})),n.d(c,"closeGeneralSidebar",(function(){return ae}));var r={};n.r(r),n.d(r,"isFeatureActive",(function(){return ue})),n.d(r,"__experimentalGetPreviewDeviceType",(function(){return de})),n.d(r,"getCanUserCreateMedia",(function(){return me})),n.d(r,"getSettings",(function(){return pe})),n.d(r,"getHomeTemplateId",(function(){return be})),n.d(r,"getEditedPostType",(function(){return je})),n.d(r,"getEditedPostId",(function(){return ge})),n.d(r,"getPreviousEditedPostType",(function(){return fe})),n.d(r,"getPreviousEditedPostId",(function(){return Ee})),n.d(r,"getPage",(function(){return he})),n.d(r,"getNavigationPanelActiveMenu",(function(){return ve})),n.d(r,"getCurrentTemplateNavigationPanelSubMenu",(function(){return ye})),n.d(r,"isNavigationOpened",(function(){return we})),n.d(r,"isInserterOpened",(function(){return Se})),n.d(r,"__experimentalGetInsertionPoint",(function(){return xe})),n.d(r,"isListViewOpened",(function(){return Te})),n.d(r,"getCurrentTemplateTemplateParts",(function(){return ke}));var a=n("GRId"),l=n("HSyU"),o=n("QyPg"),i=n("1ZqX"),s=n("jZUy"),u=n("jSdM"),d=n("rrFr"),m=n.n(d),p=n("tI+e"),b=n("l3Sj"),O=n("TvNi"),_=n("ywyh"),j=n.n(_),g=n("Tqx9");var f=Object(a.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(g.Path,{d:"M18 11.3l-1-1.1-4 4V3h-1.5v11.3L7 10.2l-1 1.1 6.2 5.8 5.8-5.8zm.5 3.7v3.5h-13V15H4v5h16v-5h-1.5z"})),E=n("YLtl");const{Fill:h,Slot:v}=Object(p.createSlotFill)("EditSiteToolsMoreMenuGroup");h.Slot=e=>{let{fillProps:t}=e;return Object(a.createElement)(v,{fillProps:t},e=>!Object(E.isEmpty)(e)&&Object(a.createElement)(p.MenuGroup,{label:Object(b.__)("Tools")},e))};var y=h,w=n("U60i"),S=n("51Zz");const x={features:{welcomeGuide:!0,welcomeGuideStyles:!0}},T="core/edit-site",k={header:Object(b.__)("Header"),footer:Object(b.__)("Footer"),sidebar:Object(b.__)("Sidebar"),uncategorized:Object(b.__)("General")},I=["index","singular","archive","single","page","home","404","search","author","category","taxonomy","date","tag","attachment","single-post","front-page"],C=["page-home"],N=["post-","author-","single-post-","tag-"],P=["page-"],A={singular:["single","page"],index:["archive","404","search","singular","home"],home:["front-page"]},M=[{area:"header",menu:"template-parts-headers",title:Object(b.__)("headers")},{area:"footer",menu:"template-parts-footers",title:Object(b.__)("footers")},{area:"sidebar",menu:"template-parts-sidebars",title:Object(b.__)("sidebars")},{area:"uncategorized",menu:"template-parts-general",title:Object(b.__)("general")}],R=Object(i.combineReducers)({features(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:x.features,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOGGLE_FEATURE":return{...e,[t.feature]:!e[t.feature]};default:return e}}});var B=Object(i.combineReducers)({preferences:R,deviceType:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Desktop",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PREVIEW_DEVICE_TYPE":return t.deviceType}return e},settings:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return{...e,...t.settings}}return e},editedPost:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE":case"SET_PAGE":return[{type:"wp_template",id:t.templateId,page:t.page}];case"SET_TEMPLATE_PART":return[{type:"wp_template_part",id:t.templatePartId}];case"PUSH_TEMPLATE_PART":return[...e,{type:"wp_template_part",id:t.templatePartId}];case"GO_BACK":return e.slice(0,-1)}return e},homeTemplateId:function(e,t){switch(t.type){case"SET_HOME_TEMPLATE":return t.homeTemplateId}return e},navigationPanel:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{menu:"root",isOpen:!1},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_NAVIGATION_PANEL_ACTIVE_MENU":return{...e,menu:t.menu};case"OPEN_NAVIGATION_PANEL_TO_MENU":return{...e,isOpen:!0,menu:t.menu};case"SET_IS_NAVIGATION_PANEL_OPENED":return{...e,menu:t.isOpen?e.menu:"root",isOpen:t.isOpen};case"SET_IS_LIST_VIEW_OPENED":return{...e,menu:e.isOpen&&t.isOpen?"root":e.menu,isOpen:!t.isOpen&&e.isOpen};case"SET_IS_INSERTER_OPENED":return{...e,menu:e.isOpen&&t.value?"root":e.menu,isOpen:!t.value&&e.isOpen}}return e},blockInserterPanel:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_NAVIGATION_PANEL_TO_MENU":return!1;case"SET_IS_NAVIGATION_PANEL_OPENED":case"SET_IS_LIST_VIEW_OPENED":return!t.isOpen&&e;case"SET_IS_INSERTER_OPENED":return t.value}return e},listViewPanel:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_NAVIGATION_PANEL_TO_MENU":return!1;case"SET_IS_NAVIGATION_PANEL_OPENED":return!t.isOpen&&e;case"SET_IS_INSERTER_OPENED":return!t.value&&e;case"SET_IS_LIST_VIEW_OPENED":return t.isOpen}return e}}),L=n("Mmq9"),F=n("onLe");function D(e){return!!e&&("custom"===(null==e?void 0:e.source)&&(null==e?void 0:e.has_theme_file))}function G(e){return{type:"TOGGLE_FEATURE",feature:e}}function V(e){return{type:"SET_PREVIEW_DEVICE_TYPE",deviceType:e}}function*z(e,t){const n={templateSlug:t};if(!t){const t=yield i.controls.resolveSelect(s.store,"getEntityRecord","postType","wp_template",e);n.templateSlug=null==t?void 0:t.slug}return{type:"SET_TEMPLATE",templateId:e,page:{context:n}}}function*U(e){const t=yield i.controls.dispatch(s.store,"saveEntityRecord","postType","wp_template",e);return e.content&&(yield i.controls.dispatch(s.store,"editEntityRecord","postType","wp_template",t.id,{blocks:Object(l.parse)(e.content)},{undoIgnore:!0})),{type:"SET_TEMPLATE",templateId:t.id,page:{context:{templateSlug:t.slug}}}}function*H(e){yield i.controls.dispatch(s.store,"deleteEntityRecord","postType",e.type,e.id,{force:!0})}function W(e){return{type:"SET_TEMPLATE_PART",templatePartId:e}}function q(e){return{type:"PUSH_TEMPLATE_PART",templatePartId:e}}function $(e){return{type:"SET_HOME_TEMPLATE",homeTemplateId:e}}function*K(e){var t;if(!e.path&&null!==(t=e.context)&&void 0!==t&&t.postId){const t=yield i.controls.resolveSelect(s.store,"getEntityRecord","postType",e.context.postType||"post",e.context.postId);e.path=Object(L.getPathAndQueryString)(t.link)}const{id:n,slug:c}=yield i.controls.resolveSelect(s.store,"__experimentalGetTemplateForLink",e.path);return yield{type:"SET_PAGE",page:c?{...e,context:{...e.context,templateSlug:c}}:e,templateId:n},n}function Q(){return{type:"GO_BACK"}}function*Y(){const{show_on_front:e,page_on_front:t}=yield i.controls.resolveSelect(s.store,"getEntityRecord","root","site"),{siteUrl:n}=yield i.controls.select(T,"getSettings"),c={path:n,context:"page"===e?{postType:"page",postId:t}:{}},r=yield*K(c);yield $(r)}function X(e){return{type:"SET_NAVIGATION_PANEL_ACTIVE_MENU",menu:e}}function Z(e){return{type:"OPEN_NAVIGATION_PANEL_TO_MENU",menu:e}}function J(e){return{type:"SET_IS_NAVIGATION_PANEL_OPENED",isOpen:e}}function ee(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}function te(e){return{type:"UPDATE_SETTINGS",settings:e}}function ne(e){return{type:"SET_IS_LIST_VIEW_OPENED",isOpen:e}}function*ce(e){if(D(e))try{var t;const n=yield i.controls.select(s.store,"getEntity","postType",e.type);if(!n)return void(yield i.controls.dispatch(F.store,"createErrorNotice",Object(b.__)("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"}));const c=Object(L.addQueryArgs)(`${n.baseURL}/${e.id}`,{context:"edit",source:"theme"}),r=yield Object(S.apiFetch)({path:c});if(!r)return void(yield i.controls.dispatch(F.store,"createErrorNotice",Object(b.__)("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"}));const a=e=>{let{blocks:t=[]}=e;return Object(l.__unstableSerializeAndClean)(t)},o=yield i.controls.select(s.store,"getEditedEntityRecord","postType",e.type,e.id);yield i.controls.dispatch(s.store,"editEntityRecord","postType",e.type,e.id,{content:a,blocks:o.blocks,source:"custom"},{undoIgnore:!0});const u=Object(l.parse)(null==r||null===(t=r.content)||void 0===t?void 0:t.raw);yield i.controls.dispatch(s.store,"editEntityRecord","postType",e.type,r.id,{content:a,blocks:u,source:"theme"});const d=async()=>{await Object(i.dispatch)(s.store).editEntityRecord("postType",e.type,o.id,{content:a,blocks:o.blocks,source:"custom"})};yield i.controls.dispatch(F.store,"createSuccessNotice",Object(b.__)("Template reverted."),{type:"snackbar",actions:[{label:Object(b.__)("Undo"),onClick:d}]})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:Object(b.__)("Template revert failed. Please reload.");yield i.controls.dispatch(F.store,"createErrorNotice",t,{type:"snackbar"})}else yield i.controls.dispatch(F.store,"createErrorNotice",Object(b.__)("This template is not revertable."),{type:"snackbar"})}function*re(e){yield i.controls.dispatch(w.i,"enableComplementaryArea",T,e)}function*ae(){yield i.controls.dispatch(w.i,"disableComplementaryArea",T)}var le=n("pPDe"),oe=n("6aBm");function ie(e,t,n){return!!A[e]&&("home"===e&&"posts"!==n||A[e].every(e=>t.includes(e)||ie(e,t,n)))}function se(e){if(I.includes(e))return"templates";if(C.includes(e))return"templates-general";if(N.some(t=>e.startsWith(t)))return"templates-posts";return P.some(t=>e.startsWith(t))?"templates-pages":"templates-general"}function ue(e,t){return Object(E.get)(e.preferences.features,[t],!1)}function de(e){return e.deviceType}const me=Object(i.createRegistrySelector)(e=>()=>e(s.store).canUser("create","media")),pe=Object(le.a)((e,t)=>{const n={...e.settings,outlineMode:!0,focusMode:ue(e,"focusMode"),hasFixedToolbar:ue(e,"fixedToolbar"),__experimentalSetIsInserterOpened:t};return me(e)?(n.mediaUpload=t=>{let{onError:n,...c}=t;Object(oe.uploadMedia)({wpAllowedMimeTypes:e.settings.allowedMimeTypes,onError:e=>{let{message:t}=e;return n(t)},...c})},n):n},e=>[me(e),e.settings,ue(e,"focusMode"),ue(e,"fixedToolbar")]);function be(e){return e.homeTemplateId}function Oe(e){return e.editedPost[e.editedPost.length-1]||{}}function _e(e){return e.editedPost[e.editedPost.length-2]||{}}function je(e){return Oe(e).type}function ge(e){return Oe(e).id}function fe(e){return _e(e).type}function Ee(e){return _e(e).id}function he(e){return Oe(e).page}function ve(e){return e.navigationPanel.menu}const ye=Object(i.createRegistrySelector)(e=>t=>{const n=je(t),c=ge(t),r=c?e(s.store).getEntityRecord("postType",n,c):null;if(!r)return"root";var a;if("wp_template_part"===n)return(null===(a=M.find(e=>e.area===(null==r?void 0:r.area)))||void 0===a?void 0:a.menu)||"template-parts";const l=e(s.store).getEntityRecords("postType","wp_template"),o=e(s.store).getEditedEntityRecord("root","site").show_on_front;return ie(r.slug,Object(E.map)(l,"slug"),o)?"templates-unused":se(r.slug)});function we(e){return e.navigationPanel.isOpen}function Se(e){return!!e.blockInserterPanel}function xe(e){const{rootClientId:t,insertionIndex:n,filterValue:c}=e.blockInserterPanel;return{rootClientId:t,insertionIndex:n,filterValue:c}}function Te(e){return e.listViewPanel}const ke=Object(i.createRegistrySelector)(e=>t=>{var n;const c=je(t),r=ge(t),a=e(s.store).getEditedEntityRecord("postType",c,r),o=e(s.store).getEntityRecords("postType","wp_template_part"),i=Object(E.keyBy)(o,e=>e.id);return(null!==(n=a.blocks)&&void 0!==n?n:[]).filter(e=>Object(l.isTemplatePart)(e)).map(e=>{const{attributes:{theme:t,slug:n}}=e;return{templatePart:i[`${t}//${n}`],block:e}}).filter(e=>{let{templatePart:t}=e;return!!t})}),Ie={reducer:B,actions:c,selectors:r,controls:S.controls,persist:["preferences"]},Ce=Object(i.createReduxStore)(T,Ie);function Ne(){const{toggleFeature:e}=Object(i.useDispatch)(Ce),t=Object(i.useSelect)(e=>"edit-site/global-styles"===e(w.i).getActiveComplementaryArea(Ce.name),[]);return Object(a.createElement)(p.MenuItem,{onClick:()=>e(t?"welcomeGuideStyles":"welcomeGuide")},Object(b.__)("Welcome Guide"))}Object(i.registerStore)(T,Ie),Object(O.registerPlugin)("edit-site",{render:()=>Object(a.createElement)(a.Fragment,null,Object(a.createElement)(y,null,Object(a.createElement)(p.MenuItem,{role:"menuitem",icon:f,onClick:()=>j()({path:"/wp-block-editor/v1/export",parse:!1}).then(e=>e.blob()).then(e=>m()(e,"edit-site-export.zip","application/zip")),info:Object(b.__)("Download your templates and template parts.")},Object(b.__)("Export")),Object(a.createElement)(Ne,null)))});var Pe=n("g56x");Object(Pe.addFilter)("editor.MediaUpload","core/edit-site/components/media-upload",()=>oe.MediaUpload);var Ae=n("axFQ"),Me=n("hF7m"),Re=n("K9lf"),Be=n("Q4Sy"),Le=n("OzlF"),Fe=n("VKE3"),De=n("RMJe"),Ge=n("gdqT");function Ve(e){let{feature:t,label:n,info:c,messageActivated:r,messageDeactivated:l}=e;const o=Object(i.useSelect)(e=>e(Ce).isFeatureActive(t),[]),{toggleFeature:s}=Object(i.useDispatch)(Ce);return Object(a.createElement)(p.MenuItem,{icon:o&&De.a,isSelected:o,onClick:Object(E.flow)(s.bind(null,t),()=>{o?Object(Ge.speak)(l||Object(b.__)("Feature deactivated")):Object(Ge.speak)(r||Object(b.__)("Feature activated"))}),role:"menuitemcheckbox",info:c},n)}const ze={className:"edit-site-more-menu__content",position:"bottom left"},Ue={tooltipPosition:"bottom"};var He=()=>Object(a.createElement)(p.DropdownMenu,{className:"edit-site-more-menu",icon:Fe.a,label:Object(b.__)("More tools & options"),popoverProps:ze,toggleProps:Ue},e=>{let{onClose:t}=e;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(p.MenuGroup,{label:Object(b._x)("View","noun")},Object(a.createElement)(Ve,{feature:"fixedToolbar",label:Object(b.__)("Top toolbar"),info:Object(b.__)("Access all block and document tools in a single place"),messageActivated:Object(b.__)("Top toolbar activated"),messageDeactivated:Object(b.__)("Top toolbar deactivated")}),Object(a.createElement)(Ve,{feature:"focusMode",label:Object(b.__)("Spotlight mode"),info:Object(b.__)("Focus on one block at a time"),messageActivated:Object(b.__)("Spotlight mode activated"),messageDeactivated:Object(b.__)("Spotlight mode deactivated")}),Object(a.createElement)(w.a.Slot,{name:"core/edit-site/plugin-more-menu",label:Object(b.__)("Plugins"),as:p.MenuGroup,fillProps:{onClick:t}})),Object(a.createElement)(y.Slot,{fillProps:{onClose:t}}))});function We(e){let{openEntitiesSavedStates:t,isEntitiesSavedStatesOpen:n}=e;const{isDirty:c,isSaving:r}=Object(i.useSelect)(e=>{const{__experimentalGetDirtyEntityRecords:t,isSavingEntityRecord:n}=e(s.store),c=t();return{isDirty:c.length>0,isSaving:Object(E.some)(c,e=>n(e.kind,e.name,e.key))}},[]),l=!c||r;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(p.Button,{variant:"primary",className:"edit-site-save-button__button","aria-disabled":l,"aria-expanded":n,disabled:l,isBusy:r,onClick:l?void 0:t},Object(b.__)("Save")))}var qe=n("Ntru"),$e=n("K2cm"),Ke=n("RxS6");function Qe(){const e=Object(i.useSelect)(e=>e(s.store).hasUndo(),[]),{undo:t}=Object(i.useDispatch)(s.store);return Object(a.createElement)(p.Button,{icon:Object(b.isRTL)()?$e.a:qe.a,label:Object(b.__)("Undo"),shortcut:Ke.displayShortcut.primary("z"),"aria-disabled":!e,onClick:e?t:void 0})}function Ye(){const e=Object(i.useSelect)(e=>e(s.store).hasRedo(),[]),{redo:t}=Object(i.useDispatch)(s.store);return Object(a.createElement)(p.Button,{icon:Object(b.isRTL)()?qe.a:$e.a,label:Object(b.__)("Redo"),shortcut:Ke.displayShortcut.primaryShift("z"),"aria-disabled":!e,onClick:e?t:void 0})}var Xe=n("TSYQ"),Ze=n.n(Xe),Je=n("NWDH");function et(e){if(e){const t=Object(l.getBlockType)(e.name);return t?Object(l.__experimentalGetBlockLabel)(t,e.attributes):null}return null}function tt(e){let{entityTitle:t,entityLabel:n,isLoaded:c,children:r}=e;const{label:l}=function(){const{getBlock:e}=Object(i.useSelect)(Ae.store),t=Object(i.useSelect)(e=>e(Ae.store).__experimentalGetActiveBlockIdByBlockNames(["core/template-part"]),[]);return t?{label:et(e(t)),isActive:!0}:{}}(),o=Object(a.useRef)();return c?t?Object(a.createElement)("div",{className:Ze()("edit-site-document-actions",{"has-secondary-label":!!l})},Object(a.createElement)("div",{ref:o,className:"edit-site-document-actions__title-wrapper"},Object(a.createElement)(p.__experimentalText,{size:"body",className:"edit-site-document-actions__title-prefix"},Object(a.createElement)(p.VisuallyHidden,{as:"span"},Object(b.sprintf)(Object(b.__)("Editing %s:"),n))),Object(a.createElement)(p.__experimentalText,{size:"body",className:"edit-site-document-actions__title",as:"h1"},t),Object(a.createElement)(p.__experimentalText,{size:"body",className:"edit-site-document-actions__secondary-item"},null!=l?l:""),r&&Object(a.createElement)(p.Dropdown,{popoverProps:{anchorRef:o.current},position:"bottom center",renderToggle:e=>{let{isOpen:t,onToggle:c}=e;return Object(a.createElement)(p.Button,{className:"edit-site-document-actions__get-info",icon:Je.a,"aria-expanded":t,"aria-haspopup":"true",onClick:c,label:Object(b.sprintf)(Object(b.__)("Show %s details"),n)})},contentClassName:"edit-site-document-actions__info-dropdown",renderContent:r}))):Object(a.createElement)("div",{className:"edit-site-document-actions"},Object(b.__)("Template not found")):Object(a.createElement)("div",{className:"edit-site-document-actions"},Object(b.__)("Loading…"))}function nt(e){var t;let{onClose:n,templatePart:c,closeTemplateDetailsDropdown:r}=e;const{pushTemplatePart:l,revertTemplate:o}=Object(i.useDispatch)(Ce);return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(p.MenuGroup,null,Object(a.createElement)(p.MenuItem,{onClick:function(){l(c.id),n(),r()}},Object(b.sprintf)(Object(b.__)("Edit %s"),null===(t=c.title)||void 0===t?void 0:t.rendered))),D(c)&&Object(a.createElement)(p.MenuGroup,null,Object(a.createElement)(p.MenuItem,{info:Object(b.__)("Restore template to theme default"),onClick:function(){o(c),n(),r()}},Object(b.__)("Clear customizations"))))}function ct(e){let{templatePart:t,clientId:n,closeTemplateDetailsDropdown:c}=e;const{selectBlock:r,toggleBlockHighlight:l}=Object(i.useDispatch)(Ae.store),o=()=>l(n,!0),s=()=>l(n,!1);return Object(a.createElement)("div",{role:"menuitem",className:"edit-site-template-details__template-areas-item"},Object(a.createElement)(p.MenuItem,{role:"button",icon:Object(u.getTemplatePartIcon)(t.area),iconPosition:"left",onClick:()=>{r(n)},onMouseOver:o,onMouseLeave:s,onFocus:o,onBlur:s},k[t.area]),Object(a.createElement)(p.DropdownMenu,{icon:Fe.a,label:Object(b.__)("More options"),className:"edit-site-template-details__template-areas-item-more"},e=>{let{onClose:n}=e;return Object(a.createElement)(nt,{onClose:n,templatePart:t,closeTemplateDetailsDropdown:c})}))}function rt(e){let{closeTemplateDetailsDropdown:t}=e;const n=Object(i.useSelect)(e=>e(Ce).getCurrentTemplateTemplateParts(),[]);return n.length?Object(a.createElement)(p.MenuGroup,{label:Object(b.__)("Areas"),className:"edit-site-template-details__group edit-site-template-details__template-areas"},n.map(e=>{let{templatePart:n,block:c}=e;return Object(a.createElement)(ct,{key:n.slug,clientId:c.clientId,templatePart:n,closeTemplateDetailsDropdown:t})})):null}function at(e){let{template:t,onClose:n}=e;const{title:c,description:r}=Object(i.useSelect)(e=>e(u.store).__experimentalGetTemplateInfo(t),[]),{revertTemplate:l}=Object(i.useDispatch)(Ce),o=Object(a.useMemo)(()=>"wp_template"===(null==t?void 0:t.type)?{title:Object(b.__)("templates"),menu:"templates"}:M.find(e=>{let{area:n}=e;return n===(null==t?void 0:t.area)}),[t]);if(!t)return null;return Object(a.createElement)("div",{className:"edit-site-template-details"},Object(a.createElement)("div",{className:"edit-site-template-details__group"},Object(a.createElement)(p.__experimentalHeading,{level:4,weight:600,className:"edit-site-template-details__title"},c),r&&Object(a.createElement)(p.__experimentalText,{size:"body",className:"edit-site-template-details__description",as:"p"},r)),Object(a.createElement)(rt,{closeTemplateDetailsDropdown:n}),D(t)&&Object(a.createElement)(p.MenuGroup,{className:"edit-site-template-details__group edit-site-template-details__revert"},Object(a.createElement)(p.MenuItem,{className:"edit-site-template-details__revert-button",info:Object(b.__)("Restore template to theme default"),onClick:()=>{l(t),n()}},Object(b.__)("Clear customizations"))),Object(a.createElement)(p.Button,{className:"edit-site-template-details__show-all-button",href:Object(L.addQueryArgs)(window.location.href,{postId:void 0,postType:t.type})},Object(b.sprintf)(Object(b.__)("Browse all %s"),o.title)))}const lt=e=>{e.preventDefault()};function ot(e){let{openEntitiesSavedStates:t,isEntitiesSavedStatesOpen:n}=e;const c=Object(a.useRef)(),{deviceType:r,entityTitle:l,template:o,templateType:d,isInserterOpen:m,isListViewOpen:O,listViewShortcut:_,isLoaded:j}=Object(i.useSelect)(e=>{const{__experimentalGetPreviewDeviceType:t,getEditedPostType:n,getEditedPostId:c,isInserterOpened:r,isListViewOpened:a}=e(Ce),{getEditedEntityRecord:l}=e(s.store),{__experimentalGetTemplateInfo:o}=e(u.store),{getShortcutRepresentation:i}=e(Me.store),d=n(),m=c(),p=l("postType",d,m),b=!!m;return{deviceType:t(),entityTitle:o(p).title,isLoaded:b,template:p,templateType:d,isInserterOpen:r(),isListViewOpen:a(),listViewShortcut:i("core/edit-site/toggle-list-view")}},[]),{__experimentalSetPreviewDeviceType:g,setIsInserterOpened:f,setIsListViewOpened:E}=Object(i.useDispatch)(Ce),h=Object(Re.useViewportMatch)("medium"),v=Object(a.useCallback)(()=>{m?c.current.focus():f(!0)},[m,f]),y=Object(a.useCallback)(()=>E(!O),[E,O]),S="wp_template_part"===d;return Object(a.createElement)("div",{className:"edit-site-header"},Object(a.createElement)("div",{className:"edit-site-header_start"},Object(a.createElement)("div",{className:"edit-site-header__toolbar"},Object(a.createElement)(p.Button,{ref:c,variant:"primary",isPressed:m,className:"edit-site-header-toolbar__inserter-toggle",onMouseDown:lt,onClick:v,icon:Be.a,label:Object(b._x)("Toggle block inserter","Generic label for block inserter button")}),h&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Ae.ToolSelector,null),Object(a.createElement)(Qe,null),Object(a.createElement)(Ye,null),Object(a.createElement)(p.Button,{className:"edit-site-header-toolbar__list-view-toggle",icon:Le.a,isPressed:O,label:Object(b.__)("List View"),onClick:y,shortcut:_})))),Object(a.createElement)("div",{className:"edit-site-header_center"},Object(a.createElement)(tt,{entityTitle:l,entityLabel:"wp_template_part"===d?"template part":"template",isLoaded:j},e=>{let{onClose:t}=e;return Object(a.createElement)(at,{template:o,onClose:t})})),Object(a.createElement)("div",{className:"edit-site-header_end"},Object(a.createElement)("div",{className:"edit-site-header__actions"},!S&&Object(a.createElement)(Ae.__experimentalPreviewOptions,{deviceType:r,setDeviceType:g}),Object(a.createElement)(We,{openEntitiesSavedStates:t,isEntitiesSavedStatesOpen:n}),Object(a.createElement)(w.h.Slot,{scope:"core/edit-site"}),Object(a.createElement)(He,null))))}var it=n("Cg8A");function st(e){let{className:t,identifier:n,title:c,icon:r,children:l,closeLabel:o,header:i,headerClassName:s}=e;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(w.b,{className:t,scope:"core/edit-site",identifier:n,title:c,icon:r,closeLabel:o,header:i,headerClassName:s},l),Object(a.createElement)(w.c,{scope:"core/edit-site",identifier:n,icon:r},c))}var ut=Object(a.createElement)(g.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(g.Path,{d:"M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"}));const dt=[{path:["color","palette"],valueKey:"color",cssVarInfix:"color",classes:[{classSuffix:"color",propertyName:"color"},{classSuffix:"background-color",propertyName:"background-color"},{classSuffix:"border-color",propertyName:"border-color"}]},{path:["color","gradients"],valueKey:"gradient",cssVarInfix:"gradient",classes:[{classSuffix:"gradient-background",propertyName:"background"}]},{path:["typography","fontSizes"],valueKey:"size",cssVarInfix:"font-size",classes:[{classSuffix:"font-size",propertyName:"font-size"}]},{path:["typography","fontFamilies"],valueKey:"fontFamily",cssVarInfix:"font-family",classes:[{classSuffix:"font-family",propertyName:"font-family"}]}],mt={"color.background":"color","color.text":"color","elements.link.color.text":"color","color.gradient":"gradient","typography.fontSize":"font-size","typography.fontFamily":"font-family"};function pt(e,t,n,c,r){const a=[Object(E.get)(e,["blocks",t,...n]),Object(E.get)(e,n)];for(const l of a)if(l){const a=["user","theme","default"];for(const o of a){const a=l[o];if(a){const l=Object(E.find)(a,e=>e[c]===r);if(l){if("slug"===c)return l;return pt(e,t,n,"slug",l.slug)[c]===l[c]?l:void 0}}}}}function bt(e,t,n,c){if(!c)return c;const r=mt[n],a=Object(E.find)(dt,["cssVarInfix",r]);if(!a)return c;const{valueKey:l,path:o}=a,i=pt(e,t,o,l,c);return i?`var:preset|${r}|${i.slug}`:c}function Ot(e,t,n){if(!n||!Object(E.isString)(n))return n;let c;if(n.startsWith("var:"))c=n.slice("var:".length).split("|");else{if(!n.startsWith("var(--wp--")||!n.endsWith(")"))return n;c=n.slice("var(--wp--".length,-")".length).split("--")}const[r,...a]=c;return"preset"===r?function(e,t,n,c){let[r,a]=c;const l=Object(E.find)(dt,["cssVarInfix",r]);if(!l)return n;const o=pt(e,t,l.path,"slug",a);if(o){const{valueKey:n}=l;return Ot(e,t,o[n])}return n}(e,t,n,a):"custom"===r?function(e,t,n,c){var r;const a=null!==(r=Object(E.get)(e,["blocks",t,"custom",...c]))&&void 0!==r?r:Object(E.get)(e,["custom",...c]);return a?Ot(e,t,a):n}(e,t,n,a):n}const _t=Object(a.createContext)({user:{},base:{},merged:{},setUserConfig:()=>{}}),jt={isGlobalStylesUserThemeJSON:!0,version:1};function gt(e,t){var n;let c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"all";const{merged:r,base:o,user:i,setUserConfig:s}=Object(a.useContext)(_t),u=t?`settings.blocks.${t}.${e}`:"settings."+e,d=t=>{s(n=>{const c=Object(E.cloneDeep)(n),r=l.__EXPERIMENTAL_PATHS_WITH_MERGE[e]?u+".user":u;return Object(E.set)(c,r,t),c})},m=t=>{const n=t?`settings.blocks.${t}.${e}`:"settings."+e,a=t=>{const c=Object(E.get)(t,n);var r,a;return l.__EXPERIMENTAL_PATHS_WITH_MERGE[e]?null!==(r=null!==(a=null==c?void 0:c.user)&&void 0!==a?a:null==c?void 0:c.theme)&&void 0!==r?r:null==c?void 0:c.default:c};let s;switch(c){case"all":s=a(r);break;case"user":s=a(i);break;case"base":s=a(o);break;default:throw"Unsupported source"}return s},p=null!==(n=m(t))&&void 0!==n?n:m();return[p,d]}function ft(e,t){var n;let c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"all";const{merged:r,base:l,user:o,setUserConfig:i}=Object(a.useContext)(_t),s=t?`styles.blocks.${t}.${e}`:"styles."+e,u=n=>{i(c=>{const a=Object(E.cloneDeep)(c);return Object(E.set)(a,s,bt(r.settings,t,e,n)),a})};let d;switch(c){case"all":d=Ot(r.settings,t,null!==(n=Object(E.get)(o,s))&&void 0!==n?n:Object(E.get)(l,s));break;case"user":d=Ot(r.settings,t,Object(E.get)(o,s));break;case"base":d=Ot(l.settings,t,Object(E.get)(l,s));break;default:throw"Unsupported source"}return[d,u]}const Et=["background","backgroundColor","color","linkColor","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textDecoration","textTransform","padding"];function ht(e){if(!e)return Et;const t=Object(l.getBlockType)(e);if(!t)return[];const n=[];return Object.keys(l.__EXPERIMENTAL_STYLE_PROPERTY).forEach(e=>{if(l.__EXPERIMENTAL_STYLE_PROPERTY[e].support)return l.__EXPERIMENTAL_STYLE_PROPERTY[e].requiresOptOut&&Object(E.has)(t.supports,l.__EXPERIMENTAL_STYLE_PROPERTY[e].support[0])&&!1!==Object(E.get)(t.supports,l.__EXPERIMENTAL_STYLE_PROPERTY[e].support)||Object(E.get)(t.supports,l.__EXPERIMENTAL_STYLE_PROPERTY[e].support,!1)?n.push(e):void 0}),n}function vt(e){const[t]=gt("color.palette.user",e),[n]=gt("color.palette.theme",e),[c]=gt("color.palette.default",e),[r]=gt("color.defaultPalette");return Object(a.useMemo)(()=>{const e=[];return n&&n.length&&e.push({name:Object(b._x)("Theme","Indicates this palette comes from the theme."),colors:n}),r&&c&&c.length&&e.push({name:Object(b._x)("Default","Indicates this palette comes from WordPress."),colors:c}),t&&t.length&&e.push({name:Object(b._x)("Custom","Indicates this palette is created by the user."),colors:t}),e},[t,n,c])}var yt=()=>{const[e="serif"]=ft("typography.fontFamily"),[t="black"]=ft("color.text"),[n="blue"]=ft("elements.link.color.text"),[c="white"]=ft("color.background"),[r]=ft("color.gradient");return Object(a.createElement)(p.Card,{className:"edit-site-global-styles-preview",style:{background:null!=r?r:c}},Object(a.createElement)(p.__experimentalHStack,{spacing:5},Object(a.createElement)("div",{style:{fontFamily:e,fontSize:"80px",color:t}},"Aa"),Object(a.createElement)(p.__experimentalVStack,{spacing:2},Object(a.createElement)(p.ColorIndicator,{colorValue:t}),Object(a.createElement)(p.ColorIndicator,{colorValue:n}))))},wt=n("wx14"),St=n("iClF");var xt=function(e){let{path:t,icon:n,children:c,isBack:r=!1,...l}=e;const o=Object(p.__experimentalUseNavigator)();return Object(a.createElement)(p.__experimentalItem,Object(wt.a)({onClick:()=>o.push(t,{isBack:r})},l),n&&Object(a.createElement)(p.__experimentalHStack,{justify:"flex-start"},Object(a.createElement)(p.FlexItem,null,Object(a.createElement)(St.a,{icon:n,size:24})),Object(a.createElement)(p.FlexItem,null,c)),!n&&c)};var Tt=Object(a.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(g.Path,{d:"M6.9 7L3 17.8h1.7l1-2.8h4.1l1 2.8h1.7L8.6 7H6.9zm-.7 6.6l1.5-4.3 1.5 4.3h-3zM21.6 17c-.1.1-.2.2-.3.2-.1.1-.2.1-.4.1s-.3-.1-.4-.2c-.1-.1-.1-.3-.1-.6V12c0-.5 0-1-.1-1.4-.1-.4-.3-.7-.5-1-.2-.2-.5-.4-.9-.5-.4 0-.8-.1-1.3-.1s-1 .1-1.4.2c-.4.1-.7.3-1 .4-.2.2-.4.3-.6.5-.1.2-.2.4-.2.7 0 .3.1.5.2.8.2.2.4.3.8.3.3 0 .6-.1.8-.3.2-.2.3-.4.3-.7 0-.3-.1-.5-.2-.7-.2-.2-.4-.3-.6-.4.2-.2.4-.3.7-.4.3-.1.6-.1.8-.1.3 0 .6 0 .8.1.2.1.4.3.5.5.1.2.2.5.2.9v1.1c0 .3-.1.5-.3.6-.2.2-.5.3-.9.4-.3.1-.7.3-1.1.4-.4.1-.8.3-1.1.5-.3.2-.6.4-.8.7-.2.3-.3.7-.3 1.2 0 .6.2 1.1.5 1.4.3.4.9.5 1.6.5.5 0 1-.1 1.4-.3.4-.2.8-.6 1.1-1.1 0 .4.1.7.3 1 .2.3.6.4 1.2.4.4 0 .7-.1.9-.2.2-.1.5-.3.7-.4h-.3zm-3-.9c-.2.4-.5.7-.8.8-.3.2-.6.2-.8.2-.4 0-.6-.1-.9-.3-.2-.2-.3-.6-.3-1.1 0-.5.1-.9.3-1.2s.5-.5.8-.7c.3-.2.7-.3 1-.5.3-.1.6-.3.7-.6v3.4z"}));var kt=Object(a.createElement)(g.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(g.Path,{d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"})),It=n("Civd");const Ct=[];function Nt(e){return[Pt(e),At(e),Mt(e),Rt(e)].some(Boolean)}function Pt(e){const t=ht(e);return gt("border.color",e)[0]&&t.includes("borderColor")}function At(e){const t=ht(e);return gt("border.radius",e)[0]&&t.includes("borderRadius")}function Mt(e){const t=ht(e);return gt("border.style",e)[0]&&t.includes("borderStyle")}function Rt(e){const t=ht(e);return gt("border.width",e)[0]&&t.includes("borderWidth")}function Bt(e){let{name:t}=e;const n=Object(p.__experimentalUseCustomUnits)({availableUnits:gt("spacing.units")[0]||["px","em","rem"]}),c=Rt(t),[r,l]=ft("border.width",t),o=Mt(t),[i,s]=ft("border.style",t),[u=Ct]=gt("color.palette"),d=!gt("color.custom")[0],m=!gt("color.customGradient")[0],O=Pt(t),[_,j]=ft("border.color",t),g=At(t),[f,E]=ft("border.radius",t);return Object(a.createElement)(p.PanelBody,{title:Object(b.__)("Border"),initialOpen:!0},(c||o)&&Object(a.createElement)("div",{className:"edit-site-global-styles-sidebar__border-controls-row"},c&&Object(a.createElement)(p.__experimentalUnitControl,{value:r,label:Object(b.__)("Width"),min:0,onChange:e=>{l(e||void 0)},units:n}),o&&Object(a.createElement)(Ae.__experimentalBorderStyleControl,{value:i,onChange:s})),O&&Object(a.createElement)(Ae.__experimentalColorGradientControl,{label:Object(b.__)("Color"),colorValue:_,colors:u,gradients:void 0,disableCustomColors:d,disableCustomGradients:m,onColorChange:j}),g&&Object(a.createElement)(Ae.__experimentalBorderRadiusControl,{values:f,onChange:E}))}function Lt(e){const t=ht(e);return t.includes("color")||t.includes("backgroundColor")||t.includes("background")||t.includes("linkColor")}const Ft=["horizontal","vertical"];function Dt(e){const t=Gt(e),n=Vt(e),c=zt(e);return t||n||c}function Gt(e){const t=ht(e),[n]=gt("spacing.padding",e);return n&&t.includes("padding")}function Vt(e){const t=ht(e),[n]=gt("spacing.margin",e);return n&&t.includes("margin")}function zt(e){const t=ht(e),[n]=gt("spacing.blockGap",e);return n&&t.includes("--wp--style--block-gap")}function Ut(e,t){if(!t)return e;const n={};return t.forEach(t=>{"vertical"===t&&(n.top=e.top,n.bottom=e.bottom),"horizontal"===t&&(n.left=e.left,n.right=e.right),n[t]=e[t]}),n}function Ht(e){return e&&"string"==typeof e?{top:e,right:e,bottom:e,left:e}:e}function Wt(e){let{name:t}=e;const n=Gt(t),c=Vt(t),r=zt(t),l=Object(p.__experimentalUseCustomUnits)({availableUnits:gt("spacing.units",t)[0]||["%","px","em","rem","vw"]}),[o,i]=ft("spacing.padding",t),s=Ht(o),u=Object(Ae.__experimentalUseCustomSides)(t,"padding"),d=u&&u.some(e=>Ft.includes(e)),m=e=>{const t=Ut(e,u);i(t)},O=()=>m({}),[_,j]=ft("spacing.margin",t),g=Ht(_),f=Object(Ae.__experimentalUseCustomSides)(t,"margin"),E=f&&f.some(e=>Ft.includes(e)),h=e=>{const t=Ut(e,f);j(t)},v=()=>h({}),[y,w]=ft("spacing.blockGap",t),S=()=>w(void 0);return Object(a.createElement)(p.__experimentalToolsPanel,{label:Object(b.__)("Dimensions"),resetAll:()=>{O(),v(),S()}},n&&Object(a.createElement)(p.__experimentalToolsPanelItem,{hasValue:()=>!!s&&Object.keys(s).length,label:Object(b.__)("Padding"),onDeselect:O,isShownByDefault:!0},Object(a.createElement)(p.__experimentalBoxControl,{values:s,onChange:m,label:Object(b.__)("Padding"),sides:u,units:l,allowReset:!1,splitOnAxis:d})),c&&Object(a.createElement)(p.__experimentalToolsPanelItem,{hasValue:()=>!!g&&Object.keys(g).length,label:Object(b.__)("Margin"),onDeselect:v,isShownByDefault:!0},Object(a.createElement)(p.__experimentalBoxControl,{values:g,onChange:h,label:Object(b.__)("Margin"),sides:f,units:l,allowReset:!1,splitOnAxis:E})),r&&Object(a.createElement)(p.__experimentalToolsPanelItem,{hasValue:()=>!!y,label:Object(b.__)("Block spacing"),onDeselect:S,isShownByDefault:!0},Object(a.createElement)(p.__experimentalUnitControl,{label:Object(b.__)("Block spacing"),__unstableInputWidth:"80px",min:0,onChange:w,units:l,value:y})))}function qt(e){const t=$t(e),n=Kt(e),c=Qt(e),r=ht(e);return t||n||c||r.includes("fontSize")}function $t(e){const t=ht(e);return gt("typography.lineHeight",e)[0]&&t.includes("lineHeight")}function Kt(e){const t=ht(e),n=gt("typography.fontStyle",e)[0]&&t.includes("fontStyle"),c=gt("typography.fontWeight",e)[0]&&t.includes("fontWeight");return n||c}function Qt(e){const t=ht(e);return gt("typography.letterSpacing",e)[0]&&t.includes("letterSpacing")}function Yt(e){let{name:t}=e;const n=ht(t),[c]=gt("typography.fontSizes",t),r=!gt("typography.customFontSize",t)[0],[l]=gt("typography.fontFamilies",t),o=gt("typography.fontStyle",t)[0]&&n.includes("fontStyle"),i=gt("typography.fontWeight",t)[0]&&n.includes("fontWeight"),s=$t(t),u=Kt(t),d=Qt(t),[m,b]=ft("typography.fontFamily",t),[O,_]=ft("typography.fontSize",t),[j,g]=ft("typography.fontStyle",t),[f,E]=ft("typography.fontWeight",t),[h,v]=ft("typography.lineHeight",t),[y,w]=ft("typography.letterSpacing",t);return Object(a.createElement)(p.PanelBody,{className:"edit-site-typography-panel",initialOpen:!0},n.includes("fontFamily")&&Object(a.createElement)(Ae.__experimentalFontFamilyControl,{fontFamilies:l,value:m,onChange:b}),n.includes("fontSize")&&Object(a.createElement)(p.FontSizePicker,{value:O,onChange:_,fontSizes:c,disableCustomFontSizes:r}),s&&Object(a.createElement)(Ae.LineHeightControl,{value:h,onChange:v}),u&&Object(a.createElement)(Ae.__experimentalFontAppearanceControl,{value:{fontStyle:j,fontWeight:f},onChange:e=>{let{fontStyle:t,fontWeight:n}=e;g(t),E(n)},hasFontStyles:o,hasFontWeights:i}),d&&Object(a.createElement)(Ae.__experimentalLetterSpacingControl,{value:y,onChange:w}))}var Xt=function(e){let{name:t,parentMenu:n=""}=e;const c=qt(t),r=Lt(t),l=Nt(t),o=Dt(t),i=l||o;return Object(a.createElement)(p.__experimentalItemGroup,null,c&&Object(a.createElement)(xt,{icon:Tt,path:n+"/typography"},Object(b.__)("Typography")),r&&Object(a.createElement)(xt,{icon:kt,path:n+"/colors"},Object(b.__)("Colors")),i&&Object(a.createElement)(xt,{icon:It.a,path:n+"/layout"},Object(b.__)("Layout")))};var Zt=function(){return Object(a.createElement)(p.Card,{size:"small"},Object(a.createElement)(p.CardBody,null,Object(a.createElement)(yt,null)),Object(a.createElement)(p.CardBody,null,Object(a.createElement)(Xt,null)),Object(a.createElement)(p.CardDivider,null),Object(a.createElement)(p.CardBody,null,Object(a.createElement)(p.__experimentalItemGroup,null,Object(a.createElement)(p.__experimentalItem,null,Object(a.createElement)("p",null,Object(b.__)("Customize the appearance of specific blocks for the whole site."))),Object(a.createElement)(xt,{path:"/blocks"},Object(b.__)("Blocks")))))},Jt=n("1iEr"),en=n("2gm7");var tn=function(e){let{back:t,title:n,description:c}=e;return Object(a.createElement)(p.__experimentalVStack,{spacing:2},Object(a.createElement)(p.__experimentalHStack,{spacing:2},Object(a.createElement)(p.__experimentalView,null,Object(a.createElement)(xt,{path:t,icon:Object(a.createElement)(St.a,{icon:Object(b.isRTL)()?Jt.a:en.a,variant:"muted"}),size:"small",isBack:!0,"aria-label":Object(b.__)("Navigate to the previous view")})),Object(a.createElement)(p.__experimentalSpacer,null,Object(a.createElement)(p.__experimentalHeading,{level:5},n))),c&&Object(a.createElement)("p",{className:"edit-site-global-styles-header__description"},c))};function nn(e){let{block:t}=e;const n=qt(t.name),c=Lt(t.name),r=Nt(t.name),l=Dt(t.name);return n||c||(r||l)?Object(a.createElement)(xt,{path:"/blocks/"+t.name},Object(a.createElement)(p.__experimentalHStack,{justify:"flex-start"},Object(a.createElement)(p.FlexItem,null,Object(a.createElement)(Ae.BlockIcon,{icon:t.icon})),Object(a.createElement)(p.FlexItem,null,t.title))):null}var cn=function(){return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(tn,{back:"/",title:Object(b.__)("Blocks"),description:Object(b.__)("Customize the appearance of specific blocks and for the whole site.")}),Object(l.getBlockTypes)().map(e=>Object(a.createElement)(nn,{block:e,key:"menu-itemblock-"+e.name})))};var rn=function(e){let{name:t}=e;const n=Object(l.getBlockType)(t);return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(tn,{back:"/blocks",title:n.title}),Object(a.createElement)(Xt,{parentMenu:"/blocks/"+t,name:t}))};var an=function(e){let{name:t}=e;const n=void 0===t?"":"/blocks/"+t;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(tn,{back:n||"/",title:Object(b.__)("Typography"),description:Object(b.__)("Manage the fonts used on the website and the default aspect of different global elements.")}),Object(a.createElement)(Yt,{name:t}))};var ln=function(e){let{children:t}=e;return Object(a.createElement)(p.__experimentalHeading,{className:"edit-site-global-styles-subtitle",level:2},t)};const on=[];var sn=function(e){let{name:t}=e;const[n]=gt("color.palette.user",t),c=n||on,r=t?"/blocks/"+t+"/colors/palette":"/colors/palette";return Object(a.createElement)(p.__experimentalVStack,{spacing:3},Object(a.createElement)(ln,null,Object(b.__)("Palette")),Object(a.createElement)(p.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},Object(a.createElement)(xt,{path:r},Object(a.createElement)(p.__experimentalHStack,null,Object(a.createElement)(p.FlexBlock,null,Object(a.createElement)(p.__experimentalZStack,{isLayered:!1,offset:-8},c.slice(0,5).map(e=>{let{color:t}=e;return Object(a.createElement)(p.ColorIndicator,{key:t,colorValue:t})}))),Object(a.createElement)(p.FlexItem,null,Object(b.sprintf)(Object(b._n)("%d color","%d colors",c.length),c.length))))))};function un(e){let{name:t,parentMenu:n}=e;const c=ht(t),r=c.includes("backgroundColor")||c.includes("background"),[l]=ft("color.background",t),[o]=ft("color.gradient",t);return r?Object(a.createElement)(xt,{path:n+"/colors/background"},Object(a.createElement)(p.__experimentalHStack,{justify:"flex-start"},Object(a.createElement)(p.FlexItem,null,Object(a.createElement)(p.ColorIndicator,{colorValue:null!=o?o:l})),Object(a.createElement)(p.FlexItem,null,Object(b.__)("Background")))):null}function dn(e){let{name:t,parentMenu:n}=e;const c=ht(t).includes("color"),[r]=ft("color.text",t);return c?Object(a.createElement)(xt,{path:n+"/colors/text"},Object(a.createElement)(p.__experimentalHStack,{justify:"flex-start"},Object(a.createElement)(p.FlexItem,null,Object(a.createElement)(p.ColorIndicator,{colorValue:r})),Object(a.createElement)(p.FlexItem,null,Object(b.__)("Text")))):null}function mn(e){let{name:t,parentMenu:n}=e;const c=ht(t).includes("linkColor"),[r]=ft("elements.link.color.text",t);return c?Object(a.createElement)(xt,{path:n+"/colors/link"},Object(a.createElement)(p.__experimentalHStack,{justify:"flex-start"},Object(a.createElement)(p.FlexItem,null,Object(a.createElement)(p.ColorIndicator,{colorValue:r})),Object(a.createElement)(p.FlexItem,null,Object(b.__)("Links")))):null}var pn=function(e){let{name:t}=e;const n=void 0===t?"":"/blocks/"+t;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(tn,{back:n||"/",title:Object(b.__)("Colors"),description:Object(b.__)("Manage palettes and the default color of different global elements on the website.")}),Object(a.createElement)("div",{className:"edit-site-global-styles-screen-colors"},Object(a.createElement)(p.__experimentalVStack,{spacing:10},Object(a.createElement)(sn,{name:t}),Object(a.createElement)(p.__experimentalVStack,{spacing:3},Object(a.createElement)(ln,null,Object(b.__)("Elements")),Object(a.createElement)(p.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},Object(a.createElement)(un,{name:t,parentMenu:n}),Object(a.createElement)(dn,{name:t,parentMenu:n}),Object(a.createElement)(mn,{name:t,parentMenu:n}))))))};function bn(e){let{name:t}=e;const[n,c]=gt("color.palette.theme",t),[r]=gt("color.palette.theme",t,"base"),[l,o]=gt("color.palette.default",t),[i]=gt("color.palette.default",t,"base"),[s,u]=gt("color.palette.user",t),[d]=gt("color.defaultPalette",t);return Object(a.createElement)(p.__experimentalVStack,{className:"edit-site-global-styles-color-palette-panel",spacing:10},!!n&&!!n.length&&Object(a.createElement)(p.__experimentalColorEdit,{canReset:n!==r,canOnlyChangeValues:!0,colors:n,onChange:c,paletteLabel:Object(b.__)("Theme")}),!!l&&!!l.length&&!!d&&Object(a.createElement)(p.__experimentalColorEdit,{canReset:l!==i,canOnlyChangeValues:!0,colors:l,onChange:o,paletteLabel:Object(b.__)("Default")}),Object(a.createElement)(p.__experimentalColorEdit,{colors:s,onChange:u,paletteLabel:Object(b.__)("Custom"),emptyMessage:Object(b.__)("Custom colors are empty! Add some colors to create your own color palette."),slugPrefix:"custom-"}))}var On=function(e){let{name:t}=e;const n=void 0===t?"":"/blocks/"+t;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(tn,{back:n+"/colors",title:Object(b.__)("Color Palette"),description:Object(b.__)("Color palettes are used to provide default color options for blocks and various design tools. Here you can edit the colors with their labels.")}),Object(a.createElement)(bn,{name:t}))};var _n=function(e){let{name:t}=e;const n=void 0===t?"":"/blocks/"+t,c=ht(t),[r]=gt("color.palette",t),[l]=gt("color.gradients",t),[o]=gt("color.custom",t),[i]=gt("color.customGradient",t),s=vt(t),u=function(e){const[t]=gt("color.gradients.user",e),[n]=gt("color.gradients.theme",e),[c]=gt("color.gradients.default",e),[r]=gt("color.defaultGradients");return Object(a.useMemo)(()=>{const e=[];return n&&n.length&&e.push({name:Object(b._x)("Theme","Indicates this palette comes from the theme."),gradients:n}),r&&c&&c.length&&e.push({name:Object(b._x)("Default","Indicates this palette comes from WordPress."),gradients:c}),t&&t.length&&e.push({name:Object(b._x)("Custom","Indicates this palette is created by the user."),gradients:t}),e},[t,n,c])}(t),[d]=gt("color.background",t),m=c.includes("backgroundColor")&&d&&(r.length>0||o),p=c.includes("background")&&(l.length>0||i),[O,_]=ft("color.background",t),[j]=ft("color.background",t,"user"),[g,f]=ft("color.gradient",t),[E]=ft("color.gradient",t,"user");if(!m&&!p)return null;const h=[];let v={};m&&(v={colorValue:O,onColorChange:_},O&&(v.clearable=O===j));let y={};return p&&(y={gradientValue:g,onGradientChange:f},g&&(y.clearable=g===E)),h.push({...v,...y,label:Object(b.__)("Background color")}),Object(a.createElement)(a.Fragment,null,Object(a.createElement)(tn,{back:n+"/colors",title:Object(b.__)("Background"),description:Object(b.__)("Set a background color or gradient for the whole website.")}),Object(a.createElement)(Ae.__experimentalPanelColorGradientSettings,{title:Object(b.__)("Color"),settings:h,colors:s,gradients:u,disableCustomColors:!o,disableCustomGradients:!i,__experimentalHasMultipleOrigins:!0,showTitle:!1}))};var jn=function(e){let{name:t}=e;const n=void 0===t?"":"/blocks/"+t,c=ht(t),[r]=gt("color.palette",t),[l]=gt("color.custom",t),[o]=gt("color.text",t),i=vt(t),s=c.includes("color")&&o&&(r.length>0||l),[u,d]=ft("color.text",t),[m]=ft("color.text",t,"user");if(!s)return null;const p=[{colorValue:u,onColorChange:d,label:Object(b.__)("Text color"),clearable:u===m}];return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(tn,{back:n+"/colors",title:Object(b.__)("Text"),description:Object(b.__)("Set the default color used for text across the site.")}),Object(a.createElement)(Ae.__experimentalPanelColorGradientSettings,{title:Object(b.__)("Color"),settings:p,colors:i,disableCustomColors:!l,__experimentalHasMultipleOrigins:!0,showTitle:!1}))};var gn=function(e){let{name:t}=e;const n=void 0===t?"":"/blocks/"+t,c=ht(t),[r]=gt("color.palette",t),[l]=gt("color.custom",t),o=vt(t),[i]=gt("color.link",t),s=c.includes("linkColor")&&i&&(r.length>0||l),[u,d]=ft("elements.link.color.text",t),[m]=ft("elements.link.color.text",t,"user");if(!s)return null;const p=[{colorValue:u,onColorChange:d,label:Object(b.__)("Link color"),clearable:u===m}];return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(tn,{back:n+"/colors",title:Object(b.__)("Links"),description:Object(b.__)("Set the default color used for links across the site.")}),Object(a.createElement)(Ae.__experimentalPanelColorGradientSettings,{title:Object(b.__)("Color"),settings:p,colors:o,disableCustomColors:!l,__experimentalHasMultipleOrigins:!0,showTitle:!1}))};var fn=function(e){let{name:t}=e;const n=void 0===t?"":"/blocks/"+t,c=Nt(t),r=Dt(t);return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(tn,{back:n||"/",title:Object(b.__)("Layout")}),r&&Object(a.createElement)(Wt,{name:t}),c&&Object(a.createElement)(Bt,{name:t}))};function En(e){let{name:t}=e;const n=void 0===t?"":"/blocks/"+t;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(p.__experimentalNavigatorScreen,{path:n+"/typography"},Object(a.createElement)(an,{name:t})),Object(a.createElement)(p.__experimentalNavigatorScreen,{path:n+"/colors"},Object(a.createElement)(pn,{name:t})),Object(a.createElement)(p.__experimentalNavigatorScreen,{path:n+"/colors/palette"},Object(a.createElement)(On,{name:t})),Object(a.createElement)(p.__experimentalNavigatorScreen,{path:n+"/colors/background"},Object(a.createElement)(_n,{name:t})),Object(a.createElement)(p.__experimentalNavigatorScreen,{path:n+"/colors/text"},Object(a.createElement)(jn,{name:t})),Object(a.createElement)(p.__experimentalNavigatorScreen,{path:n+"/colors/link"},Object(a.createElement)(gn,{name:t})),Object(a.createElement)(p.__experimentalNavigatorScreen,{path:n+"/layout"},Object(a.createElement)(fn,{name:t})))}var hn=function(){const e=Object(l.getBlockTypes)();return Object(a.createElement)(p.__experimentalNavigatorProvider,{initialPath:"/"},Object(a.createElement)(p.__experimentalNavigatorScreen,{path:"/"},Object(a.createElement)(Zt,null)),Object(a.createElement)(p.__experimentalNavigatorScreen,{path:"/blocks"},Object(a.createElement)(cn,null)),e.map(e=>Object(a.createElement)(p.__experimentalNavigatorScreen,{key:"menu-block-"+e.name,path:"/blocks/"+e.name},Object(a.createElement)(rn,{name:e.name}))),Object(a.createElement)(En,null),e.map(e=>Object(a.createElement)(En,{key:"screens-block-"+e.name,name:e.name})))};function vn(e){if(Object(E.startsWith)(e,"var:")){return`var(--wp--${e.slice("var:".length).split("|").join("--")})`}return e}const yn=(e,t)=>{var n,c;const r=[];if(null==e||!e.settings)return r;const a=e=>{const t={};return dt.forEach(n=>{let{path:c}=n;const r=Object(E.get)(e,c,!1);!1!==r&&Object(E.set)(t,c,r)}),t},l=a(e.settings),o=null===(n=e.settings)||void 0===n?void 0:n.custom;return Object(E.isEmpty)(l)&&!o||r.push({presets:l,custom:o,selector:"body"}),Object(E.forEach)(null===(c=e.settings)||void 0===c?void 0:c.blocks,(e,n)=>{const c=a(e),l=e.custom;Object(E.isEmpty)(c)&&!l||r.push({presets:c,custom:l,selector:t[n].selector})}),r},wn=(e,t)=>{const n=yn(e,t);let c="";return n.forEach(e=>{let{presets:t,custom:n,selector:r}=e;const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(E.reduce)(dt,(t,n)=>{let{path:c,valueKey:r,cssVarInfix:a}=n;const l=Object(E.get)(e,c,[]);return["default","theme","user"].forEach(e=>{l[e]&&l[e].forEach(e=>{t.push(`--wp--preset--${a}--${Object(E.kebabCase)(e.slug)}: ${e[r]}`)})}),t},[])}(t),l=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,c=arguments.length>2?arguments[2]:void 0,r=[];return Object.keys(t).forEach(a=>{const l=n+Object(E.kebabCase)(a.replace("/","-")),o=t[a];if(o instanceof Object){const t=l+c;r=[...r,...e(o,t,c)]}else r.push(`${l}: ${o}`)}),r}(n,"--wp--custom--","--");l.length>0&&a.push(...l),a.length>0&&(c+=`${r}{${a.join(";")};}`)}),c},Sn=(e,t)=>{const n=((e,t)=>{var n,c;const r=[];if(null==e||!e.styles)return r;const a=e=>Object(E.pickBy)(e,(e,t)=>["border","color","spacing","typography"].includes(t)),o=a(e.styles);return o&&r.push({styles:o,selector:"body"}),Object(E.forEach)(null===(n=e.styles)||void 0===n?void 0:n.elements,(e,t)=>{e&&l.__EXPERIMENTAL_ELEMENTS[t]&&r.push({styles:e,selector:l.__EXPERIMENTAL_ELEMENTS[t]})}),Object(E.forEach)(null===(c=e.styles)||void 0===c?void 0:c.blocks,(e,n)=>{var c;const o=a(e);o&&null!=t&&null!==(c=t[n])&&void 0!==c&&c.selector&&r.push({styles:o,selector:t[n].selector}),Object(E.forEach)(null==e?void 0:e.elements,(e,c)=>{e&&null!=t&&t[n]&&null!==l.__EXPERIMENTAL_ELEMENTS&&void 0!==l.__EXPERIMENTAL_ELEMENTS&&l.__EXPERIMENTAL_ELEMENTS[c]&&r.push({styles:e,selector:t[n].selector.split(",").map(e=>e+" "+l.__EXPERIMENTAL_ELEMENTS[c]).join(",")})})}),r})(e,t),c=yn(e,t);let r=".wp-site-blocks > * { margin-top: 0; margin-bottom: 0; }.wp-site-blocks > * + * { margin-top: var( --wp--style--block-gap ); }";return n.forEach(e=>{let{selector:t,styles:n}=e;const c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(E.reduce)(l.__EXPERIMENTAL_STYLE_PROPERTY,(t,n,c)=>{let{value:r,properties:a}=n;const l=r;if("elements"===Object(E.first)(l))return t;const o=Object(E.get)(e,l);if(a&&!Object(E.isString)(o))Object.entries(a).forEach(e=>{const[n,c]=e;if(!Object(E.get)(o,[c],!1))return;const r=Object(E.kebabCase)(n);t.push(`${r}: ${vn(Object(E.get)(o,[c]))}`)});else if(Object(E.get)(e,l,!1)){const n=c.startsWith("--")?c:Object(E.kebabCase)(c);t.push(`${n}: ${vn(Object(E.get)(e,l))}`)}return t},[])}(n);0!==c.length&&(r+=`${t}{${c.join(";")};}`)}),c.forEach(e=>{let{selector:t,presets:n}=e;"body"===t&&(t="");const c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(E.reduce)(dt,(n,c)=>{let{path:r,cssVarInfix:a,classes:l}=c;if(!l)return n;const o=Object(E.get)(t,r,[]);return["default","theme","user"].forEach(t=>{o[t]&&o[t].forEach(t=>{let{slug:c}=t;l.forEach(t=>{let{classSuffix:r,propertyName:l}=t;const o=`.has-${Object(E.kebabCase)(c)}-${r}`,i=e.split(",").map(e=>`${e}${o}`).join(","),s=`var(--wp--preset--${a}--${Object(E.kebabCase)(c)})`;n+=`${i}{${l}: ${s} !important;}`})})}),n},"")}(t,n);Object(E.isEmpty)(c)||(r+=c)}),r};function xn(){const[e,t]=(()=>{const{user:e,setUserConfig:t}=Object(a.useContext)(_t);return[!!e&&!Object(E.isEqual)(e,jt),Object(a.useCallback)(()=>t(()=>jt),[t])]})();return Object(a.createElement)(st,{className:"edit-site-global-styles-sidebar",identifier:"edit-site/global-styles",title:Object(b.__)("Styles"),icon:ut,closeLabel:Object(b.__)("Close global styles sidebar"),header:Object(a.createElement)(p.Flex,null,Object(a.createElement)(p.FlexBlock,null,Object(a.createElement)("strong",null,Object(b.__)("Styles")),Object(a.createElement)("span",{className:"edit-site-global-styles-sidebar__beta"},Object(b.__)("Beta"))),Object(a.createElement)(p.FlexItem,null,Object(a.createElement)(p.DropdownMenu,{icon:Fe.a,label:Object(b.__)("More Global Styles Actions"),toggleProps:{disabled:!e},controls:[{title:Object(b.__)("Reset to defaults"),onClick:t}]})))},Object(a.createElement)(hn,null))}const Tn="edit-site/template",kn="edit-site/block-inspector";var In=e=>{let{sidebarName:t}=e;const{enableComplementaryArea:n}=Object(i.useDispatch)(w.i),[c,r]=t===Tn?[Object(b.__)("Template (selected)"),"is-active"]:[Object(b.__)("Template"),""],[l,o]=t===kn?[Object(b.__)("Block (selected)"),"is-active"]:[Object(b.__)("Block"),""];return Object(a.createElement)("ul",null,Object(a.createElement)("li",null,Object(a.createElement)(p.Button,{onClick:()=>n(T,Tn),className:"edit-site-sidebar__panel-tab "+r,"aria-label":c,"data-label":Object(b.__)("Template")},Object(b.__)("Template"))),Object(a.createElement)("li",null,Object(a.createElement)(p.Button,{onClick:()=>n(T,kn),className:"edit-site-sidebar__panel-tab "+o,"aria-label":l,"data-label":Object(b.__)("Block")},Object(b.__)("Block"))))};function Cn(e){let{area:t,clientId:n}=e;const{selectBlock:c,toggleBlockHighlight:r}=Object(i.useDispatch)(Ae.store),l=()=>r(n,!0),o=()=>r(n,!1);return Object(a.createElement)(p.Button,{className:"edit-site-template-card__template-areas-item",icon:Object(u.getTemplatePartIcon)(t),onMouseOver:l,onMouseLeave:o,onFocus:l,onBlur:o,onClick:()=>{c(n)}},k[t])}function Nn(){const e=Object(i.useSelect)(e=>e(Ce).getCurrentTemplateTemplateParts(),[]);return e.length?Object(a.createElement)("section",{className:"edit-site-template-card__template-areas"},Object(a.createElement)(p.__experimentalHeading,{level:3,className:"edit-site-template-card__template-areas-title"},Object(b.__)("Areas")),Object(a.createElement)("ul",{className:"edit-site-template-card__template-areas-list"},e.map(e=>{let{templatePart:t,block:n}=e;return Object(a.createElement)("li",{key:t.slug},Object(a.createElement)(Cn,{area:t.area,clientId:n.clientId}))}))):null}function Pn(){const{title:e,description:t,icon:n}=Object(i.useSelect)(e=>{const{getEditedPostType:t,getEditedPostId:n}=e(Ce),{getEntityRecord:c}=e(s.store),{__experimentalGetTemplateInfo:r}=e(u.store),a=c("postType",t(),n());return a?r(a):{}},[]);return e||t?Object(a.createElement)("div",{className:"edit-site-template-card"},Object(a.createElement)(p.Icon,{className:"edit-site-template-card__icon",icon:n}),Object(a.createElement)("div",{className:"edit-site-template-card__content"},Object(a.createElement)("h2",{className:"edit-site-template-card__title"},e),Object(a.createElement)("div",{className:"edit-site-template-card__description"},t),Object(a.createElement)(Nn,null))):null}const{Slot:An,Fill:Mn}=Object(p.createSlotFill)("EditSiteSidebarInspector"),Rn=Mn;function Bn(){const{sidebar:e,isEditorSidebarOpened:t,hasBlockSelection:n}=Object(i.useSelect)(e=>{const t=e(w.i).getActiveComplementaryArea(T);return{sidebar:t,isEditorSidebarOpened:[kn,Tn].includes(t),hasBlockSelection:!!e(Ae.store).getBlockSelectionStart()}},[]),{enableComplementaryArea:c}=Object(i.useDispatch)(w.i);Object(a.useEffect)(()=>{t&&c(T,n?kn:Tn)},[n,t]);let r=e;return t||(r=n?kn:Tn),Object(a.createElement)(a.Fragment,null,Object(a.createElement)(st,{identifier:r,title:Object(b.__)("Settings"),icon:it.a,closeLabel:Object(b.__)("Close settings sidebar"),header:Object(a.createElement)(In,{sidebarName:r}),headerClassName:"edit-site-sidebar__panel-tabs"},r===Tn&&Object(a.createElement)(p.PanelBody,null,Object(a.createElement)(Pn,null)),r===kn&&Object(a.createElement)(An,{bubblesVirtually:!0})),Object(a.createElement)(xn,null))}var Ln=n("rmEH");const Fn="__experimentalMainDashboardButton",{Fill:Dn,Slot:Gn}=Object(p.createSlotFill)(Fn),Vn=Dn;Vn.Slot=e=>{let{children:t}=e;const n=Object(p.__experimentalUseSlot)(Fn);return Boolean(n.fills&&n.fills.length)?Object(a.createElement)(Gn,{bubblesVirtually:!0}):t};var zn=Vn;var Un=e=>{let{isOpen:t,setIsOpen:n,activeTemplateType:c}=e;const r=Object(i.useSelect)(e=>{const{getEntityRecord:t}=e(s.store);return(t("root","__unstableBase",void 0)||{}).name},[]),l=Object(a.useRef)();Object(a.useEffect)(()=>{t&&l.current.focus()},[c,t]);return Object(a.createElement)("div",{className:Ze()("edit-site-navigation-panel",{"is-open":t}),ref:l,tabIndex:"-1",onKeyDown:e=>{e.keyCode!==Ke.ESCAPE||e.defaultPrevented||(e.preventDefault(),n(!1))}},Object(a.createElement)("div",{className:"edit-site-navigation-panel__inner"},Object(a.createElement)("div",{className:"edit-site-navigation-panel__site-title-container"},Object(a.createElement)("div",{className:"edit-site-navigation-panel__site-title"},Object(Ln.decodeEntities)(r))),Object(a.createElement)("div",{className:"edit-site-navigation-panel__scroll-container"},Object(a.createElement)(p.__experimentalNavigation,{activeItem:c},Object(a.createElement)(zn.Slot,null,Object(a.createElement)(p.__experimentalNavigationBackButton,{backButtonLabel:Object(b.__)("Dashboard"),className:"edit-site-navigation-panel__back-to-dashboard",href:"index.php"})),Object(a.createElement)(p.__experimentalNavigationMenu,null,Object(a.createElement)(p.__experimentalNavigationGroup,{title:Object(b.__)("Editor")},Object(a.createElement)(p.__experimentalNavigationItem,{title:Object(b.__)("Site"),href:Object(L.addQueryArgs)(window.location.href,{postId:void 0,postType:void 0})}),Object(a.createElement)(p.__experimentalNavigationItem,{title:Object(b.__)("Templates"),item:"wp_template",href:Object(L.addQueryArgs)(window.location.href,{postId:void 0,postType:"wp_template"})}),Object(a.createElement)(p.__experimentalNavigationItem,{title:Object(b.__)("Template Parts"),item:"wp_template_part",href:Object(L.addQueryArgs)(window.location.href,{postId:void 0,postType:"wp_template_part"})})))))))},Hn=n("wduq");var Wn=function(e){let{icon:t,isOpen:n,setIsOpen:c}=e;const{isRequestingSiteIcon:r,siteIconUrl:l}=Object(i.useSelect)(e=>{const{getEntityRecord:t,isResolving:n}=e(s.store),c=t("root","__unstableBase",void 0)||{};return{isRequestingSiteIcon:n("core","getEntityRecord",["root","__unstableBase",void 0]),siteIconUrl:c.site_icon_url}},[]),o=Object(Re.useReducedMotion)();let u=Object(a.createElement)(p.Icon,{size:"36px",icon:Hn.a});const d={expand:{scale:1.7,borderRadius:0,transition:{type:"tween",duration:"0.2"}}};return l?u=Object(a.createElement)(p.__unstableMotion.img,{variants:!o&&d,alt:Object(b.__)("Site Icon"),className:"edit-site-navigation-toggle__site-icon",src:l}):r?u=null:t&&(u=Object(a.createElement)(p.Icon,{size:"36px",icon:t})),Object(a.createElement)(p.__unstableMotion.div,{className:"edit-site-navigation-toggle"+(n?" is-open":""),whileHover:"expand"},Object(a.createElement)(p.Button,{className:"edit-site-navigation-toggle__button has-icon",label:Object(b.__)("Toggle navigation"),onClick:()=>c(e=>!e),showTooltip:!0},u))};const{Fill:qn,Slot:$n}=Object(p.createSlotFill)("EditSiteNavigationPanelPreview");function Kn(e){let{isDefaultOpen:t=!1,activeTemplateType:n}=e;const c=Object(Re.useViewportMatch)("medium"),[r,l]=Object(a.useState)(t&&c);return Object(a.useEffect)(()=>{t&&c&&l(!0),c||l(!1)},[t,c]),Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Wn,{isOpen:r,setIsOpen:l}),Object(a.createElement)(Un,{isOpen:r,setIsOpen:l,activeTemplateType:n}),Object(a.createElement)($n,null))}function Qn(e){let{clientId:t}=e;const{getBlocks:n}=Object(i.useSelect)(Ae.store),{replaceBlocks:c}=Object(i.useDispatch)(Ae.store);return Object(a.createElement)(Ae.BlockSettingsMenuControls,null,e=>{let{onClose:r}=e;return Object(a.createElement)(p.MenuItem,{onClick:()=>{c(t,n(t)),r()}},Object(b.__)("Detach blocks from template part"))})}function Yn(e){let{closeModal:t,onCreate:n}=e;const[c,r]=Object(a.useState)(""),[l,o]=Object(a.useState)("uncategorized"),[s,d]=Object(a.useState)(!1),m=Object(Re.useInstanceId)(Yn),O=Object(i.useSelect)(e=>e(u.store).__experimentalGetDefaultTemplatePartAreas(),[]);return Object(a.createElement)(p.Modal,{title:Object(b.__)("Create a template part"),closeLabel:Object(b.__)("Close"),onRequestClose:t,overlayClassName:"edit-site-create-template-part-modal"},Object(a.createElement)("form",{onSubmit:async e=>{e.preventDefault(),c&&(d(!0),await n({title:c,area:l}),d(!1),t())}},Object(a.createElement)(p.TextControl,{label:Object(b.__)("Name"),value:c,onChange:r,required:!0}),Object(a.createElement)(p.BaseControl,{label:Object(b.__)("Area"),id:"edit-site-create-template-part-modal__area-selection-"+m,className:"edit-site-create-template-part-modal__area-base-control"},Object(a.createElement)(p.__experimentalRadioGroup,{label:Object(b.__)("Area"),className:"edit-site-create-template-part-modal__area-radio-group",id:"edit-site-create-template-part-modal__area-selection-"+m,onChange:o,checked:l},O.map(e=>{let{icon:t,label:n,area:c,description:r}=e;return Object(a.createElement)(p.__experimentalRadio,{key:n,value:c,className:"edit-site-create-template-part-modal__area-radio"},Object(a.createElement)(p.Flex,{align:"start",justify:"start"},Object(a.createElement)(p.FlexItem,null,Object(a.createElement)(p.Icon,{icon:t})),Object(a.createElement)(p.FlexBlock,{className:"edit-site-create-template-part-modal__option-label"},n,Object(a.createElement)("div",null,r)),Object(a.createElement)(p.FlexItem,{className:"edit-site-create-template-part-modal__checkbox"},l===c&&Object(a.createElement)(p.Icon,{icon:De.a}))))}))),Object(a.createElement)(p.Flex,{className:"edit-site-create-template-part-modal__modal-actions",justify:"flex-end"},Object(a.createElement)(p.FlexItem,null,Object(a.createElement)(p.Button,{variant:"secondary",onClick:()=>{t()}},Object(b.__)("Cancel"))),Object(a.createElement)(p.FlexItem,null,Object(a.createElement)(p.Button,{variant:"primary",type:"submit",disabled:!c,isBusy:s},Object(b.__)("Create"))))))}function Xn(e){let{clientIds:t,blocks:n}=e;const[c,r]=Object(a.useState)(!1),{replaceBlocks:o}=Object(i.useDispatch)(Ae.store),{saveEntityRecord:u}=Object(i.useDispatch)(s.store),{createSuccessNotice:d}=Object(i.useDispatch)(F.store);return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Ae.BlockSettingsMenuControls,null,e=>{let{onClose:t}=e;return Object(a.createElement)(p.MenuItem,{onClick:()=>{r(!0),t()}},Object(b.__)("Make template part"))}),c&&Object(a.createElement)(Yn,{closeModal:()=>{r(!1)},onCreate:async e=>{let{title:c,area:r}=e;const a=await u("postType","wp_template_part",{slug:Object(E.kebabCase)(c),title:c,content:Object(l.serialize)(n),area:r});o(t,Object(l.createBlock)("core/template-part",{slug:a.slug,theme:a.theme})),d(Object(b.__)("Template part created."),{type:"snackbar"})}}))}function Zn(){var e;const{clientIds:t,blocks:n}=Object(i.useSelect)(e=>{const{getSelectedBlockClientIds:t,getBlocksByClientId:n}=e(Ae.store),c=t();return{clientIds:c,blocks:n(c)}},[]);return 1===n.length&&"core/template-part"===(null===(e=n[0])||void 0===e?void 0:e.name)?Object(a.createElement)(Qn,{clientId:t[0]}):Object(a.createElement)(Xn,{clientIds:t,blocks:n})}var Jn=n("B9Az");function ec(e){let{type:t,id:n,activePage:c,onActivePageChange:r}=e;const l=Object(i.useSelect)(e=>t&&n&&"URL"!==t&&e(s.store).getEntityRecord("postType",t,n),[t,n]),o=Object(a.useMemo)(()=>{if(null==l||!l.link)return null;const e=Object(L.getPathAndQueryString)(l.link);return e===(null==c?void 0:c.path)?null:()=>r({type:t,slug:l.slug,path:e,context:{postType:l.type,postId:l.id}})},[l,null==c?void 0:c.path,r]);return o&&Object(a.createElement)(p.Button,{icon:Jn.a,label:Object(b.__)("Edit Page Template"),onClick:o})}function tc(e){let{onClick:t=(()=>{})}=e;const{shortcut:n,isBlockInspectorOpen:c}=Object(i.useSelect)(e=>({shortcut:e(Me.store).getShortcutRepresentation("core/edit-site/toggle-block-settings-sidebar"),isBlockInspectorOpen:e(w.i).getActiveComplementaryArea(Ce.name)===kn}),[]),{enableComplementaryArea:r,disableComplementaryArea:l}=Object(i.useDispatch)(w.i),o=c?Object(b.__)("Hide more settings"):Object(b.__)("Show more settings");return Object(a.createElement)(p.MenuItem,{onClick:()=>{c?(l(T),Object(Ge.speak)(Object(b.__)("Block settings closed"))):(r(T,kn),Object(Ge.speak)(Object(b.__)("Additional settings are now available in the Editor block settings sidebar"))),t()},shortcut:n},o)}function nc(){return Object(a.createElement)(Ae.BlockSettingsMenuControls,null,e=>{let{selectedClientIds:t,onClose:n}=e;return Object(a.createElement)(cc,{selectedClientId:t[0],onClose:n})})}function cc(e){let{selectedClientId:t,onClose:n}=e;const c=Object(i.useSelect)(e=>{const n=e(Ae.store).getBlock(t);if(n&&Object(l.isTemplatePart)(n)){const{theme:t,slug:c}=n.attributes;return e(s.store).getEntityRecord("postType","wp_template_part",`${t}//${c}`)}},[t]),{pushTemplatePart:r}=Object(i.useDispatch)(Ce);return c?Object(a.createElement)(p.MenuItem,{onClick:()=>{r(c.id),n()}},Object(b.sprintf)(Object(b.__)("Edit %s"),c.slug)):null}var rc=n("cjQ8");var ac=function(){const{isTemplatePart:e,previousTemplateId:t}=Object(i.useSelect)(e=>{const{getEditedPostType:t,getPreviousEditedPostId:n}=e(Ce);return{isTemplatePart:"wp_template_part"===t(),previousTemplateId:n()}},[]),{goBack:n}=Object(i.useDispatch)(Ce);return e&&t?Object(a.createElement)(p.Button,{className:"edit-site-visual-editor__back-button",icon:rc.a,onClick:()=>{n()}},Object(b.__)("Back")):null};function lc(e){let{direction:t,resizeWidthBy:n}=e;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("button",{className:"resizable-editor__drag-handle is-"+t,"aria-label":Object(b.__)("Drag to resize"),"aria-describedby":"resizable-editor__resize-help-"+t,onKeyDown:function(e){const{keyCode:c}=e;"left"===t&&c===Ke.LEFT||"right"===t&&c===Ke.RIGHT?n(20):("left"===t&&c===Ke.RIGHT||"right"===t&&c===Ke.LEFT)&&n(-20)}}),Object(a.createElement)(p.VisuallyHidden,{id:"resizable-editor__resize-help-"+t},Object(b.__)("Use left and right arrow keys to resize the canvas.")))}const oc="100%",ic="100%",sc={position:void 0,userSelect:void 0,cursor:void 0,width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0};var uc=function(e){let{enableResizing:t,settings:n,...c}=e;const r=Object(i.useSelect)(e=>e(Ce).__experimentalGetPreviewDeviceType(),[]),l=Object(Ae.__experimentalUseResizeCanvas)(r),[o,s]=Object(a.useState)(oc),[u,d]=Object(a.useState)(ic),m=Object(a.useRef)(),b=Object(Ae.__unstableUseMouseMoveTypingReset)(),O=Object(Re.useMergeRefs)([m,b]);Object(a.useEffect)((function(){const e=m.current;if(!e||!t)return;const n=new e.contentWindow.ResizeObserver(()=>{d(e.contentDocument.querySelector(".edit-site-block-editor__block-list").offsetHeight)});return n.observe(e.contentDocument.documentElement),()=>{n.disconnect()}}),[t]);const _=Object(a.useCallback)(e=>{m.current&&s(m.current.offsetWidth+e)},[]);return Object(a.createElement)(p.ResizableBox,{size:{width:o,height:u},onResizeStop:(e,t,n)=>{s(n.style.width)},minWidth:300,maxWidth:"100%",maxHeight:"100%",enable:{right:t,left:t},showHandle:t,resizeRatio:2,handleComponent:{left:Object(a.createElement)(lc,{direction:"left",resizeWidthBy:_}),right:Object(a.createElement)(lc,{direction:"right",resizeWidthBy:_})},handleClasses:void 0,handleStyles:{left:sc,right:sc}},Object(a.createElement)(Ae.__unstableIframe,Object(wt.a)({style:t?void 0:l,head:Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Ae.__unstableEditorStyles,{styles:n.styles}),Object(a.createElement)("style",null,".edit-site-block-editor__block-list { display: flow-root; }")),ref:O,name:"editor-canvas",className:"edit-site-visual-editor__editor-canvas"},c)))};const dc={type:"default",alignments:[]};function mc(e){let{setIsInserterOpen:t}=e;const{settings:n,templateType:c,templateId:r,page:l}=Object(i.useSelect)(e=>{const{getSettings:n,getEditedPostType:c,getEditedPostId:r,getPage:a}=e(Ce);return{settings:n(t),templateType:c(),templateId:r(),page:a()}},[t]),[o,u,d]=Object(s.useEntityBlockEditor)("postType",c),{setPage:m}=Object(i.useDispatch)(Ce),p=Object(a.useRef)(),b=Object(Re.useMergeRefs)([p,Object(Ae.__unstableUseTypingObserver)()]),O=Object(Re.useViewportMatch)("small","<"),{clearSelectedBlock:_}=Object(i.useDispatch)(Ae.store),j="wp_template_part"===c;return Object(a.createElement)(Ae.BlockEditorProvider,{settings:n,value:o,onInput:u,onChange:d,useSubRegistry:!1},Object(a.createElement)(nc,null),Object(a.createElement)(Zn,null),Object(a.createElement)(Ae.__experimentalLinkControl.ViewerFill,null,Object(a.useCallback)(e=>Object(a.createElement)(ec,Object(wt.a)({},e,{activePage:l,onActivePageChange:m})),[l])),Object(a.createElement)(Rn,null,Object(a.createElement)(Ae.BlockInspector,null)),Object(a.createElement)(Ae.BlockTools,{className:Ze()("edit-site-visual-editor",{"is-focus-mode":j}),__unstableContentRef:p,onClick:e=>{e.target===e.currentTarget&&_()}},Object(a.createElement)(ac,null),Object(a.createElement)(uc,{key:r,enableResizing:j&&!O,settings:n,contentRef:b},Object(a.createElement)(Ae.BlockList,{className:"edit-site-block-editor__block-list wp-site-blocks",__experimentalLayout:dc})),Object(a.createElement)(Ae.__unstableBlockSettingsMenuFirstItem,null,e=>{let{onClose:t}=e;return Object(a.createElement)(tc,{onClick:t})})))}function pc(e){let{openEntitiesSavedStates:t}=e;const{__experimentalGetDirtyEntityRecords:n,isSavingEntityRecord:c}=Object(i.useSelect)(s.store),r=Object(i.useSelect)(e=>e(Ce).isListViewOpened(),[]),a=Object(i.useSelect)(e=>e(w.i).getActiveComplementaryArea(Ce.name)===kn,[]),{redo:l,undo:o}=Object(i.useDispatch)(s.store),{setIsListViewOpened:u}=Object(i.useDispatch)(Ce),{enableComplementaryArea:d,disableComplementaryArea:m}=Object(i.useDispatch)(w.i);return Object(Me.useShortcut)("core/edit-site/save",e=>{e.preventDefault();const r=n(),a=!!r.length;!r.some(e=>c(e.kind,e.name,e.key))&&a&&t()}),Object(Me.useShortcut)("core/edit-site/undo",e=>{o(),e.preventDefault()}),Object(Me.useShortcut)("core/edit-site/redo",e=>{l(),e.preventDefault()}),Object(Me.useShortcut)("core/edit-site/toggle-list-view",()=>{u(!r)}),Object(Me.useShortcut)("core/edit-site/toggle-block-settings-sidebar",e=>{e.preventDefault(),a?m(T):d(T,kn)}),null}pc.Register=function(){const{registerShortcut:e}=Object(i.useDispatch)(Me.store);return Object(a.useEffect)(()=>{e({name:"core/edit-site/save",category:"global",description:Object(b.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),e({name:"core/edit-site/undo",category:"global",description:Object(b.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/edit-site/redo",category:"global",description:Object(b.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"}}),e({name:"core/edit-site/toggle-list-view",category:"global",description:Object(b.__)("Open the block list view."),keyCombination:{modifier:"access",character:"o"}}),e({name:"core/edit-site/toggle-block-settings-sidebar",category:"global",description:Object(b.__)("Show or hide the block settings sidebar."),keyCombination:{modifier:"primaryShift",character:","}}),e({name:"core/edit-site/next-region",category:"global",description:Object(b.__)("Navigate to the next part of the editor."),keyCombination:{modifier:"ctrl",character:"`"},aliases:[{modifier:"access",character:"n"}]}),e({name:"core/edit-site/previous-region",category:"global",description:Object(b.__)("Navigate to the previous part of the editor."),keyCombination:{modifier:"ctrlShift",character:"`"},aliases:[{modifier:"access",character:"p"}]})},[e]),null};var bc=pc;function Oc(){const{setTemplate:e,setTemplatePart:t,showHomepage:n,setPage:c}=Object(i.useDispatch)(Ce);Object(a.useEffect)(()=>{const r=window.location.href,a=Object(L.getQueryArg)(r,"postId");if(!a)return void n();const l=Object(L.getQueryArg)(r,"postType");"page"===l||"post"===l?c({context:{postType:l,postId:a}}):"wp_template"===l?e(a):"wp_template_part"===l?t(a):n()},[]);const r=Object(i.useSelect)(e=>{var t,n;const{getEditedPostType:c,getEditedPostId:r,getPage:a}=e(Ce),l=a();let o=r(),i=c();return null!=l&&null!==(t=l.context)&&void 0!==t&&t.postId&&null!=l&&null!==(n=l.context)&&void 0!==n&&n.postType&&(o=l.context.postId,i=l.context.postType),o&&i?{postId:o,postType:i}:null},[]);return Object(a.useEffect)(()=>{const e=r?Object(L.addQueryArgs)(window.location.href,r):Object(L.removeQueryArgs)(window.location.href,"postType","postId");window.history.replaceState({},"",e)},[r]),null}var _c=n("w95h");function jc(){const{setIsInserterOpened:e}=Object(i.useDispatch)(Ce),t=Object(i.useSelect)(e=>e(Ce).__experimentalGetInsertionPoint(),[]),n=Object(Re.useViewportMatch)("medium","<"),[c,r]=Object(Re.__experimentalUseDialog)({onClose:()=>e(!1)});return Object(a.createElement)("div",Object(wt.a)({ref:c},r,{className:"edit-site-editor__inserter-panel"}),Object(a.createElement)("div",{className:"edit-site-editor__inserter-panel-header"},Object(a.createElement)(p.Button,{icon:_c.a,onClick:()=>e(!1)})),Object(a.createElement)("div",{className:"edit-site-editor__inserter-panel-content"},Object(a.createElement)(Ae.__experimentalLibrary,{showInserterHelpPanel:!0,shouldFocusBlock:n,rootClientId:t.rootClientId,__experimentalInsertionIndex:t.insertionIndex,__experimentalFilterValue:t.filterValue})))}var gc=n("bWcr");function fc(){const{setIsListViewOpened:e}=Object(i.useDispatch)(Ce),{clearSelectedBlock:t,selectBlock:n}=Object(i.useDispatch)(Ae.store);const c=Object(Re.useFocusOnMount)("firstElement"),r=Object(Re.useFocusReturn)();const l="edit-site-editor__list-view-panel-label-"+Object(Re.useInstanceId)(fc);return Object(a.createElement)("div",{"aria-labelledby":l,className:"edit-site-editor__list-view-panel",onKeyDown:function(t){t.keyCode!==Ke.ESCAPE||t.defaultPrevented||e(!1)}},Object(a.createElement)("div",{className:"edit-site-editor__list-view-panel-header"},Object(a.createElement)("strong",{id:l},Object(b.__)("List view")),Object(a.createElement)(p.Button,{icon:gc.a,label:Object(b.__)("Close list view sidebar"),onClick:()=>e(!1)})),Object(a.createElement)("div",{className:"edit-site-editor__list-view-panel-content",ref:Object(Re.useMergeRefs)([r,c])},Object(a.createElement)(Ae.__experimentalListView,{onSelect:async function(e){await t(),n(e,-1)},showNestedBlocks:!0,__experimentalFeatures:!0,__experimentalPersistentListViewFeatures:!0})))}function Ec(e){let{text:t,children:n}=e;const c=Object(Re.useCopyToClipboard)(t);return Object(a.createElement)(p.Button,{variant:"secondary",ref:c},n)}class hc extends a.Component{constructor(){super(...arguments),this.reboot=this.reboot.bind(this),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}reboot(){this.props.onError()}render(){const{error:e}=this.state;return e?Object(a.createElement)(Ae.Warning,{className:"editor-error-boundary",actions:[Object(a.createElement)(p.Button,{key:"recovery",onClick:this.reboot,variant:"secondary"},Object(b.__)("Attempt Recovery")),Object(a.createElement)(Ec,{key:"copy-error",text:e.stack},Object(b.__)("Copy Error"))]},Object(b.__)("The editor has encountered an unexpected error.")):this.props.children}}function vc(e){let{nonAnimatedSrc:t,animatedSrc:n}=e;return Object(a.createElement)("picture",{className:"edit-site-welcome-guide__image"},Object(a.createElement)("source",{srcSet:t,media:"(prefers-reduced-motion: reduce)"}),Object(a.createElement)("img",{src:n,width:"312",height:"240",alt:""}))}function yc(){const{toggleFeature:e}=Object(i.useDispatch)(Ce);return Object(a.createElement)(p.Guide,{className:"edit-site-welcome-guide",contentLabel:Object(b.__)("Welcome to the site editor"),finishButtonText:Object(b.__)("Get Started"),onFinish:()=>e("welcomeGuide"),pages:[{image:Object(a.createElement)(vc,{nonAnimatedSrc:"https://s.w.org/images/block-editor/edit-your-site.svg?1",animatedSrc:"https://s.w.org/images/block-editor/edit-your-site.gif?1"}),content:Object(a.createElement)(a.Fragment,null,Object(a.createElement)("h1",{className:"edit-site-welcome-guide__heading"},Object(b.__)("Edit your site")),Object(a.createElement)("p",{className:"edit-site-welcome-guide__text"},Object(b.__)("Design everything on your site — from the header right down to the footer — using blocks.")),Object(a.createElement)("p",{className:"edit-site-welcome-guide__text"},Object(a.createInterpolateElement)(Object(b.__)("Click <StylesIconImage /> to start designing your blocks, and choose your typography, layout, and colors."),{StylesIconImage:Object(a.createElement)("img",{alt:Object(b.__)("styles"),src:"data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z' fill='%231E1E1E'/%3E%3C/svg%3E%0A"})})))}]})}function wc(){const{toggleFeature:e}=Object(i.useDispatch)(Ce);return Object(a.createElement)(p.Guide,{className:"edit-site-welcome-guide",contentLabel:Object(b.__)("Welcome to styles"),finishButtonText:Object(b.__)("Get Started"),onFinish:()=>e("welcomeGuideStyles"),pages:[{image:Object(a.createElement)(vc,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-to-styles.svg?1",animatedSrc:"https://s.w.org/images/block-editor/welcome-to-styles.gif?1"}),content:Object(a.createElement)(a.Fragment,null,Object(a.createElement)("h1",{className:"edit-site-welcome-guide__heading"},Object(b.__)("Welcome to Styles")),Object(a.createElement)("p",{className:"edit-site-welcome-guide__text"},Object(b.__)("Tweak your site, or give it a whole new look! Get creative — how about a new color palette for your buttons, or choosing a new font? Take a look at what you can do here.")))},{image:Object(a.createElement)(vc,{nonAnimatedSrc:"https://s.w.org/images/block-editor/set-the-design.svg?1",animatedSrc:"https://s.w.org/images/block-editor/set-the-design.gif?1"}),content:Object(a.createElement)(a.Fragment,null,Object(a.createElement)("h1",{className:"edit-site-welcome-guide__heading"},Object(b.__)("Set the design")),Object(a.createElement)("p",{className:"edit-site-welcome-guide__text"},Object(b.__)("You can customize your site as much as you like with different colors, typography, and layouts. Or if you prefer, just leave it up to your theme to handle! ")))},{image:Object(a.createElement)(vc,{nonAnimatedSrc:"https://s.w.org/images/block-editor/personalize-blocks.svg?1",animatedSrc:"https://s.w.org/images/block-editor/personalize-blocks.gif?1"}),content:Object(a.createElement)(a.Fragment,null,Object(a.createElement)("h1",{className:"edit-site-welcome-guide__heading"},Object(b.__)("Personalize blocks")),Object(a.createElement)("p",{className:"edit-site-welcome-guide__text"},Object(b.__)("You can adjust your blocks to ensure a cohesive experience across your site — add your unique colors to a branded Button block, or adjust the Heading block to your preferred size.")))},{image:Object(a.createElement)(vc,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.gif"}),content:Object(a.createElement)(a.Fragment,null,Object(a.createElement)("h1",{className:"edit-site-welcome-guide__heading"},Object(b.__)("Learn more")),Object(a.createElement)("p",{className:"edit-site-welcome-guide__text"},Object(b.__)("New to block themes and styling your site? "),Object(a.createElement)(p.ExternalLink,{href:Object(b.__)("https://wordpress.org/support/article/wordpress-editor/")},Object(b.__)("Here’s a detailed guide to learn how to make the most of it."))))}]})}function Sc(){const{isActive:e,isStylesOpen:t}=Object(i.useSelect)(e=>{const t="edit-site/global-styles"===e(w.i).getActiveComplementaryArea(Ce.name),n=t?"welcomeGuideStyles":"welcomeGuide";return{isActive:e(Ce).isFeatureActive(n),isStylesOpen:t}},[]);return e?t?Object(a.createElement)(wc,null):Object(a.createElement)(yc,null):null}function xc(){const[e,t]=function(){const[e,t]=Object(a.useState)([]),[n,c]=Object(a.useState)({}),{merged:r}=Object(a.useContext)(_t);return Object(a.useEffect)(()=>{if(null==r||!r.styles||null==r||!r.settings)return;const e=(e=>{const t={};return e.forEach(e=>{var n,c;const r=e.name,a=null!==(n=null==e||null===(c=e.supports)||void 0===c?void 0:c.__experimentalSelector)&&void 0!==n?n:".wp-block-"+r.replace("core/","").replace("/","-");t[r]={name:r,selector:a}}),t})(Object(l.getBlockTypes)()),n=wn(r,e),a=Sn(r,e);t([{css:n,isGlobalStyles:!0,__experimentalNoWrapper:!0},{css:a,isGlobalStyles:!0}]),c(r.settings)},[r]),[e,n]}(),{getSettings:n}=Object(i.useSelect)(Ce),{updateSettings:c}=Object(i.useDispatch)(Ce);Object(a.useEffect)(()=>{var r;if(!e||!t)return;const a=n(),l=null==a||null===(r=a.styles)||void 0===r?void 0:r.filter(e=>!e.isGlobalStyles);c({...a,styles:[...l,...e],__experimentalFeatures:t})},[e,t])}function Tc(){return xc(),null}function kc(e,t){if(Array.isArray(t))return t}const Ic=e=>{if(!Object(E.isObject)(e)||Array.isArray(e))return e;const t=Object(E.pickBy)(Object(E.mapValues)(e,Ic),E.identity);return Object(E.isEmpty)(t)?void 0:t};function Cc(){const[e,t,n]=function(){const{globalStylesId:e,settings:t,styles:n}=Object(i.useSelect)(e=>{const t=e(s.store).__experimentalGetCurrentGlobalStylesId(),n=t?e(s.store).getEditedEntityRecord("root","globalStyles",t):void 0;return{globalStylesId:t,settings:null==n?void 0:n.settings,styles:null==n?void 0:n.styles}},[]),{getEditedEntityRecord:c}=Object(i.useSelect)(s.store),{editEntityRecord:r}=Object(i.useDispatch)(s.store),l=Object(a.useMemo)(()=>({settings:null!=t?t:{},styles:null!=n?n:{}}),[t,n]),o=Object(a.useCallback)(t=>{var n,a;const l=c("root","globalStyles",e),o=t({styles:null!==(n=null==l?void 0:l.styles)&&void 0!==n?n:{},settings:null!==(a=null==l?void 0:l.settings)&&void 0!==a?a:{}});r("root","globalStyles",e,{styles:Ic(o.styles)||{},settings:Ic(o.settings)||{}})},[e]);return[!!t||!!n,l,o]}(),[c,r]=function(){const e=Object(i.useSelect)(e=>e(s.store).__experimentalGetCurrentThemeBaseGlobalStyles(),[]);return[!!e,e]}(),l=Object(a.useMemo)(()=>{return r&&t?(e=r,n=t,Object(E.mergeWith)({},e,n,kc)):{};var e,n},[t,r]);return Object(a.useMemo)(()=>({isReady:e&&c,user:t,base:r,merged:l,setUserConfig:n}),[l,t,r,n,e,c])}function Nc(e){let{children:t}=e;const n=Cc();return n.isReady?Object(a.createElement)(_t.Provider,{value:n},t):null}const Pc={secondarySidebar:Object(b.__)("Block Library"),drawer:Object(b.__)("Navigation Sidebar")};var Ac=function(e){let{initialSettings:t,onError:n}=e;const{isInserterOpen:c,isListViewOpen:r,sidebarIsOpened:l,settings:o,entityId:d,templateType:m,page:_,template:j,templateResolved:g,isNavigationOpen:f,previousShortcut:E,nextShortcut:h}=Object(i.useSelect)(e=>{const{isInserterOpened:t,isListViewOpened:n,getSettings:c,getEditedPostType:r,getEditedPostId:a,getPage:l,isNavigationOpened:o}=e(Ce),{hasFinishedResolution:i,getEntityRecord:u}=e(s.store),d=r(),m=a();return{isInserterOpen:t(),isListViewOpen:n(),sidebarIsOpened:!!e(w.i).getActiveComplementaryArea(Ce.name),settings:c(),templateType:d,page:l(),template:m?u("postType",d,m):null,templateResolved:!!m&&i("getEntityRecord",["postType",d,m]),entityId:m,isNavigationOpen:o(),previousShortcut:e(Me.store).getAllShortcutKeyCombinations("core/edit-site/previous-region"),nextShortcut:e(Me.store).getAllShortcutKeyCombinations("core/edit-site/next-region")}},[]),{updateEditorSettings:v}=Object(i.useDispatch)(u.store),{setPage:y,setIsInserterOpened:S,updateSettings:x}=Object(i.useDispatch)(Ce);Object(a.useEffect)(()=>{x(t)},[]);const{defaultTemplateTypes:T,defaultTemplatePartAreas:k}=o;Object(a.useEffect)(()=>{v({defaultTemplateTypes:T,defaultTemplatePartAreas:k})},[T,k]);const[I,C]=Object(a.useState)(!1),N=Object(a.useCallback)(()=>C(!0),[]),P=Object(a.useCallback)(()=>{C(!1)},[]),A=Object(a.useMemo)(()=>({...null==_?void 0:_.context,queryContext:[(null==_?void 0:_.context.queryContext)||{page:1},e=>y({..._,context:{...null==_?void 0:_.context,queryContext:{...null==_?void 0:_.context.queryContext,...e}}})]}),[null==_?void 0:_.context]);Object(a.useEffect)(()=>{f?document.body.classList.add("is-navigation-sidebar-open"):document.body.classList.remove("is-navigation-sidebar-open")},[f]);const M=(null==o?void 0:o.siteUrl)&&void 0!==m&&void 0!==d;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Oc,null),M&&Object(a.createElement)(Me.ShortcutProvider,null,Object(a.createElement)(p.SlotFillProvider,null,Object(a.createElement)(s.EntityProvider,{kind:"root",type:"site"},Object(a.createElement)(s.EntityProvider,{kind:"postType",type:m,id:d},Object(a.createElement)(Nc,null,Object(a.createElement)(Ae.BlockContextProvider,{value:A},Object(a.createElement)(Tc,null),Object(a.createElement)(hc,{onError:n},Object(a.createElement)(w.d,{isActive:!0}),Object(a.createElement)(u.UnsavedChangesWarning,null),Object(a.createElement)(bc.Register,null),Object(a.createElement)(Bn,null),Object(a.createElement)(w.e,{labels:Pc,secondarySidebar:c?Object(a.createElement)(jc,null):r?Object(a.createElement)(fc,null):null,sidebar:l&&Object(a.createElement)(w.b.Slot,{scope:"core/edit-site"}),drawer:Object(a.createElement)(Kn,null),header:Object(a.createElement)(ot,{openEntitiesSavedStates:N}),notices:Object(a.createElement)(u.EditorSnackbars,null),content:Object(a.createElement)(a.Fragment,null,Object(a.createElement)(u.EditorNotices,null),j&&Object(a.createElement)(mc,{setIsInserterOpen:S}),g&&!j&&(null==o?void 0:o.siteUrl)&&d&&Object(a.createElement)(p.Notice,{status:"warning",isDismissible:!1},Object(b.__)("You attempted to edit an item that doesn't exist. Perhaps it was deleted?")),Object(a.createElement)(bc,{openEntitiesSavedStates:N})),actions:Object(a.createElement)(a.Fragment,null,I?Object(a.createElement)(u.EntitiesSavedStates,{close:P}):Object(a.createElement)("div",{className:"edit-site-editor__toggle-save-panel"},Object(a.createElement)(p.Button,{variant:"secondary",className:"edit-site-editor__toggle-save-panel-button",onClick:N,"aria-expanded":!1},Object(b.__)("Open save panel")))),footer:Object(a.createElement)(Ae.BlockBreadcrumb,null),shortcuts:{previous:E,next:h}}),Object(a.createElement)(Sc,null),Object(a.createElement)(p.Popover.Slot,null),Object(a.createElement)(O.PluginArea,null)))))))))};const Mc=["front-page","single-post","page","archive","search","404","index"];function Rc(e){let{postType:t}=e;const{templates:n,defaultTemplateTypes:c}=Object(i.useSelect)(e=>({templates:e(s.store).getEntityRecords("postType","wp_template"),defaultTemplateTypes:e(u.store).__experimentalGetDefaultTemplateTypes()}),[]);const r=Object(E.map)(n,"slug"),l=Object(E.filter)(c,e=>Object(E.includes)(Mc,e.slug)&&!Object(E.includes)(r,e.slug));return l.length?Object(a.createElement)(p.DropdownMenu,{className:"edit-site-new-template-dropdown",icon:null,text:t.labels.add_new,label:t.labels.add_new_item,popoverProps:{noArrow:!1},toggleProps:{variant:"primary"}},()=>Object(a.createElement)(p.NavigableMenu,{className:"edit-site-new-template-dropdown__popover"},Object(a.createElement)(p.MenuGroup,{label:t.labels.add_new_item},Object(E.map)(l,e=>{let{title:t,description:n,slug:r}=e;return Object(a.createElement)(p.MenuItem,{info:n,key:r,onClick:()=>{!async function(e){let{slug:t}=e;const{title:n,description:r}=Object(E.find)(c,{slug:t}),a=await j()({path:"/wp/v2/templates",method:"POST",data:{excerpt:r,slug:t.toString(),status:"publish",title:n}});window.location.href=Object(L.addQueryArgs)(window.location.href,{postId:a.id,postType:"wp_template"})}({slug:r})}},t)})))):null}function Bc(e){let{postType:t}=e;const[n,c]=Object(a.useState)(!1);return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(p.Button,{variant:"primary",onClick:()=>{c(!0)}},t.labels.add_new),n&&Object(a.createElement)(Yn,{closeModal:()=>c(!1),onCreate:async function(e){let{title:t,area:n}=e;if(!t)return;const c=await j()({path:"/wp/v2/template-parts",method:"POST",data:{slug:Object(E.kebabCase)(t),title:t,content:"",area:n}});window.location.href=Object(L.addQueryArgs)(window.location.href,{postId:c.id,postType:"wp_template_part"}),await new Promise(()=>{})}}))}function Lc(e){let{templateType:t="wp_template"}=e;const n=Object(i.useSelect)(e=>e(s.store).getPostType(t),[t]);return n?"wp_template"===t?Object(a.createElement)(Rc,{postType:n}):"wp_template_part"===t?Object(a.createElement)(Bc,{postType:n}):null:null}function Fc(e){var t;let{templateType:n}=e;const c=Object(i.useSelect)(e=>e(s.store).getPostType(n),[n]);return c?Object(a.createElement)("header",{className:"edit-site-list-header"},Object(a.createElement)(p.__experimentalHeading,{level:1,className:"edit-site-list-header__title"},null===(t=c.labels)||void 0===t?void 0:t.name),Object(a.createElement)("div",{className:"edit-site-list-header__right"},Object(a.createElement)(Lc,{templateType:n}))):null}function Dc(e){let{template:t,onClose:n}=e;const{removeTemplate:c}=Object(i.useDispatch)(Ce);return Object(a.createElement)(p.MenuGroup,null,Object(a.createElement)(p.MenuItem,{onClick:()=>{c(t),n()}},Object(b.__)("Remove template")))}function Gc(e){let{templateType:t}=e;const{templates:n,isLoading:c,postType:r}=Object(i.useSelect)(e=>{const{getEntityRecords:n,hasFinishedResolution:c,getPostType:r}=e(s.store);return{templates:n("postType",t),isLoading:!c("getEntityRecords",["postType",t]),postType:r(t)}},[t]);return!n||c?null:n.length?Object(a.createElement)("ul",{className:"edit-site-list-table"},Object(a.createElement)(p.__experimentalHStack,{className:"edit-site-list-table-head",as:"li"},Object(a.createElement)(p.FlexItem,{className:"edit-site-list-table-column"},Object(a.createElement)(p.__experimentalHeading,{level:4},Object(b.__)("Template"))),Object(a.createElement)(p.FlexItem,{className:"edit-site-list-table-column"},Object(a.createElement)(p.__experimentalHeading,{level:4},Object(b.__)("Added by"))),Object(a.createElement)(p.FlexItem,{className:"edit-site-list-table-column"},Object(a.createElement)(p.VisuallyHidden,null,Object(b.__)("Actions")))),n.map(e=>Object(a.createElement)("li",{key:e.id},Object(a.createElement)(p.__experimentalHStack,{className:"edit-site-list-table-row"},Object(a.createElement)(p.FlexItem,{className:"edit-site-list-table-column"},Object(a.createElement)("a",{href:Object(L.addQueryArgs)(window.location.href,{postId:e.id,postType:e.type})},e.title.rendered),e.description),Object(a.createElement)(p.FlexItem,{className:"edit-site-list-table-column"},e.theme),Object(a.createElement)(p.FlexItem,{className:"edit-site-list-table-column"},function(e){return!!e&&("custom"===e.source&&!e.has_theme_file)}(e)&&Object(a.createElement)(p.DropdownMenu,{icon:Fe.a,label:Object(b.__)("Actions"),className:"edit-site-list-table__actions"},t=>{let{onClose:n}=t;return Object(a.createElement)(Dc,{template:e,onClose:n})})))))):Object(a.createElement)("div",null,Object(b.sprintf)(Object(b.__)("No %s found."),null==r||null===(l=r.labels)||void 0===l||null===(o=l.name)||void 0===o?void 0:o.toLowerCase()));var l,o}function Vc(e){var t;let{templateType:n}=e;!function(){const{registerShortcut:e}=Object(i.useDispatch)(Me.store);Object(a.useEffect)(()=>{e({name:"core/edit-site/next-region",category:"global",description:Object(b.__)("Navigate to the next part of the editor."),keyCombination:{modifier:"ctrl",character:"`"},aliases:[{modifier:"access",character:"n"}]}),e({name:"core/edit-site/previous-region",category:"global",description:Object(b.__)("Navigate to the previous part of the editor."),keyCombination:{modifier:"ctrlShift",character:"`"},aliases:[{modifier:"access",character:"p"}]})},[])}();const{previousShortcut:c,nextShortcut:r}=Object(i.useSelect)(e=>({previousShortcut:e(Me.store).getAllShortcutKeyCombinations("core/edit-site/previous-region"),nextShortcut:e(Me.store).getAllShortcutKeyCombinations("core/edit-site/next-region")}),[]),l=Object(i.useSelect)(e=>e(s.store).getPostType(n),[n]),o=null==l||null===(t=l.labels)||void 0===t?void 0:t.items_list,u=l?{header:Object(b.sprintf)(Object(b.__)("%s - Header"),o),body:Object(b.sprintf)(Object(b.__)("%s - Content"),o)}:void 0;return Object(a.createElement)(w.e,{className:"edit-site-list",labels:{drawer:Object(b.__)("Navigation Sidebar"),...u},header:Object(a.createElement)(Fc,{templateType:n}),drawer:Object(a.createElement)(Kn,{activeTemplateType:n,isDefaultOpen:!0}),content:Object(a.createElement)("main",{className:"edit-site-list-main"},Object(a.createElement)(Gc,{templateType:n})),shortcuts:{previous:c,next:r}})}function zc(e){let{className:t,...n}=e;return Object(a.createElement)(w.b,Object(wt.a)({panelClassName:t,className:"edit-site-sidebar",scope:"core/edit-site"},n))}function Uc(e){return Object(a.createElement)(w.c,Object(wt.a)({__unstableExplicitMenuItem:!0,scope:"core/edit-site"},e))}var Hc=Object(Re.compose)(Object(O.withPluginContext)((e,t)=>({icon:t.icon||e.icon,name:"core/edit-site/plugin-more-menu"})))(w.a);function Wc(e,t){Object(a.unmountComponentAtNode)(e);const n=Wc.bind(null,e,t);Object(a.render)(Object(a.createElement)(Ac,{initialSettings:t,onError:n}),e)}function qc(e,t){t.__experimentalFetchLinkSuggestions=(e,n)=>Object(s.__experimentalFetchLinkSuggestions)(e,n,t),t.__experimentalFetchRichUrlData=s.__experimentalFetchUrlData,t.__experimentalSpotlightEntityBlocks=["core/template-part"];const n=document.getElementById(e),c=Wc.bind(null,n,t);Object(i.dispatch)(l.store).__experimentalReapplyBlockTypeFilters(),Object(o.registerCoreBlocks)(),Object(a.render)(Object(a.createElement)(Ac,{initialSettings:t,onError:c}),n)}function $c(e,t,n){const c=document.getElementById(e);Object(i.dispatch)(u.store).updateEditorSettings({defaultTemplateTypes:n.defaultTemplateTypes,defaultTemplatePartAreas:n.defaultTemplatePartAreas}),Object(a.render)(Object(a.createElement)(Vc,{templateType:t}),c)}},K2cm:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"}));t.a=a},K9lf:function(e,t){e.exports=window.wp.compose},KEfo:function(e,t){e.exports=window.wp.viewport},Mmq9:function(e,t){e.exports=window.wp.url},NWDH:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(c.createElement)(r.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=a},Ntru:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"}));t.a=a},OzlF:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(c.createElement)(r.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));t.a=a},Q4Sy:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));t.a=a},QyPg:function(e,t){e.exports=window.wp.blockLibrary},RMJe:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));t.a=a},RxS6:function(e,t){e.exports=window.wp.keycodes},TSYQ:function(e,t,n){var c; +this.wp=this.wp||{},this.wp.editSite=function(e){var t={};function n(c){if(t[c])return t[c].exports;var r=t[c]={i:c,l:!1,exports:{}};return e[c].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,c){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:c})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(n.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(c,r,function(t){return e[t]}.bind(null,r));return c},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="IqXm")}({"0Ene":function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"}));t.a=a},"1ZqX":function(e,t){e.exports=window.wp.data},"1iEr":function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=a},"2gm7":function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=a},"51Zz":function(e,t){e.exports=window.wp.dataControls},"6aBm":function(e,t){e.exports=window.wp.mediaUtils},B9Az:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");var a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=a},Cg8A:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{fillRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",clipRule:"evenodd"}));t.a=a},Civd:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));t.a=a},GRId:function(e,t){e.exports=window.wp.element},HSyU:function(e,t){e.exports=window.wp.blocks},IqXm:function(e,t,n){"use strict";n.r(t),n.d(t,"reinitializeEditor",(function(){return ur})),n.d(t,"initializeEditor",(function(){return mr})),n.d(t,"initializeList",(function(){return dr})),n.d(t,"__experimentalMainDashboardButton",(function(){return Yn})),n.d(t,"__experimentalNavigationToggle",(function(){return ec})),n.d(t,"PluginSidebar",(function(){return or})),n.d(t,"PluginSidebarMoreMenuItem",(function(){return ir})),n.d(t,"PluginMoreMenuItem",(function(){return sr}));var c={};n.r(c),n.d(c,"toggleFeature",(function(){return V})),n.d(c,"__experimentalSetPreviewDeviceType",(function(){return z})),n.d(c,"setTemplate",(function(){return U})),n.d(c,"addTemplate",(function(){return H})),n.d(c,"removeTemplate",(function(){return W})),n.d(c,"setTemplatePart",(function(){return q})),n.d(c,"pushTemplatePart",(function(){return $})),n.d(c,"setHomeTemplateId",(function(){return K})),n.d(c,"setPage",(function(){return Q})),n.d(c,"goBack",(function(){return Y})),n.d(c,"showHomepage",(function(){return X})),n.d(c,"setNavigationPanelActiveMenu",(function(){return Z})),n.d(c,"openNavigationPanelToMenu",(function(){return J})),n.d(c,"setIsNavigationPanelOpened",(function(){return ee})),n.d(c,"setIsInserterOpened",(function(){return te})),n.d(c,"updateSettings",(function(){return ne})),n.d(c,"setIsListViewOpened",(function(){return ce})),n.d(c,"revertTemplate",(function(){return re})),n.d(c,"openGeneralSidebar",(function(){return ae})),n.d(c,"closeGeneralSidebar",(function(){return le}));var r={};n.r(r),n.d(r,"isFeatureActive",(function(){return me})),n.d(r,"__experimentalGetPreviewDeviceType",(function(){return de})),n.d(r,"getCanUserCreateMedia",(function(){return be})),n.d(r,"getReusableBlocks",(function(){return pe})),n.d(r,"getSettings",(function(){return Oe})),n.d(r,"getHomeTemplateId",(function(){return _e})),n.d(r,"getEditedPostType",(function(){return Ee})),n.d(r,"getEditedPostId",(function(){return fe})),n.d(r,"getPreviousEditedPostType",(function(){return he})),n.d(r,"getPreviousEditedPostId",(function(){return ve})),n.d(r,"getPage",(function(){return ye})),n.d(r,"getNavigationPanelActiveMenu",(function(){return we})),n.d(r,"getCurrentTemplateNavigationPanelSubMenu",(function(){return Se})),n.d(r,"isNavigationOpened",(function(){return xe})),n.d(r,"isInserterOpened",(function(){return Te})),n.d(r,"__experimentalGetInsertionPoint",(function(){return ke})),n.d(r,"isListViewOpened",(function(){return Ie})),n.d(r,"getCurrentTemplateTemplateParts",(function(){return Ce}));var a=n("GRId"),l=n("HSyU"),o=n("QyPg"),i=n("1ZqX"),s=n("jZUy"),u=n("jSdM"),m=n("KEfo"),d=n("rrFr"),b=n.n(d),p=n("tI+e"),O=n("l3Sj"),_=n("TvNi"),j=n("ywyh"),g=n.n(j),E=n("Tqx9");var f=Object(a.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(E.Path,{d:"M18 11.3l-1-1.1-4 4V3h-1.5v11.3L7 10.2l-1 1.1 6.2 5.8 5.8-5.8zm.5 3.7v3.5h-13V15H4v5h16v-5h-1.5z"})),h=n("YLtl");const{Fill:v,Slot:y}=Object(p.createSlotFill)("EditSiteToolsMoreMenuGroup");v.Slot=e=>{let{fillProps:t}=e;return Object(a.createElement)(y,{fillProps:t},e=>!Object(h.isEmpty)(e)&&Object(a.createElement)(p.MenuGroup,{label:Object(O.__)("Tools")},e))};var w=v,S=n("U60i"),x=n("51Zz");const T={features:{welcomeGuide:!0,welcomeGuideStyles:!0}},k="core/edit-site",I={header:Object(O.__)("Header"),footer:Object(O.__)("Footer"),sidebar:Object(O.__)("Sidebar"),uncategorized:Object(O.__)("General")},C=["index","singular","archive","single","page","home","404","search","author","category","taxonomy","date","tag","attachment","single-post","front-page"],N=["page-home"],P=["post-","author-","single-post-","tag-"],A=["page-"],M={singular:["single","page"],index:["archive","404","search","singular","home"],home:["front-page"]},R=[{area:"header",menu:"template-parts-headers",title:Object(O.__)("headers")},{area:"footer",menu:"template-parts-footers",title:Object(O.__)("footers")},{area:"sidebar",menu:"template-parts-sidebars",title:Object(O.__)("sidebars")},{area:"uncategorized",menu:"template-parts-general",title:Object(O.__)("general")}],L=Object(i.combineReducers)({features(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T.features,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOGGLE_FEATURE":return{...e,[t.feature]:!e[t.feature]};default:return e}}});var B=Object(i.combineReducers)({preferences:L,deviceType:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Desktop",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PREVIEW_DEVICE_TYPE":return t.deviceType}return e},settings:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return{...e,...t.settings}}return e},editedPost:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE":case"SET_PAGE":return[{type:"wp_template",id:t.templateId,page:t.page}];case"SET_TEMPLATE_PART":return[{type:"wp_template_part",id:t.templatePartId}];case"PUSH_TEMPLATE_PART":return[...e,{type:"wp_template_part",id:t.templatePartId}];case"GO_BACK":return e.slice(0,-1)}return e},homeTemplateId:function(e,t){switch(t.type){case"SET_HOME_TEMPLATE":return t.homeTemplateId}return e},navigationPanel:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{menu:"root",isOpen:!1},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_NAVIGATION_PANEL_ACTIVE_MENU":return{...e,menu:t.menu};case"OPEN_NAVIGATION_PANEL_TO_MENU":return{...e,isOpen:!0,menu:t.menu};case"SET_IS_NAVIGATION_PANEL_OPENED":return{...e,menu:t.isOpen?e.menu:"root",isOpen:t.isOpen};case"SET_IS_LIST_VIEW_OPENED":return{...e,menu:e.isOpen&&t.isOpen?"root":e.menu,isOpen:!t.isOpen&&e.isOpen};case"SET_IS_INSERTER_OPENED":return{...e,menu:e.isOpen&&t.value?"root":e.menu,isOpen:!t.value&&e.isOpen}}return e},blockInserterPanel:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_NAVIGATION_PANEL_TO_MENU":return!1;case"SET_IS_NAVIGATION_PANEL_OPENED":case"SET_IS_LIST_VIEW_OPENED":return!t.isOpen&&e;case"SET_IS_INSERTER_OPENED":return t.value}return e},listViewPanel:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_NAVIGATION_PANEL_TO_MENU":return!1;case"SET_IS_NAVIGATION_PANEL_OPENED":return!t.isOpen&&e;case"SET_IS_INSERTER_OPENED":return!t.value&&e;case"SET_IS_LIST_VIEW_OPENED":return t.isOpen}return e}}),D=n("Mmq9"),F=n("onLe");function G(e){return!!e&&("custom"===(null==e?void 0:e.source)&&(null==e?void 0:e.has_theme_file))}function V(e){return{type:"TOGGLE_FEATURE",feature:e}}function z(e){return{type:"SET_PREVIEW_DEVICE_TYPE",deviceType:e}}function*U(e,t){const n={templateSlug:t};if(!t){const t=yield i.controls.resolveSelect(s.store,"getEntityRecord","postType","wp_template",e);n.templateSlug=null==t?void 0:t.slug}return{type:"SET_TEMPLATE",templateId:e,page:{context:n}}}function*H(e){const t=yield i.controls.dispatch(s.store,"saveEntityRecord","postType","wp_template",e);return e.content&&(yield i.controls.dispatch(s.store,"editEntityRecord","postType","wp_template",t.id,{blocks:Object(l.parse)(e.content)},{undoIgnore:!0})),{type:"SET_TEMPLATE",templateId:t.id,page:{context:{templateSlug:t.slug}}}}function*W(e){try{yield i.controls.dispatch(s.store,"deleteEntityRecord","postType",e.type,e.id,{force:!0});const t=yield i.controls.select(s.store,"getLastEntityDeleteError","postType",e.type,e.id);if(t)throw t;yield i.controls.dispatch(F.store,"createSuccessNotice",Object(O.sprintf)(Object(O.__)('"%s" removed.'),e.title.rendered),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:Object(O.__)("An error occurred while deleting the template.");yield i.controls.dispatch(F.store,"createErrorNotice",t,{type:"snackbar"})}}function q(e){return{type:"SET_TEMPLATE_PART",templatePartId:e}}function $(e){return{type:"PUSH_TEMPLATE_PART",templatePartId:e}}function K(e){return{type:"SET_HOME_TEMPLATE",homeTemplateId:e}}function*Q(e){var t;if(!e.path&&null!==(t=e.context)&&void 0!==t&&t.postId){const t=yield i.controls.resolveSelect(s.store,"getEntityRecord","postType",e.context.postType||"post",e.context.postId);e.path=Object(D.getPathAndQueryString)(t.link)}const{id:n,slug:c}=yield i.controls.resolveSelect(s.store,"__experimentalGetTemplateForLink",e.path);return yield{type:"SET_PAGE",page:c?{...e,context:{...e.context,templateSlug:c}}:e,templateId:n},n}function Y(){return{type:"GO_BACK"}}function*X(){const{show_on_front:e,page_on_front:t}=yield i.controls.resolveSelect(s.store,"getEntityRecord","root","site"),{siteUrl:n}=yield i.controls.select(k,"getSettings"),c={path:n,context:"page"===e?{postType:"page",postId:t}:{}},r=yield*Q(c);yield K(r)}function Z(e){return{type:"SET_NAVIGATION_PANEL_ACTIVE_MENU",menu:e}}function J(e){return{type:"OPEN_NAVIGATION_PANEL_TO_MENU",menu:e}}function ee(e){return{type:"SET_IS_NAVIGATION_PANEL_OPENED",isOpen:e}}function te(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}function ne(e){return{type:"UPDATE_SETTINGS",settings:e}}function ce(e){return{type:"SET_IS_LIST_VIEW_OPENED",isOpen:e}}function*re(e){let{allowUndo:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(G(e))try{var n;const c=yield i.controls.select(s.store,"getEntity","postType",e.type);if(!c)return void(yield i.controls.dispatch(F.store,"createErrorNotice",Object(O.__)("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"}));const r=Object(D.addQueryArgs)(`${c.baseURL}/${e.id}`,{context:"edit",source:"theme"}),a=yield Object(x.apiFetch)({path:r});if(!a)return void(yield i.controls.dispatch(F.store,"createErrorNotice",Object(O.__)("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"}));const o=e=>{let{blocks:t=[]}=e;return Object(l.__unstableSerializeAndClean)(t)},u=yield i.controls.select(s.store,"getEditedEntityRecord","postType",e.type,e.id);yield i.controls.dispatch(s.store,"editEntityRecord","postType",e.type,e.id,{content:o,blocks:u.blocks,source:"custom"},{undoIgnore:!0});const m=Object(l.parse)(null==a||null===(n=a.content)||void 0===n?void 0:n.raw);if(yield i.controls.dispatch(s.store,"editEntityRecord","postType",e.type,a.id,{content:o,blocks:m,source:"theme"}),t){const t=async()=>{await Object(i.dispatch)(s.store).editEntityRecord("postType",e.type,u.id,{content:o,blocks:u.blocks,source:"custom"})};yield i.controls.dispatch(F.store,"createSuccessNotice",Object(O.__)("Template reverted."),{type:"snackbar",actions:[{label:Object(O.__)("Undo"),onClick:t}]})}else yield i.controls.dispatch(F.store,"createSuccessNotice",Object(O.__)("Template reverted."))}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:Object(O.__)("Template revert failed. Please reload.");yield i.controls.dispatch(F.store,"createErrorNotice",t,{type:"snackbar"})}else yield i.controls.dispatch(F.store,"createErrorNotice",Object(O.__)("This template is not revertable."),{type:"snackbar"})}function*ae(e){yield i.controls.dispatch(S.i,"enableComplementaryArea",k,e)}function*le(){yield i.controls.dispatch(S.i,"disableComplementaryArea",k)}var oe=n("pPDe"),ie=n("6aBm");function se(e,t,n){return!!M[e]&&("home"===e&&"posts"!==n||M[e].every(e=>t.includes(e)||se(e,t,n)))}function ue(e){if(C.includes(e))return"templates";if(N.includes(e))return"templates-general";if(P.some(t=>e.startsWith(t)))return"templates-posts";return A.some(t=>e.startsWith(t))?"templates-pages":"templates-general"}function me(e,t){return Object(h.get)(e.preferences.features,[t],!1)}function de(e){return e.deviceType}const be=Object(i.createRegistrySelector)(e=>()=>e(s.store).canUser("create","media")),pe=Object(i.createRegistrySelector)(e=>()=>"web"===a.Platform.OS?e(s.store).getEntityRecords("postType","wp_block",{per_page:-1}):[]),Oe=Object(oe.a)((e,t)=>{const n={...e.settings,outlineMode:!0,focusMode:me(e,"focusMode"),hasFixedToolbar:me(e,"fixedToolbar"),__experimentalSetIsInserterOpened:t,__experimentalReusableBlocks:pe(e)};return be(e)?(n.mediaUpload=t=>{let{onError:n,...c}=t;Object(ie.uploadMedia)({wpAllowedMimeTypes:e.settings.allowedMimeTypes,onError:e=>{let{message:t}=e;return n(t)},...c})},n):n},e=>[be(e),e.settings,me(e,"focusMode"),me(e,"fixedToolbar"),pe(e)]);function _e(e){return e.homeTemplateId}function je(e){return e.editedPost[e.editedPost.length-1]||{}}function ge(e){return e.editedPost[e.editedPost.length-2]||{}}function Ee(e){return je(e).type}function fe(e){return je(e).id}function he(e){return ge(e).type}function ve(e){return ge(e).id}function ye(e){return je(e).page}function we(e){return e.navigationPanel.menu}const Se=Object(i.createRegistrySelector)(e=>t=>{const n=Ee(t),c=fe(t),r=c?e(s.store).getEntityRecord("postType",n,c):null;if(!r)return"root";var a;if("wp_template_part"===n)return(null===(a=R.find(e=>e.area===(null==r?void 0:r.area)))||void 0===a?void 0:a.menu)||"template-parts";const l=e(s.store).getEntityRecords("postType","wp_template"),o=e(s.store).getEditedEntityRecord("root","site").show_on_front;return se(r.slug,Object(h.map)(l,"slug"),o)?"templates-unused":ue(r.slug)});function xe(e){return e.navigationPanel.isOpen}function Te(e){return!!e.blockInserterPanel}function ke(e){const{rootClientId:t,insertionIndex:n,filterValue:c}=e.blockInserterPanel;return{rootClientId:t,insertionIndex:n,filterValue:c}}function Ie(e){return e.listViewPanel}const Ce=Object(i.createRegistrySelector)(e=>t=>{var n;const c=Ee(t),r=fe(t),a=e(s.store).getEditedEntityRecord("postType",c,r),o=e(s.store).getEntityRecords("postType","wp_template_part",{per_page:-1}),i=Object(h.keyBy)(o,e=>e.id);return(null!==(n=a.blocks)&&void 0!==n?n:[]).filter(e=>Object(l.isTemplatePart)(e)).map(e=>{const{attributes:{theme:t,slug:n}}=e;return{templatePart:i[`${t}//${n}`],block:e}}).filter(e=>{let{templatePart:t}=e;return!!t})}),Ne={reducer:B,actions:c,selectors:r,controls:x.controls,persist:["preferences"]},Pe=Object(i.createReduxStore)(k,Ne);function Ae(){const{toggleFeature:e}=Object(i.useDispatch)(Pe),t=Object(i.useSelect)(e=>"edit-site/global-styles"===e(S.i).getActiveComplementaryArea(Pe.name),[]);return Object(a.createElement)(p.MenuItem,{onClick:()=>e(t?"welcomeGuideStyles":"welcomeGuide")},Object(O.__)("Welcome Guide"))}Object(i.registerStore)(k,Ne),Object(_.registerPlugin)("edit-site",{render:()=>Object(a.createElement)(a.Fragment,null,Object(a.createElement)(w,null,Object(a.createElement)(p.MenuItem,{role:"menuitem",icon:f,onClick:()=>g()({path:"/wp-block-editor/v1/export",parse:!1}).then(e=>e.blob()).then(e=>b()(e,"edit-site-export.zip","application/zip")),info:Object(O.__)("Download your templates and template parts.")},Object(O.__)("Export")),Object(a.createElement)(Ae,null)))});var Me=n("g56x");Object(Me.addFilter)("editor.MediaUpload","core/edit-site/components/media-upload",()=>ie.MediaUpload);var Re=n("axFQ"),Le=n("hF7m"),Be=n("K9lf"),De=n("Q4Sy"),Fe=n("OzlF"),Ge=n("VKE3"),Ve=n("RMJe"),ze=n("gdqT");function Ue(e){let{feature:t,label:n,info:c,messageActivated:r,messageDeactivated:l}=e;const o=Object(i.useSelect)(e=>e(Pe).isFeatureActive(t),[]),{toggleFeature:s}=Object(i.useDispatch)(Pe);return Object(a.createElement)(p.MenuItem,{icon:o&&Ve.a,isSelected:o,onClick:Object(h.flow)(s.bind(null,t),()=>{o?Object(ze.speak)(l||Object(O.__)("Feature deactivated")):Object(ze.speak)(r||Object(O.__)("Feature activated"))}),role:"menuitemcheckbox",info:c},n)}const He={className:"edit-site-more-menu__content",position:"bottom left"},We={tooltipPosition:"bottom"};var qe=()=>Object(a.createElement)(p.DropdownMenu,{className:"edit-site-more-menu",icon:Ge.a,label:Object(O.__)("More tools & options"),popoverProps:He,toggleProps:We},e=>{let{onClose:t}=e;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(p.MenuGroup,{label:Object(O._x)("View","noun")},Object(a.createElement)(Ue,{feature:"fixedToolbar",label:Object(O.__)("Top toolbar"),info:Object(O.__)("Access all block and document tools in a single place"),messageActivated:Object(O.__)("Top toolbar activated"),messageDeactivated:Object(O.__)("Top toolbar deactivated")}),Object(a.createElement)(Ue,{feature:"focusMode",label:Object(O.__)("Spotlight mode"),info:Object(O.__)("Focus on one block at a time"),messageActivated:Object(O.__)("Spotlight mode activated"),messageDeactivated:Object(O.__)("Spotlight mode deactivated")}),Object(a.createElement)(S.a.Slot,{name:"core/edit-site/plugin-more-menu",label:Object(O.__)("Plugins"),as:p.MenuGroup,fillProps:{onClick:t}})),Object(a.createElement)(w.Slot,{fillProps:{onClose:t}}))});function $e(e){let{openEntitiesSavedStates:t,isEntitiesSavedStatesOpen:n}=e;const{isDirty:c,isSaving:r}=Object(i.useSelect)(e=>{const{__experimentalGetDirtyEntityRecords:t,isSavingEntityRecord:n}=e(s.store),c=t();return{isDirty:c.length>0,isSaving:Object(h.some)(c,e=>n(e.kind,e.name,e.key))}},[]),l=!c||r;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(p.Button,{variant:"primary",className:"edit-site-save-button__button","aria-disabled":l,"aria-expanded":n,disabled:l,isBusy:r,onClick:l?void 0:t},Object(O.__)("Save")))}var Ke=n("Ntru"),Qe=n("K2cm"),Ye=n("RxS6");function Xe(){const e=Object(i.useSelect)(e=>e(s.store).hasUndo(),[]),{undo:t}=Object(i.useDispatch)(s.store);return Object(a.createElement)(p.Button,{icon:Object(O.isRTL)()?Qe.a:Ke.a,label:Object(O.__)("Undo"),shortcut:Ye.displayShortcut.primary("z"),"aria-disabled":!e,onClick:e?t:void 0})}function Ze(){const e=Object(i.useSelect)(e=>e(s.store).hasRedo(),[]),{redo:t}=Object(i.useDispatch)(s.store);return Object(a.createElement)(p.Button,{icon:Object(O.isRTL)()?Ke.a:Qe.a,label:Object(O.__)("Redo"),shortcut:Ye.displayShortcut.primaryShift("z"),"aria-disabled":!e,onClick:e?t:void 0})}var Je=n("TSYQ"),et=n.n(Je),tt=n("NWDH");function nt(e){if(e){const t=Object(l.getBlockType)(e.name);return t?Object(l.__experimentalGetBlockLabel)(t,e.attributes):null}return null}function ct(e){let{entityTitle:t,entityLabel:n,isLoaded:c,children:r}=e;const{label:l}=function(){const{getBlock:e}=Object(i.useSelect)(Re.store),t=Object(i.useSelect)(e=>e(Re.store).__experimentalGetActiveBlockIdByBlockNames(["core/template-part"]),[]);return t?{label:nt(e(t)),isActive:!0}:{}}(),o=Object(a.useRef)();return c?t?Object(a.createElement)("div",{className:et()("edit-site-document-actions",{"has-secondary-label":!!l})},Object(a.createElement)("div",{ref:o,className:"edit-site-document-actions__title-wrapper"},Object(a.createElement)(p.__experimentalText,{size:"body",className:"edit-site-document-actions__title-prefix"},Object(a.createElement)(p.VisuallyHidden,{as:"span"},Object(O.sprintf)(Object(O.__)("Editing %s:"),n))),Object(a.createElement)(p.__experimentalText,{size:"body",className:"edit-site-document-actions__title",as:"h1"},t),Object(a.createElement)(p.__experimentalText,{size:"body",className:"edit-site-document-actions__secondary-item"},null!=l?l:""),r&&Object(a.createElement)(p.Dropdown,{popoverProps:{anchorRef:o.current},position:"bottom center",renderToggle:e=>{let{isOpen:t,onToggle:c}=e;return Object(a.createElement)(p.Button,{className:"edit-site-document-actions__get-info",icon:tt.a,"aria-expanded":t,"aria-haspopup":"true",onClick:c,label:Object(O.sprintf)(Object(O.__)("Show %s details"),n)})},contentClassName:"edit-site-document-actions__info-dropdown",renderContent:r}))):Object(a.createElement)("div",{className:"edit-site-document-actions"},Object(O.__)("Template not found")):Object(a.createElement)("div",{className:"edit-site-document-actions"},Object(O.__)("Loading…"))}function rt(e){var t;let{onClose:n,templatePart:c,closeTemplateDetailsDropdown:r}=e;const{pushTemplatePart:l,revertTemplate:o}=Object(i.useDispatch)(Pe);return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(p.MenuGroup,null,Object(a.createElement)(p.MenuItem,{onClick:function(){l(c.id),n(),r()}},Object(O.sprintf)(Object(O.__)("Edit %s"),null===(t=c.title)||void 0===t?void 0:t.rendered))),G(c)&&Object(a.createElement)(p.MenuGroup,null,Object(a.createElement)(p.MenuItem,{info:Object(O.__)("Restore template to theme default"),onClick:function(){o(c),n(),r()}},Object(O.__)("Clear customizations"))))}function at(e){let{templatePart:t,clientId:n,closeTemplateDetailsDropdown:c}=e;const{selectBlock:r,toggleBlockHighlight:l}=Object(i.useDispatch)(Re.store),o=()=>l(n,!0),s=()=>l(n,!1);return Object(a.createElement)("div",{role:"menuitem",className:"edit-site-template-details__template-areas-item"},Object(a.createElement)(p.MenuItem,{role:"button",icon:Object(u.getTemplatePartIcon)(t.area),iconPosition:"left",onClick:()=>{r(n)},onMouseOver:o,onMouseLeave:s,onFocus:o,onBlur:s},I[t.area]),Object(a.createElement)(p.DropdownMenu,{icon:Ge.a,label:Object(O.__)("More options"),className:"edit-site-template-details__template-areas-item-more"},e=>{let{onClose:n}=e;return Object(a.createElement)(rt,{onClose:n,templatePart:t,closeTemplateDetailsDropdown:c})}))}function lt(e){let{closeTemplateDetailsDropdown:t}=e;const n=Object(i.useSelect)(e=>e(Pe).getCurrentTemplateTemplateParts(),[]);return n.length?Object(a.createElement)(p.MenuGroup,{label:Object(O.__)("Areas"),className:"edit-site-template-details__group edit-site-template-details__template-areas"},n.map(e=>{let{templatePart:n,block:c}=e;return Object(a.createElement)(at,{key:n.slug,clientId:c.clientId,templatePart:n,closeTemplateDetailsDropdown:t})})):null}function ot(e){let{template:t,onClose:n}=e;const{title:c,description:r}=Object(i.useSelect)(e=>e(u.store).__experimentalGetTemplateInfo(t),[]),{revertTemplate:l}=Object(i.useDispatch)(Pe),o=Object(a.useMemo)(()=>"wp_template"===(null==t?void 0:t.type)?{title:Object(O.__)("templates"),menu:"templates"}:R.find(e=>{let{area:n}=e;return n===(null==t?void 0:t.area)}),[t]);if(!t)return null;return Object(a.createElement)("div",{className:"edit-site-template-details"},Object(a.createElement)("div",{className:"edit-site-template-details__group"},Object(a.createElement)(p.__experimentalHeading,{level:4,weight:600,className:"edit-site-template-details__title"},c),r&&Object(a.createElement)(p.__experimentalText,{size:"body",className:"edit-site-template-details__description",as:"p"},r)),Object(a.createElement)(lt,{closeTemplateDetailsDropdown:n}),G(t)&&Object(a.createElement)(p.MenuGroup,{className:"edit-site-template-details__group edit-site-template-details__revert"},Object(a.createElement)(p.MenuItem,{className:"edit-site-template-details__revert-button",info:Object(O.__)("Restore template to theme default"),onClick:()=>{l(t),n()}},Object(O.__)("Clear customizations"))),Object(a.createElement)(p.Button,{className:"edit-site-template-details__show-all-button",href:Object(D.addQueryArgs)(window.location.href,{postId:void 0,postType:t.type})},Object(O.sprintf)(Object(O.__)("Browse all %s"),o.title)))}const it=e=>{e.preventDefault()};function st(e){let{openEntitiesSavedStates:t,isEntitiesSavedStatesOpen:n}=e;const c=Object(a.useRef)(),{deviceType:r,entityTitle:l,template:o,templateType:m,isInserterOpen:d,isListViewOpen:b,listViewShortcut:_,isLoaded:j}=Object(i.useSelect)(e=>{const{__experimentalGetPreviewDeviceType:t,getEditedPostType:n,getEditedPostId:c,isInserterOpened:r,isListViewOpened:a}=e(Pe),{getEditedEntityRecord:l}=e(s.store),{__experimentalGetTemplateInfo:o}=e(u.store),{getShortcutRepresentation:i}=e(Le.store),m=n(),d=c(),b=l("postType",m,d),p=!!d;return{deviceType:t(),entityTitle:o(b).title,isLoaded:p,template:b,templateType:m,isInserterOpen:r(),isListViewOpen:a(),listViewShortcut:i("core/edit-site/toggle-list-view")}},[]),{__experimentalSetPreviewDeviceType:g,setIsInserterOpened:E,setIsListViewOpened:f}=Object(i.useDispatch)(Pe),h=Object(Be.useViewportMatch)("medium"),v=Object(a.useCallback)(()=>{d?c.current.focus():E(!0)},[d,E]),y=Object(a.useCallback)(()=>f(!b),[f,b]),w="wp_template_part"===m;return Object(a.createElement)("div",{className:"edit-site-header"},Object(a.createElement)("div",{className:"edit-site-header_start"},Object(a.createElement)("div",{className:"edit-site-header__toolbar"},Object(a.createElement)(p.Button,{ref:c,variant:"primary",isPressed:d,className:"edit-site-header-toolbar__inserter-toggle",onMouseDown:it,onClick:v,icon:De.a,label:Object(O._x)("Toggle block inserter","Generic label for block inserter button")}),h&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Re.ToolSelector,null),Object(a.createElement)(Xe,null),Object(a.createElement)(Ze,null),Object(a.createElement)(p.Button,{className:"edit-site-header-toolbar__list-view-toggle",icon:Fe.a,isPressed:b,label:Object(O.__)("List View"),onClick:y,shortcut:_})))),Object(a.createElement)("div",{className:"edit-site-header_center"},Object(a.createElement)(ct,{entityTitle:l,entityLabel:"wp_template_part"===m?"template part":"template",isLoaded:j},e=>{let{onClose:t}=e;return Object(a.createElement)(ot,{template:o,onClose:t})})),Object(a.createElement)("div",{className:"edit-site-header_end"},Object(a.createElement)("div",{className:"edit-site-header__actions"},!w&&Object(a.createElement)(Re.__experimentalPreviewOptions,{deviceType:r,setDeviceType:g}),Object(a.createElement)($e,{openEntitiesSavedStates:t,isEntitiesSavedStatesOpen:n}),Object(a.createElement)(S.h.Slot,{scope:"core/edit-site"}),Object(a.createElement)(qe,null))))}var ut=n("Cg8A");function mt(e){let{className:t,identifier:n,title:c,icon:r,children:l,closeLabel:o,header:i,headerClassName:s}=e;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(S.b,{className:t,scope:"core/edit-site",identifier:n,title:c,icon:r,closeLabel:o,header:i,headerClassName:s},l),Object(a.createElement)(S.c,{scope:"core/edit-site",identifier:n,icon:r},c))}var dt=Object(a.createElement)(E.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(E.Path,{d:"M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"}));const bt=[{path:["color","palette"],valueKey:"color",cssVarInfix:"color",classes:[{classSuffix:"color",propertyName:"color"},{classSuffix:"background-color",propertyName:"background-color"},{classSuffix:"border-color",propertyName:"border-color"}]},{path:["color","gradients"],valueKey:"gradient",cssVarInfix:"gradient",classes:[{classSuffix:"gradient-background",propertyName:"background"}]},{path:["typography","fontSizes"],valueKey:"size",cssVarInfix:"font-size",classes:[{classSuffix:"font-size",propertyName:"font-size"}]},{path:["typography","fontFamilies"],valueKey:"fontFamily",cssVarInfix:"font-family",classes:[{classSuffix:"font-family",propertyName:"font-family"}]}],pt={"color.background":"color","color.text":"color","elements.link.color.text":"color","color.gradient":"gradient","typography.fontSize":"font-size","typography.fontFamily":"font-family"};function Ot(e,t,n,c,r){const a=[Object(h.get)(e,["blocks",t,...n]),Object(h.get)(e,n)];for(const l of a)if(l){const a=["custom","theme","default"];for(const o of a){const a=l[o];if(a){const l=Object(h.find)(a,e=>e[c]===r);if(l){if("slug"===c)return l;return Ot(e,t,n,"slug",l.slug)[c]===l[c]?l:void 0}}}}}function _t(e,t,n,c){if(!c)return c;const r=pt[n],a=Object(h.find)(bt,["cssVarInfix",r]);if(!a)return c;const{valueKey:l,path:o}=a,i=Ot(e,t,o,l,c);return i?`var:preset|${r}|${i.slug}`:c}function jt(e,t,n){if(!n||!Object(h.isString)(n))return n;let c;if(n.startsWith("var:"))c=n.slice("var:".length).split("|");else{if(!n.startsWith("var(--wp--")||!n.endsWith(")"))return n;c=n.slice("var(--wp--".length,-")".length).split("--")}const[r,...a]=c;return"preset"===r?function(e,t,n,c){let[r,a]=c;const l=Object(h.find)(bt,["cssVarInfix",r]);if(!l)return n;const o=Ot(e,t,l.path,"slug",a);if(o){const{valueKey:n}=l;return jt(e,t,o[n])}return n}(e,t,n,a):"custom"===r?function(e,t,n,c){var r;const a=null!==(r=Object(h.get)(e,["blocks",t,"custom",...c]))&&void 0!==r?r:Object(h.get)(e,["custom",...c]);return a?jt(e,t,a):n}(e,t,n,a):n}const gt=Object(a.createContext)({user:{},base:{},merged:{},setUserConfig:()=>{}}),Et={isGlobalStylesUserThemeJSON:!0,version:1};function ft(e,t){var n;let c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"all";const{merged:r,base:o,user:i,setUserConfig:s}=Object(a.useContext)(gt),u=t?`settings.blocks.${t}.${e}`:"settings."+e,m=t=>{s(n=>{const c=Object(h.cloneDeep)(n),r=l.__EXPERIMENTAL_PATHS_WITH_MERGE[e]?u+".custom":u;return Object(h.set)(c,r,t),c})},d=t=>{const n=t?`settings.blocks.${t}.${e}`:"settings."+e,a=t=>{const c=Object(h.get)(t,n);var r,a;return l.__EXPERIMENTAL_PATHS_WITH_MERGE[e]?null!==(r=null!==(a=null==c?void 0:c.custom)&&void 0!==a?a:null==c?void 0:c.theme)&&void 0!==r?r:null==c?void 0:c.default:c};let s;switch(c){case"all":s=a(r);break;case"user":s=a(i);break;case"base":s=a(o);break;default:throw"Unsupported source"}return s},b=null!==(n=d(t))&&void 0!==n?n:d();return[b,m]}function ht(e,t){var n;let c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"all";const{merged:r,base:l,user:o,setUserConfig:i}=Object(a.useContext)(gt),s=t?`styles.blocks.${t}.${e}`:"styles."+e,u=n=>{i(c=>{const a=Object(h.cloneDeep)(c);return Object(h.set)(a,s,_t(r.settings,t,e,n)),a})};let m;switch(c){case"all":m=jt(r.settings,t,null!==(n=Object(h.get)(o,s))&&void 0!==n?n:Object(h.get)(l,s));break;case"user":m=jt(r.settings,t,Object(h.get)(o,s));break;case"base":m=jt(l.settings,t,Object(h.get)(l,s));break;default:throw"Unsupported source"}return[m,u]}const vt=["background","backgroundColor","color","linkColor","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textDecoration","textTransform","padding"];function yt(e){if(!e)return vt;const t=Object(l.getBlockType)(e);if(!t)return[];const n=[];return Object.keys(l.__EXPERIMENTAL_STYLE_PROPERTY).forEach(e=>{if(l.__EXPERIMENTAL_STYLE_PROPERTY[e].support)return l.__EXPERIMENTAL_STYLE_PROPERTY[e].requiresOptOut&&Object(h.has)(t.supports,l.__EXPERIMENTAL_STYLE_PROPERTY[e].support[0])&&!1!==Object(h.get)(t.supports,l.__EXPERIMENTAL_STYLE_PROPERTY[e].support)||Object(h.get)(t.supports,l.__EXPERIMENTAL_STYLE_PROPERTY[e].support,!1)?n.push(e):void 0}),n}function wt(e){const[t]=ft("color.palette.custom",e),[n]=ft("color.palette.theme",e),[c]=ft("color.palette.default",e),[r]=ft("color.defaultPalette");return Object(a.useMemo)(()=>{const e=[];return n&&n.length&&e.push({name:Object(O._x)("Theme","Indicates this palette comes from the theme."),colors:n}),r&&c&&c.length&&e.push({name:Object(O._x)("Default","Indicates this palette comes from WordPress."),colors:c}),t&&t.length&&e.push({name:Object(O._x)("Custom","Indicates this palette is created by the user."),colors:t}),e},[t,n,c])}var St=()=>{const[e="serif"]=ht("typography.fontFamily"),[t="black"]=ht("color.text"),[n="blue"]=ht("elements.link.color.text"),[c="white"]=ht("color.background"),[r]=ht("color.gradient");return Object(a.createElement)(p.Card,{className:"edit-site-global-styles-preview",style:{background:null!=r?r:c}},Object(a.createElement)(p.__experimentalHStack,{spacing:5},Object(a.createElement)("div",{style:{fontFamily:e,fontSize:"80px",color:t}},"Aa"),Object(a.createElement)(p.__experimentalVStack,{spacing:2},Object(a.createElement)(p.ColorIndicator,{colorValue:t}),Object(a.createElement)(p.ColorIndicator,{colorValue:n}))))},xt=n("wx14"),Tt=n("iClF");var kt=function(e){let{path:t,icon:n,children:c,isBack:r=!1,...l}=e;const o=Object(p.__experimentalUseNavigator)();return Object(a.createElement)(p.__experimentalItem,Object(xt.a)({onClick:()=>o.push(t,{isBack:r})},l),n&&Object(a.createElement)(p.__experimentalHStack,{justify:"flex-start"},Object(a.createElement)(p.FlexItem,null,Object(a.createElement)(Tt.a,{icon:n,size:24})),Object(a.createElement)(p.FlexItem,null,c)),!n&&c)};var It=Object(a.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(E.Path,{d:"M6.9 7L3 17.8h1.7l1-2.8h4.1l1 2.8h1.7L8.6 7H6.9zm-.7 6.6l1.5-4.3 1.5 4.3h-3zM21.6 17c-.1.1-.2.2-.3.2-.1.1-.2.1-.4.1s-.3-.1-.4-.2c-.1-.1-.1-.3-.1-.6V12c0-.5 0-1-.1-1.4-.1-.4-.3-.7-.5-1-.2-.2-.5-.4-.9-.5-.4 0-.8-.1-1.3-.1s-1 .1-1.4.2c-.4.1-.7.3-1 .4-.2.2-.4.3-.6.5-.1.2-.2.4-.2.7 0 .3.1.5.2.8.2.2.4.3.8.3.3 0 .6-.1.8-.3.2-.2.3-.4.3-.7 0-.3-.1-.5-.2-.7-.2-.2-.4-.3-.6-.4.2-.2.4-.3.7-.4.3-.1.6-.1.8-.1.3 0 .6 0 .8.1.2.1.4.3.5.5.1.2.2.5.2.9v1.1c0 .3-.1.5-.3.6-.2.2-.5.3-.9.4-.3.1-.7.3-1.1.4-.4.1-.8.3-1.1.5-.3.2-.6.4-.8.7-.2.3-.3.7-.3 1.2 0 .6.2 1.1.5 1.4.3.4.9.5 1.6.5.5 0 1-.1 1.4-.3.4-.2.8-.6 1.1-1.1 0 .4.1.7.3 1 .2.3.6.4 1.2.4.4 0 .7-.1.9-.2.2-.1.5-.3.7-.4h-.3zm-3-.9c-.2.4-.5.7-.8.8-.3.2-.6.2-.8.2-.4 0-.6-.1-.9-.3-.2-.2-.3-.6-.3-1.1 0-.5.1-.9.3-1.2s.5-.5.8-.7c.3-.2.7-.3 1-.5.3-.1.6-.3.7-.6v3.4z"}));var Ct=Object(a.createElement)(E.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(E.Path,{d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"})),Nt=n("Civd");const Pt=[];function At(e){return[Mt(e),Rt(e),Lt(e),Bt(e)].some(Boolean)}function Mt(e){const t=yt(e);return ft("border.color",e)[0]&&t.includes("borderColor")}function Rt(e){const t=yt(e);return ft("border.radius",e)[0]&&t.includes("borderRadius")}function Lt(e){const t=yt(e);return ft("border.style",e)[0]&&t.includes("borderStyle")}function Bt(e){const t=yt(e);return ft("border.width",e)[0]&&t.includes("borderWidth")}function Dt(e){let{name:t}=e;const n=Object(p.__experimentalUseCustomUnits)({availableUnits:ft("spacing.units")[0]||["px","em","rem"]}),c=Bt(t),[r,l]=ht("border.width",t),o=Lt(t),[i,s]=ht("border.style",t),[u=Pt]=ft("color.palette"),m=!ft("color.custom")[0],d=!ft("color.customGradient")[0],b=Mt(t),[_,j]=ht("border.color",t),g=Rt(t),[E,f]=ht("border.radius",t);return Object(a.createElement)(p.PanelBody,{title:Object(O.__)("Border"),initialOpen:!0},(c||o)&&Object(a.createElement)("div",{className:"edit-site-global-styles-sidebar__border-controls-row"},c&&Object(a.createElement)(p.__experimentalUnitControl,{value:r,label:Object(O.__)("Width"),min:0,onChange:e=>{l(e||void 0)},units:n}),o&&Object(a.createElement)(Re.__experimentalBorderStyleControl,{value:i,onChange:s})),b&&Object(a.createElement)(Re.__experimentalColorGradientControl,{label:Object(O.__)("Color"),colorValue:_,colors:u,gradients:void 0,disableCustomColors:m,disableCustomGradients:d,onColorChange:j}),g&&Object(a.createElement)(Re.__experimentalBorderRadiusControl,{values:E,onChange:f}))}function Ft(e){const t=yt(e);return t.includes("color")||t.includes("backgroundColor")||t.includes("background")||t.includes("linkColor")}const Gt=["horizontal","vertical"];function Vt(e){const t=zt(e),n=Ut(e),c=Ht(e);return t||n||c}function zt(e){const t=yt(e),[n]=ft("spacing.padding",e);return n&&t.includes("padding")}function Ut(e){const t=yt(e),[n]=ft("spacing.margin",e);return n&&t.includes("margin")}function Ht(e){const t=yt(e),[n]=ft("spacing.blockGap",e);return n&&t.includes("--wp--style--block-gap")}function Wt(e,t){if(!t)return e;const n={};return t.forEach(t=>{"vertical"===t&&(n.top=e.top,n.bottom=e.bottom),"horizontal"===t&&(n.left=e.left,n.right=e.right),n[t]=e[t]}),n}function qt(e){return e&&"string"==typeof e?{top:e,right:e,bottom:e,left:e}:e}function $t(e){let{name:t}=e;const n=zt(t),c=Ut(t),r=Ht(t),l=Object(p.__experimentalUseCustomUnits)({availableUnits:ft("spacing.units",t)[0]||["%","px","em","rem","vw"]}),[o,i]=ht("spacing.padding",t),s=qt(o),u=Object(Re.__experimentalUseCustomSides)(t,"padding"),m=u&&u.some(e=>Gt.includes(e)),d=e=>{const t=Wt(e,u);i(t)},b=()=>d({}),[_,j]=ht("spacing.margin",t),g=qt(_),E=Object(Re.__experimentalUseCustomSides)(t,"margin"),f=E&&E.some(e=>Gt.includes(e)),h=e=>{const t=Wt(e,E);j(t)},v=()=>h({}),[y,w]=ht("spacing.blockGap",t),S=()=>w(void 0);return Object(a.createElement)(p.__experimentalToolsPanel,{label:Object(O.__)("Dimensions"),resetAll:()=>{b(),v(),S()}},n&&Object(a.createElement)(p.__experimentalToolsPanelItem,{hasValue:()=>!!s&&Object.keys(s).length,label:Object(O.__)("Padding"),onDeselect:b,isShownByDefault:!0},Object(a.createElement)(p.__experimentalBoxControl,{values:s,onChange:d,label:Object(O.__)("Padding"),sides:u,units:l,allowReset:!1,splitOnAxis:m})),c&&Object(a.createElement)(p.__experimentalToolsPanelItem,{hasValue:()=>!!g&&Object.keys(g).length,label:Object(O.__)("Margin"),onDeselect:v,isShownByDefault:!0},Object(a.createElement)(p.__experimentalBoxControl,{values:g,onChange:h,label:Object(O.__)("Margin"),sides:E,units:l,allowReset:!1,splitOnAxis:f})),r&&Object(a.createElement)(p.__experimentalToolsPanelItem,{hasValue:()=>!!y,label:Object(O.__)("Block spacing"),onDeselect:S,isShownByDefault:!0},Object(a.createElement)(p.__experimentalUnitControl,{label:Object(O.__)("Block spacing"),__unstableInputWidth:"80px",min:0,onChange:w,units:l,value:y})))}function Kt(e){const t=Qt(e),n=Yt(e),c=Xt(e),r=yt(e);return t||n||c||r.includes("fontSize")}function Qt(e){const t=yt(e);return ft("typography.lineHeight",e)[0]&&t.includes("lineHeight")}function Yt(e){const t=yt(e),n=ft("typography.fontStyle",e)[0]&&t.includes("fontStyle"),c=ft("typography.fontWeight",e)[0]&&t.includes("fontWeight");return n||c}function Xt(e){const t=yt(e);return ft("typography.letterSpacing",e)[0]&&t.includes("letterSpacing")}function Zt(e){let{name:t,element:n}=e;const c=yt(t),r="text"!==n&&n?`elements.${n}.`:"",[l]=ft("typography.fontSizes",t),o=!ft("typography.customFontSize",t)[0],[i]=ft("typography.fontFamilies",t),s=ft("typography.fontStyle",t)[0]&&c.includes("fontStyle"),u=ft("typography.fontWeight",t)[0]&&c.includes("fontWeight"),m=Qt(t),d=Yt(t),b=Xt(t),[O,_]=ht(r+"typography.fontFamily",t),[j,g]=ht(r+"typography.fontSize",t),[E,f]=ht(r+"typography.fontStyle",t),[h,v]=ht(r+"typography.fontWeight",t),[y,w]=ht(r+"typography.lineHeight",t),[S,x]=ht(r+"typography.letterSpacing",t),[T]=ht(r+"color.background",t),[k]=ht(r+"color.gradient",t),[I]=ht(r+"color.text",t),C="link"===n?{textDecoration:"underline"}:{};return Object(a.createElement)(p.PanelBody,{className:"edit-site-typography-panel",initialOpen:!0},Object(a.createElement)("div",{className:"edit-site-typography-panel__preview",style:{fontFamily:null!=O?O:"serif",background:null!=k?k:T,color:I,fontSize:j,fontStyle:E,fontWeight:h,letterSpacing:S,...C}},"Aa"),c.includes("fontFamily")&&Object(a.createElement)(Re.__experimentalFontFamilyControl,{fontFamilies:i,value:O,onChange:_}),c.includes("fontSize")&&Object(a.createElement)(p.FontSizePicker,{value:j,onChange:g,fontSizes:l,disableCustomFontSizes:o}),m&&Object(a.createElement)(Re.LineHeightControl,{value:y,onChange:w}),d&&Object(a.createElement)(Re.__experimentalFontAppearanceControl,{value:{fontStyle:E,fontWeight:h},onChange:e=>{let{fontStyle:t,fontWeight:n}=e;f(t),v(n)},hasFontStyles:s,hasFontWeights:u}),b&&Object(a.createElement)(Re.__experimentalLetterSpacingControl,{value:S,onChange:x}))}var Jt=function(e){let{name:t,parentMenu:n=""}=e;const c=Kt(t),r=Ft(t),l=At(t),o=Vt(t),i=l||o;return Object(a.createElement)(p.__experimentalItemGroup,null,c&&Object(a.createElement)(kt,{icon:It,path:n+"/typography"},Object(O.__)("Typography")),r&&Object(a.createElement)(kt,{icon:Ct,path:n+"/colors"},Object(O.__)("Colors")),i&&Object(a.createElement)(kt,{icon:Nt.a,path:n+"/layout"},Object(O.__)("Layout")))};var en=function(){return Object(a.createElement)(p.Card,{size:"small"},Object(a.createElement)(p.CardBody,null,Object(a.createElement)(St,null)),Object(a.createElement)(p.CardBody,null,Object(a.createElement)(Jt,null)),Object(a.createElement)(p.CardDivider,null),Object(a.createElement)(p.CardBody,null,Object(a.createElement)(p.__experimentalItemGroup,null,Object(a.createElement)(p.__experimentalItem,null,Object(a.createElement)("p",null,Object(O.__)("Customize the appearance of specific blocks for the whole site."))),Object(a.createElement)(kt,{path:"/blocks"},Object(O.__)("Blocks")))))},tn=n("1iEr"),nn=n("2gm7");var cn=function(e){let{back:t,title:n,description:c}=e;return Object(a.createElement)(p.__experimentalVStack,{spacing:2},Object(a.createElement)(p.__experimentalHStack,{spacing:2},Object(a.createElement)(p.__experimentalView,null,Object(a.createElement)(kt,{path:t,icon:Object(a.createElement)(Tt.a,{icon:Object(O.isRTL)()?tn.a:nn.a,variant:"muted"}),size:"small",isBack:!0,"aria-label":Object(O.__)("Navigate to the previous view")})),Object(a.createElement)(p.__experimentalSpacer,null,Object(a.createElement)(p.__experimentalHeading,{level:5},n))),c&&Object(a.createElement)("p",{className:"edit-site-global-styles-header__description"},c))};function rn(e){let{block:t}=e;const n=Kt(t.name),c=Ft(t.name),r=At(t.name),l=Vt(t.name);return n||c||(r||l)?Object(a.createElement)(kt,{path:"/blocks/"+t.name},Object(a.createElement)(p.__experimentalHStack,{justify:"flex-start"},Object(a.createElement)(p.FlexItem,null,Object(a.createElement)(Re.BlockIcon,{icon:t.icon})),Object(a.createElement)(p.FlexItem,null,t.title))):null}var an=function(){return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(cn,{back:"/",title:Object(O.__)("Blocks"),description:Object(O.__)("Customize the appearance of specific blocks and for the whole site.")}),Object(l.getBlockTypes)().map(e=>Object(a.createElement)(rn,{block:e,key:"menu-itemblock-"+e.name})))};var ln=function(e){let{name:t}=e;const n=Object(l.getBlockType)(t);return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(cn,{back:"/blocks",title:n.title}),Object(a.createElement)(Jt,{parentMenu:"/blocks/"+t,name:t}))};var on=function(e){let{children:t}=e;return Object(a.createElement)(p.__experimentalHeading,{className:"edit-site-global-styles-subtitle",level:2},t)};function sn(e){let{name:t,parentMenu:n,element:c,label:r}=e;const l=!t,o="text"!==c&&c?`elements.${c}.`:"",i="link"===c?{textDecoration:"underline"}:{},[s]=ht(o+"typography.fontFamily",t),[u]=ht(o+"typography.fontStyle",t),[m]=ht(o+"typography.fontWeight",t),[d]=ht(o+"typography.letterSpacing",t),[b]=ht(o+"color.background",t),[_]=ht(o+"color.gradient",t),[j]=ht(o+"color.text",t);return l?Object(a.createElement)(kt,{path:n+"/typography/"+c},Object(a.createElement)(p.__experimentalHStack,{justify:"flex-start"},Object(a.createElement)(p.FlexItem,{className:"edit-site-global-styles-screen-typography__indicator",style:{fontFamily:null!=s?s:"serif",background:null!=_?_:b,color:j,fontStyle:u,fontWeight:m,letterSpacing:d,...i}},Object(O.__)("Aa")),Object(a.createElement)(p.FlexItem,null,r))):null}var un=function(e){let{name:t}=e;const n=void 0===t?"":"/blocks/"+t;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(cn,{back:n||"/",title:Object(O.__)("Typography"),description:Object(O.__)("Manage the typography settings for different elements.")}),!t&&Object(a.createElement)("div",{className:"edit-site-global-styles-screen-typography"},Object(a.createElement)(p.__experimentalVStack,{spacing:3},Object(a.createElement)(on,null,Object(O.__)("Elements")),Object(a.createElement)(p.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},Object(a.createElement)(sn,{name:t,parentMenu:n,element:"text",label:Object(O.__)("Text")}),Object(a.createElement)(sn,{name:t,parentMenu:n,element:"link",label:Object(O.__)("Links")})))),!!t&&Object(a.createElement)(Zt,{name:t,element:"text"}))};const mn={text:{description:Object(O.__)("Manage the fonts used on the site."),title:Object(O.__)("Text")},link:{description:Object(O.__)("Manage the fonts and typography used on the links."),title:Object(O.__)("Links")}};var dn=function(e){let{name:t,element:n}=e;const c=void 0===t?"/typography":"/blocks/"+t+"/typography";return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(cn,{back:c,title:mn[n].title,description:mn[n].description}),Object(a.createElement)(Zt,{name:t,element:n}))};const bn=[];var pn=function(e){let{name:t}=e;const[n]=ft("color.palette.custom"),[c]=ft("color.palette.theme"),[r]=ft("color.palette.default"),[l]=ft("color.defaultPalette",t),o=Object(a.useMemo)(()=>[...n||bn,...c||bn,...r&&l?r:bn],[n,c,r,l]),i=t?"/blocks/"+t+"/colors/palette":"/colors/palette",s=o.length>0?Object(O.sprintf)(Object(O._n)("%d color","%d colors",o.length),o.length):Object(O.__)("Add custom colors");return Object(a.createElement)(p.__experimentalVStack,{spacing:3},Object(a.createElement)(on,null,Object(O.__)("Palette")),Object(a.createElement)(p.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},Object(a.createElement)(kt,{path:i},Object(a.createElement)(p.__experimentalHStack,{isReversed:0===o.length},Object(a.createElement)(p.FlexBlock,null,Object(a.createElement)(p.__experimentalZStack,{isLayered:!1,offset:-8},o.slice(0,5).map(e=>{let{color:t}=e;return Object(a.createElement)(p.ColorIndicator,{key:t,colorValue:t})}))),Object(a.createElement)(p.FlexItem,null,s)))))};function On(e){let{name:t,parentMenu:n}=e;const c=yt(t),r=c.includes("backgroundColor")||c.includes("background"),[l]=ht("color.background",t),[o]=ht("color.gradient",t);return r?Object(a.createElement)(kt,{path:n+"/colors/background"},Object(a.createElement)(p.__experimentalHStack,{justify:"flex-start"},Object(a.createElement)(p.FlexItem,null,Object(a.createElement)(p.ColorIndicator,{colorValue:null!=o?o:l})),Object(a.createElement)(p.FlexItem,null,Object(O.__)("Background")))):null}function _n(e){let{name:t,parentMenu:n}=e;const c=yt(t).includes("color"),[r]=ht("color.text",t);return c?Object(a.createElement)(kt,{path:n+"/colors/text"},Object(a.createElement)(p.__experimentalHStack,{justify:"flex-start"},Object(a.createElement)(p.FlexItem,null,Object(a.createElement)(p.ColorIndicator,{colorValue:r})),Object(a.createElement)(p.FlexItem,null,Object(O.__)("Text")))):null}function jn(e){let{name:t,parentMenu:n}=e;const c=yt(t).includes("linkColor"),[r]=ht("elements.link.color.text",t);return c?Object(a.createElement)(kt,{path:n+"/colors/link"},Object(a.createElement)(p.__experimentalHStack,{justify:"flex-start"},Object(a.createElement)(p.FlexItem,null,Object(a.createElement)(p.ColorIndicator,{colorValue:r})),Object(a.createElement)(p.FlexItem,null,Object(O.__)("Links")))):null}var gn=function(e){let{name:t}=e;const n=void 0===t?"":"/blocks/"+t;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(cn,{back:n||"/",title:Object(O.__)("Colors"),description:Object(O.__)("Manage palettes and the default color of different global elements on the website.")}),Object(a.createElement)("div",{className:"edit-site-global-styles-screen-colors"},Object(a.createElement)(p.__experimentalVStack,{spacing:10},Object(a.createElement)(pn,{name:t}),Object(a.createElement)(p.__experimentalVStack,{spacing:3},Object(a.createElement)(on,null,Object(O.__)("Elements")),Object(a.createElement)(p.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},Object(a.createElement)(On,{name:t,parentMenu:n}),Object(a.createElement)(_n,{name:t,parentMenu:n}),Object(a.createElement)(jn,{name:t,parentMenu:n}))))))};function En(e){let{name:t}=e;const[n,c]=ft("color.palette.theme",t),[r]=ft("color.palette.theme",t,"base"),[l,o]=ft("color.palette.default",t),[i]=ft("color.palette.default",t,"base"),[s,u]=ft("color.palette.custom",t),[m]=ft("color.defaultPalette",t);return Object(a.createElement)(p.__experimentalVStack,{className:"edit-site-global-styles-color-palette-panel",spacing:10},!!n&&!!n.length&&Object(a.createElement)(p.__experimentalPaletteEdit,{canReset:n!==r,canOnlyChangeValues:!0,colors:n,onChange:c,paletteLabel:Object(O.__)("Theme")}),!!l&&!!l.length&&!!m&&Object(a.createElement)(p.__experimentalPaletteEdit,{canReset:l!==i,canOnlyChangeValues:!0,colors:l,onChange:o,paletteLabel:Object(O.__)("Default")}),Object(a.createElement)(p.__experimentalPaletteEdit,{colors:s,onChange:u,paletteLabel:Object(O.__)("Custom"),emptyMessage:Object(O.__)("Custom colors are empty! Add some colors to create your own color palette."),slugPrefix:"custom-"}))}function fn(e){let{name:t}=e;const[n,c]=ft("color.gradients.theme",t),[r]=ft("color.gradients.theme",t,"base"),[l,o]=ft("color.gradients.default",t),[i]=ft("color.gradients.default",t,"base"),[s,u]=ft("color.gradients.custom",t),[m]=ft("color.defaultGradients",t);return Object(a.createElement)(p.__experimentalVStack,{className:"edit-site-global-styles-gradient-palette-panel",spacing:10},!!n&&!!n.length&&Object(a.createElement)(p.__experimentalPaletteEdit,{canReset:n!==r,canOnlyChangeValues:!0,gradients:n,onChange:c,paletteLabel:Object(O.__)("Theme")}),!!l&&!!l.length&&!!m&&Object(a.createElement)(p.__experimentalPaletteEdit,{canReset:l!==i,canOnlyChangeValues:!0,gradients:l,onChange:o,paletteLabel:Object(O.__)("Default")}),Object(a.createElement)(p.__experimentalPaletteEdit,{gradients:s,onChange:u,paletteLabel:Object(O.__)("Custom"),emptyMessage:Object(O.__)("Custom gradients are empty! Add some gradients to create your own palette."),slugPrefix:"custom-"}))}var hn=function(e){let{name:t}=e;const[n,c]=Object(a.useState)("solid"),r=void 0===t?"":"/blocks/"+t;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(cn,{back:r+"/colors",title:Object(O.__)("Palette"),description:Object(O.__)("Palettes are used to provide default color options for blocks and various design tools. Here you can edit the colors with their labels.")}),Object(a.createElement)(p.__experimentalToggleGroupControl,{className:"edit-site-screen-color-palette-toggle",value:n,onChange:c,label:Object(O.__)("Select palette type"),hideLabelFromVision:!0,isBlock:!0},Object(a.createElement)(p.__experimentalToggleGroupControlOption,{value:"solid",label:Object(O.__)("Solid")}),Object(a.createElement)(p.__experimentalToggleGroupControlOption,{value:"gradient",label:Object(O.__)("Gradient")})),"solid"===n&&Object(a.createElement)(En,{name:t}),"gradient"===n&&Object(a.createElement)(fn,{name:t}))};var vn=function(e){let{name:t}=e;const n=void 0===t?"":"/blocks/"+t,c=yt(t),[r]=ft("color.palette",t),[l]=ft("color.gradients",t),[o]=ft("color.custom",t),[i]=ft("color.customGradient",t),s=wt(t),u=function(e){const[t]=ft("color.gradients.custom",e),[n]=ft("color.gradients.theme",e),[c]=ft("color.gradients.default",e),[r]=ft("color.defaultGradients");return Object(a.useMemo)(()=>{const e=[];return n&&n.length&&e.push({name:Object(O._x)("Theme","Indicates this palette comes from the theme."),gradients:n}),r&&c&&c.length&&e.push({name:Object(O._x)("Default","Indicates this palette comes from WordPress."),gradients:c}),t&&t.length&&e.push({name:Object(O._x)("Custom","Indicates this palette is created by the user."),gradients:t}),e},[t,n,c])}(t),[m]=ft("color.background",t),d=c.includes("backgroundColor")&&m&&(r.length>0||o),b=c.includes("background")&&(l.length>0||i),[p,_]=ht("color.background",t),[j]=ht("color.background",t,"user"),[g,E]=ht("color.gradient",t),[f]=ht("color.gradient",t,"user");if(!d&&!b)return null;const h=[];let v={};d&&(v={colorValue:p,onColorChange:_},p&&(v.clearable=p===j));let y={};return b&&(y={gradientValue:g,onGradientChange:E},g&&(y.clearable=g===f)),h.push({...v,...y,label:Object(O.__)("Background color")}),Object(a.createElement)(a.Fragment,null,Object(a.createElement)(cn,{back:n+"/colors",title:Object(O.__)("Background"),description:Object(O.__)("Set a background color or gradient for the whole website.")}),Object(a.createElement)(Re.__experimentalPanelColorGradientSettings,{title:Object(O.__)("Color"),settings:h,colors:s,gradients:u,disableCustomColors:!o,disableCustomGradients:!i,__experimentalHasMultipleOrigins:!0,showTitle:!1,enableAlpha:!0}))};var yn=function(e){let{name:t}=e;const n=void 0===t?"":"/blocks/"+t,c=yt(t),[r]=ft("color.palette",t),[l]=ft("color.custom",t),[o]=ft("color.text",t),i=wt(t),s=c.includes("color")&&o&&(r.length>0||l),[u,m]=ht("color.text",t),[d]=ht("color.text",t,"user");if(!s)return null;const b=[{colorValue:u,onColorChange:m,label:Object(O.__)("Text color"),clearable:u===d}];return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(cn,{back:n+"/colors",title:Object(O.__)("Text"),description:Object(O.__)("Set the default color used for text across the site.")}),Object(a.createElement)(Re.__experimentalPanelColorGradientSettings,{title:Object(O.__)("Color"),settings:b,colors:i,disableCustomColors:!l,__experimentalHasMultipleOrigins:!0,showTitle:!1,enableAlpha:!0}))};var wn=function(e){let{name:t}=e;const n=void 0===t?"":"/blocks/"+t,c=yt(t),[r]=ft("color.palette",t),[l]=ft("color.custom",t),o=wt(t),[i]=ft("color.link",t),s=c.includes("linkColor")&&i&&(r.length>0||l),[u,m]=ht("elements.link.color.text",t),[d]=ht("elements.link.color.text",t,"user");if(!s)return null;const b=[{colorValue:u,onColorChange:m,label:Object(O.__)("Link color"),clearable:u===d}];return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(cn,{back:n+"/colors",title:Object(O.__)("Links"),description:Object(O.__)("Set the default color used for links across the site.")}),Object(a.createElement)(Re.__experimentalPanelColorGradientSettings,{title:Object(O.__)("Color"),settings:b,colors:o,disableCustomColors:!l,__experimentalHasMultipleOrigins:!0,showTitle:!1,enableAlpha:!0}))};var Sn=function(e){let{name:t}=e;const n=void 0===t?"":"/blocks/"+t,c=At(t),r=Vt(t);return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(cn,{back:n||"/",title:Object(O.__)("Layout")}),r&&Object(a.createElement)($t,{name:t}),c&&Object(a.createElement)(Dt,{name:t}))};function xn(e){let{name:t}=e;const n=void 0===t?"":"/blocks/"+t;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(p.__experimentalNavigatorScreen,{path:n+"/typography"},Object(a.createElement)(un,{name:t})),Object(a.createElement)(p.__experimentalNavigatorScreen,{path:n+"/typography/text"},Object(a.createElement)(dn,{name:t,element:"text"})),Object(a.createElement)(p.__experimentalNavigatorScreen,{path:n+"/typography/link"},Object(a.createElement)(dn,{name:t,element:"link"})),Object(a.createElement)(p.__experimentalNavigatorScreen,{path:n+"/colors"},Object(a.createElement)(gn,{name:t})),Object(a.createElement)(p.__experimentalNavigatorScreen,{path:n+"/colors/palette"},Object(a.createElement)(hn,{name:t})),Object(a.createElement)(p.__experimentalNavigatorScreen,{path:n+"/colors/background"},Object(a.createElement)(vn,{name:t})),Object(a.createElement)(p.__experimentalNavigatorScreen,{path:n+"/colors/text"},Object(a.createElement)(yn,{name:t})),Object(a.createElement)(p.__experimentalNavigatorScreen,{path:n+"/colors/link"},Object(a.createElement)(wn,{name:t})),Object(a.createElement)(p.__experimentalNavigatorScreen,{path:n+"/layout"},Object(a.createElement)(Sn,{name:t})))}var Tn=function(){const e=Object(l.getBlockTypes)();return Object(a.createElement)(p.__experimentalNavigatorProvider,{initialPath:"/"},Object(a.createElement)(p.__experimentalNavigatorScreen,{path:"/"},Object(a.createElement)(en,null)),Object(a.createElement)(p.__experimentalNavigatorScreen,{path:"/blocks"},Object(a.createElement)(an,null)),e.map(e=>Object(a.createElement)(p.__experimentalNavigatorScreen,{key:"menu-block-"+e.name,path:"/blocks/"+e.name},Object(a.createElement)(ln,{name:e.name}))),Object(a.createElement)(xn,null),e.map(e=>Object(a.createElement)(xn,{key:"screens-block-"+e.name,name:e.name})))};function kn(e){if(Object(h.startsWith)(e,"var:")){return`var(--wp--${e.slice("var:".length).split("|").join("--")})`}return e}const In=(e,t)=>{var n,c;const r=[];if(null==e||!e.settings)return r;const a=e=>{const t={};return bt.forEach(n=>{let{path:c}=n;const r=Object(h.get)(e,c,!1);!1!==r&&Object(h.set)(t,c,r)}),t},l=a(e.settings),o=null===(n=e.settings)||void 0===n?void 0:n.custom;return Object(h.isEmpty)(l)&&!o||r.push({presets:l,custom:o,selector:"body"}),Object(h.forEach)(null===(c=e.settings)||void 0===c?void 0:c.blocks,(e,n)=>{const c=a(e),l=e.custom;Object(h.isEmpty)(c)&&!l||r.push({presets:c,custom:l,selector:t[n].selector})}),r},Cn=(e,t)=>{const n=In(e,t);let c="";return n.forEach(e=>{let{presets:t,custom:n,selector:r}=e;const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(h.reduce)(bt,(t,n)=>{let{path:c,valueKey:r,cssVarInfix:a}=n;const l=Object(h.get)(e,c,[]);return["default","theme","custom"].forEach(e=>{l[e]&&l[e].forEach(e=>{t.push(`--wp--preset--${a}--${Object(h.kebabCase)(e.slug)}: ${e[r]}`)})}),t},[])}(t),l=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,c=arguments.length>2?arguments[2]:void 0,r=[];return Object.keys(t).forEach(a=>{const l=n+Object(h.kebabCase)(a.replace("/","-")),o=t[a];if(o instanceof Object){const t=l+c;r=[...r,...e(o,t,c)]}else r.push(`${l}: ${o}`)}),r}(n,"--wp--custom--","--");l.length>0&&a.push(...l),a.length>0&&(c+=`${r}{${a.join(";")};}`)}),c},Nn=(e,t)=>{const n=((e,t)=>{var n,c;const r=[];if(null==e||!e.styles)return r;const a=e=>Object(h.pickBy)(e,(e,t)=>["border","color","spacing","typography"].includes(t)),o=a(e.styles);return o&&r.push({styles:o,selector:"body"}),Object(h.forEach)(null===(n=e.styles)||void 0===n?void 0:n.elements,(e,t)=>{e&&l.__EXPERIMENTAL_ELEMENTS[t]&&r.push({styles:e,selector:l.__EXPERIMENTAL_ELEMENTS[t]})}),Object(h.forEach)(null===(c=e.styles)||void 0===c?void 0:c.blocks,(e,n)=>{var c;const o=a(e);o&&null!=t&&null!==(c=t[n])&&void 0!==c&&c.selector&&r.push({styles:o,selector:t[n].selector}),Object(h.forEach)(null==e?void 0:e.elements,(e,c)=>{e&&null!=t&&t[n]&&null!==l.__EXPERIMENTAL_ELEMENTS&&void 0!==l.__EXPERIMENTAL_ELEMENTS&&l.__EXPERIMENTAL_ELEMENTS[c]&&r.push({styles:e,selector:t[n].selector.split(",").map(e=>e+" "+l.__EXPERIMENTAL_ELEMENTS[c]).join(",")})})}),r})(e,t),c=In(e,t);let r=".wp-site-blocks > * { margin-top: 0; margin-bottom: 0; }.wp-site-blocks > * + * { margin-top: var( --wp--style--block-gap ); }";return n.forEach(e=>{let{selector:t,styles:n}=e;const c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(h.reduce)(l.__EXPERIMENTAL_STYLE_PROPERTY,(t,n,c)=>{let{value:r,properties:a}=n;const l=r;if("elements"===Object(h.first)(l))return t;const o=Object(h.get)(e,l);if(a&&!Object(h.isString)(o))Object.entries(a).forEach(e=>{const[n,c]=e;if(!Object(h.get)(o,[c],!1))return;const r=Object(h.kebabCase)(n);t.push(`${r}: ${kn(Object(h.get)(o,[c]))}`)});else if(Object(h.get)(e,l,!1)){const n=c.startsWith("--")?c:Object(h.kebabCase)(c);t.push(`${n}: ${kn(Object(h.get)(e,l))}`)}return t},[])}(n);0!==c.length&&(r+=`${t}{${c.join(";")};}`)}),c.forEach(e=>{let{selector:t,presets:n}=e;"body"===t&&(t="");const c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(h.reduce)(bt,(n,c)=>{let{path:r,cssVarInfix:a,classes:l}=c;if(!l)return n;const o=Object(h.get)(t,r,[]);return["default","theme","custom"].forEach(t=>{o[t]&&o[t].forEach(t=>{let{slug:c}=t;l.forEach(t=>{let{classSuffix:r,propertyName:l}=t;const o=`.has-${Object(h.kebabCase)(c)}-${r}`,i=e.split(",").map(e=>`${e}${o}`).join(","),s=`var(--wp--preset--${a}--${Object(h.kebabCase)(c)})`;n+=`${i}{${l}: ${s} !important;}`})})}),n},"")}(t,n);Object(h.isEmpty)(c)||(r+=c)}),r};function Pn(){const[e,t]=(()=>{const{user:e,setUserConfig:t}=Object(a.useContext)(gt);return[!!e&&!Object(h.isEqual)(e,Et),Object(a.useCallback)(()=>t(()=>Et),[t])]})();return Object(a.createElement)(mt,{className:"edit-site-global-styles-sidebar",identifier:"edit-site/global-styles",title:Object(O.__)("Styles"),icon:dt,closeLabel:Object(O.__)("Close global styles sidebar"),header:Object(a.createElement)(p.Flex,null,Object(a.createElement)(p.FlexBlock,null,Object(a.createElement)("strong",null,Object(O.__)("Styles")),Object(a.createElement)("span",{className:"edit-site-global-styles-sidebar__beta"},Object(O.__)("Beta"))),Object(a.createElement)(p.FlexItem,null,Object(a.createElement)(p.DropdownMenu,{icon:Ge.a,label:Object(O.__)("More Global Styles Actions"),toggleProps:{disabled:!e},controls:[{title:Object(O.__)("Reset to defaults"),onClick:t}]})))},Object(a.createElement)(Tn,null))}const An="edit-site/template",Mn="edit-site/block-inspector";var Rn=e=>{let{sidebarName:t}=e;const{enableComplementaryArea:n}=Object(i.useDispatch)(S.i),[c,r]=t===An?[Object(O.__)("Template (selected)"),"is-active"]:[Object(O.__)("Template"),""],[l,o]=t===Mn?[Object(O.__)("Block (selected)"),"is-active"]:[Object(O.__)("Block"),""];return Object(a.createElement)("ul",null,Object(a.createElement)("li",null,Object(a.createElement)(p.Button,{onClick:()=>n(k,An),className:"edit-site-sidebar__panel-tab "+r,"aria-label":c,"data-label":Object(O.__)("Template")},Object(O.__)("Template"))),Object(a.createElement)("li",null,Object(a.createElement)(p.Button,{onClick:()=>n(k,Mn),className:"edit-site-sidebar__panel-tab "+o,"aria-label":l,"data-label":Object(O.__)("Block")},Object(O.__)("Block"))))};function Ln(e){let{area:t,clientId:n}=e;const{selectBlock:c,toggleBlockHighlight:r}=Object(i.useDispatch)(Re.store),l=()=>r(n,!0),o=()=>r(n,!1);return Object(a.createElement)(p.Button,{className:"edit-site-template-card__template-areas-item",icon:Object(u.getTemplatePartIcon)(t),onMouseOver:l,onMouseLeave:o,onFocus:l,onBlur:o,onClick:()=>{c(n)}},I[t])}function Bn(){const e=Object(i.useSelect)(e=>e(Pe).getCurrentTemplateTemplateParts(),[]);return e.length?Object(a.createElement)("section",{className:"edit-site-template-card__template-areas"},Object(a.createElement)(p.__experimentalHeading,{level:3,className:"edit-site-template-card__template-areas-title"},Object(O.__)("Areas")),Object(a.createElement)("ul",{className:"edit-site-template-card__template-areas-list"},e.map(e=>{let{templatePart:t,block:n}=e;return Object(a.createElement)("li",{key:t.slug},Object(a.createElement)(Ln,{area:t.area,clientId:n.clientId}))}))):null}function Dn(){const{title:e,description:t,icon:n}=Object(i.useSelect)(e=>{const{getEditedPostType:t,getEditedPostId:n}=e(Pe),{getEntityRecord:c}=e(s.store),{__experimentalGetTemplateInfo:r}=e(u.store),a=c("postType",t(),n());return a?r(a):{}},[]);return e||t?Object(a.createElement)("div",{className:"edit-site-template-card"},Object(a.createElement)(p.Icon,{className:"edit-site-template-card__icon",icon:n}),Object(a.createElement)("div",{className:"edit-site-template-card__content"},Object(a.createElement)("h2",{className:"edit-site-template-card__title"},e),Object(a.createElement)("div",{className:"edit-site-template-card__description"},t),Object(a.createElement)(Bn,null))):null}const{Slot:Fn,Fill:Gn}=Object(p.createSlotFill)("EditSiteSidebarInspector"),Vn=Gn;function zn(){const{sidebar:e,isEditorSidebarOpened:t,hasBlockSelection:n}=Object(i.useSelect)(e=>{const t=e(S.i).getActiveComplementaryArea(k);return{sidebar:t,isEditorSidebarOpened:[Mn,An].includes(t),hasBlockSelection:!!e(Re.store).getBlockSelectionStart()}},[]),{enableComplementaryArea:c}=Object(i.useDispatch)(S.i);Object(a.useEffect)(()=>{t&&c(k,n?Mn:An)},[n,t]);let r=e;return t||(r=n?Mn:An),Object(a.createElement)(a.Fragment,null,Object(a.createElement)(mt,{identifier:r,title:Object(O.__)("Settings"),icon:ut.a,closeLabel:Object(O.__)("Close settings sidebar"),header:Object(a.createElement)(Rn,{sidebarName:r}),headerClassName:"edit-site-sidebar__panel-tabs"},r===An&&Object(a.createElement)(p.PanelBody,null,Object(a.createElement)(Dn,null)),r===Mn&&Object(a.createElement)(Fn,{bubblesVirtually:!0})),Object(a.createElement)(Pn,null))}var Un=n("rmEH");var Hn=Object(a.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(E.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})),Wn=n("OE6V");const qn="__experimentalMainDashboardButton",{Fill:$n,Slot:Kn}=Object(p.createSlotFill)(qn),Qn=$n;Qn.Slot=e=>{let{children:t}=e;const n=Object(p.__experimentalUseSlot)(qn);return Boolean(n.fills&&n.fills.length)?Object(a.createElement)(Kn,{bubblesVirtually:!0}):t};var Yn=Qn;const Xn="site-editor";var Zn=e=>{let{activeItem:t=Xn}=e;const{isNavigationOpen:n,siteTitle:c}=Object(i.useSelect)(e=>{const{getEntityRecord:t}=e(s.store);return{siteTitle:(t("root","__unstableBase",void 0)||{}).name,isNavigationOpen:e(Pe).isNavigationOpened()}},[]),{setIsNavigationPanelOpened:r}=Object(i.useDispatch)(Pe),l=Object(a.useRef)();Object(a.useEffect)(()=>{n&&l.current.focus()},[t,n]);return Object(a.createElement)("div",{className:et()("edit-site-navigation-panel",{"is-open":n}),ref:l,tabIndex:"-1",onKeyDown:e=>{e.keyCode!==Ye.ESCAPE||e.defaultPrevented||(e.preventDefault(),r(!1))}},Object(a.createElement)("div",{className:"edit-site-navigation-panel__inner"},Object(a.createElement)("div",{className:"edit-site-navigation-panel__site-title-container"},Object(a.createElement)("div",{className:"edit-site-navigation-panel__site-title"},Object(Un.decodeEntities)(c))),Object(a.createElement)("div",{className:"edit-site-navigation-panel__scroll-container"},Object(a.createElement)(p.__experimentalNavigation,{activeItem:t},Object(a.createElement)(Yn.Slot,null,Object(a.createElement)(p.__experimentalNavigationBackButton,{backButtonLabel:Object(O.__)("Dashboard"),className:"edit-site-navigation-panel__back-to-dashboard",href:"index.php"})),Object(a.createElement)(p.__experimentalNavigationMenu,null,Object(a.createElement)(p.__experimentalNavigationGroup,{title:Object(O.__)("Editor")},Object(a.createElement)(p.__experimentalNavigationItem,{icon:Hn,title:Object(O.__)("Site"),item:Xn,href:Object(D.addQueryArgs)(window.location.href,{postId:void 0,postType:void 0})}),Object(a.createElement)(p.__experimentalNavigationItem,{icon:Nt.a,title:Object(O.__)("Templates"),item:"wp_template",href:Object(D.addQueryArgs)(window.location.href,{postId:void 0,postType:"wp_template"})}),Object(a.createElement)(p.__experimentalNavigationItem,{icon:Wn.a,title:Object(O.__)("Template Parts"),item:"wp_template_part",href:Object(D.addQueryArgs)(window.location.href,{postId:void 0,postType:"wp_template_part"})})))))))},Jn=n("wduq");var ec=function(e){let{icon:t}=e;const{isNavigationOpen:n,isRequestingSiteIcon:c,siteIconUrl:r}=Object(i.useSelect)(e=>{const{getEntityRecord:t,isResolving:n}=e(s.store),c=t("root","__unstableBase",void 0)||{};return{isNavigationOpen:e(Pe).isNavigationOpened(),isRequestingSiteIcon:n("core","getEntityRecord",["root","__unstableBase",void 0]),siteIconUrl:c.site_icon_url}},[]),{setIsNavigationPanelOpened:l}=Object(i.useDispatch)(Pe),o=Object(Be.useReducedMotion)();let u=Object(a.createElement)(p.Icon,{size:"36px",icon:Jn.a});const m={expand:{scale:1.7,borderRadius:0,transition:{type:"tween",duration:"0.2"}}};return r?u=Object(a.createElement)(p.__unstableMotion.img,{variants:!o&&m,alt:Object(O.__)("Site Icon"),className:"edit-site-navigation-toggle__site-icon",src:r}):c?u=null:t&&(u=Object(a.createElement)(p.Icon,{size:"36px",icon:t})),Object(a.createElement)(p.__unstableMotion.div,{className:"edit-site-navigation-toggle"+(n?" is-open":""),whileHover:"expand"},Object(a.createElement)(p.Button,{className:"edit-site-navigation-toggle__button has-icon",label:Object(O.__)("Toggle navigation"),onClick:()=>l(!n),showTooltip:!0},u))};const{Fill:tc,Slot:nc}=Object(p.createSlotFill)("EditSiteNavigationPanelPreview");function cc(e){let{isDefaultOpen:t=!1,activeTemplateType:n}=e;const c=Object(Be.useViewportMatch)("medium"),{setIsNavigationPanelOpened:r}=Object(i.useDispatch)(Pe);return Object(a.useEffect)(()=>{t&&c&&r(!0),c||r(!1)},[t,c,r]),Object(a.createElement)(a.Fragment,null,Object(a.createElement)(ec,null),Object(a.createElement)(Zn,{activeItem:n}),Object(a.createElement)(nc,null))}var rc=n("diJD");function ac(e){let{clientId:t}=e;const{getBlocks:n}=Object(i.useSelect)(Re.store),{replaceBlocks:c}=Object(i.useDispatch)(Re.store);return Object(a.createElement)(Re.BlockSettingsMenuControls,null,e=>{let{onClose:r}=e;return Object(a.createElement)(p.MenuItem,{onClick:()=>{c(t,n(t)),r()}},Object(O.__)("Detach blocks from template part"))})}function lc(e){let{closeModal:t,onCreate:n}=e;const[c,r]=Object(a.useState)(""),[l,o]=Object(a.useState)("uncategorized"),[s,m]=Object(a.useState)(!1),d=Object(Be.useInstanceId)(lc),b=Object(i.useSelect)(e=>e(u.store).__experimentalGetDefaultTemplatePartAreas(),[]);return Object(a.createElement)(p.Modal,{title:Object(O.__)("Create a template part"),closeLabel:Object(O.__)("Close"),onRequestClose:t,overlayClassName:"edit-site-create-template-part-modal"},Object(a.createElement)("form",{onSubmit:async e=>{e.preventDefault(),c&&(m(!0),await n({title:c,area:l}),m(!1),t())}},Object(a.createElement)(p.TextControl,{label:Object(O.__)("Name"),value:c,onChange:r,required:!0}),Object(a.createElement)(p.BaseControl,{label:Object(O.__)("Area"),id:"edit-site-create-template-part-modal__area-selection-"+d,className:"edit-site-create-template-part-modal__area-base-control"},Object(a.createElement)(p.__experimentalRadioGroup,{label:Object(O.__)("Area"),className:"edit-site-create-template-part-modal__area-radio-group",id:"edit-site-create-template-part-modal__area-selection-"+d,onChange:o,checked:l},b.map(e=>{let{icon:t,label:n,area:c,description:r}=e;return Object(a.createElement)(p.__experimentalRadio,{key:n,value:c,className:"edit-site-create-template-part-modal__area-radio"},Object(a.createElement)(p.Flex,{align:"start",justify:"start"},Object(a.createElement)(p.FlexItem,null,Object(a.createElement)(p.Icon,{icon:t})),Object(a.createElement)(p.FlexBlock,{className:"edit-site-create-template-part-modal__option-label"},n,Object(a.createElement)("div",null,r)),Object(a.createElement)(p.FlexItem,{className:"edit-site-create-template-part-modal__checkbox"},l===c&&Object(a.createElement)(p.Icon,{icon:Ve.a}))))}))),Object(a.createElement)(p.Flex,{className:"edit-site-create-template-part-modal__modal-actions",justify:"flex-end"},Object(a.createElement)(p.FlexItem,null,Object(a.createElement)(p.Button,{variant:"secondary",onClick:()=>{t()}},Object(O.__)("Cancel"))),Object(a.createElement)(p.FlexItem,null,Object(a.createElement)(p.Button,{variant:"primary",type:"submit",disabled:!c,isBusy:s},Object(O.__)("Create"))))))}function oc(e){let{clientIds:t,blocks:n}=e;const[c,r]=Object(a.useState)(!1),{replaceBlocks:o}=Object(i.useDispatch)(Re.store),{saveEntityRecord:u}=Object(i.useDispatch)(s.store),{createSuccessNotice:m}=Object(i.useDispatch)(F.store);return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Re.BlockSettingsMenuControls,null,e=>{let{onClose:t}=e;return Object(a.createElement)(p.MenuItem,{onClick:()=>{r(!0),t()}},Object(O.__)("Make template part"))}),c&&Object(a.createElement)(lc,{closeModal:()=>{r(!1)},onCreate:async e=>{let{title:c,area:r}=e;const a=await u("postType","wp_template_part",{slug:Object(h.kebabCase)(c),title:c,content:Object(l.serialize)(n),area:r});o(t,Object(l.createBlock)("core/template-part",{slug:a.slug,theme:a.theme})),m(Object(O.__)("Template part created."),{type:"snackbar"})}}))}function ic(){var e;const{clientIds:t,blocks:n}=Object(i.useSelect)(e=>{const{getSelectedBlockClientIds:t,getBlocksByClientId:n}=e(Re.store),c=t();return{clientIds:c,blocks:n(c)}},[]);return 1===n.length&&"core/template-part"===(null===(e=n[0])||void 0===e?void 0:e.name)?Object(a.createElement)(ac,{clientId:t[0]}):Object(a.createElement)(oc,{clientIds:t,blocks:n})}var sc=n("B9Az");function uc(e){let{type:t,id:n,activePage:c,onActivePageChange:r}=e;const l=Object(i.useSelect)(e=>t&&n&&"URL"!==t&&e(s.store).getEntityRecord("postType",t,n),[t,n]),o=Object(a.useMemo)(()=>{if(null==l||!l.link)return null;const e=Object(D.getPathAndQueryString)(l.link);return e===(null==c?void 0:c.path)?null:()=>r({type:t,slug:l.slug,path:e,context:{postType:l.type,postId:l.id}})},[l,null==c?void 0:c.path,r]);return o&&Object(a.createElement)(p.Button,{icon:sc.a,label:Object(O.__)("Edit Page Template"),onClick:o})}function mc(e){let{onClick:t=(()=>{})}=e;const{shortcut:n,isBlockInspectorOpen:c}=Object(i.useSelect)(e=>({shortcut:e(Le.store).getShortcutRepresentation("core/edit-site/toggle-block-settings-sidebar"),isBlockInspectorOpen:e(S.i).getActiveComplementaryArea(Pe.name)===Mn}),[]),{enableComplementaryArea:r,disableComplementaryArea:l}=Object(i.useDispatch)(S.i),o=c?Object(O.__)("Hide more settings"):Object(O.__)("Show more settings");return Object(a.createElement)(p.MenuItem,{onClick:()=>{c?(l(k),Object(ze.speak)(Object(O.__)("Block settings closed"))):(r(k,Mn),Object(ze.speak)(Object(O.__)("Additional settings are now available in the Editor block settings sidebar"))),t()},shortcut:n},o)}function dc(){return Object(a.createElement)(Re.BlockSettingsMenuControls,null,e=>{let{selectedClientIds:t,onClose:n}=e;return Object(a.createElement)(bc,{selectedClientId:t[0],onClose:n})})}function bc(e){let{selectedClientId:t,onClose:n}=e;const c=Object(i.useSelect)(e=>{const n=e(Re.store).getBlock(t);if(n&&Object(l.isTemplatePart)(n)){const{theme:t,slug:c}=n.attributes;return e(s.store).getEntityRecord("postType","wp_template_part",`${t}//${c}`)}},[t]),{pushTemplatePart:r}=Object(i.useDispatch)(Pe);return c?Object(a.createElement)(p.MenuItem,{onClick:()=>{r(c.id),n()}},Object(O.sprintf)(Object(O.__)("Edit %s"),c.slug)):null}var pc=n("cjQ8");var Oc=function(){const{isTemplatePart:e,previousTemplateId:t}=Object(i.useSelect)(e=>{const{getEditedPostType:t,getPreviousEditedPostId:n}=e(Pe);return{isTemplatePart:"wp_template_part"===t(),previousTemplateId:n()}},[]),{goBack:n}=Object(i.useDispatch)(Pe);return e&&t?Object(a.createElement)(p.Button,{className:"edit-site-visual-editor__back-button",icon:pc.a,onClick:()=>{n()}},Object(O.__)("Back")):null};function _c(e){let{direction:t,resizeWidthBy:n}=e;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("button",{className:"resizable-editor__drag-handle is-"+t,"aria-label":Object(O.__)("Drag to resize"),"aria-describedby":"resizable-editor__resize-help-"+t,onKeyDown:function(e){const{keyCode:c}=e;"left"===t&&c===Ye.LEFT||"right"===t&&c===Ye.RIGHT?n(20):("left"===t&&c===Ye.RIGHT||"right"===t&&c===Ye.LEFT)&&n(-20)}}),Object(a.createElement)(p.VisuallyHidden,{id:"resizable-editor__resize-help-"+t},Object(O.__)("Use left and right arrow keys to resize the canvas.")))}const jc="100%",gc="100%",Ec={position:void 0,userSelect:void 0,cursor:void 0,width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0};var fc=function(e){let{enableResizing:t,settings:n,...c}=e;const r=Object(i.useSelect)(e=>e(Pe).__experimentalGetPreviewDeviceType(),[]),l=Object(Re.__experimentalUseResizeCanvas)(r),[o,s]=Object(a.useState)(jc),[u,m]=Object(a.useState)(gc),d=Object(a.useRef)(),b=Object(Re.__unstableUseMouseMoveTypingReset)(),O=Object(Be.useMergeRefs)([d,b]);Object(a.useEffect)((function(){const e=d.current;if(!e||!t)return;const n=new e.contentWindow.ResizeObserver(()=>{m(e.contentDocument.querySelector(".edit-site-block-editor__block-list").offsetHeight)});return n.observe(e.contentDocument.documentElement),()=>{n.disconnect()}}),[t]);const _=Object(a.useCallback)(e=>{d.current&&s(d.current.offsetWidth+e)},[]);return Object(a.createElement)(p.ResizableBox,{size:{width:o,height:u},onResizeStop:(e,t,n)=>{s(n.style.width)},minWidth:300,maxWidth:"100%",maxHeight:"100%",enable:{right:t,left:t},showHandle:t,resizeRatio:2,handleComponent:{left:Object(a.createElement)(_c,{direction:"left",resizeWidthBy:_}),right:Object(a.createElement)(_c,{direction:"right",resizeWidthBy:_})},handleClasses:void 0,handleStyles:{left:Ec,right:Ec}},Object(a.createElement)(Re.__unstableIframe,Object(xt.a)({style:t?void 0:l,head:Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Re.__unstableEditorStyles,{styles:n.styles}),Object(a.createElement)("style",null,".edit-site-block-editor__block-list { display: flow-root; }")),ref:O,name:"editor-canvas",className:"edit-site-visual-editor__editor-canvas"},c)))};const hc={type:"default",alignments:[]};function vc(e){let{setIsInserterOpen:t}=e;const{settings:n,templateType:c,templateId:r,page:l}=Object(i.useSelect)(e=>{const{getSettings:n,getEditedPostType:c,getEditedPostId:r,getPage:a}=e(Pe);return{settings:n(t),templateType:c(),templateId:r(),page:a()}},[t]),[o,u,m]=Object(s.useEntityBlockEditor)("postType",c),{setPage:d}=Object(i.useDispatch)(Pe),b=Object(a.useRef)(),p=Object(Be.useMergeRefs)([b,Object(Re.__unstableUseTypingObserver)()]),O=Object(Be.useViewportMatch)("small","<"),{clearSelectedBlock:_}=Object(i.useDispatch)(Re.store),j="wp_template_part"===c;return Object(a.createElement)(Re.BlockEditorProvider,{settings:n,value:o,onInput:u,onChange:m,useSubRegistry:!1},Object(a.createElement)(dc,null),Object(a.createElement)(ic,null),Object(a.createElement)(Re.__experimentalLinkControl.ViewerFill,null,Object(a.useCallback)(e=>Object(a.createElement)(uc,Object(xt.a)({},e,{activePage:l,onActivePageChange:d})),[l])),Object(a.createElement)(Vn,null,Object(a.createElement)(Re.BlockInspector,null)),Object(a.createElement)(Re.BlockTools,{className:et()("edit-site-visual-editor",{"is-focus-mode":j}),__unstableContentRef:b,onClick:e=>{e.target===e.currentTarget&&_()}},Object(a.createElement)(Oc,null),Object(a.createElement)(fc,{key:r,enableResizing:j&&!O,settings:n,contentRef:p},Object(a.createElement)(Re.BlockList,{className:"edit-site-block-editor__block-list wp-site-blocks",__experimentalLayout:hc})),Object(a.createElement)(Re.__unstableBlockSettingsMenuFirstItem,null,e=>{let{onClose:t}=e;return Object(a.createElement)(mc,{onClick:t})})),Object(a.createElement)(rc.ReusableBlocksMenuItems,null))}function yc(e){let{openEntitiesSavedStates:t}=e;const{__experimentalGetDirtyEntityRecords:n,isSavingEntityRecord:c}=Object(i.useSelect)(s.store),r=Object(i.useSelect)(e=>e(Pe).isListViewOpened(),[]),a=Object(i.useSelect)(e=>e(S.i).getActiveComplementaryArea(Pe.name)===Mn,[]),{redo:l,undo:o}=Object(i.useDispatch)(s.store),{setIsListViewOpened:u}=Object(i.useDispatch)(Pe),{enableComplementaryArea:m,disableComplementaryArea:d}=Object(i.useDispatch)(S.i);return Object(Le.useShortcut)("core/edit-site/save",e=>{e.preventDefault();const r=n(),a=!!r.length;!r.some(e=>c(e.kind,e.name,e.key))&&a&&t()}),Object(Le.useShortcut)("core/edit-site/undo",e=>{o(),e.preventDefault()}),Object(Le.useShortcut)("core/edit-site/redo",e=>{l(),e.preventDefault()}),Object(Le.useShortcut)("core/edit-site/toggle-list-view",()=>{u(!r)}),Object(Le.useShortcut)("core/edit-site/toggle-block-settings-sidebar",e=>{e.preventDefault(),a?d(k):m(k,Mn)}),null}yc.Register=function(){const{registerShortcut:e}=Object(i.useDispatch)(Le.store);return Object(a.useEffect)(()=>{e({name:"core/edit-site/save",category:"global",description:Object(O.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),e({name:"core/edit-site/undo",category:"global",description:Object(O.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/edit-site/redo",category:"global",description:Object(O.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"}}),e({name:"core/edit-site/toggle-list-view",category:"global",description:Object(O.__)("Open the block list view."),keyCombination:{modifier:"access",character:"o"}}),e({name:"core/edit-site/toggle-block-settings-sidebar",category:"global",description:Object(O.__)("Show or hide the block settings sidebar."),keyCombination:{modifier:"primaryShift",character:","}}),e({name:"core/edit-site/next-region",category:"global",description:Object(O.__)("Navigate to the next part of the editor."),keyCombination:{modifier:"ctrl",character:"`"},aliases:[{modifier:"access",character:"n"}]}),e({name:"core/edit-site/previous-region",category:"global",description:Object(O.__)("Navigate to the previous part of the editor."),keyCombination:{modifier:"ctrlShift",character:"`"},aliases:[{modifier:"access",character:"p"}]})},[e]),null};var wc=yc;function Sc(){const{setTemplate:e,setTemplatePart:t,showHomepage:n,setPage:c}=Object(i.useDispatch)(Pe);Object(a.useEffect)(()=>{const r=window.location.href,a=Object(D.getQueryArg)(r,"postId");if(!a)return void n();const l=Object(D.getQueryArg)(r,"postType");"page"===l||"post"===l?c({context:{postType:l,postId:a}}):"wp_template"===l?e(a):"wp_template_part"===l?t(a):n()},[]);const r=Object(i.useSelect)(e=>{var t,n;const{getEditedPostType:c,getEditedPostId:r,getPage:a}=e(Pe),l=a();let o=r(),i=c();return null!=l&&null!==(t=l.context)&&void 0!==t&&t.postId&&null!=l&&null!==(n=l.context)&&void 0!==n&&n.postType&&(o=l.context.postId,i=l.context.postType),o&&i?{postId:o,postType:i}:null},[]);return Object(a.useEffect)(()=>{const e=r?Object(D.addQueryArgs)(window.location.href,r):Object(D.removeQueryArgs)(window.location.href,"postType","postId");window.history.replaceState({},"",e)},[r]),null}var xc=n("w95h");function Tc(){const{setIsInserterOpened:e}=Object(i.useDispatch)(Pe),t=Object(i.useSelect)(e=>e(Pe).__experimentalGetInsertionPoint(),[]),n=Object(Be.useViewportMatch)("medium","<"),[c,r]=Object(Be.__experimentalUseDialog)({onClose:()=>e(!1)});return Object(a.createElement)("div",Object(xt.a)({ref:c},r,{className:"edit-site-editor__inserter-panel"}),Object(a.createElement)("div",{className:"edit-site-editor__inserter-panel-header"},Object(a.createElement)(p.Button,{icon:xc.a,onClick:()=>e(!1)})),Object(a.createElement)("div",{className:"edit-site-editor__inserter-panel-content"},Object(a.createElement)(Re.__experimentalLibrary,{showInserterHelpPanel:!0,shouldFocusBlock:n,rootClientId:t.rootClientId,__experimentalInsertionIndex:t.insertionIndex,__experimentalFilterValue:t.filterValue})))}var kc=n("bWcr");function Ic(){const{setIsListViewOpened:e}=Object(i.useDispatch)(Pe),{clearSelectedBlock:t,selectBlock:n}=Object(i.useDispatch)(Re.store);const c=Object(Be.useFocusOnMount)("firstElement"),r=Object(Be.useFocusReturn)();const l="edit-site-editor__list-view-panel-label-"+Object(Be.useInstanceId)(Ic);return Object(a.createElement)("div",{"aria-labelledby":l,className:"edit-site-editor__list-view-panel",onKeyDown:function(t){t.keyCode!==Ye.ESCAPE||t.defaultPrevented||e(!1)}},Object(a.createElement)("div",{className:"edit-site-editor__list-view-panel-header"},Object(a.createElement)("strong",{id:l},Object(O.__)("List view")),Object(a.createElement)(p.Button,{icon:kc.a,label:Object(O.__)("Close list view sidebar"),onClick:()=>e(!1)})),Object(a.createElement)("div",{className:"edit-site-editor__list-view-panel-content",ref:Object(Be.useMergeRefs)([r,c])},Object(a.createElement)(Re.__experimentalListView,{onSelect:async function(e){await t(),n(e,-1)},showNestedBlocks:!0,__experimentalFeatures:!0,__experimentalPersistentListViewFeatures:!0})))}function Cc(e){let{text:t,children:n}=e;const c=Object(Be.useCopyToClipboard)(t);return Object(a.createElement)(p.Button,{variant:"secondary",ref:c},n)}class Nc extends a.Component{constructor(){super(...arguments),this.reboot=this.reboot.bind(this),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}reboot(){this.props.onError()}render(){const{error:e}=this.state;return e?Object(a.createElement)(Re.Warning,{className:"editor-error-boundary",actions:[Object(a.createElement)(p.Button,{key:"recovery",onClick:this.reboot,variant:"secondary"},Object(O.__)("Attempt Recovery")),Object(a.createElement)(Cc,{key:"copy-error",text:e.stack},Object(O.__)("Copy Error"))]},Object(O.__)("The editor has encountered an unexpected error.")):this.props.children}}function Pc(e){let{nonAnimatedSrc:t,animatedSrc:n}=e;return Object(a.createElement)("picture",{className:"edit-site-welcome-guide__image"},Object(a.createElement)("source",{srcSet:t,media:"(prefers-reduced-motion: reduce)"}),Object(a.createElement)("img",{src:n,width:"312",height:"240",alt:""}))}function Ac(){const{toggleFeature:e}=Object(i.useDispatch)(Pe);return Object(a.createElement)(p.Guide,{className:"edit-site-welcome-guide",contentLabel:Object(O.__)("Welcome to the site editor"),finishButtonText:Object(O.__)("Get Started"),onFinish:()=>e("welcomeGuide"),pages:[{image:Object(a.createElement)(Pc,{nonAnimatedSrc:"https://s.w.org/images/block-editor/edit-your-site.svg?1",animatedSrc:"https://s.w.org/images/block-editor/edit-your-site.gif?1"}),content:Object(a.createElement)(a.Fragment,null,Object(a.createElement)("h1",{className:"edit-site-welcome-guide__heading"},Object(O.__)("Edit your site")),Object(a.createElement)("p",{className:"edit-site-welcome-guide__text"},Object(O.__)("Design everything on your site — from the header right down to the footer — using blocks.")),Object(a.createElement)("p",{className:"edit-site-welcome-guide__text"},Object(a.createInterpolateElement)(Object(O.__)("Click <StylesIconImage /> to start designing your blocks, and choose your typography, layout, and colors."),{StylesIconImage:Object(a.createElement)("img",{alt:Object(O.__)("styles"),src:"data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z' fill='%231E1E1E'/%3E%3C/svg%3E%0A"})})))}]})}function Mc(){const{toggleFeature:e}=Object(i.useDispatch)(Pe);return Object(a.createElement)(p.Guide,{className:"edit-site-welcome-guide",contentLabel:Object(O.__)("Welcome to styles"),finishButtonText:Object(O.__)("Get Started"),onFinish:()=>e("welcomeGuideStyles"),pages:[{image:Object(a.createElement)(Pc,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-to-styles.svg?1",animatedSrc:"https://s.w.org/images/block-editor/welcome-to-styles.gif?1"}),content:Object(a.createElement)(a.Fragment,null,Object(a.createElement)("h1",{className:"edit-site-welcome-guide__heading"},Object(O.__)("Welcome to Styles")),Object(a.createElement)("p",{className:"edit-site-welcome-guide__text"},Object(O.__)("Tweak your site, or give it a whole new look! Get creative — how about a new color palette for your buttons, or choosing a new font? Take a look at what you can do here.")))},{image:Object(a.createElement)(Pc,{nonAnimatedSrc:"https://s.w.org/images/block-editor/set-the-design.svg?1",animatedSrc:"https://s.w.org/images/block-editor/set-the-design.gif?1"}),content:Object(a.createElement)(a.Fragment,null,Object(a.createElement)("h1",{className:"edit-site-welcome-guide__heading"},Object(O.__)("Set the design")),Object(a.createElement)("p",{className:"edit-site-welcome-guide__text"},Object(O.__)("You can customize your site as much as you like with different colors, typography, and layouts. Or if you prefer, just leave it up to your theme to handle! ")))},{image:Object(a.createElement)(Pc,{nonAnimatedSrc:"https://s.w.org/images/block-editor/personalize-blocks.svg?1",animatedSrc:"https://s.w.org/images/block-editor/personalize-blocks.gif?1"}),content:Object(a.createElement)(a.Fragment,null,Object(a.createElement)("h1",{className:"edit-site-welcome-guide__heading"},Object(O.__)("Personalize blocks")),Object(a.createElement)("p",{className:"edit-site-welcome-guide__text"},Object(O.__)("You can adjust your blocks to ensure a cohesive experience across your site — add your unique colors to a branded Button block, or adjust the Heading block to your preferred size.")))},{image:Object(a.createElement)(Pc,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.gif"}),content:Object(a.createElement)(a.Fragment,null,Object(a.createElement)("h1",{className:"edit-site-welcome-guide__heading"},Object(O.__)("Learn more")),Object(a.createElement)("p",{className:"edit-site-welcome-guide__text"},Object(O.__)("New to block themes and styling your site? "),Object(a.createElement)(p.ExternalLink,{href:Object(O.__)("https://wordpress.org/support/article/wordpress-editor/")},Object(O.__)("Here’s a detailed guide to learn how to make the most of it."))))}]})}function Rc(){const{isActive:e,isStylesOpen:t}=Object(i.useSelect)(e=>{const t="edit-site/global-styles"===e(S.i).getActiveComplementaryArea(Pe.name),n=t?"welcomeGuideStyles":"welcomeGuide";return{isActive:e(Pe).isFeatureActive(n),isStylesOpen:t}},[]);return e?t?Object(a.createElement)(Mc,null):Object(a.createElement)(Ac,null):null}function Lc(){const[e,t]=function(){const[e,t]=Object(a.useState)([]),[n,c]=Object(a.useState)({}),{merged:r}=Object(a.useContext)(gt);return Object(a.useEffect)(()=>{if(null==r||!r.styles||null==r||!r.settings)return;const e=(e=>{const t={};return e.forEach(e=>{var n,c;const r=e.name,a=null!==(n=null==e||null===(c=e.supports)||void 0===c?void 0:c.__experimentalSelector)&&void 0!==n?n:".wp-block-"+r.replace("core/","").replace("/","-");t[r]={name:r,selector:a}}),t})(Object(l.getBlockTypes)()),n=Cn(r,e),a=Nn(r,e);t([{css:n,isGlobalStyles:!0,__experimentalNoWrapper:!0},{css:a,isGlobalStyles:!0}]),c(r.settings)},[r]),[e,n]}(),{getSettings:n}=Object(i.useSelect)(Pe),{updateSettings:c}=Object(i.useDispatch)(Pe);Object(a.useEffect)(()=>{var r;if(!e||!t)return;const a=n(),l=null==a||null===(r=a.styles)||void 0===r?void 0:r.filter(e=>!e.isGlobalStyles);c({...a,styles:[...l,...e],__experimentalFeatures:t})},[e,t])}function Bc(){return Lc(),null}function Dc(e,t){if(Array.isArray(t))return t}const Fc=e=>{if(!Object(h.isObject)(e)||Array.isArray(e))return e;const t=Object(h.pickBy)(Object(h.mapValues)(e,Fc),h.identity);return Object(h.isEmpty)(t)?void 0:t};function Gc(){const[e,t,n]=function(){const{globalStylesId:e,settings:t,styles:n}=Object(i.useSelect)(e=>{const t=e(s.store).__experimentalGetCurrentGlobalStylesId(),n=t?e(s.store).getEditedEntityRecord("root","globalStyles",t):void 0;return{globalStylesId:t,settings:null==n?void 0:n.settings,styles:null==n?void 0:n.styles}},[]),{getEditedEntityRecord:c}=Object(i.useSelect)(s.store),{editEntityRecord:r}=Object(i.useDispatch)(s.store),l=Object(a.useMemo)(()=>({settings:null!=t?t:{},styles:null!=n?n:{}}),[t,n]),o=Object(a.useCallback)(t=>{var n,a;const l=c("root","globalStyles",e),o=t({styles:null!==(n=null==l?void 0:l.styles)&&void 0!==n?n:{},settings:null!==(a=null==l?void 0:l.settings)&&void 0!==a?a:{}});r("root","globalStyles",e,{styles:Fc(o.styles)||{},settings:Fc(o.settings)||{}})},[e]);return[!!t||!!n,l,o]}(),[c,r]=function(){const e=Object(i.useSelect)(e=>e(s.store).__experimentalGetCurrentThemeBaseGlobalStyles(),[]);return[!!e,e]}(),l=Object(a.useMemo)(()=>{return r&&t?(e=r,n=t,Object(h.mergeWith)({},e,n,Dc)):{};var e,n},[t,r]);return Object(a.useMemo)(()=>({isReady:e&&c,user:t,base:r,merged:l,setUserConfig:n}),[l,t,r,n,e,c])}function Vc(e){let{children:t}=e;const n=Gc();return n.isReady?Object(a.createElement)(gt.Provider,{value:n},t):null}const zc={secondarySidebar:Object(O.__)("Block Library"),drawer:Object(O.__)("Navigation Sidebar")};var Uc=function(e){let{initialSettings:t,onError:n}=e;const{isInserterOpen:c,isListViewOpen:r,sidebarIsOpened:l,settings:o,entityId:m,templateType:d,page:b,template:j,templateResolved:g,isNavigationOpen:E,previousShortcut:f,nextShortcut:h}=Object(i.useSelect)(e=>{const{isInserterOpened:t,isListViewOpened:n,getSettings:c,getEditedPostType:r,getEditedPostId:a,getPage:l,isNavigationOpened:o}=e(Pe),{hasFinishedResolution:i,getEntityRecord:u}=e(s.store),m=r(),d=a();return{isInserterOpen:t(),isListViewOpen:n(),sidebarIsOpened:!!e(S.i).getActiveComplementaryArea(Pe.name),settings:c(),templateType:m,page:l(),template:d?u("postType",m,d):null,templateResolved:!!d&&i("getEntityRecord",["postType",m,d]),entityId:d,isNavigationOpen:o(),previousShortcut:e(Le.store).getAllShortcutKeyCombinations("core/edit-site/previous-region"),nextShortcut:e(Le.store).getAllShortcutKeyCombinations("core/edit-site/next-region")}},[]),{updateEditorSettings:v}=Object(i.useDispatch)(u.store),{setPage:y,setIsInserterOpened:w,updateSettings:x}=Object(i.useDispatch)(Pe);Object(a.useEffect)(()=>{x(t)},[]);const{defaultTemplateTypes:T,defaultTemplatePartAreas:k}=o;Object(a.useEffect)(()=>{v({defaultTemplateTypes:T,defaultTemplatePartAreas:k})},[T,k]);const[I,C]=Object(a.useState)(!1),N=Object(a.useCallback)(()=>C(!0),[]),P=Object(a.useCallback)(()=>{C(!1)},[]),A=Object(a.useMemo)(()=>({...null==b?void 0:b.context,queryContext:[(null==b?void 0:b.context.queryContext)||{page:1},e=>y({...b,context:{...null==b?void 0:b.context,queryContext:{...null==b?void 0:b.context.queryContext,...e}}})]}),[null==b?void 0:b.context]);Object(a.useEffect)(()=>{E?document.body.classList.add("is-navigation-sidebar-open"):document.body.classList.remove("is-navigation-sidebar-open")},[E]);const M=(null==o?void 0:o.siteUrl)&&void 0!==d&&void 0!==m;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Sc,null),M&&Object(a.createElement)(Le.ShortcutProvider,null,Object(a.createElement)(p.SlotFillProvider,null,Object(a.createElement)(s.EntityProvider,{kind:"root",type:"site"},Object(a.createElement)(s.EntityProvider,{kind:"postType",type:d,id:m},Object(a.createElement)(Vc,null,Object(a.createElement)(Re.BlockContextProvider,{value:A},Object(a.createElement)(Bc,null),Object(a.createElement)(Nc,{onError:n},Object(a.createElement)(S.d,{isActive:!0}),Object(a.createElement)(u.UnsavedChangesWarning,null),Object(a.createElement)(wc.Register,null),Object(a.createElement)(zn,null),Object(a.createElement)(S.e,{labels:zc,secondarySidebar:c?Object(a.createElement)(Tc,null):r?Object(a.createElement)(Ic,null):null,sidebar:l&&Object(a.createElement)(S.b.Slot,{scope:"core/edit-site"}),drawer:Object(a.createElement)(cc,null),header:Object(a.createElement)(st,{openEntitiesSavedStates:N}),notices:Object(a.createElement)(u.EditorSnackbars,null),content:Object(a.createElement)(a.Fragment,null,Object(a.createElement)(u.EditorNotices,null),j&&Object(a.createElement)(vc,{setIsInserterOpen:w}),g&&!j&&(null==o?void 0:o.siteUrl)&&m&&Object(a.createElement)(p.Notice,{status:"warning",isDismissible:!1},Object(O.__)("You attempted to edit an item that doesn't exist. Perhaps it was deleted?")),Object(a.createElement)(wc,{openEntitiesSavedStates:N})),actions:Object(a.createElement)(a.Fragment,null,I?Object(a.createElement)(u.EntitiesSavedStates,{close:P}):Object(a.createElement)("div",{className:"edit-site-editor__toggle-save-panel"},Object(a.createElement)(p.Button,{variant:"secondary",className:"edit-site-editor__toggle-save-panel-button",onClick:N,"aria-expanded":!1},Object(O.__)("Open save panel")))),footer:Object(a.createElement)(Re.BlockBreadcrumb,null),shortcuts:{previous:f,next:h}}),Object(a.createElement)(Rc,null),Object(a.createElement)(p.Popover.Slot,null),Object(a.createElement)(_.PluginArea,null)))))))))};const Hc=["front-page","single-post","page","archive","search","404","index"];function Wc(e){let{postType:t}=e;const{templates:n,defaultTemplateTypes:c}=Object(i.useSelect)(e=>({templates:e(s.store).getEntityRecords("postType","wp_template",{per_page:-1}),defaultTemplateTypes:e(u.store).__experimentalGetDefaultTemplateTypes()}),[]),{createErrorNotice:r}=Object(i.useDispatch)(F.store);const l=Object(h.map)(n,"slug"),o=Object(h.filter)(c,e=>Object(h.includes)(Hc,e.slug)&&!Object(h.includes)(l,e.slug));return o.length?Object(a.createElement)(p.DropdownMenu,{className:"edit-site-new-template-dropdown",icon:null,text:t.labels.add_new,label:t.labels.add_new_item,popoverProps:{noArrow:!1},toggleProps:{variant:"primary"}},()=>Object(a.createElement)(p.NavigableMenu,{className:"edit-site-new-template-dropdown__popover"},Object(a.createElement)(p.MenuGroup,{label:t.labels.add_new_item},Object(h.map)(o,e=>{let{title:t,description:n,slug:l}=e;return Object(a.createElement)(p.MenuItem,{info:n,key:l,onClick:()=>{!async function(e){let{slug:t}=e;try{const{title:e,description:n}=Object(h.find)(c,{slug:t}),r=await g()({path:"/wp/v2/templates",method:"POST",data:{excerpt:n,slug:t.toString(),status:"publish",title:e}});window.location.href=Object(D.addQueryArgs)(window.location.href,{postId:r.id,postType:"wp_template"}),await new Promise(()=>{})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:Object(O.__)("An error occurred while creating the template.");r(t,{type:"snackbar"})}}({slug:l})}},t)})))):null}function qc(e){let{postType:t}=e;const[n,c]=Object(a.useState)(!1),{createErrorNotice:r}=Object(i.useDispatch)(F.store);return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(p.Button,{variant:"primary",onClick:()=>{c(!0)}},t.labels.add_new),n&&Object(a.createElement)(lc,{closeModal:()=>c(!1),onCreate:async function(e){let{title:t,area:n}=e;if(t)try{const e=await g()({path:"/wp/v2/template-parts",method:"POST",data:{slug:Object(h.kebabCase)(t),title:t,content:"",area:n}});window.location.href=Object(D.addQueryArgs)(window.location.href,{postId:e.id,postType:"wp_template_part"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:Object(O.__)("An error occurred while creating the template part.");r(t,{type:"snackbar"})}else r(Object(O.__)("Title is not defined."),{type:"snackbar"})}}))}function $c(e){let{templateType:t="wp_template"}=e;const n=Object(i.useSelect)(e=>e(s.store).getPostType(t),[t]);return n?"wp_template"===t?Object(a.createElement)(Wc,{postType:n}):"wp_template_part"===t?Object(a.createElement)(qc,{postType:n}):null:null}function Kc(e){var t;let{templateType:n}=e;const c=Object(i.useSelect)(e=>e(s.store).getPostType(n),[n]);return c?Object(a.createElement)("header",{className:"edit-site-list-header"},Object(a.createElement)(p.__experimentalHeading,{level:1,className:"edit-site-list-header__title"},null===(t=c.labels)||void 0===t?void 0:t.name),Object(a.createElement)("div",{className:"edit-site-list-header__right"},Object(a.createElement)($c,{templateType:n}))):null}function Qc(e){let{template:t,onClose:n}=e;const[c,r]=Object(a.useState)(()=>t.title.rendered),[l,o]=Object(a.useState)(!1),{getLastEntitySaveError:u}=Object(i.useSelect)(s.store),{editEntityRecord:m,saveEditedEntityRecord:d}=Object(i.useDispatch)(s.store),{createSuccessNotice:b,createErrorNotice:_}=Object(i.useDispatch)(F.store);if(!t.is_custom)return null;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(p.MenuItem,{onClick:()=>{o(!0),r(t.title.rendered)}},Object(O.__)("Rename")),l&&Object(a.createElement)(p.Modal,{title:Object(O.__)("Rename template"),closeLabel:Object(O.__)("Close"),onRequestClose:()=>{o(!1)},overlayClassName:"edit-site-list__rename-modal"},Object(a.createElement)("form",{onSubmit:async function(e){e.preventDefault();try{await m("postType",t.type,t.id,{title:c}),r(""),o(!1),n(),await d("postType",t.type,t.id);const e=u("postType",t.type,t.id);if(e)throw e;b(Object(O.__)("Template has been renamed."),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:Object(O.__)("An error occurred while renaming the template.");_(t,{type:"snackbar"})}}},Object(a.createElement)(p.Flex,{align:"flex-start",gap:8},Object(a.createElement)(p.FlexItem,null,Object(a.createElement)(p.TextControl,{label:Object(O.__)("Name"),value:c,onChange:r,required:!0}))),Object(a.createElement)(p.Flex,{className:"edit-site-list__rename-modal-actions",justify:"flex-end",expanded:!1},Object(a.createElement)(p.FlexItem,null,Object(a.createElement)(p.Button,{variant:"tertiary",onClick:()=>{o(!1)}},Object(O.__)("Cancel"))),Object(a.createElement)(p.FlexItem,null,Object(a.createElement)(p.Button,{variant:"primary",type:"submit"},Object(O.__)("Save")))))))}function Yc(e){let{template:t}=e;const{removeTemplate:n,revertTemplate:c}=Object(i.useDispatch)(Pe),{saveEditedEntityRecord:r}=Object(i.useDispatch)(s.store),{createSuccessNotice:l,createErrorNotice:o}=Object(i.useDispatch)(F.store),u=function(e){return!!e&&("custom"===e.source&&!e.has_theme_file)}(t),m=G(t);if(!u&&!m)return null;return Object(a.createElement)(p.DropdownMenu,{icon:Ge.a,label:Object(O.__)("Actions"),className:"edit-site-list-table__actions"},e=>{let{onClose:i}=e;return Object(a.createElement)(p.MenuGroup,null,u&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Qc,{template:t,onClose:i}),Object(a.createElement)(p.MenuItem,{isDestructive:!0,onClick:()=>{n(t),i()}},Object(O.__)("Delete template"))),m&&Object(a.createElement)(p.MenuItem,{info:Object(O.__)("Restore template to theme default"),onClick:()=>{!async function(){try{await c(t,{allowUndo:!1}),await r("postType",t.type,t.id),l(Object(O.__)("Template reverted."),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:Object(O.__)("An error occurred while reverting the template.");o(t,{type:"snackbar"})}}(),i()}},Object(O.__)("Clear customizations")))})}var Xc=n("0Ene");const Zc=["wp_template","wp_template_part"];function Jc(e){let{isCustomized:t,children:n}=e;return t?Object(a.createElement)(p.Tooltip,{text:Object(O.__)("This template has been customized")},n):n}function er(e){var t;let{slug:n,isCustomized:c}=e;const r=Object(i.useSelect)(e=>e(s.store).getTheme(n),[n]);return Object(a.createElement)(p.__experimentalHStack,{alignment:"left"},Object(a.createElement)(Jc,{isCustomized:c},Object(a.createElement)("div",{className:et()("edit-site-list-added-by__icon",{"is-customized":c})},Object(a.createElement)(p.Icon,{icon:Nt.a}))),Object(a.createElement)("span",null,(null==r||null===(t=r.name)||void 0===t?void 0:t.rendered)||n))}function tr(e){let{slug:t,isCustomized:n}=e;const c=Object(i.useSelect)(e=>e(s.store).getPlugin(t),[t]);return Object(a.createElement)(p.__experimentalHStack,{alignment:"left"},Object(a.createElement)(Jc,{isCustomized:n},Object(a.createElement)("div",{className:"edit-site-list-added-by__icon"},Object(a.createElement)(p.Icon,{icon:Xc.a}))),Object(a.createElement)("span",null,(null==c?void 0:c.name)||t))}function nr(e){let{id:t}=e;const n=Object(i.useSelect)(e=>e(s.store).getUser(t),[t]),[c,r]=Object(a.useState)(!1);return Object(a.createElement)(p.__experimentalHStack,{alignment:"left"},Object(a.createElement)("div",{className:et()("edit-site-list-added-by__avatar",{"is-loaded":c})},Object(a.createElement)("img",{onLoad:()=>r(!0),alt:"",src:null==n?void 0:n.avatar_urls[48]})),Object(a.createElement)("span",null,null==n?void 0:n.nickname))}function cr(){const{name:e,logoURL:t}=Object(i.useSelect)(e=>{var t;const{getEntityRecord:n,getMedia:c}=e(s.store),r=n("root","__unstableBase");return{name:r.name,logoURL:null!=r&&r.site_logo?null===(t=c(r.site_logo))||void 0===t?void 0:t.source_url:void 0}},[]),[n,c]=Object(a.useState)(!1);return Object(a.createElement)(p.__experimentalHStack,{alignment:"left"},Object(a.createElement)("div",{className:et()("edit-site-list-added-by__avatar",{"is-loaded":n})},Object(a.createElement)("img",{onLoad:()=>c(!0),alt:"",src:t})),Object(a.createElement)("span",null,e))}function rr(e){let{templateType:t,template:n}=e;if(n){if(Zc.includes(t)){if(n.has_theme_file&&("theme"===n.origin||!n.origin&&["theme","custom"].includes(n.source)))return Object(a.createElement)(er,{slug:n.theme,isCustomized:"custom"===n.source});if(n.has_theme_file&&"plugin"===n.origin)return Object(a.createElement)(tr,{slug:n.theme,isCustomized:"custom"===n.source});if(!n.has_theme_file&&"custom"===n.source&&!n.author)return Object(a.createElement)(cr,null)}return Object(a.createElement)(nr,{id:n.author})}}function ar(e){let{templateType:t}=e;const{templates:n,isLoading:c,postType:r}=Object(i.useSelect)(e=>{const{getEntityRecords:n,hasFinishedResolution:c,getPostType:r}=e(s.store);return{templates:n("postType",t,{per_page:-1}),isLoading:!c("getEntityRecords",["postType",t,{per_page:-1}]),postType:r(t)}},[t]);return!n||c?null:n.length?Object(a.createElement)("table",{className:"edit-site-list-table",role:"table"},Object(a.createElement)("thead",null,Object(a.createElement)("tr",{className:"edit-site-list-table-head",role:"row"},Object(a.createElement)("th",{className:"edit-site-list-table-column",role:"columnheader"},Object(O.__)("Template")),Object(a.createElement)("th",{className:"edit-site-list-table-column",role:"columnheader"},Object(O.__)("Added by")),Object(a.createElement)("th",{className:"edit-site-list-table-column",role:"columnheader"},Object(a.createElement)(p.VisuallyHidden,null,Object(O.__)("Actions"))))),Object(a.createElement)("tbody",null,n.map(e=>Object(a.createElement)("tr",{key:e.id,className:"edit-site-list-table-row",role:"row"},Object(a.createElement)("td",{className:"edit-site-list-table-column",role:"cell"},Object(a.createElement)(p.__experimentalHeading,{level:4},Object(a.createElement)("a",{href:Object(D.addQueryArgs)(window.location.href,{postId:e.id,postType:e.type})},e.title.rendered)),e.description),Object(a.createElement)("td",{className:"edit-site-list-table-column",role:"cell"},Object(a.createElement)(rr,{templateType:t,template:e})),Object(a.createElement)("td",{className:"edit-site-list-table-column",role:"cell"},Object(a.createElement)(Yc,{template:e})))))):Object(a.createElement)("div",null,Object(O.sprintf)(Object(O.__)("No %s found."),null==r||null===(l=r.labels)||void 0===l||null===(o=l.name)||void 0===o?void 0:o.toLowerCase()));var l,o}function lr(e){var t;let{templateType:n}=e;!function(){const{registerShortcut:e}=Object(i.useDispatch)(Le.store);Object(a.useEffect)(()=>{e({name:"core/edit-site/next-region",category:"global",description:Object(O.__)("Navigate to the next part of the editor."),keyCombination:{modifier:"ctrl",character:"`"},aliases:[{modifier:"access",character:"n"}]}),e({name:"core/edit-site/previous-region",category:"global",description:Object(O.__)("Navigate to the previous part of the editor."),keyCombination:{modifier:"ctrlShift",character:"`"},aliases:[{modifier:"access",character:"p"}]})},[])}();const{previousShortcut:c,nextShortcut:r,isNavigationOpen:l}=Object(i.useSelect)(e=>({previousShortcut:e(Le.store).getAllShortcutKeyCombinations("core/edit-site/previous-region"),nextShortcut:e(Le.store).getAllShortcutKeyCombinations("core/edit-site/next-region"),isNavigationOpen:e(Pe).isNavigationOpened()}),[]),o=Object(i.useSelect)(e=>e(s.store).getPostType(n),[n]),m=null==o||null===(t=o.labels)||void 0===t?void 0:t.items_list,d=o?{header:Object(O.sprintf)(Object(O.__)("%s - Header"),m),body:Object(O.sprintf)(Object(O.__)("%s - Content"),m)}:void 0;return Object(a.createElement)(S.e,{className:et()("edit-site-list",{"is-navigation-open":l}),labels:{drawer:Object(O.__)("Navigation Sidebar"),...d},header:Object(a.createElement)(Kc,{templateType:n}),drawer:Object(a.createElement)(cc,{activeTemplateType:n,isDefaultOpen:!0}),notices:Object(a.createElement)(u.EditorSnackbars,null),content:Object(a.createElement)("main",{className:"edit-site-list-main"},Object(a.createElement)(ar,{templateType:n})),shortcuts:{previous:c,next:r}})}function or(e){let{className:t,...n}=e;return Object(a.createElement)(S.b,Object(xt.a)({panelClassName:t,className:"edit-site-sidebar",scope:"core/edit-site"},n))}function ir(e){return Object(a.createElement)(S.c,Object(xt.a)({__unstableExplicitMenuItem:!0,scope:"core/edit-site"},e))}var sr=Object(Be.compose)(Object(_.withPluginContext)((e,t)=>({icon:t.icon||e.icon,name:"core/edit-site/plugin-more-menu"})))(S.a);function ur(e,t){Object(a.unmountComponentAtNode)(e);const n=ur.bind(null,e,t);Object(a.render)(Object(a.createElement)(Uc,{initialSettings:t,onError:n}),e)}function mr(e,t){t.__experimentalFetchLinkSuggestions=(e,n)=>Object(s.__experimentalFetchLinkSuggestions)(e,n,t),t.__experimentalFetchRichUrlData=s.__experimentalFetchUrlData,t.__experimentalSpotlightEntityBlocks=["core/template-part"];const n=document.getElementById(e),c=ur.bind(null,n,t);Object(i.dispatch)(l.store).__experimentalReapplyBlockTypeFilters(),Object(o.registerCoreBlocks)(),Object(a.render)(Object(a.createElement)(Uc,{initialSettings:t,onError:c}),n)}function dr(e,t,n){const c=document.getElementById(e);Object(i.dispatch)(u.store).updateEditorSettings({defaultTemplateTypes:n.defaultTemplateTypes,defaultTemplatePartAreas:n.defaultTemplatePartAreas}),Object(i.dispatch)(Pe).setIsNavigationPanelOpened(Object(i.select)(m.store).isViewportMatch("medium")),Object(a.render)(Object(a.createElement)(lr,{templateType:t}),c)}},K2cm:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"}));t.a=a},K9lf:function(e,t){e.exports=window.wp.compose},KEfo:function(e,t){e.exports=window.wp.viewport},Mmq9:function(e,t){e.exports=window.wp.url},NWDH:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(c.createElement)(r.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=a},Ntru:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"}));t.a=a},OE6V:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));t.a=a},OzlF:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(c.createElement)(r.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));t.a=a},Q4Sy:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));t.a=a},QyPg:function(e,t){e.exports=window.wp.blockLibrary},RMJe:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));t.a=a},RxS6:function(e,t){e.exports=window.wp.keycodes},TSYQ:function(e,t,n){var c; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var c=arguments[t];if(c){var a=typeof c;if("string"===a||"number"===a)e.push(c);else if(Array.isArray(c)){if(c.length){var l=r.apply(null,c);l&&e.push(l)}}else if("object"===a)if(c.toString===Object.prototype.toString)for(var o in c)n.call(c,o)&&c[o]&&e.push(o);else e.push(c.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(c=function(){return r}.apply(t,[]))||(e.exports=c)}()},Tqx9:function(e,t){e.exports=window.wp.primitives},TvNi:function(e,t){e.exports=window.wp.plugins},U60i:function(e,t,n){"use strict";n.d(t,"b",(function(){return $})),n.d(t,"c",(function(){return z})),n.d(t,"d",(function(){return K})),n.d(t,"e",(function(){return Y})),n.d(t,"h",(function(){return H})),n.d(t,"f",(function(){return Z})),n.d(t,"g",(function(){return ee})),n.d(t,"a",(function(){return G})),n.d(t,"i",(function(){return M}));var c={};n.r(c),n.d(c,"enableComplementaryArea",(function(){return y})),n.d(c,"disableComplementaryArea",(function(){return w})),n.d(c,"pinItem",(function(){return x})),n.d(c,"unpinItem",(function(){return T})),n.d(c,"toggleFeature",(function(){return k})),n.d(c,"setFeatureValue",(function(){return I})),n.d(c,"setFeatureDefaults",(function(){return C}));var r={};n.r(r),n.d(r,"getActiveComplementaryArea",(function(){return N})),n.d(r,"isItemPinned",(function(){return P})),n.d(r,"isFeatureActive",(function(){return A}));var a=n("wx14"),l=n("GRId"),o=n("TSYQ"),i=n.n(o),s=n("tI+e"),u=n("1ZqX"),d=n("l3Sj"),m=n("RMJe"),p=n("URob"),b=n("Xxwi"),O=n("KEfo"),_=n("bWcr"),j=n("YLtl");const g=Object(u.combineReducers)({features(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("SET_FEATURE_DEFAULTS"===t.type){const{scope:n,defaults:c}=t;return{...e,[n]:{...e[n],...c}}}return e}}),f=Object(u.combineReducers)({features(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("SET_FEATURE_VALUE"===t.type){const{scope:n,featureName:c,value:r}=t;return{...e,[n]:{...e[n],[c]:r}}}return e}}),E=Object(u.combineReducers)({singleEnableItems:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t,itemType:n,scope:c,item:r}=arguments.length>1?arguments[1]:void 0;return"SET_SINGLE_ENABLE_ITEM"===t&&n&&c?{...e,[n]:{...e[n],[c]:r||null}}:e},multipleEnableItems:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t,itemType:n,scope:c,item:r,isEnable:a}=arguments.length>1?arguments[1]:void 0;if("SET_MULTIPLE_ENABLE_ITEM"!==t||!n||!c||!r||Object(j.get)(e,[n,c,r])===a)return e;const l=e[n]||{},o=l[c]||{};return{...e,[n]:{...l,[c]:{...o,[r]:a||!1}}}}});var h=Object(u.combineReducers)({enableItems:E,preferenceDefaults:g,preferences:f});function v(e,t,n){return{type:"SET_SINGLE_ENABLE_ITEM",itemType:e,scope:t,item:n}}function y(e,t){return v("complementaryArea",e,t)}function w(e){return v("complementaryArea",e,void 0)}function S(e,t,n,c){return{type:"SET_MULTIPLE_ENABLE_ITEM",itemType:e,scope:t,item:n,isEnable:c}}function x(e,t){return S("pinnedItems",e,t,!0)}function T(e,t){return S("pinnedItems",e,t,!1)}function k(e,t){return function(n){let{select:c,dispatch:r}=n;const a=c.isFeatureActive(e,t);r.setFeatureValue(e,t,!a)}}function I(e,t,n){return{type:"SET_FEATURE_VALUE",scope:e,featureName:t,value:!!n}}function C(e,t){return{type:"SET_FEATURE_DEFAULTS",scope:e,defaults:t}}function N(e,t){return function(e,t,n){return Object(j.get)(e.enableItems.singleEnableItems,[t,n])}(e,"complementaryArea",t)}function P(e,t,n){return!1!==function(e,t,n,c){return Object(j.get)(e.enableItems.multipleEnableItems,[t,n,c])}(e,"pinnedItems",t,n)}function A(e,t,n){var c,r;const a=null===(c=e.preferences.features[t])||void 0===c?void 0:c[n];return!!(void 0!==a?a:null===(r=e.preferenceDefaults.features[t])||void 0===r?void 0:r[n])}const M=Object(u.createReduxStore)("core/interface",{reducer:h,actions:c,selectors:r,persist:["enableItems","preferences"],__experimentalUseThunks:!0});Object(u.registerStore)("core/interface",{reducer:h,actions:c,selectors:r,persist:["enableItems","preferences"],__experimentalUseThunks:!0});var R=n("TvNi"),B=Object(R.withPluginContext)((e,t)=>({icon:t.icon||e.icon,identifier:t.identifier||`${e.name}/${t.name}`}));var L=B((function(e){let{as:t=s.Button,scope:n,identifier:c,icon:r,selectedIcon:o,...i}=e;const d=t,m=Object(u.useSelect)(e=>e(M).getActiveComplementaryArea(n)===c,[c]),{enableComplementaryArea:p,disableComplementaryArea:b}=Object(u.useDispatch)(M);return Object(l.createElement)(d,Object(a.a)({icon:o&&m?o:r,onClick:()=>{m?b(n):p(n,c)}},Object(j.omit)(i,["name"])))}));var F=e=>{let{smallScreenTitle:t,children:n,className:c,toggleButtonProps:r}=e;const o=Object(l.createElement)(L,Object(a.a)({icon:_.a},r));return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:"components-panel__header interface-complementary-area-header__small"},t&&Object(l.createElement)("span",{className:"interface-complementary-area-header__small-title"},t),o),Object(l.createElement)("div",{className:i()("components-panel__header","interface-complementary-area-header",c),tabIndex:-1},n,o))};function D(e){let{name:t,as:n=s.Button,onClick:c,...r}=e;return Object(l.createElement)(s.Fill,{name:t},e=>{let{onClick:t}=e;return Object(l.createElement)(n,Object(a.a)({onClick:c||t?function(){(c||j.noop)(...arguments),(t||j.noop)(...arguments)}:void 0},r))})}D.Slot=function(e){let{name:t,as:n=s.ButtonGroup,fillProps:c={},bubblesVirtually:r,...a}=e;return Object(l.createElement)(s.Slot,{name:t,bubblesVirtually:r,fillProps:c},e=>{if(Object(j.isEmpty)(l.Children.toArray(e)))return null;const t=[];l.Children.forEach(e,e=>{let{props:{__unstableExplicitMenuItem:n,__unstableTarget:c}}=e;c&&n&&t.push(c)});const c=l.Children.map(e,e=>!e.props.__unstableExplicitMenuItem&&t.includes(e.props.__unstableTarget)?null:e);return Object(l.createElement)(n,a,c)})};var G=D;const V=e=>Object(l.createElement)(s.MenuItem,Object(j.omit)(e,["__unstableExplicitMenuItem","__unstableTarget"]));function z(e){let{scope:t,target:n,__unstableExplicitMenuItem:c,...r}=e;return Object(l.createElement)(L,Object(a.a)({as:e=>Object(l.createElement)(G,Object(a.a)({__unstableExplicitMenuItem:c,__unstableTarget:`${t}/${n}`,as:V,name:t+"/plugin-more-menu"},e)),role:"menuitemcheckbox",selectedIcon:m.a,name:n,scope:t},r))}function U(e){let{scope:t,...n}=e;return Object(l.createElement)(s.Fill,Object(a.a)({name:"PinnedItems/"+t},n))}U.Slot=function(e){let{scope:t,className:n,...c}=e;return Object(l.createElement)(s.Slot,Object(a.a)({name:"PinnedItems/"+t},c),e=>!Object(j.isEmpty)(e)&&Object(l.createElement)("div",{className:i()(n,"interface-pinned-items")},e))};var H=U;function W(e){let{scope:t,children:n,className:c}=e;return Object(l.createElement)(s.Fill,{name:"ComplementaryArea/"+t},Object(l.createElement)("div",{className:c},n))}const q=B((function(e){let{children:t,className:n,closeLabel:c=Object(d.__)("Close plugin"),identifier:r,header:a,headerClassName:o,icon:_,isPinnable:j=!0,panelClassName:g,scope:f,name:E,smallScreenTitle:h,title:v,toggleShortcut:y,isActiveByDefault:w,showIconLabels:S=!1}=e;const{isActive:x,isPinned:T,activeArea:k,isSmall:I,isLarge:C}=Object(u.useSelect)(e=>{const{getActiveComplementaryArea:t,isItemPinned:n}=e(M),c=t(f);return{isActive:c===r,isPinned:n(f,r),activeArea:c,isSmall:e(O.store).isViewportMatch("< medium"),isLarge:e(O.store).isViewportMatch("large")}},[r,f]);!function(e,t,n,c,r){const a=Object(l.useRef)(!1),o=Object(l.useRef)(!1),{enableComplementaryArea:i,disableComplementaryArea:s}=Object(u.useDispatch)(M);Object(l.useEffect)(()=>{c&&r&&!a.current?(s(e),o.current=!0):o.current&&!r&&a.current?(o.current=!1,i(e,t)):o.current&&n&&n!==t&&(o.current=!1),r!==a.current&&(a.current=r)},[c,r,e,t,n])}(f,r,k,x,I);const{enableComplementaryArea:N,disableComplementaryArea:P,pinItem:A,unpinItem:R}=Object(u.useDispatch)(M);return Object(l.useEffect)(()=>{w&&void 0===k&&!I&&N(f,r)},[k,w,f,r,I]),Object(l.createElement)(l.Fragment,null,j&&Object(l.createElement)(H,{scope:f},T&&Object(l.createElement)(L,{scope:f,identifier:r,isPressed:x&&(!S||C),"aria-expanded":x,label:v,icon:S?m.a:_,showTooltip:!S,variant:S?"tertiary":void 0})),E&&j&&Object(l.createElement)(z,{target:E,scope:f,icon:_},v),x&&Object(l.createElement)(W,{className:i()("interface-complementary-area",n),scope:f},Object(l.createElement)(F,{className:o,closeLabel:c,onClose:()=>P(f),smallScreenTitle:h,toggleButtonProps:{label:c,shortcut:y,scope:f,identifier:r}},a||Object(l.createElement)(l.Fragment,null,Object(l.createElement)("strong",null,v),j&&Object(l.createElement)(s.Button,{className:"interface-complementary-area__pin-unpin-item",icon:T?p.a:b.a,label:T?Object(d.__)("Unpin from toolbar"):Object(d.__)("Pin to toolbar"),onClick:()=>(T?R:A)(f,r),isPressed:T,"aria-expanded":T}))),Object(l.createElement)(s.Panel,{className:g},t)))}));q.Slot=function(e){let{scope:t,...n}=e;return Object(l.createElement)(s.Slot,Object(a.a)({name:"ComplementaryArea/"+t},n))};var $=q;var K=e=>{let{isActive:t}=e;return Object(l.useEffect)(()=>{let e=!1;return document.body.classList.contains("sticky-menu")&&(e=!0,document.body.classList.remove("sticky-menu")),()=>{e&&document.body.classList.add("sticky-menu")}},[]),Object(l.useEffect)(()=>(t?document.body.classList.add("is-fullscreen-mode"):document.body.classList.remove("is-fullscreen-mode"),()=>{t&&document.body.classList.remove("is-fullscreen-mode")}),[t]),null},Q=n("K9lf");var Y=Object(l.forwardRef)((function(e,t){let{footer:n,header:c,sidebar:r,secondarySidebar:o,notices:u,content:m,drawer:p,actions:b,labels:O,className:_,shortcuts:j}=e;const g=Object(s.__unstableUseNavigateRegions)(j);!function(e){Object(l.useEffect)(()=>{const t=document&&document.querySelector(`html:not(.${e})`);if(t)return t.classList.toggle(e),()=>{t.classList.toggle(e)}},[e])}("interface-interface-skeleton__html-container");const f={...{drawer:Object(d.__)("Drawer"),header:Object(d.__)("Header"),body:Object(d.__)("Content"),secondarySidebar:Object(d.__)("Block Library"),sidebar:Object(d.__)("Settings"),actions:Object(d.__)("Publish"),footer:Object(d.__)("Footer")},...O};return Object(l.createElement)("div",Object(a.a)({},g,{ref:Object(Q.useMergeRefs)([t,g.ref]),className:i()(_,"interface-interface-skeleton",g.className,!!n&&"has-footer")}),!!p&&Object(l.createElement)("div",{className:"interface-interface-skeleton__drawer",role:"region","aria-label":f.drawer,tabIndex:"-1"},p),Object(l.createElement)("div",{className:"interface-interface-skeleton__editor"},!!c&&Object(l.createElement)("div",{className:"interface-interface-skeleton__header",role:"region","aria-label":f.header,tabIndex:"-1"},c),Object(l.createElement)("div",{className:"interface-interface-skeleton__body"},!!o&&Object(l.createElement)("div",{className:"interface-interface-skeleton__secondary-sidebar",role:"region","aria-label":f.secondarySidebar,tabIndex:"-1"},o),!!u&&Object(l.createElement)("div",{className:"interface-interface-skeleton__notices"},u),Object(l.createElement)("div",{className:"interface-interface-skeleton__content",role:"region","aria-label":f.body,tabIndex:"-1"},m),!!r&&Object(l.createElement)("div",{className:"interface-interface-skeleton__sidebar",role:"region","aria-label":f.sidebar,tabIndex:"-1"},r),!!b&&Object(l.createElement)("div",{className:"interface-interface-skeleton__actions",role:"region","aria-label":f.actions,tabIndex:"-1"},b))),!!n&&Object(l.createElement)("div",{className:"interface-interface-skeleton__footer",role:"region","aria-label":f.footer,tabIndex:"-1"},n))})),X=n("VKE3");function Z(e){let{as:t=s.DropdownMenu,className:n,label:c=Object(d.__)("Options"),popoverProps:r,toggleProps:a,children:o}=e;return Object(l.createElement)(t,{className:i()("interface-more-menu-dropdown",n),icon:X.a,label:c,popoverProps:{position:"bottom left",...r,className:i()("interface-more-menu-dropdown__content",null==r?void 0:r.className)},toggleProps:{tooltipPosition:"bottom",...a}},e=>o(e))}var J=n("gdqT");function ee(e){let{scope:t,label:n,info:c,messageActivated:r,messageDeactivated:a,shortcut:o,feature:i}=e;const p=Object(u.useSelect)(e=>e(M).isFeatureActive(t,i),[i]),{toggleFeature:b}=Object(u.useDispatch)(M);return Object(l.createElement)(s.MenuItem,{icon:p&&m.a,isSelected:p,onClick:()=>{b(t,i),p?Object(J.speak)(a||Object(d.__)("Feature deactivated")):Object(J.speak)(r||Object(d.__)("Feature activated"))},role:"menuitemcheckbox",info:c,shortcut:o},n)}},URob:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"}));t.a=a},VKE3:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));t.a=a},Xxwi:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{fillRule:"evenodd",d:"M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",clipRule:"evenodd"}));t.a=a},YLtl:function(e,t){e.exports=window.lodash},axFQ:function(e,t){e.exports=window.wp.blockEditor},bWcr:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));t.a=a},cjQ8:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M20 10.8H6.7l4.1-4.5-1.1-1.1-5.8 6.3 5.8 5.8 1.1-1.1-4-3.9H20z"}));t.a=a},g56x:function(e,t){e.exports=window.wp.hooks},gdqT:function(e,t){e.exports=window.wp.a11y},hF7m:function(e,t){e.exports=window.wp.keyboardShortcuts},iClF:function(e,t,n){"use strict";var c=n("GRId");t.a=function(e){let{icon:t,size:n=24,...r}=e;return Object(c.cloneElement)(t,{width:n,height:n,...r})}},jSdM:function(e,t){e.exports=window.wp.editor},jZUy:function(e,t){e.exports=window.wp.coreData},l3Sj:function(e,t){e.exports=window.wp.i18n},onLe:function(e,t){e.exports=window.wp.notices},pPDe:function(e,t,n){"use strict";var c,r;function a(e){return[e]}function l(){var e={clear:function(){e.head=null}};return e}function o(e,t,n){var c;if(e.length!==t.length)return!1;for(c=n;c<e.length;c++)if(e[c]!==t[c])return!1;return!0}c={},r="undefined"!=typeof WeakMap,t.a=function(e,t){var n,i;function s(){n=r?new WeakMap:l()}function u(){var n,c,r,a,l,s=arguments.length;for(a=new Array(s),r=0;r<s;r++)a[r]=arguments[r];for(l=t.apply(null,a),(n=i(l)).isUniqueByDependants||(n.lastDependants&&!o(l,n.lastDependants,0)&&n.clear(),n.lastDependants=l),c=n.head;c;){if(o(c.args,a,1))return c!==n.head&&(c.prev.next=c.next,c.next&&(c.next.prev=c.prev),c.next=n.head,c.prev=null,n.head.prev=c,n.head=c),c.val;c=c.next}return c={val:e.apply(null,a)},a[0]=null,c.args=a,n.head&&(n.head.prev=c,c.next=n.head),n.head=c,c.val}return t||(t=a),i=r?function(e){var t,r,a,o,i,s=n,u=!0;for(t=0;t<e.length;t++){if(r=e[t],!(i=r)||"object"!=typeof i){u=!1;break}s.has(r)?s=s.get(r):(a=new WeakMap,s.set(r,a),s=a)}return s.has(c)||((o=l()).isUniqueByDependants=u,s.set(c,o)),s.get(c)}:function(){return n},u.getDependants=t,u.clear=s,s(),u}},rmEH:function(e,t){e.exports=window.wp.htmlEntities},rrFr:function(e,t,n){var c,r,a;r=[],void 0===(a="function"==typeof(c=function(){return function e(t,n,c){var r,a,l=window,o="application/octet-stream",i=c||o,s=t,u=!n&&!c&&s,d=document.createElement("a"),m=function(e){return String(e)},p=l.Blob||l.MozBlob||l.WebKitBlob||m,b=n||"download";if(p=p.call?p.bind(l):Blob,"true"===String(this)&&(i=(s=[s,i])[0],s=s[1]),u&&u.length<2048&&(b=u.split("/").pop().split("?")[0],d.href=u,-1!==d.href.indexOf(u))){var O=new XMLHttpRequest;return O.open("GET",u,!0),O.responseType="blob",O.onload=function(t){e(t.target.response,b,o)},setTimeout((function(){O.send()}),0),O}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(s)){if(!(s.length>2096103.424&&p!==m))return navigator.msSaveBlob?navigator.msSaveBlob(f(s),b):E(s);i=(s=f(s)).type||o}else if(/([\x80-\xff])/.test(s)){for(var _=0,j=new Uint8Array(s.length),g=j.length;_<g;++_)j[_]=s.charCodeAt(_);s=new p([j],{type:i})}function f(e){for(var t=e.split(/[:;,]/),n=t[1],c=("base64"==t[2]?atob:decodeURIComponent)(t.pop()),r=c.length,a=0,l=new Uint8Array(r);a<r;++a)l[a]=c.charCodeAt(a);return new p([l],{type:n})}function E(e,t){if("download"in d)return d.href=e,d.setAttribute("download",b),d.className="download-js-link",d.innerHTML="downloading...",d.style.display="none",document.body.appendChild(d),setTimeout((function(){d.click(),document.body.removeChild(d),!0===t&&setTimeout((function(){l.URL.revokeObjectURL(d.href)}),250)}),66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,o)),window.open(e)||confirm("Displaying New Document\n\nUse Save As... to download, then click back to return to this page.")&&(location.href=e),!0;var n=document.createElement("iframe");document.body.appendChild(n),!t&&/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,o)),n.src=e,setTimeout((function(){document.body.removeChild(n)}),333)}if(r=s instanceof p?s:new p([s],{type:i}),navigator.msSaveBlob)return navigator.msSaveBlob(r,b);if(l.URL)E(l.URL.createObjectURL(r),!0);else{if("string"==typeof r||r.constructor===m)try{return E("data:"+i+";base64,"+l.btoa(r))}catch(e){return E("data:"+i+","+encodeURIComponent(r))}(a=new FileReader).onload=function(e){E(this.result)},a.readAsDataURL(r)}return!0}})?c.apply(t,r):c)||(e.exports=a)},"tI+e":function(e,t){e.exports=window.wp.components},w95h:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=a},wduq:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(c.createElement)(r.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"}));t.a=a},wx14:function(e,t,n){"use strict";function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return c}))},ywyh:function(e,t){e.exports=window.wp.apiFetch}}); \ No newline at end of file +*/!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var c=arguments[t];if(c){var a=typeof c;if("string"===a||"number"===a)e.push(c);else if(Array.isArray(c)){if(c.length){var l=r.apply(null,c);l&&e.push(l)}}else if("object"===a)if(c.toString===Object.prototype.toString)for(var o in c)n.call(c,o)&&c[o]&&e.push(o);else e.push(c.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(c=function(){return r}.apply(t,[]))||(e.exports=c)}()},Tqx9:function(e,t){e.exports=window.wp.primitives},TvNi:function(e,t){e.exports=window.wp.plugins},U60i:function(e,t,n){"use strict";n.d(t,"b",(function(){return $})),n.d(t,"c",(function(){return z})),n.d(t,"d",(function(){return K})),n.d(t,"e",(function(){return Y})),n.d(t,"h",(function(){return H})),n.d(t,"f",(function(){return Z})),n.d(t,"g",(function(){return ee})),n.d(t,"a",(function(){return G})),n.d(t,"i",(function(){return M}));var c={};n.r(c),n.d(c,"enableComplementaryArea",(function(){return y})),n.d(c,"disableComplementaryArea",(function(){return w})),n.d(c,"pinItem",(function(){return x})),n.d(c,"unpinItem",(function(){return T})),n.d(c,"toggleFeature",(function(){return k})),n.d(c,"setFeatureValue",(function(){return I})),n.d(c,"setFeatureDefaults",(function(){return C}));var r={};n.r(r),n.d(r,"getActiveComplementaryArea",(function(){return N})),n.d(r,"isItemPinned",(function(){return P})),n.d(r,"isFeatureActive",(function(){return A}));var a=n("wx14"),l=n("GRId"),o=n("TSYQ"),i=n.n(o),s=n("tI+e"),u=n("1ZqX"),m=n("l3Sj"),d=n("RMJe"),b=n("URob"),p=n("Xxwi"),O=n("KEfo"),_=n("bWcr"),j=n("YLtl");const g=Object(u.combineReducers)({features(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("SET_FEATURE_DEFAULTS"===t.type){const{scope:n,defaults:c}=t;return{...e,[n]:{...e[n],...c}}}return e}}),E=Object(u.combineReducers)({features(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("SET_FEATURE_VALUE"===t.type){const{scope:n,featureName:c,value:r}=t;return{...e,[n]:{...e[n],[c]:r}}}return e}}),f=Object(u.combineReducers)({singleEnableItems:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t,itemType:n,scope:c,item:r}=arguments.length>1?arguments[1]:void 0;return"SET_SINGLE_ENABLE_ITEM"===t&&n&&c?{...e,[n]:{...e[n],[c]:r||null}}:e},multipleEnableItems:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t,itemType:n,scope:c,item:r,isEnable:a}=arguments.length>1?arguments[1]:void 0;if("SET_MULTIPLE_ENABLE_ITEM"!==t||!n||!c||!r||Object(j.get)(e,[n,c,r])===a)return e;const l=e[n]||{},o=l[c]||{};return{...e,[n]:{...l,[c]:{...o,[r]:a||!1}}}}});var h=Object(u.combineReducers)({enableItems:f,preferenceDefaults:g,preferences:E});function v(e,t,n){return{type:"SET_SINGLE_ENABLE_ITEM",itemType:e,scope:t,item:n}}function y(e,t){return v("complementaryArea",e,t)}function w(e){return v("complementaryArea",e,void 0)}function S(e,t,n,c){return{type:"SET_MULTIPLE_ENABLE_ITEM",itemType:e,scope:t,item:n,isEnable:c}}function x(e,t){return S("pinnedItems",e,t,!0)}function T(e,t){return S("pinnedItems",e,t,!1)}function k(e,t){return function(n){let{select:c,dispatch:r}=n;const a=c.isFeatureActive(e,t);r.setFeatureValue(e,t,!a)}}function I(e,t,n){return{type:"SET_FEATURE_VALUE",scope:e,featureName:t,value:!!n}}function C(e,t){return{type:"SET_FEATURE_DEFAULTS",scope:e,defaults:t}}function N(e,t){return function(e,t,n){return Object(j.get)(e.enableItems.singleEnableItems,[t,n])}(e,"complementaryArea",t)}function P(e,t,n){return!1!==function(e,t,n,c){return Object(j.get)(e.enableItems.multipleEnableItems,[t,n,c])}(e,"pinnedItems",t,n)}function A(e,t,n){var c,r;const a=null===(c=e.preferences.features[t])||void 0===c?void 0:c[n];return!!(void 0!==a?a:null===(r=e.preferenceDefaults.features[t])||void 0===r?void 0:r[n])}const M=Object(u.createReduxStore)("core/interface",{reducer:h,actions:c,selectors:r,persist:["enableItems","preferences"],__experimentalUseThunks:!0});Object(u.registerStore)("core/interface",{reducer:h,actions:c,selectors:r,persist:["enableItems","preferences"],__experimentalUseThunks:!0});var R=n("TvNi"),L=Object(R.withPluginContext)((e,t)=>({icon:t.icon||e.icon,identifier:t.identifier||`${e.name}/${t.name}`}));var B=L((function(e){let{as:t=s.Button,scope:n,identifier:c,icon:r,selectedIcon:o,...i}=e;const m=t,d=Object(u.useSelect)(e=>e(M).getActiveComplementaryArea(n)===c,[c]),{enableComplementaryArea:b,disableComplementaryArea:p}=Object(u.useDispatch)(M);return Object(l.createElement)(m,Object(a.a)({icon:o&&d?o:r,onClick:()=>{d?p(n):b(n,c)}},Object(j.omit)(i,["name"])))}));var D=e=>{let{smallScreenTitle:t,children:n,className:c,toggleButtonProps:r}=e;const o=Object(l.createElement)(B,Object(a.a)({icon:_.a},r));return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:"components-panel__header interface-complementary-area-header__small"},t&&Object(l.createElement)("span",{className:"interface-complementary-area-header__small-title"},t),o),Object(l.createElement)("div",{className:i()("components-panel__header","interface-complementary-area-header",c),tabIndex:-1},n,o))};function F(e){let{name:t,as:n=s.Button,onClick:c,...r}=e;return Object(l.createElement)(s.Fill,{name:t},e=>{let{onClick:t}=e;return Object(l.createElement)(n,Object(a.a)({onClick:c||t?function(){(c||j.noop)(...arguments),(t||j.noop)(...arguments)}:void 0},r))})}F.Slot=function(e){let{name:t,as:n=s.ButtonGroup,fillProps:c={},bubblesVirtually:r,...a}=e;return Object(l.createElement)(s.Slot,{name:t,bubblesVirtually:r,fillProps:c},e=>{if(Object(j.isEmpty)(l.Children.toArray(e)))return null;const t=[];l.Children.forEach(e,e=>{let{props:{__unstableExplicitMenuItem:n,__unstableTarget:c}}=e;c&&n&&t.push(c)});const c=l.Children.map(e,e=>!e.props.__unstableExplicitMenuItem&&t.includes(e.props.__unstableTarget)?null:e);return Object(l.createElement)(n,a,c)})};var G=F;const V=e=>Object(l.createElement)(s.MenuItem,Object(j.omit)(e,["__unstableExplicitMenuItem","__unstableTarget"]));function z(e){let{scope:t,target:n,__unstableExplicitMenuItem:c,...r}=e;return Object(l.createElement)(B,Object(a.a)({as:e=>Object(l.createElement)(G,Object(a.a)({__unstableExplicitMenuItem:c,__unstableTarget:`${t}/${n}`,as:V,name:t+"/plugin-more-menu"},e)),role:"menuitemcheckbox",selectedIcon:d.a,name:n,scope:t},r))}function U(e){let{scope:t,...n}=e;return Object(l.createElement)(s.Fill,Object(a.a)({name:"PinnedItems/"+t},n))}U.Slot=function(e){let{scope:t,className:n,...c}=e;return Object(l.createElement)(s.Slot,Object(a.a)({name:"PinnedItems/"+t},c),e=>!Object(j.isEmpty)(e)&&Object(l.createElement)("div",{className:i()(n,"interface-pinned-items")},e))};var H=U;function W(e){let{scope:t,children:n,className:c}=e;return Object(l.createElement)(s.Fill,{name:"ComplementaryArea/"+t},Object(l.createElement)("div",{className:c},n))}const q=L((function(e){let{children:t,className:n,closeLabel:c=Object(m.__)("Close plugin"),identifier:r,header:a,headerClassName:o,icon:_,isPinnable:j=!0,panelClassName:g,scope:E,name:f,smallScreenTitle:h,title:v,toggleShortcut:y,isActiveByDefault:w,showIconLabels:S=!1}=e;const{isActive:x,isPinned:T,activeArea:k,isSmall:I,isLarge:C}=Object(u.useSelect)(e=>{const{getActiveComplementaryArea:t,isItemPinned:n}=e(M),c=t(E);return{isActive:c===r,isPinned:n(E,r),activeArea:c,isSmall:e(O.store).isViewportMatch("< medium"),isLarge:e(O.store).isViewportMatch("large")}},[r,E]);!function(e,t,n,c,r){const a=Object(l.useRef)(!1),o=Object(l.useRef)(!1),{enableComplementaryArea:i,disableComplementaryArea:s}=Object(u.useDispatch)(M);Object(l.useEffect)(()=>{c&&r&&!a.current?(s(e),o.current=!0):o.current&&!r&&a.current?(o.current=!1,i(e,t)):o.current&&n&&n!==t&&(o.current=!1),r!==a.current&&(a.current=r)},[c,r,e,t,n])}(E,r,k,x,I);const{enableComplementaryArea:N,disableComplementaryArea:P,pinItem:A,unpinItem:R}=Object(u.useDispatch)(M);return Object(l.useEffect)(()=>{w&&void 0===k&&!I&&N(E,r)},[k,w,E,r,I]),Object(l.createElement)(l.Fragment,null,j&&Object(l.createElement)(H,{scope:E},T&&Object(l.createElement)(B,{scope:E,identifier:r,isPressed:x&&(!S||C),"aria-expanded":x,label:v,icon:S?d.a:_,showTooltip:!S,variant:S?"tertiary":void 0})),f&&j&&Object(l.createElement)(z,{target:f,scope:E,icon:_},v),x&&Object(l.createElement)(W,{className:i()("interface-complementary-area",n),scope:E},Object(l.createElement)(D,{className:o,closeLabel:c,onClose:()=>P(E),smallScreenTitle:h,toggleButtonProps:{label:c,shortcut:y,scope:E,identifier:r}},a||Object(l.createElement)(l.Fragment,null,Object(l.createElement)("strong",null,v),j&&Object(l.createElement)(s.Button,{className:"interface-complementary-area__pin-unpin-item",icon:T?b.a:p.a,label:T?Object(m.__)("Unpin from toolbar"):Object(m.__)("Pin to toolbar"),onClick:()=>(T?R:A)(E,r),isPressed:T,"aria-expanded":T}))),Object(l.createElement)(s.Panel,{className:g},t)))}));q.Slot=function(e){let{scope:t,...n}=e;return Object(l.createElement)(s.Slot,Object(a.a)({name:"ComplementaryArea/"+t},n))};var $=q;var K=e=>{let{isActive:t}=e;return Object(l.useEffect)(()=>{let e=!1;return document.body.classList.contains("sticky-menu")&&(e=!0,document.body.classList.remove("sticky-menu")),()=>{e&&document.body.classList.add("sticky-menu")}},[]),Object(l.useEffect)(()=>(t?document.body.classList.add("is-fullscreen-mode"):document.body.classList.remove("is-fullscreen-mode"),()=>{t&&document.body.classList.remove("is-fullscreen-mode")}),[t]),null},Q=n("K9lf");var Y=Object(l.forwardRef)((function(e,t){let{footer:n,header:c,sidebar:r,secondarySidebar:o,notices:u,content:d,drawer:b,actions:p,labels:O,className:_,shortcuts:j}=e;const g=Object(s.__unstableUseNavigateRegions)(j);!function(e){Object(l.useEffect)(()=>{const t=document&&document.querySelector(`html:not(.${e})`);if(t)return t.classList.toggle(e),()=>{t.classList.toggle(e)}},[e])}("interface-interface-skeleton__html-container");const E={...{drawer:Object(m.__)("Drawer"),header:Object(m.__)("Header"),body:Object(m.__)("Content"),secondarySidebar:Object(m.__)("Block Library"),sidebar:Object(m.__)("Settings"),actions:Object(m.__)("Publish"),footer:Object(m.__)("Footer")},...O};return Object(l.createElement)("div",Object(a.a)({},g,{ref:Object(Q.useMergeRefs)([t,g.ref]),className:i()(_,"interface-interface-skeleton",g.className,!!n&&"has-footer")}),!!b&&Object(l.createElement)("div",{className:"interface-interface-skeleton__drawer",role:"region","aria-label":E.drawer,tabIndex:"-1"},b),Object(l.createElement)("div",{className:"interface-interface-skeleton__editor"},!!c&&Object(l.createElement)("div",{className:"interface-interface-skeleton__header",role:"region","aria-label":E.header,tabIndex:"-1"},c),Object(l.createElement)("div",{className:"interface-interface-skeleton__body"},!!o&&Object(l.createElement)("div",{className:"interface-interface-skeleton__secondary-sidebar",role:"region","aria-label":E.secondarySidebar,tabIndex:"-1"},o),!!u&&Object(l.createElement)("div",{className:"interface-interface-skeleton__notices"},u),Object(l.createElement)("div",{className:"interface-interface-skeleton__content",role:"region","aria-label":E.body,tabIndex:"-1"},d),!!r&&Object(l.createElement)("div",{className:"interface-interface-skeleton__sidebar",role:"region","aria-label":E.sidebar,tabIndex:"-1"},r),!!p&&Object(l.createElement)("div",{className:"interface-interface-skeleton__actions",role:"region","aria-label":E.actions,tabIndex:"-1"},p))),!!n&&Object(l.createElement)("div",{className:"interface-interface-skeleton__footer",role:"region","aria-label":E.footer,tabIndex:"-1"},n))})),X=n("VKE3");function Z(e){let{as:t=s.DropdownMenu,className:n,label:c=Object(m.__)("Options"),popoverProps:r,toggleProps:a,children:o}=e;return Object(l.createElement)(t,{className:i()("interface-more-menu-dropdown",n),icon:X.a,label:c,popoverProps:{position:"bottom left",...r,className:i()("interface-more-menu-dropdown__content",null==r?void 0:r.className)},toggleProps:{tooltipPosition:"bottom",...a}},e=>o(e))}var J=n("gdqT");function ee(e){let{scope:t,label:n,info:c,messageActivated:r,messageDeactivated:a,shortcut:o,feature:i}=e;const b=Object(u.useSelect)(e=>e(M).isFeatureActive(t,i),[i]),{toggleFeature:p}=Object(u.useDispatch)(M);return Object(l.createElement)(s.MenuItem,{icon:b&&d.a,isSelected:b,onClick:()=>{p(t,i),b?Object(J.speak)(a||Object(m.__)("Feature deactivated")):Object(J.speak)(r||Object(m.__)("Feature activated"))},role:"menuitemcheckbox",info:c,shortcut:o},n)}},URob:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"}));t.a=a},VKE3:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));t.a=a},Xxwi:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{fillRule:"evenodd",d:"M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",clipRule:"evenodd"}));t.a=a},YLtl:function(e,t){e.exports=window.lodash},axFQ:function(e,t){e.exports=window.wp.blockEditor},bWcr:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));t.a=a},cjQ8:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M20 10.8H6.7l4.1-4.5-1.1-1.1-5.8 6.3 5.8 5.8 1.1-1.1-4-3.9H20z"}));t.a=a},diJD:function(e,t){e.exports=window.wp.reusableBlocks},g56x:function(e,t){e.exports=window.wp.hooks},gdqT:function(e,t){e.exports=window.wp.a11y},hF7m:function(e,t){e.exports=window.wp.keyboardShortcuts},iClF:function(e,t,n){"use strict";var c=n("GRId");t.a=function(e){let{icon:t,size:n=24,...r}=e;return Object(c.cloneElement)(t,{width:n,height:n,...r})}},jSdM:function(e,t){e.exports=window.wp.editor},jZUy:function(e,t){e.exports=window.wp.coreData},l3Sj:function(e,t){e.exports=window.wp.i18n},onLe:function(e,t){e.exports=window.wp.notices},pPDe:function(e,t,n){"use strict";var c,r;function a(e){return[e]}function l(){var e={clear:function(){e.head=null}};return e}function o(e,t,n){var c;if(e.length!==t.length)return!1;for(c=n;c<e.length;c++)if(e[c]!==t[c])return!1;return!0}c={},r="undefined"!=typeof WeakMap,t.a=function(e,t){var n,i;function s(){n=r?new WeakMap:l()}function u(){var n,c,r,a,l,s=arguments.length;for(a=new Array(s),r=0;r<s;r++)a[r]=arguments[r];for(l=t.apply(null,a),(n=i(l)).isUniqueByDependants||(n.lastDependants&&!o(l,n.lastDependants,0)&&n.clear(),n.lastDependants=l),c=n.head;c;){if(o(c.args,a,1))return c!==n.head&&(c.prev.next=c.next,c.next&&(c.next.prev=c.prev),c.next=n.head,c.prev=null,n.head.prev=c,n.head=c),c.val;c=c.next}return c={val:e.apply(null,a)},a[0]=null,c.args=a,n.head&&(n.head.prev=c,c.next=n.head),n.head=c,c.val}return t||(t=a),i=r?function(e){var t,r,a,o,i,s=n,u=!0;for(t=0;t<e.length;t++){if(r=e[t],!(i=r)||"object"!=typeof i){u=!1;break}s.has(r)?s=s.get(r):(a=new WeakMap,s.set(r,a),s=a)}return s.has(c)||((o=l()).isUniqueByDependants=u,s.set(c,o)),s.get(c)}:function(){return n},u.getDependants=t,u.clear=s,s(),u}},rmEH:function(e,t){e.exports=window.wp.htmlEntities},rrFr:function(e,t,n){var c,r,a;r=[],void 0===(a="function"==typeof(c=function(){return function e(t,n,c){var r,a,l=window,o="application/octet-stream",i=c||o,s=t,u=!n&&!c&&s,m=document.createElement("a"),d=function(e){return String(e)},b=l.Blob||l.MozBlob||l.WebKitBlob||d,p=n||"download";if(b=b.call?b.bind(l):Blob,"true"===String(this)&&(i=(s=[s,i])[0],s=s[1]),u&&u.length<2048&&(p=u.split("/").pop().split("?")[0],m.href=u,-1!==m.href.indexOf(u))){var O=new XMLHttpRequest;return O.open("GET",u,!0),O.responseType="blob",O.onload=function(t){e(t.target.response,p,o)},setTimeout((function(){O.send()}),0),O}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(s)){if(!(s.length>2096103.424&&b!==d))return navigator.msSaveBlob?navigator.msSaveBlob(E(s),p):f(s);i=(s=E(s)).type||o}else if(/([\x80-\xff])/.test(s)){for(var _=0,j=new Uint8Array(s.length),g=j.length;_<g;++_)j[_]=s.charCodeAt(_);s=new b([j],{type:i})}function E(e){for(var t=e.split(/[:;,]/),n=t[1],c=("base64"==t[2]?atob:decodeURIComponent)(t.pop()),r=c.length,a=0,l=new Uint8Array(r);a<r;++a)l[a]=c.charCodeAt(a);return new b([l],{type:n})}function f(e,t){if("download"in m)return m.href=e,m.setAttribute("download",p),m.className="download-js-link",m.innerHTML="downloading...",m.style.display="none",document.body.appendChild(m),setTimeout((function(){m.click(),document.body.removeChild(m),!0===t&&setTimeout((function(){l.URL.revokeObjectURL(m.href)}),250)}),66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,o)),window.open(e)||confirm("Displaying New Document\n\nUse Save As... to download, then click back to return to this page.")&&(location.href=e),!0;var n=document.createElement("iframe");document.body.appendChild(n),!t&&/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,o)),n.src=e,setTimeout((function(){document.body.removeChild(n)}),333)}if(r=s instanceof b?s:new b([s],{type:i}),navigator.msSaveBlob)return navigator.msSaveBlob(r,p);if(l.URL)f(l.URL.createObjectURL(r),!0);else{if("string"==typeof r||r.constructor===d)try{return f("data:"+i+";base64,"+l.btoa(r))}catch(e){return f("data:"+i+","+encodeURIComponent(r))}(a=new FileReader).onload=function(e){f(this.result)},a.readAsDataURL(r)}return!0}})?c.apply(t,r):c)||(e.exports=a)},"tI+e":function(e,t){e.exports=window.wp.components},w95h:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=a},wduq:function(e,t,n){"use strict";var c=n("GRId"),r=n("Tqx9");const a=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(c.createElement)(r.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"}));t.a=a},wx14:function(e,t,n){"use strict";function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return c}))},ywyh:function(e,t){e.exports=window.wp.apiFetch}}); \ No newline at end of file diff --git a/wp-includes/js/dist/plugins.js b/wp-includes/js/dist/plugins.js index 363ab58900..18dccff2eb 100644 --- a/wp-includes/js/dist/plugins.js +++ b/wp-includes/js/dist/plugins.js @@ -87,6 +87,31 @@ this["wp"] = this["wp"] || {}; this["wp"]["plugins"] = /************************************************************************/ /******/ ({ +/***/ "0Ene": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId"); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9"); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +const plugins = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { + d: "M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z" +})); +/* harmony default export */ __webpack_exports__["a"] = (plugins); + + +/***/ }), + /***/ "4eJC": /***/ (function(module, exports, __webpack_require__) { @@ -349,23 +374,8 @@ const withPluginContext = mapContextToProps => Object(external_wp_compose_["crea return props => Object(external_wp_element_["createElement"])(Consumer, null, context => Object(external_wp_element_["createElement"])(OriginalComponent, Object(esm_extends["a" /* default */])({}, props, mapContextToProps(context, props)))); }, 'withPluginContext'); -// EXTERNAL MODULE: external ["wp","primitives"] -var external_wp_primitives_ = __webpack_require__("Tqx9"); - -// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/plugins.js - - -/** - * WordPress dependencies - */ - -const plugins = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], { - d: "M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z" -})); -/* harmony default export */ var library_plugins = (plugins); +// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/plugins.js +var plugins = __webpack_require__("0Ene"); // CONCATENATED MODULE: ./node_modules/@wordpress/plugins/build-module/api/index.js /* eslint no-console: [ 'error', { allow: [ 'error' ] } ] */ @@ -527,7 +537,7 @@ function registerPlugin(name, settings) { api_plugins[name] = { name, - icon: library_plugins, + icon: plugins["a" /* default */], ...settings }; Object(external_wp_hooks_["doAction"])('plugins.pluginRegistered', settings, name); diff --git a/wp-includes/js/dist/plugins.min.js b/wp-includes/js/dist/plugins.min.js index 75ed5f1f35..7b78ce27df 100644 --- a/wp-includes/js/dist/plugins.min.js +++ b/wp-includes/js/dist/plugins.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.plugins=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="ey5A")}({"4eJC":function(e,t,n){e.exports=function(e,t){var n,r,i=0;function o(){var o,u,l=n,s=arguments.length;e:for(;l;){if(l.args.length===arguments.length){for(u=0;u<s;u++)if(l.args[u]!==arguments[u]){l=l.next;continue e}return l!==n&&(l===r&&(r=l.prev),l.prev.next=l.next,l.next&&(l.next.prev=l.prev),l.next=n,l.prev=null,n.prev=l,n=l),l.val}l=l.next}for(o=new Array(s),u=0;u<s;u++)o[u]=arguments[u];return l={args:o,val:e.apply(null,o)},n?(n.prev=l,l.next=n):r=l,i===t.maxSize?(r=r.prev).next=null:i++,n=l,l.val}return t=t||{},o.clear=function(){n=null,r=null,i=0},o}},GRId:function(e,t){e.exports=window.wp.element},K9lf:function(e,t){e.exports=window.wp.compose},Tqx9:function(e,t){e.exports=window.wp.primitives},YLtl:function(e,t){e.exports=window.lodash},ey5A:function(e,t,n){"use strict";n.r(t),n.d(t,"PluginArea",(function(){return j})),n.d(t,"withPluginContext",(function(){return g})),n.d(t,"registerPlugin",(function(){return v})),n.d(t,"unregisterPlugin",(function(){return h})),n.d(t,"getPlugin",(function(){return b})),n.d(t,"getPlugins",(function(){return x}));var r=n("GRId"),i=n("YLtl"),o=n("4eJC"),u=n.n(o),l=n("g56x"),s=n("wx14"),c=n("K9lf");const{Consumer:a,Provider:p}=Object(r.createContext)({name:null,icon:null}),g=e=>Object(c.createHigherOrderComponent)(t=>n=>Object(r.createElement)(a,null,i=>Object(r.createElement)(t,Object(s.a)({},n,e(i,n)))),"withPluginContext");var d=n("Tqx9");var f=Object(r.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(d.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"}));const m={};function v(e,t){if("object"!=typeof t)return console.error("No settings object provided!"),null;if("string"!=typeof e)return console.error("Plugin name must be string."),null;if(!/^[a-z][a-z0-9-]*$/.test(e))return console.error('Plugin name must include only lowercase alphanumeric characters or dashes, and start with a letter. Example: "my-plugin".'),null;m[e]&&console.error(`Plugin "${e}" is already registered.`),t=Object(l.applyFilters)("plugins.registerPlugin",t,e);const{render:n,scope:r}=t;if(!Object(i.isFunction)(n))return console.error('The "render" property must be specified and must be a valid function.'),null;if(r){if("string"!=typeof r)return console.error("Plugin scope must be string."),null;if(!/^[a-z][a-z0-9-]*$/.test(r))return console.error('Plugin scope must include only lowercase alphanumeric characters or dashes, and start with a letter. Example: "my-page".'),null}return m[e]={name:e,icon:f,...t},Object(l.doAction)("plugins.pluginRegistered",t,e),t}function h(e){if(!m[e])return void console.error('Plugin "'+e+'" is not registered.');const t=m[e];return delete m[e],Object(l.doAction)("plugins.pluginUnregistered",t,e),t}function b(e){return m[e]}function x(e){return Object.values(m).filter(t=>t.scope===e)}class w extends r.Component{constructor(){super(...arguments),this.setPlugins=this.setPlugins.bind(this),this.memoizedContext=u()((e,t)=>({name:e,icon:t})),this.state=this.getCurrentPluginsState()}getCurrentPluginsState(){return{plugins:Object(i.map)(x(this.props.scope),e=>{let{icon:t,name:n,render:r}=e;return{Plugin:r,context:this.memoizedContext(n,t)}})}}componentDidMount(){Object(l.addAction)("plugins.pluginRegistered","core/plugins/plugin-area/plugins-registered",this.setPlugins),Object(l.addAction)("plugins.pluginUnregistered","core/plugins/plugin-area/plugins-unregistered",this.setPlugins)}componentWillUnmount(){Object(l.removeAction)("plugins.pluginRegistered","core/plugins/plugin-area/plugins-registered"),Object(l.removeAction)("plugins.pluginUnregistered","core/plugins/plugin-area/plugins-unregistered")}setPlugins(){this.setState(this.getCurrentPluginsState)}render(){return Object(r.createElement)("div",{style:{display:"none"}},Object(i.map)(this.state.plugins,e=>{let{context:t,Plugin:n}=e;return Object(r.createElement)(p,{key:t.name,value:t},Object(r.createElement)(n,null))}))}}var j=w},g56x:function(e,t){e.exports=window.wp.hooks},wx14:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.plugins=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="ey5A")}({"0Ene":function(e,t,n){"use strict";var r=n("GRId"),i=n("Tqx9");const o=Object(r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(i.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"}));t.a=o},"4eJC":function(e,t,n){e.exports=function(e,t){var n,r,i=0;function o(){var o,u,l=n,s=arguments.length;e:for(;l;){if(l.args.length===arguments.length){for(u=0;u<s;u++)if(l.args[u]!==arguments[u]){l=l.next;continue e}return l!==n&&(l===r&&(r=l.prev),l.prev.next=l.next,l.next&&(l.next.prev=l.prev),l.next=n,l.prev=null,n.prev=l,n=l),l.val}l=l.next}for(o=new Array(s),u=0;u<s;u++)o[u]=arguments[u];return l={args:o,val:e.apply(null,o)},n?(n.prev=l,l.next=n):r=l,i===t.maxSize?(r=r.prev).next=null:i++,n=l,l.val}return t=t||{},o.clear=function(){n=null,r=null,i=0},o}},GRId:function(e,t){e.exports=window.wp.element},K9lf:function(e,t){e.exports=window.wp.compose},Tqx9:function(e,t){e.exports=window.wp.primitives},YLtl:function(e,t){e.exports=window.lodash},ey5A:function(e,t,n){"use strict";n.r(t),n.d(t,"PluginArea",(function(){return w})),n.d(t,"withPluginContext",(function(){return g})),n.d(t,"registerPlugin",(function(){return m})),n.d(t,"unregisterPlugin",(function(){return v})),n.d(t,"getPlugin",(function(){return h})),n.d(t,"getPlugins",(function(){return b}));var r=n("GRId"),i=n("YLtl"),o=n("4eJC"),u=n.n(o),l=n("g56x"),s=n("wx14"),c=n("K9lf");const{Consumer:a,Provider:p}=Object(r.createContext)({name:null,icon:null}),g=e=>Object(c.createHigherOrderComponent)(t=>n=>Object(r.createElement)(a,null,i=>Object(r.createElement)(t,Object(s.a)({},n,e(i,n)))),"withPluginContext");var d=n("0Ene");const f={};function m(e,t){if("object"!=typeof t)return console.error("No settings object provided!"),null;if("string"!=typeof e)return console.error("Plugin name must be string."),null;if(!/^[a-z][a-z0-9-]*$/.test(e))return console.error('Plugin name must include only lowercase alphanumeric characters or dashes, and start with a letter. Example: "my-plugin".'),null;f[e]&&console.error(`Plugin "${e}" is already registered.`),t=Object(l.applyFilters)("plugins.registerPlugin",t,e);const{render:n,scope:r}=t;if(!Object(i.isFunction)(n))return console.error('The "render" property must be specified and must be a valid function.'),null;if(r){if("string"!=typeof r)return console.error("Plugin scope must be string."),null;if(!/^[a-z][a-z0-9-]*$/.test(r))return console.error('Plugin scope must include only lowercase alphanumeric characters or dashes, and start with a letter. Example: "my-page".'),null}return f[e]={name:e,icon:d.a,...t},Object(l.doAction)("plugins.pluginRegistered",t,e),t}function v(e){if(!f[e])return void console.error('Plugin "'+e+'" is not registered.');const t=f[e];return delete f[e],Object(l.doAction)("plugins.pluginUnregistered",t,e),t}function h(e){return f[e]}function b(e){return Object.values(f).filter(t=>t.scope===e)}class x extends r.Component{constructor(){super(...arguments),this.setPlugins=this.setPlugins.bind(this),this.memoizedContext=u()((e,t)=>({name:e,icon:t})),this.state=this.getCurrentPluginsState()}getCurrentPluginsState(){return{plugins:Object(i.map)(b(this.props.scope),e=>{let{icon:t,name:n,render:r}=e;return{Plugin:r,context:this.memoizedContext(n,t)}})}}componentDidMount(){Object(l.addAction)("plugins.pluginRegistered","core/plugins/plugin-area/plugins-registered",this.setPlugins),Object(l.addAction)("plugins.pluginUnregistered","core/plugins/plugin-area/plugins-unregistered",this.setPlugins)}componentWillUnmount(){Object(l.removeAction)("plugins.pluginRegistered","core/plugins/plugin-area/plugins-registered"),Object(l.removeAction)("plugins.pluginUnregistered","core/plugins/plugin-area/plugins-unregistered")}setPlugins(){this.setState(this.getCurrentPluginsState)}render(){return Object(r.createElement)("div",{style:{display:"none"}},Object(i.map)(this.state.plugins,e=>{let{context:t,Plugin:n}=e;return Object(r.createElement)(p,{key:t.name,value:t},Object(r.createElement)(n,null))}))}}var w=x},g56x:function(e,t){e.exports=window.wp.hooks},wx14:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))}}); \ No newline at end of file diff --git a/wp-includes/post.php b/wp-includes/post.php index a51d616416..f7fe8d7451 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -384,6 +384,7 @@ function create_initial_post_types() { 'excerpt', 'editor', 'revisions', + 'author', ), ) ); @@ -442,6 +443,7 @@ function create_initial_post_types() { 'excerpt', 'editor', 'revisions', + 'author', ), ) ); diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php index 7e5f93f520..0bbc54169e 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php @@ -232,12 +232,16 @@ class WP_REST_Global_Styles_Controller extends WP_REST_Controller { * @return WP_REST_Response $data */ public function prepare_item_for_response( $post, $request ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable - $config = json_decode( $post->post_content, true ); - $is_global_styles_user_theme_json = isset( $config['isGlobalStylesUserThemeJSON'] ) && true === $config['isGlobalStylesUserThemeJSON']; - $fields = $this->get_fields_for_response( $request ); + $raw_config = json_decode( $post->post_content, true ); + $is_global_styles_user_theme_json = isset( $raw_config['isGlobalStylesUserThemeJSON'] ) && true === $raw_config['isGlobalStylesUserThemeJSON']; + $config = array(); + if ( $is_global_styles_user_theme_json ) { + $config = ( new WP_Theme_JSON( $raw_config, 'custom' ) )->get_raw_data(); + } // Base fields for every post. - $data = array(); + $data = array(); + $fields = $this->get_fields_for_response( $request ); if ( rest_is_field_included( 'id', $fields ) ) { $data['id'] = $post->ID; diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php index 16bf3c7d73..0c149bab93 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php @@ -72,8 +72,9 @@ class WP_REST_Templates_Controller extends WP_REST_Controller { array( 'args' => array( 'id' => array( - 'description' => __( 'The id of a template' ), - 'type' => 'string', + 'description' => __( 'The id of a template' ), + 'type' => 'string', + 'sanitize_callback' => array( $this, '_sanitize_template_id' ), ), ), array( @@ -131,6 +132,39 @@ class WP_REST_Templates_Controller extends WP_REST_Controller { return true; } + /** + * Requesting this endpoint for a template like 'twentytwentytwo//home' + * requires using a path like /wp/v2/templates/twentytwentytwo//home. There + * are special cases when WordPress routing corrects the name to contain + * only a single slash like 'twentytwentytwo/home'. + * + * This method doubles the last slash if it's not already doubled. It relies + * on the template ID format {theme_name}//{template_slug} and the fact that + * slugs cannot contain slashes. + * + * @since 5.9.0 + * @see https://core.trac.wordpress.org/ticket/54507 + * + * @param string $id Template ID. + * @return string Sanitized template ID. + */ + public function _sanitize_template_id( $id ) { + $last_slash_pos = strrpos( $id, '/' ); + if ( false === $last_slash_pos ) { + return $id; + } + + $is_double_slashed = substr( $id, $last_slash_pos - 1, 1 ) === '/'; + if ( $is_double_slashed ) { + return $id; + } + return ( + substr( $id, 0, $last_slash_pos ) + . '/' + . substr( $id, $last_slash_pos ) + ); + } + /** * Checks if a given request has access to read templates. * @@ -244,6 +278,10 @@ class WP_REST_Templates_Controller extends WP_REST_Controller { $changes = $this->prepare_item_for_database( $request ); + if ( is_wp_error( $changes ) ) { + return $changes; + } + if ( 'custom' === $template->source ) { $result = wp_update_post( wp_slash( (array) $changes ), true ); } else { @@ -298,6 +336,11 @@ class WP_REST_Templates_Controller extends WP_REST_Controller { */ public function create_item( $request ) { $prepared_post = $this->prepare_item_for_database( $request ); + + if ( is_wp_error( $prepared_post ) ) { + return $prepared_post; + } + $prepared_post->post_name = $request['slug']; $post_id = wp_insert_post( wp_slash( (array) $prepared_post ), true ); if ( is_wp_error( $post_id ) ) { @@ -430,6 +473,9 @@ class WP_REST_Templates_Controller extends WP_REST_Controller { $changes->tax_input = array( 'wp_theme' => $template->theme, ); + $changes->meta_input = array( + 'origin' => $template->source, + ); } else { $changes->post_name = $template->slug; $changes->ID = $template->wp_id; @@ -469,6 +515,24 @@ class WP_REST_Templates_Controller extends WP_REST_Controller { } } + if ( ! empty( $request['author'] ) ) { + $post_author = (int) $request['author']; + + if ( get_current_user_id() !== $post_author ) { + $user_obj = get_userdata( $post_author ); + + if ( ! $user_obj ) { + return new WP_Error( + 'rest_invalid_author', + __( 'Invalid author ID.' ), + array( 'status' => 400 ) + ); + } + } + + $changes->post_author = $post_author; + } + return $changes; } @@ -518,6 +582,10 @@ class WP_REST_Templates_Controller extends WP_REST_Controller { $data['source'] = $template->source; } + if ( rest_is_field_included( 'origin', $fields ) ) { + $data['origin'] = $template->origin; + } + if ( rest_is_field_included( 'type', $fields ) ) { $data['type'] = $template->type; } @@ -555,6 +623,14 @@ class WP_REST_Templates_Controller extends WP_REST_Controller { $data['has_theme_file'] = (bool) $template->has_theme_file; } + if ( rest_is_field_included( 'is_custom', $fields ) && 'wp_template' === $template->type ) { + $data['is_custom'] = $template->is_custom; + } + + if ( rest_is_field_included( 'author', $fields ) ) { + $data['author'] = (int) $template->author; + } + if ( rest_is_field_included( 'area', $fields ) && 'wp_template_part' === $template->type ) { $data['area'] = $template->area; } @@ -703,6 +779,12 @@ class WP_REST_Templates_Controller extends WP_REST_Controller { 'context' => array( 'embed', 'view', 'edit' ), 'readonly' => true, ), + 'origin' => array( + 'description' => __( 'Source of a customized template' ), + 'type' => 'string', + 'context' => array( 'embed', 'view', 'edit' ), + 'readonly' => true, + ), 'content' => array( 'description' => __( 'Content of template.' ), 'type' => array( 'object', 'string' ), @@ -766,9 +848,23 @@ class WP_REST_Templates_Controller extends WP_REST_Controller { 'context' => array( 'embed', 'view', 'edit' ), 'readonly' => true, ), + 'author' => array( + 'description' => __( 'The ID for the author of the template.' ), + 'type' => 'integer', + 'context' => array( 'view', 'edit', 'embed' ), + ), ), ); + if ( 'wp_template' === $this->post_type ) { + $schema['properties']['is_custom'] = array( + 'description' => __( 'Whether a template is a custom template.' ), + 'type' => 'bool', + 'context' => array( 'embed', 'view', 'edit' ), + 'readonly' => true, + ); + } + if ( 'wp_template_part' === $this->post_type ) { $schema['properties']['area'] = array( 'description' => __( 'Where the template part is intended for use (header, footer, etc.)' ), diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php index b49810d1e3..76f963209f 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php @@ -320,22 +320,8 @@ class WP_REST_Themes_Controller extends WP_REST_Controller { // This creates a record for the current theme if not existent. $id = WP_Theme_JSON_Resolver::get_user_custom_post_type_id(); } else { - $wp_query_args = array( - 'post_status' => 'publish', - 'post_type' => 'wp_global_styles', - 'posts_per_page' => 1, - 'no_found_rows' => true, - 'fields' => 'ids', - 'tax_query' => array( - array( - 'taxonomy' => 'wp_theme', - 'field' => 'name', - 'terms' => $theme->get_stylesheet(), - ), - ), - ); - $global_styles_query = new WP_Query( $wp_query_args ); - $id = ! empty( $global_styles_query->posts ) ? array_shift( $global_styles_query->posts ) : null; + $user_cpt = WP_Theme_JSON_Resolver::get_user_data_from_custom_post_type( $theme ); + $id = isset( $user_cpt['ID'] ) ? $user_cpt['ID'] : null; } if ( $id ) { diff --git a/wp-includes/theme.json b/wp-includes/theme.json index f2c71be11a..f072d0afc7 100644 --- a/wp-includes/theme.json +++ b/wp-includes/theme.json @@ -1,6 +1,7 @@ { "version": 2, "settings": { + "appearanceTools": false, "border": { "color": false, "radius": false, @@ -8,12 +9,12 @@ "width": false }, "color": { + "background": true, "custom": true, "customDuotone": true, "customGradient": true, - "link": false, - "background": true, - "text": true, + "defaultGradients": true, + "defaultPalette": true, "duotone": [ { "name": "Dark grayscale" , @@ -118,6 +119,7 @@ "slug": "midnight" } ], + "link": false, "palette": [ { "name": "Black", @@ -179,7 +181,8 @@ "slug": "vivid-purple", "color": "#9b51e0" } - ] + ], + "text": true }, "spacing": { "blockGap": null, @@ -190,12 +193,6 @@ "typography": { "customFontSize": true, "dropCap": true, - "fontStyle": true, - "fontWeight": true, - "letterSpacing": true, - "lineHeight": false, - "textDecoration": true, - "textTransform": true, "fontSizes": [ { "name": "Small", @@ -222,7 +219,13 @@ "slug": "huge", "size": "42px" } - ] + ], + "fontStyle": true, + "fontWeight": true, + "letterSpacing": true, + "lineHeight": false, + "textDecoration": true, + "textTransform": true }, "blocks": { "core/button": { diff --git a/wp-includes/version.php b/wp-includes/version.php index 0cd67ac47b..efd207d6e9 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-52274'; +$wp_version = '5.9-alpha-52275'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.